diff --git a/ACUtils.AXRepository/ACUtils.AXRepository.csproj b/ACUtils.AXRepository/ACUtils.AXRepository.csproj deleted file mode 100644 index 40f6dfa..0000000 --- a/ACUtils.AXRepository/ACUtils.AXRepository.csproj +++ /dev/null @@ -1,52 +0,0 @@ - - - - net461 - Andrea Cattaneo - true - false - 1.0.0.142 - 1.0.0.142 - Utility per gestione classi documentali Arxivar - it - true - snupkg - ..\dist\ - false - - - - - - - - - - - - - - - - - - - - - - - Lib\Abletech.Arxivar.Client.PlugIn.dll - false - - - Lib\Abletech.Arxivar.Client.WCFConnector.dll - false - - - Lib\Abletech.Arxivar.Entities.dll - false - - - - - \ No newline at end of file diff --git a/ACUtils.AXRepository/AXModel.cs b/ACUtils.AXRepository/AXModel.cs deleted file mode 100644 index 74f42ce..0000000 --- a/ACUtils.AXRepository/AXModel.cs +++ /dev/null @@ -1,349 +0,0 @@ -using ACUtils.AXRepository.Attributes; - -using System; -using System.Collections.Generic; -using System.Data; -using System.Linq; -using System.Reflection; - -namespace ACUtils.AXRepository -{ - public abstract class AXModel : DBModel where T : AXModel, new() - { - #region properties - - [AxField(ax_field: "DOCNUMBER")] - public virtual int? DOCNUMBER { get; set; } - - public string FilePath { get; set; } - - private string _stato; - [AxField(ax_field: "Stato")] - public virtual string STATO - { - get => _stato ?? GetArxivarAttribute()?.Stato; - set => _stato = value; - } - - [AxField(ax_field: "From")] - public virtual string User { get; set; } - - [AxFromExternalIdField] - public virtual string MittenteCodiceRubrica { get; set; } - - [AxField(ax_field: "From")] - public virtual int? MittenteId { get; protected set; } - - //[AxField(ax_field: "From_IdRubrica")] - public virtual int? MittenteIdRubrica { get; set; } - - [AxToExternalIdField] - public virtual IEnumerable DestinatariCodiceRubrica { get; set; } - - [AxField(ax_field: "To")] - public virtual IEnumerable DestinatariId { get; protected set; } - - [AxField(ax_field: "To")] - public virtual IEnumerable Destinatari { get; protected set; } - - //[AxField(ax_field: "To_IdRubrica")] - public virtual int? DestinatariIdRubrica { get; set; } - - /// - /// campo usato per popolare l'oggetto del documento - /// - private string _docname; - public virtual string DOCNAME { get => _docname ?? GetArxivarAttribute()?.Description; set => _docname = value; } - - /// - /// campo usato per settare la data documento su arxivar - /// eseguire l'override per modificare il campo - /// - - [AxField(ax_field: "DataDoc")] - public virtual DateTime? DataDoc { get; set; } - - [AxField(ax_field: "WORKFLOW")] - public virtual bool? Workflow { get; set; } - - public List Allegati { get; set; } - - #endregion - - #region setters - - protected override void setValue(string key, object value, Type colType = null) - { - var property = this.GetType().GetProperty(key); - var sourceType = value?.GetType(); - var targetType = property.PropertyType; - if (sourceType == typeof(ArxivarNext.Model.UserProfileDTO)) - { - if (targetType == typeof(string)) - { - value = ((ArxivarNext.Model.UserProfileDTO)value).Description; - } - if (targetType == typeof(int) || targetType == typeof(int?)) - { - value = ((ArxivarNext.Model.UserProfileDTO)value).AddressBookId; - } - } - - if (sourceType == typeof(ArxivarNextManagement.Model.UserProfileDTO)) - { - if (targetType == typeof(string)) - { - value = ((ArxivarNextManagement.Model.UserProfileDTO)value).Description; - } - if (targetType == typeof(int) || targetType == typeof(int?)) - { - value = ((ArxivarNextManagement.Model.UserProfileDTO)value).AddressBookId; - } - } - if (sourceType == typeof(List)) - { - var source = (List)value; - if (targetType == typeof(List) || targetType == typeof(IEnumerable)) - { - value = source.Select(e => e.Description).ToList(); - } - if ( - targetType == typeof(List) || targetType == typeof(List) || - targetType == typeof(IEnumerable) || targetType == typeof(IEnumerable) - ) - { - value = source.Select(e => e.AddressBookId).ToList(); - } - } - - base.setValue(key, value, colType); - } - - public void idrate(DataRow dr) - { - // popola i campi che corrispondono ai nomi delle property - base.idrate(dr); - - // popola i campi che corrispondono al nome definito nel Attribute della property - PropertyInfo[] properties = this.GetType().GetProperties(); - foreach (PropertyInfo property in properties) - { - if (!dr.Table.Columns.Contains(property.Name)) - { - var attr = this.GetDbAttribute(property.Name); - if (attr?.DbField == null) continue; - if (dr.Table.Columns.Contains(attr.DbField)) - { - try - { - setValue(property.Name, dr[attr.DbField], dr.Table.Columns[attr.DbField].DataType); - } - catch (Exception e) - { - Console.WriteLine($"{attr.DbField} -> {property.Name} - {dr[attr.DbField]}: {e?.Message}"); // TODO: write log entry - throw; - } - } - } - } - } - - public static T Idrate(ArxivarNext.Model.EditProfileSchemaDTO model) - { - var obj = new T(); - foreach (var field in model.Fields) - { - if (field.GetType().GetProperty("Value") != null) - { - dynamic dfiled = field; // per poter accedere alla property Value - obj.SetPropertyIfExists(field.Name, dfiled.Value); - } - } - - obj.SetPropertyIfExists("DOCNUMBER", model.ProfileInfo.DocNumber); - - var mittente = model.Fields.GetField("TO"); - obj.SetPropertyIfExists(AxToExternalIdFieldAttribute.AX_KEY, mittente.Value?.Select(m => m.ExternalId)); - - var destinatario = model.Fields.GetField("FROM"); - obj.SetPropertyIfExists(AxFromExternalIdFieldAttribute.AX_KEY, destinatario.Value?.ExternalId); - return obj; - } - - public static T Idrate(ArxivarNext.Model.RowSearchResult searchresult) - { - var obj = new T(); - foreach (var col in searchresult.Columns) - { - obj.SetPropertyIfExists(col.Id, col.Value); - } - return obj; - } - - public bool SetPropertyIfExists(string axField, object value) - { - bool found = false; - if (this.HasAXField(axField)) - { - var properties = this.GetType().GetProperties(); - foreach (var property in properties) - { - if (axField == this.GetArxivarAttribute(property.Name)?.AXField) - { - this.setValue(property.Name, value); - found = true; - } - - } - } -#if DEBUG - else - { - //System.Diagnostics.Debugger.Break(); - } -#endif - return found; - } - - public static List Idrate(List results) - { - return (from result in results select Idrate(result)).ToList(); - } - - #endregion - - #region testers - public new bool HasDbField(string field) - { - return this.GetType().GetProperties().Where(property => - GetAxDbAttribute(property.Name)?.DbField == field - ).Any(); - } - - public bool HasAXField(string field) - { - return this.GetType().GetProperties().Where(property => GetArxivarAttribute(property.Name)?.AXField == field).Any(); - } - #endregion - - #region getters - - public AxClassAttribute GetArxivarAttribute() - { - var attrs = GetType().GetCustomAttributes(typeof(AxClassAttribute), true); - return attrs.LastOrDefault() as AxClassAttribute; - } - - public AxFieldAttribute GetArxivarAttribute(string propertyName) - { - var propr = GetType().GetProperty(propertyName); - var attrs = propr.GetCustomAttributes(typeof(AxFieldAttribute), true); - return attrs.LastOrDefault() as AxFieldAttribute; - } - - public AxDbFieldAttribute GetAxDbAttribute(string propertyName) - { - var propr = GetType().GetProperty(propertyName); - var attrs = propr.GetCustomAttributes(typeof(AxDbFieldAttribute), true); - return attrs.LastOrDefault() as AxDbFieldAttribute; - } - - public List GetArxivarAttributes() - { - return ( - from attr in ( - from prop in GetType().GetProperties() - select GetArxivarAttribute(prop.Name) - ) - where attr != null - select attr - ).ToList(); - } - - public Tm GetValueByDbField(string field) - { - return GetValueBy(field, property => GetDbAttribute(property.Name)?.DbField); - } - - public Tm GetValueByAXField(string field) - { - return GetValueBy(field, property => GetArxivarAttribute(property.Name)?.AXField); - } - - public new object this[string fieldName] - { - get - { - if (HasProperty(fieldName)) - { - return GetValueByPropertyName(fieldName); - } - if (HasDbField(fieldName)) - { - return GetValueByDbField(fieldName); - } - if (HasAXField(fieldName)) - { - return GetValueByAXField(fieldName); - } - throw new ArgumentException($"'{fieldName}' field not found"); - } - } - - public Dictionary GetArxivarFields() - { - Dictionary fields = new Dictionary(); - foreach (var property in GetType().GetProperties()) - { - var ax = GetArxivarAttribute(property.Name); - if (ax != null && !string.IsNullOrEmpty(ax.AXField)) - { - if (!fields.Keys.Contains(ax.AXField)) - fields.Add(ax.AXField, this[ax.AXField]); - } - } - return fields; - } - - private static object get_type_default(Type type) - { - //if (type.IsValueType) - if (type?.GetTypeInfo()?.IsValueType ?? false) - { - return Activator.CreateInstance(type); - } - return null; - } - - /// - /// ritorna le primary key per l'interrogazione su ARXIVAR - /// ( possono essere differenti dai campi per la tabella AXARX1F0 ) - /// - /// - public Dictionary GetPrimaryKeys() - { - Dictionary fields = new Dictionary(); - foreach (var property in GetType().GetProperties()) - { - var ax = GetArxivarAttribute(property.Name); - if (ax != null && !string.IsNullOrEmpty(ax.AXField)) - { - if (ax.IsPrimaryKey) - { - var value = this[ax.AXField]; - var default_value = get_type_default(value?.GetType()); - if (value is null || value == default_value) - { - throw new ArgumentException($"il valore chiave di '{property.Name}' ( '{ax.AXField}' ) non può essere '{default_value ?? "NULL"}'"); - } - - fields.Add(ax.AXField, value); - } - } - } - return fields; - } - - #endregion - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/AddressBookApi.cs deleted file mode 100644 index bb5cd2b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookApi.cs +++ /dev/null @@ -1,5117 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IAddressBookApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns true if the connected user can edit an address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book - /// bool? - bool? AddressBookAddressBookCanWriteByAddressBookId (int? addressbookId); - - /// - /// This call returns true if the connected user can edit an address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book - /// ApiResponse of bool? - ApiResponse AddressBookAddressBookCanWriteByAddressBookIdWithHttpInfo (int? addressbookId); - /// - /// This call returns true if the connected user can edit address books of a specified category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of address book category - /// bool? - bool? AddressBookAddressBookCanWriteByCategoryId (int? addressbookCategoryId); - - /// - /// This call returns true if the connected user can edit address books of a specified category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of address book category - /// ApiResponse of bool? - ApiResponse AddressBookAddressBookCanWriteByCategoryIdWithHttpInfo (int? addressbookCategoryId); - /// - /// This call deletes an addressbook by its Id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// AddressBook Id - /// - void AddressBookDeleteAddressBook (int? addressBookId); - - /// - /// This call deletes an addressbook by its Id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// AddressBook Id - /// ApiResponse of Object(void) - ApiResponse AddressBookDeleteAddressBookWithHttpInfo (int? addressBookId); - /// - /// This call deletes addressbooks by their ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id list - /// - void AddressBookDeleteAddressBook_0 (List addressBookIdList); - - /// - /// This call deletes addressbooks by their ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id list - /// ApiResponse of Object(void) - ApiResponse AddressBookDeleteAddressBook_0WithHttpInfo (List addressBookIdList); - /// - /// This call deletes a contact - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of contact to delete - /// - void AddressBookDeleteContact (int? contactId); - - /// - /// This call deletes a contact - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of contact to delete - /// ApiResponse of Object(void) - ApiResponse AddressBookDeleteContactWithHttpInfo (int? contactId); - /// - /// This call deletes contacts by their ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id list - /// - void AddressBookDeleteContact_0 (List contactIdList); - - /// - /// This call deletes contacts by their ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id list - /// ApiResponse of Object(void) - ApiResponse AddressBookDeleteContact_0WithHttpInfo (List contactIdList); - /// - /// This call returns the values for combo box address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The field name of the combo - /// List<string> - List AddressBookGetAddressBookComboFieldValues (string fieldName); - - /// - /// This call returns the values for combo box address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The field name of the combo - /// ApiResponse of List<string> - ApiResponse> AddressBookGetAddressBookComboFieldValuesWithHttpInfo (string fieldName); - /// - /// This call returns new profile data (for archiving purpose) by address book identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// UserProfileDTO - UserProfileDTO AddressBookGetByAddressBookId (int? addressBookId, int? type); - - /// - /// This call returns new profile data (for archiving purpose) by address book identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// ApiResponse of UserProfileDTO - ApiResponse AddressBookGetByAddressBookIdWithHttpInfo (int? addressBookId, int? type); - /// - /// This call returns new profile data (for archiving purpose) by contact identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the contact - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// UserProfileDTO - UserProfileDTO AddressBookGetByContactId (int? contactId, int? type); - - /// - /// This call returns new profile data (for archiving purpose) by contact identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the contact - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// ApiResponse of UserProfileDTO - ApiResponse AddressBookGetByContactIdWithHttpInfo (int? contactId, int? type); - /// - /// This call returns an adressbook by the identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// AddressBookDTO - AddressBookDTO AddressBookGetById (int? addressBookId); - - /// - /// This call returns an adressbook by the identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// ApiResponse of AddressBookDTO - ApiResponse AddressBookGetByIdWithHttpInfo (int? addressBookId); - /// - /// This call returns new profile data (for archiving purpose) by user identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the user - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// UserProfileDTO - UserProfileDTO AddressBookGetByUserId (int? userId, int? type); - - /// - /// This call returns new profile data (for archiving purpose) by user identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the user - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// ApiResponse of UserProfileDTO - ApiResponse AddressBookGetByUserIdWithHttpInfo (int? userId, int? type); - /// - /// This call returns new AddreBookDTO object for insert purpose - /// - /// - /// - /// - /// Thrown when fails to make API call - /// AddressBookDTO - AddressBookDTO AddressBookGetForInsert (); - - /// - /// This call returns new AddreBookDTO object for insert purpose - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of AddressBookDTO - ApiResponse AddressBookGetForInsertWithHttpInfo (); - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// AddressBookDTO - AddressBookDTO AddressBookGetForInsert_0 (int? addressbookCategoryId); - - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// ApiResponse of AddressBookDTO - ApiResponse AddressBookGetForInsert_0WithHttpInfo (int? addressbookCategoryId); - /// - /// This call returns all permissions for an AddreBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// PermissionsDTO - PermissionsDTO AddressBookGetPermissionByAddrebookId (int? addressBookId); - - /// - /// This call returns all permissions for an AddreBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// ApiResponse of PermissionsDTO - ApiResponse AddressBookGetPermissionByAddrebookIdWithHttpInfo (int? addressBookId); - /// - /// This call returns all the possible fields for search in address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<RubricaFieldDTO> - List AddressBookGetSearchField (); - - /// - /// This call returns all the possible fields for search in address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<RubricaFieldDTO> - ApiResponse> AddressBookGetSearchFieldWithHttpInfo (); - /// - /// This call returns all the possible select fields for search in address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<RubricaFieldDTO> - List AddressBookGetSelectField (); - - /// - /// This call returns all the possible select fields for search in address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<RubricaFieldDTO> - ApiResponse> AddressBookGetSelectFieldWithHttpInfo (); - /// - /// This call returns user permissions for an AddressBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// UserPermissionsDTO - UserPermissionsDTO AddressBookGetUserPermissionByAddrebookId (int? addressBookId); - - /// - /// This call returns user permissions for an AddressBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// ApiResponse of UserPermissionsDTO - ApiResponse AddressBookGetUserPermissionByAddrebookIdWithHttpInfo (int? addressBookId); - /// - /// This call inserts new addres book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// AddressBookDTO - AddressBookDTO AddressBookInsertAddressBook (AddressBookDTO addressBookDto); - - /// - /// This call inserts new addres book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// ApiResponse of AddressBookDTO - ApiResponse AddressBookInsertAddressBookWithHttpInfo (AddressBookDTO addressBookDto); - /// - /// This call inserts new address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// List<AddressBookDTO> - List AddressBookInsertAddressBook_0 (List addressBookDtos); - - /// - /// This call inserts new address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// ApiResponse of List<AddressBookDTO> - ApiResponse> AddressBookInsertAddressBook_0WithHttpInfo (List addressBookDtos); - /// - /// This call inserts new contact of a address book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// ContactDTO - ContactDTO AddressBookInsertContact (ContactDTO contactDto); - - /// - /// This call inserts new contact of a address book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// ApiResponse of ContactDTO - ApiResponse AddressBookInsertContactWithHttpInfo (ContactDTO contactDto); - /// - /// This call searches address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The fields of the search - /// AddressBookSearchResultDTO - AddressBookSearchResultDTO AddressBookPostSearch (AddressBookSearchCriteriaDTO searchDto); - - /// - /// This call searches address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The fields of the search - /// ApiResponse of AddressBookSearchResultDTO - ApiResponse AddressBookPostSearchWithHttpInfo (AddressBookSearchCriteriaDTO searchDto); - /// - /// This call saves the select fields with the user settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Array of select fields - /// - void AddressBookPutSelectField (List selectFields); - - /// - /// This call saves the select fields with the user settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Array of select fields - /// ApiResponse of Object(void) - ApiResponse AddressBookPutSelectFieldWithHttpInfo (List selectFields); - /// - /// This call saves all permissions for an AddreBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// - /// - void AddressBookSetPermissionByAddrebookId (int? addressBookId, PermissionsDTO permissions); - - /// - /// This call saves all permissions for an AddreBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// - /// ApiResponse of Object(void) - ApiResponse AddressBookSetPermissionByAddrebookIdWithHttpInfo (int? addressBookId, PermissionsDTO permissions); - /// - /// This call updates a addresbook item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// AddressBookDTO - AddressBookDTO AddressBookUpdateAddressBook (int? addressbookId, AddressBookDTO addressBookDto); - - /// - /// This call updates a addresbook item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// ApiResponse of AddressBookDTO - ApiResponse AddressBookUpdateAddressBookWithHttpInfo (int? addressbookId, AddressBookDTO addressBookDto); - /// - /// This call updates a contact - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// ContactDTO - ContactDTO AddressBookUpdateContact (ContactDTO contact); - - /// - /// This call updates a contact - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// ApiResponse of ContactDTO - ApiResponse AddressBookUpdateContactWithHttpInfo (ContactDTO contact); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns true if the connected user can edit an address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book - /// Task of bool? - System.Threading.Tasks.Task AddressBookAddressBookCanWriteByAddressBookIdAsync (int? addressbookId); - - /// - /// This call returns true if the connected user can edit an address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> AddressBookAddressBookCanWriteByAddressBookIdAsyncWithHttpInfo (int? addressbookId); - /// - /// This call returns true if the connected user can edit address books of a specified category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of address book category - /// Task of bool? - System.Threading.Tasks.Task AddressBookAddressBookCanWriteByCategoryIdAsync (int? addressbookCategoryId); - - /// - /// This call returns true if the connected user can edit address books of a specified category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of address book category - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> AddressBookAddressBookCanWriteByCategoryIdAsyncWithHttpInfo (int? addressbookCategoryId); - /// - /// This call deletes an addressbook by its Id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// AddressBook Id - /// Task of void - System.Threading.Tasks.Task AddressBookDeleteAddressBookAsync (int? addressBookId); - - /// - /// This call deletes an addressbook by its Id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// AddressBook Id - /// Task of ApiResponse - System.Threading.Tasks.Task> AddressBookDeleteAddressBookAsyncWithHttpInfo (int? addressBookId); - /// - /// This call deletes addressbooks by their ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id list - /// Task of void - System.Threading.Tasks.Task AddressBookDeleteAddressBook_0Async (List addressBookIdList); - - /// - /// This call deletes addressbooks by their ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id list - /// Task of ApiResponse - System.Threading.Tasks.Task> AddressBookDeleteAddressBook_0AsyncWithHttpInfo (List addressBookIdList); - /// - /// This call deletes a contact - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of contact to delete - /// Task of void - System.Threading.Tasks.Task AddressBookDeleteContactAsync (int? contactId); - - /// - /// This call deletes a contact - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of contact to delete - /// Task of ApiResponse - System.Threading.Tasks.Task> AddressBookDeleteContactAsyncWithHttpInfo (int? contactId); - /// - /// This call deletes contacts by their ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id list - /// Task of void - System.Threading.Tasks.Task AddressBookDeleteContact_0Async (List contactIdList); - - /// - /// This call deletes contacts by their ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id list - /// Task of ApiResponse - System.Threading.Tasks.Task> AddressBookDeleteContact_0AsyncWithHttpInfo (List contactIdList); - /// - /// This call returns the values for combo box address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The field name of the combo - /// Task of List<string> - System.Threading.Tasks.Task> AddressBookGetAddressBookComboFieldValuesAsync (string fieldName); - - /// - /// This call returns the values for combo box address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The field name of the combo - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> AddressBookGetAddressBookComboFieldValuesAsyncWithHttpInfo (string fieldName); - /// - /// This call returns new profile data (for archiving purpose) by address book identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// Task of UserProfileDTO - System.Threading.Tasks.Task AddressBookGetByAddressBookIdAsync (int? addressBookId, int? type); - - /// - /// This call returns new profile data (for archiving purpose) by address book identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// Task of ApiResponse (UserProfileDTO) - System.Threading.Tasks.Task> AddressBookGetByAddressBookIdAsyncWithHttpInfo (int? addressBookId, int? type); - /// - /// This call returns new profile data (for archiving purpose) by contact identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the contact - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// Task of UserProfileDTO - System.Threading.Tasks.Task AddressBookGetByContactIdAsync (int? contactId, int? type); - - /// - /// This call returns new profile data (for archiving purpose) by contact identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the contact - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// Task of ApiResponse (UserProfileDTO) - System.Threading.Tasks.Task> AddressBookGetByContactIdAsyncWithHttpInfo (int? contactId, int? type); - /// - /// This call returns an adressbook by the identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// Task of AddressBookDTO - System.Threading.Tasks.Task AddressBookGetByIdAsync (int? addressBookId); - - /// - /// This call returns an adressbook by the identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// Task of ApiResponse (AddressBookDTO) - System.Threading.Tasks.Task> AddressBookGetByIdAsyncWithHttpInfo (int? addressBookId); - /// - /// This call returns new profile data (for archiving purpose) by user identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the user - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// Task of UserProfileDTO - System.Threading.Tasks.Task AddressBookGetByUserIdAsync (int? userId, int? type); - - /// - /// This call returns new profile data (for archiving purpose) by user identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the user - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// Task of ApiResponse (UserProfileDTO) - System.Threading.Tasks.Task> AddressBookGetByUserIdAsyncWithHttpInfo (int? userId, int? type); - /// - /// This call returns new AddreBookDTO object for insert purpose - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of AddressBookDTO - System.Threading.Tasks.Task AddressBookGetForInsertAsync (); - - /// - /// This call returns new AddreBookDTO object for insert purpose - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (AddressBookDTO) - System.Threading.Tasks.Task> AddressBookGetForInsertAsyncWithHttpInfo (); - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// Task of AddressBookDTO - System.Threading.Tasks.Task AddressBookGetForInsert_0Async (int? addressbookCategoryId); - - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// Task of ApiResponse (AddressBookDTO) - System.Threading.Tasks.Task> AddressBookGetForInsert_0AsyncWithHttpInfo (int? addressbookCategoryId); - /// - /// This call returns all permissions for an AddreBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// Task of PermissionsDTO - System.Threading.Tasks.Task AddressBookGetPermissionByAddrebookIdAsync (int? addressBookId); - - /// - /// This call returns all permissions for an AddreBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// Task of ApiResponse (PermissionsDTO) - System.Threading.Tasks.Task> AddressBookGetPermissionByAddrebookIdAsyncWithHttpInfo (int? addressBookId); - /// - /// This call returns all the possible fields for search in address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<RubricaFieldDTO> - System.Threading.Tasks.Task> AddressBookGetSearchFieldAsync (); - - /// - /// This call returns all the possible fields for search in address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<RubricaFieldDTO>) - System.Threading.Tasks.Task>> AddressBookGetSearchFieldAsyncWithHttpInfo (); - /// - /// This call returns all the possible select fields for search in address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<RubricaFieldDTO> - System.Threading.Tasks.Task> AddressBookGetSelectFieldAsync (); - - /// - /// This call returns all the possible select fields for search in address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<RubricaFieldDTO>) - System.Threading.Tasks.Task>> AddressBookGetSelectFieldAsyncWithHttpInfo (); - /// - /// This call returns user permissions for an AddressBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// Task of UserPermissionsDTO - System.Threading.Tasks.Task AddressBookGetUserPermissionByAddrebookIdAsync (int? addressBookId); - - /// - /// This call returns user permissions for an AddressBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// Task of ApiResponse (UserPermissionsDTO) - System.Threading.Tasks.Task> AddressBookGetUserPermissionByAddrebookIdAsyncWithHttpInfo (int? addressBookId); - /// - /// This call inserts new addres book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// Task of AddressBookDTO - System.Threading.Tasks.Task AddressBookInsertAddressBookAsync (AddressBookDTO addressBookDto); - - /// - /// This call inserts new addres book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// Task of ApiResponse (AddressBookDTO) - System.Threading.Tasks.Task> AddressBookInsertAddressBookAsyncWithHttpInfo (AddressBookDTO addressBookDto); - /// - /// This call inserts new address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// Task of List<AddressBookDTO> - System.Threading.Tasks.Task> AddressBookInsertAddressBook_0Async (List addressBookDtos); - - /// - /// This call inserts new address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// Task of ApiResponse (List<AddressBookDTO>) - System.Threading.Tasks.Task>> AddressBookInsertAddressBook_0AsyncWithHttpInfo (List addressBookDtos); - /// - /// This call inserts new contact of a address book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// Task of ContactDTO - System.Threading.Tasks.Task AddressBookInsertContactAsync (ContactDTO contactDto); - - /// - /// This call inserts new contact of a address book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// Task of ApiResponse (ContactDTO) - System.Threading.Tasks.Task> AddressBookInsertContactAsyncWithHttpInfo (ContactDTO contactDto); - /// - /// This call searches address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The fields of the search - /// Task of AddressBookSearchResultDTO - System.Threading.Tasks.Task AddressBookPostSearchAsync (AddressBookSearchCriteriaDTO searchDto); - - /// - /// This call searches address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The fields of the search - /// Task of ApiResponse (AddressBookSearchResultDTO) - System.Threading.Tasks.Task> AddressBookPostSearchAsyncWithHttpInfo (AddressBookSearchCriteriaDTO searchDto); - /// - /// This call saves the select fields with the user settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Array of select fields - /// Task of void - System.Threading.Tasks.Task AddressBookPutSelectFieldAsync (List selectFields); - - /// - /// This call saves the select fields with the user settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Array of select fields - /// Task of ApiResponse - System.Threading.Tasks.Task> AddressBookPutSelectFieldAsyncWithHttpInfo (List selectFields); - /// - /// This call saves all permissions for an AddreBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// - /// Task of void - System.Threading.Tasks.Task AddressBookSetPermissionByAddrebookIdAsync (int? addressBookId, PermissionsDTO permissions); - - /// - /// This call saves all permissions for an AddreBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> AddressBookSetPermissionByAddrebookIdAsyncWithHttpInfo (int? addressBookId, PermissionsDTO permissions); - /// - /// This call updates a addresbook item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// Task of AddressBookDTO - System.Threading.Tasks.Task AddressBookUpdateAddressBookAsync (int? addressbookId, AddressBookDTO addressBookDto); - - /// - /// This call updates a addresbook item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// Task of ApiResponse (AddressBookDTO) - System.Threading.Tasks.Task> AddressBookUpdateAddressBookAsyncWithHttpInfo (int? addressbookId, AddressBookDTO addressBookDto); - /// - /// This call updates a contact - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// Task of ContactDTO - System.Threading.Tasks.Task AddressBookUpdateContactAsync (ContactDTO contact); - - /// - /// This call updates a contact - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// Task of ApiResponse (ContactDTO) - System.Threading.Tasks.Task> AddressBookUpdateContactAsyncWithHttpInfo (ContactDTO contact); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AddressBookApi : IAddressBookApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public AddressBookApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public AddressBookApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns true if the connected user can edit an address book - /// - /// Thrown when fails to make API call - /// Identifier of the address book - /// bool? - public bool? AddressBookAddressBookCanWriteByAddressBookId (int? addressbookId) - { - ApiResponse localVarResponse = AddressBookAddressBookCanWriteByAddressBookIdWithHttpInfo(addressbookId); - return localVarResponse.Data; - } - - /// - /// This call returns true if the connected user can edit an address book - /// - /// Thrown when fails to make API call - /// Identifier of the address book - /// ApiResponse of bool? - public ApiResponse< bool? > AddressBookAddressBookCanWriteByAddressBookIdWithHttpInfo (int? addressbookId) - { - // verify the required parameter 'addressbookId' is set - if (addressbookId == null) - throw new ApiException(400, "Missing required parameter 'addressbookId' when calling AddressBookApi->AddressBookAddressBookCanWriteByAddressBookId"); - - var localVarPath = "/api/AddressBook/canwrite/{addressbookId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressbookId != null) localVarPathParams.Add("addressbookId", this.Configuration.ApiClient.ParameterToString(addressbookId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookAddressBookCanWriteByAddressBookId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns true if the connected user can edit an address book - /// - /// Thrown when fails to make API call - /// Identifier of the address book - /// Task of bool? - public async System.Threading.Tasks.Task AddressBookAddressBookCanWriteByAddressBookIdAsync (int? addressbookId) - { - ApiResponse localVarResponse = await AddressBookAddressBookCanWriteByAddressBookIdAsyncWithHttpInfo(addressbookId); - return localVarResponse.Data; - - } - - /// - /// This call returns true if the connected user can edit an address book - /// - /// Thrown when fails to make API call - /// Identifier of the address book - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> AddressBookAddressBookCanWriteByAddressBookIdAsyncWithHttpInfo (int? addressbookId) - { - // verify the required parameter 'addressbookId' is set - if (addressbookId == null) - throw new ApiException(400, "Missing required parameter 'addressbookId' when calling AddressBookApi->AddressBookAddressBookCanWriteByAddressBookId"); - - var localVarPath = "/api/AddressBook/canwrite/{addressbookId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressbookId != null) localVarPathParams.Add("addressbookId", this.Configuration.ApiClient.ParameterToString(addressbookId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookAddressBookCanWriteByAddressBookId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns true if the connected user can edit address books of a specified category - /// - /// Thrown when fails to make API call - /// Identifier of address book category - /// bool? - public bool? AddressBookAddressBookCanWriteByCategoryId (int? addressbookCategoryId) - { - ApiResponse localVarResponse = AddressBookAddressBookCanWriteByCategoryIdWithHttpInfo(addressbookCategoryId); - return localVarResponse.Data; - } - - /// - /// This call returns true if the connected user can edit address books of a specified category - /// - /// Thrown when fails to make API call - /// Identifier of address book category - /// ApiResponse of bool? - public ApiResponse< bool? > AddressBookAddressBookCanWriteByCategoryIdWithHttpInfo (int? addressbookCategoryId) - { - // verify the required parameter 'addressbookCategoryId' is set - if (addressbookCategoryId == null) - throw new ApiException(400, "Missing required parameter 'addressbookCategoryId' when calling AddressBookApi->AddressBookAddressBookCanWriteByCategoryId"); - - var localVarPath = "/api/AddressBook/canwritebycategory/{addressbookCategoryId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressbookCategoryId != null) localVarPathParams.Add("addressbookCategoryId", this.Configuration.ApiClient.ParameterToString(addressbookCategoryId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookAddressBookCanWriteByCategoryId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns true if the connected user can edit address books of a specified category - /// - /// Thrown when fails to make API call - /// Identifier of address book category - /// Task of bool? - public async System.Threading.Tasks.Task AddressBookAddressBookCanWriteByCategoryIdAsync (int? addressbookCategoryId) - { - ApiResponse localVarResponse = await AddressBookAddressBookCanWriteByCategoryIdAsyncWithHttpInfo(addressbookCategoryId); - return localVarResponse.Data; - - } - - /// - /// This call returns true if the connected user can edit address books of a specified category - /// - /// Thrown when fails to make API call - /// Identifier of address book category - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> AddressBookAddressBookCanWriteByCategoryIdAsyncWithHttpInfo (int? addressbookCategoryId) - { - // verify the required parameter 'addressbookCategoryId' is set - if (addressbookCategoryId == null) - throw new ApiException(400, "Missing required parameter 'addressbookCategoryId' when calling AddressBookApi->AddressBookAddressBookCanWriteByCategoryId"); - - var localVarPath = "/api/AddressBook/canwritebycategory/{addressbookCategoryId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressbookCategoryId != null) localVarPathParams.Add("addressbookCategoryId", this.Configuration.ApiClient.ParameterToString(addressbookCategoryId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookAddressBookCanWriteByCategoryId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call deletes an addressbook by its Id - /// - /// Thrown when fails to make API call - /// AddressBook Id - /// - public void AddressBookDeleteAddressBook (int? addressBookId) - { - AddressBookDeleteAddressBookWithHttpInfo(addressBookId); - } - - /// - /// This call deletes an addressbook by its Id - /// - /// Thrown when fails to make API call - /// AddressBook Id - /// ApiResponse of Object(void) - public ApiResponse AddressBookDeleteAddressBookWithHttpInfo (int? addressBookId) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookApi->AddressBookDeleteAddressBook"); - - var localVarPath = "/api/AddressBook/addressbook/{addressBookId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookDeleteAddressBook", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes an addressbook by its Id - /// - /// Thrown when fails to make API call - /// AddressBook Id - /// Task of void - public async System.Threading.Tasks.Task AddressBookDeleteAddressBookAsync (int? addressBookId) - { - await AddressBookDeleteAddressBookAsyncWithHttpInfo(addressBookId); - - } - - /// - /// This call deletes an addressbook by its Id - /// - /// Thrown when fails to make API call - /// AddressBook Id - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddressBookDeleteAddressBookAsyncWithHttpInfo (int? addressBookId) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookApi->AddressBookDeleteAddressBook"); - - var localVarPath = "/api/AddressBook/addressbook/{addressBookId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookDeleteAddressBook", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes addressbooks by their ids - /// - /// Thrown when fails to make API call - /// The id list - /// - public void AddressBookDeleteAddressBook_0 (List addressBookIdList) - { - AddressBookDeleteAddressBook_0WithHttpInfo(addressBookIdList); - } - - /// - /// This call deletes addressbooks by their ids - /// - /// Thrown when fails to make API call - /// The id list - /// ApiResponse of Object(void) - public ApiResponse AddressBookDeleteAddressBook_0WithHttpInfo (List addressBookIdList) - { - // verify the required parameter 'addressBookIdList' is set - if (addressBookIdList == null) - throw new ApiException(400, "Missing required parameter 'addressBookIdList' when calling AddressBookApi->AddressBookDeleteAddressBook_0"); - - var localVarPath = "/api/AddressBook/delete/addressbooks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookIdList != null && addressBookIdList.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookIdList); // http body (model) parameter - } - else - { - localVarPostBody = addressBookIdList; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookDeleteAddressBook_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes addressbooks by their ids - /// - /// Thrown when fails to make API call - /// The id list - /// Task of void - public async System.Threading.Tasks.Task AddressBookDeleteAddressBook_0Async (List addressBookIdList) - { - await AddressBookDeleteAddressBook_0AsyncWithHttpInfo(addressBookIdList); - - } - - /// - /// This call deletes addressbooks by their ids - /// - /// Thrown when fails to make API call - /// The id list - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddressBookDeleteAddressBook_0AsyncWithHttpInfo (List addressBookIdList) - { - // verify the required parameter 'addressBookIdList' is set - if (addressBookIdList == null) - throw new ApiException(400, "Missing required parameter 'addressBookIdList' when calling AddressBookApi->AddressBookDeleteAddressBook_0"); - - var localVarPath = "/api/AddressBook/delete/addressbooks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookIdList != null && addressBookIdList.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookIdList); // http body (model) parameter - } - else - { - localVarPostBody = addressBookIdList; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookDeleteAddressBook_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a contact - /// - /// Thrown when fails to make API call - /// Identifier of contact to delete - /// - public void AddressBookDeleteContact (int? contactId) - { - AddressBookDeleteContactWithHttpInfo(contactId); - } - - /// - /// This call deletes a contact - /// - /// Thrown when fails to make API call - /// Identifier of contact to delete - /// ApiResponse of Object(void) - public ApiResponse AddressBookDeleteContactWithHttpInfo (int? contactId) - { - // verify the required parameter 'contactId' is set - if (contactId == null) - throw new ApiException(400, "Missing required parameter 'contactId' when calling AddressBookApi->AddressBookDeleteContact"); - - var localVarPath = "/api/AddressBook/contact/{contactId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactId != null) localVarPathParams.Add("contactId", this.Configuration.ApiClient.ParameterToString(contactId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookDeleteContact", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a contact - /// - /// Thrown when fails to make API call - /// Identifier of contact to delete - /// Task of void - public async System.Threading.Tasks.Task AddressBookDeleteContactAsync (int? contactId) - { - await AddressBookDeleteContactAsyncWithHttpInfo(contactId); - - } - - /// - /// This call deletes a contact - /// - /// Thrown when fails to make API call - /// Identifier of contact to delete - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddressBookDeleteContactAsyncWithHttpInfo (int? contactId) - { - // verify the required parameter 'contactId' is set - if (contactId == null) - throw new ApiException(400, "Missing required parameter 'contactId' when calling AddressBookApi->AddressBookDeleteContact"); - - var localVarPath = "/api/AddressBook/contact/{contactId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactId != null) localVarPathParams.Add("contactId", this.Configuration.ApiClient.ParameterToString(contactId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookDeleteContact", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes contacts by their ids - /// - /// Thrown when fails to make API call - /// The id list - /// - public void AddressBookDeleteContact_0 (List contactIdList) - { - AddressBookDeleteContact_0WithHttpInfo(contactIdList); - } - - /// - /// This call deletes contacts by their ids - /// - /// Thrown when fails to make API call - /// The id list - /// ApiResponse of Object(void) - public ApiResponse AddressBookDeleteContact_0WithHttpInfo (List contactIdList) - { - // verify the required parameter 'contactIdList' is set - if (contactIdList == null) - throw new ApiException(400, "Missing required parameter 'contactIdList' when calling AddressBookApi->AddressBookDeleteContact_0"); - - var localVarPath = "/api/AddressBook/delete/contacts"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactIdList != null && contactIdList.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(contactIdList); // http body (model) parameter - } - else - { - localVarPostBody = contactIdList; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookDeleteContact_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes contacts by their ids - /// - /// Thrown when fails to make API call - /// The id list - /// Task of void - public async System.Threading.Tasks.Task AddressBookDeleteContact_0Async (List contactIdList) - { - await AddressBookDeleteContact_0AsyncWithHttpInfo(contactIdList); - - } - - /// - /// This call deletes contacts by their ids - /// - /// Thrown when fails to make API call - /// The id list - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddressBookDeleteContact_0AsyncWithHttpInfo (List contactIdList) - { - // verify the required parameter 'contactIdList' is set - if (contactIdList == null) - throw new ApiException(400, "Missing required parameter 'contactIdList' when calling AddressBookApi->AddressBookDeleteContact_0"); - - var localVarPath = "/api/AddressBook/delete/contacts"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactIdList != null && contactIdList.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(contactIdList); // http body (model) parameter - } - else - { - localVarPostBody = contactIdList; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookDeleteContact_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the values for combo box address book additional field - /// - /// Thrown when fails to make API call - /// The field name of the combo - /// List<string> - public List AddressBookGetAddressBookComboFieldValues (string fieldName) - { - ApiResponse> localVarResponse = AddressBookGetAddressBookComboFieldValuesWithHttpInfo(fieldName); - return localVarResponse.Data; - } - - /// - /// This call returns the values for combo box address book additional field - /// - /// Thrown when fails to make API call - /// The field name of the combo - /// ApiResponse of List<string> - public ApiResponse< List > AddressBookGetAddressBookComboFieldValuesWithHttpInfo (string fieldName) - { - // verify the required parameter 'fieldName' is set - if (fieldName == null) - throw new ApiException(400, "Missing required parameter 'fieldName' when calling AddressBookApi->AddressBookGetAddressBookComboFieldValues"); - - var localVarPath = "/api/AddressBook/addressbook/combovalues"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "fieldName", fieldName)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetAddressBookComboFieldValues", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the values for combo box address book additional field - /// - /// Thrown when fails to make API call - /// The field name of the combo - /// Task of List<string> - public async System.Threading.Tasks.Task> AddressBookGetAddressBookComboFieldValuesAsync (string fieldName) - { - ApiResponse> localVarResponse = await AddressBookGetAddressBookComboFieldValuesAsyncWithHttpInfo(fieldName); - return localVarResponse.Data; - - } - - /// - /// This call returns the values for combo box address book additional field - /// - /// Thrown when fails to make API call - /// The field name of the combo - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> AddressBookGetAddressBookComboFieldValuesAsyncWithHttpInfo (string fieldName) - { - // verify the required parameter 'fieldName' is set - if (fieldName == null) - throw new ApiException(400, "Missing required parameter 'fieldName' when calling AddressBookApi->AddressBookGetAddressBookComboFieldValues"); - - var localVarPath = "/api/AddressBook/addressbook/combovalues"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "fieldName", fieldName)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetAddressBookComboFieldValues", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns new profile data (for archiving purpose) by address book identifier - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// UserProfileDTO - public UserProfileDTO AddressBookGetByAddressBookId (int? addressBookId, int? type) - { - ApiResponse localVarResponse = AddressBookGetByAddressBookIdWithHttpInfo(addressBookId, type); - return localVarResponse.Data; - } - - /// - /// This call returns new profile data (for archiving purpose) by address book identifier - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// ApiResponse of UserProfileDTO - public ApiResponse< UserProfileDTO > AddressBookGetByAddressBookIdWithHttpInfo (int? addressBookId, int? type) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookApi->AddressBookGetByAddressBookId"); - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling AddressBookApi->AddressBookGetByAddressBookId"); - - var localVarPath = "/api/AddressBook/AddressBook/{addressBookId}/UserProfile/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetByAddressBookId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserProfileDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserProfileDTO))); - } - - /// - /// This call returns new profile data (for archiving purpose) by address book identifier - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// Task of UserProfileDTO - public async System.Threading.Tasks.Task AddressBookGetByAddressBookIdAsync (int? addressBookId, int? type) - { - ApiResponse localVarResponse = await AddressBookGetByAddressBookIdAsyncWithHttpInfo(addressBookId, type); - return localVarResponse.Data; - - } - - /// - /// This call returns new profile data (for archiving purpose) by address book identifier - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// Task of ApiResponse (UserProfileDTO) - public async System.Threading.Tasks.Task> AddressBookGetByAddressBookIdAsyncWithHttpInfo (int? addressBookId, int? type) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookApi->AddressBookGetByAddressBookId"); - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling AddressBookApi->AddressBookGetByAddressBookId"); - - var localVarPath = "/api/AddressBook/AddressBook/{addressBookId}/UserProfile/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetByAddressBookId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserProfileDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserProfileDTO))); - } - - /// - /// This call returns new profile data (for archiving purpose) by contact identifier - /// - /// Thrown when fails to make API call - /// Identifier of the contact - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// UserProfileDTO - public UserProfileDTO AddressBookGetByContactId (int? contactId, int? type) - { - ApiResponse localVarResponse = AddressBookGetByContactIdWithHttpInfo(contactId, type); - return localVarResponse.Data; - } - - /// - /// This call returns new profile data (for archiving purpose) by contact identifier - /// - /// Thrown when fails to make API call - /// Identifier of the contact - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// ApiResponse of UserProfileDTO - public ApiResponse< UserProfileDTO > AddressBookGetByContactIdWithHttpInfo (int? contactId, int? type) - { - // verify the required parameter 'contactId' is set - if (contactId == null) - throw new ApiException(400, "Missing required parameter 'contactId' when calling AddressBookApi->AddressBookGetByContactId"); - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling AddressBookApi->AddressBookGetByContactId"); - - var localVarPath = "/api/AddressBook/Contact/{contactId}/UserProfile/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactId != null) localVarPathParams.Add("contactId", this.Configuration.ApiClient.ParameterToString(contactId)); // path parameter - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetByContactId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserProfileDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserProfileDTO))); - } - - /// - /// This call returns new profile data (for archiving purpose) by contact identifier - /// - /// Thrown when fails to make API call - /// Identifier of the contact - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// Task of UserProfileDTO - public async System.Threading.Tasks.Task AddressBookGetByContactIdAsync (int? contactId, int? type) - { - ApiResponse localVarResponse = await AddressBookGetByContactIdAsyncWithHttpInfo(contactId, type); - return localVarResponse.Data; - - } - - /// - /// This call returns new profile data (for archiving purpose) by contact identifier - /// - /// Thrown when fails to make API call - /// Identifier of the contact - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// Task of ApiResponse (UserProfileDTO) - public async System.Threading.Tasks.Task> AddressBookGetByContactIdAsyncWithHttpInfo (int? contactId, int? type) - { - // verify the required parameter 'contactId' is set - if (contactId == null) - throw new ApiException(400, "Missing required parameter 'contactId' when calling AddressBookApi->AddressBookGetByContactId"); - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling AddressBookApi->AddressBookGetByContactId"); - - var localVarPath = "/api/AddressBook/Contact/{contactId}/UserProfile/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactId != null) localVarPathParams.Add("contactId", this.Configuration.ApiClient.ParameterToString(contactId)); // path parameter - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetByContactId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserProfileDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserProfileDTO))); - } - - /// - /// This call returns an adressbook by the identifier - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// AddressBookDTO - public AddressBookDTO AddressBookGetById (int? addressBookId) - { - ApiResponse localVarResponse = AddressBookGetByIdWithHttpInfo(addressBookId); - return localVarResponse.Data; - } - - /// - /// This call returns an adressbook by the identifier - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// ApiResponse of AddressBookDTO - public ApiResponse< AddressBookDTO > AddressBookGetByIdWithHttpInfo (int? addressBookId) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookApi->AddressBookGetById"); - - var localVarPath = "/api/AddressBook/addressbook/{addressBookId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookDTO))); - } - - /// - /// This call returns an adressbook by the identifier - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// Task of AddressBookDTO - public async System.Threading.Tasks.Task AddressBookGetByIdAsync (int? addressBookId) - { - ApiResponse localVarResponse = await AddressBookGetByIdAsyncWithHttpInfo(addressBookId); - return localVarResponse.Data; - - } - - /// - /// This call returns an adressbook by the identifier - /// - /// Thrown when fails to make API call - /// Identifier of the adress book - /// Task of ApiResponse (AddressBookDTO) - public async System.Threading.Tasks.Task> AddressBookGetByIdAsyncWithHttpInfo (int? addressBookId) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookApi->AddressBookGetById"); - - var localVarPath = "/api/AddressBook/addressbook/{addressBookId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookDTO))); - } - - /// - /// This call returns new profile data (for archiving purpose) by user identifier - /// - /// Thrown when fails to make API call - /// Identifier of the user - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// UserProfileDTO - public UserProfileDTO AddressBookGetByUserId (int? userId, int? type) - { - ApiResponse localVarResponse = AddressBookGetByUserIdWithHttpInfo(userId, type); - return localVarResponse.Data; - } - - /// - /// This call returns new profile data (for archiving purpose) by user identifier - /// - /// Thrown when fails to make API call - /// Identifier of the user - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// ApiResponse of UserProfileDTO - public ApiResponse< UserProfileDTO > AddressBookGetByUserIdWithHttpInfo (int? userId, int? type) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling AddressBookApi->AddressBookGetByUserId"); - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling AddressBookApi->AddressBookGetByUserId"); - - var localVarPath = "/api/AddressBook/User/{userId}/UserProfile/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetByUserId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserProfileDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserProfileDTO))); - } - - /// - /// This call returns new profile data (for archiving purpose) by user identifier - /// - /// Thrown when fails to make API call - /// Identifier of the user - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// Task of UserProfileDTO - public async System.Threading.Tasks.Task AddressBookGetByUserIdAsync (int? userId, int? type) - { - ApiResponse localVarResponse = await AddressBookGetByUserIdAsyncWithHttpInfo(userId, type); - return localVarResponse.Data; - - } - - /// - /// This call returns new profile data (for archiving purpose) by user identifier - /// - /// Thrown when fails to make API call - /// Identifier of the user - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// Task of ApiResponse (UserProfileDTO) - public async System.Threading.Tasks.Task> AddressBookGetByUserIdAsyncWithHttpInfo (int? userId, int? type) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling AddressBookApi->AddressBookGetByUserId"); - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling AddressBookApi->AddressBookGetByUserId"); - - var localVarPath = "/api/AddressBook/User/{userId}/UserProfile/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetByUserId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserProfileDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserProfileDTO))); - } - - /// - /// This call returns new AddreBookDTO object for insert purpose - /// - /// Thrown when fails to make API call - /// AddressBookDTO - public AddressBookDTO AddressBookGetForInsert () - { - ApiResponse localVarResponse = AddressBookGetForInsertWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns new AddreBookDTO object for insert purpose - /// - /// Thrown when fails to make API call - /// ApiResponse of AddressBookDTO - public ApiResponse< AddressBookDTO > AddressBookGetForInsertWithHttpInfo () - { - - var localVarPath = "/api/AddressBook/newinstance"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetForInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookDTO))); - } - - /// - /// This call returns new AddreBookDTO object for insert purpose - /// - /// Thrown when fails to make API call - /// Task of AddressBookDTO - public async System.Threading.Tasks.Task AddressBookGetForInsertAsync () - { - ApiResponse localVarResponse = await AddressBookGetForInsertAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns new AddreBookDTO object for insert purpose - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (AddressBookDTO) - public async System.Threading.Tasks.Task> AddressBookGetForInsertAsyncWithHttpInfo () - { - - var localVarPath = "/api/AddressBook/newinstance"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetForInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookDTO))); - } - - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// AddressBookDTO - public AddressBookDTO AddressBookGetForInsert_0 (int? addressbookCategoryId) - { - ApiResponse localVarResponse = AddressBookGetForInsert_0WithHttpInfo(addressbookCategoryId); - return localVarResponse.Data; - } - - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// ApiResponse of AddressBookDTO - public ApiResponse< AddressBookDTO > AddressBookGetForInsert_0WithHttpInfo (int? addressbookCategoryId) - { - // verify the required parameter 'addressbookCategoryId' is set - if (addressbookCategoryId == null) - throw new ApiException(400, "Missing required parameter 'addressbookCategoryId' when calling AddressBookApi->AddressBookGetForInsert_0"); - - var localVarPath = "/api/AddressBook/newinstance/{addressbookCategoryId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressbookCategoryId != null) localVarPathParams.Add("addressbookCategoryId", this.Configuration.ApiClient.ParameterToString(addressbookCategoryId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetForInsert_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookDTO))); - } - - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// Task of AddressBookDTO - public async System.Threading.Tasks.Task AddressBookGetForInsert_0Async (int? addressbookCategoryId) - { - ApiResponse localVarResponse = await AddressBookGetForInsert_0AsyncWithHttpInfo(addressbookCategoryId); - return localVarResponse.Data; - - } - - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// Task of ApiResponse (AddressBookDTO) - public async System.Threading.Tasks.Task> AddressBookGetForInsert_0AsyncWithHttpInfo (int? addressbookCategoryId) - { - // verify the required parameter 'addressbookCategoryId' is set - if (addressbookCategoryId == null) - throw new ApiException(400, "Missing required parameter 'addressbookCategoryId' when calling AddressBookApi->AddressBookGetForInsert_0"); - - var localVarPath = "/api/AddressBook/newinstance/{addressbookCategoryId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressbookCategoryId != null) localVarPathParams.Add("addressbookCategoryId", this.Configuration.ApiClient.ParameterToString(addressbookCategoryId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetForInsert_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookDTO))); - } - - /// - /// This call returns all permissions for an AddreBook - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// PermissionsDTO - public PermissionsDTO AddressBookGetPermissionByAddrebookId (int? addressBookId) - { - ApiResponse localVarResponse = AddressBookGetPermissionByAddrebookIdWithHttpInfo(addressBookId); - return localVarResponse.Data; - } - - /// - /// This call returns all permissions for an AddreBook - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// ApiResponse of PermissionsDTO - public ApiResponse< PermissionsDTO > AddressBookGetPermissionByAddrebookIdWithHttpInfo (int? addressBookId) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookApi->AddressBookGetPermissionByAddrebookId"); - - var localVarPath = "/api/AddressBook/{addressBookId}/Permission"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetPermissionByAddrebookId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call returns all permissions for an AddreBook - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// Task of PermissionsDTO - public async System.Threading.Tasks.Task AddressBookGetPermissionByAddrebookIdAsync (int? addressBookId) - { - ApiResponse localVarResponse = await AddressBookGetPermissionByAddrebookIdAsyncWithHttpInfo(addressBookId); - return localVarResponse.Data; - - } - - /// - /// This call returns all permissions for an AddreBook - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// Task of ApiResponse (PermissionsDTO) - public async System.Threading.Tasks.Task> AddressBookGetPermissionByAddrebookIdAsyncWithHttpInfo (int? addressBookId) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookApi->AddressBookGetPermissionByAddrebookId"); - - var localVarPath = "/api/AddressBook/{addressBookId}/Permission"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetPermissionByAddrebookId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call returns all the possible fields for search in address book - /// - /// Thrown when fails to make API call - /// List<RubricaFieldDTO> - public List AddressBookGetSearchField () - { - ApiResponse> localVarResponse = AddressBookGetSearchFieldWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all the possible fields for search in address book - /// - /// Thrown when fails to make API call - /// ApiResponse of List<RubricaFieldDTO> - public ApiResponse< List > AddressBookGetSearchFieldWithHttpInfo () - { - - var localVarPath = "/api/AddressBook/SearchField"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetSearchField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the possible fields for search in address book - /// - /// Thrown when fails to make API call - /// Task of List<RubricaFieldDTO> - public async System.Threading.Tasks.Task> AddressBookGetSearchFieldAsync () - { - ApiResponse> localVarResponse = await AddressBookGetSearchFieldAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all the possible fields for search in address book - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<RubricaFieldDTO>) - public async System.Threading.Tasks.Task>> AddressBookGetSearchFieldAsyncWithHttpInfo () - { - - var localVarPath = "/api/AddressBook/SearchField"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetSearchField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the possible select fields for search in address book - /// - /// Thrown when fails to make API call - /// List<RubricaFieldDTO> - public List AddressBookGetSelectField () - { - ApiResponse> localVarResponse = AddressBookGetSelectFieldWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all the possible select fields for search in address book - /// - /// Thrown when fails to make API call - /// ApiResponse of List<RubricaFieldDTO> - public ApiResponse< List > AddressBookGetSelectFieldWithHttpInfo () - { - - var localVarPath = "/api/AddressBook/SelectField"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetSelectField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the possible select fields for search in address book - /// - /// Thrown when fails to make API call - /// Task of List<RubricaFieldDTO> - public async System.Threading.Tasks.Task> AddressBookGetSelectFieldAsync () - { - ApiResponse> localVarResponse = await AddressBookGetSelectFieldAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all the possible select fields for search in address book - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<RubricaFieldDTO>) - public async System.Threading.Tasks.Task>> AddressBookGetSelectFieldAsyncWithHttpInfo () - { - - var localVarPath = "/api/AddressBook/SelectField"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetSelectField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns user permissions for an AddressBook - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// UserPermissionsDTO - public UserPermissionsDTO AddressBookGetUserPermissionByAddrebookId (int? addressBookId) - { - ApiResponse localVarResponse = AddressBookGetUserPermissionByAddrebookIdWithHttpInfo(addressBookId); - return localVarResponse.Data; - } - - /// - /// This call returns user permissions for an AddressBook - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// ApiResponse of UserPermissionsDTO - public ApiResponse< UserPermissionsDTO > AddressBookGetUserPermissionByAddrebookIdWithHttpInfo (int? addressBookId) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookApi->AddressBookGetUserPermissionByAddrebookId"); - - var localVarPath = "/api/AddressBook/{addressBookId}/UserPermission"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetUserPermissionByAddrebookId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserPermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserPermissionsDTO))); - } - - /// - /// This call returns user permissions for an AddressBook - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// Task of UserPermissionsDTO - public async System.Threading.Tasks.Task AddressBookGetUserPermissionByAddrebookIdAsync (int? addressBookId) - { - ApiResponse localVarResponse = await AddressBookGetUserPermissionByAddrebookIdAsyncWithHttpInfo(addressBookId); - return localVarResponse.Data; - - } - - /// - /// This call returns user permissions for an AddressBook - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// Task of ApiResponse (UserPermissionsDTO) - public async System.Threading.Tasks.Task> AddressBookGetUserPermissionByAddrebookIdAsyncWithHttpInfo (int? addressBookId) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookApi->AddressBookGetUserPermissionByAddrebookId"); - - var localVarPath = "/api/AddressBook/{addressBookId}/UserPermission"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookGetUserPermissionByAddrebookId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserPermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserPermissionsDTO))); - } - - /// - /// This call inserts new addres book item - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// AddressBookDTO - public AddressBookDTO AddressBookInsertAddressBook (AddressBookDTO addressBookDto) - { - ApiResponse localVarResponse = AddressBookInsertAddressBookWithHttpInfo(addressBookDto); - return localVarResponse.Data; - } - - /// - /// This call inserts new addres book item - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// ApiResponse of AddressBookDTO - public ApiResponse< AddressBookDTO > AddressBookInsertAddressBookWithHttpInfo (AddressBookDTO addressBookDto) - { - // verify the required parameter 'addressBookDto' is set - if (addressBookDto == null) - throw new ApiException(400, "Missing required parameter 'addressBookDto' when calling AddressBookApi->AddressBookInsertAddressBook"); - - var localVarPath = "/api/AddressBook/addressbook"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookDto != null && addressBookDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookDto); // http body (model) parameter - } - else - { - localVarPostBody = addressBookDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookInsertAddressBook", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookDTO))); - } - - /// - /// This call inserts new addres book item - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// Task of AddressBookDTO - public async System.Threading.Tasks.Task AddressBookInsertAddressBookAsync (AddressBookDTO addressBookDto) - { - ApiResponse localVarResponse = await AddressBookInsertAddressBookAsyncWithHttpInfo(addressBookDto); - return localVarResponse.Data; - - } - - /// - /// This call inserts new addres book item - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// Task of ApiResponse (AddressBookDTO) - public async System.Threading.Tasks.Task> AddressBookInsertAddressBookAsyncWithHttpInfo (AddressBookDTO addressBookDto) - { - // verify the required parameter 'addressBookDto' is set - if (addressBookDto == null) - throw new ApiException(400, "Missing required parameter 'addressBookDto' when calling AddressBookApi->AddressBookInsertAddressBook"); - - var localVarPath = "/api/AddressBook/addressbook"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookDto != null && addressBookDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookDto); // http body (model) parameter - } - else - { - localVarPostBody = addressBookDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookInsertAddressBook", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookDTO))); - } - - /// - /// This call inserts new address book items - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// List<AddressBookDTO> - public List AddressBookInsertAddressBook_0 (List addressBookDtos) - { - ApiResponse> localVarResponse = AddressBookInsertAddressBook_0WithHttpInfo(addressBookDtos); - return localVarResponse.Data; - } - - /// - /// This call inserts new address book items - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// ApiResponse of List<AddressBookDTO> - public ApiResponse< List > AddressBookInsertAddressBook_0WithHttpInfo (List addressBookDtos) - { - // verify the required parameter 'addressBookDtos' is set - if (addressBookDtos == null) - throw new ApiException(400, "Missing required parameter 'addressBookDtos' when calling AddressBookApi->AddressBookInsertAddressBook_0"); - - var localVarPath = "/api/AddressBook/addressbooks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookDtos != null && addressBookDtos.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookDtos); // http body (model) parameter - } - else - { - localVarPostBody = addressBookDtos; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookInsertAddressBook_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts new address book items - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// Task of List<AddressBookDTO> - public async System.Threading.Tasks.Task> AddressBookInsertAddressBook_0Async (List addressBookDtos) - { - ApiResponse> localVarResponse = await AddressBookInsertAddressBook_0AsyncWithHttpInfo(addressBookDtos); - return localVarResponse.Data; - - } - - /// - /// This call inserts new address book items - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// Task of ApiResponse (List<AddressBookDTO>) - public async System.Threading.Tasks.Task>> AddressBookInsertAddressBook_0AsyncWithHttpInfo (List addressBookDtos) - { - // verify the required parameter 'addressBookDtos' is set - if (addressBookDtos == null) - throw new ApiException(400, "Missing required parameter 'addressBookDtos' when calling AddressBookApi->AddressBookInsertAddressBook_0"); - - var localVarPath = "/api/AddressBook/addressbooks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookDtos != null && addressBookDtos.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookDtos); // http body (model) parameter - } - else - { - localVarPostBody = addressBookDtos; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookInsertAddressBook_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts new contact of a address book item - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// ContactDTO - public ContactDTO AddressBookInsertContact (ContactDTO contactDto) - { - ApiResponse localVarResponse = AddressBookInsertContactWithHttpInfo(contactDto); - return localVarResponse.Data; - } - - /// - /// This call inserts new contact of a address book item - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// ApiResponse of ContactDTO - public ApiResponse< ContactDTO > AddressBookInsertContactWithHttpInfo (ContactDTO contactDto) - { - // verify the required parameter 'contactDto' is set - if (contactDto == null) - throw new ApiException(400, "Missing required parameter 'contactDto' when calling AddressBookApi->AddressBookInsertContact"); - - var localVarPath = "/api/AddressBook/contact"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactDto != null && contactDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(contactDto); // http body (model) parameter - } - else - { - localVarPostBody = contactDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookInsertContact", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ContactDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ContactDTO))); - } - - /// - /// This call inserts new contact of a address book item - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// Task of ContactDTO - public async System.Threading.Tasks.Task AddressBookInsertContactAsync (ContactDTO contactDto) - { - ApiResponse localVarResponse = await AddressBookInsertContactAsyncWithHttpInfo(contactDto); - return localVarResponse.Data; - - } - - /// - /// This call inserts new contact of a address book item - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// Task of ApiResponse (ContactDTO) - public async System.Threading.Tasks.Task> AddressBookInsertContactAsyncWithHttpInfo (ContactDTO contactDto) - { - // verify the required parameter 'contactDto' is set - if (contactDto == null) - throw new ApiException(400, "Missing required parameter 'contactDto' when calling AddressBookApi->AddressBookInsertContact"); - - var localVarPath = "/api/AddressBook/contact"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactDto != null && contactDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(contactDto); // http body (model) parameter - } - else - { - localVarPostBody = contactDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookInsertContact", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ContactDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ContactDTO))); - } - - /// - /// This call searches address book items - /// - /// Thrown when fails to make API call - /// The fields of the search - /// AddressBookSearchResultDTO - public AddressBookSearchResultDTO AddressBookPostSearch (AddressBookSearchCriteriaDTO searchDto) - { - ApiResponse localVarResponse = AddressBookPostSearchWithHttpInfo(searchDto); - return localVarResponse.Data; - } - - /// - /// This call searches address book items - /// - /// Thrown when fails to make API call - /// The fields of the search - /// ApiResponse of AddressBookSearchResultDTO - public ApiResponse< AddressBookSearchResultDTO > AddressBookPostSearchWithHttpInfo (AddressBookSearchCriteriaDTO searchDto) - { - // verify the required parameter 'searchDto' is set - if (searchDto == null) - throw new ApiException(400, "Missing required parameter 'searchDto' when calling AddressBookApi->AddressBookPostSearch"); - - var localVarPath = "/api/AddressBook"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchDto != null && searchDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchDto); // http body (model) parameter - } - else - { - localVarPostBody = searchDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookPostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookSearchResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookSearchResultDTO))); - } - - /// - /// This call searches address book items - /// - /// Thrown when fails to make API call - /// The fields of the search - /// Task of AddressBookSearchResultDTO - public async System.Threading.Tasks.Task AddressBookPostSearchAsync (AddressBookSearchCriteriaDTO searchDto) - { - ApiResponse localVarResponse = await AddressBookPostSearchAsyncWithHttpInfo(searchDto); - return localVarResponse.Data; - - } - - /// - /// This call searches address book items - /// - /// Thrown when fails to make API call - /// The fields of the search - /// Task of ApiResponse (AddressBookSearchResultDTO) - public async System.Threading.Tasks.Task> AddressBookPostSearchAsyncWithHttpInfo (AddressBookSearchCriteriaDTO searchDto) - { - // verify the required parameter 'searchDto' is set - if (searchDto == null) - throw new ApiException(400, "Missing required parameter 'searchDto' when calling AddressBookApi->AddressBookPostSearch"); - - var localVarPath = "/api/AddressBook"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchDto != null && searchDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchDto); // http body (model) parameter - } - else - { - localVarPostBody = searchDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookPostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookSearchResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookSearchResultDTO))); - } - - /// - /// This call saves the select fields with the user settings - /// - /// Thrown when fails to make API call - /// Array of select fields - /// - public void AddressBookPutSelectField (List selectFields) - { - AddressBookPutSelectFieldWithHttpInfo(selectFields); - } - - /// - /// This call saves the select fields with the user settings - /// - /// Thrown when fails to make API call - /// Array of select fields - /// ApiResponse of Object(void) - public ApiResponse AddressBookPutSelectFieldWithHttpInfo (List selectFields) - { - // verify the required parameter 'selectFields' is set - if (selectFields == null) - throw new ApiException(400, "Missing required parameter 'selectFields' when calling AddressBookApi->AddressBookPutSelectField"); - - var localVarPath = "/api/AddressBook/SelectField"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (selectFields != null && selectFields.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectFields); // http body (model) parameter - } - else - { - localVarPostBody = selectFields; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookPutSelectField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the select fields with the user settings - /// - /// Thrown when fails to make API call - /// Array of select fields - /// Task of void - public async System.Threading.Tasks.Task AddressBookPutSelectFieldAsync (List selectFields) - { - await AddressBookPutSelectFieldAsyncWithHttpInfo(selectFields); - - } - - /// - /// This call saves the select fields with the user settings - /// - /// Thrown when fails to make API call - /// Array of select fields - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddressBookPutSelectFieldAsyncWithHttpInfo (List selectFields) - { - // verify the required parameter 'selectFields' is set - if (selectFields == null) - throw new ApiException(400, "Missing required parameter 'selectFields' when calling AddressBookApi->AddressBookPutSelectField"); - - var localVarPath = "/api/AddressBook/SelectField"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (selectFields != null && selectFields.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectFields); // http body (model) parameter - } - else - { - localVarPostBody = selectFields; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookPutSelectField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves all permissions for an AddreBook - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// - /// - public void AddressBookSetPermissionByAddrebookId (int? addressBookId, PermissionsDTO permissions) - { - AddressBookSetPermissionByAddrebookIdWithHttpInfo(addressBookId, permissions); - } - - /// - /// This call saves all permissions for an AddreBook - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// - /// ApiResponse of Object(void) - public ApiResponse AddressBookSetPermissionByAddrebookIdWithHttpInfo (int? addressBookId, PermissionsDTO permissions) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookApi->AddressBookSetPermissionByAddrebookId"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling AddressBookApi->AddressBookSetPermissionByAddrebookId"); - - var localVarPath = "/api/AddressBook/{addressBookId}/Permission"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSetPermissionByAddrebookId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves all permissions for an AddreBook - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// - /// Task of void - public async System.Threading.Tasks.Task AddressBookSetPermissionByAddrebookIdAsync (int? addressBookId, PermissionsDTO permissions) - { - await AddressBookSetPermissionByAddrebookIdAsyncWithHttpInfo(addressBookId, permissions); - - } - - /// - /// This call saves all permissions for an AddreBook - /// - /// Thrown when fails to make API call - /// Id of the addressBook - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddressBookSetPermissionByAddrebookIdAsyncWithHttpInfo (int? addressBookId, PermissionsDTO permissions) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookApi->AddressBookSetPermissionByAddrebookId"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling AddressBookApi->AddressBookSetPermissionByAddrebookId"); - - var localVarPath = "/api/AddressBook/{addressBookId}/Permission"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSetPermissionByAddrebookId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates a addresbook item - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// AddressBookDTO - public AddressBookDTO AddressBookUpdateAddressBook (int? addressbookId, AddressBookDTO addressBookDto) - { - ApiResponse localVarResponse = AddressBookUpdateAddressBookWithHttpInfo(addressbookId, addressBookDto); - return localVarResponse.Data; - } - - /// - /// This call updates a addresbook item - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// ApiResponse of AddressBookDTO - public ApiResponse< AddressBookDTO > AddressBookUpdateAddressBookWithHttpInfo (int? addressbookId, AddressBookDTO addressBookDto) - { - // verify the required parameter 'addressbookId' is set - if (addressbookId == null) - throw new ApiException(400, "Missing required parameter 'addressbookId' when calling AddressBookApi->AddressBookUpdateAddressBook"); - // verify the required parameter 'addressBookDto' is set - if (addressBookDto == null) - throw new ApiException(400, "Missing required parameter 'addressBookDto' when calling AddressBookApi->AddressBookUpdateAddressBook"); - - var localVarPath = "/api/AddressBook/addressbook/{addressbookId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressbookId != null) localVarPathParams.Add("addressbookId", this.Configuration.ApiClient.ParameterToString(addressbookId)); // path parameter - if (addressBookDto != null && addressBookDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookDto); // http body (model) parameter - } - else - { - localVarPostBody = addressBookDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookUpdateAddressBook", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookDTO))); - } - - /// - /// This call updates a addresbook item - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// Task of AddressBookDTO - public async System.Threading.Tasks.Task AddressBookUpdateAddressBookAsync (int? addressbookId, AddressBookDTO addressBookDto) - { - ApiResponse localVarResponse = await AddressBookUpdateAddressBookAsyncWithHttpInfo(addressbookId, addressBookDto); - return localVarResponse.Data; - - } - - /// - /// This call updates a addresbook item - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// Task of ApiResponse (AddressBookDTO) - public async System.Threading.Tasks.Task> AddressBookUpdateAddressBookAsyncWithHttpInfo (int? addressbookId, AddressBookDTO addressBookDto) - { - // verify the required parameter 'addressbookId' is set - if (addressbookId == null) - throw new ApiException(400, "Missing required parameter 'addressbookId' when calling AddressBookApi->AddressBookUpdateAddressBook"); - // verify the required parameter 'addressBookDto' is set - if (addressBookDto == null) - throw new ApiException(400, "Missing required parameter 'addressBookDto' when calling AddressBookApi->AddressBookUpdateAddressBook"); - - var localVarPath = "/api/AddressBook/addressbook/{addressbookId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressbookId != null) localVarPathParams.Add("addressbookId", this.Configuration.ApiClient.ParameterToString(addressbookId)); // path parameter - if (addressBookDto != null && addressBookDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookDto); // http body (model) parameter - } - else - { - localVarPostBody = addressBookDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookUpdateAddressBook", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookDTO))); - } - - /// - /// This call updates a contact - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// ContactDTO - public ContactDTO AddressBookUpdateContact (ContactDTO contact) - { - ApiResponse localVarResponse = AddressBookUpdateContactWithHttpInfo(contact); - return localVarResponse.Data; - } - - /// - /// This call updates a contact - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// ApiResponse of ContactDTO - public ApiResponse< ContactDTO > AddressBookUpdateContactWithHttpInfo (ContactDTO contact) - { - // verify the required parameter 'contact' is set - if (contact == null) - throw new ApiException(400, "Missing required parameter 'contact' when calling AddressBookApi->AddressBookUpdateContact"); - - var localVarPath = "/api/AddressBook/contact"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contact != null && contact.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(contact); // http body (model) parameter - } - else - { - localVarPostBody = contact; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookUpdateContact", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ContactDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ContactDTO))); - } - - /// - /// This call updates a contact - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// Task of ContactDTO - public async System.Threading.Tasks.Task AddressBookUpdateContactAsync (ContactDTO contact) - { - ApiResponse localVarResponse = await AddressBookUpdateContactAsyncWithHttpInfo(contact); - return localVarResponse.Data; - - } - - /// - /// This call updates a contact - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// Task of ApiResponse (ContactDTO) - public async System.Threading.Tasks.Task> AddressBookUpdateContactAsyncWithHttpInfo (ContactDTO contact) - { - // verify the required parameter 'contact' is set - if (contact == null) - throw new ApiException(400, "Missing required parameter 'contact' when calling AddressBookApi->AddressBookUpdateContact"); - - var localVarPath = "/api/AddressBook/contact"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contact != null && contact.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(contact); // http body (model) parameter - } - else - { - localVarPostBody = contact; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookUpdateContact", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ContactDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ContactDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookCategoryApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/AddressBookCategoryApi.cs deleted file mode 100644 index b6edc02..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookCategoryApi.cs +++ /dev/null @@ -1,1077 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IAddressBookCategoryApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call delete an addressbook category by its Id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void AddressBookCategoryDelete (int? categoryId); - - /// - /// This call delete an addressbook category by its Id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse AddressBookCategoryDeleteWithHttpInfo (int? categoryId); - /// - /// This call returns all categories of address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<AddressBookCategoryDTO> - List AddressBookCategoryGet (); - - /// - /// This call returns all categories of address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<AddressBookCategoryDTO> - ApiResponse> AddressBookCategoryGetWithHttpInfo (); - /// - /// This call adds an addressbook category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void AddressBookCategoryPost (AddressBookCategoryDTO category); - - /// - /// This call adds an addressbook category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse AddressBookCategoryPostWithHttpInfo (AddressBookCategoryDTO category); - /// - /// This call rename an addressbook category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void AddressBookCategoryPut (AddressBookCategoryDTO category); - - /// - /// This call rename an addressbook category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse AddressBookCategoryPutWithHttpInfo (AddressBookCategoryDTO category); - /// - /// This call saves the user default address book category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book category to set as default - /// - void AddressBookCategoryPutDefault (int? addressBookCategoryId); - - /// - /// This call saves the user default address book category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book category to set as default - /// ApiResponse of Object(void) - ApiResponse AddressBookCategoryPutDefaultWithHttpInfo (int? addressBookCategoryId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call delete an addressbook category by its Id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task AddressBookCategoryDeleteAsync (int? categoryId); - - /// - /// This call delete an addressbook category by its Id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> AddressBookCategoryDeleteAsyncWithHttpInfo (int? categoryId); - /// - /// This call returns all categories of address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<AddressBookCategoryDTO> - System.Threading.Tasks.Task> AddressBookCategoryGetAsync (); - - /// - /// This call returns all categories of address book - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<AddressBookCategoryDTO>) - System.Threading.Tasks.Task>> AddressBookCategoryGetAsyncWithHttpInfo (); - /// - /// This call adds an addressbook category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task AddressBookCategoryPostAsync (AddressBookCategoryDTO category); - - /// - /// This call adds an addressbook category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> AddressBookCategoryPostAsyncWithHttpInfo (AddressBookCategoryDTO category); - /// - /// This call rename an addressbook category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task AddressBookCategoryPutAsync (AddressBookCategoryDTO category); - - /// - /// This call rename an addressbook category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> AddressBookCategoryPutAsyncWithHttpInfo (AddressBookCategoryDTO category); - /// - /// This call saves the user default address book category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book category to set as default - /// Task of void - System.Threading.Tasks.Task AddressBookCategoryPutDefaultAsync (int? addressBookCategoryId); - - /// - /// This call saves the user default address book category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book category to set as default - /// Task of ApiResponse - System.Threading.Tasks.Task> AddressBookCategoryPutDefaultAsyncWithHttpInfo (int? addressBookCategoryId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AddressBookCategoryApi : IAddressBookCategoryApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public AddressBookCategoryApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public AddressBookCategoryApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call delete an addressbook category by its Id - /// - /// Thrown when fails to make API call - /// - /// - public void AddressBookCategoryDelete (int? categoryId) - { - AddressBookCategoryDeleteWithHttpInfo(categoryId); - } - - /// - /// This call delete an addressbook category by its Id - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse AddressBookCategoryDeleteWithHttpInfo (int? categoryId) - { - // verify the required parameter 'categoryId' is set - if (categoryId == null) - throw new ApiException(400, "Missing required parameter 'categoryId' when calling AddressBookCategoryApi->AddressBookCategoryDelete"); - - var localVarPath = "/api/AddressBookCategory/{categoryId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (categoryId != null) localVarPathParams.Add("categoryId", this.Configuration.ApiClient.ParameterToString(categoryId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookCategoryDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call delete an addressbook category by its Id - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task AddressBookCategoryDeleteAsync (int? categoryId) - { - await AddressBookCategoryDeleteAsyncWithHttpInfo(categoryId); - - } - - /// - /// This call delete an addressbook category by its Id - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddressBookCategoryDeleteAsyncWithHttpInfo (int? categoryId) - { - // verify the required parameter 'categoryId' is set - if (categoryId == null) - throw new ApiException(400, "Missing required parameter 'categoryId' when calling AddressBookCategoryApi->AddressBookCategoryDelete"); - - var localVarPath = "/api/AddressBookCategory/{categoryId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (categoryId != null) localVarPathParams.Add("categoryId", this.Configuration.ApiClient.ParameterToString(categoryId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookCategoryDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all categories of address book - /// - /// Thrown when fails to make API call - /// List<AddressBookCategoryDTO> - public List AddressBookCategoryGet () - { - ApiResponse> localVarResponse = AddressBookCategoryGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all categories of address book - /// - /// Thrown when fails to make API call - /// ApiResponse of List<AddressBookCategoryDTO> - public ApiResponse< List > AddressBookCategoryGetWithHttpInfo () - { - - var localVarPath = "/api/AddressBookCategory"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookCategoryGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all categories of address book - /// - /// Thrown when fails to make API call - /// Task of List<AddressBookCategoryDTO> - public async System.Threading.Tasks.Task> AddressBookCategoryGetAsync () - { - ApiResponse> localVarResponse = await AddressBookCategoryGetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all categories of address book - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<AddressBookCategoryDTO>) - public async System.Threading.Tasks.Task>> AddressBookCategoryGetAsyncWithHttpInfo () - { - - var localVarPath = "/api/AddressBookCategory"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookCategoryGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds an addressbook category - /// - /// Thrown when fails to make API call - /// - /// - public void AddressBookCategoryPost (AddressBookCategoryDTO category) - { - AddressBookCategoryPostWithHttpInfo(category); - } - - /// - /// This call adds an addressbook category - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse AddressBookCategoryPostWithHttpInfo (AddressBookCategoryDTO category) - { - // verify the required parameter 'category' is set - if (category == null) - throw new ApiException(400, "Missing required parameter 'category' when calling AddressBookCategoryApi->AddressBookCategoryPost"); - - var localVarPath = "/api/AddressBookCategory"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (category != null && category.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(category); // http body (model) parameter - } - else - { - localVarPostBody = category; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookCategoryPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds an addressbook category - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task AddressBookCategoryPostAsync (AddressBookCategoryDTO category) - { - await AddressBookCategoryPostAsyncWithHttpInfo(category); - - } - - /// - /// This call adds an addressbook category - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddressBookCategoryPostAsyncWithHttpInfo (AddressBookCategoryDTO category) - { - // verify the required parameter 'category' is set - if (category == null) - throw new ApiException(400, "Missing required parameter 'category' when calling AddressBookCategoryApi->AddressBookCategoryPost"); - - var localVarPath = "/api/AddressBookCategory"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (category != null && category.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(category); // http body (model) parameter - } - else - { - localVarPostBody = category; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookCategoryPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call rename an addressbook category - /// - /// Thrown when fails to make API call - /// - /// - public void AddressBookCategoryPut (AddressBookCategoryDTO category) - { - AddressBookCategoryPutWithHttpInfo(category); - } - - /// - /// This call rename an addressbook category - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse AddressBookCategoryPutWithHttpInfo (AddressBookCategoryDTO category) - { - // verify the required parameter 'category' is set - if (category == null) - throw new ApiException(400, "Missing required parameter 'category' when calling AddressBookCategoryApi->AddressBookCategoryPut"); - - var localVarPath = "/api/AddressBookCategory"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (category != null && category.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(category); // http body (model) parameter - } - else - { - localVarPostBody = category; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookCategoryPut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call rename an addressbook category - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task AddressBookCategoryPutAsync (AddressBookCategoryDTO category) - { - await AddressBookCategoryPutAsyncWithHttpInfo(category); - - } - - /// - /// This call rename an addressbook category - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddressBookCategoryPutAsyncWithHttpInfo (AddressBookCategoryDTO category) - { - // verify the required parameter 'category' is set - if (category == null) - throw new ApiException(400, "Missing required parameter 'category' when calling AddressBookCategoryApi->AddressBookCategoryPut"); - - var localVarPath = "/api/AddressBookCategory"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (category != null && category.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(category); // http body (model) parameter - } - else - { - localVarPostBody = category; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookCategoryPut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the user default address book category - /// - /// Thrown when fails to make API call - /// Identifier of the address book category to set as default - /// - public void AddressBookCategoryPutDefault (int? addressBookCategoryId) - { - AddressBookCategoryPutDefaultWithHttpInfo(addressBookCategoryId); - } - - /// - /// This call saves the user default address book category - /// - /// Thrown when fails to make API call - /// Identifier of the address book category to set as default - /// ApiResponse of Object(void) - public ApiResponse AddressBookCategoryPutDefaultWithHttpInfo (int? addressBookCategoryId) - { - // verify the required parameter 'addressBookCategoryId' is set - if (addressBookCategoryId == null) - throw new ApiException(400, "Missing required parameter 'addressBookCategoryId' when calling AddressBookCategoryApi->AddressBookCategoryPutDefault"); - - var localVarPath = "/api/AddressBookCategory/{addressBookCategoryId}/Default"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookCategoryId != null) localVarPathParams.Add("addressBookCategoryId", this.Configuration.ApiClient.ParameterToString(addressBookCategoryId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookCategoryPutDefault", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the user default address book category - /// - /// Thrown when fails to make API call - /// Identifier of the address book category to set as default - /// Task of void - public async System.Threading.Tasks.Task AddressBookCategoryPutDefaultAsync (int? addressBookCategoryId) - { - await AddressBookCategoryPutDefaultAsyncWithHttpInfo(addressBookCategoryId); - - } - - /// - /// This call saves the user default address book category - /// - /// Thrown when fails to make API call - /// Identifier of the address book category to set as default - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddressBookCategoryPutDefaultAsyncWithHttpInfo (int? addressBookCategoryId) - { - // verify the required parameter 'addressBookCategoryId' is set - if (addressBookCategoryId == null) - throw new ApiException(400, "Missing required parameter 'addressBookCategoryId' when calling AddressBookCategoryApi->AddressBookCategoryPutDefault"); - - var localVarPath = "/api/AddressBookCategory/{addressBookCategoryId}/Default"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookCategoryId != null) localVarPathParams.Add("addressBookCategoryId", this.Configuration.ApiClient.ParameterToString(addressBookCategoryId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookCategoryPutDefault", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookNoteApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/AddressBookNoteApi.cs deleted file mode 100644 index 41efc81..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookNoteApi.cs +++ /dev/null @@ -1,912 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IAddressBookNoteApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes an addressbook note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void AddressBookNoteDeleteAddressBookNote (int? addressBookNoteId); - - /// - /// This call deletes an addressbook note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse AddressBookNoteDeleteAddressBookNoteWithHttpInfo (int? addressBookNoteId); - /// - /// This call returns all the notes created in an addressbook item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// System Id of the addressbook - /// List<AddressBookNoteDTO> - List AddressBookNoteGetByAddressBookId (int? addressBookId); - - /// - /// This call returns all the notes created in an addressbook item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// System Id of the addressbook - /// ApiResponse of List<AddressBookNoteDTO> - ApiResponse> AddressBookNoteGetByAddressBookIdWithHttpInfo (int? addressBookId); - /// - /// This call creates a note for an addressBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void AddressBookNoteInsertAddressBookNote (AddressBookNoteDTO addressBookNote); - - /// - /// This call creates a note for an addressBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse AddressBookNoteInsertAddressBookNoteWithHttpInfo (AddressBookNoteDTO addressBookNote); - /// - /// This call updates an addressbook note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void AddressBookNoteUpdateAddressBookNote (AddressBookNoteDTO addressBookNote); - - /// - /// This call updates an addressbook note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse AddressBookNoteUpdateAddressBookNoteWithHttpInfo (AddressBookNoteDTO addressBookNote); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes an addressbook note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task AddressBookNoteDeleteAddressBookNoteAsync (int? addressBookNoteId); - - /// - /// This call deletes an addressbook note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> AddressBookNoteDeleteAddressBookNoteAsyncWithHttpInfo (int? addressBookNoteId); - /// - /// This call returns all the notes created in an addressbook item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// System Id of the addressbook - /// Task of List<AddressBookNoteDTO> - System.Threading.Tasks.Task> AddressBookNoteGetByAddressBookIdAsync (int? addressBookId); - - /// - /// This call returns all the notes created in an addressbook item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// System Id of the addressbook - /// Task of ApiResponse (List<AddressBookNoteDTO>) - System.Threading.Tasks.Task>> AddressBookNoteGetByAddressBookIdAsyncWithHttpInfo (int? addressBookId); - /// - /// This call creates a note for an addressBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task AddressBookNoteInsertAddressBookNoteAsync (AddressBookNoteDTO addressBookNote); - - /// - /// This call creates a note for an addressBook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> AddressBookNoteInsertAddressBookNoteAsyncWithHttpInfo (AddressBookNoteDTO addressBookNote); - /// - /// This call updates an addressbook note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task AddressBookNoteUpdateAddressBookNoteAsync (AddressBookNoteDTO addressBookNote); - - /// - /// This call updates an addressbook note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> AddressBookNoteUpdateAddressBookNoteAsyncWithHttpInfo (AddressBookNoteDTO addressBookNote); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AddressBookNoteApi : IAddressBookNoteApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public AddressBookNoteApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public AddressBookNoteApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes an addressbook note - /// - /// Thrown when fails to make API call - /// - /// - public void AddressBookNoteDeleteAddressBookNote (int? addressBookNoteId) - { - AddressBookNoteDeleteAddressBookNoteWithHttpInfo(addressBookNoteId); - } - - /// - /// This call deletes an addressbook note - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse AddressBookNoteDeleteAddressBookNoteWithHttpInfo (int? addressBookNoteId) - { - // verify the required parameter 'addressBookNoteId' is set - if (addressBookNoteId == null) - throw new ApiException(400, "Missing required parameter 'addressBookNoteId' when calling AddressBookNoteApi->AddressBookNoteDeleteAddressBookNote"); - - var localVarPath = "/api/AddressBookNote/{addressBookNoteId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookNoteId != null) localVarPathParams.Add("addressBookNoteId", this.Configuration.ApiClient.ParameterToString(addressBookNoteId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookNoteDeleteAddressBookNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes an addressbook note - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task AddressBookNoteDeleteAddressBookNoteAsync (int? addressBookNoteId) - { - await AddressBookNoteDeleteAddressBookNoteAsyncWithHttpInfo(addressBookNoteId); - - } - - /// - /// This call deletes an addressbook note - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddressBookNoteDeleteAddressBookNoteAsyncWithHttpInfo (int? addressBookNoteId) - { - // verify the required parameter 'addressBookNoteId' is set - if (addressBookNoteId == null) - throw new ApiException(400, "Missing required parameter 'addressBookNoteId' when calling AddressBookNoteApi->AddressBookNoteDeleteAddressBookNote"); - - var localVarPath = "/api/AddressBookNote/{addressBookNoteId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookNoteId != null) localVarPathParams.Add("addressBookNoteId", this.Configuration.ApiClient.ParameterToString(addressBookNoteId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookNoteDeleteAddressBookNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all the notes created in an addressbook item - /// - /// Thrown when fails to make API call - /// System Id of the addressbook - /// List<AddressBookNoteDTO> - public List AddressBookNoteGetByAddressBookId (int? addressBookId) - { - ApiResponse> localVarResponse = AddressBookNoteGetByAddressBookIdWithHttpInfo(addressBookId); - return localVarResponse.Data; - } - - /// - /// This call returns all the notes created in an addressbook item - /// - /// Thrown when fails to make API call - /// System Id of the addressbook - /// ApiResponse of List<AddressBookNoteDTO> - public ApiResponse< List > AddressBookNoteGetByAddressBookIdWithHttpInfo (int? addressBookId) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookNoteApi->AddressBookNoteGetByAddressBookId"); - - var localVarPath = "/api/AddressBookNote/ByAddressBookId/{addressBookId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookNoteGetByAddressBookId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the notes created in an addressbook item - /// - /// Thrown when fails to make API call - /// System Id of the addressbook - /// Task of List<AddressBookNoteDTO> - public async System.Threading.Tasks.Task> AddressBookNoteGetByAddressBookIdAsync (int? addressBookId) - { - ApiResponse> localVarResponse = await AddressBookNoteGetByAddressBookIdAsyncWithHttpInfo(addressBookId); - return localVarResponse.Data; - - } - - /// - /// This call returns all the notes created in an addressbook item - /// - /// Thrown when fails to make API call - /// System Id of the addressbook - /// Task of ApiResponse (List<AddressBookNoteDTO>) - public async System.Threading.Tasks.Task>> AddressBookNoteGetByAddressBookIdAsyncWithHttpInfo (int? addressBookId) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookNoteApi->AddressBookNoteGetByAddressBookId"); - - var localVarPath = "/api/AddressBookNote/ByAddressBookId/{addressBookId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookNoteGetByAddressBookId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call creates a note for an addressBook - /// - /// Thrown when fails to make API call - /// - /// - public void AddressBookNoteInsertAddressBookNote (AddressBookNoteDTO addressBookNote) - { - AddressBookNoteInsertAddressBookNoteWithHttpInfo(addressBookNote); - } - - /// - /// This call creates a note for an addressBook - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse AddressBookNoteInsertAddressBookNoteWithHttpInfo (AddressBookNoteDTO addressBookNote) - { - // verify the required parameter 'addressBookNote' is set - if (addressBookNote == null) - throw new ApiException(400, "Missing required parameter 'addressBookNote' when calling AddressBookNoteApi->AddressBookNoteInsertAddressBookNote"); - - var localVarPath = "/api/AddressBookNote"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookNote != null && addressBookNote.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookNote); // http body (model) parameter - } - else - { - localVarPostBody = addressBookNote; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookNoteInsertAddressBookNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call creates a note for an addressBook - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task AddressBookNoteInsertAddressBookNoteAsync (AddressBookNoteDTO addressBookNote) - { - await AddressBookNoteInsertAddressBookNoteAsyncWithHttpInfo(addressBookNote); - - } - - /// - /// This call creates a note for an addressBook - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddressBookNoteInsertAddressBookNoteAsyncWithHttpInfo (AddressBookNoteDTO addressBookNote) - { - // verify the required parameter 'addressBookNote' is set - if (addressBookNote == null) - throw new ApiException(400, "Missing required parameter 'addressBookNote' when calling AddressBookNoteApi->AddressBookNoteInsertAddressBookNote"); - - var localVarPath = "/api/AddressBookNote"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookNote != null && addressBookNote.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookNote); // http body (model) parameter - } - else - { - localVarPostBody = addressBookNote; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookNoteInsertAddressBookNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates an addressbook note - /// - /// Thrown when fails to make API call - /// - /// - public void AddressBookNoteUpdateAddressBookNote (AddressBookNoteDTO addressBookNote) - { - AddressBookNoteUpdateAddressBookNoteWithHttpInfo(addressBookNote); - } - - /// - /// This call updates an addressbook note - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse AddressBookNoteUpdateAddressBookNoteWithHttpInfo (AddressBookNoteDTO addressBookNote) - { - // verify the required parameter 'addressBookNote' is set - if (addressBookNote == null) - throw new ApiException(400, "Missing required parameter 'addressBookNote' when calling AddressBookNoteApi->AddressBookNoteUpdateAddressBookNote"); - - var localVarPath = "/api/AddressBookNote"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookNote != null && addressBookNote.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookNote); // http body (model) parameter - } - else - { - localVarPostBody = addressBookNote; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookNoteUpdateAddressBookNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates an addressbook note - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task AddressBookNoteUpdateAddressBookNoteAsync (AddressBookNoteDTO addressBookNote) - { - await AddressBookNoteUpdateAddressBookNoteAsyncWithHttpInfo(addressBookNote); - - } - - /// - /// This call updates an addressbook note - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddressBookNoteUpdateAddressBookNoteAsyncWithHttpInfo (AddressBookNoteDTO addressBookNote) - { - // verify the required parameter 'addressBookNote' is set - if (addressBookNote == null) - throw new ApiException(400, "Missing required parameter 'addressBookNote' when calling AddressBookNoteApi->AddressBookNoteUpdateAddressBookNote"); - - var localVarPath = "/api/AddressBookNote"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookNote != null && addressBookNote.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookNote); // http body (model) parameter - } - else - { - localVarPostBody = addressBookNote; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookNoteUpdateAddressBookNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookSearchApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/AddressBookSearchApi.cs deleted file mode 100644 index a94422b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookSearchApi.cs +++ /dev/null @@ -1,695 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IAddressBookSearchApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// AddressBookSearchConcreteDTO - AddressBookSearchConcreteDTO AddressBookSearchGetSearch (); - - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of AddressBookSearchConcreteDTO - ApiResponse AddressBookSearchGetSearchWithHttpInfo (); - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SelectDTO - SelectDTO AddressBookSearchGetSelect (); - - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - ApiResponse AddressBookSearchGetSelectWithHttpInfo (); - /// - /// This call searches in address book with search and select DTO system - /// - /// - /// This method is deprecated. Use api/v2/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// List<RowSearchResult> - List AddressBookSearchPostSearch (AddressBookSearchConcreteCriteriaDTO searchCriteria); - - /// - /// This call searches in address book with search and select DTO system - /// - /// - /// This method is deprecated. Use api/v2/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<RowSearchResult> - ApiResponse> AddressBookSearchPostSearchWithHttpInfo (AddressBookSearchConcreteCriteriaDTO searchCriteria); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of AddressBookSearchConcreteDTO - System.Threading.Tasks.Task AddressBookSearchGetSearchAsync (); - - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (AddressBookSearchConcreteDTO) - System.Threading.Tasks.Task> AddressBookSearchGetSearchAsyncWithHttpInfo (); - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - System.Threading.Tasks.Task AddressBookSearchGetSelectAsync (); - - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> AddressBookSearchGetSelectAsyncWithHttpInfo (); - /// - /// This call searches in address book with search and select DTO system - /// - /// - /// This method is deprecated. Use api/v2/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> AddressBookSearchPostSearchAsync (AddressBookSearchConcreteCriteriaDTO searchCriteria); - - /// - /// This call searches in address book with search and select DTO system - /// - /// - /// This method is deprecated. Use api/v2/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> AddressBookSearchPostSearchAsyncWithHttpInfo (AddressBookSearchConcreteCriteriaDTO searchCriteria); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AddressBookSearchApi : IAddressBookSearchApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public AddressBookSearchApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public AddressBookSearchApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// AddressBookSearchConcreteDTO - public AddressBookSearchConcreteDTO AddressBookSearchGetSearch () - { - ApiResponse localVarResponse = AddressBookSearchGetSearchWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// ApiResponse of AddressBookSearchConcreteDTO - public ApiResponse< AddressBookSearchConcreteDTO > AddressBookSearchGetSearchWithHttpInfo () - { - - var localVarPath = "/api/AddressBookSearches/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchGetSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookSearchConcreteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookSearchConcreteDTO))); - } - - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// Task of AddressBookSearchConcreteDTO - public async System.Threading.Tasks.Task AddressBookSearchGetSearchAsync () - { - ApiResponse localVarResponse = await AddressBookSearchGetSearchAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (AddressBookSearchConcreteDTO) - public async System.Threading.Tasks.Task> AddressBookSearchGetSearchAsyncWithHttpInfo () - { - - var localVarPath = "/api/AddressBookSearches/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchGetSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookSearchConcreteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookSearchConcreteDTO))); - } - - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// SelectDTO - public SelectDTO AddressBookSearchGetSelect () - { - ApiResponse localVarResponse = AddressBookSearchGetSelectWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > AddressBookSearchGetSelectWithHttpInfo () - { - - var localVarPath = "/api/AddressBookSearches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchGetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - public async System.Threading.Tasks.Task AddressBookSearchGetSelectAsync () - { - ApiResponse localVarResponse = await AddressBookSearchGetSelectAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> AddressBookSearchGetSelectAsyncWithHttpInfo () - { - - var localVarPath = "/api/AddressBookSearches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchGetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call searches in address book with search and select DTO system This method is deprecated. Use api/v2/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// List<RowSearchResult> - public List AddressBookSearchPostSearch (AddressBookSearchConcreteCriteriaDTO searchCriteria) - { - ApiResponse> localVarResponse = AddressBookSearchPostSearchWithHttpInfo(searchCriteria); - return localVarResponse.Data; - } - - /// - /// This call searches in address book with search and select DTO system This method is deprecated. Use api/v2/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > AddressBookSearchPostSearchWithHttpInfo (AddressBookSearchConcreteCriteriaDTO searchCriteria) - { - // verify the required parameter 'searchCriteria' is set - if (searchCriteria == null) - throw new ApiException(400, "Missing required parameter 'searchCriteria' when calling AddressBookSearchApi->AddressBookSearchPostSearch"); - - var localVarPath = "/api/AddressBookSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchCriteria != null && searchCriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchCriteria); // http body (model) parameter - } - else - { - localVarPostBody = searchCriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchPostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call searches in address book with search and select DTO system This method is deprecated. Use api/v2/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> AddressBookSearchPostSearchAsync (AddressBookSearchConcreteCriteriaDTO searchCriteria) - { - ApiResponse> localVarResponse = await AddressBookSearchPostSearchAsyncWithHttpInfo(searchCriteria); - return localVarResponse.Data; - - } - - /// - /// This call searches in address book with search and select DTO system This method is deprecated. Use api/v2/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> AddressBookSearchPostSearchAsyncWithHttpInfo (AddressBookSearchConcreteCriteriaDTO searchCriteria) - { - // verify the required parameter 'searchCriteria' is set - if (searchCriteria == null) - throw new ApiException(400, "Missing required parameter 'searchCriteria' when calling AddressBookSearchApi->AddressBookSearchPostSearch"); - - var localVarPath = "/api/AddressBookSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchCriteria != null && searchCriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchCriteria); // http body (model) parameter - } - else - { - localVarPostBody = searchCriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchPostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookSearchV3Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/AddressBookSearchV3Api.cs deleted file mode 100644 index 453105a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookSearchV3Api.cs +++ /dev/null @@ -1,695 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IAddressBookSearchV3Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// AddressBookSearchConcreteDTO - AddressBookSearchConcreteDTO AddressBookSearchV3GetSearch (); - - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of AddressBookSearchConcreteDTO - ApiResponse AddressBookSearchV3GetSearchWithHttpInfo (); - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SelectDTO - SelectDTO AddressBookSearchV3GetSelect (); - - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - ApiResponse AddressBookSearchV3GetSelectWithHttpInfo (); - /// - /// This call searches in address book with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Object - Object AddressBookSearchV3PostSearch (AddressBookSearchConcreteCriteriaDTO searchCriteria); - - /// - /// This call searches in address book with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object - ApiResponse AddressBookSearchV3PostSearchWithHttpInfo (AddressBookSearchConcreteCriteriaDTO searchCriteria); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of AddressBookSearchConcreteDTO - System.Threading.Tasks.Task AddressBookSearchV3GetSearchAsync (); - - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (AddressBookSearchConcreteDTO) - System.Threading.Tasks.Task> AddressBookSearchV3GetSearchAsyncWithHttpInfo (); - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - System.Threading.Tasks.Task AddressBookSearchV3GetSelectAsync (); - - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> AddressBookSearchV3GetSelectAsyncWithHttpInfo (); - /// - /// This call searches in address book with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of Object - System.Threading.Tasks.Task AddressBookSearchV3PostSearchAsync (AddressBookSearchConcreteCriteriaDTO searchCriteria); - - /// - /// This call searches in address book with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> AddressBookSearchV3PostSearchAsyncWithHttpInfo (AddressBookSearchConcreteCriteriaDTO searchCriteria); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AddressBookSearchV3Api : IAddressBookSearchV3Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public AddressBookSearchV3Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public AddressBookSearchV3Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// AddressBookSearchConcreteDTO - public AddressBookSearchConcreteDTO AddressBookSearchV3GetSearch () - { - ApiResponse localVarResponse = AddressBookSearchV3GetSearchWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// ApiResponse of AddressBookSearchConcreteDTO - public ApiResponse< AddressBookSearchConcreteDTO > AddressBookSearchV3GetSearchWithHttpInfo () - { - - var localVarPath = "/api/v3/AddressBookSearches/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchV3GetSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookSearchConcreteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookSearchConcreteDTO))); - } - - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// Task of AddressBookSearchConcreteDTO - public async System.Threading.Tasks.Task AddressBookSearchV3GetSearchAsync () - { - ApiResponse localVarResponse = await AddressBookSearchV3GetSearchAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a searchDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (AddressBookSearchConcreteDTO) - public async System.Threading.Tasks.Task> AddressBookSearchV3GetSearchAsyncWithHttpInfo () - { - - var localVarPath = "/api/v3/AddressBookSearches/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchV3GetSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookSearchConcreteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookSearchConcreteDTO))); - } - - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// SelectDTO - public SelectDTO AddressBookSearchV3GetSelect () - { - ApiResponse localVarResponse = AddressBookSearchV3GetSelectWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > AddressBookSearchV3GetSelectWithHttpInfo () - { - - var localVarPath = "/api/v3/AddressBookSearches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchV3GetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - public async System.Threading.Tasks.Task AddressBookSearchV3GetSelectAsync () - { - ApiResponse localVarResponse = await AddressBookSearchV3GetSelectAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a selectDTO object for search in addressbook - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> AddressBookSearchV3GetSelectAsyncWithHttpInfo () - { - - var localVarPath = "/api/v3/AddressBookSearches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchV3GetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call searches in address book with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// Object - public Object AddressBookSearchV3PostSearch (AddressBookSearchConcreteCriteriaDTO searchCriteria) - { - ApiResponse localVarResponse = AddressBookSearchV3PostSearchWithHttpInfo(searchCriteria); - return localVarResponse.Data; - } - - /// - /// This call searches in address book with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object - public ApiResponse< Object > AddressBookSearchV3PostSearchWithHttpInfo (AddressBookSearchConcreteCriteriaDTO searchCriteria) - { - // verify the required parameter 'searchCriteria' is set - if (searchCriteria == null) - throw new ApiException(400, "Missing required parameter 'searchCriteria' when calling AddressBookSearchV3Api->AddressBookSearchV3PostSearch"); - - var localVarPath = "/api/v3/AddressBookSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchCriteria != null && searchCriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchCriteria); // http body (model) parameter - } - else - { - localVarPostBody = searchCriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchV3PostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call searches in address book with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// Task of Object - public async System.Threading.Tasks.Task AddressBookSearchV3PostSearchAsync (AddressBookSearchConcreteCriteriaDTO searchCriteria) - { - ApiResponse localVarResponse = await AddressBookSearchV3PostSearchAsyncWithHttpInfo(searchCriteria); - return localVarResponse.Data; - - } - - /// - /// This call searches in address book with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> AddressBookSearchV3PostSearchAsyncWithHttpInfo (AddressBookSearchConcreteCriteriaDTO searchCriteria) - { - // verify the required parameter 'searchCriteria' is set - if (searchCriteria == null) - throw new ApiException(400, "Missing required parameter 'searchCriteria' when calling AddressBookSearchV3Api->AddressBookSearchV3PostSearch"); - - var localVarPath = "/api/v3/AddressBookSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchCriteria != null && searchCriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchCriteria); // http body (model) parameter - } - else - { - localVarPostBody = searchCriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchV3PostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookSearchV4Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/AddressBookSearchV4Api.cs deleted file mode 100644 index bcdffde..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookSearchV4Api.cs +++ /dev/null @@ -1,695 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IAddressBookSearchV4Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns a searchDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// AddressBookSearchConcreteDTO - AddressBookSearchConcreteDTO AddressBookSearchV4GetSearch (); - - /// - /// This call returns a searchDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of AddressBookSearchConcreteDTO - ApiResponse AddressBookSearchV4GetSearchWithHttpInfo (); - /// - /// This call returns a selectDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SelectDTO - SelectDTO AddressBookSearchV4GetSelect (); - - /// - /// This call returns a selectDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - ApiResponse AddressBookSearchV4GetSelectWithHttpInfo (); - /// - /// This call searches in address book with search and select DTO system V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Object - Object AddressBookSearchV4PostSearch (AddressBookSearchConcreteCriteriaDTO searchCriteria); - - /// - /// This call searches in address book with search and select DTO system V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object - ApiResponse AddressBookSearchV4PostSearchWithHttpInfo (AddressBookSearchConcreteCriteriaDTO searchCriteria); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns a searchDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of AddressBookSearchConcreteDTO - System.Threading.Tasks.Task AddressBookSearchV4GetSearchAsync (); - - /// - /// This call returns a searchDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (AddressBookSearchConcreteDTO) - System.Threading.Tasks.Task> AddressBookSearchV4GetSearchAsyncWithHttpInfo (); - /// - /// This call returns a selectDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - System.Threading.Tasks.Task AddressBookSearchV4GetSelectAsync (); - - /// - /// This call returns a selectDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> AddressBookSearchV4GetSelectAsyncWithHttpInfo (); - /// - /// This call searches in address book with search and select DTO system V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of Object - System.Threading.Tasks.Task AddressBookSearchV4PostSearchAsync (AddressBookSearchConcreteCriteriaDTO searchCriteria); - - /// - /// This call searches in address book with search and select DTO system V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> AddressBookSearchV4PostSearchAsyncWithHttpInfo (AddressBookSearchConcreteCriteriaDTO searchCriteria); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AddressBookSearchV4Api : IAddressBookSearchV4Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public AddressBookSearchV4Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public AddressBookSearchV4Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns a searchDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// Thrown when fails to make API call - /// AddressBookSearchConcreteDTO - public AddressBookSearchConcreteDTO AddressBookSearchV4GetSearch () - { - ApiResponse localVarResponse = AddressBookSearchV4GetSearchWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a searchDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// Thrown when fails to make API call - /// ApiResponse of AddressBookSearchConcreteDTO - public ApiResponse< AddressBookSearchConcreteDTO > AddressBookSearchV4GetSearchWithHttpInfo () - { - - var localVarPath = "/api/v4/AddressBookSearches/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchV4GetSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookSearchConcreteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookSearchConcreteDTO))); - } - - /// - /// This call returns a searchDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// Thrown when fails to make API call - /// Task of AddressBookSearchConcreteDTO - public async System.Threading.Tasks.Task AddressBookSearchV4GetSearchAsync () - { - ApiResponse localVarResponse = await AddressBookSearchV4GetSearchAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a searchDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (AddressBookSearchConcreteDTO) - public async System.Threading.Tasks.Task> AddressBookSearchV4GetSearchAsyncWithHttpInfo () - { - - var localVarPath = "/api/v4/AddressBookSearches/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchV4GetSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookSearchConcreteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookSearchConcreteDTO))); - } - - /// - /// This call returns a selectDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// Thrown when fails to make API call - /// SelectDTO - public SelectDTO AddressBookSearchV4GetSelect () - { - ApiResponse localVarResponse = AddressBookSearchV4GetSelectWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a selectDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > AddressBookSearchV4GetSelectWithHttpInfo () - { - - var localVarPath = "/api/v4/AddressBookSearches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchV4GetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a selectDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - public async System.Threading.Tasks.Task AddressBookSearchV4GetSelectAsync () - { - ApiResponse localVarResponse = await AddressBookSearchV4GetSelectAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a selectDTO object for search in addressbook V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> AddressBookSearchV4GetSelectAsyncWithHttpInfo () - { - - var localVarPath = "/api/v4/AddressBookSearches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchV4GetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call searches in address book with search and select DTO system V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// Object - public Object AddressBookSearchV4PostSearch (AddressBookSearchConcreteCriteriaDTO searchCriteria) - { - ApiResponse localVarResponse = AddressBookSearchV4PostSearchWithHttpInfo(searchCriteria); - return localVarResponse.Data; - } - - /// - /// This call searches in address book with search and select DTO system V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object - public ApiResponse< Object > AddressBookSearchV4PostSearchWithHttpInfo (AddressBookSearchConcreteCriteriaDTO searchCriteria) - { - // verify the required parameter 'searchCriteria' is set - if (searchCriteria == null) - throw new ApiException(400, "Missing required parameter 'searchCriteria' when calling AddressBookSearchV4Api->AddressBookSearchV4PostSearch"); - - var localVarPath = "/api/v4/AddressBookSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchCriteria != null && searchCriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchCriteria); // http body (model) parameter - } - else - { - localVarPostBody = searchCriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchV4PostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call searches in address book with search and select DTO system V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// Task of Object - public async System.Threading.Tasks.Task AddressBookSearchV4PostSearchAsync (AddressBookSearchConcreteCriteriaDTO searchCriteria) - { - ApiResponse localVarResponse = await AddressBookSearchV4PostSearchAsyncWithHttpInfo(searchCriteria); - return localVarResponse.Data; - - } - - /// - /// This call searches in address book with search and select DTO system V4 (FEA fields, FirstName, LastName, OfficeCode, PublicAdministrationCode) This call could not be compatible with some programming language, in this case use the call api/AddressBookSearches - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> AddressBookSearchV4PostSearchAsyncWithHttpInfo (AddressBookSearchConcreteCriteriaDTO searchCriteria) - { - // verify the required parameter 'searchCriteria' is set - if (searchCriteria == null) - throw new ApiException(400, "Missing required parameter 'searchCriteria' when calling AddressBookSearchV4Api->AddressBookSearchV4PostSearch"); - - var localVarPath = "/api/v4/AddressBookSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchCriteria != null && searchCriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchCriteria); // http body (model) parameter - } - else - { - localVarPostBody = searchCriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookSearchV4PostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookV3Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/AddressBookV3Api.cs deleted file mode 100644 index ad45583..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookV3Api.cs +++ /dev/null @@ -1,345 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IAddressBookV3Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call searches address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The fields of the search - /// Object - Object AddressBookV3PostSearch (AddressBookSearchListCriteriaDTO searchDto); - - /// - /// This call searches address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The fields of the search - /// ApiResponse of Object - ApiResponse AddressBookV3PostSearchWithHttpInfo (AddressBookSearchListCriteriaDTO searchDto); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call searches address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The fields of the search - /// Task of Object - System.Threading.Tasks.Task AddressBookV3PostSearchAsync (AddressBookSearchListCriteriaDTO searchDto); - - /// - /// This call searches address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The fields of the search - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> AddressBookV3PostSearchAsyncWithHttpInfo (AddressBookSearchListCriteriaDTO searchDto); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AddressBookV3Api : IAddressBookV3Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public AddressBookV3Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public AddressBookV3Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call searches address book items - /// - /// Thrown when fails to make API call - /// The fields of the search - /// Object - public Object AddressBookV3PostSearch (AddressBookSearchListCriteriaDTO searchDto) - { - ApiResponse localVarResponse = AddressBookV3PostSearchWithHttpInfo(searchDto); - return localVarResponse.Data; - } - - /// - /// This call searches address book items - /// - /// Thrown when fails to make API call - /// The fields of the search - /// ApiResponse of Object - public ApiResponse< Object > AddressBookV3PostSearchWithHttpInfo (AddressBookSearchListCriteriaDTO searchDto) - { - // verify the required parameter 'searchDto' is set - if (searchDto == null) - throw new ApiException(400, "Missing required parameter 'searchDto' when calling AddressBookV3Api->AddressBookV3PostSearch"); - - var localVarPath = "/api/V3/AddressBook"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchDto != null && searchDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchDto); // http body (model) parameter - } - else - { - localVarPostBody = searchDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV3PostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call searches address book items - /// - /// Thrown when fails to make API call - /// The fields of the search - /// Task of Object - public async System.Threading.Tasks.Task AddressBookV3PostSearchAsync (AddressBookSearchListCriteriaDTO searchDto) - { - ApiResponse localVarResponse = await AddressBookV3PostSearchAsyncWithHttpInfo(searchDto); - return localVarResponse.Data; - - } - - /// - /// This call searches address book items - /// - /// Thrown when fails to make API call - /// The fields of the search - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> AddressBookV3PostSearchAsyncWithHttpInfo (AddressBookSearchListCriteriaDTO searchDto) - { - // verify the required parameter 'searchDto' is set - if (searchDto == null) - throw new ApiException(400, "Missing required parameter 'searchDto' when calling AddressBookV3Api->AddressBookV3PostSearch"); - - var localVarPath = "/api/V3/AddressBook"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchDto != null && searchDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchDto); // http body (model) parameter - } - else - { - localVarPostBody = searchDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV3PostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookV4Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/AddressBookV4Api.cs deleted file mode 100644 index 5aa9b47..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/AddressBookV4Api.cs +++ /dev/null @@ -1,2319 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IAddressBookV4Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns an adressbook by identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Adress book identifier - /// AddressBookV4DTO - AddressBookV4DTO AddressBookV4GetAddressBookById (int? addressBookId); - - /// - /// This call returns an adressbook by identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Adress book identifier - /// ApiResponse of AddressBookV4DTO - ApiResponse AddressBookV4GetAddressBookByIdWithHttpInfo (int? addressBookId); - /// - /// This call returns a contact by identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Contact identifier - /// ContactV4DTO - ContactV4DTO AddressBookV4GetContactById (int? contactId); - - /// - /// This call returns a contact by identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Contact identifier - /// ApiResponse of ContactV4DTO - ApiResponse AddressBookV4GetContactByIdWithHttpInfo (int? contactId); - /// - /// This call returns new AddreBook object for insert - /// - /// - /// - /// - /// Thrown when fails to make API call - /// AddressBookV4DTO - AddressBookV4DTO AddressBookV4GetForInsert (); - - /// - /// This call returns new AddreBook object for insert - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of AddressBookV4DTO - ApiResponse AddressBookV4GetForInsertWithHttpInfo (); - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// AddressBookV4DTO - AddressBookV4DTO AddressBookV4GetForInsert_0 (int? addressbookCategoryId); - - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// ApiResponse of AddressBookV4DTO - ApiResponse AddressBookV4GetForInsert_0WithHttpInfo (int? addressbookCategoryId); - /// - /// This call returns all the possible fields for search in address book V4 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<RubricaFieldDTO> - List AddressBookV4GetSearchField (); - - /// - /// This call returns all the possible fields for search in address book V4 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<RubricaFieldDTO> - ApiResponse> AddressBookV4GetSearchFieldWithHttpInfo (); - /// - /// This call returns all the possible select fields for search in address book V4 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<RubricaFieldDTO> - List AddressBookV4GetSelectField (); - - /// - /// This call returns all the possible select fields for search in address book V4 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<RubricaFieldDTO> - ApiResponse> AddressBookV4GetSelectFieldWithHttpInfo (); - /// - /// This call inserts new addres book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// AddressBookV4DTO - AddressBookV4DTO AddressBookV4InsertAddressBook (AddressBookV4DTO addressBookV4Dto); - - /// - /// This call inserts new addres book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// ApiResponse of AddressBookV4DTO - ApiResponse AddressBookV4InsertAddressBookWithHttpInfo (AddressBookV4DTO addressBookV4Dto); - /// - /// This call inserts new address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// List<AddressBookV4DTO> - List AddressBookV4InsertAddressBook_0 (List addressBookDtos); - - /// - /// This call inserts new address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// ApiResponse of List<AddressBookV4DTO> - ApiResponse> AddressBookV4InsertAddressBook_0WithHttpInfo (List addressBookDtos); - /// - /// This call inserts new contact of a address book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// ContactV4DTO - ContactV4DTO AddressBookV4InsertContact (ContactV4DTO contactV4Dto); - - /// - /// This call inserts new contact of a address book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// ApiResponse of ContactV4DTO - ApiResponse AddressBookV4InsertContactWithHttpInfo (ContactV4DTO contactV4Dto); - /// - /// This call updates a addresbook item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// AddressBookV4DTO - AddressBookV4DTO AddressBookV4UpdateAddressBook (int? addressbookId, AddressBookV4DTO addressBookV4Dto); - - /// - /// This call updates a addresbook item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// ApiResponse of AddressBookV4DTO - ApiResponse AddressBookV4UpdateAddressBookWithHttpInfo (int? addressbookId, AddressBookV4DTO addressBookV4Dto); - /// - /// This call updates a contact - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// ContactV4DTO - ContactV4DTO AddressBookV4UpdateContact (ContactV4DTO contact); - - /// - /// This call updates a contact - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// ApiResponse of ContactV4DTO - ApiResponse AddressBookV4UpdateContactWithHttpInfo (ContactV4DTO contact); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns an adressbook by identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Adress book identifier - /// Task of AddressBookV4DTO - System.Threading.Tasks.Task AddressBookV4GetAddressBookByIdAsync (int? addressBookId); - - /// - /// This call returns an adressbook by identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Adress book identifier - /// Task of ApiResponse (AddressBookV4DTO) - System.Threading.Tasks.Task> AddressBookV4GetAddressBookByIdAsyncWithHttpInfo (int? addressBookId); - /// - /// This call returns a contact by identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Contact identifier - /// Task of ContactV4DTO - System.Threading.Tasks.Task AddressBookV4GetContactByIdAsync (int? contactId); - - /// - /// This call returns a contact by identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Contact identifier - /// Task of ApiResponse (ContactV4DTO) - System.Threading.Tasks.Task> AddressBookV4GetContactByIdAsyncWithHttpInfo (int? contactId); - /// - /// This call returns new AddreBook object for insert - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of AddressBookV4DTO - System.Threading.Tasks.Task AddressBookV4GetForInsertAsync (); - - /// - /// This call returns new AddreBook object for insert - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (AddressBookV4DTO) - System.Threading.Tasks.Task> AddressBookV4GetForInsertAsyncWithHttpInfo (); - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// Task of AddressBookV4DTO - System.Threading.Tasks.Task AddressBookV4GetForInsert_0Async (int? addressbookCategoryId); - - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// Task of ApiResponse (AddressBookV4DTO) - System.Threading.Tasks.Task> AddressBookV4GetForInsert_0AsyncWithHttpInfo (int? addressbookCategoryId); - /// - /// This call returns all the possible fields for search in address book V4 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<RubricaFieldDTO> - System.Threading.Tasks.Task> AddressBookV4GetSearchFieldAsync (); - - /// - /// This call returns all the possible fields for search in address book V4 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<RubricaFieldDTO>) - System.Threading.Tasks.Task>> AddressBookV4GetSearchFieldAsyncWithHttpInfo (); - /// - /// This call returns all the possible select fields for search in address book V4 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<RubricaFieldDTO> - System.Threading.Tasks.Task> AddressBookV4GetSelectFieldAsync (); - - /// - /// This call returns all the possible select fields for search in address book V4 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<RubricaFieldDTO>) - System.Threading.Tasks.Task>> AddressBookV4GetSelectFieldAsyncWithHttpInfo (); - /// - /// This call inserts new addres book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// Task of AddressBookV4DTO - System.Threading.Tasks.Task AddressBookV4InsertAddressBookAsync (AddressBookV4DTO addressBookV4Dto); - - /// - /// This call inserts new addres book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// Task of ApiResponse (AddressBookV4DTO) - System.Threading.Tasks.Task> AddressBookV4InsertAddressBookAsyncWithHttpInfo (AddressBookV4DTO addressBookV4Dto); - /// - /// This call inserts new address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// Task of List<AddressBookV4DTO> - System.Threading.Tasks.Task> AddressBookV4InsertAddressBook_0Async (List addressBookDtos); - - /// - /// This call inserts new address book items - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// Task of ApiResponse (List<AddressBookV4DTO>) - System.Threading.Tasks.Task>> AddressBookV4InsertAddressBook_0AsyncWithHttpInfo (List addressBookDtos); - /// - /// This call inserts new contact of a address book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// Task of ContactV4DTO - System.Threading.Tasks.Task AddressBookV4InsertContactAsync (ContactV4DTO contactV4Dto); - - /// - /// This call inserts new contact of a address book item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// Task of ApiResponse (ContactV4DTO) - System.Threading.Tasks.Task> AddressBookV4InsertContactAsyncWithHttpInfo (ContactV4DTO contactV4Dto); - /// - /// This call updates a addresbook item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// Task of AddressBookV4DTO - System.Threading.Tasks.Task AddressBookV4UpdateAddressBookAsync (int? addressbookId, AddressBookV4DTO addressBookV4Dto); - - /// - /// This call updates a addresbook item - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// Task of ApiResponse (AddressBookV4DTO) - System.Threading.Tasks.Task> AddressBookV4UpdateAddressBookAsyncWithHttpInfo (int? addressbookId, AddressBookV4DTO addressBookV4Dto); - /// - /// This call updates a contact - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// Task of ContactV4DTO - System.Threading.Tasks.Task AddressBookV4UpdateContactAsync (ContactV4DTO contact); - - /// - /// This call updates a contact - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// Task of ApiResponse (ContactV4DTO) - System.Threading.Tasks.Task> AddressBookV4UpdateContactAsyncWithHttpInfo (ContactV4DTO contact); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AddressBookV4Api : IAddressBookV4Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public AddressBookV4Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public AddressBookV4Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns an adressbook by identifier - /// - /// Thrown when fails to make API call - /// Adress book identifier - /// AddressBookV4DTO - public AddressBookV4DTO AddressBookV4GetAddressBookById (int? addressBookId) - { - ApiResponse localVarResponse = AddressBookV4GetAddressBookByIdWithHttpInfo(addressBookId); - return localVarResponse.Data; - } - - /// - /// This call returns an adressbook by identifier - /// - /// Thrown when fails to make API call - /// Adress book identifier - /// ApiResponse of AddressBookV4DTO - public ApiResponse< AddressBookV4DTO > AddressBookV4GetAddressBookByIdWithHttpInfo (int? addressBookId) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookV4Api->AddressBookV4GetAddressBookById"); - - var localVarPath = "/api/V4/AddressBook/addressbook/{addressBookId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4GetAddressBookById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookV4DTO))); - } - - /// - /// This call returns an adressbook by identifier - /// - /// Thrown when fails to make API call - /// Adress book identifier - /// Task of AddressBookV4DTO - public async System.Threading.Tasks.Task AddressBookV4GetAddressBookByIdAsync (int? addressBookId) - { - ApiResponse localVarResponse = await AddressBookV4GetAddressBookByIdAsyncWithHttpInfo(addressBookId); - return localVarResponse.Data; - - } - - /// - /// This call returns an adressbook by identifier - /// - /// Thrown when fails to make API call - /// Adress book identifier - /// Task of ApiResponse (AddressBookV4DTO) - public async System.Threading.Tasks.Task> AddressBookV4GetAddressBookByIdAsyncWithHttpInfo (int? addressBookId) - { - // verify the required parameter 'addressBookId' is set - if (addressBookId == null) - throw new ApiException(400, "Missing required parameter 'addressBookId' when calling AddressBookV4Api->AddressBookV4GetAddressBookById"); - - var localVarPath = "/api/V4/AddressBook/addressbook/{addressBookId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookId != null) localVarPathParams.Add("addressBookId", this.Configuration.ApiClient.ParameterToString(addressBookId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4GetAddressBookById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookV4DTO))); - } - - /// - /// This call returns a contact by identifier - /// - /// Thrown when fails to make API call - /// Contact identifier - /// ContactV4DTO - public ContactV4DTO AddressBookV4GetContactById (int? contactId) - { - ApiResponse localVarResponse = AddressBookV4GetContactByIdWithHttpInfo(contactId); - return localVarResponse.Data; - } - - /// - /// This call returns a contact by identifier - /// - /// Thrown when fails to make API call - /// Contact identifier - /// ApiResponse of ContactV4DTO - public ApiResponse< ContactV4DTO > AddressBookV4GetContactByIdWithHttpInfo (int? contactId) - { - // verify the required parameter 'contactId' is set - if (contactId == null) - throw new ApiException(400, "Missing required parameter 'contactId' when calling AddressBookV4Api->AddressBookV4GetContactById"); - - var localVarPath = "/api/V4/AddressBook/contact/{contactId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactId != null) localVarPathParams.Add("contactId", this.Configuration.ApiClient.ParameterToString(contactId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4GetContactById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ContactV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ContactV4DTO))); - } - - /// - /// This call returns a contact by identifier - /// - /// Thrown when fails to make API call - /// Contact identifier - /// Task of ContactV4DTO - public async System.Threading.Tasks.Task AddressBookV4GetContactByIdAsync (int? contactId) - { - ApiResponse localVarResponse = await AddressBookV4GetContactByIdAsyncWithHttpInfo(contactId); - return localVarResponse.Data; - - } - - /// - /// This call returns a contact by identifier - /// - /// Thrown when fails to make API call - /// Contact identifier - /// Task of ApiResponse (ContactV4DTO) - public async System.Threading.Tasks.Task> AddressBookV4GetContactByIdAsyncWithHttpInfo (int? contactId) - { - // verify the required parameter 'contactId' is set - if (contactId == null) - throw new ApiException(400, "Missing required parameter 'contactId' when calling AddressBookV4Api->AddressBookV4GetContactById"); - - var localVarPath = "/api/V4/AddressBook/contact/{contactId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactId != null) localVarPathParams.Add("contactId", this.Configuration.ApiClient.ParameterToString(contactId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4GetContactById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ContactV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ContactV4DTO))); - } - - /// - /// This call returns new AddreBook object for insert - /// - /// Thrown when fails to make API call - /// AddressBookV4DTO - public AddressBookV4DTO AddressBookV4GetForInsert () - { - ApiResponse localVarResponse = AddressBookV4GetForInsertWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns new AddreBook object for insert - /// - /// Thrown when fails to make API call - /// ApiResponse of AddressBookV4DTO - public ApiResponse< AddressBookV4DTO > AddressBookV4GetForInsertWithHttpInfo () - { - - var localVarPath = "/api/V4/AddressBook/newinstance"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4GetForInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookV4DTO))); - } - - /// - /// This call returns new AddreBook object for insert - /// - /// Thrown when fails to make API call - /// Task of AddressBookV4DTO - public async System.Threading.Tasks.Task AddressBookV4GetForInsertAsync () - { - ApiResponse localVarResponse = await AddressBookV4GetForInsertAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns new AddreBook object for insert - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (AddressBookV4DTO) - public async System.Threading.Tasks.Task> AddressBookV4GetForInsertAsyncWithHttpInfo () - { - - var localVarPath = "/api/V4/AddressBook/newinstance"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4GetForInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookV4DTO))); - } - - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// AddressBookV4DTO - public AddressBookV4DTO AddressBookV4GetForInsert_0 (int? addressbookCategoryId) - { - ApiResponse localVarResponse = AddressBookV4GetForInsert_0WithHttpInfo(addressbookCategoryId); - return localVarResponse.Data; - } - - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// ApiResponse of AddressBookV4DTO - public ApiResponse< AddressBookV4DTO > AddressBookV4GetForInsert_0WithHttpInfo (int? addressbookCategoryId) - { - // verify the required parameter 'addressbookCategoryId' is set - if (addressbookCategoryId == null) - throw new ApiException(400, "Missing required parameter 'addressbookCategoryId' when calling AddressBookV4Api->AddressBookV4GetForInsert_0"); - - var localVarPath = "/api/V4/AddressBook/newinstance/{addressbookCategoryId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressbookCategoryId != null) localVarPathParams.Add("addressbookCategoryId", this.Configuration.ApiClient.ParameterToString(addressbookCategoryId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4GetForInsert_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookV4DTO))); - } - - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// Task of AddressBookV4DTO - public async System.Threading.Tasks.Task AddressBookV4GetForInsert_0Async (int? addressbookCategoryId) - { - ApiResponse localVarResponse = await AddressBookV4GetForInsert_0AsyncWithHttpInfo(addressbookCategoryId); - return localVarResponse.Data; - - } - - /// - /// This call returns new AddreBookDTO for insert purpose by category - /// - /// Thrown when fails to make API call - /// Identifier of the address book category - /// Task of ApiResponse (AddressBookV4DTO) - public async System.Threading.Tasks.Task> AddressBookV4GetForInsert_0AsyncWithHttpInfo (int? addressbookCategoryId) - { - // verify the required parameter 'addressbookCategoryId' is set - if (addressbookCategoryId == null) - throw new ApiException(400, "Missing required parameter 'addressbookCategoryId' when calling AddressBookV4Api->AddressBookV4GetForInsert_0"); - - var localVarPath = "/api/V4/AddressBook/newinstance/{addressbookCategoryId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressbookCategoryId != null) localVarPathParams.Add("addressbookCategoryId", this.Configuration.ApiClient.ParameterToString(addressbookCategoryId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4GetForInsert_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookV4DTO))); - } - - /// - /// This call returns all the possible fields for search in address book V4 - /// - /// Thrown when fails to make API call - /// List<RubricaFieldDTO> - public List AddressBookV4GetSearchField () - { - ApiResponse> localVarResponse = AddressBookV4GetSearchFieldWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all the possible fields for search in address book V4 - /// - /// Thrown when fails to make API call - /// ApiResponse of List<RubricaFieldDTO> - public ApiResponse< List > AddressBookV4GetSearchFieldWithHttpInfo () - { - - var localVarPath = "/api/V4/AddressBook/SearchField"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4GetSearchField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the possible fields for search in address book V4 - /// - /// Thrown when fails to make API call - /// Task of List<RubricaFieldDTO> - public async System.Threading.Tasks.Task> AddressBookV4GetSearchFieldAsync () - { - ApiResponse> localVarResponse = await AddressBookV4GetSearchFieldAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all the possible fields for search in address book V4 - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<RubricaFieldDTO>) - public async System.Threading.Tasks.Task>> AddressBookV4GetSearchFieldAsyncWithHttpInfo () - { - - var localVarPath = "/api/V4/AddressBook/SearchField"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4GetSearchField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the possible select fields for search in address book V4 - /// - /// Thrown when fails to make API call - /// List<RubricaFieldDTO> - public List AddressBookV4GetSelectField () - { - ApiResponse> localVarResponse = AddressBookV4GetSelectFieldWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all the possible select fields for search in address book V4 - /// - /// Thrown when fails to make API call - /// ApiResponse of List<RubricaFieldDTO> - public ApiResponse< List > AddressBookV4GetSelectFieldWithHttpInfo () - { - - var localVarPath = "/api/V4/AddressBook/SelectField"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4GetSelectField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the possible select fields for search in address book V4 - /// - /// Thrown when fails to make API call - /// Task of List<RubricaFieldDTO> - public async System.Threading.Tasks.Task> AddressBookV4GetSelectFieldAsync () - { - ApiResponse> localVarResponse = await AddressBookV4GetSelectFieldAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all the possible select fields for search in address book V4 - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<RubricaFieldDTO>) - public async System.Threading.Tasks.Task>> AddressBookV4GetSelectFieldAsyncWithHttpInfo () - { - - var localVarPath = "/api/V4/AddressBook/SelectField"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4GetSelectField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts new addres book item - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// AddressBookV4DTO - public AddressBookV4DTO AddressBookV4InsertAddressBook (AddressBookV4DTO addressBookV4Dto) - { - ApiResponse localVarResponse = AddressBookV4InsertAddressBookWithHttpInfo(addressBookV4Dto); - return localVarResponse.Data; - } - - /// - /// This call inserts new addres book item - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// ApiResponse of AddressBookV4DTO - public ApiResponse< AddressBookV4DTO > AddressBookV4InsertAddressBookWithHttpInfo (AddressBookV4DTO addressBookV4Dto) - { - // verify the required parameter 'addressBookV4Dto' is set - if (addressBookV4Dto == null) - throw new ApiException(400, "Missing required parameter 'addressBookV4Dto' when calling AddressBookV4Api->AddressBookV4InsertAddressBook"); - - var localVarPath = "/api/V4/AddressBook/addressbook"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookV4Dto != null && addressBookV4Dto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookV4Dto); // http body (model) parameter - } - else - { - localVarPostBody = addressBookV4Dto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4InsertAddressBook", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookV4DTO))); - } - - /// - /// This call inserts new addres book item - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// Task of AddressBookV4DTO - public async System.Threading.Tasks.Task AddressBookV4InsertAddressBookAsync (AddressBookV4DTO addressBookV4Dto) - { - ApiResponse localVarResponse = await AddressBookV4InsertAddressBookAsyncWithHttpInfo(addressBookV4Dto); - return localVarResponse.Data; - - } - - /// - /// This call inserts new addres book item - /// - /// Thrown when fails to make API call - /// Address book item to profile - /// Task of ApiResponse (AddressBookV4DTO) - public async System.Threading.Tasks.Task> AddressBookV4InsertAddressBookAsyncWithHttpInfo (AddressBookV4DTO addressBookV4Dto) - { - // verify the required parameter 'addressBookV4Dto' is set - if (addressBookV4Dto == null) - throw new ApiException(400, "Missing required parameter 'addressBookV4Dto' when calling AddressBookV4Api->AddressBookV4InsertAddressBook"); - - var localVarPath = "/api/V4/AddressBook/addressbook"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookV4Dto != null && addressBookV4Dto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookV4Dto); // http body (model) parameter - } - else - { - localVarPostBody = addressBookV4Dto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4InsertAddressBook", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookV4DTO))); - } - - /// - /// This call inserts new address book items - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// List<AddressBookV4DTO> - public List AddressBookV4InsertAddressBook_0 (List addressBookDtos) - { - ApiResponse> localVarResponse = AddressBookV4InsertAddressBook_0WithHttpInfo(addressBookDtos); - return localVarResponse.Data; - } - - /// - /// This call inserts new address book items - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// ApiResponse of List<AddressBookV4DTO> - public ApiResponse< List > AddressBookV4InsertAddressBook_0WithHttpInfo (List addressBookDtos) - { - // verify the required parameter 'addressBookDtos' is set - if (addressBookDtos == null) - throw new ApiException(400, "Missing required parameter 'addressBookDtos' when calling AddressBookV4Api->AddressBookV4InsertAddressBook_0"); - - var localVarPath = "/api/V4/AddressBook/addressbooks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookDtos != null && addressBookDtos.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookDtos); // http body (model) parameter - } - else - { - localVarPostBody = addressBookDtos; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4InsertAddressBook_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts new address book items - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// Task of List<AddressBookV4DTO> - public async System.Threading.Tasks.Task> AddressBookV4InsertAddressBook_0Async (List addressBookDtos) - { - ApiResponse> localVarResponse = await AddressBookV4InsertAddressBook_0AsyncWithHttpInfo(addressBookDtos); - return localVarResponse.Data; - - } - - /// - /// This call inserts new address book items - /// - /// Thrown when fails to make API call - /// Address book items to profile - /// Task of ApiResponse (List<AddressBookV4DTO>) - public async System.Threading.Tasks.Task>> AddressBookV4InsertAddressBook_0AsyncWithHttpInfo (List addressBookDtos) - { - // verify the required parameter 'addressBookDtos' is set - if (addressBookDtos == null) - throw new ApiException(400, "Missing required parameter 'addressBookDtos' when calling AddressBookV4Api->AddressBookV4InsertAddressBook_0"); - - var localVarPath = "/api/V4/AddressBook/addressbooks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressBookDtos != null && addressBookDtos.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookDtos); // http body (model) parameter - } - else - { - localVarPostBody = addressBookDtos; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4InsertAddressBook_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts new contact of a address book item - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// ContactV4DTO - public ContactV4DTO AddressBookV4InsertContact (ContactV4DTO contactV4Dto) - { - ApiResponse localVarResponse = AddressBookV4InsertContactWithHttpInfo(contactV4Dto); - return localVarResponse.Data; - } - - /// - /// This call inserts new contact of a address book item - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// ApiResponse of ContactV4DTO - public ApiResponse< ContactV4DTO > AddressBookV4InsertContactWithHttpInfo (ContactV4DTO contactV4Dto) - { - // verify the required parameter 'contactV4Dto' is set - if (contactV4Dto == null) - throw new ApiException(400, "Missing required parameter 'contactV4Dto' when calling AddressBookV4Api->AddressBookV4InsertContact"); - - var localVarPath = "/api/V4/AddressBook/contact"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactV4Dto != null && contactV4Dto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(contactV4Dto); // http body (model) parameter - } - else - { - localVarPostBody = contactV4Dto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4InsertContact", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ContactV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ContactV4DTO))); - } - - /// - /// This call inserts new contact of a address book item - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// Task of ContactV4DTO - public async System.Threading.Tasks.Task AddressBookV4InsertContactAsync (ContactV4DTO contactV4Dto) - { - ApiResponse localVarResponse = await AddressBookV4InsertContactAsyncWithHttpInfo(contactV4Dto); - return localVarResponse.Data; - - } - - /// - /// This call inserts new contact of a address book item - /// - /// Thrown when fails to make API call - /// Contact item to insert - /// Task of ApiResponse (ContactV4DTO) - public async System.Threading.Tasks.Task> AddressBookV4InsertContactAsyncWithHttpInfo (ContactV4DTO contactV4Dto) - { - // verify the required parameter 'contactV4Dto' is set - if (contactV4Dto == null) - throw new ApiException(400, "Missing required parameter 'contactV4Dto' when calling AddressBookV4Api->AddressBookV4InsertContact"); - - var localVarPath = "/api/V4/AddressBook/contact"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactV4Dto != null && contactV4Dto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(contactV4Dto); // http body (model) parameter - } - else - { - localVarPostBody = contactV4Dto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4InsertContact", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ContactV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ContactV4DTO))); - } - - /// - /// This call updates a addresbook item - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// AddressBookV4DTO - public AddressBookV4DTO AddressBookV4UpdateAddressBook (int? addressbookId, AddressBookV4DTO addressBookV4Dto) - { - ApiResponse localVarResponse = AddressBookV4UpdateAddressBookWithHttpInfo(addressbookId, addressBookV4Dto); - return localVarResponse.Data; - } - - /// - /// This call updates a addresbook item - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// ApiResponse of AddressBookV4DTO - public ApiResponse< AddressBookV4DTO > AddressBookV4UpdateAddressBookWithHttpInfo (int? addressbookId, AddressBookV4DTO addressBookV4Dto) - { - // verify the required parameter 'addressbookId' is set - if (addressbookId == null) - throw new ApiException(400, "Missing required parameter 'addressbookId' when calling AddressBookV4Api->AddressBookV4UpdateAddressBook"); - // verify the required parameter 'addressBookV4Dto' is set - if (addressBookV4Dto == null) - throw new ApiException(400, "Missing required parameter 'addressBookV4Dto' when calling AddressBookV4Api->AddressBookV4UpdateAddressBook"); - - var localVarPath = "/api/V4/AddressBook/addressbook/{addressbookId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressbookId != null) localVarPathParams.Add("addressbookId", this.Configuration.ApiClient.ParameterToString(addressbookId)); // path parameter - if (addressBookV4Dto != null && addressBookV4Dto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookV4Dto); // http body (model) parameter - } - else - { - localVarPostBody = addressBookV4Dto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4UpdateAddressBook", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookV4DTO))); - } - - /// - /// This call updates a addresbook item - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// Task of AddressBookV4DTO - public async System.Threading.Tasks.Task AddressBookV4UpdateAddressBookAsync (int? addressbookId, AddressBookV4DTO addressBookV4Dto) - { - ApiResponse localVarResponse = await AddressBookV4UpdateAddressBookAsyncWithHttpInfo(addressbookId, addressBookV4Dto); - return localVarResponse.Data; - - } - - /// - /// This call updates a addresbook item - /// - /// Thrown when fails to make API call - /// Identifier of Address book to update - /// Address book data to update - /// Task of ApiResponse (AddressBookV4DTO) - public async System.Threading.Tasks.Task> AddressBookV4UpdateAddressBookAsyncWithHttpInfo (int? addressbookId, AddressBookV4DTO addressBookV4Dto) - { - // verify the required parameter 'addressbookId' is set - if (addressbookId == null) - throw new ApiException(400, "Missing required parameter 'addressbookId' when calling AddressBookV4Api->AddressBookV4UpdateAddressBook"); - // verify the required parameter 'addressBookV4Dto' is set - if (addressBookV4Dto == null) - throw new ApiException(400, "Missing required parameter 'addressBookV4Dto' when calling AddressBookV4Api->AddressBookV4UpdateAddressBook"); - - var localVarPath = "/api/V4/AddressBook/addressbook/{addressbookId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (addressbookId != null) localVarPathParams.Add("addressbookId", this.Configuration.ApiClient.ParameterToString(addressbookId)); // path parameter - if (addressBookV4Dto != null && addressBookV4Dto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(addressBookV4Dto); // http body (model) parameter - } - else - { - localVarPostBody = addressBookV4Dto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4UpdateAddressBook", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookV4DTO))); - } - - /// - /// This call updates a contact - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// ContactV4DTO - public ContactV4DTO AddressBookV4UpdateContact (ContactV4DTO contact) - { - ApiResponse localVarResponse = AddressBookV4UpdateContactWithHttpInfo(contact); - return localVarResponse.Data; - } - - /// - /// This call updates a contact - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// ApiResponse of ContactV4DTO - public ApiResponse< ContactV4DTO > AddressBookV4UpdateContactWithHttpInfo (ContactV4DTO contact) - { - // verify the required parameter 'contact' is set - if (contact == null) - throw new ApiException(400, "Missing required parameter 'contact' when calling AddressBookV4Api->AddressBookV4UpdateContact"); - - var localVarPath = "/api/V4/AddressBook/contact"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contact != null && contact.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(contact); // http body (model) parameter - } - else - { - localVarPostBody = contact; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4UpdateContact", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ContactV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ContactV4DTO))); - } - - /// - /// This call updates a contact - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// Task of ContactV4DTO - public async System.Threading.Tasks.Task AddressBookV4UpdateContactAsync (ContactV4DTO contact) - { - ApiResponse localVarResponse = await AddressBookV4UpdateContactAsyncWithHttpInfo(contact); - return localVarResponse.Data; - - } - - /// - /// This call updates a contact - /// - /// Thrown when fails to make API call - /// Identifier of contact to update - /// Task of ApiResponse (ContactV4DTO) - public async System.Threading.Tasks.Task> AddressBookV4UpdateContactAsyncWithHttpInfo (ContactV4DTO contact) - { - // verify the required parameter 'contact' is set - if (contact == null) - throw new ApiException(400, "Missing required parameter 'contact' when calling AddressBookV4Api->AddressBookV4UpdateContact"); - - var localVarPath = "/api/V4/AddressBook/contact"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contact != null && contact.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(contact); // http body (model) parameter - } - else - { - localVarPostBody = contact; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookV4UpdateContact", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ContactV4DTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ContactV4DTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ArxESignApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ArxESignApi.cs deleted file mode 100644 index dcc66a7..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ArxESignApi.cs +++ /dev/null @@ -1,1089 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IArxESignApi : IApiAccessor - { - #region Synchronous Operations - /// - /// Cancel ARXeSigN - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void ArxESignCancelArxESign (string arxESignId); - - /// - /// Cancel ARXeSigN - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse ArxESignCancelArxESignWithHttpInfo (string arxESignId); - /// - /// Delete ARXeSigN - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void ArxESignDeleteArxESign (string arxESignId); - - /// - /// Delete ARXeSigN - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse ArxESignDeleteArxESignWithHttpInfo (string arxESignId); - /// - /// Download ARXeSigN completed documents - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ArxESignDownloadResponseDto - ArxESignDownloadResponseDto ArxESignDownloadArxESign (string arxESignId); - - /// - /// Download ARXeSigN completed documents - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ArxESignDownloadResponseDto - ApiResponse ArxESignDownloadArxESignWithHttpInfo (string arxESignId); - /// - /// Get ARXeSigN status request - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ArxESignStatusResponseDto - ArxESignStatusResponseDto ArxESignGetStatusArxESign (string arxESignId); - - /// - /// Get ARXeSigN status request - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ArxESignStatusResponseDto - ApiResponse ArxESignGetStatusArxESignWithHttpInfo (string arxESignId); - /// - /// Insert ARXeSigN request - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ArxESignInsertResponseDto - ArxESignInsertResponseDto ArxESignInsertArxESign (ArxESignInsertRequestDto eSignInsertRequest); - - /// - /// Insert ARXeSigN request - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ArxESignInsertResponseDto - ApiResponse ArxESignInsertArxESignWithHttpInfo (ArxESignInsertRequestDto eSignInsertRequest); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// Cancel ARXeSigN - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task ArxESignCancelArxESignAsync (string arxESignId); - - /// - /// Cancel ARXeSigN - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> ArxESignCancelArxESignAsyncWithHttpInfo (string arxESignId); - /// - /// Delete ARXeSigN - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task ArxESignDeleteArxESignAsync (string arxESignId); - - /// - /// Delete ARXeSigN - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> ArxESignDeleteArxESignAsyncWithHttpInfo (string arxESignId); - /// - /// Download ARXeSigN completed documents - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ArxESignDownloadResponseDto - System.Threading.Tasks.Task ArxESignDownloadArxESignAsync (string arxESignId); - - /// - /// Download ARXeSigN completed documents - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ArxESignDownloadResponseDto) - System.Threading.Tasks.Task> ArxESignDownloadArxESignAsyncWithHttpInfo (string arxESignId); - /// - /// Get ARXeSigN status request - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ArxESignStatusResponseDto - System.Threading.Tasks.Task ArxESignGetStatusArxESignAsync (string arxESignId); - - /// - /// Get ARXeSigN status request - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ArxESignStatusResponseDto) - System.Threading.Tasks.Task> ArxESignGetStatusArxESignAsyncWithHttpInfo (string arxESignId); - /// - /// Insert ARXeSigN request - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ArxESignInsertResponseDto - System.Threading.Tasks.Task ArxESignInsertArxESignAsync (ArxESignInsertRequestDto eSignInsertRequest); - - /// - /// Insert ARXeSigN request - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ArxESignInsertResponseDto) - System.Threading.Tasks.Task> ArxESignInsertArxESignAsyncWithHttpInfo (ArxESignInsertRequestDto eSignInsertRequest); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ArxESignApi : IArxESignApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ArxESignApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ArxESignApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// Cancel ARXeSigN - /// - /// Thrown when fails to make API call - /// - /// - public void ArxESignCancelArxESign (string arxESignId) - { - ArxESignCancelArxESignWithHttpInfo(arxESignId); - } - - /// - /// Cancel ARXeSigN - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse ArxESignCancelArxESignWithHttpInfo (string arxESignId) - { - // verify the required parameter 'arxESignId' is set - if (arxESignId == null) - throw new ApiException(400, "Missing required parameter 'arxESignId' when calling ArxESignApi->ArxESignCancelArxESign"); - - var localVarPath = "/api/ArxESign"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (arxESignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "arxESignId", arxESignId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignCancelArxESign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Cancel ARXeSigN - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task ArxESignCancelArxESignAsync (string arxESignId) - { - await ArxESignCancelArxESignAsyncWithHttpInfo(arxESignId); - - } - - /// - /// Cancel ARXeSigN - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ArxESignCancelArxESignAsyncWithHttpInfo (string arxESignId) - { - // verify the required parameter 'arxESignId' is set - if (arxESignId == null) - throw new ApiException(400, "Missing required parameter 'arxESignId' when calling ArxESignApi->ArxESignCancelArxESign"); - - var localVarPath = "/api/ArxESign"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (arxESignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "arxESignId", arxESignId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignCancelArxESign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Delete ARXeSigN - /// - /// Thrown when fails to make API call - /// - /// - public void ArxESignDeleteArxESign (string arxESignId) - { - ArxESignDeleteArxESignWithHttpInfo(arxESignId); - } - - /// - /// Delete ARXeSigN - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse ArxESignDeleteArxESignWithHttpInfo (string arxESignId) - { - // verify the required parameter 'arxESignId' is set - if (arxESignId == null) - throw new ApiException(400, "Missing required parameter 'arxESignId' when calling ArxESignApi->ArxESignDeleteArxESign"); - - var localVarPath = "/api/ArxESign"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (arxESignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "arxESignId", arxESignId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignDeleteArxESign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Delete ARXeSigN - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task ArxESignDeleteArxESignAsync (string arxESignId) - { - await ArxESignDeleteArxESignAsyncWithHttpInfo(arxESignId); - - } - - /// - /// Delete ARXeSigN - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ArxESignDeleteArxESignAsyncWithHttpInfo (string arxESignId) - { - // verify the required parameter 'arxESignId' is set - if (arxESignId == null) - throw new ApiException(400, "Missing required parameter 'arxESignId' when calling ArxESignApi->ArxESignDeleteArxESign"); - - var localVarPath = "/api/ArxESign"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (arxESignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "arxESignId", arxESignId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignDeleteArxESign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Download ARXeSigN completed documents - /// - /// Thrown when fails to make API call - /// - /// ArxESignDownloadResponseDto - public ArxESignDownloadResponseDto ArxESignDownloadArxESign (string arxESignId) - { - ApiResponse localVarResponse = ArxESignDownloadArxESignWithHttpInfo(arxESignId); - return localVarResponse.Data; - } - - /// - /// Download ARXeSigN completed documents - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ArxESignDownloadResponseDto - public ApiResponse< ArxESignDownloadResponseDto > ArxESignDownloadArxESignWithHttpInfo (string arxESignId) - { - // verify the required parameter 'arxESignId' is set - if (arxESignId == null) - throw new ApiException(400, "Missing required parameter 'arxESignId' when calling ArxESignApi->ArxESignDownloadArxESign"); - - var localVarPath = "/api/ArxESign/download"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (arxESignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "arxESignId", arxESignId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignDownloadArxESign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxESignDownloadResponseDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxESignDownloadResponseDto))); - } - - /// - /// Download ARXeSigN completed documents - /// - /// Thrown when fails to make API call - /// - /// Task of ArxESignDownloadResponseDto - public async System.Threading.Tasks.Task ArxESignDownloadArxESignAsync (string arxESignId) - { - ApiResponse localVarResponse = await ArxESignDownloadArxESignAsyncWithHttpInfo(arxESignId); - return localVarResponse.Data; - - } - - /// - /// Download ARXeSigN completed documents - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ArxESignDownloadResponseDto) - public async System.Threading.Tasks.Task> ArxESignDownloadArxESignAsyncWithHttpInfo (string arxESignId) - { - // verify the required parameter 'arxESignId' is set - if (arxESignId == null) - throw new ApiException(400, "Missing required parameter 'arxESignId' when calling ArxESignApi->ArxESignDownloadArxESign"); - - var localVarPath = "/api/ArxESign/download"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (arxESignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "arxESignId", arxESignId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignDownloadArxESign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxESignDownloadResponseDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxESignDownloadResponseDto))); - } - - /// - /// Get ARXeSigN status request - /// - /// Thrown when fails to make API call - /// - /// ArxESignStatusResponseDto - public ArxESignStatusResponseDto ArxESignGetStatusArxESign (string arxESignId) - { - ApiResponse localVarResponse = ArxESignGetStatusArxESignWithHttpInfo(arxESignId); - return localVarResponse.Data; - } - - /// - /// Get ARXeSigN status request - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ArxESignStatusResponseDto - public ApiResponse< ArxESignStatusResponseDto > ArxESignGetStatusArxESignWithHttpInfo (string arxESignId) - { - // verify the required parameter 'arxESignId' is set - if (arxESignId == null) - throw new ApiException(400, "Missing required parameter 'arxESignId' when calling ArxESignApi->ArxESignGetStatusArxESign"); - - var localVarPath = "/api/ArxESign/Status"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (arxESignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "arxESignId", arxESignId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignGetStatusArxESign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxESignStatusResponseDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxESignStatusResponseDto))); - } - - /// - /// Get ARXeSigN status request - /// - /// Thrown when fails to make API call - /// - /// Task of ArxESignStatusResponseDto - public async System.Threading.Tasks.Task ArxESignGetStatusArxESignAsync (string arxESignId) - { - ApiResponse localVarResponse = await ArxESignGetStatusArxESignAsyncWithHttpInfo(arxESignId); - return localVarResponse.Data; - - } - - /// - /// Get ARXeSigN status request - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ArxESignStatusResponseDto) - public async System.Threading.Tasks.Task> ArxESignGetStatusArxESignAsyncWithHttpInfo (string arxESignId) - { - // verify the required parameter 'arxESignId' is set - if (arxESignId == null) - throw new ApiException(400, "Missing required parameter 'arxESignId' when calling ArxESignApi->ArxESignGetStatusArxESign"); - - var localVarPath = "/api/ArxESign/Status"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (arxESignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "arxESignId", arxESignId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignGetStatusArxESign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxESignStatusResponseDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxESignStatusResponseDto))); - } - - /// - /// Insert ARXeSigN request - /// - /// Thrown when fails to make API call - /// - /// ArxESignInsertResponseDto - public ArxESignInsertResponseDto ArxESignInsertArxESign (ArxESignInsertRequestDto eSignInsertRequest) - { - ApiResponse localVarResponse = ArxESignInsertArxESignWithHttpInfo(eSignInsertRequest); - return localVarResponse.Data; - } - - /// - /// Insert ARXeSigN request - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ArxESignInsertResponseDto - public ApiResponse< ArxESignInsertResponseDto > ArxESignInsertArxESignWithHttpInfo (ArxESignInsertRequestDto eSignInsertRequest) - { - // verify the required parameter 'eSignInsertRequest' is set - if (eSignInsertRequest == null) - throw new ApiException(400, "Missing required parameter 'eSignInsertRequest' when calling ArxESignApi->ArxESignInsertArxESign"); - - var localVarPath = "/api/ArxESign"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (eSignInsertRequest != null && eSignInsertRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(eSignInsertRequest); // http body (model) parameter - } - else - { - localVarPostBody = eSignInsertRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignInsertArxESign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxESignInsertResponseDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxESignInsertResponseDto))); - } - - /// - /// Insert ARXeSigN request - /// - /// Thrown when fails to make API call - /// - /// Task of ArxESignInsertResponseDto - public async System.Threading.Tasks.Task ArxESignInsertArxESignAsync (ArxESignInsertRequestDto eSignInsertRequest) - { - ApiResponse localVarResponse = await ArxESignInsertArxESignAsyncWithHttpInfo(eSignInsertRequest); - return localVarResponse.Data; - - } - - /// - /// Insert ARXeSigN request - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ArxESignInsertResponseDto) - public async System.Threading.Tasks.Task> ArxESignInsertArxESignAsyncWithHttpInfo (ArxESignInsertRequestDto eSignInsertRequest) - { - // verify the required parameter 'eSignInsertRequest' is set - if (eSignInsertRequest == null) - throw new ApiException(400, "Missing required parameter 'eSignInsertRequest' when calling ArxESignApi->ArxESignInsertArxESign"); - - var localVarPath = "/api/ArxESign"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (eSignInsertRequest != null && eSignInsertRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(eSignInsertRequest); // http body (model) parameter - } - else - { - localVarPostBody = eSignInsertRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignInsertArxESign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxESignInsertResponseDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxESignInsertResponseDto))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/AssistantApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/AssistantApi.cs deleted file mode 100644 index 9f7dda9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/AssistantApi.cs +++ /dev/null @@ -1,1724 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IAssistantApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call notifies the specified user that a document has been added to buffer from monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Result information to scan - /// - void AssistantBufferInsertForMonitoredFolder (string bufferId); - - /// - /// This call notifies the specified user that a document has been added to buffer from monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Result information to scan - /// ApiResponse of Object(void) - ApiResponse AssistantBufferInsertForMonitoredFolderWithHttpInfo (string bufferId); - /// - /// This call notifies the specified user that the assistant is active (Legacy for support version since 2.3.29) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Version (optional) - /// - void AssistantDetected (string connectionId, string version = null); - - /// - /// This call notifies the specified user that the assistant is active (Legacy for support version since 2.3.29) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Version (optional) - /// ApiResponse of Object(void) - ApiResponse AssistantDetectedWithHttpInfo (string connectionId, string version = null); - /// - /// This call notifies the specified user that the assistant is active - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Parameters of detection - /// - void AssistantDetected_0 (AssistantDetectedRequestDTO detectedRequestDto); - - /// - /// This call notifies the specified user that the assistant is active - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Parameters of detection - /// ApiResponse of Object(void) - ApiResponse AssistantDetected_0WithHttpInfo (AssistantDetectedRequestDTO detectedRequestDto); - /// - /// This call notifies that a receipt PA configuration is finished - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Receipt PA configuration result - /// - void AssistantManagementReceiptPAComplete (string connectionId, ReceiptPAResultDTO receiptPAResult); - - /// - /// This call notifies that a receipt PA configuration is finished - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Receipt PA configuration result - /// ApiResponse of Object(void) - ApiResponse AssistantManagementReceiptPACompleteWithHttpInfo (string connectionId, ReceiptPAResultDTO receiptPAResult); - /// - /// This call notifies the specified user that a document has changed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// - void AssistantNotifyProcessDocChange (int? processDocId, int? taskWorkId); - - /// - /// This call notifies the specified user that a document has changed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// ApiResponse of Object(void) - ApiResponse AssistantNotifyProcessDocChangeWithHttpInfo (int? processDocId, int? taskWorkId); - /// - /// This call notifies the specified user that a document has changed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// - void AssistantNotifyProcessDocChange_0 (Guid? documentId, Guid? taskId); - - /// - /// This call notifies the specified user that a document has changed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// ApiResponse of Object(void) - ApiResponse AssistantNotifyProcessDocChange_0WithHttpInfo (Guid? documentId, Guid? taskId); - /// - /// This call notifies the specified user that a document has changed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// - void AssistantNotifyProfileChange (int? docNumber); - - /// - /// This call notifies the specified user that a document has changed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of Object(void) - ApiResponse AssistantNotifyProfileChangeWithHttpInfo (int? docNumber); - /// - /// This call notifies the specified user that a document has scanned - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Result information to scan - /// - void AssistantScanComplete (string connectionId, ScanResultDto scanResultDto); - - /// - /// This call notifies the specified user that a document has scanned - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Result information to scan - /// ApiResponse of Object(void) - ApiResponse AssistantScanCompleteWithHttpInfo (string connectionId, ScanResultDto scanResultDto); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call notifies the specified user that a document has been added to buffer from monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Result information to scan - /// Task of void - System.Threading.Tasks.Task AssistantBufferInsertForMonitoredFolderAsync (string bufferId); - - /// - /// This call notifies the specified user that a document has been added to buffer from monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Result information to scan - /// Task of ApiResponse - System.Threading.Tasks.Task> AssistantBufferInsertForMonitoredFolderAsyncWithHttpInfo (string bufferId); - /// - /// This call notifies the specified user that the assistant is active (Legacy for support version since 2.3.29) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Version (optional) - /// Task of void - System.Threading.Tasks.Task AssistantDetectedAsync (string connectionId, string version = null); - - /// - /// This call notifies the specified user that the assistant is active (Legacy for support version since 2.3.29) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Version (optional) - /// Task of ApiResponse - System.Threading.Tasks.Task> AssistantDetectedAsyncWithHttpInfo (string connectionId, string version = null); - /// - /// This call notifies the specified user that the assistant is active - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Parameters of detection - /// Task of void - System.Threading.Tasks.Task AssistantDetected_0Async (AssistantDetectedRequestDTO detectedRequestDto); - - /// - /// This call notifies the specified user that the assistant is active - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Parameters of detection - /// Task of ApiResponse - System.Threading.Tasks.Task> AssistantDetected_0AsyncWithHttpInfo (AssistantDetectedRequestDTO detectedRequestDto); - /// - /// This call notifies that a receipt PA configuration is finished - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Receipt PA configuration result - /// Task of void - System.Threading.Tasks.Task AssistantManagementReceiptPACompleteAsync (string connectionId, ReceiptPAResultDTO receiptPAResult); - - /// - /// This call notifies that a receipt PA configuration is finished - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Receipt PA configuration result - /// Task of ApiResponse - System.Threading.Tasks.Task> AssistantManagementReceiptPACompleteAsyncWithHttpInfo (string connectionId, ReceiptPAResultDTO receiptPAResult); - /// - /// This call notifies the specified user that a document has changed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// Task of void - System.Threading.Tasks.Task AssistantNotifyProcessDocChangeAsync (int? processDocId, int? taskWorkId); - - /// - /// This call notifies the specified user that a document has changed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> AssistantNotifyProcessDocChangeAsyncWithHttpInfo (int? processDocId, int? taskWorkId); - /// - /// This call notifies the specified user that a document has changed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// Task of void - System.Threading.Tasks.Task AssistantNotifyProcessDocChange_0Async (Guid? documentId, Guid? taskId); - - /// - /// This call notifies the specified user that a document has changed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> AssistantNotifyProcessDocChange_0AsyncWithHttpInfo (Guid? documentId, Guid? taskId); - /// - /// This call notifies the specified user that a document has changed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of void - System.Threading.Tasks.Task AssistantNotifyProfileChangeAsync (int? docNumber); - - /// - /// This call notifies the specified user that a document has changed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> AssistantNotifyProfileChangeAsyncWithHttpInfo (int? docNumber); - /// - /// This call notifies the specified user that a document has scanned - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Result information to scan - /// Task of void - System.Threading.Tasks.Task AssistantScanCompleteAsync (string connectionId, ScanResultDto scanResultDto); - - /// - /// This call notifies the specified user that a document has scanned - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Result information to scan - /// Task of ApiResponse - System.Threading.Tasks.Task> AssistantScanCompleteAsyncWithHttpInfo (string connectionId, ScanResultDto scanResultDto); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AssistantApi : IAssistantApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public AssistantApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public AssistantApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call notifies the specified user that a document has been added to buffer from monitored folder - /// - /// Thrown when fails to make API call - /// Result information to scan - /// - public void AssistantBufferInsertForMonitoredFolder (string bufferId) - { - AssistantBufferInsertForMonitoredFolderWithHttpInfo(bufferId); - } - - /// - /// This call notifies the specified user that a document has been added to buffer from monitored folder - /// - /// Thrown when fails to make API call - /// Result information to scan - /// ApiResponse of Object(void) - public ApiResponse AssistantBufferInsertForMonitoredFolderWithHttpInfo (string bufferId) - { - // verify the required parameter 'bufferId' is set - if (bufferId == null) - throw new ApiException(400, "Missing required parameter 'bufferId' when calling AssistantApi->AssistantBufferInsertForMonitoredFolder"); - - var localVarPath = "/api/Assistant/BufferInsertForMonitoredFolder/{bufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bufferId != null) localVarPathParams.Add("bufferId", this.Configuration.ApiClient.ParameterToString(bufferId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantBufferInsertForMonitoredFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call notifies the specified user that a document has been added to buffer from monitored folder - /// - /// Thrown when fails to make API call - /// Result information to scan - /// Task of void - public async System.Threading.Tasks.Task AssistantBufferInsertForMonitoredFolderAsync (string bufferId) - { - await AssistantBufferInsertForMonitoredFolderAsyncWithHttpInfo(bufferId); - - } - - /// - /// This call notifies the specified user that a document has been added to buffer from monitored folder - /// - /// Thrown when fails to make API call - /// Result information to scan - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssistantBufferInsertForMonitoredFolderAsyncWithHttpInfo (string bufferId) - { - // verify the required parameter 'bufferId' is set - if (bufferId == null) - throw new ApiException(400, "Missing required parameter 'bufferId' when calling AssistantApi->AssistantBufferInsertForMonitoredFolder"); - - var localVarPath = "/api/Assistant/BufferInsertForMonitoredFolder/{bufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bufferId != null) localVarPathParams.Add("bufferId", this.Configuration.ApiClient.ParameterToString(bufferId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantBufferInsertForMonitoredFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call notifies the specified user that the assistant is active (Legacy for support version since 2.3.29) - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Version (optional) - /// - public void AssistantDetected (string connectionId, string version = null) - { - AssistantDetectedWithHttpInfo(connectionId, version); - } - - /// - /// This call notifies the specified user that the assistant is active (Legacy for support version since 2.3.29) - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Version (optional) - /// ApiResponse of Object(void) - public ApiResponse AssistantDetectedWithHttpInfo (string connectionId, string version = null) - { - // verify the required parameter 'connectionId' is set - if (connectionId == null) - throw new ApiException(400, "Missing required parameter 'connectionId' when calling AssistantApi->AssistantDetected"); - - var localVarPath = "/api/Assistant"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (connectionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "connectionId", connectionId)); // query parameter - if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantDetected", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call notifies the specified user that the assistant is active (Legacy for support version since 2.3.29) - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Version (optional) - /// Task of void - public async System.Threading.Tasks.Task AssistantDetectedAsync (string connectionId, string version = null) - { - await AssistantDetectedAsyncWithHttpInfo(connectionId, version); - - } - - /// - /// This call notifies the specified user that the assistant is active (Legacy for support version since 2.3.29) - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Version (optional) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssistantDetectedAsyncWithHttpInfo (string connectionId, string version = null) - { - // verify the required parameter 'connectionId' is set - if (connectionId == null) - throw new ApiException(400, "Missing required parameter 'connectionId' when calling AssistantApi->AssistantDetected"); - - var localVarPath = "/api/Assistant"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (connectionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "connectionId", connectionId)); // query parameter - if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantDetected", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call notifies the specified user that the assistant is active - /// - /// Thrown when fails to make API call - /// Parameters of detection - /// - public void AssistantDetected_0 (AssistantDetectedRequestDTO detectedRequestDto) - { - AssistantDetected_0WithHttpInfo(detectedRequestDto); - } - - /// - /// This call notifies the specified user that the assistant is active - /// - /// Thrown when fails to make API call - /// Parameters of detection - /// ApiResponse of Object(void) - public ApiResponse AssistantDetected_0WithHttpInfo (AssistantDetectedRequestDTO detectedRequestDto) - { - // verify the required parameter 'detectedRequestDto' is set - if (detectedRequestDto == null) - throw new ApiException(400, "Missing required parameter 'detectedRequestDto' when calling AssistantApi->AssistantDetected_0"); - - var localVarPath = "/api/Assistant"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (detectedRequestDto != null && detectedRequestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(detectedRequestDto); // http body (model) parameter - } - else - { - localVarPostBody = detectedRequestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantDetected_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call notifies the specified user that the assistant is active - /// - /// Thrown when fails to make API call - /// Parameters of detection - /// Task of void - public async System.Threading.Tasks.Task AssistantDetected_0Async (AssistantDetectedRequestDTO detectedRequestDto) - { - await AssistantDetected_0AsyncWithHttpInfo(detectedRequestDto); - - } - - /// - /// This call notifies the specified user that the assistant is active - /// - /// Thrown when fails to make API call - /// Parameters of detection - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssistantDetected_0AsyncWithHttpInfo (AssistantDetectedRequestDTO detectedRequestDto) - { - // verify the required parameter 'detectedRequestDto' is set - if (detectedRequestDto == null) - throw new ApiException(400, "Missing required parameter 'detectedRequestDto' when calling AssistantApi->AssistantDetected_0"); - - var localVarPath = "/api/Assistant"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (detectedRequestDto != null && detectedRequestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(detectedRequestDto); // http body (model) parameter - } - else - { - localVarPostBody = detectedRequestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantDetected_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call notifies that a receipt PA configuration is finished - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Receipt PA configuration result - /// - public void AssistantManagementReceiptPAComplete (string connectionId, ReceiptPAResultDTO receiptPAResult) - { - AssistantManagementReceiptPACompleteWithHttpInfo(connectionId, receiptPAResult); - } - - /// - /// This call notifies that a receipt PA configuration is finished - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Receipt PA configuration result - /// ApiResponse of Object(void) - public ApiResponse AssistantManagementReceiptPACompleteWithHttpInfo (string connectionId, ReceiptPAResultDTO receiptPAResult) - { - // verify the required parameter 'connectionId' is set - if (connectionId == null) - throw new ApiException(400, "Missing required parameter 'connectionId' when calling AssistantApi->AssistantManagementReceiptPAComplete"); - // verify the required parameter 'receiptPAResult' is set - if (receiptPAResult == null) - throw new ApiException(400, "Missing required parameter 'receiptPAResult' when calling AssistantApi->AssistantManagementReceiptPAComplete"); - - var localVarPath = "/api/Assistant/ReceiptPAResult/{connectionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (connectionId != null) localVarPathParams.Add("connectionId", this.Configuration.ApiClient.ParameterToString(connectionId)); // path parameter - if (receiptPAResult != null && receiptPAResult.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(receiptPAResult); // http body (model) parameter - } - else - { - localVarPostBody = receiptPAResult; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantManagementReceiptPAComplete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call notifies that a receipt PA configuration is finished - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Receipt PA configuration result - /// Task of void - public async System.Threading.Tasks.Task AssistantManagementReceiptPACompleteAsync (string connectionId, ReceiptPAResultDTO receiptPAResult) - { - await AssistantManagementReceiptPACompleteAsyncWithHttpInfo(connectionId, receiptPAResult); - - } - - /// - /// This call notifies that a receipt PA configuration is finished - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Receipt PA configuration result - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssistantManagementReceiptPACompleteAsyncWithHttpInfo (string connectionId, ReceiptPAResultDTO receiptPAResult) - { - // verify the required parameter 'connectionId' is set - if (connectionId == null) - throw new ApiException(400, "Missing required parameter 'connectionId' when calling AssistantApi->AssistantManagementReceiptPAComplete"); - // verify the required parameter 'receiptPAResult' is set - if (receiptPAResult == null) - throw new ApiException(400, "Missing required parameter 'receiptPAResult' when calling AssistantApi->AssistantManagementReceiptPAComplete"); - - var localVarPath = "/api/Assistant/ReceiptPAResult/{connectionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (connectionId != null) localVarPathParams.Add("connectionId", this.Configuration.ApiClient.ParameterToString(connectionId)); // path parameter - if (receiptPAResult != null && receiptPAResult.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(receiptPAResult); // http body (model) parameter - } - else - { - localVarPostBody = receiptPAResult; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantManagementReceiptPAComplete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call notifies the specified user that a document has changed - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// - public void AssistantNotifyProcessDocChange (int? processDocId, int? taskWorkId) - { - AssistantNotifyProcessDocChangeWithHttpInfo(processDocId, taskWorkId); - } - - /// - /// This call notifies the specified user that a document has changed - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// ApiResponse of Object(void) - public ApiResponse AssistantNotifyProcessDocChangeWithHttpInfo (int? processDocId, int? taskWorkId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling AssistantApi->AssistantNotifyProcessDocChange"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling AssistantApi->AssistantNotifyProcessDocChange"); - - var localVarPath = "/api/Assistant/UpdateProcessDoc/{processDocId}/TaskWork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantNotifyProcessDocChange", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call notifies the specified user that a document has changed - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// Task of void - public async System.Threading.Tasks.Task AssistantNotifyProcessDocChangeAsync (int? processDocId, int? taskWorkId) - { - await AssistantNotifyProcessDocChangeAsyncWithHttpInfo(processDocId, taskWorkId); - - } - - /// - /// This call notifies the specified user that a document has changed - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssistantNotifyProcessDocChangeAsyncWithHttpInfo (int? processDocId, int? taskWorkId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling AssistantApi->AssistantNotifyProcessDocChange"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling AssistantApi->AssistantNotifyProcessDocChange"); - - var localVarPath = "/api/Assistant/UpdateProcessDoc/{processDocId}/TaskWork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantNotifyProcessDocChange", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call notifies the specified user that a document has changed - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// - public void AssistantNotifyProcessDocChange_0 (Guid? documentId, Guid? taskId) - { - AssistantNotifyProcessDocChange_0WithHttpInfo(documentId, taskId); - } - - /// - /// This call notifies the specified user that a document has changed - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// ApiResponse of Object(void) - public ApiResponse AssistantNotifyProcessDocChange_0WithHttpInfo (Guid? documentId, Guid? taskId) - { - // verify the required parameter 'documentId' is set - if (documentId == null) - throw new ApiException(400, "Missing required parameter 'documentId' when calling AssistantApi->AssistantNotifyProcessDocChange_0"); - // verify the required parameter 'taskId' is set - if (taskId == null) - throw new ApiException(400, "Missing required parameter 'taskId' when calling AssistantApi->AssistantNotifyProcessDocChange_0"); - - var localVarPath = "/api/Assistant/UpdateProcessDocV2/{documentId}/Task/{taskId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentId != null) localVarPathParams.Add("documentId", this.Configuration.ApiClient.ParameterToString(documentId)); // path parameter - if (taskId != null) localVarPathParams.Add("taskId", this.Configuration.ApiClient.ParameterToString(taskId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantNotifyProcessDocChange_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call notifies the specified user that a document has changed - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// Task of void - public async System.Threading.Tasks.Task AssistantNotifyProcessDocChange_0Async (Guid? documentId, Guid? taskId) - { - await AssistantNotifyProcessDocChange_0AsyncWithHttpInfo(documentId, taskId); - - } - - /// - /// This call notifies the specified user that a document has changed - /// - /// Thrown when fails to make API call - /// Process document identifier - /// Taskwork identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssistantNotifyProcessDocChange_0AsyncWithHttpInfo (Guid? documentId, Guid? taskId) - { - // verify the required parameter 'documentId' is set - if (documentId == null) - throw new ApiException(400, "Missing required parameter 'documentId' when calling AssistantApi->AssistantNotifyProcessDocChange_0"); - // verify the required parameter 'taskId' is set - if (taskId == null) - throw new ApiException(400, "Missing required parameter 'taskId' when calling AssistantApi->AssistantNotifyProcessDocChange_0"); - - var localVarPath = "/api/Assistant/UpdateProcessDocV2/{documentId}/Task/{taskId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentId != null) localVarPathParams.Add("documentId", this.Configuration.ApiClient.ParameterToString(documentId)); // path parameter - if (taskId != null) localVarPathParams.Add("taskId", this.Configuration.ApiClient.ParameterToString(taskId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantNotifyProcessDocChange_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call notifies the specified user that a document has changed - /// - /// Thrown when fails to make API call - /// Document identifier - /// - public void AssistantNotifyProfileChange (int? docNumber) - { - AssistantNotifyProfileChangeWithHttpInfo(docNumber); - } - - /// - /// This call notifies the specified user that a document has changed - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of Object(void) - public ApiResponse AssistantNotifyProfileChangeWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling AssistantApi->AssistantNotifyProfileChange"); - - var localVarPath = "/api/Assistant/UpdateProfile/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantNotifyProfileChange", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call notifies the specified user that a document has changed - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of void - public async System.Threading.Tasks.Task AssistantNotifyProfileChangeAsync (int? docNumber) - { - await AssistantNotifyProfileChangeAsyncWithHttpInfo(docNumber); - - } - - /// - /// This call notifies the specified user that a document has changed - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssistantNotifyProfileChangeAsyncWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling AssistantApi->AssistantNotifyProfileChange"); - - var localVarPath = "/api/Assistant/UpdateProfile/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantNotifyProfileChange", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call notifies the specified user that a document has scanned - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Result information to scan - /// - public void AssistantScanComplete (string connectionId, ScanResultDto scanResultDto) - { - AssistantScanCompleteWithHttpInfo(connectionId, scanResultDto); - } - - /// - /// This call notifies the specified user that a document has scanned - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Result information to scan - /// ApiResponse of Object(void) - public ApiResponse AssistantScanCompleteWithHttpInfo (string connectionId, ScanResultDto scanResultDto) - { - // verify the required parameter 'connectionId' is set - if (connectionId == null) - throw new ApiException(400, "Missing required parameter 'connectionId' when calling AssistantApi->AssistantScanComplete"); - // verify the required parameter 'scanResultDto' is set - if (scanResultDto == null) - throw new ApiException(400, "Missing required parameter 'scanResultDto' when calling AssistantApi->AssistantScanComplete"); - - var localVarPath = "/api/Assistant/ScanResult/{connectionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (connectionId != null) localVarPathParams.Add("connectionId", this.Configuration.ApiClient.ParameterToString(connectionId)); // path parameter - if (scanResultDto != null && scanResultDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(scanResultDto); // http body (model) parameter - } - else - { - localVarPostBody = scanResultDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantScanComplete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call notifies the specified user that a document has scanned - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Result information to scan - /// Task of void - public async System.Threading.Tasks.Task AssistantScanCompleteAsync (string connectionId, ScanResultDto scanResultDto) - { - await AssistantScanCompleteAsyncWithHttpInfo(connectionId, scanResultDto); - - } - - /// - /// This call notifies the specified user that a document has scanned - /// - /// Thrown when fails to make API call - /// Connection identifier - /// Result information to scan - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssistantScanCompleteAsyncWithHttpInfo (string connectionId, ScanResultDto scanResultDto) - { - // verify the required parameter 'connectionId' is set - if (connectionId == null) - throw new ApiException(400, "Missing required parameter 'connectionId' when calling AssistantApi->AssistantScanComplete"); - // verify the required parameter 'scanResultDto' is set - if (scanResultDto == null) - throw new ApiException(400, "Missing required parameter 'scanResultDto' when calling AssistantApi->AssistantScanComplete"); - - var localVarPath = "/api/Assistant/ScanResult/{connectionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (connectionId != null) localVarPathParams.Add("connectionId", this.Configuration.ApiClient.ParameterToString(connectionId)); // path parameter - if (scanResultDto != null && scanResultDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(scanResultDto); // http body (model) parameter - } - else - { - localVarPostBody = scanResultDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssistantScanComplete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/AssociationsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/AssociationsApi.cs deleted file mode 100644 index 20acdc8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/AssociationsApi.cs +++ /dev/null @@ -1,1979 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IAssociationsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// - void AssociationsDelete (int? id); - - /// - /// This call deletes an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// ApiResponse of Object(void) - ApiResponse AssociationsDeleteWithHttpInfo (int? id); - /// - /// This calls returns all ARXivar associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<AssociationDTO> - List AssociationsGet (); - - /// - /// This calls returns all ARXivar associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<AssociationDTO> - ApiResponse> AssociationsGetWithHttpInfo (); - /// - /// This call returns all associations by a document identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// List<AssociationDTO> - List AssociationsGetByDocNumber (int? docnumber); - - /// - /// This call returns all associations by a document identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of List<AssociationDTO> - ApiResponse> AssociationsGetByDocNumberWithHttpInfo (int? docnumber); - /// - /// This call returns the profile data contained in the association - /// - /// - /// This method is deprecated. Use api/v2/Associations/items/{id} - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// List<RowSearchResult> - List AssociationsGetById (int? id, SelectDTO select); - - /// - /// This call returns the profile data contained in the association - /// - /// - /// This method is deprecated. Use api/v2/Associations/items/{id} - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// ApiResponse of List<RowSearchResult> - ApiResponse> AssociationsGetByIdWithHttpInfo (int? id, SelectDTO select); - /// - /// This call adds profiles in a new association with auto generated name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// List<AssociationDTO> - List AssociationsInsertNew (List docnumbers); - - /// - /// This call adds profiles in a new association with auto generated name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// ApiResponse of List<AssociationDTO> - ApiResponse> AssociationsInsertNewWithHttpInfo (List docnumbers); - /// - /// This call adds profiles in an association by association Identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// List<AssociationDTO> - List AssociationsInsertWithId (int? id, List docnumbers); - - /// - /// This call adds profiles in an association by association Identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// ApiResponse of List<AssociationDTO> - ApiResponse> AssociationsInsertWithIdWithHttpInfo (int? id, List docnumbers); - /// - /// This call adds profiles to an existing association by association name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// List<AssociationDTO> - List AssociationsInsertWithName (Object bodyData); - - /// - /// This call adds profiles to an existing association by association name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// ApiResponse of List<AssociationDTO> - ApiResponse> AssociationsInsertWithNameWithHttpInfo (Object bodyData); - /// - /// This call removes a profile from association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// - void AssociationsRemove (int? id, int? docnumber); - - /// - /// This call removes a profile from association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// ApiResponse of Object(void) - ApiResponse AssociationsRemoveWithHttpInfo (int? id, int? docnumber); - /// - /// This call renames an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// - void AssociationsRename (int? id, Object bodyData); - - /// - /// This call renames an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// ApiResponse of Object(void) - ApiResponse AssociationsRenameWithHttpInfo (int? id, Object bodyData); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// Task of void - System.Threading.Tasks.Task AssociationsDeleteAsync (int? id); - - /// - /// This call deletes an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// Task of ApiResponse - System.Threading.Tasks.Task> AssociationsDeleteAsyncWithHttpInfo (int? id); - /// - /// This calls returns all ARXivar associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<AssociationDTO> - System.Threading.Tasks.Task> AssociationsGetAsync (); - - /// - /// This calls returns all ARXivar associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<AssociationDTO>) - System.Threading.Tasks.Task>> AssociationsGetAsyncWithHttpInfo (); - /// - /// This call returns all associations by a document identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of List<AssociationDTO> - System.Threading.Tasks.Task> AssociationsGetByDocNumberAsync (int? docnumber); - - /// - /// This call returns all associations by a document identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (List<AssociationDTO>) - System.Threading.Tasks.Task>> AssociationsGetByDocNumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call returns the profile data contained in the association - /// - /// - /// This method is deprecated. Use api/v2/Associations/items/{id} - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> AssociationsGetByIdAsync (int? id, SelectDTO select); - - /// - /// This call returns the profile data contained in the association - /// - /// - /// This method is deprecated. Use api/v2/Associations/items/{id} - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> AssociationsGetByIdAsyncWithHttpInfo (int? id, SelectDTO select); - /// - /// This call adds profiles in a new association with auto generated name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// Task of List<AssociationDTO> - System.Threading.Tasks.Task> AssociationsInsertNewAsync (List docnumbers); - - /// - /// This call adds profiles in a new association with auto generated name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// Task of ApiResponse (List<AssociationDTO>) - System.Threading.Tasks.Task>> AssociationsInsertNewAsyncWithHttpInfo (List docnumbers); - /// - /// This call adds profiles in an association by association Identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// Task of List<AssociationDTO> - System.Threading.Tasks.Task> AssociationsInsertWithIdAsync (int? id, List docnumbers); - - /// - /// This call adds profiles in an association by association Identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// Task of ApiResponse (List<AssociationDTO>) - System.Threading.Tasks.Task>> AssociationsInsertWithIdAsyncWithHttpInfo (int? id, List docnumbers); - /// - /// This call adds profiles to an existing association by association name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// Task of List<AssociationDTO> - System.Threading.Tasks.Task> AssociationsInsertWithNameAsync (Object bodyData); - - /// - /// This call adds profiles to an existing association by association name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// Task of ApiResponse (List<AssociationDTO>) - System.Threading.Tasks.Task>> AssociationsInsertWithNameAsyncWithHttpInfo (Object bodyData); - /// - /// This call removes a profile from association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// Task of void - System.Threading.Tasks.Task AssociationsRemoveAsync (int? id, int? docnumber); - - /// - /// This call removes a profile from association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// Task of ApiResponse - System.Threading.Tasks.Task> AssociationsRemoveAsyncWithHttpInfo (int? id, int? docnumber); - /// - /// This call renames an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// Task of void - System.Threading.Tasks.Task AssociationsRenameAsync (int? id, Object bodyData); - - /// - /// This call renames an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// Task of ApiResponse - System.Threading.Tasks.Task> AssociationsRenameAsyncWithHttpInfo (int? id, Object bodyData); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AssociationsApi : IAssociationsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public AssociationsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public AssociationsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// - public void AssociationsDelete (int? id) - { - AssociationsDeleteWithHttpInfo(id); - } - - /// - /// This call deletes an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// ApiResponse of Object(void) - public ApiResponse AssociationsDeleteWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsApi->AssociationsDelete"); - - var localVarPath = "/api/Associations/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// Task of void - public async System.Threading.Tasks.Task AssociationsDeleteAsync (int? id) - { - await AssociationsDeleteAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssociationsDeleteAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsApi->AssociationsDelete"); - - var localVarPath = "/api/Associations/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This calls returns all ARXivar associations - /// - /// Thrown when fails to make API call - /// List<AssociationDTO> - public List AssociationsGet () - { - ApiResponse> localVarResponse = AssociationsGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This calls returns all ARXivar associations - /// - /// Thrown when fails to make API call - /// ApiResponse of List<AssociationDTO> - public ApiResponse< List > AssociationsGetWithHttpInfo () - { - - var localVarPath = "/api/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This calls returns all ARXivar associations - /// - /// Thrown when fails to make API call - /// Task of List<AssociationDTO> - public async System.Threading.Tasks.Task> AssociationsGetAsync () - { - ApiResponse> localVarResponse = await AssociationsGetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This calls returns all ARXivar associations - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<AssociationDTO>) - public async System.Threading.Tasks.Task>> AssociationsGetAsyncWithHttpInfo () - { - - var localVarPath = "/api/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all associations by a document identifier - /// - /// Thrown when fails to make API call - /// Document identifier - /// List<AssociationDTO> - public List AssociationsGetByDocNumber (int? docnumber) - { - ApiResponse> localVarResponse = AssociationsGetByDocNumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns all associations by a document identifier - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of List<AssociationDTO> - public ApiResponse< List > AssociationsGetByDocNumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AssociationsApi->AssociationsGetByDocNumber"); - - var localVarPath = "/api/Associations/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsGetByDocNumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all associations by a document identifier - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of List<AssociationDTO> - public async System.Threading.Tasks.Task> AssociationsGetByDocNumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await AssociationsGetByDocNumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns all associations by a document identifier - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (List<AssociationDTO>) - public async System.Threading.Tasks.Task>> AssociationsGetByDocNumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AssociationsApi->AssociationsGetByDocNumber"); - - var localVarPath = "/api/Associations/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsGetByDocNumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the profile data contained in the association This method is deprecated. Use api/v2/Associations/items/{id} - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// List<RowSearchResult> - public List AssociationsGetById (int? id, SelectDTO select) - { - ApiResponse> localVarResponse = AssociationsGetByIdWithHttpInfo(id, select); - return localVarResponse.Data; - } - - /// - /// This call returns the profile data contained in the association This method is deprecated. Use api/v2/Associations/items/{id} - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > AssociationsGetByIdWithHttpInfo (int? id, SelectDTO select) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsApi->AssociationsGetById"); - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling AssociationsApi->AssociationsGetById"); - - var localVarPath = "/api/Associations/items/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the profile data contained in the association This method is deprecated. Use api/v2/Associations/items/{id} - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> AssociationsGetByIdAsync (int? id, SelectDTO select) - { - ApiResponse> localVarResponse = await AssociationsGetByIdAsyncWithHttpInfo(id, select); - return localVarResponse.Data; - - } - - /// - /// This call returns the profile data contained in the association This method is deprecated. Use api/v2/Associations/items/{id} - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> AssociationsGetByIdAsyncWithHttpInfo (int? id, SelectDTO select) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsApi->AssociationsGetById"); - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling AssociationsApi->AssociationsGetById"); - - var localVarPath = "/api/Associations/items/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds profiles in a new association with auto generated name - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// List<AssociationDTO> - public List AssociationsInsertNew (List docnumbers) - { - ApiResponse> localVarResponse = AssociationsInsertNewWithHttpInfo(docnumbers); - return localVarResponse.Data; - } - - /// - /// This call adds profiles in a new association with auto generated name - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// ApiResponse of List<AssociationDTO> - public ApiResponse< List > AssociationsInsertNewWithHttpInfo (List docnumbers) - { - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling AssociationsApi->AssociationsInsertNew"); - - var localVarPath = "/api/Associations/insert/new"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsInsertNew", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds profiles in a new association with auto generated name - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// Task of List<AssociationDTO> - public async System.Threading.Tasks.Task> AssociationsInsertNewAsync (List docnumbers) - { - ApiResponse> localVarResponse = await AssociationsInsertNewAsyncWithHttpInfo(docnumbers); - return localVarResponse.Data; - - } - - /// - /// This call adds profiles in a new association with auto generated name - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// Task of ApiResponse (List<AssociationDTO>) - public async System.Threading.Tasks.Task>> AssociationsInsertNewAsyncWithHttpInfo (List docnumbers) - { - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling AssociationsApi->AssociationsInsertNew"); - - var localVarPath = "/api/Associations/insert/new"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsInsertNew", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds profiles in an association by association Identifier - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// List<AssociationDTO> - public List AssociationsInsertWithId (int? id, List docnumbers) - { - ApiResponse> localVarResponse = AssociationsInsertWithIdWithHttpInfo(id, docnumbers); - return localVarResponse.Data; - } - - /// - /// This call adds profiles in an association by association Identifier - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// ApiResponse of List<AssociationDTO> - public ApiResponse< List > AssociationsInsertWithIdWithHttpInfo (int? id, List docnumbers) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsApi->AssociationsInsertWithId"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling AssociationsApi->AssociationsInsertWithId"); - - var localVarPath = "/api/Associations/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsInsertWithId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds profiles in an association by association Identifier - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// Task of List<AssociationDTO> - public async System.Threading.Tasks.Task> AssociationsInsertWithIdAsync (int? id, List docnumbers) - { - ApiResponse> localVarResponse = await AssociationsInsertWithIdAsyncWithHttpInfo(id, docnumbers); - return localVarResponse.Data; - - } - - /// - /// This call adds profiles in an association by association Identifier - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// Task of ApiResponse (List<AssociationDTO>) - public async System.Threading.Tasks.Task>> AssociationsInsertWithIdAsyncWithHttpInfo (int? id, List docnumbers) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsApi->AssociationsInsertWithId"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling AssociationsApi->AssociationsInsertWithId"); - - var localVarPath = "/api/Associations/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsInsertWithId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds profiles to an existing association by association name - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// List<AssociationDTO> - public List AssociationsInsertWithName (Object bodyData) - { - ApiResponse> localVarResponse = AssociationsInsertWithNameWithHttpInfo(bodyData); - return localVarResponse.Data; - } - - /// - /// This call adds profiles to an existing association by association name - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// ApiResponse of List<AssociationDTO> - public ApiResponse< List > AssociationsInsertWithNameWithHttpInfo (Object bodyData) - { - // verify the required parameter 'bodyData' is set - if (bodyData == null) - throw new ApiException(400, "Missing required parameter 'bodyData' when calling AssociationsApi->AssociationsInsertWithName"); - - var localVarPath = "/api/Associations/insertWithName"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bodyData != null && bodyData.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(bodyData); // http body (model) parameter - } - else - { - localVarPostBody = bodyData; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsInsertWithName", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds profiles to an existing association by association name - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// Task of List<AssociationDTO> - public async System.Threading.Tasks.Task> AssociationsInsertWithNameAsync (Object bodyData) - { - ApiResponse> localVarResponse = await AssociationsInsertWithNameAsyncWithHttpInfo(bodyData); - return localVarResponse.Data; - - } - - /// - /// This call adds profiles to an existing association by association name - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// Task of ApiResponse (List<AssociationDTO>) - public async System.Threading.Tasks.Task>> AssociationsInsertWithNameAsyncWithHttpInfo (Object bodyData) - { - // verify the required parameter 'bodyData' is set - if (bodyData == null) - throw new ApiException(400, "Missing required parameter 'bodyData' when calling AssociationsApi->AssociationsInsertWithName"); - - var localVarPath = "/api/Associations/insertWithName"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bodyData != null && bodyData.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(bodyData); // http body (model) parameter - } - else - { - localVarPostBody = bodyData; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsInsertWithName", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call removes a profile from association - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// - public void AssociationsRemove (int? id, int? docnumber) - { - AssociationsRemoveWithHttpInfo(id, docnumber); - } - - /// - /// This call removes a profile from association - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// ApiResponse of Object(void) - public ApiResponse AssociationsRemoveWithHttpInfo (int? id, int? docnumber) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsApi->AssociationsRemove"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AssociationsApi->AssociationsRemove"); - - var localVarPath = "/api/Associations/{id}/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsRemove", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call removes a profile from association - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// Task of void - public async System.Threading.Tasks.Task AssociationsRemoveAsync (int? id, int? docnumber) - { - await AssociationsRemoveAsyncWithHttpInfo(id, docnumber); - - } - - /// - /// This call removes a profile from association - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssociationsRemoveAsyncWithHttpInfo (int? id, int? docnumber) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsApi->AssociationsRemove"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AssociationsApi->AssociationsRemove"); - - var localVarPath = "/api/Associations/{id}/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsRemove", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call renames an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// - public void AssociationsRename (int? id, Object bodyData) - { - AssociationsRenameWithHttpInfo(id, bodyData); - } - - /// - /// This call renames an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// ApiResponse of Object(void) - public ApiResponse AssociationsRenameWithHttpInfo (int? id, Object bodyData) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsApi->AssociationsRename"); - // verify the required parameter 'bodyData' is set - if (bodyData == null) - throw new ApiException(400, "Missing required parameter 'bodyData' when calling AssociationsApi->AssociationsRename"); - - var localVarPath = "/api/Associations/rename/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (bodyData != null && bodyData.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(bodyData); // http body (model) parameter - } - else - { - localVarPostBody = bodyData; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsRename", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call renames an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// Task of void - public async System.Threading.Tasks.Task AssociationsRenameAsync (int? id, Object bodyData) - { - await AssociationsRenameAsyncWithHttpInfo(id, bodyData); - - } - - /// - /// This call renames an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssociationsRenameAsyncWithHttpInfo (int? id, Object bodyData) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsApi->AssociationsRename"); - // verify the required parameter 'bodyData' is set - if (bodyData == null) - throw new ApiException(400, "Missing required parameter 'bodyData' when calling AssociationsApi->AssociationsRename"); - - var localVarPath = "/api/Associations/rename/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (bodyData != null && bodyData.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(bodyData); // http body (model) parameter - } - else - { - localVarPostBody = bodyData; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsRename", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/AssociationsV2Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/AssociationsV2Api.cs deleted file mode 100644 index 848d5dd..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/AssociationsV2Api.cs +++ /dev/null @@ -1,1979 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IAssociationsV2Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// - void AssociationsV2Delete (int? id); - - /// - /// This call deletes an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// ApiResponse of Object(void) - ApiResponse AssociationsV2DeleteWithHttpInfo (int? id); - /// - /// This calls returns all ARXivar associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<AssociationDTO> - List AssociationsV2Get (); - - /// - /// This calls returns all ARXivar associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<AssociationDTO> - ApiResponse> AssociationsV2GetWithHttpInfo (); - /// - /// This call returns all associations by a document identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// List<AssociationDTO> - List AssociationsV2GetByDocNumber (int? docnumber); - - /// - /// This call returns all associations by a document identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of List<AssociationDTO> - ApiResponse> AssociationsV2GetByDocNumberWithHttpInfo (int? docnumber); - /// - /// This call returns the profile data contained in the association This call could not be compatible with some programming language, in this case use the call api/Associations/items/{id} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// Object - Object AssociationsV2GetById (int? id, SelectDTO select); - - /// - /// This call returns the profile data contained in the association This call could not be compatible with some programming language, in this case use the call api/Associations/items/{id} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// ApiResponse of Object - ApiResponse AssociationsV2GetByIdWithHttpInfo (int? id, SelectDTO select); - /// - /// This call adds profiles in a new association with auto generated name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// List<AssociationDTO> - List AssociationsV2InsertNew (List docnumbers); - - /// - /// This call adds profiles in a new association with auto generated name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// ApiResponse of List<AssociationDTO> - ApiResponse> AssociationsV2InsertNewWithHttpInfo (List docnumbers); - /// - /// This call adds profiles in an association by association Identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// List<AssociationDTO> - List AssociationsV2InsertWithId (int? id, List docnumbers); - - /// - /// This call adds profiles in an association by association Identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// ApiResponse of List<AssociationDTO> - ApiResponse> AssociationsV2InsertWithIdWithHttpInfo (int? id, List docnumbers); - /// - /// This call adds profiles to an existing association by association name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// List<AssociationDTO> - List AssociationsV2InsertWithName (Object bodyData); - - /// - /// This call adds profiles to an existing association by association name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// ApiResponse of List<AssociationDTO> - ApiResponse> AssociationsV2InsertWithNameWithHttpInfo (Object bodyData); - /// - /// This call removes a profile from association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// - void AssociationsV2Remove (int? id, int? docnumber); - - /// - /// This call removes a profile from association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// ApiResponse of Object(void) - ApiResponse AssociationsV2RemoveWithHttpInfo (int? id, int? docnumber); - /// - /// This call renames an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// - void AssociationsV2Rename (int? id, Object bodyData); - - /// - /// This call renames an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// ApiResponse of Object(void) - ApiResponse AssociationsV2RenameWithHttpInfo (int? id, Object bodyData); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// Task of void - System.Threading.Tasks.Task AssociationsV2DeleteAsync (int? id); - - /// - /// This call deletes an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// Task of ApiResponse - System.Threading.Tasks.Task> AssociationsV2DeleteAsyncWithHttpInfo (int? id); - /// - /// This calls returns all ARXivar associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<AssociationDTO> - System.Threading.Tasks.Task> AssociationsV2GetAsync (); - - /// - /// This calls returns all ARXivar associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<AssociationDTO>) - System.Threading.Tasks.Task>> AssociationsV2GetAsyncWithHttpInfo (); - /// - /// This call returns all associations by a document identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of List<AssociationDTO> - System.Threading.Tasks.Task> AssociationsV2GetByDocNumberAsync (int? docnumber); - - /// - /// This call returns all associations by a document identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (List<AssociationDTO>) - System.Threading.Tasks.Task>> AssociationsV2GetByDocNumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call returns the profile data contained in the association This call could not be compatible with some programming language, in this case use the call api/Associations/items/{id} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// Task of Object - System.Threading.Tasks.Task AssociationsV2GetByIdAsync (int? id, SelectDTO select); - - /// - /// This call returns the profile data contained in the association This call could not be compatible with some programming language, in this case use the call api/Associations/items/{id} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> AssociationsV2GetByIdAsyncWithHttpInfo (int? id, SelectDTO select); - /// - /// This call adds profiles in a new association with auto generated name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// Task of List<AssociationDTO> - System.Threading.Tasks.Task> AssociationsV2InsertNewAsync (List docnumbers); - - /// - /// This call adds profiles in a new association with auto generated name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// Task of ApiResponse (List<AssociationDTO>) - System.Threading.Tasks.Task>> AssociationsV2InsertNewAsyncWithHttpInfo (List docnumbers); - /// - /// This call adds profiles in an association by association Identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// Task of List<AssociationDTO> - System.Threading.Tasks.Task> AssociationsV2InsertWithIdAsync (int? id, List docnumbers); - - /// - /// This call adds profiles in an association by association Identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// Task of ApiResponse (List<AssociationDTO>) - System.Threading.Tasks.Task>> AssociationsV2InsertWithIdAsyncWithHttpInfo (int? id, List docnumbers); - /// - /// This call adds profiles to an existing association by association name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// Task of List<AssociationDTO> - System.Threading.Tasks.Task> AssociationsV2InsertWithNameAsync (Object bodyData); - - /// - /// This call adds profiles to an existing association by association name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// Task of ApiResponse (List<AssociationDTO>) - System.Threading.Tasks.Task>> AssociationsV2InsertWithNameAsyncWithHttpInfo (Object bodyData); - /// - /// This call removes a profile from association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// Task of void - System.Threading.Tasks.Task AssociationsV2RemoveAsync (int? id, int? docnumber); - - /// - /// This call removes a profile from association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// Task of ApiResponse - System.Threading.Tasks.Task> AssociationsV2RemoveAsyncWithHttpInfo (int? id, int? docnumber); - /// - /// This call renames an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// Task of void - System.Threading.Tasks.Task AssociationsV2RenameAsync (int? id, Object bodyData); - - /// - /// This call renames an existing association - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// Task of ApiResponse - System.Threading.Tasks.Task> AssociationsV2RenameAsyncWithHttpInfo (int? id, Object bodyData); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AssociationsV2Api : IAssociationsV2Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public AssociationsV2Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public AssociationsV2Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// - public void AssociationsV2Delete (int? id) - { - AssociationsV2DeleteWithHttpInfo(id); - } - - /// - /// This call deletes an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// ApiResponse of Object(void) - public ApiResponse AssociationsV2DeleteWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsV2Api->AssociationsV2Delete"); - - var localVarPath = "/api/v2/Associations/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2Delete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// Task of void - public async System.Threading.Tasks.Task AssociationsV2DeleteAsync (int? id) - { - await AssociationsV2DeleteAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to delete - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssociationsV2DeleteAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsV2Api->AssociationsV2Delete"); - - var localVarPath = "/api/v2/Associations/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2Delete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This calls returns all ARXivar associations - /// - /// Thrown when fails to make API call - /// List<AssociationDTO> - public List AssociationsV2Get () - { - ApiResponse> localVarResponse = AssociationsV2GetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This calls returns all ARXivar associations - /// - /// Thrown when fails to make API call - /// ApiResponse of List<AssociationDTO> - public ApiResponse< List > AssociationsV2GetWithHttpInfo () - { - - var localVarPath = "/api/v2/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2Get", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This calls returns all ARXivar associations - /// - /// Thrown when fails to make API call - /// Task of List<AssociationDTO> - public async System.Threading.Tasks.Task> AssociationsV2GetAsync () - { - ApiResponse> localVarResponse = await AssociationsV2GetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This calls returns all ARXivar associations - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<AssociationDTO>) - public async System.Threading.Tasks.Task>> AssociationsV2GetAsyncWithHttpInfo () - { - - var localVarPath = "/api/v2/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2Get", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all associations by a document identifier - /// - /// Thrown when fails to make API call - /// Document identifier - /// List<AssociationDTO> - public List AssociationsV2GetByDocNumber (int? docnumber) - { - ApiResponse> localVarResponse = AssociationsV2GetByDocNumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns all associations by a document identifier - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of List<AssociationDTO> - public ApiResponse< List > AssociationsV2GetByDocNumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AssociationsV2Api->AssociationsV2GetByDocNumber"); - - var localVarPath = "/api/v2/Associations/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2GetByDocNumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all associations by a document identifier - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of List<AssociationDTO> - public async System.Threading.Tasks.Task> AssociationsV2GetByDocNumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await AssociationsV2GetByDocNumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns all associations by a document identifier - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (List<AssociationDTO>) - public async System.Threading.Tasks.Task>> AssociationsV2GetByDocNumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AssociationsV2Api->AssociationsV2GetByDocNumber"); - - var localVarPath = "/api/v2/Associations/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2GetByDocNumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the profile data contained in the association This call could not be compatible with some programming language, in this case use the call api/Associations/items/{id} - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// Object - public Object AssociationsV2GetById (int? id, SelectDTO select) - { - ApiResponse localVarResponse = AssociationsV2GetByIdWithHttpInfo(id, select); - return localVarResponse.Data; - } - - /// - /// This call returns the profile data contained in the association This call could not be compatible with some programming language, in this case use the call api/Associations/items/{id} - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// ApiResponse of Object - public ApiResponse< Object > AssociationsV2GetByIdWithHttpInfo (int? id, SelectDTO select) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsV2Api->AssociationsV2GetById"); - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling AssociationsV2Api->AssociationsV2GetById"); - - var localVarPath = "/api/v2/Associations/items/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2GetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the profile data contained in the association This call could not be compatible with some programming language, in this case use the call api/Associations/items/{id} - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// Task of Object - public async System.Threading.Tasks.Task AssociationsV2GetByIdAsync (int? id, SelectDTO select) - { - ApiResponse localVarResponse = await AssociationsV2GetByIdAsyncWithHttpInfo(id, select); - return localVarResponse.Data; - - } - - /// - /// This call returns the profile data contained in the association This call could not be compatible with some programming language, in this case use the call api/Associations/items/{id} - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Columns settings for the result - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> AssociationsV2GetByIdAsyncWithHttpInfo (int? id, SelectDTO select) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsV2Api->AssociationsV2GetById"); - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling AssociationsV2Api->AssociationsV2GetById"); - - var localVarPath = "/api/v2/Associations/items/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2GetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call adds profiles in a new association with auto generated name - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// List<AssociationDTO> - public List AssociationsV2InsertNew (List docnumbers) - { - ApiResponse> localVarResponse = AssociationsV2InsertNewWithHttpInfo(docnumbers); - return localVarResponse.Data; - } - - /// - /// This call adds profiles in a new association with auto generated name - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// ApiResponse of List<AssociationDTO> - public ApiResponse< List > AssociationsV2InsertNewWithHttpInfo (List docnumbers) - { - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling AssociationsV2Api->AssociationsV2InsertNew"); - - var localVarPath = "/api/v2/Associations/insert/new"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2InsertNew", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds profiles in a new association with auto generated name - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// Task of List<AssociationDTO> - public async System.Threading.Tasks.Task> AssociationsV2InsertNewAsync (List docnumbers) - { - ApiResponse> localVarResponse = await AssociationsV2InsertNewAsyncWithHttpInfo(docnumbers); - return localVarResponse.Data; - - } - - /// - /// This call adds profiles in a new association with auto generated name - /// - /// Thrown when fails to make API call - /// Identifiers of the profiles to add - /// Task of ApiResponse (List<AssociationDTO>) - public async System.Threading.Tasks.Task>> AssociationsV2InsertNewAsyncWithHttpInfo (List docnumbers) - { - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling AssociationsV2Api->AssociationsV2InsertNew"); - - var localVarPath = "/api/v2/Associations/insert/new"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2InsertNew", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds profiles in an association by association Identifier - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// List<AssociationDTO> - public List AssociationsV2InsertWithId (int? id, List docnumbers) - { - ApiResponse> localVarResponse = AssociationsV2InsertWithIdWithHttpInfo(id, docnumbers); - return localVarResponse.Data; - } - - /// - /// This call adds profiles in an association by association Identifier - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// ApiResponse of List<AssociationDTO> - public ApiResponse< List > AssociationsV2InsertWithIdWithHttpInfo (int? id, List docnumbers) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsV2Api->AssociationsV2InsertWithId"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling AssociationsV2Api->AssociationsV2InsertWithId"); - - var localVarPath = "/api/v2/Associations/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2InsertWithId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds profiles in an association by association Identifier - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// Task of List<AssociationDTO> - public async System.Threading.Tasks.Task> AssociationsV2InsertWithIdAsync (int? id, List docnumbers) - { - ApiResponse> localVarResponse = await AssociationsV2InsertWithIdAsyncWithHttpInfo(id, docnumbers); - return localVarResponse.Data; - - } - - /// - /// This call adds profiles in an association by association Identifier - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifiers of the profiles to add - /// Task of ApiResponse (List<AssociationDTO>) - public async System.Threading.Tasks.Task>> AssociationsV2InsertWithIdAsyncWithHttpInfo (int? id, List docnumbers) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsV2Api->AssociationsV2InsertWithId"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling AssociationsV2Api->AssociationsV2InsertWithId"); - - var localVarPath = "/api/v2/Associations/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2InsertWithId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds profiles to an existing association by association name - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// List<AssociationDTO> - public List AssociationsV2InsertWithName (Object bodyData) - { - ApiResponse> localVarResponse = AssociationsV2InsertWithNameWithHttpInfo(bodyData); - return localVarResponse.Data; - } - - /// - /// This call adds profiles to an existing association by association name - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// ApiResponse of List<AssociationDTO> - public ApiResponse< List > AssociationsV2InsertWithNameWithHttpInfo (Object bodyData) - { - // verify the required parameter 'bodyData' is set - if (bodyData == null) - throw new ApiException(400, "Missing required parameter 'bodyData' when calling AssociationsV2Api->AssociationsV2InsertWithName"); - - var localVarPath = "/api/v2/Associations/insertWithName"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bodyData != null && bodyData.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(bodyData); // http body (model) parameter - } - else - { - localVarPostBody = bodyData; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2InsertWithName", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds profiles to an existing association by association name - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// Task of List<AssociationDTO> - public async System.Threading.Tasks.Task> AssociationsV2InsertWithNameAsync (Object bodyData) - { - ApiResponse> localVarResponse = await AssociationsV2InsertWithNameAsyncWithHttpInfo(bodyData); - return localVarResponse.Data; - - } - - /// - /// This call adds profiles to an existing association by association name - /// - /// Thrown when fails to make API call - /// JSON object with 2 properties: docnumbers (array of ints) and associationName (new association name) - /// Task of ApiResponse (List<AssociationDTO>) - public async System.Threading.Tasks.Task>> AssociationsV2InsertWithNameAsyncWithHttpInfo (Object bodyData) - { - // verify the required parameter 'bodyData' is set - if (bodyData == null) - throw new ApiException(400, "Missing required parameter 'bodyData' when calling AssociationsV2Api->AssociationsV2InsertWithName"); - - var localVarPath = "/api/v2/Associations/insertWithName"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bodyData != null && bodyData.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(bodyData); // http body (model) parameter - } - else - { - localVarPostBody = bodyData; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2InsertWithName", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call removes a profile from association - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// - public void AssociationsV2Remove (int? id, int? docnumber) - { - AssociationsV2RemoveWithHttpInfo(id, docnumber); - } - - /// - /// This call removes a profile from association - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// ApiResponse of Object(void) - public ApiResponse AssociationsV2RemoveWithHttpInfo (int? id, int? docnumber) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsV2Api->AssociationsV2Remove"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AssociationsV2Api->AssociationsV2Remove"); - - var localVarPath = "/api/v2/Associations/{id}/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2Remove", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call removes a profile from association - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// Task of void - public async System.Threading.Tasks.Task AssociationsV2RemoveAsync (int? id, int? docnumber) - { - await AssociationsV2RemoveAsyncWithHttpInfo(id, docnumber); - - } - - /// - /// This call removes a profile from association - /// - /// Thrown when fails to make API call - /// Identifier of the association - /// Identifier of the profile to remove - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssociationsV2RemoveAsyncWithHttpInfo (int? id, int? docnumber) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsV2Api->AssociationsV2Remove"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AssociationsV2Api->AssociationsV2Remove"); - - var localVarPath = "/api/v2/Associations/{id}/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2Remove", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call renames an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// - public void AssociationsV2Rename (int? id, Object bodyData) - { - AssociationsV2RenameWithHttpInfo(id, bodyData); - } - - /// - /// This call renames an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// ApiResponse of Object(void) - public ApiResponse AssociationsV2RenameWithHttpInfo (int? id, Object bodyData) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsV2Api->AssociationsV2Rename"); - // verify the required parameter 'bodyData' is set - if (bodyData == null) - throw new ApiException(400, "Missing required parameter 'bodyData' when calling AssociationsV2Api->AssociationsV2Rename"); - - var localVarPath = "/api/v2/Associations/rename/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (bodyData != null && bodyData.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(bodyData); // http body (model) parameter - } - else - { - localVarPostBody = bodyData; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2Rename", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call renames an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// Task of void - public async System.Threading.Tasks.Task AssociationsV2RenameAsync (int? id, Object bodyData) - { - await AssociationsV2RenameAsyncWithHttpInfo(id, bodyData); - - } - - /// - /// This call renames an existing association - /// - /// Thrown when fails to make API call - /// Identifier of the association to rename - /// JSON object with 1 property: associationName (new association name) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssociationsV2RenameAsyncWithHttpInfo (int? id, Object bodyData) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AssociationsV2Api->AssociationsV2Rename"); - // verify the required parameter 'bodyData' is set - if (bodyData == null) - throw new ApiException(400, "Missing required parameter 'bodyData' when calling AssociationsV2Api->AssociationsV2Rename"); - - var localVarPath = "/api/v2/Associations/rename/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (bodyData != null && bodyData.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(bodyData); // http body (model) parameter - } - else - { - localVarPostBody = bodyData; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AssociationsV2Rename", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/AttachmentsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/AttachmentsApi.cs deleted file mode 100644 index 6bbabac..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/AttachmentsApi.cs +++ /dev/null @@ -1,3133 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IAttachmentsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call adds a revision for the attachment by a existent revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the revision - /// - void AttachmentsAttachmentRevisionByRevision (int? attachmentId, int? revisionId); - - /// - /// This call adds a revision for the attachment by a existent revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the revision - /// ApiResponse of Object(void) - ApiResponse AttachmentsAttachmentRevisionByRevisionWithHttpInfo (int? attachmentId, int? revisionId); - /// - /// This call converts an attachment file to the profile file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// - void AttachmentsConvertoToPrincipalDocument (int? attachmentId); - - /// - /// This call converts an attachment file to the profile file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// ApiResponse of Object(void) - ApiResponse AttachmentsConvertoToPrincipalDocumentWithHttpInfo (int? attachmentId); - /// - /// This call deletes an attachment by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// - void AttachmentsDelete (int? id); - - /// - /// This call deletes an attachment by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// ApiResponse of Object(void) - ApiResponse AttachmentsDeleteWithHttpInfo (int? id); - /// - /// This call deletes revision by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the revision - /// - void AttachmentsDeleteRevision (int? revisionId); - - /// - /// This call deletes revision by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the revision - /// ApiResponse of Object(void) - ApiResponse AttachmentsDeleteRevisionWithHttpInfo (int? revisionId); - /// - /// This call returns the attachment by profile and footprint - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Search options - /// AttachmentDTO - AttachmentDTO AttachmentsGetByDocNumberAndFootprint (AttachmentByDocnumberFootprintRequestDTO options); - - /// - /// This call returns the attachment by profile and footprint - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Search options - /// ApiResponse of AttachmentDTO - ApiResponse AttachmentsGetByDocNumberAndFootprintWithHttpInfo (AttachmentByDocnumberFootprintRequestDTO options); - /// - /// This call retrieves all the attachments of a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// List<AttachmentDTO> - List AttachmentsGetByDocnumber (int? docnumber); - - /// - /// This call retrieves all the attachments of a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// ApiResponse of List<AttachmentDTO> - ApiResponse> AttachmentsGetByDocnumberWithHttpInfo (int? docnumber); - /// - /// This call returns the data for external and internal attachement of a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// AttachmentsDataSourceDTO - AttachmentsDataSourceDTO AttachmentsGetByDocnumberForGrid (int? docnumber); - - /// - /// This call returns the data for external and internal attachement of a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// ApiResponse of AttachmentsDataSourceDTO - ApiResponse AttachmentsGetByDocnumberForGridWithHttpInfo (int? docnumber); - /// - /// This call returns the attachment by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// AttachmentDTO - AttachmentDTO AttachmentsGetById (int? id); - - /// - /// This call returns the attachment by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// ApiResponse of AttachmentDTO - ApiResponse AttachmentsGetByIdWithHttpInfo (int? id); - /// - /// This call retrieves the list of the revisions of an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// List<AttachmentRevisionDTO> - List AttachmentsGetRevisionsByAttachmentId (int? attachmentId); - - /// - /// This call retrieves the list of the revisions of an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// ApiResponse of List<AttachmentRevisionDTO> - ApiResponse> AttachmentsGetRevisionsByAttachmentIdWithHttpInfo (int? attachmentId); - /// - /// This call adds a new external attachment for a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Buffer Identifier of the file to attach - /// Identifier of the profile - /// Comment for the new attachment - /// AttachmentDTO - AttachmentDTO AttachmentsInsertExternal (string bufferid, int? docnumber, string comment); - - /// - /// This call adds a new external attachment for a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Buffer Identifier of the file to attach - /// Identifier of the profile - /// Comment for the new attachment - /// ApiResponse of AttachmentDTO - ApiResponse AttachmentsInsertExternalWithHttpInfo (string bufferid, int? docnumber, string comment); - /// - /// This call adds a new internal attachment for a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the profile - /// AttachmentDTO - AttachmentDTO AttachmentsInsertInternal (int? attachmentDocnumber, int? docnumber); - - /// - /// This call adds a new internal attachment for a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the profile - /// ApiResponse of AttachmentDTO - ApiResponse AttachmentsInsertInternalWithHttpInfo (int? attachmentDocnumber, int? docnumber); - /// - /// This call returns the permissions for an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// PermissionsDTO - PermissionsDTO AttachmentsPermissionsById (int? id); - - /// - /// This call returns the permissions for an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// ApiResponse of PermissionsDTO - ApiResponse AttachmentsPermissionsByIdWithHttpInfo (int? id); - /// - /// This call updates attachment file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Buffer Identifier of the file - /// - void AttachmentsPutAttachmentDocument (int? attachmentId, string bufferId); - - /// - /// This call updates attachment file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Buffer Identifier of the file - /// ApiResponse of Object(void) - ApiResponse AttachmentsPutAttachmentDocumentWithHttpInfo (int? attachmentId, string bufferId); - /// - /// This call updates a attachment by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Object that indicates the attachment data to update - /// - void AttachmentsUpdate (int? id, AttachmentDTO attachment); - - /// - /// This call updates a attachment by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Object that indicates the attachment data to update - /// ApiResponse of Object(void) - ApiResponse AttachmentsUpdateWithHttpInfo (int? id, AttachmentDTO attachment); - /// - /// This call updates permission of an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Permission data to update - /// - void AttachmentsWritePermissionsById (int? id, PermissionsDTO permissions); - - /// - /// This call updates permission of an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Permission data to update - /// ApiResponse of Object(void) - ApiResponse AttachmentsWritePermissionsByIdWithHttpInfo (int? id, PermissionsDTO permissions); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call adds a revision for the attachment by a existent revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the revision - /// Task of void - System.Threading.Tasks.Task AttachmentsAttachmentRevisionByRevisionAsync (int? attachmentId, int? revisionId); - - /// - /// This call adds a revision for the attachment by a existent revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the revision - /// Task of ApiResponse - System.Threading.Tasks.Task> AttachmentsAttachmentRevisionByRevisionAsyncWithHttpInfo (int? attachmentId, int? revisionId); - /// - /// This call converts an attachment file to the profile file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of void - System.Threading.Tasks.Task AttachmentsConvertoToPrincipalDocumentAsync (int? attachmentId); - - /// - /// This call converts an attachment file to the profile file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of ApiResponse - System.Threading.Tasks.Task> AttachmentsConvertoToPrincipalDocumentAsyncWithHttpInfo (int? attachmentId); - /// - /// This call deletes an attachment by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of void - System.Threading.Tasks.Task AttachmentsDeleteAsync (int? id); - - /// - /// This call deletes an attachment by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of ApiResponse - System.Threading.Tasks.Task> AttachmentsDeleteAsyncWithHttpInfo (int? id); - /// - /// This call deletes revision by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the revision - /// Task of void - System.Threading.Tasks.Task AttachmentsDeleteRevisionAsync (int? revisionId); - - /// - /// This call deletes revision by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the revision - /// Task of ApiResponse - System.Threading.Tasks.Task> AttachmentsDeleteRevisionAsyncWithHttpInfo (int? revisionId); - /// - /// This call returns the attachment by profile and footprint - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Search options - /// Task of AttachmentDTO - System.Threading.Tasks.Task AttachmentsGetByDocNumberAndFootprintAsync (AttachmentByDocnumberFootprintRequestDTO options); - - /// - /// This call returns the attachment by profile and footprint - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Search options - /// Task of ApiResponse (AttachmentDTO) - System.Threading.Tasks.Task> AttachmentsGetByDocNumberAndFootprintAsyncWithHttpInfo (AttachmentByDocnumberFootprintRequestDTO options); - /// - /// This call retrieves all the attachments of a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// Task of List<AttachmentDTO> - System.Threading.Tasks.Task> AttachmentsGetByDocnumberAsync (int? docnumber); - - /// - /// This call retrieves all the attachments of a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// Task of ApiResponse (List<AttachmentDTO>) - System.Threading.Tasks.Task>> AttachmentsGetByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call returns the data for external and internal attachement of a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// Task of AttachmentsDataSourceDTO - System.Threading.Tasks.Task AttachmentsGetByDocnumberForGridAsync (int? docnumber); - - /// - /// This call returns the data for external and internal attachement of a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// Task of ApiResponse (AttachmentsDataSourceDTO) - System.Threading.Tasks.Task> AttachmentsGetByDocnumberForGridAsyncWithHttpInfo (int? docnumber); - /// - /// This call returns the attachment by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of AttachmentDTO - System.Threading.Tasks.Task AttachmentsGetByIdAsync (int? id); - - /// - /// This call returns the attachment by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of ApiResponse (AttachmentDTO) - System.Threading.Tasks.Task> AttachmentsGetByIdAsyncWithHttpInfo (int? id); - /// - /// This call retrieves the list of the revisions of an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of List<AttachmentRevisionDTO> - System.Threading.Tasks.Task> AttachmentsGetRevisionsByAttachmentIdAsync (int? attachmentId); - - /// - /// This call retrieves the list of the revisions of an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of ApiResponse (List<AttachmentRevisionDTO>) - System.Threading.Tasks.Task>> AttachmentsGetRevisionsByAttachmentIdAsyncWithHttpInfo (int? attachmentId); - /// - /// This call adds a new external attachment for a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Buffer Identifier of the file to attach - /// Identifier of the profile - /// Comment for the new attachment - /// Task of AttachmentDTO - System.Threading.Tasks.Task AttachmentsInsertExternalAsync (string bufferid, int? docnumber, string comment); - - /// - /// This call adds a new external attachment for a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Buffer Identifier of the file to attach - /// Identifier of the profile - /// Comment for the new attachment - /// Task of ApiResponse (AttachmentDTO) - System.Threading.Tasks.Task> AttachmentsInsertExternalAsyncWithHttpInfo (string bufferid, int? docnumber, string comment); - /// - /// This call adds a new internal attachment for a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the profile - /// Task of AttachmentDTO - System.Threading.Tasks.Task AttachmentsInsertInternalAsync (int? attachmentDocnumber, int? docnumber); - - /// - /// This call adds a new internal attachment for a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the profile - /// Task of ApiResponse (AttachmentDTO) - System.Threading.Tasks.Task> AttachmentsInsertInternalAsyncWithHttpInfo (int? attachmentDocnumber, int? docnumber); - /// - /// This call returns the permissions for an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of PermissionsDTO - System.Threading.Tasks.Task AttachmentsPermissionsByIdAsync (int? id); - - /// - /// This call returns the permissions for an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of ApiResponse (PermissionsDTO) - System.Threading.Tasks.Task> AttachmentsPermissionsByIdAsyncWithHttpInfo (int? id); - /// - /// This call updates attachment file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Buffer Identifier of the file - /// Task of void - System.Threading.Tasks.Task AttachmentsPutAttachmentDocumentAsync (int? attachmentId, string bufferId); - - /// - /// This call updates attachment file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Buffer Identifier of the file - /// Task of ApiResponse - System.Threading.Tasks.Task> AttachmentsPutAttachmentDocumentAsyncWithHttpInfo (int? attachmentId, string bufferId); - /// - /// This call updates a attachment by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Object that indicates the attachment data to update - /// Task of void - System.Threading.Tasks.Task AttachmentsUpdateAsync (int? id, AttachmentDTO attachment); - - /// - /// This call updates a attachment by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Object that indicates the attachment data to update - /// Task of ApiResponse - System.Threading.Tasks.Task> AttachmentsUpdateAsyncWithHttpInfo (int? id, AttachmentDTO attachment); - /// - /// This call updates permission of an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Permission data to update - /// Task of void - System.Threading.Tasks.Task AttachmentsWritePermissionsByIdAsync (int? id, PermissionsDTO permissions); - - /// - /// This call updates permission of an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Permission data to update - /// Task of ApiResponse - System.Threading.Tasks.Task> AttachmentsWritePermissionsByIdAsyncWithHttpInfo (int? id, PermissionsDTO permissions); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AttachmentsApi : IAttachmentsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public AttachmentsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public AttachmentsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call adds a revision for the attachment by a existent revision - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the revision - /// - public void AttachmentsAttachmentRevisionByRevision (int? attachmentId, int? revisionId) - { - AttachmentsAttachmentRevisionByRevisionWithHttpInfo(attachmentId, revisionId); - } - - /// - /// This call adds a revision for the attachment by a existent revision - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the revision - /// ApiResponse of Object(void) - public ApiResponse AttachmentsAttachmentRevisionByRevisionWithHttpInfo (int? attachmentId, int? revisionId) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentsApi->AttachmentsAttachmentRevisionByRevision"); - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling AttachmentsApi->AttachmentsAttachmentRevisionByRevision"); - - var localVarPath = "/api/Attachments/{attachmentId}/Revisions/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsAttachmentRevisionByRevision", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds a revision for the attachment by a existent revision - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the revision - /// Task of void - public async System.Threading.Tasks.Task AttachmentsAttachmentRevisionByRevisionAsync (int? attachmentId, int? revisionId) - { - await AttachmentsAttachmentRevisionByRevisionAsyncWithHttpInfo(attachmentId, revisionId); - - } - - /// - /// This call adds a revision for the attachment by a existent revision - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the revision - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AttachmentsAttachmentRevisionByRevisionAsyncWithHttpInfo (int? attachmentId, int? revisionId) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentsApi->AttachmentsAttachmentRevisionByRevision"); - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling AttachmentsApi->AttachmentsAttachmentRevisionByRevision"); - - var localVarPath = "/api/Attachments/{attachmentId}/Revisions/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsAttachmentRevisionByRevision", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call converts an attachment file to the profile file - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// - public void AttachmentsConvertoToPrincipalDocument (int? attachmentId) - { - AttachmentsConvertoToPrincipalDocumentWithHttpInfo(attachmentId); - } - - /// - /// This call converts an attachment file to the profile file - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// ApiResponse of Object(void) - public ApiResponse AttachmentsConvertoToPrincipalDocumentWithHttpInfo (int? attachmentId) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentsApi->AttachmentsConvertoToPrincipalDocument"); - - var localVarPath = "/api/Attachments/{attachmentId}/convertToPrincipal"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsConvertoToPrincipalDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call converts an attachment file to the profile file - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of void - public async System.Threading.Tasks.Task AttachmentsConvertoToPrincipalDocumentAsync (int? attachmentId) - { - await AttachmentsConvertoToPrincipalDocumentAsyncWithHttpInfo(attachmentId); - - } - - /// - /// This call converts an attachment file to the profile file - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AttachmentsConvertoToPrincipalDocumentAsyncWithHttpInfo (int? attachmentId) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentsApi->AttachmentsConvertoToPrincipalDocument"); - - var localVarPath = "/api/Attachments/{attachmentId}/convertToPrincipal"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsConvertoToPrincipalDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes an attachment by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// - public void AttachmentsDelete (int? id) - { - AttachmentsDeleteWithHttpInfo(id); - } - - /// - /// This call deletes an attachment by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// ApiResponse of Object(void) - public ApiResponse AttachmentsDeleteWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AttachmentsApi->AttachmentsDelete"); - - var localVarPath = "/api/Attachments/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes an attachment by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of void - public async System.Threading.Tasks.Task AttachmentsDeleteAsync (int? id) - { - await AttachmentsDeleteAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes an attachment by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AttachmentsDeleteAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AttachmentsApi->AttachmentsDelete"); - - var localVarPath = "/api/Attachments/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes revision by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the revision - /// - public void AttachmentsDeleteRevision (int? revisionId) - { - AttachmentsDeleteRevisionWithHttpInfo(revisionId); - } - - /// - /// This call deletes revision by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the revision - /// ApiResponse of Object(void) - public ApiResponse AttachmentsDeleteRevisionWithHttpInfo (int? revisionId) - { - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling AttachmentsApi->AttachmentsDeleteRevision"); - - var localVarPath = "/api/Attachments/Revisions/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsDeleteRevision", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes revision by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the revision - /// Task of void - public async System.Threading.Tasks.Task AttachmentsDeleteRevisionAsync (int? revisionId) - { - await AttachmentsDeleteRevisionAsyncWithHttpInfo(revisionId); - - } - - /// - /// This call deletes revision by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the revision - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AttachmentsDeleteRevisionAsyncWithHttpInfo (int? revisionId) - { - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling AttachmentsApi->AttachmentsDeleteRevision"); - - var localVarPath = "/api/Attachments/Revisions/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsDeleteRevision", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the attachment by profile and footprint - /// - /// Thrown when fails to make API call - /// Search options - /// AttachmentDTO - public AttachmentDTO AttachmentsGetByDocNumberAndFootprint (AttachmentByDocnumberFootprintRequestDTO options) - { - ApiResponse localVarResponse = AttachmentsGetByDocNumberAndFootprintWithHttpInfo(options); - return localVarResponse.Data; - } - - /// - /// This call returns the attachment by profile and footprint - /// - /// Thrown when fails to make API call - /// Search options - /// ApiResponse of AttachmentDTO - public ApiResponse< AttachmentDTO > AttachmentsGetByDocNumberAndFootprintWithHttpInfo (AttachmentByDocnumberFootprintRequestDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling AttachmentsApi->AttachmentsGetByDocNumberAndFootprint"); - - var localVarPath = "/api/Attachments/ByDocnumberAndFootprint"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsGetByDocNumberAndFootprint", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AttachmentDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AttachmentDTO))); - } - - /// - /// This call returns the attachment by profile and footprint - /// - /// Thrown when fails to make API call - /// Search options - /// Task of AttachmentDTO - public async System.Threading.Tasks.Task AttachmentsGetByDocNumberAndFootprintAsync (AttachmentByDocnumberFootprintRequestDTO options) - { - ApiResponse localVarResponse = await AttachmentsGetByDocNumberAndFootprintAsyncWithHttpInfo(options); - return localVarResponse.Data; - - } - - /// - /// This call returns the attachment by profile and footprint - /// - /// Thrown when fails to make API call - /// Search options - /// Task of ApiResponse (AttachmentDTO) - public async System.Threading.Tasks.Task> AttachmentsGetByDocNumberAndFootprintAsyncWithHttpInfo (AttachmentByDocnumberFootprintRequestDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling AttachmentsApi->AttachmentsGetByDocNumberAndFootprint"); - - var localVarPath = "/api/Attachments/ByDocnumberAndFootprint"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsGetByDocNumberAndFootprint", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AttachmentDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AttachmentDTO))); - } - - /// - /// This call retrieves all the attachments of a profile - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// List<AttachmentDTO> - public List AttachmentsGetByDocnumber (int? docnumber) - { - ApiResponse> localVarResponse = AttachmentsGetByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call retrieves all the attachments of a profile - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// ApiResponse of List<AttachmentDTO> - public ApiResponse< List > AttachmentsGetByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AttachmentsApi->AttachmentsGetByDocnumber"); - - var localVarPath = "/api/Attachments/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsGetByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieves all the attachments of a profile - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// Task of List<AttachmentDTO> - public async System.Threading.Tasks.Task> AttachmentsGetByDocnumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await AttachmentsGetByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call retrieves all the attachments of a profile - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// Task of ApiResponse (List<AttachmentDTO>) - public async System.Threading.Tasks.Task>> AttachmentsGetByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AttachmentsApi->AttachmentsGetByDocnumber"); - - var localVarPath = "/api/Attachments/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsGetByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the data for external and internal attachement of a profile - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// AttachmentsDataSourceDTO - public AttachmentsDataSourceDTO AttachmentsGetByDocnumberForGrid (int? docnumber) - { - ApiResponse localVarResponse = AttachmentsGetByDocnumberForGridWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns the data for external and internal attachement of a profile - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// ApiResponse of AttachmentsDataSourceDTO - public ApiResponse< AttachmentsDataSourceDTO > AttachmentsGetByDocnumberForGridWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AttachmentsApi->AttachmentsGetByDocnumberForGrid"); - - var localVarPath = "/api/Attachments/docnumber/{docnumber}/grid"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsGetByDocnumberForGrid", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AttachmentsDataSourceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AttachmentsDataSourceDTO))); - } - - /// - /// This call returns the data for external and internal attachement of a profile - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// Task of AttachmentsDataSourceDTO - public async System.Threading.Tasks.Task AttachmentsGetByDocnumberForGridAsync (int? docnumber) - { - ApiResponse localVarResponse = await AttachmentsGetByDocnumberForGridAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns the data for external and internal attachement of a profile - /// - /// Thrown when fails to make API call - /// Identifier of the profile - /// Task of ApiResponse (AttachmentsDataSourceDTO) - public async System.Threading.Tasks.Task> AttachmentsGetByDocnumberForGridAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AttachmentsApi->AttachmentsGetByDocnumberForGrid"); - - var localVarPath = "/api/Attachments/docnumber/{docnumber}/grid"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsGetByDocnumberForGrid", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AttachmentsDataSourceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AttachmentsDataSourceDTO))); - } - - /// - /// This call returns the attachment by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// AttachmentDTO - public AttachmentDTO AttachmentsGetById (int? id) - { - ApiResponse localVarResponse = AttachmentsGetByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns the attachment by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// ApiResponse of AttachmentDTO - public ApiResponse< AttachmentDTO > AttachmentsGetByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AttachmentsApi->AttachmentsGetById"); - - var localVarPath = "/api/Attachments/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AttachmentDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AttachmentDTO))); - } - - /// - /// This call returns the attachment by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of AttachmentDTO - public async System.Threading.Tasks.Task AttachmentsGetByIdAsync (int? id) - { - ApiResponse localVarResponse = await AttachmentsGetByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns the attachment by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of ApiResponse (AttachmentDTO) - public async System.Threading.Tasks.Task> AttachmentsGetByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AttachmentsApi->AttachmentsGetById"); - - var localVarPath = "/api/Attachments/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AttachmentDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AttachmentDTO))); - } - - /// - /// This call retrieves the list of the revisions of an attachment - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// List<AttachmentRevisionDTO> - public List AttachmentsGetRevisionsByAttachmentId (int? attachmentId) - { - ApiResponse> localVarResponse = AttachmentsGetRevisionsByAttachmentIdWithHttpInfo(attachmentId); - return localVarResponse.Data; - } - - /// - /// This call retrieves the list of the revisions of an attachment - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// ApiResponse of List<AttachmentRevisionDTO> - public ApiResponse< List > AttachmentsGetRevisionsByAttachmentIdWithHttpInfo (int? attachmentId) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentsApi->AttachmentsGetRevisionsByAttachmentId"); - - var localVarPath = "/api/Attachments/{attachmentId}/Revisions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsGetRevisionsByAttachmentId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieves the list of the revisions of an attachment - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of List<AttachmentRevisionDTO> - public async System.Threading.Tasks.Task> AttachmentsGetRevisionsByAttachmentIdAsync (int? attachmentId) - { - ApiResponse> localVarResponse = await AttachmentsGetRevisionsByAttachmentIdAsyncWithHttpInfo(attachmentId); - return localVarResponse.Data; - - } - - /// - /// This call retrieves the list of the revisions of an attachment - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of ApiResponse (List<AttachmentRevisionDTO>) - public async System.Threading.Tasks.Task>> AttachmentsGetRevisionsByAttachmentIdAsyncWithHttpInfo (int? attachmentId) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentsApi->AttachmentsGetRevisionsByAttachmentId"); - - var localVarPath = "/api/Attachments/{attachmentId}/Revisions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsGetRevisionsByAttachmentId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds a new external attachment for a profile - /// - /// Thrown when fails to make API call - /// Buffer Identifier of the file to attach - /// Identifier of the profile - /// Comment for the new attachment - /// AttachmentDTO - public AttachmentDTO AttachmentsInsertExternal (string bufferid, int? docnumber, string comment) - { - ApiResponse localVarResponse = AttachmentsInsertExternalWithHttpInfo(bufferid, docnumber, comment); - return localVarResponse.Data; - } - - /// - /// This call adds a new external attachment for a profile - /// - /// Thrown when fails to make API call - /// Buffer Identifier of the file to attach - /// Identifier of the profile - /// Comment for the new attachment - /// ApiResponse of AttachmentDTO - public ApiResponse< AttachmentDTO > AttachmentsInsertExternalWithHttpInfo (string bufferid, int? docnumber, string comment) - { - // verify the required parameter 'bufferid' is set - if (bufferid == null) - throw new ApiException(400, "Missing required parameter 'bufferid' when calling AttachmentsApi->AttachmentsInsertExternal"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AttachmentsApi->AttachmentsInsertExternal"); - // verify the required parameter 'comment' is set - if (comment == null) - throw new ApiException(400, "Missing required parameter 'comment' when calling AttachmentsApi->AttachmentsInsertExternal"); - - var localVarPath = "/api/Attachments/InsertExternal/{bufferid}/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bufferid != null) localVarPathParams.Add("bufferid", this.Configuration.ApiClient.ParameterToString(bufferid)); // path parameter - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (comment != null && comment.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(comment); // http body (model) parameter - } - else - { - localVarPostBody = comment; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsInsertExternal", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AttachmentDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AttachmentDTO))); - } - - /// - /// This call adds a new external attachment for a profile - /// - /// Thrown when fails to make API call - /// Buffer Identifier of the file to attach - /// Identifier of the profile - /// Comment for the new attachment - /// Task of AttachmentDTO - public async System.Threading.Tasks.Task AttachmentsInsertExternalAsync (string bufferid, int? docnumber, string comment) - { - ApiResponse localVarResponse = await AttachmentsInsertExternalAsyncWithHttpInfo(bufferid, docnumber, comment); - return localVarResponse.Data; - - } - - /// - /// This call adds a new external attachment for a profile - /// - /// Thrown when fails to make API call - /// Buffer Identifier of the file to attach - /// Identifier of the profile - /// Comment for the new attachment - /// Task of ApiResponse (AttachmentDTO) - public async System.Threading.Tasks.Task> AttachmentsInsertExternalAsyncWithHttpInfo (string bufferid, int? docnumber, string comment) - { - // verify the required parameter 'bufferid' is set - if (bufferid == null) - throw new ApiException(400, "Missing required parameter 'bufferid' when calling AttachmentsApi->AttachmentsInsertExternal"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AttachmentsApi->AttachmentsInsertExternal"); - // verify the required parameter 'comment' is set - if (comment == null) - throw new ApiException(400, "Missing required parameter 'comment' when calling AttachmentsApi->AttachmentsInsertExternal"); - - var localVarPath = "/api/Attachments/InsertExternal/{bufferid}/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bufferid != null) localVarPathParams.Add("bufferid", this.Configuration.ApiClient.ParameterToString(bufferid)); // path parameter - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (comment != null && comment.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(comment); // http body (model) parameter - } - else - { - localVarPostBody = comment; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsInsertExternal", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AttachmentDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AttachmentDTO))); - } - - /// - /// This call adds a new internal attachment for a profile - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the profile - /// AttachmentDTO - public AttachmentDTO AttachmentsInsertInternal (int? attachmentDocnumber, int? docnumber) - { - ApiResponse localVarResponse = AttachmentsInsertInternalWithHttpInfo(attachmentDocnumber, docnumber); - return localVarResponse.Data; - } - - /// - /// This call adds a new internal attachment for a profile - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the profile - /// ApiResponse of AttachmentDTO - public ApiResponse< AttachmentDTO > AttachmentsInsertInternalWithHttpInfo (int? attachmentDocnumber, int? docnumber) - { - // verify the required parameter 'attachmentDocnumber' is set - if (attachmentDocnumber == null) - throw new ApiException(400, "Missing required parameter 'attachmentDocnumber' when calling AttachmentsApi->AttachmentsInsertInternal"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AttachmentsApi->AttachmentsInsertInternal"); - - var localVarPath = "/api/Attachments/InsertInternal/{attachmentDocnumber}/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentDocnumber != null) localVarPathParams.Add("attachmentDocnumber", this.Configuration.ApiClient.ParameterToString(attachmentDocnumber)); // path parameter - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsInsertInternal", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AttachmentDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AttachmentDTO))); - } - - /// - /// This call adds a new internal attachment for a profile - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the profile - /// Task of AttachmentDTO - public async System.Threading.Tasks.Task AttachmentsInsertInternalAsync (int? attachmentDocnumber, int? docnumber) - { - ApiResponse localVarResponse = await AttachmentsInsertInternalAsyncWithHttpInfo(attachmentDocnumber, docnumber); - return localVarResponse.Data; - - } - - /// - /// This call adds a new internal attachment for a profile - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Identifier of the profile - /// Task of ApiResponse (AttachmentDTO) - public async System.Threading.Tasks.Task> AttachmentsInsertInternalAsyncWithHttpInfo (int? attachmentDocnumber, int? docnumber) - { - // verify the required parameter 'attachmentDocnumber' is set - if (attachmentDocnumber == null) - throw new ApiException(400, "Missing required parameter 'attachmentDocnumber' when calling AttachmentsApi->AttachmentsInsertInternal"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling AttachmentsApi->AttachmentsInsertInternal"); - - var localVarPath = "/api/Attachments/InsertInternal/{attachmentDocnumber}/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentDocnumber != null) localVarPathParams.Add("attachmentDocnumber", this.Configuration.ApiClient.ParameterToString(attachmentDocnumber)); // path parameter - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsInsertInternal", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AttachmentDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AttachmentDTO))); - } - - /// - /// This call returns the permissions for an attachment - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// PermissionsDTO - public PermissionsDTO AttachmentsPermissionsById (int? id) - { - ApiResponse localVarResponse = AttachmentsPermissionsByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns the permissions for an attachment - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// ApiResponse of PermissionsDTO - public ApiResponse< PermissionsDTO > AttachmentsPermissionsByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AttachmentsApi->AttachmentsPermissionsById"); - - var localVarPath = "/api/Attachments/{id}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsPermissionsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call returns the permissions for an attachment - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of PermissionsDTO - public async System.Threading.Tasks.Task AttachmentsPermissionsByIdAsync (int? id) - { - ApiResponse localVarResponse = await AttachmentsPermissionsByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns the permissions for an attachment - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Task of ApiResponse (PermissionsDTO) - public async System.Threading.Tasks.Task> AttachmentsPermissionsByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AttachmentsApi->AttachmentsPermissionsById"); - - var localVarPath = "/api/Attachments/{id}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsPermissionsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call updates attachment file - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Buffer Identifier of the file - /// - public void AttachmentsPutAttachmentDocument (int? attachmentId, string bufferId) - { - AttachmentsPutAttachmentDocumentWithHttpInfo(attachmentId, bufferId); - } - - /// - /// This call updates attachment file - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Buffer Identifier of the file - /// ApiResponse of Object(void) - public ApiResponse AttachmentsPutAttachmentDocumentWithHttpInfo (int? attachmentId, string bufferId) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentsApi->AttachmentsPutAttachmentDocument"); - // verify the required parameter 'bufferId' is set - if (bufferId == null) - throw new ApiException(400, "Missing required parameter 'bufferId' when calling AttachmentsApi->AttachmentsPutAttachmentDocument"); - - var localVarPath = "/api/Attachments/{attachmentId}/Document/{bufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - if (bufferId != null) localVarPathParams.Add("bufferId", this.Configuration.ApiClient.ParameterToString(bufferId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsPutAttachmentDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates attachment file - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Buffer Identifier of the file - /// Task of void - public async System.Threading.Tasks.Task AttachmentsPutAttachmentDocumentAsync (int? attachmentId, string bufferId) - { - await AttachmentsPutAttachmentDocumentAsyncWithHttpInfo(attachmentId, bufferId); - - } - - /// - /// This call updates attachment file - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Buffer Identifier of the file - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AttachmentsPutAttachmentDocumentAsyncWithHttpInfo (int? attachmentId, string bufferId) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentsApi->AttachmentsPutAttachmentDocument"); - // verify the required parameter 'bufferId' is set - if (bufferId == null) - throw new ApiException(400, "Missing required parameter 'bufferId' when calling AttachmentsApi->AttachmentsPutAttachmentDocument"); - - var localVarPath = "/api/Attachments/{attachmentId}/Document/{bufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - if (bufferId != null) localVarPathParams.Add("bufferId", this.Configuration.ApiClient.ParameterToString(bufferId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsPutAttachmentDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates a attachment by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Object that indicates the attachment data to update - /// - public void AttachmentsUpdate (int? id, AttachmentDTO attachment) - { - AttachmentsUpdateWithHttpInfo(id, attachment); - } - - /// - /// This call updates a attachment by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Object that indicates the attachment data to update - /// ApiResponse of Object(void) - public ApiResponse AttachmentsUpdateWithHttpInfo (int? id, AttachmentDTO attachment) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AttachmentsApi->AttachmentsUpdate"); - // verify the required parameter 'attachment' is set - if (attachment == null) - throw new ApiException(400, "Missing required parameter 'attachment' when calling AttachmentsApi->AttachmentsUpdate"); - - var localVarPath = "/api/Attachments/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (attachment != null && attachment.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(attachment); // http body (model) parameter - } - else - { - localVarPostBody = attachment; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates a attachment by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Object that indicates the attachment data to update - /// Task of void - public async System.Threading.Tasks.Task AttachmentsUpdateAsync (int? id, AttachmentDTO attachment) - { - await AttachmentsUpdateAsyncWithHttpInfo(id, attachment); - - } - - /// - /// This call updates a attachment by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Object that indicates the attachment data to update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AttachmentsUpdateAsyncWithHttpInfo (int? id, AttachmentDTO attachment) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AttachmentsApi->AttachmentsUpdate"); - // verify the required parameter 'attachment' is set - if (attachment == null) - throw new ApiException(400, "Missing required parameter 'attachment' when calling AttachmentsApi->AttachmentsUpdate"); - - var localVarPath = "/api/Attachments/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (attachment != null && attachment.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(attachment); // http body (model) parameter - } - else - { - localVarPostBody = attachment; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates permission of an attachment - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Permission data to update - /// - public void AttachmentsWritePermissionsById (int? id, PermissionsDTO permissions) - { - AttachmentsWritePermissionsByIdWithHttpInfo(id, permissions); - } - - /// - /// This call updates permission of an attachment - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Permission data to update - /// ApiResponse of Object(void) - public ApiResponse AttachmentsWritePermissionsByIdWithHttpInfo (int? id, PermissionsDTO permissions) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AttachmentsApi->AttachmentsWritePermissionsById"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling AttachmentsApi->AttachmentsWritePermissionsById"); - - var localVarPath = "/api/Attachments/{id}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsWritePermissionsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates permission of an attachment - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Permission data to update - /// Task of void - public async System.Threading.Tasks.Task AttachmentsWritePermissionsByIdAsync (int? id, PermissionsDTO permissions) - { - await AttachmentsWritePermissionsByIdAsyncWithHttpInfo(id, permissions); - - } - - /// - /// This call updates permission of an attachment - /// - /// Thrown when fails to make API call - /// Identifier of the attachment - /// Permission data to update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AttachmentsWritePermissionsByIdAsyncWithHttpInfo (int? id, PermissionsDTO permissions) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AttachmentsApi->AttachmentsWritePermissionsById"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling AttachmentsApi->AttachmentsWritePermissionsById"); - - var localVarPath = "/api/Attachments/{id}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AttachmentsWritePermissionsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/AuthenticationApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/AuthenticationApi.cs deleted file mode 100644 index 4b4d960..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/AuthenticationApi.cs +++ /dev/null @@ -1,4064 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IAuthenticationApi : IApiAccessor - { - #region Synchronous Operations - /// - /// Delete LogonTicket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void AuthenticationDeleteLogonTicket (int? logonTicketId); - - /// - /// Delete LogonTicket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse AuthenticationDeleteLogonTicketWithHttpInfo (int? logonTicketId); - /// - /// Delete LogonTicket (admin required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void AuthenticationDeleteLogonTicketAdmin (int? logonTicketId); - - /// - /// Delete LogonTicket (admin required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse AuthenticationDeleteLogonTicketAdminWithHttpInfo (int? logonTicketId); - /// - /// This call returns the access token claims - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<ClaimInfoDTO> - List AuthenticationGetAcecssTokenClaims (); - - /// - /// This call returns the access token claims - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ClaimInfoDTO> - ApiResponse> AuthenticationGetAcecssTokenClaimsWithHttpInfo (); - /// - /// Get current user info context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// IdentityInfoDto - IdentityInfoDto AuthenticationGetIdentityInfo (); - - /// - /// Get current user info context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of IdentityInfoDto - ApiResponse AuthenticationGetIdentityInfoWithHttpInfo (); - /// - /// This call returns a specific logon provider by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// LogonProviderInfoDto - LogonProviderInfoDto AuthenticationGetLogonProviderInfo (string id); - - /// - /// This call returns a specific logon provider by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// ApiResponse of LogonProviderInfoDto - ApiResponse AuthenticationGetLogonProviderInfoWithHttpInfo (string id); - /// - /// This call returns the logon provider list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<LogonProviderInfoDto> - List AuthenticationGetLogonProviderInfoList (); - - /// - /// This call returns the logon provider list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<LogonProviderInfoDto> - ApiResponse> AuthenticationGetLogonProviderInfoListWithHttpInfo (); - /// - /// This call returns the provides logon redirect uri for implicit logon provider authentication - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// AuthenticationTokenResponseDTO - AuthenticationTokenResponseDTO AuthenticationGetLogonProviderRedirectUri (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequest); - - /// - /// This call returns the provides logon redirect uri for implicit logon provider authentication - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// ApiResponse of AuthenticationTokenResponseDTO - ApiResponse AuthenticationGetLogonProviderRedirectUriWithHttpInfo (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequest); - /// - /// Get LogonTicket list of all users. Included those no longer valid (admin required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<LogonTicketDto> - List AuthenticationGetLogonTicketAdmin (); - - /// - /// Get LogonTicket list of all users. Included those no longer valid (admin required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<LogonTicketDto> - ApiResponse> AuthenticationGetLogonTicketAdminWithHttpInfo (); - /// - /// Get LogonTicket by ticket (admin required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// LogonTicketDto - LogonTicketDto AuthenticationGetLogonTicketAdminByLogonTicket (string logonTicket); - - /// - /// Get LogonTicket by ticket (admin required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of LogonTicketDto - ApiResponse AuthenticationGetLogonTicketAdminByLogonTicketWithHttpInfo (string logonTicket); - /// - /// Get valid LogonTicket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<LogonTicketDto> - List AuthenticationGetLogonTicketByUserRequestor (); - - /// - /// Get valid LogonTicket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<LogonTicketDto> - ApiResponse> AuthenticationGetLogonTicketByUserRequestorWithHttpInfo (); - /// - /// This call returns a new authentication token for a authentication request - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// AuthenticationTokenDTO - AuthenticationTokenDTO AuthenticationGetToken (AuthenticationTokenRequestDTO authenticationTokenRequest); - - /// - /// This call returns a new authentication token for a authentication request - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// ApiResponse of AuthenticationTokenDTO - ApiResponse AuthenticationGetTokenWithHttpInfo (AuthenticationTokenRequestDTO authenticationTokenRequest); - /// - /// This call returns authentication token for Assistant - /// - /// - /// - /// - /// Thrown when fails to make API call - /// AuthenticationTokenDTO - AuthenticationTokenDTO AuthenticationGetTokenArxAssistant (); - - /// - /// This call returns authentication token for Assistant - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of AuthenticationTokenDTO - ApiResponse AuthenticationGetTokenArxAssistantWithHttpInfo (); - /// - /// This call returns a new authentication token given a logon ticket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// AuthenticationTokenDTO - AuthenticationTokenDTO AuthenticationGetTokenByLogonTicket (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest); - - /// - /// This call returns a new authentication token given a logon ticket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// ApiResponse of AuthenticationTokenDTO - ApiResponse AuthenticationGetTokenByLogonTicketWithHttpInfo (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest); - /// - /// This call returns a new authentication token with info given a logon ticket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// AccessTokenInfoDTO - AccessTokenInfoDTO AuthenticationGetTokenInfoByLogonTicket (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest); - - /// - /// This call returns a new authentication token with info given a logon ticket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of AccessTokenInfoDTO - ApiResponse AuthenticationGetTokenInfoByLogonTicketWithHttpInfo (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest); - /// - /// This call returns a decoded authentication token for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// AccessTokenInfoDTO - AccessTokenInfoDTO AuthenticationGetUserAuthenticationAccessTokenInfo (AuthenticationTokenRequestDTO authenticationTokenRequest); - - /// - /// This call returns a decoded authentication token for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// ApiResponse of AccessTokenInfoDTO - ApiResponse AuthenticationGetUserAuthenticationAccessTokenInfoWithHttpInfo (AuthenticationTokenRequestDTO authenticationTokenRequest); - /// - /// This call returns the provides logon redirect uri for implicit windows authentication - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// AuthenticationTokenResponseDTO - AuthenticationTokenResponseDTO AuthenticationGetWindowsLogonRedirectUri (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequestDto); - - /// - /// This call returns the provides logon redirect uri for implicit windows authentication - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// ApiResponse of AuthenticationTokenResponseDTO - ApiResponse AuthenticationGetWindowsLogonRedirectUriWithHttpInfo (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequestDto); - /// - /// Insert LogonTicket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// LogonTicketDto - LogonTicketDto AuthenticationInsertLogonTicket (LogonTicketRequestDto ticketRequest); - - /// - /// Insert LogonTicket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of LogonTicketDto - ApiResponse AuthenticationInsertLogonTicketWithHttpInfo (LogonTicketRequestDto ticketRequest); - /// - /// Portal logout audit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void AuthenticationPortalLogout (PortalLogoutRequestDto portalLogoutRequest); - - /// - /// Portal logout audit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse AuthenticationPortalLogoutWithHttpInfo (PortalLogoutRequestDto portalLogoutRequest); - /// - /// This call returns a new authentication token by a refresh token string - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication refresh - /// AuthenticationTokenDTO - AuthenticationTokenDTO AuthenticationRefresh (RefreshTokenRequestDTO refreshTokenRequest); - - /// - /// This call returns a new authentication token by a refresh token string - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication refresh - /// ApiResponse of AuthenticationTokenDTO - ApiResponse AuthenticationRefreshWithHttpInfo (RefreshTokenRequestDTO refreshTokenRequest); - /// - /// This call refreshes and decodes authentication token for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Authetication refresh token request - /// AccessTokenInfoDTO - AccessTokenInfoDTO AuthenticationRefreshAuthenticationAccessTokenInfo (AuthenticationRefreshTokenRequestDTO authenticationRefreshTokenRequest); - - /// - /// This call refreshes and decodes authentication token for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Authetication refresh token request - /// ApiResponse of AccessTokenInfoDTO - ApiResponse AuthenticationRefreshAuthenticationAccessTokenInfoWithHttpInfo (AuthenticationRefreshTokenRequestDTO authenticationRefreshTokenRequest); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// Delete LogonTicket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task AuthenticationDeleteLogonTicketAsync (int? logonTicketId); - - /// - /// Delete LogonTicket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> AuthenticationDeleteLogonTicketAsyncWithHttpInfo (int? logonTicketId); - /// - /// Delete LogonTicket (admin required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task AuthenticationDeleteLogonTicketAdminAsync (int? logonTicketId); - - /// - /// Delete LogonTicket (admin required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> AuthenticationDeleteLogonTicketAdminAsyncWithHttpInfo (int? logonTicketId); - /// - /// This call returns the access token claims - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<ClaimInfoDTO> - System.Threading.Tasks.Task> AuthenticationGetAcecssTokenClaimsAsync (); - - /// - /// This call returns the access token claims - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ClaimInfoDTO>) - System.Threading.Tasks.Task>> AuthenticationGetAcecssTokenClaimsAsyncWithHttpInfo (); - /// - /// Get current user info context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of IdentityInfoDto - System.Threading.Tasks.Task AuthenticationGetIdentityInfoAsync (); - - /// - /// Get current user info context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (IdentityInfoDto) - System.Threading.Tasks.Task> AuthenticationGetIdentityInfoAsyncWithHttpInfo (); - /// - /// This call returns a specific logon provider by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// Task of LogonProviderInfoDto - System.Threading.Tasks.Task AuthenticationGetLogonProviderInfoAsync (string id); - - /// - /// This call returns a specific logon provider by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// Task of ApiResponse (LogonProviderInfoDto) - System.Threading.Tasks.Task> AuthenticationGetLogonProviderInfoAsyncWithHttpInfo (string id); - /// - /// This call returns the logon provider list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<LogonProviderInfoDto> - System.Threading.Tasks.Task> AuthenticationGetLogonProviderInfoListAsync (); - - /// - /// This call returns the logon provider list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<LogonProviderInfoDto>) - System.Threading.Tasks.Task>> AuthenticationGetLogonProviderInfoListAsyncWithHttpInfo (); - /// - /// This call returns the provides logon redirect uri for implicit logon provider authentication - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// Task of AuthenticationTokenResponseDTO - System.Threading.Tasks.Task AuthenticationGetLogonProviderRedirectUriAsync (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequest); - - /// - /// This call returns the provides logon redirect uri for implicit logon provider authentication - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// Task of ApiResponse (AuthenticationTokenResponseDTO) - System.Threading.Tasks.Task> AuthenticationGetLogonProviderRedirectUriAsyncWithHttpInfo (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequest); - /// - /// Get LogonTicket list of all users. Included those no longer valid (admin required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<LogonTicketDto> - System.Threading.Tasks.Task> AuthenticationGetLogonTicketAdminAsync (); - - /// - /// Get LogonTicket list of all users. Included those no longer valid (admin required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<LogonTicketDto>) - System.Threading.Tasks.Task>> AuthenticationGetLogonTicketAdminAsyncWithHttpInfo (); - /// - /// Get LogonTicket by ticket (admin required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of LogonTicketDto - System.Threading.Tasks.Task AuthenticationGetLogonTicketAdminByLogonTicketAsync (string logonTicket); - - /// - /// Get LogonTicket by ticket (admin required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (LogonTicketDto) - System.Threading.Tasks.Task> AuthenticationGetLogonTicketAdminByLogonTicketAsyncWithHttpInfo (string logonTicket); - /// - /// Get valid LogonTicket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<LogonTicketDto> - System.Threading.Tasks.Task> AuthenticationGetLogonTicketByUserRequestorAsync (); - - /// - /// Get valid LogonTicket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<LogonTicketDto>) - System.Threading.Tasks.Task>> AuthenticationGetLogonTicketByUserRequestorAsyncWithHttpInfo (); - /// - /// This call returns a new authentication token for a authentication request - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// Task of AuthenticationTokenDTO - System.Threading.Tasks.Task AuthenticationGetTokenAsync (AuthenticationTokenRequestDTO authenticationTokenRequest); - - /// - /// This call returns a new authentication token for a authentication request - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// Task of ApiResponse (AuthenticationTokenDTO) - System.Threading.Tasks.Task> AuthenticationGetTokenAsyncWithHttpInfo (AuthenticationTokenRequestDTO authenticationTokenRequest); - /// - /// This call returns authentication token for Assistant - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of AuthenticationTokenDTO - System.Threading.Tasks.Task AuthenticationGetTokenArxAssistantAsync (); - - /// - /// This call returns authentication token for Assistant - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (AuthenticationTokenDTO) - System.Threading.Tasks.Task> AuthenticationGetTokenArxAssistantAsyncWithHttpInfo (); - /// - /// This call returns a new authentication token given a logon ticket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// Task of AuthenticationTokenDTO - System.Threading.Tasks.Task AuthenticationGetTokenByLogonTicketAsync (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest); - - /// - /// This call returns a new authentication token given a logon ticket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// Task of ApiResponse (AuthenticationTokenDTO) - System.Threading.Tasks.Task> AuthenticationGetTokenByLogonTicketAsyncWithHttpInfo (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest); - /// - /// This call returns a new authentication token with info given a logon ticket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of AccessTokenInfoDTO - System.Threading.Tasks.Task AuthenticationGetTokenInfoByLogonTicketAsync (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest); - - /// - /// This call returns a new authentication token with info given a logon ticket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (AccessTokenInfoDTO) - System.Threading.Tasks.Task> AuthenticationGetTokenInfoByLogonTicketAsyncWithHttpInfo (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest); - /// - /// This call returns a decoded authentication token for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// Task of AccessTokenInfoDTO - System.Threading.Tasks.Task AuthenticationGetUserAuthenticationAccessTokenInfoAsync (AuthenticationTokenRequestDTO authenticationTokenRequest); - - /// - /// This call returns a decoded authentication token for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// Task of ApiResponse (AccessTokenInfoDTO) - System.Threading.Tasks.Task> AuthenticationGetUserAuthenticationAccessTokenInfoAsyncWithHttpInfo (AuthenticationTokenRequestDTO authenticationTokenRequest); - /// - /// This call returns the provides logon redirect uri for implicit windows authentication - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// Task of AuthenticationTokenResponseDTO - System.Threading.Tasks.Task AuthenticationGetWindowsLogonRedirectUriAsync (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequestDto); - - /// - /// This call returns the provides logon redirect uri for implicit windows authentication - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// Task of ApiResponse (AuthenticationTokenResponseDTO) - System.Threading.Tasks.Task> AuthenticationGetWindowsLogonRedirectUriAsyncWithHttpInfo (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequestDto); - /// - /// Insert LogonTicket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of LogonTicketDto - System.Threading.Tasks.Task AuthenticationInsertLogonTicketAsync (LogonTicketRequestDto ticketRequest); - - /// - /// Insert LogonTicket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (LogonTicketDto) - System.Threading.Tasks.Task> AuthenticationInsertLogonTicketAsyncWithHttpInfo (LogonTicketRequestDto ticketRequest); - /// - /// Portal logout audit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task AuthenticationPortalLogoutAsync (PortalLogoutRequestDto portalLogoutRequest); - - /// - /// Portal logout audit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> AuthenticationPortalLogoutAsyncWithHttpInfo (PortalLogoutRequestDto portalLogoutRequest); - /// - /// This call returns a new authentication token by a refresh token string - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication refresh - /// Task of AuthenticationTokenDTO - System.Threading.Tasks.Task AuthenticationRefreshAsync (RefreshTokenRequestDTO refreshTokenRequest); - - /// - /// This call returns a new authentication token by a refresh token string - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Token request for authentication refresh - /// Task of ApiResponse (AuthenticationTokenDTO) - System.Threading.Tasks.Task> AuthenticationRefreshAsyncWithHttpInfo (RefreshTokenRequestDTO refreshTokenRequest); - /// - /// This call refreshes and decodes authentication token for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Authetication refresh token request - /// Task of AccessTokenInfoDTO - System.Threading.Tasks.Task AuthenticationRefreshAuthenticationAccessTokenInfoAsync (AuthenticationRefreshTokenRequestDTO authenticationRefreshTokenRequest); - - /// - /// This call refreshes and decodes authentication token for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Authetication refresh token request - /// Task of ApiResponse (AccessTokenInfoDTO) - System.Threading.Tasks.Task> AuthenticationRefreshAuthenticationAccessTokenInfoAsyncWithHttpInfo (AuthenticationRefreshTokenRequestDTO authenticationRefreshTokenRequest); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AuthenticationApi : IAuthenticationApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public AuthenticationApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public AuthenticationApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// Delete LogonTicket - /// - /// Thrown when fails to make API call - /// - /// - public void AuthenticationDeleteLogonTicket (int? logonTicketId) - { - AuthenticationDeleteLogonTicketWithHttpInfo(logonTicketId); - } - - /// - /// Delete LogonTicket - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse AuthenticationDeleteLogonTicketWithHttpInfo (int? logonTicketId) - { - // verify the required parameter 'logonTicketId' is set - if (logonTicketId == null) - throw new ApiException(400, "Missing required parameter 'logonTicketId' when calling AuthenticationApi->AuthenticationDeleteLogonTicket"); - - var localVarPath = "/api/Authentication/logonTicket/{logonTicketId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (logonTicketId != null) localVarPathParams.Add("logonTicketId", this.Configuration.ApiClient.ParameterToString(logonTicketId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationDeleteLogonTicket", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Delete LogonTicket - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task AuthenticationDeleteLogonTicketAsync (int? logonTicketId) - { - await AuthenticationDeleteLogonTicketAsyncWithHttpInfo(logonTicketId); - - } - - /// - /// Delete LogonTicket - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AuthenticationDeleteLogonTicketAsyncWithHttpInfo (int? logonTicketId) - { - // verify the required parameter 'logonTicketId' is set - if (logonTicketId == null) - throw new ApiException(400, "Missing required parameter 'logonTicketId' when calling AuthenticationApi->AuthenticationDeleteLogonTicket"); - - var localVarPath = "/api/Authentication/logonTicket/{logonTicketId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (logonTicketId != null) localVarPathParams.Add("logonTicketId", this.Configuration.ApiClient.ParameterToString(logonTicketId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationDeleteLogonTicket", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Delete LogonTicket (admin required) - /// - /// Thrown when fails to make API call - /// - /// - public void AuthenticationDeleteLogonTicketAdmin (int? logonTicketId) - { - AuthenticationDeleteLogonTicketAdminWithHttpInfo(logonTicketId); - } - - /// - /// Delete LogonTicket (admin required) - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse AuthenticationDeleteLogonTicketAdminWithHttpInfo (int? logonTicketId) - { - // verify the required parameter 'logonTicketId' is set - if (logonTicketId == null) - throw new ApiException(400, "Missing required parameter 'logonTicketId' when calling AuthenticationApi->AuthenticationDeleteLogonTicketAdmin"); - - var localVarPath = "/api/Authentication/logonTicket/admin/{logonTicketId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (logonTicketId != null) localVarPathParams.Add("logonTicketId", this.Configuration.ApiClient.ParameterToString(logonTicketId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationDeleteLogonTicketAdmin", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Delete LogonTicket (admin required) - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task AuthenticationDeleteLogonTicketAdminAsync (int? logonTicketId) - { - await AuthenticationDeleteLogonTicketAdminAsyncWithHttpInfo(logonTicketId); - - } - - /// - /// Delete LogonTicket (admin required) - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AuthenticationDeleteLogonTicketAdminAsyncWithHttpInfo (int? logonTicketId) - { - // verify the required parameter 'logonTicketId' is set - if (logonTicketId == null) - throw new ApiException(400, "Missing required parameter 'logonTicketId' when calling AuthenticationApi->AuthenticationDeleteLogonTicketAdmin"); - - var localVarPath = "/api/Authentication/logonTicket/admin/{logonTicketId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (logonTicketId != null) localVarPathParams.Add("logonTicketId", this.Configuration.ApiClient.ParameterToString(logonTicketId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationDeleteLogonTicketAdmin", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the access token claims - /// - /// Thrown when fails to make API call - /// List<ClaimInfoDTO> - public List AuthenticationGetAcecssTokenClaims () - { - ApiResponse> localVarResponse = AuthenticationGetAcecssTokenClaimsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the access token claims - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ClaimInfoDTO> - public ApiResponse< List > AuthenticationGetAcecssTokenClaimsWithHttpInfo () - { - - var localVarPath = "/api/Authentication/AcecssTokenClaims"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetAcecssTokenClaims", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the access token claims - /// - /// Thrown when fails to make API call - /// Task of List<ClaimInfoDTO> - public async System.Threading.Tasks.Task> AuthenticationGetAcecssTokenClaimsAsync () - { - ApiResponse> localVarResponse = await AuthenticationGetAcecssTokenClaimsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the access token claims - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ClaimInfoDTO>) - public async System.Threading.Tasks.Task>> AuthenticationGetAcecssTokenClaimsAsyncWithHttpInfo () - { - - var localVarPath = "/api/Authentication/AcecssTokenClaims"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetAcecssTokenClaims", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Get current user info context - /// - /// Thrown when fails to make API call - /// IdentityInfoDto - public IdentityInfoDto AuthenticationGetIdentityInfo () - { - ApiResponse localVarResponse = AuthenticationGetIdentityInfoWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Get current user info context - /// - /// Thrown when fails to make API call - /// ApiResponse of IdentityInfoDto - public ApiResponse< IdentityInfoDto > AuthenticationGetIdentityInfoWithHttpInfo () - { - - var localVarPath = "/api/Authentication/identityInfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetIdentityInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IdentityInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IdentityInfoDto))); - } - - /// - /// Get current user info context - /// - /// Thrown when fails to make API call - /// Task of IdentityInfoDto - public async System.Threading.Tasks.Task AuthenticationGetIdentityInfoAsync () - { - ApiResponse localVarResponse = await AuthenticationGetIdentityInfoAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// Get current user info context - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (IdentityInfoDto) - public async System.Threading.Tasks.Task> AuthenticationGetIdentityInfoAsyncWithHttpInfo () - { - - var localVarPath = "/api/Authentication/identityInfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetIdentityInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IdentityInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IdentityInfoDto))); - } - - /// - /// This call returns a specific logon provider by id - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// LogonProviderInfoDto - public LogonProviderInfoDto AuthenticationGetLogonProviderInfo (string id) - { - ApiResponse localVarResponse = AuthenticationGetLogonProviderInfoWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns a specific logon provider by id - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// ApiResponse of LogonProviderInfoDto - public ApiResponse< LogonProviderInfoDto > AuthenticationGetLogonProviderInfoWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AuthenticationApi->AuthenticationGetLogonProviderInfo"); - - var localVarPath = "/api/Authentication/logonProvider/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetLogonProviderInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogonProviderInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogonProviderInfoDto))); - } - - /// - /// This call returns a specific logon provider by id - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// Task of LogonProviderInfoDto - public async System.Threading.Tasks.Task AuthenticationGetLogonProviderInfoAsync (string id) - { - ApiResponse localVarResponse = await AuthenticationGetLogonProviderInfoAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns a specific logon provider by id - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// Task of ApiResponse (LogonProviderInfoDto) - public async System.Threading.Tasks.Task> AuthenticationGetLogonProviderInfoAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AuthenticationApi->AuthenticationGetLogonProviderInfo"); - - var localVarPath = "/api/Authentication/logonProvider/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetLogonProviderInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogonProviderInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogonProviderInfoDto))); - } - - /// - /// This call returns the logon provider list - /// - /// Thrown when fails to make API call - /// List<LogonProviderInfoDto> - public List AuthenticationGetLogonProviderInfoList () - { - ApiResponse> localVarResponse = AuthenticationGetLogonProviderInfoListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the logon provider list - /// - /// Thrown when fails to make API call - /// ApiResponse of List<LogonProviderInfoDto> - public ApiResponse< List > AuthenticationGetLogonProviderInfoListWithHttpInfo () - { - - var localVarPath = "/api/Authentication/logonProviderList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetLogonProviderInfoList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the logon provider list - /// - /// Thrown when fails to make API call - /// Task of List<LogonProviderInfoDto> - public async System.Threading.Tasks.Task> AuthenticationGetLogonProviderInfoListAsync () - { - ApiResponse> localVarResponse = await AuthenticationGetLogonProviderInfoListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the logon provider list - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<LogonProviderInfoDto>) - public async System.Threading.Tasks.Task>> AuthenticationGetLogonProviderInfoListAsyncWithHttpInfo () - { - - var localVarPath = "/api/Authentication/logonProviderList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetLogonProviderInfoList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the provides logon redirect uri for implicit logon provider authentication - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// AuthenticationTokenResponseDTO - public AuthenticationTokenResponseDTO AuthenticationGetLogonProviderRedirectUri (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequest) - { - ApiResponse localVarResponse = AuthenticationGetLogonProviderRedirectUriWithHttpInfo(authenticationTokenImplicitRequest); - return localVarResponse.Data; - } - - /// - /// This call returns the provides logon redirect uri for implicit logon provider authentication - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// ApiResponse of AuthenticationTokenResponseDTO - public ApiResponse< AuthenticationTokenResponseDTO > AuthenticationGetLogonProviderRedirectUriWithHttpInfo (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequest) - { - // verify the required parameter 'authenticationTokenImplicitRequest' is set - if (authenticationTokenImplicitRequest == null) - throw new ApiException(400, "Missing required parameter 'authenticationTokenImplicitRequest' when calling AuthenticationApi->AuthenticationGetLogonProviderRedirectUri"); - - var localVarPath = "/api/Authentication/getLogonProviderRedirectUri"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (authenticationTokenImplicitRequest != null && authenticationTokenImplicitRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(authenticationTokenImplicitRequest); // http body (model) parameter - } - else - { - localVarPostBody = authenticationTokenImplicitRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetLogonProviderRedirectUri", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthenticationTokenResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthenticationTokenResponseDTO))); - } - - /// - /// This call returns the provides logon redirect uri for implicit logon provider authentication - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// Task of AuthenticationTokenResponseDTO - public async System.Threading.Tasks.Task AuthenticationGetLogonProviderRedirectUriAsync (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequest) - { - ApiResponse localVarResponse = await AuthenticationGetLogonProviderRedirectUriAsyncWithHttpInfo(authenticationTokenImplicitRequest); - return localVarResponse.Data; - - } - - /// - /// This call returns the provides logon redirect uri for implicit logon provider authentication - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// Task of ApiResponse (AuthenticationTokenResponseDTO) - public async System.Threading.Tasks.Task> AuthenticationGetLogonProviderRedirectUriAsyncWithHttpInfo (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequest) - { - // verify the required parameter 'authenticationTokenImplicitRequest' is set - if (authenticationTokenImplicitRequest == null) - throw new ApiException(400, "Missing required parameter 'authenticationTokenImplicitRequest' when calling AuthenticationApi->AuthenticationGetLogonProviderRedirectUri"); - - var localVarPath = "/api/Authentication/getLogonProviderRedirectUri"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (authenticationTokenImplicitRequest != null && authenticationTokenImplicitRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(authenticationTokenImplicitRequest); // http body (model) parameter - } - else - { - localVarPostBody = authenticationTokenImplicitRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetLogonProviderRedirectUri", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthenticationTokenResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthenticationTokenResponseDTO))); - } - - /// - /// Get LogonTicket list of all users. Included those no longer valid (admin required) - /// - /// Thrown when fails to make API call - /// List<LogonTicketDto> - public List AuthenticationGetLogonTicketAdmin () - { - ApiResponse> localVarResponse = AuthenticationGetLogonTicketAdminWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Get LogonTicket list of all users. Included those no longer valid (admin required) - /// - /// Thrown when fails to make API call - /// ApiResponse of List<LogonTicketDto> - public ApiResponse< List > AuthenticationGetLogonTicketAdminWithHttpInfo () - { - - var localVarPath = "/api/Authentication/logonTicket/admin/list"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetLogonTicketAdmin", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Get LogonTicket list of all users. Included those no longer valid (admin required) - /// - /// Thrown when fails to make API call - /// Task of List<LogonTicketDto> - public async System.Threading.Tasks.Task> AuthenticationGetLogonTicketAdminAsync () - { - ApiResponse> localVarResponse = await AuthenticationGetLogonTicketAdminAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// Get LogonTicket list of all users. Included those no longer valid (admin required) - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<LogonTicketDto>) - public async System.Threading.Tasks.Task>> AuthenticationGetLogonTicketAdminAsyncWithHttpInfo () - { - - var localVarPath = "/api/Authentication/logonTicket/admin/list"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetLogonTicketAdmin", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Get LogonTicket by ticket (admin required) - /// - /// Thrown when fails to make API call - /// - /// LogonTicketDto - public LogonTicketDto AuthenticationGetLogonTicketAdminByLogonTicket (string logonTicket) - { - ApiResponse localVarResponse = AuthenticationGetLogonTicketAdminByLogonTicketWithHttpInfo(logonTicket); - return localVarResponse.Data; - } - - /// - /// Get LogonTicket by ticket (admin required) - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of LogonTicketDto - public ApiResponse< LogonTicketDto > AuthenticationGetLogonTicketAdminByLogonTicketWithHttpInfo (string logonTicket) - { - // verify the required parameter 'logonTicket' is set - if (logonTicket == null) - throw new ApiException(400, "Missing required parameter 'logonTicket' when calling AuthenticationApi->AuthenticationGetLogonTicketAdminByLogonTicket"); - - var localVarPath = "/api/Authentication/logonTicket/admin/{logonTicket}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (logonTicket != null) localVarPathParams.Add("logonTicket", this.Configuration.ApiClient.ParameterToString(logonTicket)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetLogonTicketAdminByLogonTicket", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogonTicketDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogonTicketDto))); - } - - /// - /// Get LogonTicket by ticket (admin required) - /// - /// Thrown when fails to make API call - /// - /// Task of LogonTicketDto - public async System.Threading.Tasks.Task AuthenticationGetLogonTicketAdminByLogonTicketAsync (string logonTicket) - { - ApiResponse localVarResponse = await AuthenticationGetLogonTicketAdminByLogonTicketAsyncWithHttpInfo(logonTicket); - return localVarResponse.Data; - - } - - /// - /// Get LogonTicket by ticket (admin required) - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (LogonTicketDto) - public async System.Threading.Tasks.Task> AuthenticationGetLogonTicketAdminByLogonTicketAsyncWithHttpInfo (string logonTicket) - { - // verify the required parameter 'logonTicket' is set - if (logonTicket == null) - throw new ApiException(400, "Missing required parameter 'logonTicket' when calling AuthenticationApi->AuthenticationGetLogonTicketAdminByLogonTicket"); - - var localVarPath = "/api/Authentication/logonTicket/admin/{logonTicket}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (logonTicket != null) localVarPathParams.Add("logonTicket", this.Configuration.ApiClient.ParameterToString(logonTicket)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetLogonTicketAdminByLogonTicket", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogonTicketDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogonTicketDto))); - } - - /// - /// Get valid LogonTicket - /// - /// Thrown when fails to make API call - /// List<LogonTicketDto> - public List AuthenticationGetLogonTicketByUserRequestor () - { - ApiResponse> localVarResponse = AuthenticationGetLogonTicketByUserRequestorWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Get valid LogonTicket - /// - /// Thrown when fails to make API call - /// ApiResponse of List<LogonTicketDto> - public ApiResponse< List > AuthenticationGetLogonTicketByUserRequestorWithHttpInfo () - { - - var localVarPath = "/api/Authentication/logonTicket/list"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetLogonTicketByUserRequestor", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Get valid LogonTicket - /// - /// Thrown when fails to make API call - /// Task of List<LogonTicketDto> - public async System.Threading.Tasks.Task> AuthenticationGetLogonTicketByUserRequestorAsync () - { - ApiResponse> localVarResponse = await AuthenticationGetLogonTicketByUserRequestorAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// Get valid LogonTicket - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<LogonTicketDto>) - public async System.Threading.Tasks.Task>> AuthenticationGetLogonTicketByUserRequestorAsyncWithHttpInfo () - { - - var localVarPath = "/api/Authentication/logonTicket/list"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetLogonTicketByUserRequestor", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a new authentication token for a authentication request - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// AuthenticationTokenDTO - public AuthenticationTokenDTO AuthenticationGetToken (AuthenticationTokenRequestDTO authenticationTokenRequest) - { - ApiResponse localVarResponse = AuthenticationGetTokenWithHttpInfo(authenticationTokenRequest); - return localVarResponse.Data; - } - - /// - /// This call returns a new authentication token for a authentication request - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// ApiResponse of AuthenticationTokenDTO - public ApiResponse< AuthenticationTokenDTO > AuthenticationGetTokenWithHttpInfo (AuthenticationTokenRequestDTO authenticationTokenRequest) - { - // verify the required parameter 'authenticationTokenRequest' is set - if (authenticationTokenRequest == null) - throw new ApiException(400, "Missing required parameter 'authenticationTokenRequest' when calling AuthenticationApi->AuthenticationGetToken"); - - var localVarPath = "/api/Authentication"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (authenticationTokenRequest != null && authenticationTokenRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(authenticationTokenRequest); // http body (model) parameter - } - else - { - localVarPostBody = authenticationTokenRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetToken", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthenticationTokenDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthenticationTokenDTO))); - } - - /// - /// This call returns a new authentication token for a authentication request - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// Task of AuthenticationTokenDTO - public async System.Threading.Tasks.Task AuthenticationGetTokenAsync (AuthenticationTokenRequestDTO authenticationTokenRequest) - { - ApiResponse localVarResponse = await AuthenticationGetTokenAsyncWithHttpInfo(authenticationTokenRequest); - return localVarResponse.Data; - - } - - /// - /// This call returns a new authentication token for a authentication request - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// Task of ApiResponse (AuthenticationTokenDTO) - public async System.Threading.Tasks.Task> AuthenticationGetTokenAsyncWithHttpInfo (AuthenticationTokenRequestDTO authenticationTokenRequest) - { - // verify the required parameter 'authenticationTokenRequest' is set - if (authenticationTokenRequest == null) - throw new ApiException(400, "Missing required parameter 'authenticationTokenRequest' when calling AuthenticationApi->AuthenticationGetToken"); - - var localVarPath = "/api/Authentication"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (authenticationTokenRequest != null && authenticationTokenRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(authenticationTokenRequest); // http body (model) parameter - } - else - { - localVarPostBody = authenticationTokenRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetToken", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthenticationTokenDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthenticationTokenDTO))); - } - - /// - /// This call returns authentication token for Assistant - /// - /// Thrown when fails to make API call - /// AuthenticationTokenDTO - public AuthenticationTokenDTO AuthenticationGetTokenArxAssistant () - { - ApiResponse localVarResponse = AuthenticationGetTokenArxAssistantWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns authentication token for Assistant - /// - /// Thrown when fails to make API call - /// ApiResponse of AuthenticationTokenDTO - public ApiResponse< AuthenticationTokenDTO > AuthenticationGetTokenArxAssistantWithHttpInfo () - { - - var localVarPath = "/api/Authentication/getTokenArxAssistant"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetTokenArxAssistant", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthenticationTokenDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthenticationTokenDTO))); - } - - /// - /// This call returns authentication token for Assistant - /// - /// Thrown when fails to make API call - /// Task of AuthenticationTokenDTO - public async System.Threading.Tasks.Task AuthenticationGetTokenArxAssistantAsync () - { - ApiResponse localVarResponse = await AuthenticationGetTokenArxAssistantAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns authentication token for Assistant - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (AuthenticationTokenDTO) - public async System.Threading.Tasks.Task> AuthenticationGetTokenArxAssistantAsyncWithHttpInfo () - { - - var localVarPath = "/api/Authentication/getTokenArxAssistant"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetTokenArxAssistant", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthenticationTokenDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthenticationTokenDTO))); - } - - /// - /// This call returns a new authentication token given a logon ticket - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// AuthenticationTokenDTO - public AuthenticationTokenDTO AuthenticationGetTokenByLogonTicket (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest) - { - ApiResponse localVarResponse = AuthenticationGetTokenByLogonTicketWithHttpInfo(logonTicketRequest); - return localVarResponse.Data; - } - - /// - /// This call returns a new authentication token given a logon ticket - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// ApiResponse of AuthenticationTokenDTO - public ApiResponse< AuthenticationTokenDTO > AuthenticationGetTokenByLogonTicketWithHttpInfo (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest) - { - // verify the required parameter 'logonTicketRequest' is set - if (logonTicketRequest == null) - throw new ApiException(400, "Missing required parameter 'logonTicketRequest' when calling AuthenticationApi->AuthenticationGetTokenByLogonTicket"); - - var localVarPath = "/api/Authentication/getTokenByLogonTicket"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (logonTicketRequest != null && logonTicketRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(logonTicketRequest); // http body (model) parameter - } - else - { - localVarPostBody = logonTicketRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetTokenByLogonTicket", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthenticationTokenDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthenticationTokenDTO))); - } - - /// - /// This call returns a new authentication token given a logon ticket - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// Task of AuthenticationTokenDTO - public async System.Threading.Tasks.Task AuthenticationGetTokenByLogonTicketAsync (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest) - { - ApiResponse localVarResponse = await AuthenticationGetTokenByLogonTicketAsyncWithHttpInfo(logonTicketRequest); - return localVarResponse.Data; - - } - - /// - /// This call returns a new authentication token given a logon ticket - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// Task of ApiResponse (AuthenticationTokenDTO) - public async System.Threading.Tasks.Task> AuthenticationGetTokenByLogonTicketAsyncWithHttpInfo (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest) - { - // verify the required parameter 'logonTicketRequest' is set - if (logonTicketRequest == null) - throw new ApiException(400, "Missing required parameter 'logonTicketRequest' when calling AuthenticationApi->AuthenticationGetTokenByLogonTicket"); - - var localVarPath = "/api/Authentication/getTokenByLogonTicket"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (logonTicketRequest != null && logonTicketRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(logonTicketRequest); // http body (model) parameter - } - else - { - localVarPostBody = logonTicketRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetTokenByLogonTicket", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthenticationTokenDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthenticationTokenDTO))); - } - - /// - /// This call returns a new authentication token with info given a logon ticket - /// - /// Thrown when fails to make API call - /// - /// AccessTokenInfoDTO - public AccessTokenInfoDTO AuthenticationGetTokenInfoByLogonTicket (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest) - { - ApiResponse localVarResponse = AuthenticationGetTokenInfoByLogonTicketWithHttpInfo(logonTicketRequest); - return localVarResponse.Data; - } - - /// - /// This call returns a new authentication token with info given a logon ticket - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of AccessTokenInfoDTO - public ApiResponse< AccessTokenInfoDTO > AuthenticationGetTokenInfoByLogonTicketWithHttpInfo (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest) - { - // verify the required parameter 'logonTicketRequest' is set - if (logonTicketRequest == null) - throw new ApiException(400, "Missing required parameter 'logonTicketRequest' when calling AuthenticationApi->AuthenticationGetTokenInfoByLogonTicket"); - - var localVarPath = "/api/Authentication/getTokenInfoByLogonTicket"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (logonTicketRequest != null && logonTicketRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(logonTicketRequest); // http body (model) parameter - } - else - { - localVarPostBody = logonTicketRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetTokenInfoByLogonTicket", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AccessTokenInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessTokenInfoDTO))); - } - - /// - /// This call returns a new authentication token with info given a logon ticket - /// - /// Thrown when fails to make API call - /// - /// Task of AccessTokenInfoDTO - public async System.Threading.Tasks.Task AuthenticationGetTokenInfoByLogonTicketAsync (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest) - { - ApiResponse localVarResponse = await AuthenticationGetTokenInfoByLogonTicketAsyncWithHttpInfo(logonTicketRequest); - return localVarResponse.Data; - - } - - /// - /// This call returns a new authentication token with info given a logon ticket - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (AccessTokenInfoDTO) - public async System.Threading.Tasks.Task> AuthenticationGetTokenInfoByLogonTicketAsyncWithHttpInfo (AuthenticationTokenByLogonTicketRequestDTO logonTicketRequest) - { - // verify the required parameter 'logonTicketRequest' is set - if (logonTicketRequest == null) - throw new ApiException(400, "Missing required parameter 'logonTicketRequest' when calling AuthenticationApi->AuthenticationGetTokenInfoByLogonTicket"); - - var localVarPath = "/api/Authentication/getTokenInfoByLogonTicket"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (logonTicketRequest != null && logonTicketRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(logonTicketRequest); // http body (model) parameter - } - else - { - localVarPostBody = logonTicketRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetTokenInfoByLogonTicket", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AccessTokenInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessTokenInfoDTO))); - } - - /// - /// This call returns a decoded authentication token for user - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// AccessTokenInfoDTO - public AccessTokenInfoDTO AuthenticationGetUserAuthenticationAccessTokenInfo (AuthenticationTokenRequestDTO authenticationTokenRequest) - { - ApiResponse localVarResponse = AuthenticationGetUserAuthenticationAccessTokenInfoWithHttpInfo(authenticationTokenRequest); - return localVarResponse.Data; - } - - /// - /// This call returns a decoded authentication token for user - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// ApiResponse of AccessTokenInfoDTO - public ApiResponse< AccessTokenInfoDTO > AuthenticationGetUserAuthenticationAccessTokenInfoWithHttpInfo (AuthenticationTokenRequestDTO authenticationTokenRequest) - { - // verify the required parameter 'authenticationTokenRequest' is set - if (authenticationTokenRequest == null) - throw new ApiException(400, "Missing required parameter 'authenticationTokenRequest' when calling AuthenticationApi->AuthenticationGetUserAuthenticationAccessTokenInfo"); - - var localVarPath = "/api/Authentication/getUserAuthenticationAccessTokenInfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (authenticationTokenRequest != null && authenticationTokenRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(authenticationTokenRequest); // http body (model) parameter - } - else - { - localVarPostBody = authenticationTokenRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetUserAuthenticationAccessTokenInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AccessTokenInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessTokenInfoDTO))); - } - - /// - /// This call returns a decoded authentication token for user - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// Task of AccessTokenInfoDTO - public async System.Threading.Tasks.Task AuthenticationGetUserAuthenticationAccessTokenInfoAsync (AuthenticationTokenRequestDTO authenticationTokenRequest) - { - ApiResponse localVarResponse = await AuthenticationGetUserAuthenticationAccessTokenInfoAsyncWithHttpInfo(authenticationTokenRequest); - return localVarResponse.Data; - - } - - /// - /// This call returns a decoded authentication token for user - /// - /// Thrown when fails to make API call - /// Token request for authentication - /// Task of ApiResponse (AccessTokenInfoDTO) - public async System.Threading.Tasks.Task> AuthenticationGetUserAuthenticationAccessTokenInfoAsyncWithHttpInfo (AuthenticationTokenRequestDTO authenticationTokenRequest) - { - // verify the required parameter 'authenticationTokenRequest' is set - if (authenticationTokenRequest == null) - throw new ApiException(400, "Missing required parameter 'authenticationTokenRequest' when calling AuthenticationApi->AuthenticationGetUserAuthenticationAccessTokenInfo"); - - var localVarPath = "/api/Authentication/getUserAuthenticationAccessTokenInfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (authenticationTokenRequest != null && authenticationTokenRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(authenticationTokenRequest); // http body (model) parameter - } - else - { - localVarPostBody = authenticationTokenRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetUserAuthenticationAccessTokenInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AccessTokenInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessTokenInfoDTO))); - } - - /// - /// This call returns the provides logon redirect uri for implicit windows authentication - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// AuthenticationTokenResponseDTO - public AuthenticationTokenResponseDTO AuthenticationGetWindowsLogonRedirectUri (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequestDto) - { - ApiResponse localVarResponse = AuthenticationGetWindowsLogonRedirectUriWithHttpInfo(authenticationTokenImplicitRequestDto); - return localVarResponse.Data; - } - - /// - /// This call returns the provides logon redirect uri for implicit windows authentication - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// ApiResponse of AuthenticationTokenResponseDTO - public ApiResponse< AuthenticationTokenResponseDTO > AuthenticationGetWindowsLogonRedirectUriWithHttpInfo (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequestDto) - { - // verify the required parameter 'authenticationTokenImplicitRequestDto' is set - if (authenticationTokenImplicitRequestDto == null) - throw new ApiException(400, "Missing required parameter 'authenticationTokenImplicitRequestDto' when calling AuthenticationApi->AuthenticationGetWindowsLogonRedirectUri"); - - var localVarPath = "/api/Authentication/getWindowsLogonRedirectUri"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (authenticationTokenImplicitRequestDto != null && authenticationTokenImplicitRequestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(authenticationTokenImplicitRequestDto); // http body (model) parameter - } - else - { - localVarPostBody = authenticationTokenImplicitRequestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetWindowsLogonRedirectUri", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthenticationTokenResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthenticationTokenResponseDTO))); - } - - /// - /// This call returns the provides logon redirect uri for implicit windows authentication - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// Task of AuthenticationTokenResponseDTO - public async System.Threading.Tasks.Task AuthenticationGetWindowsLogonRedirectUriAsync (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequestDto) - { - ApiResponse localVarResponse = await AuthenticationGetWindowsLogonRedirectUriAsyncWithHttpInfo(authenticationTokenImplicitRequestDto); - return localVarResponse.Data; - - } - - /// - /// This call returns the provides logon redirect uri for implicit windows authentication - /// - /// Thrown when fails to make API call - /// Token request for implicit authentication - /// Task of ApiResponse (AuthenticationTokenResponseDTO) - public async System.Threading.Tasks.Task> AuthenticationGetWindowsLogonRedirectUriAsyncWithHttpInfo (AuthenticationTokenImplicitRequestDTO authenticationTokenImplicitRequestDto) - { - // verify the required parameter 'authenticationTokenImplicitRequestDto' is set - if (authenticationTokenImplicitRequestDto == null) - throw new ApiException(400, "Missing required parameter 'authenticationTokenImplicitRequestDto' when calling AuthenticationApi->AuthenticationGetWindowsLogonRedirectUri"); - - var localVarPath = "/api/Authentication/getWindowsLogonRedirectUri"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (authenticationTokenImplicitRequestDto != null && authenticationTokenImplicitRequestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(authenticationTokenImplicitRequestDto); // http body (model) parameter - } - else - { - localVarPostBody = authenticationTokenImplicitRequestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationGetWindowsLogonRedirectUri", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthenticationTokenResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthenticationTokenResponseDTO))); - } - - /// - /// Insert LogonTicket - /// - /// Thrown when fails to make API call - /// - /// LogonTicketDto - public LogonTicketDto AuthenticationInsertLogonTicket (LogonTicketRequestDto ticketRequest) - { - ApiResponse localVarResponse = AuthenticationInsertLogonTicketWithHttpInfo(ticketRequest); - return localVarResponse.Data; - } - - /// - /// Insert LogonTicket - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of LogonTicketDto - public ApiResponse< LogonTicketDto > AuthenticationInsertLogonTicketWithHttpInfo (LogonTicketRequestDto ticketRequest) - { - // verify the required parameter 'ticketRequest' is set - if (ticketRequest == null) - throw new ApiException(400, "Missing required parameter 'ticketRequest' when calling AuthenticationApi->AuthenticationInsertLogonTicket"); - - var localVarPath = "/api/Authentication/logonTicket/insert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (ticketRequest != null && ticketRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(ticketRequest); // http body (model) parameter - } - else - { - localVarPostBody = ticketRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationInsertLogonTicket", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogonTicketDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogonTicketDto))); - } - - /// - /// Insert LogonTicket - /// - /// Thrown when fails to make API call - /// - /// Task of LogonTicketDto - public async System.Threading.Tasks.Task AuthenticationInsertLogonTicketAsync (LogonTicketRequestDto ticketRequest) - { - ApiResponse localVarResponse = await AuthenticationInsertLogonTicketAsyncWithHttpInfo(ticketRequest); - return localVarResponse.Data; - - } - - /// - /// Insert LogonTicket - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (LogonTicketDto) - public async System.Threading.Tasks.Task> AuthenticationInsertLogonTicketAsyncWithHttpInfo (LogonTicketRequestDto ticketRequest) - { - // verify the required parameter 'ticketRequest' is set - if (ticketRequest == null) - throw new ApiException(400, "Missing required parameter 'ticketRequest' when calling AuthenticationApi->AuthenticationInsertLogonTicket"); - - var localVarPath = "/api/Authentication/logonTicket/insert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (ticketRequest != null && ticketRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(ticketRequest); // http body (model) parameter - } - else - { - localVarPostBody = ticketRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationInsertLogonTicket", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogonTicketDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogonTicketDto))); - } - - /// - /// Portal logout audit - /// - /// Thrown when fails to make API call - /// - /// - public void AuthenticationPortalLogout (PortalLogoutRequestDto portalLogoutRequest) - { - AuthenticationPortalLogoutWithHttpInfo(portalLogoutRequest); - } - - /// - /// Portal logout audit - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse AuthenticationPortalLogoutWithHttpInfo (PortalLogoutRequestDto portalLogoutRequest) - { - // verify the required parameter 'portalLogoutRequest' is set - if (portalLogoutRequest == null) - throw new ApiException(400, "Missing required parameter 'portalLogoutRequest' when calling AuthenticationApi->AuthenticationPortalLogout"); - - var localVarPath = "/api/Authentication/PortalLogout"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (portalLogoutRequest != null && portalLogoutRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(portalLogoutRequest); // http body (model) parameter - } - else - { - localVarPostBody = portalLogoutRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationPortalLogout", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Portal logout audit - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task AuthenticationPortalLogoutAsync (PortalLogoutRequestDto portalLogoutRequest) - { - await AuthenticationPortalLogoutAsyncWithHttpInfo(portalLogoutRequest); - - } - - /// - /// Portal logout audit - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AuthenticationPortalLogoutAsyncWithHttpInfo (PortalLogoutRequestDto portalLogoutRequest) - { - // verify the required parameter 'portalLogoutRequest' is set - if (portalLogoutRequest == null) - throw new ApiException(400, "Missing required parameter 'portalLogoutRequest' when calling AuthenticationApi->AuthenticationPortalLogout"); - - var localVarPath = "/api/Authentication/PortalLogout"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (portalLogoutRequest != null && portalLogoutRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(portalLogoutRequest); // http body (model) parameter - } - else - { - localVarPostBody = portalLogoutRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationPortalLogout", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns a new authentication token by a refresh token string - /// - /// Thrown when fails to make API call - /// Token request for authentication refresh - /// AuthenticationTokenDTO - public AuthenticationTokenDTO AuthenticationRefresh (RefreshTokenRequestDTO refreshTokenRequest) - { - ApiResponse localVarResponse = AuthenticationRefreshWithHttpInfo(refreshTokenRequest); - return localVarResponse.Data; - } - - /// - /// This call returns a new authentication token by a refresh token string - /// - /// Thrown when fails to make API call - /// Token request for authentication refresh - /// ApiResponse of AuthenticationTokenDTO - public ApiResponse< AuthenticationTokenDTO > AuthenticationRefreshWithHttpInfo (RefreshTokenRequestDTO refreshTokenRequest) - { - // verify the required parameter 'refreshTokenRequest' is set - if (refreshTokenRequest == null) - throw new ApiException(400, "Missing required parameter 'refreshTokenRequest' when calling AuthenticationApi->AuthenticationRefresh"); - - var localVarPath = "/api/Authentication/refreshtoken"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (refreshTokenRequest != null && refreshTokenRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(refreshTokenRequest); // http body (model) parameter - } - else - { - localVarPostBody = refreshTokenRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationRefresh", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthenticationTokenDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthenticationTokenDTO))); - } - - /// - /// This call returns a new authentication token by a refresh token string - /// - /// Thrown when fails to make API call - /// Token request for authentication refresh - /// Task of AuthenticationTokenDTO - public async System.Threading.Tasks.Task AuthenticationRefreshAsync (RefreshTokenRequestDTO refreshTokenRequest) - { - ApiResponse localVarResponse = await AuthenticationRefreshAsyncWithHttpInfo(refreshTokenRequest); - return localVarResponse.Data; - - } - - /// - /// This call returns a new authentication token by a refresh token string - /// - /// Thrown when fails to make API call - /// Token request for authentication refresh - /// Task of ApiResponse (AuthenticationTokenDTO) - public async System.Threading.Tasks.Task> AuthenticationRefreshAsyncWithHttpInfo (RefreshTokenRequestDTO refreshTokenRequest) - { - // verify the required parameter 'refreshTokenRequest' is set - if (refreshTokenRequest == null) - throw new ApiException(400, "Missing required parameter 'refreshTokenRequest' when calling AuthenticationApi->AuthenticationRefresh"); - - var localVarPath = "/api/Authentication/refreshtoken"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (refreshTokenRequest != null && refreshTokenRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(refreshTokenRequest); // http body (model) parameter - } - else - { - localVarPostBody = refreshTokenRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationRefresh", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthenticationTokenDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthenticationTokenDTO))); - } - - /// - /// This call refreshes and decodes authentication token for user - /// - /// Thrown when fails to make API call - /// Authetication refresh token request - /// AccessTokenInfoDTO - public AccessTokenInfoDTO AuthenticationRefreshAuthenticationAccessTokenInfo (AuthenticationRefreshTokenRequestDTO authenticationRefreshTokenRequest) - { - ApiResponse localVarResponse = AuthenticationRefreshAuthenticationAccessTokenInfoWithHttpInfo(authenticationRefreshTokenRequest); - return localVarResponse.Data; - } - - /// - /// This call refreshes and decodes authentication token for user - /// - /// Thrown when fails to make API call - /// Authetication refresh token request - /// ApiResponse of AccessTokenInfoDTO - public ApiResponse< AccessTokenInfoDTO > AuthenticationRefreshAuthenticationAccessTokenInfoWithHttpInfo (AuthenticationRefreshTokenRequestDTO authenticationRefreshTokenRequest) - { - // verify the required parameter 'authenticationRefreshTokenRequest' is set - if (authenticationRefreshTokenRequest == null) - throw new ApiException(400, "Missing required parameter 'authenticationRefreshTokenRequest' when calling AuthenticationApi->AuthenticationRefreshAuthenticationAccessTokenInfo"); - - var localVarPath = "/api/Authentication/refreshUserAuthenticationAccessTokenInfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (authenticationRefreshTokenRequest != null && authenticationRefreshTokenRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(authenticationRefreshTokenRequest); // http body (model) parameter - } - else - { - localVarPostBody = authenticationRefreshTokenRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationRefreshAuthenticationAccessTokenInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AccessTokenInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessTokenInfoDTO))); - } - - /// - /// This call refreshes and decodes authentication token for user - /// - /// Thrown when fails to make API call - /// Authetication refresh token request - /// Task of AccessTokenInfoDTO - public async System.Threading.Tasks.Task AuthenticationRefreshAuthenticationAccessTokenInfoAsync (AuthenticationRefreshTokenRequestDTO authenticationRefreshTokenRequest) - { - ApiResponse localVarResponse = await AuthenticationRefreshAuthenticationAccessTokenInfoAsyncWithHttpInfo(authenticationRefreshTokenRequest); - return localVarResponse.Data; - - } - - /// - /// This call refreshes and decodes authentication token for user - /// - /// Thrown when fails to make API call - /// Authetication refresh token request - /// Task of ApiResponse (AccessTokenInfoDTO) - public async System.Threading.Tasks.Task> AuthenticationRefreshAuthenticationAccessTokenInfoAsyncWithHttpInfo (AuthenticationRefreshTokenRequestDTO authenticationRefreshTokenRequest) - { - // verify the required parameter 'authenticationRefreshTokenRequest' is set - if (authenticationRefreshTokenRequest == null) - throw new ApiException(400, "Missing required parameter 'authenticationRefreshTokenRequest' when calling AuthenticationApi->AuthenticationRefreshAuthenticationAccessTokenInfo"); - - var localVarPath = "/api/Authentication/refreshUserAuthenticationAccessTokenInfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (authenticationRefreshTokenRequest != null && authenticationRefreshTokenRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(authenticationRefreshTokenRequest); // http body (model) parameter - } - else - { - localVarPostBody = authenticationRefreshTokenRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthenticationRefreshAuthenticationAccessTokenInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AccessTokenInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessTokenInfoDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/BarcodeApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/BarcodeApi.cs deleted file mode 100644 index fb44dcb..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/BarcodeApi.cs +++ /dev/null @@ -1,2663 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IBarcodeApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call insert new barcode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode insert request - /// BarcodeDTO - BarcodeDTO BarcodeBarcodeInsert (BarcodeInsertRequestDTO barcodeInsertRequest); - - /// - /// This call insert new barcode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode insert request - /// ApiResponse of BarcodeDTO - ApiResponse BarcodeBarcodeInsertWithHttpInfo (BarcodeInsertRequestDTO barcodeInsertRequest); - /// - /// This call returns the barcode grapich user template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// BarcodeGraphicTemplateDto - BarcodeGraphicTemplateDto BarcodeGetBarcodeGraphicUserTemplate (int? dmTipidocumentoId); - - /// - /// This call returns the barcode grapich user template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ApiResponse of BarcodeGraphicTemplateDto - ApiResponse BarcodeGetBarcodeGraphicUserTemplateWithHttpInfo (int? dmTipidocumentoId); - /// - /// This call returns the barcode user default settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// BarcodeUserSettingsDto - BarcodeUserSettingsDto BarcodeGetBarcodeUserSettings (); - - /// - /// This call returns the barcode user default settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of BarcodeUserSettingsDto - ApiResponse BarcodeGetBarcodeUserSettingsWithHttpInfo (); - /// - /// This call returns the barcode user template by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// BarcodeTemplateDto - BarcodeTemplateDto BarcodeGetBarcodeUserTemplate (int? dmTipidocumentoId); - - /// - /// This call returns the barcode user template by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ApiResponse of BarcodeTemplateDto - ApiResponse BarcodeGetBarcodeUserTemplateWithHttpInfo (int? dmTipidocumentoId); - /// - /// This call returns the barcode default template by a printer family - ZEBRA_EPL2, - ZEBRA_ZPL2, - TOSHIBA_BSV4, - EPSON_ESC_POS - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The printer family (see Dm_Barcode_PrinterFamily) - /// DefaultBarcodeTemplateDto - DefaultBarcodeTemplateDto BarcodeGetDefaultTemplate (string printerFamilyValue); - - /// - /// This call returns the barcode default template by a printer family - ZEBRA_EPL2, - ZEBRA_ZPL2, - TOSHIBA_BSV4, - EPSON_ESC_POS - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The printer family (see Dm_Barcode_PrinterFamily) - /// ApiResponse of DefaultBarcodeTemplateDto - ApiResponse BarcodeGetDefaultTemplateWithHttpInfo (string printerFamilyValue); - /// - /// This call executes the print of barcode in format Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// BarcodePrintResultDto - BarcodePrintResultDto BarcodePrintArxBarcode (int? docnumber); - - /// - /// This call executes the print of barcode in format Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of BarcodePrintResultDto - ApiResponse BarcodePrintArxBarcodeWithHttpInfo (int? docnumber); - /// - /// This call executes the print of barcode for attachment of document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// BarcodePrintResultDto - BarcodePrintResultDto BarcodePrintAttachmentByDocnumber (int? docnumber); - - /// - /// This call executes the print of barcode for attachment of document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of BarcodePrintResultDto - ApiResponse BarcodePrintAttachmentByDocnumberWithHttpInfo (int? docnumber); - /// - /// This call executes the print of barcode associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// BarcodePrintResultDto - BarcodePrintResultDto BarcodePrintByDocnumber (int? docnumber); - - /// - /// This call executes the print of barcode associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of BarcodePrintResultDto - ApiResponse BarcodePrintByDocnumberWithHttpInfo (int? docnumber); - /// - /// This call executes the print of barcode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode identifier - /// BarcodePrintResultDto - BarcodePrintResultDto BarcodePrintByIdBarcode (int? idBarcode); - - /// - /// This call executes the print of barcode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode identifier - /// ApiResponse of BarcodePrintResultDto - ApiResponse BarcodePrintByIdBarcodeWithHttpInfo (int? idBarcode); - /// - /// This call executes the print of barcode for revision of document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// BarcodePrintResultDto - BarcodePrintResultDto BarcodePrintRevisionByDocnumber (int? docnumber); - - /// - /// This call executes the print of barcode for revision of document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of BarcodePrintResultDto - ApiResponse BarcodePrintRevisionByDocnumberWithHttpInfo (int? docnumber); - /// - /// This call sets the barcode graphic user template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode Graphic Template to save - /// - void BarcodeSetBarcodeGraphicUserTemplate (BarcodeGraphicTemplateSaveDto dto); - - /// - /// This call sets the barcode graphic user template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode Graphic Template to save - /// ApiResponse of Object(void) - ApiResponse BarcodeSetBarcodeGraphicUserTemplateWithHttpInfo (BarcodeGraphicTemplateSaveDto dto); - /// - /// This call sets the barcode user default settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode settings for user - /// - void BarcodeSetBarcodeUserSettings (BarcodeUserSettingsDto barcodeSettings); - - /// - /// This call sets the barcode user default settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode settings for user - /// ApiResponse of Object(void) - ApiResponse BarcodeSetBarcodeUserSettingsWithHttpInfo (BarcodeUserSettingsDto barcodeSettings); - /// - /// This call sets the barcode user template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode Template - /// - void BarcodeSetBarcodeUserTemplate (BarcodeTemplateDto templateDto); - - /// - /// This call sets the barcode user template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode Template - /// ApiResponse of Object(void) - ApiResponse BarcodeSetBarcodeUserTemplateWithHttpInfo (BarcodeTemplateDto templateDto); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call insert new barcode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode insert request - /// Task of BarcodeDTO - System.Threading.Tasks.Task BarcodeBarcodeInsertAsync (BarcodeInsertRequestDTO barcodeInsertRequest); - - /// - /// This call insert new barcode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode insert request - /// Task of ApiResponse (BarcodeDTO) - System.Threading.Tasks.Task> BarcodeBarcodeInsertAsyncWithHttpInfo (BarcodeInsertRequestDTO barcodeInsertRequest); - /// - /// This call returns the barcode grapich user template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of BarcodeGraphicTemplateDto - System.Threading.Tasks.Task BarcodeGetBarcodeGraphicUserTemplateAsync (int? dmTipidocumentoId); - - /// - /// This call returns the barcode grapich user template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ApiResponse (BarcodeGraphicTemplateDto) - System.Threading.Tasks.Task> BarcodeGetBarcodeGraphicUserTemplateAsyncWithHttpInfo (int? dmTipidocumentoId); - /// - /// This call returns the barcode user default settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of BarcodeUserSettingsDto - System.Threading.Tasks.Task BarcodeGetBarcodeUserSettingsAsync (); - - /// - /// This call returns the barcode user default settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (BarcodeUserSettingsDto) - System.Threading.Tasks.Task> BarcodeGetBarcodeUserSettingsAsyncWithHttpInfo (); - /// - /// This call returns the barcode user template by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of BarcodeTemplateDto - System.Threading.Tasks.Task BarcodeGetBarcodeUserTemplateAsync (int? dmTipidocumentoId); - - /// - /// This call returns the barcode user template by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ApiResponse (BarcodeTemplateDto) - System.Threading.Tasks.Task> BarcodeGetBarcodeUserTemplateAsyncWithHttpInfo (int? dmTipidocumentoId); - /// - /// This call returns the barcode default template by a printer family - ZEBRA_EPL2, - ZEBRA_ZPL2, - TOSHIBA_BSV4, - EPSON_ESC_POS - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The printer family (see Dm_Barcode_PrinterFamily) - /// Task of DefaultBarcodeTemplateDto - System.Threading.Tasks.Task BarcodeGetDefaultTemplateAsync (string printerFamilyValue); - - /// - /// This call returns the barcode default template by a printer family - ZEBRA_EPL2, - ZEBRA_ZPL2, - TOSHIBA_BSV4, - EPSON_ESC_POS - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The printer family (see Dm_Barcode_PrinterFamily) - /// Task of ApiResponse (DefaultBarcodeTemplateDto) - System.Threading.Tasks.Task> BarcodeGetDefaultTemplateAsyncWithHttpInfo (string printerFamilyValue); - /// - /// This call executes the print of barcode in format Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of BarcodePrintResultDto - System.Threading.Tasks.Task BarcodePrintArxBarcodeAsync (int? docnumber); - - /// - /// This call executes the print of barcode in format Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (BarcodePrintResultDto) - System.Threading.Tasks.Task> BarcodePrintArxBarcodeAsyncWithHttpInfo (int? docnumber); - /// - /// This call executes the print of barcode for attachment of document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of BarcodePrintResultDto - System.Threading.Tasks.Task BarcodePrintAttachmentByDocnumberAsync (int? docnumber); - - /// - /// This call executes the print of barcode for attachment of document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (BarcodePrintResultDto) - System.Threading.Tasks.Task> BarcodePrintAttachmentByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call executes the print of barcode associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of BarcodePrintResultDto - System.Threading.Tasks.Task BarcodePrintByDocnumberAsync (int? docnumber); - - /// - /// This call executes the print of barcode associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (BarcodePrintResultDto) - System.Threading.Tasks.Task> BarcodePrintByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call executes the print of barcode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode identifier - /// Task of BarcodePrintResultDto - System.Threading.Tasks.Task BarcodePrintByIdBarcodeAsync (int? idBarcode); - - /// - /// This call executes the print of barcode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode identifier - /// Task of ApiResponse (BarcodePrintResultDto) - System.Threading.Tasks.Task> BarcodePrintByIdBarcodeAsyncWithHttpInfo (int? idBarcode); - /// - /// This call executes the print of barcode for revision of document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of BarcodePrintResultDto - System.Threading.Tasks.Task BarcodePrintRevisionByDocnumberAsync (int? docnumber); - - /// - /// This call executes the print of barcode for revision of document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (BarcodePrintResultDto) - System.Threading.Tasks.Task> BarcodePrintRevisionByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call sets the barcode graphic user template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode Graphic Template to save - /// Task of void - System.Threading.Tasks.Task BarcodeSetBarcodeGraphicUserTemplateAsync (BarcodeGraphicTemplateSaveDto dto); - - /// - /// This call sets the barcode graphic user template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode Graphic Template to save - /// Task of ApiResponse - System.Threading.Tasks.Task> BarcodeSetBarcodeGraphicUserTemplateAsyncWithHttpInfo (BarcodeGraphicTemplateSaveDto dto); - /// - /// This call sets the barcode user default settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode settings for user - /// Task of void - System.Threading.Tasks.Task BarcodeSetBarcodeUserSettingsAsync (BarcodeUserSettingsDto barcodeSettings); - - /// - /// This call sets the barcode user default settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode settings for user - /// Task of ApiResponse - System.Threading.Tasks.Task> BarcodeSetBarcodeUserSettingsAsyncWithHttpInfo (BarcodeUserSettingsDto barcodeSettings); - /// - /// This call sets the barcode user template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode Template - /// Task of void - System.Threading.Tasks.Task BarcodeSetBarcodeUserTemplateAsync (BarcodeTemplateDto templateDto); - - /// - /// This call sets the barcode user template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Barcode Template - /// Task of ApiResponse - System.Threading.Tasks.Task> BarcodeSetBarcodeUserTemplateAsyncWithHttpInfo (BarcodeTemplateDto templateDto); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class BarcodeApi : IBarcodeApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public BarcodeApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public BarcodeApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call insert new barcode - /// - /// Thrown when fails to make API call - /// Barcode insert request - /// BarcodeDTO - public BarcodeDTO BarcodeBarcodeInsert (BarcodeInsertRequestDTO barcodeInsertRequest) - { - ApiResponse localVarResponse = BarcodeBarcodeInsertWithHttpInfo(barcodeInsertRequest); - return localVarResponse.Data; - } - - /// - /// This call insert new barcode - /// - /// Thrown when fails to make API call - /// Barcode insert request - /// ApiResponse of BarcodeDTO - public ApiResponse< BarcodeDTO > BarcodeBarcodeInsertWithHttpInfo (BarcodeInsertRequestDTO barcodeInsertRequest) - { - // verify the required parameter 'barcodeInsertRequest' is set - if (barcodeInsertRequest == null) - throw new ApiException(400, "Missing required parameter 'barcodeInsertRequest' when calling BarcodeApi->BarcodeBarcodeInsert"); - - var localVarPath = "/api/Barcode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (barcodeInsertRequest != null && barcodeInsertRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(barcodeInsertRequest); // http body (model) parameter - } - else - { - localVarPostBody = barcodeInsertRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeBarcodeInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodeDTO))); - } - - /// - /// This call insert new barcode - /// - /// Thrown when fails to make API call - /// Barcode insert request - /// Task of BarcodeDTO - public async System.Threading.Tasks.Task BarcodeBarcodeInsertAsync (BarcodeInsertRequestDTO barcodeInsertRequest) - { - ApiResponse localVarResponse = await BarcodeBarcodeInsertAsyncWithHttpInfo(barcodeInsertRequest); - return localVarResponse.Data; - - } - - /// - /// This call insert new barcode - /// - /// Thrown when fails to make API call - /// Barcode insert request - /// Task of ApiResponse (BarcodeDTO) - public async System.Threading.Tasks.Task> BarcodeBarcodeInsertAsyncWithHttpInfo (BarcodeInsertRequestDTO barcodeInsertRequest) - { - // verify the required parameter 'barcodeInsertRequest' is set - if (barcodeInsertRequest == null) - throw new ApiException(400, "Missing required parameter 'barcodeInsertRequest' when calling BarcodeApi->BarcodeBarcodeInsert"); - - var localVarPath = "/api/Barcode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (barcodeInsertRequest != null && barcodeInsertRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(barcodeInsertRequest); // http body (model) parameter - } - else - { - localVarPostBody = barcodeInsertRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeBarcodeInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodeDTO))); - } - - /// - /// This call returns the barcode grapich user template - /// - /// Thrown when fails to make API call - /// Document type identifier - /// BarcodeGraphicTemplateDto - public BarcodeGraphicTemplateDto BarcodeGetBarcodeGraphicUserTemplate (int? dmTipidocumentoId) - { - ApiResponse localVarResponse = BarcodeGetBarcodeGraphicUserTemplateWithHttpInfo(dmTipidocumentoId); - return localVarResponse.Data; - } - - /// - /// This call returns the barcode grapich user template - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ApiResponse of BarcodeGraphicTemplateDto - public ApiResponse< BarcodeGraphicTemplateDto > BarcodeGetBarcodeGraphicUserTemplateWithHttpInfo (int? dmTipidocumentoId) - { - // verify the required parameter 'dmTipidocumentoId' is set - if (dmTipidocumentoId == null) - throw new ApiException(400, "Missing required parameter 'dmTipidocumentoId' when calling BarcodeApi->BarcodeGetBarcodeGraphicUserTemplate"); - - var localVarPath = "/api/Barcode/userGraphicTemplate/documentType/{dmTipidocumentoId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dmTipidocumentoId != null) localVarPathParams.Add("dmTipidocumentoId", this.Configuration.ApiClient.ParameterToString(dmTipidocumentoId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeGetBarcodeGraphicUserTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodeGraphicTemplateDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodeGraphicTemplateDto))); - } - - /// - /// This call returns the barcode grapich user template - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of BarcodeGraphicTemplateDto - public async System.Threading.Tasks.Task BarcodeGetBarcodeGraphicUserTemplateAsync (int? dmTipidocumentoId) - { - ApiResponse localVarResponse = await BarcodeGetBarcodeGraphicUserTemplateAsyncWithHttpInfo(dmTipidocumentoId); - return localVarResponse.Data; - - } - - /// - /// This call returns the barcode grapich user template - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ApiResponse (BarcodeGraphicTemplateDto) - public async System.Threading.Tasks.Task> BarcodeGetBarcodeGraphicUserTemplateAsyncWithHttpInfo (int? dmTipidocumentoId) - { - // verify the required parameter 'dmTipidocumentoId' is set - if (dmTipidocumentoId == null) - throw new ApiException(400, "Missing required parameter 'dmTipidocumentoId' when calling BarcodeApi->BarcodeGetBarcodeGraphicUserTemplate"); - - var localVarPath = "/api/Barcode/userGraphicTemplate/documentType/{dmTipidocumentoId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dmTipidocumentoId != null) localVarPathParams.Add("dmTipidocumentoId", this.Configuration.ApiClient.ParameterToString(dmTipidocumentoId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeGetBarcodeGraphicUserTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodeGraphicTemplateDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodeGraphicTemplateDto))); - } - - /// - /// This call returns the barcode user default settings - /// - /// Thrown when fails to make API call - /// BarcodeUserSettingsDto - public BarcodeUserSettingsDto BarcodeGetBarcodeUserSettings () - { - ApiResponse localVarResponse = BarcodeGetBarcodeUserSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the barcode user default settings - /// - /// Thrown when fails to make API call - /// ApiResponse of BarcodeUserSettingsDto - public ApiResponse< BarcodeUserSettingsDto > BarcodeGetBarcodeUserSettingsWithHttpInfo () - { - - var localVarPath = "/api/Barcode/userSettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeGetBarcodeUserSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodeUserSettingsDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodeUserSettingsDto))); - } - - /// - /// This call returns the barcode user default settings - /// - /// Thrown when fails to make API call - /// Task of BarcodeUserSettingsDto - public async System.Threading.Tasks.Task BarcodeGetBarcodeUserSettingsAsync () - { - ApiResponse localVarResponse = await BarcodeGetBarcodeUserSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the barcode user default settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (BarcodeUserSettingsDto) - public async System.Threading.Tasks.Task> BarcodeGetBarcodeUserSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/Barcode/userSettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeGetBarcodeUserSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodeUserSettingsDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodeUserSettingsDto))); - } - - /// - /// This call returns the barcode user template by document type - /// - /// Thrown when fails to make API call - /// Document type identifier - /// BarcodeTemplateDto - public BarcodeTemplateDto BarcodeGetBarcodeUserTemplate (int? dmTipidocumentoId) - { - ApiResponse localVarResponse = BarcodeGetBarcodeUserTemplateWithHttpInfo(dmTipidocumentoId); - return localVarResponse.Data; - } - - /// - /// This call returns the barcode user template by document type - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ApiResponse of BarcodeTemplateDto - public ApiResponse< BarcodeTemplateDto > BarcodeGetBarcodeUserTemplateWithHttpInfo (int? dmTipidocumentoId) - { - // verify the required parameter 'dmTipidocumentoId' is set - if (dmTipidocumentoId == null) - throw new ApiException(400, "Missing required parameter 'dmTipidocumentoId' when calling BarcodeApi->BarcodeGetBarcodeUserTemplate"); - - var localVarPath = "/api/Barcode/userTemplate/documentType/{dmTipidocumentoId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dmTipidocumentoId != null) localVarPathParams.Add("dmTipidocumentoId", this.Configuration.ApiClient.ParameterToString(dmTipidocumentoId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeGetBarcodeUserTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodeTemplateDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodeTemplateDto))); - } - - /// - /// This call returns the barcode user template by document type - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of BarcodeTemplateDto - public async System.Threading.Tasks.Task BarcodeGetBarcodeUserTemplateAsync (int? dmTipidocumentoId) - { - ApiResponse localVarResponse = await BarcodeGetBarcodeUserTemplateAsyncWithHttpInfo(dmTipidocumentoId); - return localVarResponse.Data; - - } - - /// - /// This call returns the barcode user template by document type - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ApiResponse (BarcodeTemplateDto) - public async System.Threading.Tasks.Task> BarcodeGetBarcodeUserTemplateAsyncWithHttpInfo (int? dmTipidocumentoId) - { - // verify the required parameter 'dmTipidocumentoId' is set - if (dmTipidocumentoId == null) - throw new ApiException(400, "Missing required parameter 'dmTipidocumentoId' when calling BarcodeApi->BarcodeGetBarcodeUserTemplate"); - - var localVarPath = "/api/Barcode/userTemplate/documentType/{dmTipidocumentoId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dmTipidocumentoId != null) localVarPathParams.Add("dmTipidocumentoId", this.Configuration.ApiClient.ParameterToString(dmTipidocumentoId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeGetBarcodeUserTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodeTemplateDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodeTemplateDto))); - } - - /// - /// This call returns the barcode default template by a printer family - ZEBRA_EPL2, - ZEBRA_ZPL2, - TOSHIBA_BSV4, - EPSON_ESC_POS - /// - /// Thrown when fails to make API call - /// The printer family (see Dm_Barcode_PrinterFamily) - /// DefaultBarcodeTemplateDto - public DefaultBarcodeTemplateDto BarcodeGetDefaultTemplate (string printerFamilyValue) - { - ApiResponse localVarResponse = BarcodeGetDefaultTemplateWithHttpInfo(printerFamilyValue); - return localVarResponse.Data; - } - - /// - /// This call returns the barcode default template by a printer family - ZEBRA_EPL2, - ZEBRA_ZPL2, - TOSHIBA_BSV4, - EPSON_ESC_POS - /// - /// Thrown when fails to make API call - /// The printer family (see Dm_Barcode_PrinterFamily) - /// ApiResponse of DefaultBarcodeTemplateDto - public ApiResponse< DefaultBarcodeTemplateDto > BarcodeGetDefaultTemplateWithHttpInfo (string printerFamilyValue) - { - // verify the required parameter 'printerFamilyValue' is set - if (printerFamilyValue == null) - throw new ApiException(400, "Missing required parameter 'printerFamilyValue' when calling BarcodeApi->BarcodeGetDefaultTemplate"); - - var localVarPath = "/api/Barcode/defaultTemplate/printerFamily/{printerFamilyValue}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (printerFamilyValue != null) localVarPathParams.Add("printerFamilyValue", this.Configuration.ApiClient.ParameterToString(printerFamilyValue)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeGetDefaultTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DefaultBarcodeTemplateDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DefaultBarcodeTemplateDto))); - } - - /// - /// This call returns the barcode default template by a printer family - ZEBRA_EPL2, - ZEBRA_ZPL2, - TOSHIBA_BSV4, - EPSON_ESC_POS - /// - /// Thrown when fails to make API call - /// The printer family (see Dm_Barcode_PrinterFamily) - /// Task of DefaultBarcodeTemplateDto - public async System.Threading.Tasks.Task BarcodeGetDefaultTemplateAsync (string printerFamilyValue) - { - ApiResponse localVarResponse = await BarcodeGetDefaultTemplateAsyncWithHttpInfo(printerFamilyValue); - return localVarResponse.Data; - - } - - /// - /// This call returns the barcode default template by a printer family - ZEBRA_EPL2, - ZEBRA_ZPL2, - TOSHIBA_BSV4, - EPSON_ESC_POS - /// - /// Thrown when fails to make API call - /// The printer family (see Dm_Barcode_PrinterFamily) - /// Task of ApiResponse (DefaultBarcodeTemplateDto) - public async System.Threading.Tasks.Task> BarcodeGetDefaultTemplateAsyncWithHttpInfo (string printerFamilyValue) - { - // verify the required parameter 'printerFamilyValue' is set - if (printerFamilyValue == null) - throw new ApiException(400, "Missing required parameter 'printerFamilyValue' when calling BarcodeApi->BarcodeGetDefaultTemplate"); - - var localVarPath = "/api/Barcode/defaultTemplate/printerFamily/{printerFamilyValue}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (printerFamilyValue != null) localVarPathParams.Add("printerFamilyValue", this.Configuration.ApiClient.ParameterToString(printerFamilyValue)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeGetDefaultTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DefaultBarcodeTemplateDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DefaultBarcodeTemplateDto))); - } - - /// - /// This call executes the print of barcode in format Arxivar - /// - /// Thrown when fails to make API call - /// Document identifier - /// BarcodePrintResultDto - public BarcodePrintResultDto BarcodePrintArxBarcode (int? docnumber) - { - ApiResponse localVarResponse = BarcodePrintArxBarcodeWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call executes the print of barcode in format Arxivar - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of BarcodePrintResultDto - public ApiResponse< BarcodePrintResultDto > BarcodePrintArxBarcodeWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling BarcodeApi->BarcodePrintArxBarcode"); - - var localVarPath = "/api/Barcode/printArxBarcode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "docnumber", docnumber)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodePrintArxBarcode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodePrintResultDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodePrintResultDto))); - } - - /// - /// This call executes the print of barcode in format Arxivar - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of BarcodePrintResultDto - public async System.Threading.Tasks.Task BarcodePrintArxBarcodeAsync (int? docnumber) - { - ApiResponse localVarResponse = await BarcodePrintArxBarcodeAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call executes the print of barcode in format Arxivar - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (BarcodePrintResultDto) - public async System.Threading.Tasks.Task> BarcodePrintArxBarcodeAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling BarcodeApi->BarcodePrintArxBarcode"); - - var localVarPath = "/api/Barcode/printArxBarcode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "docnumber", docnumber)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodePrintArxBarcode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodePrintResultDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodePrintResultDto))); - } - - /// - /// This call executes the print of barcode for attachment of document - /// - /// Thrown when fails to make API call - /// Document identifier - /// BarcodePrintResultDto - public BarcodePrintResultDto BarcodePrintAttachmentByDocnumber (int? docnumber) - { - ApiResponse localVarResponse = BarcodePrintAttachmentByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call executes the print of barcode for attachment of document - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of BarcodePrintResultDto - public ApiResponse< BarcodePrintResultDto > BarcodePrintAttachmentByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling BarcodeApi->BarcodePrintAttachmentByDocnumber"); - - var localVarPath = "/api/Barcode/printAttachment/byDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodePrintAttachmentByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodePrintResultDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodePrintResultDto))); - } - - /// - /// This call executes the print of barcode for attachment of document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of BarcodePrintResultDto - public async System.Threading.Tasks.Task BarcodePrintAttachmentByDocnumberAsync (int? docnumber) - { - ApiResponse localVarResponse = await BarcodePrintAttachmentByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call executes the print of barcode for attachment of document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (BarcodePrintResultDto) - public async System.Threading.Tasks.Task> BarcodePrintAttachmentByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling BarcodeApi->BarcodePrintAttachmentByDocnumber"); - - var localVarPath = "/api/Barcode/printAttachment/byDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodePrintAttachmentByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodePrintResultDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodePrintResultDto))); - } - - /// - /// This call executes the print of barcode associated with a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// BarcodePrintResultDto - public BarcodePrintResultDto BarcodePrintByDocnumber (int? docnumber) - { - ApiResponse localVarResponse = BarcodePrintByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call executes the print of barcode associated with a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of BarcodePrintResultDto - public ApiResponse< BarcodePrintResultDto > BarcodePrintByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling BarcodeApi->BarcodePrintByDocnumber"); - - var localVarPath = "/api/Barcode/print/byDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodePrintByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodePrintResultDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodePrintResultDto))); - } - - /// - /// This call executes the print of barcode associated with a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of BarcodePrintResultDto - public async System.Threading.Tasks.Task BarcodePrintByDocnumberAsync (int? docnumber) - { - ApiResponse localVarResponse = await BarcodePrintByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call executes the print of barcode associated with a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (BarcodePrintResultDto) - public async System.Threading.Tasks.Task> BarcodePrintByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling BarcodeApi->BarcodePrintByDocnumber"); - - var localVarPath = "/api/Barcode/print/byDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodePrintByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodePrintResultDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodePrintResultDto))); - } - - /// - /// This call executes the print of barcode - /// - /// Thrown when fails to make API call - /// Barcode identifier - /// BarcodePrintResultDto - public BarcodePrintResultDto BarcodePrintByIdBarcode (int? idBarcode) - { - ApiResponse localVarResponse = BarcodePrintByIdBarcodeWithHttpInfo(idBarcode); - return localVarResponse.Data; - } - - /// - /// This call executes the print of barcode - /// - /// Thrown when fails to make API call - /// Barcode identifier - /// ApiResponse of BarcodePrintResultDto - public ApiResponse< BarcodePrintResultDto > BarcodePrintByIdBarcodeWithHttpInfo (int? idBarcode) - { - // verify the required parameter 'idBarcode' is set - if (idBarcode == null) - throw new ApiException(400, "Missing required parameter 'idBarcode' when calling BarcodeApi->BarcodePrintByIdBarcode"); - - var localVarPath = "/api/Barcode/print/{idBarcode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (idBarcode != null) localVarPathParams.Add("idBarcode", this.Configuration.ApiClient.ParameterToString(idBarcode)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodePrintByIdBarcode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodePrintResultDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodePrintResultDto))); - } - - /// - /// This call executes the print of barcode - /// - /// Thrown when fails to make API call - /// Barcode identifier - /// Task of BarcodePrintResultDto - public async System.Threading.Tasks.Task BarcodePrintByIdBarcodeAsync (int? idBarcode) - { - ApiResponse localVarResponse = await BarcodePrintByIdBarcodeAsyncWithHttpInfo(idBarcode); - return localVarResponse.Data; - - } - - /// - /// This call executes the print of barcode - /// - /// Thrown when fails to make API call - /// Barcode identifier - /// Task of ApiResponse (BarcodePrintResultDto) - public async System.Threading.Tasks.Task> BarcodePrintByIdBarcodeAsyncWithHttpInfo (int? idBarcode) - { - // verify the required parameter 'idBarcode' is set - if (idBarcode == null) - throw new ApiException(400, "Missing required parameter 'idBarcode' when calling BarcodeApi->BarcodePrintByIdBarcode"); - - var localVarPath = "/api/Barcode/print/{idBarcode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (idBarcode != null) localVarPathParams.Add("idBarcode", this.Configuration.ApiClient.ParameterToString(idBarcode)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodePrintByIdBarcode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodePrintResultDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodePrintResultDto))); - } - - /// - /// This call executes the print of barcode for revision of document - /// - /// Thrown when fails to make API call - /// Document identifier - /// BarcodePrintResultDto - public BarcodePrintResultDto BarcodePrintRevisionByDocnumber (int? docnumber) - { - ApiResponse localVarResponse = BarcodePrintRevisionByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call executes the print of barcode for revision of document - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of BarcodePrintResultDto - public ApiResponse< BarcodePrintResultDto > BarcodePrintRevisionByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling BarcodeApi->BarcodePrintRevisionByDocnumber"); - - var localVarPath = "/api/Barcode/printRevision/byDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodePrintRevisionByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodePrintResultDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodePrintResultDto))); - } - - /// - /// This call executes the print of barcode for revision of document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of BarcodePrintResultDto - public async System.Threading.Tasks.Task BarcodePrintRevisionByDocnumberAsync (int? docnumber) - { - ApiResponse localVarResponse = await BarcodePrintRevisionByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call executes the print of barcode for revision of document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (BarcodePrintResultDto) - public async System.Threading.Tasks.Task> BarcodePrintRevisionByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling BarcodeApi->BarcodePrintRevisionByDocnumber"); - - var localVarPath = "/api/Barcode/printRevision/byDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodePrintRevisionByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BarcodePrintResultDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BarcodePrintResultDto))); - } - - /// - /// This call sets the barcode graphic user template - /// - /// Thrown when fails to make API call - /// Barcode Graphic Template to save - /// - public void BarcodeSetBarcodeGraphicUserTemplate (BarcodeGraphicTemplateSaveDto dto) - { - BarcodeSetBarcodeGraphicUserTemplateWithHttpInfo(dto); - } - - /// - /// This call sets the barcode graphic user template - /// - /// Thrown when fails to make API call - /// Barcode Graphic Template to save - /// ApiResponse of Object(void) - public ApiResponse BarcodeSetBarcodeGraphicUserTemplateWithHttpInfo (BarcodeGraphicTemplateSaveDto dto) - { - // verify the required parameter 'dto' is set - if (dto == null) - throw new ApiException(400, "Missing required parameter 'dto' when calling BarcodeApi->BarcodeSetBarcodeGraphicUserTemplate"); - - var localVarPath = "/api/Barcode/setUserGraphicTemplate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dto != null && dto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(dto); // http body (model) parameter - } - else - { - localVarPostBody = dto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeSetBarcodeGraphicUserTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the barcode graphic user template - /// - /// Thrown when fails to make API call - /// Barcode Graphic Template to save - /// Task of void - public async System.Threading.Tasks.Task BarcodeSetBarcodeGraphicUserTemplateAsync (BarcodeGraphicTemplateSaveDto dto) - { - await BarcodeSetBarcodeGraphicUserTemplateAsyncWithHttpInfo(dto); - - } - - /// - /// This call sets the barcode graphic user template - /// - /// Thrown when fails to make API call - /// Barcode Graphic Template to save - /// Task of ApiResponse - public async System.Threading.Tasks.Task> BarcodeSetBarcodeGraphicUserTemplateAsyncWithHttpInfo (BarcodeGraphicTemplateSaveDto dto) - { - // verify the required parameter 'dto' is set - if (dto == null) - throw new ApiException(400, "Missing required parameter 'dto' when calling BarcodeApi->BarcodeSetBarcodeGraphicUserTemplate"); - - var localVarPath = "/api/Barcode/setUserGraphicTemplate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dto != null && dto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(dto); // http body (model) parameter - } - else - { - localVarPostBody = dto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeSetBarcodeGraphicUserTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the barcode user default settings - /// - /// Thrown when fails to make API call - /// Barcode settings for user - /// - public void BarcodeSetBarcodeUserSettings (BarcodeUserSettingsDto barcodeSettings) - { - BarcodeSetBarcodeUserSettingsWithHttpInfo(barcodeSettings); - } - - /// - /// This call sets the barcode user default settings - /// - /// Thrown when fails to make API call - /// Barcode settings for user - /// ApiResponse of Object(void) - public ApiResponse BarcodeSetBarcodeUserSettingsWithHttpInfo (BarcodeUserSettingsDto barcodeSettings) - { - // verify the required parameter 'barcodeSettings' is set - if (barcodeSettings == null) - throw new ApiException(400, "Missing required parameter 'barcodeSettings' when calling BarcodeApi->BarcodeSetBarcodeUserSettings"); - - var localVarPath = "/api/Barcode/setUserSettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (barcodeSettings != null && barcodeSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(barcodeSettings); // http body (model) parameter - } - else - { - localVarPostBody = barcodeSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeSetBarcodeUserSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the barcode user default settings - /// - /// Thrown when fails to make API call - /// Barcode settings for user - /// Task of void - public async System.Threading.Tasks.Task BarcodeSetBarcodeUserSettingsAsync (BarcodeUserSettingsDto barcodeSettings) - { - await BarcodeSetBarcodeUserSettingsAsyncWithHttpInfo(barcodeSettings); - - } - - /// - /// This call sets the barcode user default settings - /// - /// Thrown when fails to make API call - /// Barcode settings for user - /// Task of ApiResponse - public async System.Threading.Tasks.Task> BarcodeSetBarcodeUserSettingsAsyncWithHttpInfo (BarcodeUserSettingsDto barcodeSettings) - { - // verify the required parameter 'barcodeSettings' is set - if (barcodeSettings == null) - throw new ApiException(400, "Missing required parameter 'barcodeSettings' when calling BarcodeApi->BarcodeSetBarcodeUserSettings"); - - var localVarPath = "/api/Barcode/setUserSettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (barcodeSettings != null && barcodeSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(barcodeSettings); // http body (model) parameter - } - else - { - localVarPostBody = barcodeSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeSetBarcodeUserSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the barcode user template - /// - /// Thrown when fails to make API call - /// Barcode Template - /// - public void BarcodeSetBarcodeUserTemplate (BarcodeTemplateDto templateDto) - { - BarcodeSetBarcodeUserTemplateWithHttpInfo(templateDto); - } - - /// - /// This call sets the barcode user template - /// - /// Thrown when fails to make API call - /// Barcode Template - /// ApiResponse of Object(void) - public ApiResponse BarcodeSetBarcodeUserTemplateWithHttpInfo (BarcodeTemplateDto templateDto) - { - // verify the required parameter 'templateDto' is set - if (templateDto == null) - throw new ApiException(400, "Missing required parameter 'templateDto' when calling BarcodeApi->BarcodeSetBarcodeUserTemplate"); - - var localVarPath = "/api/Barcode/setUserTemplate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (templateDto != null && templateDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(templateDto); // http body (model) parameter - } - else - { - localVarPostBody = templateDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeSetBarcodeUserTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the barcode user template - /// - /// Thrown when fails to make API call - /// Barcode Template - /// Task of void - public async System.Threading.Tasks.Task BarcodeSetBarcodeUserTemplateAsync (BarcodeTemplateDto templateDto) - { - await BarcodeSetBarcodeUserTemplateAsyncWithHttpInfo(templateDto); - - } - - /// - /// This call sets the barcode user template - /// - /// Thrown when fails to make API call - /// Barcode Template - /// Task of ApiResponse - public async System.Threading.Tasks.Task> BarcodeSetBarcodeUserTemplateAsyncWithHttpInfo (BarcodeTemplateDto templateDto) - { - // verify the required parameter 'templateDto' is set - if (templateDto == null) - throw new ApiException(400, "Missing required parameter 'templateDto' when calling BarcodeApi->BarcodeSetBarcodeUserTemplate"); - - var localVarPath = "/api/Barcode/setUserTemplate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (templateDto != null && templateDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(templateDto); // http body (model) parameter - } - else - { - localVarPostBody = templateDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BarcodeSetBarcodeUserTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/BinderSearchApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/BinderSearchApi.cs deleted file mode 100644 index 474776e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/BinderSearchApi.cs +++ /dev/null @@ -1,345 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IBinderSearchApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all documents contained in a specific binder - /// - /// - /// This method is deprecated. Use api/v2/BinderSearches - /// - /// Thrown when fails to make API call - /// The request object for the search - /// List<RowSearchResult> - List BinderSearchGetProfilesByPratica (BinderProfilesSearchRequestDTO request); - - /// - /// This call returns all documents contained in a specific binder - /// - /// - /// This method is deprecated. Use api/v2/BinderSearches - /// - /// Thrown when fails to make API call - /// The request object for the search - /// ApiResponse of List<RowSearchResult> - ApiResponse> BinderSearchGetProfilesByPraticaWithHttpInfo (BinderProfilesSearchRequestDTO request); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all documents contained in a specific binder - /// - /// - /// This method is deprecated. Use api/v2/BinderSearches - /// - /// Thrown when fails to make API call - /// The request object for the search - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> BinderSearchGetProfilesByPraticaAsync (BinderProfilesSearchRequestDTO request); - - /// - /// This call returns all documents contained in a specific binder - /// - /// - /// This method is deprecated. Use api/v2/BinderSearches - /// - /// Thrown when fails to make API call - /// The request object for the search - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> BinderSearchGetProfilesByPraticaAsyncWithHttpInfo (BinderProfilesSearchRequestDTO request); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class BinderSearchApi : IBinderSearchApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public BinderSearchApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public BinderSearchApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all documents contained in a specific binder This method is deprecated. Use api/v2/BinderSearches - /// - /// Thrown when fails to make API call - /// The request object for the search - /// List<RowSearchResult> - public List BinderSearchGetProfilesByPratica (BinderProfilesSearchRequestDTO request) - { - ApiResponse> localVarResponse = BinderSearchGetProfilesByPraticaWithHttpInfo(request); - return localVarResponse.Data; - } - - /// - /// This call returns all documents contained in a specific binder This method is deprecated. Use api/v2/BinderSearches - /// - /// Thrown when fails to make API call - /// The request object for the search - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > BinderSearchGetProfilesByPraticaWithHttpInfo (BinderProfilesSearchRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling BinderSearchApi->BinderSearchGetProfilesByPratica"); - - var localVarPath = "/api/BinderSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BinderSearchGetProfilesByPratica", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all documents contained in a specific binder This method is deprecated. Use api/v2/BinderSearches - /// - /// Thrown when fails to make API call - /// The request object for the search - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> BinderSearchGetProfilesByPraticaAsync (BinderProfilesSearchRequestDTO request) - { - ApiResponse> localVarResponse = await BinderSearchGetProfilesByPraticaAsyncWithHttpInfo(request); - return localVarResponse.Data; - - } - - /// - /// This call returns all documents contained in a specific binder This method is deprecated. Use api/v2/BinderSearches - /// - /// Thrown when fails to make API call - /// The request object for the search - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> BinderSearchGetProfilesByPraticaAsyncWithHttpInfo (BinderProfilesSearchRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling BinderSearchApi->BinderSearchGetProfilesByPratica"); - - var localVarPath = "/api/BinderSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BinderSearchGetProfilesByPratica", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/BinderSearchV3Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/BinderSearchV3Api.cs deleted file mode 100644 index 83422a6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/BinderSearchV3Api.cs +++ /dev/null @@ -1,345 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IBinderSearchV3Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all documents contained in a specific binder This call could not be compatible with some programming language, in this case use the call \"api/BinderSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The request object for the search - /// Object - Object BinderSearchV3GetProfilesByPratica (BinderProfilesSearchRequestDTO request); - - /// - /// This call returns all documents contained in a specific binder This call could not be compatible with some programming language, in this case use the call \"api/BinderSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The request object for the search - /// ApiResponse of Object - ApiResponse BinderSearchV3GetProfilesByPraticaWithHttpInfo (BinderProfilesSearchRequestDTO request); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all documents contained in a specific binder This call could not be compatible with some programming language, in this case use the call \"api/BinderSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The request object for the search - /// Task of Object - System.Threading.Tasks.Task BinderSearchV3GetProfilesByPraticaAsync (BinderProfilesSearchRequestDTO request); - - /// - /// This call returns all documents contained in a specific binder This call could not be compatible with some programming language, in this case use the call \"api/BinderSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The request object for the search - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> BinderSearchV3GetProfilesByPraticaAsyncWithHttpInfo (BinderProfilesSearchRequestDTO request); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class BinderSearchV3Api : IBinderSearchV3Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public BinderSearchV3Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public BinderSearchV3Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all documents contained in a specific binder This call could not be compatible with some programming language, in this case use the call \"api/BinderSearches - /// - /// Thrown when fails to make API call - /// The request object for the search - /// Object - public Object BinderSearchV3GetProfilesByPratica (BinderProfilesSearchRequestDTO request) - { - ApiResponse localVarResponse = BinderSearchV3GetProfilesByPraticaWithHttpInfo(request); - return localVarResponse.Data; - } - - /// - /// This call returns all documents contained in a specific binder This call could not be compatible with some programming language, in this case use the call \"api/BinderSearches - /// - /// Thrown when fails to make API call - /// The request object for the search - /// ApiResponse of Object - public ApiResponse< Object > BinderSearchV3GetProfilesByPraticaWithHttpInfo (BinderProfilesSearchRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling BinderSearchV3Api->BinderSearchV3GetProfilesByPratica"); - - var localVarPath = "/api/v3/BinderSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BinderSearchV3GetProfilesByPratica", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns all documents contained in a specific binder This call could not be compatible with some programming language, in this case use the call \"api/BinderSearches - /// - /// Thrown when fails to make API call - /// The request object for the search - /// Task of Object - public async System.Threading.Tasks.Task BinderSearchV3GetProfilesByPraticaAsync (BinderProfilesSearchRequestDTO request) - { - ApiResponse localVarResponse = await BinderSearchV3GetProfilesByPraticaAsyncWithHttpInfo(request); - return localVarResponse.Data; - - } - - /// - /// This call returns all documents contained in a specific binder This call could not be compatible with some programming language, in this case use the call \"api/BinderSearches - /// - /// Thrown when fails to make API call - /// The request object for the search - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> BinderSearchV3GetProfilesByPraticaAsyncWithHttpInfo (BinderProfilesSearchRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling BinderSearchV3Api->BinderSearchV3GetProfilesByPratica"); - - var localVarPath = "/api/v3/BinderSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BinderSearchV3GetProfilesByPratica", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/BinderTypeSearchApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/BinderTypeSearchApi.cs deleted file mode 100644 index 9e70de7..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/BinderTypeSearchApi.cs +++ /dev/null @@ -1,536 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IBinderTypeSearchApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns binders by a given search object - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The search object - /// List<BinderDTO> - List BinderTypeSearchGetBindersByAdvancedSearch (SearchConcreteDTO search); - - /// - /// This call returns binders by a given search object - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The search object - /// ApiResponse of List<BinderDTO> - ApiResponse> BinderTypeSearchGetBindersByAdvancedSearchWithHttpInfo (SearchConcreteDTO search); - /// - /// This call returns a search object for a search by binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// SearchConcreteDTO - SearchConcreteDTO BinderTypeSearchGetSearchByBinderType (int? binderTypeId); - - /// - /// This call returns a search object for a search by binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// ApiResponse of SearchConcreteDTO - ApiResponse BinderTypeSearchGetSearchByBinderTypeWithHttpInfo (int? binderTypeId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns binders by a given search object - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The search object - /// Task of List<BinderDTO> - System.Threading.Tasks.Task> BinderTypeSearchGetBindersByAdvancedSearchAsync (SearchConcreteDTO search); - - /// - /// This call returns binders by a given search object - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The search object - /// Task of ApiResponse (List<BinderDTO>) - System.Threading.Tasks.Task>> BinderTypeSearchGetBindersByAdvancedSearchAsyncWithHttpInfo (SearchConcreteDTO search); - /// - /// This call returns a search object for a search by binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// Task of SearchConcreteDTO - System.Threading.Tasks.Task BinderTypeSearchGetSearchByBinderTypeAsync (int? binderTypeId); - - /// - /// This call returns a search object for a search by binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// Task of ApiResponse (SearchConcreteDTO) - System.Threading.Tasks.Task> BinderTypeSearchGetSearchByBinderTypeAsyncWithHttpInfo (int? binderTypeId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class BinderTypeSearchApi : IBinderTypeSearchApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public BinderTypeSearchApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public BinderTypeSearchApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns binders by a given search object - /// - /// Thrown when fails to make API call - /// The search object - /// List<BinderDTO> - public List BinderTypeSearchGetBindersByAdvancedSearch (SearchConcreteDTO search) - { - ApiResponse> localVarResponse = BinderTypeSearchGetBindersByAdvancedSearchWithHttpInfo(search); - return localVarResponse.Data; - } - - /// - /// This call returns binders by a given search object - /// - /// Thrown when fails to make API call - /// The search object - /// ApiResponse of List<BinderDTO> - public ApiResponse< List > BinderTypeSearchGetBindersByAdvancedSearchWithHttpInfo (SearchConcreteDTO search) - { - // verify the required parameter 'search' is set - if (search == null) - throw new ApiException(400, "Missing required parameter 'search' when calling BinderTypeSearchApi->BinderTypeSearchGetBindersByAdvancedSearch"); - - var localVarPath = "/api/BinderTypeSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (search != null && search.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(search); // http body (model) parameter - } - else - { - localVarPostBody = search; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BinderTypeSearchGetBindersByAdvancedSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns binders by a given search object - /// - /// Thrown when fails to make API call - /// The search object - /// Task of List<BinderDTO> - public async System.Threading.Tasks.Task> BinderTypeSearchGetBindersByAdvancedSearchAsync (SearchConcreteDTO search) - { - ApiResponse> localVarResponse = await BinderTypeSearchGetBindersByAdvancedSearchAsyncWithHttpInfo(search); - return localVarResponse.Data; - - } - - /// - /// This call returns binders by a given search object - /// - /// Thrown when fails to make API call - /// The search object - /// Task of ApiResponse (List<BinderDTO>) - public async System.Threading.Tasks.Task>> BinderTypeSearchGetBindersByAdvancedSearchAsyncWithHttpInfo (SearchConcreteDTO search) - { - // verify the required parameter 'search' is set - if (search == null) - throw new ApiException(400, "Missing required parameter 'search' when calling BinderTypeSearchApi->BinderTypeSearchGetBindersByAdvancedSearch"); - - var localVarPath = "/api/BinderTypeSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (search != null && search.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(search); // http body (model) parameter - } - else - { - localVarPostBody = search; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BinderTypeSearchGetBindersByAdvancedSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a search object for a search by binder type - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// SearchConcreteDTO - public SearchConcreteDTO BinderTypeSearchGetSearchByBinderType (int? binderTypeId) - { - ApiResponse localVarResponse = BinderTypeSearchGetSearchByBinderTypeWithHttpInfo(binderTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns a search object for a search by binder type - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// ApiResponse of SearchConcreteDTO - public ApiResponse< SearchConcreteDTO > BinderTypeSearchGetSearchByBinderTypeWithHttpInfo (int? binderTypeId) - { - // verify the required parameter 'binderTypeId' is set - if (binderTypeId == null) - throw new ApiException(400, "Missing required parameter 'binderTypeId' when calling BinderTypeSearchApi->BinderTypeSearchGetSearchByBinderType"); - - var localVarPath = "/api/BinderTypeSearches/{binderTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderTypeId != null) localVarPathParams.Add("binderTypeId", this.Configuration.ApiClient.ParameterToString(binderTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BinderTypeSearchGetSearchByBinderType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchConcreteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchConcreteDTO))); - } - - /// - /// This call returns a search object for a search by binder type - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// Task of SearchConcreteDTO - public async System.Threading.Tasks.Task BinderTypeSearchGetSearchByBinderTypeAsync (int? binderTypeId) - { - ApiResponse localVarResponse = await BinderTypeSearchGetSearchByBinderTypeAsyncWithHttpInfo(binderTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns a search object for a search by binder type - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// Task of ApiResponse (SearchConcreteDTO) - public async System.Threading.Tasks.Task> BinderTypeSearchGetSearchByBinderTypeAsyncWithHttpInfo (int? binderTypeId) - { - // verify the required parameter 'binderTypeId' is set - if (binderTypeId == null) - throw new ApiException(400, "Missing required parameter 'binderTypeId' when calling BinderTypeSearchApi->BinderTypeSearchGetSearchByBinderType"); - - var localVarPath = "/api/BinderTypeSearches/{binderTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderTypeId != null) localVarPathParams.Add("binderTypeId", this.Configuration.ApiClient.ParameterToString(binderTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BinderTypeSearchGetSearchByBinderType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchConcreteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchConcreteDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/BindersApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/BindersApi.cs deleted file mode 100644 index f462ec3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/BindersApi.cs +++ /dev/null @@ -1,6400 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IBindersApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call adds specified profiles to a binder container - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for insert profiles into the binder - /// - void BindersAddProfilesToBinder (BinderProfilesInsertRequest profilesInsertRequest); - - /// - /// This call adds specified profiles to a binder container - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for insert profiles into the binder - /// ApiResponse of Object(void) - ApiResponse BindersAddProfilesToBinderWithHttpInfo (BinderProfilesInsertRequest profilesInsertRequest); - /// - /// This call updates the possible values for a combo custom binder field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The update values request - /// - void BindersBinderComboValues (BinderComboValuesUpdateRequest request); - - /// - /// This call updates the possible values for a combo custom binder field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The update values request - /// ApiResponse of Object(void) - ApiResponse BindersBinderComboValuesWithHttpInfo (BinderComboValuesUpdateRequest request); - /// - /// This call updates custom field for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The update custom fields request - /// List<FieldBaseDTO> - List BindersBinderCustomFieldsTranslations (BinderTypeCustomFieldUpdateRequest request); - - /// - /// This call updates custom field for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The update custom fields request - /// ApiResponse of List<FieldBaseDTO> - ApiResponse> BindersBinderCustomFieldsTranslationsWithHttpInfo (BinderTypeCustomFieldUpdateRequest request); - /// - /// This call updates translation custom field for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// customFieldId - /// The update custom fields request object - /// - void BindersBinderCustomFieldsTranslations_0 (int? customFieldId, UpdateFieldTranslationRequest request); - - /// - /// This call updates translation custom field for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// customFieldId - /// The update custom fields request object - /// ApiResponse of Object(void) - ApiResponse BindersBinderCustomFieldsTranslations_0WithHttpInfo (int? customFieldId, UpdateFieldTranslationRequest request); - /// - /// This call returns if the connected user can insert a new binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// bool? - bool? BindersCanInsertNewBinderType (); - - /// - /// This call returns if the connected user can insert a new binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - ApiResponse BindersCanInsertNewBinderTypeWithHttpInfo (); - /// - /// This call creates delete a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the binder type to delete - /// - void BindersDeleteBinderType (int? binderTypeId); - - /// - /// This call creates delete a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the binder type to delete - /// ApiResponse of Object(void) - ApiResponse BindersDeleteBinderTypeWithHttpInfo (int? binderTypeId); - /// - /// This call deletes a binder by the identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the binder to delete - /// - void BindersDeleteById (int? binderId); - - /// - /// This call deletes a binder by the identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the binder to delete - /// ApiResponse of Object(void) - ApiResponse BindersDeleteByIdWithHttpInfo (int? binderId); - /// - /// This call returns the possible combo value of a binder combo custom field by field id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of a binder combo custom field - /// List<string> - List BindersGetBinderComboValues (int? comboFieldId); - - /// - /// This call returns the possible combo value of a binder combo custom field by field id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of a binder combo custom field - /// ApiResponse of List<string> - ApiResponse> BindersGetBinderComboValuesWithHttpInfo (int? comboFieldId); - /// - /// This call returns the custom fields by binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// List<FieldBaseDTO> - List BindersGetBinderCustomFields (int? binderType); - - /// - /// This call returns the custom fields by binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// ApiResponse of List<FieldBaseDTO> - ApiResponse> BindersGetBinderCustomFieldsWithHttpInfo (int? binderType); - /// - /// This call returns translation custom field for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the custm field - /// List<FieldTranslation> - List BindersGetBinderCustomFieldsTranslations (int? customFieldId); - - /// - /// This call returns translation custom field for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the custm field - /// ApiResponse of List<FieldTranslation> - ApiResponse> BindersGetBinderCustomFieldsTranslationsWithHttpInfo (int? customFieldId); - /// - /// This call returns the users permissions for a binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The binder identifier - /// PermissionsDTO - PermissionsDTO BindersGetBinderPermission (int? binderId); - - /// - /// This call returns the users permissions for a binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The binder identifier - /// ApiResponse of PermissionsDTO - ApiResponse BindersGetBinderPermissionWithHttpInfo (int? binderId); - /// - /// This call returns the possible states for binder visualization - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<BinderStateDto> - List BindersGetBinderStateForVisualization (); - - /// - /// This call returns the possible states for binder visualization - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<BinderStateDto> - ApiResponse> BindersGetBinderStateForVisualizationWithHttpInfo (); - /// - /// This call returns the possible states for a binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<BinderStateDto> - List BindersGetBinderStates (); - - /// - /// This call returns the possible states for a binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<BinderStateDto> - ApiResponse> BindersGetBinderStatesWithHttpInfo (); - /// - /// This call returns a binder type by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// BinderTypeDTO - BinderTypeDTO BindersGetBinderTypeById (int? binderTypeId); - - /// - /// This call returns a binder type by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// ApiResponse of BinderTypeDTO - ApiResponse BindersGetBinderTypeByIdWithHttpInfo (int? binderTypeId); - /// - /// This call returns the permission for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The binder type identifier - /// PermissionsDTO - PermissionsDTO BindersGetBinderTypePermission (int? binderTypeId); - - /// - /// This call returns the permission for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The binder type identifier - /// ApiResponse of PermissionsDTO - ApiResponse BindersGetBinderTypePermissionWithHttpInfo (int? binderTypeId); - /// - /// This call returns the binder custom fields by binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// List<FieldBaseDTO> - List BindersGetBindersFieldsByType (int? binderType); - - /// - /// This call returns the binder custom fields by binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// ApiResponse of List<FieldBaseDTO> - ApiResponse> BindersGetBindersFieldsByTypeWithHttpInfo (int? binderType); - /// - /// This method allows to find binders that contains docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// List<BinderDTO> - List BindersGetByDocnumber (int? docnumber); - - /// - /// This method allows to find binders that contains docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// ApiResponse of List<BinderDTO> - ApiResponse> BindersGetByDocnumberWithHttpInfo (int? docnumber); - /// - /// This call search a binder by the given identifiers - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// BinderDTO - BinderDTO BindersGetById (int? id); - - /// - /// This call search a binder by the given identifiers - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// ApiResponse of BinderDTO - ApiResponse BindersGetByIdWithHttpInfo (int? id); - /// - /// This call search a binder by the given identifiers - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// List<BinderDTO> - List BindersGetByIds (List ids); - - /// - /// This call search a binder by the given identifiers - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// ApiResponse of List<BinderDTO> - ApiResponse> BindersGetByIdsWithHttpInfo (List ids); - /// - /// This call search a binder by the given number - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The number filter - /// List<BinderDTO> - List BindersGetByNumero (string number); - - /// - /// This call search a binder by the given number - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The number filter - /// ApiResponse of List<BinderDTO> - ApiResponse> BindersGetByNumeroWithHttpInfo (string number); - /// - /// This call search a binder by the given number - /// - /// - /// This method is deprecated. Use api/Binders?number={number} - /// - /// Thrown when fails to make API call - /// The number filter - /// List<BinderDTO> - List BindersGetByNumeroOld (string numero); - - /// - /// This call search a binder by the given number - /// - /// - /// This method is deprecated. Use api/Binders?number={number} - /// - /// Thrown when fails to make API call - /// The number filter - /// ApiResponse of List<BinderDTO> - ApiResponse> BindersGetByNumeroOldWithHttpInfo (string numero); - /// - /// This call retrieve binders of the given type and state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Binders type filter - /// Binder state filter - /// List<BinderDTO> - List BindersGetByTypeAndState (int? type, int? state); - - /// - /// This call retrieve binders of the given type and state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Binders type filter - /// Binder state filter - /// ApiResponse of List<BinderDTO> - ApiResponse> BindersGetByTypeAndStateWithHttpInfo (int? type, int? state); - /// - /// This call returns the types of binders available - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<BinderTypeDTO> - List BindersGetTypesOfPratiche (); - - /// - /// This call returns the types of binders available - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<BinderTypeDTO> - ApiResponse> BindersGetTypesOfPraticheWithHttpInfo (); - /// - /// This call returns the default type and state for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// BinderUserDefaultTypeAndStateDto - BinderUserDefaultTypeAndStateDto BindersGetUserDefaultTypeAndStateSelection (); - - /// - /// This call returns the default type and state for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of BinderUserDefaultTypeAndStateDto - ApiResponse BindersGetUserDefaultTypeAndStateSelectionWithHttpInfo (); - /// - /// This call adds new binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// BinderDTO - BinderDTO BindersInsertNewBinder (BinderDTO binder = null); - - /// - /// This call adds new binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of BinderDTO - ApiResponse BindersInsertNewBinderWithHttpInfo (BinderDTO binder = null); - /// - /// This call creates new binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// BinderTypeDTO - BinderTypeDTO BindersInsertNewBinderType (BinderTypeDTO bindertype = null); - - /// - /// This call creates new binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of BinderTypeDTO - ApiResponse BindersInsertNewBinderTypeWithHttpInfo (BinderTypeDTO bindertype = null); - /// - /// This call removes specified profiles from a binder container - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for remove profiles into the binder - /// - void BindersRemoveProfilesFromBinder (BinderProfilesRemoveRequest profilesRemoveRequest); - - /// - /// This call removes specified profiles from a binder container - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for remove profiles into the binder - /// ApiResponse of Object(void) - ApiResponse BindersRemoveProfilesFromBinderWithHttpInfo (BinderProfilesRemoveRequest profilesRemoveRequest); - /// - /// This call updates permission for a binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder identifier - /// - void BindersSetBinderPermission (PermissionsDTO permissionDto, int? binderId); - - /// - /// This call updates permission for a binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder identifier - /// ApiResponse of Object(void) - ApiResponse BindersSetBinderPermissionWithHttpInfo (PermissionsDTO permissionDto, int? binderId); - /// - /// This call updates permission for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder type identifier - /// - void BindersSetBinderTypePermission (BinderPermissionsDTO permissionDto, int? binderTypeId); - - /// - /// This call updates permission for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder type identifier - /// ApiResponse of Object(void) - ApiResponse BindersSetBinderTypePermissionWithHttpInfo (BinderPermissionsDTO permissionDto, int? binderTypeId); - /// - /// This call saves the user binder type and state default - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The new default for the user - /// - void BindersSetUserDefaultTypeAndStateSelection (BinderUserDefaultTypeAndStateDto defaultoption); - - /// - /// This call saves the user binder type and state default - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The new default for the user - /// ApiResponse of Object(void) - ApiResponse BindersSetUserDefaultTypeAndStateSelectionWithHttpInfo (BinderUserDefaultTypeAndStateDto defaultoption); - /// - /// This call updates all binder values, also custom fields, by binder identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the binder - /// (optional) - /// BinderDTO - BinderDTO BindersUpdateBinderById (int? binderId, BinderDTO binder = null); - - /// - /// This call updates all binder values, also custom fields, by binder identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the binder - /// (optional) - /// ApiResponse of BinderDTO - ApiResponse BindersUpdateBinderByIdWithHttpInfo (int? binderId, BinderDTO binder = null); - /// - /// This call updates a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// BinderTypeDTO - BinderTypeDTO BindersUpdateBinderTypeById (BinderTypeDTO bindertype = null); - - /// - /// This call updates a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of BinderTypeDTO - ApiResponse BindersUpdateBinderTypeByIdWithHttpInfo (BinderTypeDTO bindertype = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call adds specified profiles to a binder container - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for insert profiles into the binder - /// Task of void - System.Threading.Tasks.Task BindersAddProfilesToBinderAsync (BinderProfilesInsertRequest profilesInsertRequest); - - /// - /// This call adds specified profiles to a binder container - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for insert profiles into the binder - /// Task of ApiResponse - System.Threading.Tasks.Task> BindersAddProfilesToBinderAsyncWithHttpInfo (BinderProfilesInsertRequest profilesInsertRequest); - /// - /// This call updates the possible values for a combo custom binder field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The update values request - /// Task of void - System.Threading.Tasks.Task BindersBinderComboValuesAsync (BinderComboValuesUpdateRequest request); - - /// - /// This call updates the possible values for a combo custom binder field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The update values request - /// Task of ApiResponse - System.Threading.Tasks.Task> BindersBinderComboValuesAsyncWithHttpInfo (BinderComboValuesUpdateRequest request); - /// - /// This call updates custom field for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The update custom fields request - /// Task of List<FieldBaseDTO> - System.Threading.Tasks.Task> BindersBinderCustomFieldsTranslationsAsync (BinderTypeCustomFieldUpdateRequest request); - - /// - /// This call updates custom field for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The update custom fields request - /// Task of ApiResponse (List<FieldBaseDTO>) - System.Threading.Tasks.Task>> BindersBinderCustomFieldsTranslationsAsyncWithHttpInfo (BinderTypeCustomFieldUpdateRequest request); - /// - /// This call updates translation custom field for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// customFieldId - /// The update custom fields request object - /// Task of void - System.Threading.Tasks.Task BindersBinderCustomFieldsTranslations_0Async (int? customFieldId, UpdateFieldTranslationRequest request); - - /// - /// This call updates translation custom field for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// customFieldId - /// The update custom fields request object - /// Task of ApiResponse - System.Threading.Tasks.Task> BindersBinderCustomFieldsTranslations_0AsyncWithHttpInfo (int? customFieldId, UpdateFieldTranslationRequest request); - /// - /// This call returns if the connected user can insert a new binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of bool? - System.Threading.Tasks.Task BindersCanInsertNewBinderTypeAsync (); - - /// - /// This call returns if the connected user can insert a new binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> BindersCanInsertNewBinderTypeAsyncWithHttpInfo (); - /// - /// This call creates delete a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the binder type to delete - /// Task of void - System.Threading.Tasks.Task BindersDeleteBinderTypeAsync (int? binderTypeId); - - /// - /// This call creates delete a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the binder type to delete - /// Task of ApiResponse - System.Threading.Tasks.Task> BindersDeleteBinderTypeAsyncWithHttpInfo (int? binderTypeId); - /// - /// This call deletes a binder by the identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the binder to delete - /// Task of void - System.Threading.Tasks.Task BindersDeleteByIdAsync (int? binderId); - - /// - /// This call deletes a binder by the identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the binder to delete - /// Task of ApiResponse - System.Threading.Tasks.Task> BindersDeleteByIdAsyncWithHttpInfo (int? binderId); - /// - /// This call returns the possible combo value of a binder combo custom field by field id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of a binder combo custom field - /// Task of List<string> - System.Threading.Tasks.Task> BindersGetBinderComboValuesAsync (int? comboFieldId); - - /// - /// This call returns the possible combo value of a binder combo custom field by field id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of a binder combo custom field - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> BindersGetBinderComboValuesAsyncWithHttpInfo (int? comboFieldId); - /// - /// This call returns the custom fields by binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// Task of List<FieldBaseDTO> - System.Threading.Tasks.Task> BindersGetBinderCustomFieldsAsync (int? binderType); - - /// - /// This call returns the custom fields by binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// Task of ApiResponse (List<FieldBaseDTO>) - System.Threading.Tasks.Task>> BindersGetBinderCustomFieldsAsyncWithHttpInfo (int? binderType); - /// - /// This call returns translation custom field for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the custm field - /// Task of List<FieldTranslation> - System.Threading.Tasks.Task> BindersGetBinderCustomFieldsTranslationsAsync (int? customFieldId); - - /// - /// This call returns translation custom field for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the custm field - /// Task of ApiResponse (List<FieldTranslation>) - System.Threading.Tasks.Task>> BindersGetBinderCustomFieldsTranslationsAsyncWithHttpInfo (int? customFieldId); - /// - /// This call returns the users permissions for a binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The binder identifier - /// Task of PermissionsDTO - System.Threading.Tasks.Task BindersGetBinderPermissionAsync (int? binderId); - - /// - /// This call returns the users permissions for a binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The binder identifier - /// Task of ApiResponse (PermissionsDTO) - System.Threading.Tasks.Task> BindersGetBinderPermissionAsyncWithHttpInfo (int? binderId); - /// - /// This call returns the possible states for binder visualization - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<BinderStateDto> - System.Threading.Tasks.Task> BindersGetBinderStateForVisualizationAsync (); - - /// - /// This call returns the possible states for binder visualization - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<BinderStateDto>) - System.Threading.Tasks.Task>> BindersGetBinderStateForVisualizationAsyncWithHttpInfo (); - /// - /// This call returns the possible states for a binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<BinderStateDto> - System.Threading.Tasks.Task> BindersGetBinderStatesAsync (); - - /// - /// This call returns the possible states for a binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<BinderStateDto>) - System.Threading.Tasks.Task>> BindersGetBinderStatesAsyncWithHttpInfo (); - /// - /// This call returns a binder type by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// Task of BinderTypeDTO - System.Threading.Tasks.Task BindersGetBinderTypeByIdAsync (int? binderTypeId); - - /// - /// This call returns a binder type by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// Task of ApiResponse (BinderTypeDTO) - System.Threading.Tasks.Task> BindersGetBinderTypeByIdAsyncWithHttpInfo (int? binderTypeId); - /// - /// This call returns the permission for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The binder type identifier - /// Task of PermissionsDTO - System.Threading.Tasks.Task BindersGetBinderTypePermissionAsync (int? binderTypeId); - - /// - /// This call returns the permission for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The binder type identifier - /// Task of ApiResponse (PermissionsDTO) - System.Threading.Tasks.Task> BindersGetBinderTypePermissionAsyncWithHttpInfo (int? binderTypeId); - /// - /// This call returns the binder custom fields by binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// Task of List<FieldBaseDTO> - System.Threading.Tasks.Task> BindersGetBindersFieldsByTypeAsync (int? binderType); - - /// - /// This call returns the binder custom fields by binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// Task of ApiResponse (List<FieldBaseDTO>) - System.Threading.Tasks.Task>> BindersGetBindersFieldsByTypeAsyncWithHttpInfo (int? binderType); - /// - /// This method allows to find binders that contains docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// Task of List<BinderDTO> - System.Threading.Tasks.Task> BindersGetByDocnumberAsync (int? docnumber); - - /// - /// This method allows to find binders that contains docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// Task of ApiResponse (List<BinderDTO>) - System.Threading.Tasks.Task>> BindersGetByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call search a binder by the given identifiers - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// Task of BinderDTO - System.Threading.Tasks.Task BindersGetByIdAsync (int? id); - - /// - /// This call search a binder by the given identifiers - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// Task of ApiResponse (BinderDTO) - System.Threading.Tasks.Task> BindersGetByIdAsyncWithHttpInfo (int? id); - /// - /// This call search a binder by the given identifiers - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// Task of List<BinderDTO> - System.Threading.Tasks.Task> BindersGetByIdsAsync (List ids); - - /// - /// This call search a binder by the given identifiers - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// Task of ApiResponse (List<BinderDTO>) - System.Threading.Tasks.Task>> BindersGetByIdsAsyncWithHttpInfo (List ids); - /// - /// This call search a binder by the given number - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The number filter - /// Task of List<BinderDTO> - System.Threading.Tasks.Task> BindersGetByNumeroAsync (string number); - - /// - /// This call search a binder by the given number - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The number filter - /// Task of ApiResponse (List<BinderDTO>) - System.Threading.Tasks.Task>> BindersGetByNumeroAsyncWithHttpInfo (string number); - /// - /// This call search a binder by the given number - /// - /// - /// This method is deprecated. Use api/Binders?number={number} - /// - /// Thrown when fails to make API call - /// The number filter - /// Task of List<BinderDTO> - System.Threading.Tasks.Task> BindersGetByNumeroOldAsync (string numero); - - /// - /// This call search a binder by the given number - /// - /// - /// This method is deprecated. Use api/Binders?number={number} - /// - /// Thrown when fails to make API call - /// The number filter - /// Task of ApiResponse (List<BinderDTO>) - System.Threading.Tasks.Task>> BindersGetByNumeroOldAsyncWithHttpInfo (string numero); - /// - /// This call retrieve binders of the given type and state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Binders type filter - /// Binder state filter - /// Task of List<BinderDTO> - System.Threading.Tasks.Task> BindersGetByTypeAndStateAsync (int? type, int? state); - - /// - /// This call retrieve binders of the given type and state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Binders type filter - /// Binder state filter - /// Task of ApiResponse (List<BinderDTO>) - System.Threading.Tasks.Task>> BindersGetByTypeAndStateAsyncWithHttpInfo (int? type, int? state); - /// - /// This call returns the types of binders available - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<BinderTypeDTO> - System.Threading.Tasks.Task> BindersGetTypesOfPraticheAsync (); - - /// - /// This call returns the types of binders available - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<BinderTypeDTO>) - System.Threading.Tasks.Task>> BindersGetTypesOfPraticheAsyncWithHttpInfo (); - /// - /// This call returns the default type and state for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of BinderUserDefaultTypeAndStateDto - System.Threading.Tasks.Task BindersGetUserDefaultTypeAndStateSelectionAsync (); - - /// - /// This call returns the default type and state for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (BinderUserDefaultTypeAndStateDto) - System.Threading.Tasks.Task> BindersGetUserDefaultTypeAndStateSelectionAsyncWithHttpInfo (); - /// - /// This call adds new binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of BinderDTO - System.Threading.Tasks.Task BindersInsertNewBinderAsync (BinderDTO binder = null); - - /// - /// This call adds new binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (BinderDTO) - System.Threading.Tasks.Task> BindersInsertNewBinderAsyncWithHttpInfo (BinderDTO binder = null); - /// - /// This call creates new binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of BinderTypeDTO - System.Threading.Tasks.Task BindersInsertNewBinderTypeAsync (BinderTypeDTO bindertype = null); - - /// - /// This call creates new binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (BinderTypeDTO) - System.Threading.Tasks.Task> BindersInsertNewBinderTypeAsyncWithHttpInfo (BinderTypeDTO bindertype = null); - /// - /// This call removes specified profiles from a binder container - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for remove profiles into the binder - /// Task of void - System.Threading.Tasks.Task BindersRemoveProfilesFromBinderAsync (BinderProfilesRemoveRequest profilesRemoveRequest); - - /// - /// This call removes specified profiles from a binder container - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for remove profiles into the binder - /// Task of ApiResponse - System.Threading.Tasks.Task> BindersRemoveProfilesFromBinderAsyncWithHttpInfo (BinderProfilesRemoveRequest profilesRemoveRequest); - /// - /// This call updates permission for a binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder identifier - /// Task of void - System.Threading.Tasks.Task BindersSetBinderPermissionAsync (PermissionsDTO permissionDto, int? binderId); - - /// - /// This call updates permission for a binder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> BindersSetBinderPermissionAsyncWithHttpInfo (PermissionsDTO permissionDto, int? binderId); - /// - /// This call updates permission for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder type identifier - /// Task of void - System.Threading.Tasks.Task BindersSetBinderTypePermissionAsync (BinderPermissionsDTO permissionDto, int? binderTypeId); - - /// - /// This call updates permission for a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder type identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> BindersSetBinderTypePermissionAsyncWithHttpInfo (BinderPermissionsDTO permissionDto, int? binderTypeId); - /// - /// This call saves the user binder type and state default - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The new default for the user - /// Task of void - System.Threading.Tasks.Task BindersSetUserDefaultTypeAndStateSelectionAsync (BinderUserDefaultTypeAndStateDto defaultoption); - - /// - /// This call saves the user binder type and state default - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The new default for the user - /// Task of ApiResponse - System.Threading.Tasks.Task> BindersSetUserDefaultTypeAndStateSelectionAsyncWithHttpInfo (BinderUserDefaultTypeAndStateDto defaultoption); - /// - /// This call updates all binder values, also custom fields, by binder identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the binder - /// (optional) - /// Task of BinderDTO - System.Threading.Tasks.Task BindersUpdateBinderByIdAsync (int? binderId, BinderDTO binder = null); - - /// - /// This call updates all binder values, also custom fields, by binder identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the binder - /// (optional) - /// Task of ApiResponse (BinderDTO) - System.Threading.Tasks.Task> BindersUpdateBinderByIdAsyncWithHttpInfo (int? binderId, BinderDTO binder = null); - /// - /// This call updates a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of BinderTypeDTO - System.Threading.Tasks.Task BindersUpdateBinderTypeByIdAsync (BinderTypeDTO bindertype = null); - - /// - /// This call updates a binder type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (BinderTypeDTO) - System.Threading.Tasks.Task> BindersUpdateBinderTypeByIdAsyncWithHttpInfo (BinderTypeDTO bindertype = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class BindersApi : IBindersApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public BindersApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public BindersApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call adds specified profiles to a binder container - /// - /// Thrown when fails to make API call - /// Request for insert profiles into the binder - /// - public void BindersAddProfilesToBinder (BinderProfilesInsertRequest profilesInsertRequest) - { - BindersAddProfilesToBinderWithHttpInfo(profilesInsertRequest); - } - - /// - /// This call adds specified profiles to a binder container - /// - /// Thrown when fails to make API call - /// Request for insert profiles into the binder - /// ApiResponse of Object(void) - public ApiResponse BindersAddProfilesToBinderWithHttpInfo (BinderProfilesInsertRequest profilesInsertRequest) - { - // verify the required parameter 'profilesInsertRequest' is set - if (profilesInsertRequest == null) - throw new ApiException(400, "Missing required parameter 'profilesInsertRequest' when calling BindersApi->BindersAddProfilesToBinder"); - - var localVarPath = "/api/Binders/addprofiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (profilesInsertRequest != null && profilesInsertRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profilesInsertRequest); // http body (model) parameter - } - else - { - localVarPostBody = profilesInsertRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersAddProfilesToBinder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds specified profiles to a binder container - /// - /// Thrown when fails to make API call - /// Request for insert profiles into the binder - /// Task of void - public async System.Threading.Tasks.Task BindersAddProfilesToBinderAsync (BinderProfilesInsertRequest profilesInsertRequest) - { - await BindersAddProfilesToBinderAsyncWithHttpInfo(profilesInsertRequest); - - } - - /// - /// This call adds specified profiles to a binder container - /// - /// Thrown when fails to make API call - /// Request for insert profiles into the binder - /// Task of ApiResponse - public async System.Threading.Tasks.Task> BindersAddProfilesToBinderAsyncWithHttpInfo (BinderProfilesInsertRequest profilesInsertRequest) - { - // verify the required parameter 'profilesInsertRequest' is set - if (profilesInsertRequest == null) - throw new ApiException(400, "Missing required parameter 'profilesInsertRequest' when calling BindersApi->BindersAddProfilesToBinder"); - - var localVarPath = "/api/Binders/addprofiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (profilesInsertRequest != null && profilesInsertRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profilesInsertRequest); // http body (model) parameter - } - else - { - localVarPostBody = profilesInsertRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersAddProfilesToBinder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates the possible values for a combo custom binder field - /// - /// Thrown when fails to make API call - /// The update values request - /// - public void BindersBinderComboValues (BinderComboValuesUpdateRequest request) - { - BindersBinderComboValuesWithHttpInfo(request); - } - - /// - /// This call updates the possible values for a combo custom binder field - /// - /// Thrown when fails to make API call - /// The update values request - /// ApiResponse of Object(void) - public ApiResponse BindersBinderComboValuesWithHttpInfo (BinderComboValuesUpdateRequest request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling BindersApi->BindersBinderComboValues"); - - var localVarPath = "/api/Binders/combofieldvalues"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersBinderComboValues", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates the possible values for a combo custom binder field - /// - /// Thrown when fails to make API call - /// The update values request - /// Task of void - public async System.Threading.Tasks.Task BindersBinderComboValuesAsync (BinderComboValuesUpdateRequest request) - { - await BindersBinderComboValuesAsyncWithHttpInfo(request); - - } - - /// - /// This call updates the possible values for a combo custom binder field - /// - /// Thrown when fails to make API call - /// The update values request - /// Task of ApiResponse - public async System.Threading.Tasks.Task> BindersBinderComboValuesAsyncWithHttpInfo (BinderComboValuesUpdateRequest request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling BindersApi->BindersBinderComboValues"); - - var localVarPath = "/api/Binders/combofieldvalues"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersBinderComboValues", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates custom field for a binder type - /// - /// Thrown when fails to make API call - /// The update custom fields request - /// List<FieldBaseDTO> - public List BindersBinderCustomFieldsTranslations (BinderTypeCustomFieldUpdateRequest request) - { - ApiResponse> localVarResponse = BindersBinderCustomFieldsTranslationsWithHttpInfo(request); - return localVarResponse.Data; - } - - /// - /// This call updates custom field for a binder type - /// - /// Thrown when fails to make API call - /// The update custom fields request - /// ApiResponse of List<FieldBaseDTO> - public ApiResponse< List > BindersBinderCustomFieldsTranslationsWithHttpInfo (BinderTypeCustomFieldUpdateRequest request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling BindersApi->BindersBinderCustomFieldsTranslations"); - - var localVarPath = "/api/Binders/customfieldsbytype"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersBinderCustomFieldsTranslations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call updates custom field for a binder type - /// - /// Thrown when fails to make API call - /// The update custom fields request - /// Task of List<FieldBaseDTO> - public async System.Threading.Tasks.Task> BindersBinderCustomFieldsTranslationsAsync (BinderTypeCustomFieldUpdateRequest request) - { - ApiResponse> localVarResponse = await BindersBinderCustomFieldsTranslationsAsyncWithHttpInfo(request); - return localVarResponse.Data; - - } - - /// - /// This call updates custom field for a binder type - /// - /// Thrown when fails to make API call - /// The update custom fields request - /// Task of ApiResponse (List<FieldBaseDTO>) - public async System.Threading.Tasks.Task>> BindersBinderCustomFieldsTranslationsAsyncWithHttpInfo (BinderTypeCustomFieldUpdateRequest request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling BindersApi->BindersBinderCustomFieldsTranslations"); - - var localVarPath = "/api/Binders/customfieldsbytype"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersBinderCustomFieldsTranslations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call updates translation custom field for a binder type - /// - /// Thrown when fails to make API call - /// customFieldId - /// The update custom fields request object - /// - public void BindersBinderCustomFieldsTranslations_0 (int? customFieldId, UpdateFieldTranslationRequest request) - { - BindersBinderCustomFieldsTranslations_0WithHttpInfo(customFieldId, request); - } - - /// - /// This call updates translation custom field for a binder type - /// - /// Thrown when fails to make API call - /// customFieldId - /// The update custom fields request object - /// ApiResponse of Object(void) - public ApiResponse BindersBinderCustomFieldsTranslations_0WithHttpInfo (int? customFieldId, UpdateFieldTranslationRequest request) - { - // verify the required parameter 'customFieldId' is set - if (customFieldId == null) - throw new ApiException(400, "Missing required parameter 'customFieldId' when calling BindersApi->BindersBinderCustomFieldsTranslations_0"); - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling BindersApi->BindersBinderCustomFieldsTranslations_0"); - - var localVarPath = "/api/Binders/customFieldsTranslations/{customFieldId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (customFieldId != null) localVarPathParams.Add("customFieldId", this.Configuration.ApiClient.ParameterToString(customFieldId)); // path parameter - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersBinderCustomFieldsTranslations_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates translation custom field for a binder type - /// - /// Thrown when fails to make API call - /// customFieldId - /// The update custom fields request object - /// Task of void - public async System.Threading.Tasks.Task BindersBinderCustomFieldsTranslations_0Async (int? customFieldId, UpdateFieldTranslationRequest request) - { - await BindersBinderCustomFieldsTranslations_0AsyncWithHttpInfo(customFieldId, request); - - } - - /// - /// This call updates translation custom field for a binder type - /// - /// Thrown when fails to make API call - /// customFieldId - /// The update custom fields request object - /// Task of ApiResponse - public async System.Threading.Tasks.Task> BindersBinderCustomFieldsTranslations_0AsyncWithHttpInfo (int? customFieldId, UpdateFieldTranslationRequest request) - { - // verify the required parameter 'customFieldId' is set - if (customFieldId == null) - throw new ApiException(400, "Missing required parameter 'customFieldId' when calling BindersApi->BindersBinderCustomFieldsTranslations_0"); - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling BindersApi->BindersBinderCustomFieldsTranslations_0"); - - var localVarPath = "/api/Binders/customFieldsTranslations/{customFieldId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (customFieldId != null) localVarPathParams.Add("customFieldId", this.Configuration.ApiClient.ParameterToString(customFieldId)); // path parameter - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersBinderCustomFieldsTranslations_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns if the connected user can insert a new binder type - /// - /// Thrown when fails to make API call - /// bool? - public bool? BindersCanInsertNewBinderType () - { - ApiResponse localVarResponse = BindersCanInsertNewBinderTypeWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns if the connected user can insert a new binder type - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - public ApiResponse< bool? > BindersCanInsertNewBinderTypeWithHttpInfo () - { - - var localVarPath = "/api/Binders/CanInsertNewType"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersCanInsertNewBinderType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns if the connected user can insert a new binder type - /// - /// Thrown when fails to make API call - /// Task of bool? - public async System.Threading.Tasks.Task BindersCanInsertNewBinderTypeAsync () - { - ApiResponse localVarResponse = await BindersCanInsertNewBinderTypeAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns if the connected user can insert a new binder type - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> BindersCanInsertNewBinderTypeAsyncWithHttpInfo () - { - - var localVarPath = "/api/Binders/CanInsertNewType"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersCanInsertNewBinderType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call creates delete a binder type - /// - /// Thrown when fails to make API call - /// Identifier of the binder type to delete - /// - public void BindersDeleteBinderType (int? binderTypeId) - { - BindersDeleteBinderTypeWithHttpInfo(binderTypeId); - } - - /// - /// This call creates delete a binder type - /// - /// Thrown when fails to make API call - /// Identifier of the binder type to delete - /// ApiResponse of Object(void) - public ApiResponse BindersDeleteBinderTypeWithHttpInfo (int? binderTypeId) - { - // verify the required parameter 'binderTypeId' is set - if (binderTypeId == null) - throw new ApiException(400, "Missing required parameter 'binderTypeId' when calling BindersApi->BindersDeleteBinderType"); - - var localVarPath = "/api/Binders/type/{binderTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderTypeId != null) localVarPathParams.Add("binderTypeId", this.Configuration.ApiClient.ParameterToString(binderTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersDeleteBinderType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call creates delete a binder type - /// - /// Thrown when fails to make API call - /// Identifier of the binder type to delete - /// Task of void - public async System.Threading.Tasks.Task BindersDeleteBinderTypeAsync (int? binderTypeId) - { - await BindersDeleteBinderTypeAsyncWithHttpInfo(binderTypeId); - - } - - /// - /// This call creates delete a binder type - /// - /// Thrown when fails to make API call - /// Identifier of the binder type to delete - /// Task of ApiResponse - public async System.Threading.Tasks.Task> BindersDeleteBinderTypeAsyncWithHttpInfo (int? binderTypeId) - { - // verify the required parameter 'binderTypeId' is set - if (binderTypeId == null) - throw new ApiException(400, "Missing required parameter 'binderTypeId' when calling BindersApi->BindersDeleteBinderType"); - - var localVarPath = "/api/Binders/type/{binderTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderTypeId != null) localVarPathParams.Add("binderTypeId", this.Configuration.ApiClient.ParameterToString(binderTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersDeleteBinderType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a binder by the identifier - /// - /// Thrown when fails to make API call - /// Identifier of the binder to delete - /// - public void BindersDeleteById (int? binderId) - { - BindersDeleteByIdWithHttpInfo(binderId); - } - - /// - /// This call deletes a binder by the identifier - /// - /// Thrown when fails to make API call - /// Identifier of the binder to delete - /// ApiResponse of Object(void) - public ApiResponse BindersDeleteByIdWithHttpInfo (int? binderId) - { - // verify the required parameter 'binderId' is set - if (binderId == null) - throw new ApiException(400, "Missing required parameter 'binderId' when calling BindersApi->BindersDeleteById"); - - var localVarPath = "/api/Binders/{binderId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderId != null) localVarPathParams.Add("binderId", this.Configuration.ApiClient.ParameterToString(binderId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersDeleteById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a binder by the identifier - /// - /// Thrown when fails to make API call - /// Identifier of the binder to delete - /// Task of void - public async System.Threading.Tasks.Task BindersDeleteByIdAsync (int? binderId) - { - await BindersDeleteByIdAsyncWithHttpInfo(binderId); - - } - - /// - /// This call deletes a binder by the identifier - /// - /// Thrown when fails to make API call - /// Identifier of the binder to delete - /// Task of ApiResponse - public async System.Threading.Tasks.Task> BindersDeleteByIdAsyncWithHttpInfo (int? binderId) - { - // verify the required parameter 'binderId' is set - if (binderId == null) - throw new ApiException(400, "Missing required parameter 'binderId' when calling BindersApi->BindersDeleteById"); - - var localVarPath = "/api/Binders/{binderId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderId != null) localVarPathParams.Add("binderId", this.Configuration.ApiClient.ParameterToString(binderId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersDeleteById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the possible combo value of a binder combo custom field by field id - /// - /// Thrown when fails to make API call - /// The identifier of a binder combo custom field - /// List<string> - public List BindersGetBinderComboValues (int? comboFieldId) - { - ApiResponse> localVarResponse = BindersGetBinderComboValuesWithHttpInfo(comboFieldId); - return localVarResponse.Data; - } - - /// - /// This call returns the possible combo value of a binder combo custom field by field id - /// - /// Thrown when fails to make API call - /// The identifier of a binder combo custom field - /// ApiResponse of List<string> - public ApiResponse< List > BindersGetBinderComboValuesWithHttpInfo (int? comboFieldId) - { - // verify the required parameter 'comboFieldId' is set - if (comboFieldId == null) - throw new ApiException(400, "Missing required parameter 'comboFieldId' when calling BindersApi->BindersGetBinderComboValues"); - - var localVarPath = "/api/Binders/combofieldvalues/{comboFieldId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (comboFieldId != null) localVarPathParams.Add("comboFieldId", this.Configuration.ApiClient.ParameterToString(comboFieldId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderComboValues", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the possible combo value of a binder combo custom field by field id - /// - /// Thrown when fails to make API call - /// The identifier of a binder combo custom field - /// Task of List<string> - public async System.Threading.Tasks.Task> BindersGetBinderComboValuesAsync (int? comboFieldId) - { - ApiResponse> localVarResponse = await BindersGetBinderComboValuesAsyncWithHttpInfo(comboFieldId); - return localVarResponse.Data; - - } - - /// - /// This call returns the possible combo value of a binder combo custom field by field id - /// - /// Thrown when fails to make API call - /// The identifier of a binder combo custom field - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> BindersGetBinderComboValuesAsyncWithHttpInfo (int? comboFieldId) - { - // verify the required parameter 'comboFieldId' is set - if (comboFieldId == null) - throw new ApiException(400, "Missing required parameter 'comboFieldId' when calling BindersApi->BindersGetBinderComboValues"); - - var localVarPath = "/api/Binders/combofieldvalues/{comboFieldId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (comboFieldId != null) localVarPathParams.Add("comboFieldId", this.Configuration.ApiClient.ParameterToString(comboFieldId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderComboValues", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the custom fields by binder type - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// List<FieldBaseDTO> - public List BindersGetBinderCustomFields (int? binderType) - { - ApiResponse> localVarResponse = BindersGetBinderCustomFieldsWithHttpInfo(binderType); - return localVarResponse.Data; - } - - /// - /// This call returns the custom fields by binder type - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// ApiResponse of List<FieldBaseDTO> - public ApiResponse< List > BindersGetBinderCustomFieldsWithHttpInfo (int? binderType) - { - // verify the required parameter 'binderType' is set - if (binderType == null) - throw new ApiException(400, "Missing required parameter 'binderType' when calling BindersApi->BindersGetBinderCustomFields"); - - var localVarPath = "/api/Binders/customfieldsbytype/{binderType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderType != null) localVarPathParams.Add("binderType", this.Configuration.ApiClient.ParameterToString(binderType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderCustomFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the custom fields by binder type - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// Task of List<FieldBaseDTO> - public async System.Threading.Tasks.Task> BindersGetBinderCustomFieldsAsync (int? binderType) - { - ApiResponse> localVarResponse = await BindersGetBinderCustomFieldsAsyncWithHttpInfo(binderType); - return localVarResponse.Data; - - } - - /// - /// This call returns the custom fields by binder type - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// Task of ApiResponse (List<FieldBaseDTO>) - public async System.Threading.Tasks.Task>> BindersGetBinderCustomFieldsAsyncWithHttpInfo (int? binderType) - { - // verify the required parameter 'binderType' is set - if (binderType == null) - throw new ApiException(400, "Missing required parameter 'binderType' when calling BindersApi->BindersGetBinderCustomFields"); - - var localVarPath = "/api/Binders/customfieldsbytype/{binderType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderType != null) localVarPathParams.Add("binderType", this.Configuration.ApiClient.ParameterToString(binderType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderCustomFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns translation custom field for a binder type - /// - /// Thrown when fails to make API call - /// Identifier of the custm field - /// List<FieldTranslation> - public List BindersGetBinderCustomFieldsTranslations (int? customFieldId) - { - ApiResponse> localVarResponse = BindersGetBinderCustomFieldsTranslationsWithHttpInfo(customFieldId); - return localVarResponse.Data; - } - - /// - /// This call returns translation custom field for a binder type - /// - /// Thrown when fails to make API call - /// Identifier of the custm field - /// ApiResponse of List<FieldTranslation> - public ApiResponse< List > BindersGetBinderCustomFieldsTranslationsWithHttpInfo (int? customFieldId) - { - // verify the required parameter 'customFieldId' is set - if (customFieldId == null) - throw new ApiException(400, "Missing required parameter 'customFieldId' when calling BindersApi->BindersGetBinderCustomFieldsTranslations"); - - var localVarPath = "/api/Binders/customFieldsTranslations/{customFieldId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (customFieldId != null) localVarPathParams.Add("customFieldId", this.Configuration.ApiClient.ParameterToString(customFieldId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderCustomFieldsTranslations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns translation custom field for a binder type - /// - /// Thrown when fails to make API call - /// Identifier of the custm field - /// Task of List<FieldTranslation> - public async System.Threading.Tasks.Task> BindersGetBinderCustomFieldsTranslationsAsync (int? customFieldId) - { - ApiResponse> localVarResponse = await BindersGetBinderCustomFieldsTranslationsAsyncWithHttpInfo(customFieldId); - return localVarResponse.Data; - - } - - /// - /// This call returns translation custom field for a binder type - /// - /// Thrown when fails to make API call - /// Identifier of the custm field - /// Task of ApiResponse (List<FieldTranslation>) - public async System.Threading.Tasks.Task>> BindersGetBinderCustomFieldsTranslationsAsyncWithHttpInfo (int? customFieldId) - { - // verify the required parameter 'customFieldId' is set - if (customFieldId == null) - throw new ApiException(400, "Missing required parameter 'customFieldId' when calling BindersApi->BindersGetBinderCustomFieldsTranslations"); - - var localVarPath = "/api/Binders/customFieldsTranslations/{customFieldId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (customFieldId != null) localVarPathParams.Add("customFieldId", this.Configuration.ApiClient.ParameterToString(customFieldId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderCustomFieldsTranslations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the users permissions for a binder - /// - /// Thrown when fails to make API call - /// The binder identifier - /// PermissionsDTO - public PermissionsDTO BindersGetBinderPermission (int? binderId) - { - ApiResponse localVarResponse = BindersGetBinderPermissionWithHttpInfo(binderId); - return localVarResponse.Data; - } - - /// - /// This call returns the users permissions for a binder - /// - /// Thrown when fails to make API call - /// The binder identifier - /// ApiResponse of PermissionsDTO - public ApiResponse< PermissionsDTO > BindersGetBinderPermissionWithHttpInfo (int? binderId) - { - // verify the required parameter 'binderId' is set - if (binderId == null) - throw new ApiException(400, "Missing required parameter 'binderId' when calling BindersApi->BindersGetBinderPermission"); - - var localVarPath = "/api/Binders/binderpermission/{binderId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderId != null) localVarPathParams.Add("binderId", this.Configuration.ApiClient.ParameterToString(binderId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call returns the users permissions for a binder - /// - /// Thrown when fails to make API call - /// The binder identifier - /// Task of PermissionsDTO - public async System.Threading.Tasks.Task BindersGetBinderPermissionAsync (int? binderId) - { - ApiResponse localVarResponse = await BindersGetBinderPermissionAsyncWithHttpInfo(binderId); - return localVarResponse.Data; - - } - - /// - /// This call returns the users permissions for a binder - /// - /// Thrown when fails to make API call - /// The binder identifier - /// Task of ApiResponse (PermissionsDTO) - public async System.Threading.Tasks.Task> BindersGetBinderPermissionAsyncWithHttpInfo (int? binderId) - { - // verify the required parameter 'binderId' is set - if (binderId == null) - throw new ApiException(400, "Missing required parameter 'binderId' when calling BindersApi->BindersGetBinderPermission"); - - var localVarPath = "/api/Binders/binderpermission/{binderId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderId != null) localVarPathParams.Add("binderId", this.Configuration.ApiClient.ParameterToString(binderId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call returns the possible states for binder visualization - /// - /// Thrown when fails to make API call - /// List<BinderStateDto> - public List BindersGetBinderStateForVisualization () - { - ApiResponse> localVarResponse = BindersGetBinderStateForVisualizationWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the possible states for binder visualization - /// - /// Thrown when fails to make API call - /// ApiResponse of List<BinderStateDto> - public ApiResponse< List > BindersGetBinderStateForVisualizationWithHttpInfo () - { - - var localVarPath = "/api/Binders/visualizationstates"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderStateForVisualization", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the possible states for binder visualization - /// - /// Thrown when fails to make API call - /// Task of List<BinderStateDto> - public async System.Threading.Tasks.Task> BindersGetBinderStateForVisualizationAsync () - { - ApiResponse> localVarResponse = await BindersGetBinderStateForVisualizationAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the possible states for binder visualization - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<BinderStateDto>) - public async System.Threading.Tasks.Task>> BindersGetBinderStateForVisualizationAsyncWithHttpInfo () - { - - var localVarPath = "/api/Binders/visualizationstates"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderStateForVisualization", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the possible states for a binder - /// - /// Thrown when fails to make API call - /// List<BinderStateDto> - public List BindersGetBinderStates () - { - ApiResponse> localVarResponse = BindersGetBinderStatesWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the possible states for a binder - /// - /// Thrown when fails to make API call - /// ApiResponse of List<BinderStateDto> - public ApiResponse< List > BindersGetBinderStatesWithHttpInfo () - { - - var localVarPath = "/api/Binders/states"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderStates", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the possible states for a binder - /// - /// Thrown when fails to make API call - /// Task of List<BinderStateDto> - public async System.Threading.Tasks.Task> BindersGetBinderStatesAsync () - { - ApiResponse> localVarResponse = await BindersGetBinderStatesAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the possible states for a binder - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<BinderStateDto>) - public async System.Threading.Tasks.Task>> BindersGetBinderStatesAsyncWithHttpInfo () - { - - var localVarPath = "/api/Binders/states"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderStates", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a binder type by its identifier - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// BinderTypeDTO - public BinderTypeDTO BindersGetBinderTypeById (int? binderTypeId) - { - ApiResponse localVarResponse = BindersGetBinderTypeByIdWithHttpInfo(binderTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns a binder type by its identifier - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// ApiResponse of BinderTypeDTO - public ApiResponse< BinderTypeDTO > BindersGetBinderTypeByIdWithHttpInfo (int? binderTypeId) - { - // verify the required parameter 'binderTypeId' is set - if (binderTypeId == null) - throw new ApiException(400, "Missing required parameter 'binderTypeId' when calling BindersApi->BindersGetBinderTypeById"); - - var localVarPath = "/api/Binders/type/{binderTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderTypeId != null) localVarPathParams.Add("binderTypeId", this.Configuration.ApiClient.ParameterToString(binderTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderTypeById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BinderTypeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BinderTypeDTO))); - } - - /// - /// This call returns a binder type by its identifier - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// Task of BinderTypeDTO - public async System.Threading.Tasks.Task BindersGetBinderTypeByIdAsync (int? binderTypeId) - { - ApiResponse localVarResponse = await BindersGetBinderTypeByIdAsyncWithHttpInfo(binderTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns a binder type by its identifier - /// - /// Thrown when fails to make API call - /// The identifier of the binder type - /// Task of ApiResponse (BinderTypeDTO) - public async System.Threading.Tasks.Task> BindersGetBinderTypeByIdAsyncWithHttpInfo (int? binderTypeId) - { - // verify the required parameter 'binderTypeId' is set - if (binderTypeId == null) - throw new ApiException(400, "Missing required parameter 'binderTypeId' when calling BindersApi->BindersGetBinderTypeById"); - - var localVarPath = "/api/Binders/type/{binderTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderTypeId != null) localVarPathParams.Add("binderTypeId", this.Configuration.ApiClient.ParameterToString(binderTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderTypeById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BinderTypeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BinderTypeDTO))); - } - - /// - /// This call returns the permission for a binder type - /// - /// Thrown when fails to make API call - /// The binder type identifier - /// PermissionsDTO - public PermissionsDTO BindersGetBinderTypePermission (int? binderTypeId) - { - ApiResponse localVarResponse = BindersGetBinderTypePermissionWithHttpInfo(binderTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns the permission for a binder type - /// - /// Thrown when fails to make API call - /// The binder type identifier - /// ApiResponse of PermissionsDTO - public ApiResponse< PermissionsDTO > BindersGetBinderTypePermissionWithHttpInfo (int? binderTypeId) - { - // verify the required parameter 'binderTypeId' is set - if (binderTypeId == null) - throw new ApiException(400, "Missing required parameter 'binderTypeId' when calling BindersApi->BindersGetBinderTypePermission"); - - var localVarPath = "/api/Binders/bindertypepermission/{binderTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderTypeId != null) localVarPathParams.Add("binderTypeId", this.Configuration.ApiClient.ParameterToString(binderTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderTypePermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call returns the permission for a binder type - /// - /// Thrown when fails to make API call - /// The binder type identifier - /// Task of PermissionsDTO - public async System.Threading.Tasks.Task BindersGetBinderTypePermissionAsync (int? binderTypeId) - { - ApiResponse localVarResponse = await BindersGetBinderTypePermissionAsyncWithHttpInfo(binderTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns the permission for a binder type - /// - /// Thrown when fails to make API call - /// The binder type identifier - /// Task of ApiResponse (PermissionsDTO) - public async System.Threading.Tasks.Task> BindersGetBinderTypePermissionAsyncWithHttpInfo (int? binderTypeId) - { - // verify the required parameter 'binderTypeId' is set - if (binderTypeId == null) - throw new ApiException(400, "Missing required parameter 'binderTypeId' when calling BindersApi->BindersGetBinderTypePermission"); - - var localVarPath = "/api/Binders/bindertypepermission/{binderTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderTypeId != null) localVarPathParams.Add("binderTypeId", this.Configuration.ApiClient.ParameterToString(binderTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBinderTypePermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call returns the binder custom fields by binder type - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// List<FieldBaseDTO> - public List BindersGetBindersFieldsByType (int? binderType) - { - ApiResponse> localVarResponse = BindersGetBindersFieldsByTypeWithHttpInfo(binderType); - return localVarResponse.Data; - } - - /// - /// This call returns the binder custom fields by binder type - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// ApiResponse of List<FieldBaseDTO> - public ApiResponse< List > BindersGetBindersFieldsByTypeWithHttpInfo (int? binderType) - { - // verify the required parameter 'binderType' is set - if (binderType == null) - throw new ApiException(400, "Missing required parameter 'binderType' when calling BindersApi->BindersGetBindersFieldsByType"); - - var localVarPath = "/api/Binders/binderfields/{binderType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderType != null) localVarPathParams.Add("binderType", this.Configuration.ApiClient.ParameterToString(binderType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBindersFieldsByType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the binder custom fields by binder type - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// Task of List<FieldBaseDTO> - public async System.Threading.Tasks.Task> BindersGetBindersFieldsByTypeAsync (int? binderType) - { - ApiResponse> localVarResponse = await BindersGetBindersFieldsByTypeAsyncWithHttpInfo(binderType); - return localVarResponse.Data; - - } - - /// - /// This call returns the binder custom fields by binder type - /// - /// Thrown when fails to make API call - /// Binder type identifier - /// Task of ApiResponse (List<FieldBaseDTO>) - public async System.Threading.Tasks.Task>> BindersGetBindersFieldsByTypeAsyncWithHttpInfo (int? binderType) - { - // verify the required parameter 'binderType' is set - if (binderType == null) - throw new ApiException(400, "Missing required parameter 'binderType' when calling BindersApi->BindersGetBindersFieldsByType"); - - var localVarPath = "/api/Binders/binderfields/{binderType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderType != null) localVarPathParams.Add("binderType", this.Configuration.ApiClient.ParameterToString(binderType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetBindersFieldsByType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find binders that contains docnumber - /// - /// Thrown when fails to make API call - /// The document identifier - /// List<BinderDTO> - public List BindersGetByDocnumber (int? docnumber) - { - ApiResponse> localVarResponse = BindersGetByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This method allows to find binders that contains docnumber - /// - /// Thrown when fails to make API call - /// The document identifier - /// ApiResponse of List<BinderDTO> - public ApiResponse< List > BindersGetByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling BindersApi->BindersGetByDocnumber"); - - var localVarPath = "/api/Binders/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find binders that contains docnumber - /// - /// Thrown when fails to make API call - /// The document identifier - /// Task of List<BinderDTO> - public async System.Threading.Tasks.Task> BindersGetByDocnumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await BindersGetByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This method allows to find binders that contains docnumber - /// - /// Thrown when fails to make API call - /// The document identifier - /// Task of ApiResponse (List<BinderDTO>) - public async System.Threading.Tasks.Task>> BindersGetByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling BindersApi->BindersGetByDocnumber"); - - var localVarPath = "/api/Binders/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call search a binder by the given identifiers - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// BinderDTO - public BinderDTO BindersGetById (int? id) - { - ApiResponse localVarResponse = BindersGetByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call search a binder by the given identifiers - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// ApiResponse of BinderDTO - public ApiResponse< BinderDTO > BindersGetByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling BindersApi->BindersGetById"); - - var localVarPath = "/api/Binders/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BinderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BinderDTO))); - } - - /// - /// This call search a binder by the given identifiers - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// Task of BinderDTO - public async System.Threading.Tasks.Task BindersGetByIdAsync (int? id) - { - ApiResponse localVarResponse = await BindersGetByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call search a binder by the given identifiers - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// Task of ApiResponse (BinderDTO) - public async System.Threading.Tasks.Task> BindersGetByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling BindersApi->BindersGetById"); - - var localVarPath = "/api/Binders/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BinderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BinderDTO))); - } - - /// - /// This call search a binder by the given identifiers - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// List<BinderDTO> - public List BindersGetByIds (List ids) - { - ApiResponse> localVarResponse = BindersGetByIdsWithHttpInfo(ids); - return localVarResponse.Data; - } - - /// - /// This call search a binder by the given identifiers - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// ApiResponse of List<BinderDTO> - public ApiResponse< List > BindersGetByIdsWithHttpInfo (List ids) - { - // verify the required parameter 'ids' is set - if (ids == null) - throw new ApiException(400, "Missing required parameter 'ids' when calling BindersApi->BindersGetByIds"); - - var localVarPath = "/api/Binders/getByIds"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (ids != null && ids.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(ids); // http body (model) parameter - } - else - { - localVarPostBody = ids; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetByIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call search a binder by the given identifiers - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// Task of List<BinderDTO> - public async System.Threading.Tasks.Task> BindersGetByIdsAsync (List ids) - { - ApiResponse> localVarResponse = await BindersGetByIdsAsyncWithHttpInfo(ids); - return localVarResponse.Data; - - } - - /// - /// This call search a binder by the given identifiers - /// - /// Thrown when fails to make API call - /// The identifiers filter - /// Task of ApiResponse (List<BinderDTO>) - public async System.Threading.Tasks.Task>> BindersGetByIdsAsyncWithHttpInfo (List ids) - { - // verify the required parameter 'ids' is set - if (ids == null) - throw new ApiException(400, "Missing required parameter 'ids' when calling BindersApi->BindersGetByIds"); - - var localVarPath = "/api/Binders/getByIds"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (ids != null && ids.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(ids); // http body (model) parameter - } - else - { - localVarPostBody = ids; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetByIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call search a binder by the given number - /// - /// Thrown when fails to make API call - /// The number filter - /// List<BinderDTO> - public List BindersGetByNumero (string number) - { - ApiResponse> localVarResponse = BindersGetByNumeroWithHttpInfo(number); - return localVarResponse.Data; - } - - /// - /// This call search a binder by the given number - /// - /// Thrown when fails to make API call - /// The number filter - /// ApiResponse of List<BinderDTO> - public ApiResponse< List > BindersGetByNumeroWithHttpInfo (string number) - { - // verify the required parameter 'number' is set - if (number == null) - throw new ApiException(400, "Missing required parameter 'number' when calling BindersApi->BindersGetByNumero"); - - var localVarPath = "/api/Binders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (number != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "number", number)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetByNumero", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call search a binder by the given number - /// - /// Thrown when fails to make API call - /// The number filter - /// Task of List<BinderDTO> - public async System.Threading.Tasks.Task> BindersGetByNumeroAsync (string number) - { - ApiResponse> localVarResponse = await BindersGetByNumeroAsyncWithHttpInfo(number); - return localVarResponse.Data; - - } - - /// - /// This call search a binder by the given number - /// - /// Thrown when fails to make API call - /// The number filter - /// Task of ApiResponse (List<BinderDTO>) - public async System.Threading.Tasks.Task>> BindersGetByNumeroAsyncWithHttpInfo (string number) - { - // verify the required parameter 'number' is set - if (number == null) - throw new ApiException(400, "Missing required parameter 'number' when calling BindersApi->BindersGetByNumero"); - - var localVarPath = "/api/Binders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (number != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "number", number)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetByNumero", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call search a binder by the given number This method is deprecated. Use api/Binders?number={number} - /// - /// Thrown when fails to make API call - /// The number filter - /// List<BinderDTO> - public List BindersGetByNumeroOld (string numero) - { - ApiResponse> localVarResponse = BindersGetByNumeroOldWithHttpInfo(numero); - return localVarResponse.Data; - } - - /// - /// This call search a binder by the given number This method is deprecated. Use api/Binders?number={number} - /// - /// Thrown when fails to make API call - /// The number filter - /// ApiResponse of List<BinderDTO> - public ApiResponse< List > BindersGetByNumeroOldWithHttpInfo (string numero) - { - // verify the required parameter 'numero' is set - if (numero == null) - throw new ApiException(400, "Missing required parameter 'numero' when calling BindersApi->BindersGetByNumeroOld"); - - var localVarPath = "/api/Binders/number/{numero}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (numero != null) localVarPathParams.Add("numero", this.Configuration.ApiClient.ParameterToString(numero)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetByNumeroOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call search a binder by the given number This method is deprecated. Use api/Binders?number={number} - /// - /// Thrown when fails to make API call - /// The number filter - /// Task of List<BinderDTO> - public async System.Threading.Tasks.Task> BindersGetByNumeroOldAsync (string numero) - { - ApiResponse> localVarResponse = await BindersGetByNumeroOldAsyncWithHttpInfo(numero); - return localVarResponse.Data; - - } - - /// - /// This call search a binder by the given number This method is deprecated. Use api/Binders?number={number} - /// - /// Thrown when fails to make API call - /// The number filter - /// Task of ApiResponse (List<BinderDTO>) - public async System.Threading.Tasks.Task>> BindersGetByNumeroOldAsyncWithHttpInfo (string numero) - { - // verify the required parameter 'numero' is set - if (numero == null) - throw new ApiException(400, "Missing required parameter 'numero' when calling BindersApi->BindersGetByNumeroOld"); - - var localVarPath = "/api/Binders/number/{numero}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (numero != null) localVarPathParams.Add("numero", this.Configuration.ApiClient.ParameterToString(numero)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetByNumeroOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieve binders of the given type and state - /// - /// Thrown when fails to make API call - /// Binders type filter - /// Binder state filter - /// List<BinderDTO> - public List BindersGetByTypeAndState (int? type, int? state) - { - ApiResponse> localVarResponse = BindersGetByTypeAndStateWithHttpInfo(type, state); - return localVarResponse.Data; - } - - /// - /// This call retrieve binders of the given type and state - /// - /// Thrown when fails to make API call - /// Binders type filter - /// Binder state filter - /// ApiResponse of List<BinderDTO> - public ApiResponse< List > BindersGetByTypeAndStateWithHttpInfo (int? type, int? state) - { - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling BindersApi->BindersGetByTypeAndState"); - // verify the required parameter 'state' is set - if (state == null) - throw new ApiException(400, "Missing required parameter 'state' when calling BindersApi->BindersGetByTypeAndState"); - - var localVarPath = "/api/Binders/{type}/{state}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - if (state != null) localVarPathParams.Add("state", this.Configuration.ApiClient.ParameterToString(state)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetByTypeAndState", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieve binders of the given type and state - /// - /// Thrown when fails to make API call - /// Binders type filter - /// Binder state filter - /// Task of List<BinderDTO> - public async System.Threading.Tasks.Task> BindersGetByTypeAndStateAsync (int? type, int? state) - { - ApiResponse> localVarResponse = await BindersGetByTypeAndStateAsyncWithHttpInfo(type, state); - return localVarResponse.Data; - - } - - /// - /// This call retrieve binders of the given type and state - /// - /// Thrown when fails to make API call - /// Binders type filter - /// Binder state filter - /// Task of ApiResponse (List<BinderDTO>) - public async System.Threading.Tasks.Task>> BindersGetByTypeAndStateAsyncWithHttpInfo (int? type, int? state) - { - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling BindersApi->BindersGetByTypeAndState"); - // verify the required parameter 'state' is set - if (state == null) - throw new ApiException(400, "Missing required parameter 'state' when calling BindersApi->BindersGetByTypeAndState"); - - var localVarPath = "/api/Binders/{type}/{state}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - if (state != null) localVarPathParams.Add("state", this.Configuration.ApiClient.ParameterToString(state)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetByTypeAndState", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the types of binders available - /// - /// Thrown when fails to make API call - /// List<BinderTypeDTO> - public List BindersGetTypesOfPratiche () - { - ApiResponse> localVarResponse = BindersGetTypesOfPraticheWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the types of binders available - /// - /// Thrown when fails to make API call - /// ApiResponse of List<BinderTypeDTO> - public ApiResponse< List > BindersGetTypesOfPraticheWithHttpInfo () - { - - var localVarPath = "/api/Binders/Type"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetTypesOfPratiche", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the types of binders available - /// - /// Thrown when fails to make API call - /// Task of List<BinderTypeDTO> - public async System.Threading.Tasks.Task> BindersGetTypesOfPraticheAsync () - { - ApiResponse> localVarResponse = await BindersGetTypesOfPraticheAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the types of binders available - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<BinderTypeDTO>) - public async System.Threading.Tasks.Task>> BindersGetTypesOfPraticheAsyncWithHttpInfo () - { - - var localVarPath = "/api/Binders/Type"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetTypesOfPratiche", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the default type and state for the user - /// - /// Thrown when fails to make API call - /// BinderUserDefaultTypeAndStateDto - public BinderUserDefaultTypeAndStateDto BindersGetUserDefaultTypeAndStateSelection () - { - ApiResponse localVarResponse = BindersGetUserDefaultTypeAndStateSelectionWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the default type and state for the user - /// - /// Thrown when fails to make API call - /// ApiResponse of BinderUserDefaultTypeAndStateDto - public ApiResponse< BinderUserDefaultTypeAndStateDto > BindersGetUserDefaultTypeAndStateSelectionWithHttpInfo () - { - - var localVarPath = "/api/Binders/defaulttypeandstate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetUserDefaultTypeAndStateSelection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BinderUserDefaultTypeAndStateDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BinderUserDefaultTypeAndStateDto))); - } - - /// - /// This call returns the default type and state for the user - /// - /// Thrown when fails to make API call - /// Task of BinderUserDefaultTypeAndStateDto - public async System.Threading.Tasks.Task BindersGetUserDefaultTypeAndStateSelectionAsync () - { - ApiResponse localVarResponse = await BindersGetUserDefaultTypeAndStateSelectionAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the default type and state for the user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (BinderUserDefaultTypeAndStateDto) - public async System.Threading.Tasks.Task> BindersGetUserDefaultTypeAndStateSelectionAsyncWithHttpInfo () - { - - var localVarPath = "/api/Binders/defaulttypeandstate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersGetUserDefaultTypeAndStateSelection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BinderUserDefaultTypeAndStateDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BinderUserDefaultTypeAndStateDto))); - } - - /// - /// This call adds new binder - /// - /// Thrown when fails to make API call - /// (optional) - /// BinderDTO - public BinderDTO BindersInsertNewBinder (BinderDTO binder = null) - { - ApiResponse localVarResponse = BindersInsertNewBinderWithHttpInfo(binder); - return localVarResponse.Data; - } - - /// - /// This call adds new binder - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of BinderDTO - public ApiResponse< BinderDTO > BindersInsertNewBinderWithHttpInfo (BinderDTO binder = null) - { - - var localVarPath = "/api/Binders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binder != null && binder.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(binder); // http body (model) parameter - } - else - { - localVarPostBody = binder; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersInsertNewBinder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BinderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BinderDTO))); - } - - /// - /// This call adds new binder - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of BinderDTO - public async System.Threading.Tasks.Task BindersInsertNewBinderAsync (BinderDTO binder = null) - { - ApiResponse localVarResponse = await BindersInsertNewBinderAsyncWithHttpInfo(binder); - return localVarResponse.Data; - - } - - /// - /// This call adds new binder - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (BinderDTO) - public async System.Threading.Tasks.Task> BindersInsertNewBinderAsyncWithHttpInfo (BinderDTO binder = null) - { - - var localVarPath = "/api/Binders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binder != null && binder.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(binder); // http body (model) parameter - } - else - { - localVarPostBody = binder; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersInsertNewBinder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BinderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BinderDTO))); - } - - /// - /// This call creates new binder type - /// - /// Thrown when fails to make API call - /// (optional) - /// BinderTypeDTO - public BinderTypeDTO BindersInsertNewBinderType (BinderTypeDTO bindertype = null) - { - ApiResponse localVarResponse = BindersInsertNewBinderTypeWithHttpInfo(bindertype); - return localVarResponse.Data; - } - - /// - /// This call creates new binder type - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of BinderTypeDTO - public ApiResponse< BinderTypeDTO > BindersInsertNewBinderTypeWithHttpInfo (BinderTypeDTO bindertype = null) - { - - var localVarPath = "/api/Binders/type"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bindertype != null && bindertype.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(bindertype); // http body (model) parameter - } - else - { - localVarPostBody = bindertype; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersInsertNewBinderType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BinderTypeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BinderTypeDTO))); - } - - /// - /// This call creates new binder type - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of BinderTypeDTO - public async System.Threading.Tasks.Task BindersInsertNewBinderTypeAsync (BinderTypeDTO bindertype = null) - { - ApiResponse localVarResponse = await BindersInsertNewBinderTypeAsyncWithHttpInfo(bindertype); - return localVarResponse.Data; - - } - - /// - /// This call creates new binder type - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (BinderTypeDTO) - public async System.Threading.Tasks.Task> BindersInsertNewBinderTypeAsyncWithHttpInfo (BinderTypeDTO bindertype = null) - { - - var localVarPath = "/api/Binders/type"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bindertype != null && bindertype.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(bindertype); // http body (model) parameter - } - else - { - localVarPostBody = bindertype; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersInsertNewBinderType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BinderTypeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BinderTypeDTO))); - } - - /// - /// This call removes specified profiles from a binder container - /// - /// Thrown when fails to make API call - /// Request for remove profiles into the binder - /// - public void BindersRemoveProfilesFromBinder (BinderProfilesRemoveRequest profilesRemoveRequest) - { - BindersRemoveProfilesFromBinderWithHttpInfo(profilesRemoveRequest); - } - - /// - /// This call removes specified profiles from a binder container - /// - /// Thrown when fails to make API call - /// Request for remove profiles into the binder - /// ApiResponse of Object(void) - public ApiResponse BindersRemoveProfilesFromBinderWithHttpInfo (BinderProfilesRemoveRequest profilesRemoveRequest) - { - // verify the required parameter 'profilesRemoveRequest' is set - if (profilesRemoveRequest == null) - throw new ApiException(400, "Missing required parameter 'profilesRemoveRequest' when calling BindersApi->BindersRemoveProfilesFromBinder"); - - var localVarPath = "/api/Binders/removeprofiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (profilesRemoveRequest != null && profilesRemoveRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profilesRemoveRequest); // http body (model) parameter - } - else - { - localVarPostBody = profilesRemoveRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersRemoveProfilesFromBinder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call removes specified profiles from a binder container - /// - /// Thrown when fails to make API call - /// Request for remove profiles into the binder - /// Task of void - public async System.Threading.Tasks.Task BindersRemoveProfilesFromBinderAsync (BinderProfilesRemoveRequest profilesRemoveRequest) - { - await BindersRemoveProfilesFromBinderAsyncWithHttpInfo(profilesRemoveRequest); - - } - - /// - /// This call removes specified profiles from a binder container - /// - /// Thrown when fails to make API call - /// Request for remove profiles into the binder - /// Task of ApiResponse - public async System.Threading.Tasks.Task> BindersRemoveProfilesFromBinderAsyncWithHttpInfo (BinderProfilesRemoveRequest profilesRemoveRequest) - { - // verify the required parameter 'profilesRemoveRequest' is set - if (profilesRemoveRequest == null) - throw new ApiException(400, "Missing required parameter 'profilesRemoveRequest' when calling BindersApi->BindersRemoveProfilesFromBinder"); - - var localVarPath = "/api/Binders/removeprofiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (profilesRemoveRequest != null && profilesRemoveRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profilesRemoveRequest); // http body (model) parameter - } - else - { - localVarPostBody = profilesRemoveRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersRemoveProfilesFromBinder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates permission for a binder - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder identifier - /// - public void BindersSetBinderPermission (PermissionsDTO permissionDto, int? binderId) - { - BindersSetBinderPermissionWithHttpInfo(permissionDto, binderId); - } - - /// - /// This call updates permission for a binder - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder identifier - /// ApiResponse of Object(void) - public ApiResponse BindersSetBinderPermissionWithHttpInfo (PermissionsDTO permissionDto, int? binderId) - { - // verify the required parameter 'permissionDto' is set - if (permissionDto == null) - throw new ApiException(400, "Missing required parameter 'permissionDto' when calling BindersApi->BindersSetBinderPermission"); - // verify the required parameter 'binderId' is set - if (binderId == null) - throw new ApiException(400, "Missing required parameter 'binderId' when calling BindersApi->BindersSetBinderPermission"); - - var localVarPath = "/api/Binders/binderpermission/{binderId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderId != null) localVarPathParams.Add("binderId", this.Configuration.ApiClient.ParameterToString(binderId)); // path parameter - if (permissionDto != null && permissionDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissionDto); // http body (model) parameter - } - else - { - localVarPostBody = permissionDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersSetBinderPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates permission for a binder - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder identifier - /// Task of void - public async System.Threading.Tasks.Task BindersSetBinderPermissionAsync (PermissionsDTO permissionDto, int? binderId) - { - await BindersSetBinderPermissionAsyncWithHttpInfo(permissionDto, binderId); - - } - - /// - /// This call updates permission for a binder - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> BindersSetBinderPermissionAsyncWithHttpInfo (PermissionsDTO permissionDto, int? binderId) - { - // verify the required parameter 'permissionDto' is set - if (permissionDto == null) - throw new ApiException(400, "Missing required parameter 'permissionDto' when calling BindersApi->BindersSetBinderPermission"); - // verify the required parameter 'binderId' is set - if (binderId == null) - throw new ApiException(400, "Missing required parameter 'binderId' when calling BindersApi->BindersSetBinderPermission"); - - var localVarPath = "/api/Binders/binderpermission/{binderId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderId != null) localVarPathParams.Add("binderId", this.Configuration.ApiClient.ParameterToString(binderId)); // path parameter - if (permissionDto != null && permissionDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissionDto); // http body (model) parameter - } - else - { - localVarPostBody = permissionDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersSetBinderPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates permission for a binder type - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder type identifier - /// - public void BindersSetBinderTypePermission (BinderPermissionsDTO permissionDto, int? binderTypeId) - { - BindersSetBinderTypePermissionWithHttpInfo(permissionDto, binderTypeId); - } - - /// - /// This call updates permission for a binder type - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder type identifier - /// ApiResponse of Object(void) - public ApiResponse BindersSetBinderTypePermissionWithHttpInfo (BinderPermissionsDTO permissionDto, int? binderTypeId) - { - // verify the required parameter 'permissionDto' is set - if (permissionDto == null) - throw new ApiException(400, "Missing required parameter 'permissionDto' when calling BindersApi->BindersSetBinderTypePermission"); - // verify the required parameter 'binderTypeId' is set - if (binderTypeId == null) - throw new ApiException(400, "Missing required parameter 'binderTypeId' when calling BindersApi->BindersSetBinderTypePermission"); - - var localVarPath = "/api/Binders/bindertypepermission/{binderTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderTypeId != null) localVarPathParams.Add("binderTypeId", this.Configuration.ApiClient.ParameterToString(binderTypeId)); // path parameter - if (permissionDto != null && permissionDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissionDto); // http body (model) parameter - } - else - { - localVarPostBody = permissionDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersSetBinderTypePermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates permission for a binder type - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder type identifier - /// Task of void - public async System.Threading.Tasks.Task BindersSetBinderTypePermissionAsync (BinderPermissionsDTO permissionDto, int? binderTypeId) - { - await BindersSetBinderTypePermissionAsyncWithHttpInfo(permissionDto, binderTypeId); - - } - - /// - /// This call updates permission for a binder type - /// - /// Thrown when fails to make API call - /// The permissions data - /// The binder type identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> BindersSetBinderTypePermissionAsyncWithHttpInfo (BinderPermissionsDTO permissionDto, int? binderTypeId) - { - // verify the required parameter 'permissionDto' is set - if (permissionDto == null) - throw new ApiException(400, "Missing required parameter 'permissionDto' when calling BindersApi->BindersSetBinderTypePermission"); - // verify the required parameter 'binderTypeId' is set - if (binderTypeId == null) - throw new ApiException(400, "Missing required parameter 'binderTypeId' when calling BindersApi->BindersSetBinderTypePermission"); - - var localVarPath = "/api/Binders/bindertypepermission/{binderTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderTypeId != null) localVarPathParams.Add("binderTypeId", this.Configuration.ApiClient.ParameterToString(binderTypeId)); // path parameter - if (permissionDto != null && permissionDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissionDto); // http body (model) parameter - } - else - { - localVarPostBody = permissionDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersSetBinderTypePermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the user binder type and state default - /// - /// Thrown when fails to make API call - /// The new default for the user - /// - public void BindersSetUserDefaultTypeAndStateSelection (BinderUserDefaultTypeAndStateDto defaultoption) - { - BindersSetUserDefaultTypeAndStateSelectionWithHttpInfo(defaultoption); - } - - /// - /// This call saves the user binder type and state default - /// - /// Thrown when fails to make API call - /// The new default for the user - /// ApiResponse of Object(void) - public ApiResponse BindersSetUserDefaultTypeAndStateSelectionWithHttpInfo (BinderUserDefaultTypeAndStateDto defaultoption) - { - // verify the required parameter 'defaultoption' is set - if (defaultoption == null) - throw new ApiException(400, "Missing required parameter 'defaultoption' when calling BindersApi->BindersSetUserDefaultTypeAndStateSelection"); - - var localVarPath = "/api/Binders/defaulttypeandstate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (defaultoption != null && defaultoption.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(defaultoption); // http body (model) parameter - } - else - { - localVarPostBody = defaultoption; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersSetUserDefaultTypeAndStateSelection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the user binder type and state default - /// - /// Thrown when fails to make API call - /// The new default for the user - /// Task of void - public async System.Threading.Tasks.Task BindersSetUserDefaultTypeAndStateSelectionAsync (BinderUserDefaultTypeAndStateDto defaultoption) - { - await BindersSetUserDefaultTypeAndStateSelectionAsyncWithHttpInfo(defaultoption); - - } - - /// - /// This call saves the user binder type and state default - /// - /// Thrown when fails to make API call - /// The new default for the user - /// Task of ApiResponse - public async System.Threading.Tasks.Task> BindersSetUserDefaultTypeAndStateSelectionAsyncWithHttpInfo (BinderUserDefaultTypeAndStateDto defaultoption) - { - // verify the required parameter 'defaultoption' is set - if (defaultoption == null) - throw new ApiException(400, "Missing required parameter 'defaultoption' when calling BindersApi->BindersSetUserDefaultTypeAndStateSelection"); - - var localVarPath = "/api/Binders/defaulttypeandstate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (defaultoption != null && defaultoption.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(defaultoption); // http body (model) parameter - } - else - { - localVarPostBody = defaultoption; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersSetUserDefaultTypeAndStateSelection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates all binder values, also custom fields, by binder identifier - /// - /// Thrown when fails to make API call - /// The identifier of the binder - /// (optional) - /// BinderDTO - public BinderDTO BindersUpdateBinderById (int? binderId, BinderDTO binder = null) - { - ApiResponse localVarResponse = BindersUpdateBinderByIdWithHttpInfo(binderId, binder); - return localVarResponse.Data; - } - - /// - /// This call updates all binder values, also custom fields, by binder identifier - /// - /// Thrown when fails to make API call - /// The identifier of the binder - /// (optional) - /// ApiResponse of BinderDTO - public ApiResponse< BinderDTO > BindersUpdateBinderByIdWithHttpInfo (int? binderId, BinderDTO binder = null) - { - // verify the required parameter 'binderId' is set - if (binderId == null) - throw new ApiException(400, "Missing required parameter 'binderId' when calling BindersApi->BindersUpdateBinderById"); - - var localVarPath = "/api/Binders/{binderId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderId != null) localVarPathParams.Add("binderId", this.Configuration.ApiClient.ParameterToString(binderId)); // path parameter - if (binder != null && binder.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(binder); // http body (model) parameter - } - else - { - localVarPostBody = binder; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersUpdateBinderById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BinderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BinderDTO))); - } - - /// - /// This call updates all binder values, also custom fields, by binder identifier - /// - /// Thrown when fails to make API call - /// The identifier of the binder - /// (optional) - /// Task of BinderDTO - public async System.Threading.Tasks.Task BindersUpdateBinderByIdAsync (int? binderId, BinderDTO binder = null) - { - ApiResponse localVarResponse = await BindersUpdateBinderByIdAsyncWithHttpInfo(binderId, binder); - return localVarResponse.Data; - - } - - /// - /// This call updates all binder values, also custom fields, by binder identifier - /// - /// Thrown when fails to make API call - /// The identifier of the binder - /// (optional) - /// Task of ApiResponse (BinderDTO) - public async System.Threading.Tasks.Task> BindersUpdateBinderByIdAsyncWithHttpInfo (int? binderId, BinderDTO binder = null) - { - // verify the required parameter 'binderId' is set - if (binderId == null) - throw new ApiException(400, "Missing required parameter 'binderId' when calling BindersApi->BindersUpdateBinderById"); - - var localVarPath = "/api/Binders/{binderId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (binderId != null) localVarPathParams.Add("binderId", this.Configuration.ApiClient.ParameterToString(binderId)); // path parameter - if (binder != null && binder.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(binder); // http body (model) parameter - } - else - { - localVarPostBody = binder; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersUpdateBinderById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BinderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BinderDTO))); - } - - /// - /// This call updates a binder type - /// - /// Thrown when fails to make API call - /// (optional) - /// BinderTypeDTO - public BinderTypeDTO BindersUpdateBinderTypeById (BinderTypeDTO bindertype = null) - { - ApiResponse localVarResponse = BindersUpdateBinderTypeByIdWithHttpInfo(bindertype); - return localVarResponse.Data; - } - - /// - /// This call updates a binder type - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of BinderTypeDTO - public ApiResponse< BinderTypeDTO > BindersUpdateBinderTypeByIdWithHttpInfo (BinderTypeDTO bindertype = null) - { - - var localVarPath = "/api/Binders/type"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bindertype != null && bindertype.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(bindertype); // http body (model) parameter - } - else - { - localVarPostBody = bindertype; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersUpdateBinderTypeById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BinderTypeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BinderTypeDTO))); - } - - /// - /// This call updates a binder type - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of BinderTypeDTO - public async System.Threading.Tasks.Task BindersUpdateBinderTypeByIdAsync (BinderTypeDTO bindertype = null) - { - ApiResponse localVarResponse = await BindersUpdateBinderTypeByIdAsyncWithHttpInfo(bindertype); - return localVarResponse.Data; - - } - - /// - /// This call updates a binder type - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (BinderTypeDTO) - public async System.Threading.Tasks.Task> BindersUpdateBinderTypeByIdAsyncWithHttpInfo (BinderTypeDTO bindertype = null) - { - - var localVarPath = "/api/Binders/type"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bindertype != null && bindertype.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(bindertype); // http body (model) parameter - } - else - { - localVarPostBody = bindertype; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BindersUpdateBinderTypeById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BinderTypeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BinderTypeDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/BufferApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/BufferApi.cs deleted file mode 100644 index d1b69b1..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/BufferApi.cs +++ /dev/null @@ -1,1531 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IBufferApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes a Buffer from its bufferId - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The buffer ID - /// bool? - bool? BufferDeleteByBufferId (string bufferId); - - /// - /// This call deletes a Buffer from its bufferId - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The buffer ID - /// ApiResponse of bool? - ApiResponse BufferDeleteByBufferIdWithHttpInfo (string bufferId); - /// - /// This call returns the information about the buffer element - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// BufferSimpleElement - BufferSimpleElement BufferGetBufferElement (string id); - - /// - /// This call returns the information about the buffer element - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of BufferSimpleElement - ApiResponse BufferGetBufferElementWithHttpInfo (string id); - /// - /// This call returns the file of the buffer element - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// System.IO.Stream - System.IO.Stream BufferGetFile (string id); - - /// - /// This call returns the file of the buffer element - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of System.IO.Stream - ApiResponse BufferGetFileWithHttpInfo (string id); - /// - /// This call returns the list of the document in the buffer for the monitored folder (Mail type included) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<BufferSimpleElement> - List BufferGetForMonitoredFolder (); - - /// - /// This call returns the list of the document in the buffer for the monitored folder (Mail type included) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<BufferSimpleElement> - ApiResponse> BufferGetForMonitoredFolderWithHttpInfo (); - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The file - /// List<string> - List BufferInsert (System.IO.Stream file); - - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The file - /// ApiResponse of List<string> - ApiResponse> BufferInsertWithHttpInfo (System.IO.Stream file); - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// Description - /// The file - /// List<string> - List BufferInsertAdvanced (int? elementTypeEnum, string description, System.IO.Stream file); - - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// Description - /// The file - /// ApiResponse of List<string> - ApiResponse> BufferInsertAdvancedWithHttpInfo (int? elementTypeEnum, string description, System.IO.Stream file); - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// If the buffer is related to a monitored folder - /// Description - /// The file - /// List<string> - List BufferInsertAdvancedForMonitoredFolder (int? elementTypeEnum, string monitoredFolderId, string description, System.IO.Stream file); - - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// If the buffer is related to a monitored folder - /// Description - /// The file - /// ApiResponse of List<string> - ApiResponse> BufferInsertAdvancedForMonitoredFolderWithHttpInfo (int? elementTypeEnum, string monitoredFolderId, string description, System.IO.Stream file); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes a Buffer from its bufferId - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The buffer ID - /// Task of bool? - System.Threading.Tasks.Task BufferDeleteByBufferIdAsync (string bufferId); - - /// - /// This call deletes a Buffer from its bufferId - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The buffer ID - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> BufferDeleteByBufferIdAsyncWithHttpInfo (string bufferId); - /// - /// This call returns the information about the buffer element - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of BufferSimpleElement - System.Threading.Tasks.Task BufferGetBufferElementAsync (string id); - - /// - /// This call returns the information about the buffer element - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (BufferSimpleElement) - System.Threading.Tasks.Task> BufferGetBufferElementAsyncWithHttpInfo (string id); - /// - /// This call returns the file of the buffer element - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of System.IO.Stream - System.Threading.Tasks.Task BufferGetFileAsync (string id); - - /// - /// This call returns the file of the buffer element - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> BufferGetFileAsyncWithHttpInfo (string id); - /// - /// This call returns the list of the document in the buffer for the monitored folder (Mail type included) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<BufferSimpleElement> - System.Threading.Tasks.Task> BufferGetForMonitoredFolderAsync (); - - /// - /// This call returns the list of the document in the buffer for the monitored folder (Mail type included) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<BufferSimpleElement>) - System.Threading.Tasks.Task>> BufferGetForMonitoredFolderAsyncWithHttpInfo (); - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The file - /// Task of List<string> - System.Threading.Tasks.Task> BufferInsertAsync (System.IO.Stream file); - - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The file - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> BufferInsertAsyncWithHttpInfo (System.IO.Stream file); - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// Description - /// The file - /// Task of List<string> - System.Threading.Tasks.Task> BufferInsertAdvancedAsync (int? elementTypeEnum, string description, System.IO.Stream file); - - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// Description - /// The file - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> BufferInsertAdvancedAsyncWithHttpInfo (int? elementTypeEnum, string description, System.IO.Stream file); - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// If the buffer is related to a monitored folder - /// Description - /// The file - /// Task of List<string> - System.Threading.Tasks.Task> BufferInsertAdvancedForMonitoredFolderAsync (int? elementTypeEnum, string monitoredFolderId, string description, System.IO.Stream file); - - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// If the buffer is related to a monitored folder - /// Description - /// The file - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> BufferInsertAdvancedForMonitoredFolderAsyncWithHttpInfo (int? elementTypeEnum, string monitoredFolderId, string description, System.IO.Stream file); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class BufferApi : IBufferApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public BufferApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public BufferApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes a Buffer from its bufferId - /// - /// Thrown when fails to make API call - /// The buffer ID - /// bool? - public bool? BufferDeleteByBufferId (string bufferId) - { - ApiResponse localVarResponse = BufferDeleteByBufferIdWithHttpInfo(bufferId); - return localVarResponse.Data; - } - - /// - /// This call deletes a Buffer from its bufferId - /// - /// Thrown when fails to make API call - /// The buffer ID - /// ApiResponse of bool? - public ApiResponse< bool? > BufferDeleteByBufferIdWithHttpInfo (string bufferId) - { - // verify the required parameter 'bufferId' is set - if (bufferId == null) - throw new ApiException(400, "Missing required parameter 'bufferId' when calling BufferApi->BufferDeleteByBufferId"); - - var localVarPath = "/api/Buffer/{bufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bufferId != null) localVarPathParams.Add("bufferId", this.Configuration.ApiClient.ParameterToString(bufferId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BufferDeleteByBufferId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call deletes a Buffer from its bufferId - /// - /// Thrown when fails to make API call - /// The buffer ID - /// Task of bool? - public async System.Threading.Tasks.Task BufferDeleteByBufferIdAsync (string bufferId) - { - ApiResponse localVarResponse = await BufferDeleteByBufferIdAsyncWithHttpInfo(bufferId); - return localVarResponse.Data; - - } - - /// - /// This call deletes a Buffer from its bufferId - /// - /// Thrown when fails to make API call - /// The buffer ID - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> BufferDeleteByBufferIdAsyncWithHttpInfo (string bufferId) - { - // verify the required parameter 'bufferId' is set - if (bufferId == null) - throw new ApiException(400, "Missing required parameter 'bufferId' when calling BufferApi->BufferDeleteByBufferId"); - - var localVarPath = "/api/Buffer/{bufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bufferId != null) localVarPathParams.Add("bufferId", this.Configuration.ApiClient.ParameterToString(bufferId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BufferDeleteByBufferId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns the information about the buffer element - /// - /// Thrown when fails to make API call - /// - /// BufferSimpleElement - public BufferSimpleElement BufferGetBufferElement (string id) - { - ApiResponse localVarResponse = BufferGetBufferElementWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns the information about the buffer element - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of BufferSimpleElement - public ApiResponse< BufferSimpleElement > BufferGetBufferElementWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling BufferApi->BufferGetBufferElement"); - - var localVarPath = "/api/Buffer/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BufferGetBufferElement", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BufferSimpleElement) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BufferSimpleElement))); - } - - /// - /// This call returns the information about the buffer element - /// - /// Thrown when fails to make API call - /// - /// Task of BufferSimpleElement - public async System.Threading.Tasks.Task BufferGetBufferElementAsync (string id) - { - ApiResponse localVarResponse = await BufferGetBufferElementAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns the information about the buffer element - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (BufferSimpleElement) - public async System.Threading.Tasks.Task> BufferGetBufferElementAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling BufferApi->BufferGetBufferElement"); - - var localVarPath = "/api/Buffer/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BufferGetBufferElement", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BufferSimpleElement) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BufferSimpleElement))); - } - - /// - /// This call returns the file of the buffer element - /// - /// Thrown when fails to make API call - /// - /// System.IO.Stream - public System.IO.Stream BufferGetFile (string id) - { - ApiResponse localVarResponse = BufferGetFileWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns the file of the buffer element - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > BufferGetFileWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling BufferApi->BufferGetFile"); - - var localVarPath = "/api/Buffer/file/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BufferGetFile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file of the buffer element - /// - /// Thrown when fails to make API call - /// - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task BufferGetFileAsync (string id) - { - ApiResponse localVarResponse = await BufferGetFileAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns the file of the buffer element - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> BufferGetFileAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling BufferApi->BufferGetFile"); - - var localVarPath = "/api/Buffer/file/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BufferGetFile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the list of the document in the buffer for the monitored folder (Mail type included) - /// - /// Thrown when fails to make API call - /// List<BufferSimpleElement> - public List BufferGetForMonitoredFolder () - { - ApiResponse> localVarResponse = BufferGetForMonitoredFolderWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the list of the document in the buffer for the monitored folder (Mail type included) - /// - /// Thrown when fails to make API call - /// ApiResponse of List<BufferSimpleElement> - public ApiResponse< List > BufferGetForMonitoredFolderWithHttpInfo () - { - - var localVarPath = "/api/Buffer/ForMonitoredFolder"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BufferGetForMonitoredFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the list of the document in the buffer for the monitored folder (Mail type included) - /// - /// Thrown when fails to make API call - /// Task of List<BufferSimpleElement> - public async System.Threading.Tasks.Task> BufferGetForMonitoredFolderAsync () - { - ApiResponse> localVarResponse = await BufferGetForMonitoredFolderAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the list of the document in the buffer for the monitored folder (Mail type included) - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<BufferSimpleElement>) - public async System.Threading.Tasks.Task>> BufferGetForMonitoredFolderAsyncWithHttpInfo () - { - - var localVarPath = "/api/Buffer/ForMonitoredFolder"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BufferGetForMonitoredFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// The file - /// List<string> - public List BufferInsert (System.IO.Stream file) - { - ApiResponse> localVarResponse = BufferInsertWithHttpInfo(file); - return localVarResponse.Data; - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// The file - /// ApiResponse of List<string> - public ApiResponse< List > BufferInsertWithHttpInfo (System.IO.Stream file) - { - // verify the required parameter 'file' is set - if (file == null) - throw new ApiException(400, "Missing required parameter 'file' when calling BufferApi->BufferInsert"); - - var localVarPath = "/api/Buffer/insert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "multipart/form-data" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (file != null) localVarFileParams.Add("file", this.Configuration.ApiClient.ParameterToFile("file", file)); - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BufferInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// The file - /// Task of List<string> - public async System.Threading.Tasks.Task> BufferInsertAsync (System.IO.Stream file) - { - ApiResponse> localVarResponse = await BufferInsertAsyncWithHttpInfo(file); - return localVarResponse.Data; - - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// The file - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> BufferInsertAsyncWithHttpInfo (System.IO.Stream file) - { - // verify the required parameter 'file' is set - if (file == null) - throw new ApiException(400, "Missing required parameter 'file' when calling BufferApi->BufferInsert"); - - var localVarPath = "/api/Buffer/insert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "multipart/form-data" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (file != null) localVarFileParams.Add("file", this.Configuration.ApiClient.ParameterToFile("file", file)); - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BufferInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// Description - /// The file - /// List<string> - public List BufferInsertAdvanced (int? elementTypeEnum, string description, System.IO.Stream file) - { - ApiResponse> localVarResponse = BufferInsertAdvancedWithHttpInfo(elementTypeEnum, description, file); - return localVarResponse.Data; - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// Description - /// The file - /// ApiResponse of List<string> - public ApiResponse< List > BufferInsertAdvancedWithHttpInfo (int? elementTypeEnum, string description, System.IO.Stream file) - { - // verify the required parameter 'elementTypeEnum' is set - if (elementTypeEnum == null) - throw new ApiException(400, "Missing required parameter 'elementTypeEnum' when calling BufferApi->BufferInsertAdvanced"); - // verify the required parameter 'description' is set - if (description == null) - throw new ApiException(400, "Missing required parameter 'description' when calling BufferApi->BufferInsertAdvanced"); - // verify the required parameter 'file' is set - if (file == null) - throw new ApiException(400, "Missing required parameter 'file' when calling BufferApi->BufferInsertAdvanced"); - - var localVarPath = "/api/Buffer/insert/{elementTypeEnum}/{description}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "multipart/form-data" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (elementTypeEnum != null) localVarPathParams.Add("elementTypeEnum", this.Configuration.ApiClient.ParameterToString(elementTypeEnum)); // path parameter - if (description != null) localVarPathParams.Add("description", this.Configuration.ApiClient.ParameterToString(description)); // path parameter - if (file != null) localVarFileParams.Add("file", this.Configuration.ApiClient.ParameterToFile("file", file)); - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BufferInsertAdvanced", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// Description - /// The file - /// Task of List<string> - public async System.Threading.Tasks.Task> BufferInsertAdvancedAsync (int? elementTypeEnum, string description, System.IO.Stream file) - { - ApiResponse> localVarResponse = await BufferInsertAdvancedAsyncWithHttpInfo(elementTypeEnum, description, file); - return localVarResponse.Data; - - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// Description - /// The file - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> BufferInsertAdvancedAsyncWithHttpInfo (int? elementTypeEnum, string description, System.IO.Stream file) - { - // verify the required parameter 'elementTypeEnum' is set - if (elementTypeEnum == null) - throw new ApiException(400, "Missing required parameter 'elementTypeEnum' when calling BufferApi->BufferInsertAdvanced"); - // verify the required parameter 'description' is set - if (description == null) - throw new ApiException(400, "Missing required parameter 'description' when calling BufferApi->BufferInsertAdvanced"); - // verify the required parameter 'file' is set - if (file == null) - throw new ApiException(400, "Missing required parameter 'file' when calling BufferApi->BufferInsertAdvanced"); - - var localVarPath = "/api/Buffer/insert/{elementTypeEnum}/{description}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "multipart/form-data" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (elementTypeEnum != null) localVarPathParams.Add("elementTypeEnum", this.Configuration.ApiClient.ParameterToString(elementTypeEnum)); // path parameter - if (description != null) localVarPathParams.Add("description", this.Configuration.ApiClient.ParameterToString(description)); // path parameter - if (file != null) localVarFileParams.Add("file", this.Configuration.ApiClient.ParameterToFile("file", file)); - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BufferInsertAdvanced", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// If the buffer is related to a monitored folder - /// Description - /// The file - /// List<string> - public List BufferInsertAdvancedForMonitoredFolder (int? elementTypeEnum, string monitoredFolderId, string description, System.IO.Stream file) - { - ApiResponse> localVarResponse = BufferInsertAdvancedForMonitoredFolderWithHttpInfo(elementTypeEnum, monitoredFolderId, description, file); - return localVarResponse.Data; - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// If the buffer is related to a monitored folder - /// Description - /// The file - /// ApiResponse of List<string> - public ApiResponse< List > BufferInsertAdvancedForMonitoredFolderWithHttpInfo (int? elementTypeEnum, string monitoredFolderId, string description, System.IO.Stream file) - { - // verify the required parameter 'elementTypeEnum' is set - if (elementTypeEnum == null) - throw new ApiException(400, "Missing required parameter 'elementTypeEnum' when calling BufferApi->BufferInsertAdvancedForMonitoredFolder"); - // verify the required parameter 'monitoredFolderId' is set - if (monitoredFolderId == null) - throw new ApiException(400, "Missing required parameter 'monitoredFolderId' when calling BufferApi->BufferInsertAdvancedForMonitoredFolder"); - // verify the required parameter 'description' is set - if (description == null) - throw new ApiException(400, "Missing required parameter 'description' when calling BufferApi->BufferInsertAdvancedForMonitoredFolder"); - // verify the required parameter 'file' is set - if (file == null) - throw new ApiException(400, "Missing required parameter 'file' when calling BufferApi->BufferInsertAdvancedForMonitoredFolder"); - - var localVarPath = "/api/Buffer/insertForMonitoredFolder/{elementTypeEnum}/{monitoredFolderId}/{description}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "multipart/form-data" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (elementTypeEnum != null) localVarPathParams.Add("elementTypeEnum", this.Configuration.ApiClient.ParameterToString(elementTypeEnum)); // path parameter - if (monitoredFolderId != null) localVarPathParams.Add("monitoredFolderId", this.Configuration.ApiClient.ParameterToString(monitoredFolderId)); // path parameter - if (description != null) localVarPathParams.Add("description", this.Configuration.ApiClient.ParameterToString(description)); // path parameter - if (file != null) localVarFileParams.Add("file", this.Configuration.ApiClient.ParameterToFile("file", file)); - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BufferInsertAdvancedForMonitoredFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// If the buffer is related to a monitored folder - /// Description - /// The file - /// Task of List<string> - public async System.Threading.Tasks.Task> BufferInsertAdvancedForMonitoredFolderAsync (int? elementTypeEnum, string monitoredFolderId, string description, System.IO.Stream file) - { - ApiResponse> localVarResponse = await BufferInsertAdvancedForMonitoredFolderAsyncWithHttpInfo(elementTypeEnum, monitoredFolderId, description, file); - return localVarResponse.Data; - - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// If the buffer is related to a monitored folder - /// Description - /// The file - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> BufferInsertAdvancedForMonitoredFolderAsyncWithHttpInfo (int? elementTypeEnum, string monitoredFolderId, string description, System.IO.Stream file) - { - // verify the required parameter 'elementTypeEnum' is set - if (elementTypeEnum == null) - throw new ApiException(400, "Missing required parameter 'elementTypeEnum' when calling BufferApi->BufferInsertAdvancedForMonitoredFolder"); - // verify the required parameter 'monitoredFolderId' is set - if (monitoredFolderId == null) - throw new ApiException(400, "Missing required parameter 'monitoredFolderId' when calling BufferApi->BufferInsertAdvancedForMonitoredFolder"); - // verify the required parameter 'description' is set - if (description == null) - throw new ApiException(400, "Missing required parameter 'description' when calling BufferApi->BufferInsertAdvancedForMonitoredFolder"); - // verify the required parameter 'file' is set - if (file == null) - throw new ApiException(400, "Missing required parameter 'file' when calling BufferApi->BufferInsertAdvancedForMonitoredFolder"); - - var localVarPath = "/api/Buffer/insertForMonitoredFolder/{elementTypeEnum}/{monitoredFolderId}/{description}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "multipart/form-data" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (elementTypeEnum != null) localVarPathParams.Add("elementTypeEnum", this.Configuration.ApiClient.ParameterToString(elementTypeEnum)); // path parameter - if (monitoredFolderId != null) localVarPathParams.Add("monitoredFolderId", this.Configuration.ApiClient.ParameterToString(monitoredFolderId)); // path parameter - if (description != null) localVarPathParams.Add("description", this.Configuration.ApiClient.ParameterToString(description)); // path parameter - if (file != null) localVarFileParams.Add("file", this.Configuration.ApiClient.ParameterToFile("file", file)); - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BufferInsertAdvancedForMonitoredFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/BusinessUnitsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/BusinessUnitsApi.cs deleted file mode 100644 index f2285a8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/BusinessUnitsApi.cs +++ /dev/null @@ -1,516 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IBusinessUnitsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the business unit that the connected user can see - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Search 1: Archive 2: ArchivePa (optional) - /// Order (optional) - /// List<BusinessUnitDTO> - List BusinessUnitsGet (int? criteriaMode = null, string criteriaOrderBy = null); - - /// - /// This call returns the business unit that the connected user can see - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Search 1: Archive 2: ArchivePa (optional) - /// Order (optional) - /// ApiResponse of List<BusinessUnitDTO> - ApiResponse> BusinessUnitsGetWithHttpInfo (int? criteriaMode = null, string criteriaOrderBy = null); - /// - /// This call returns the last protocol number generated by the system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit code - /// string - string BusinessUnitsGetLastProtocolValue (string aoo); - - /// - /// This call returns the last protocol number generated by the system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit code - /// ApiResponse of string - ApiResponse BusinessUnitsGetLastProtocolValueWithHttpInfo (string aoo); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the business unit that the connected user can see - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Search 1: Archive 2: ArchivePa (optional) - /// Order (optional) - /// Task of List<BusinessUnitDTO> - System.Threading.Tasks.Task> BusinessUnitsGetAsync (int? criteriaMode = null, string criteriaOrderBy = null); - - /// - /// This call returns the business unit that the connected user can see - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Search 1: Archive 2: ArchivePa (optional) - /// Order (optional) - /// Task of ApiResponse (List<BusinessUnitDTO>) - System.Threading.Tasks.Task>> BusinessUnitsGetAsyncWithHttpInfo (int? criteriaMode = null, string criteriaOrderBy = null); - /// - /// This call returns the last protocol number generated by the system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit code - /// Task of string - System.Threading.Tasks.Task BusinessUnitsGetLastProtocolValueAsync (string aoo); - - /// - /// This call returns the last protocol number generated by the system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit code - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> BusinessUnitsGetLastProtocolValueAsyncWithHttpInfo (string aoo); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class BusinessUnitsApi : IBusinessUnitsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public BusinessUnitsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public BusinessUnitsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the business unit that the connected user can see - /// - /// Thrown when fails to make API call - /// Possible values: 0: Search 1: Archive 2: ArchivePa (optional) - /// Order (optional) - /// List<BusinessUnitDTO> - public List BusinessUnitsGet (int? criteriaMode = null, string criteriaOrderBy = null) - { - ApiResponse> localVarResponse = BusinessUnitsGetWithHttpInfo(criteriaMode, criteriaOrderBy); - return localVarResponse.Data; - } - - /// - /// This call returns the business unit that the connected user can see - /// - /// Thrown when fails to make API call - /// Possible values: 0: Search 1: Archive 2: ArchivePa (optional) - /// Order (optional) - /// ApiResponse of List<BusinessUnitDTO> - public ApiResponse< List > BusinessUnitsGetWithHttpInfo (int? criteriaMode = null, string criteriaOrderBy = null) - { - - var localVarPath = "/api/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (criteriaMode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "criteria.mode", criteriaMode)); // query parameter - if (criteriaOrderBy != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "criteria.orderBy", criteriaOrderBy)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the business unit that the connected user can see - /// - /// Thrown when fails to make API call - /// Possible values: 0: Search 1: Archive 2: ArchivePa (optional) - /// Order (optional) - /// Task of List<BusinessUnitDTO> - public async System.Threading.Tasks.Task> BusinessUnitsGetAsync (int? criteriaMode = null, string criteriaOrderBy = null) - { - ApiResponse> localVarResponse = await BusinessUnitsGetAsyncWithHttpInfo(criteriaMode, criteriaOrderBy); - return localVarResponse.Data; - - } - - /// - /// This call returns the business unit that the connected user can see - /// - /// Thrown when fails to make API call - /// Possible values: 0: Search 1: Archive 2: ArchivePa (optional) - /// Order (optional) - /// Task of ApiResponse (List<BusinessUnitDTO>) - public async System.Threading.Tasks.Task>> BusinessUnitsGetAsyncWithHttpInfo (int? criteriaMode = null, string criteriaOrderBy = null) - { - - var localVarPath = "/api/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (criteriaMode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "criteria.mode", criteriaMode)); // query parameter - if (criteriaOrderBy != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "criteria.orderBy", criteriaOrderBy)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the last protocol number generated by the system - /// - /// Thrown when fails to make API call - /// Business unit code - /// string - public string BusinessUnitsGetLastProtocolValue (string aoo) - { - ApiResponse localVarResponse = BusinessUnitsGetLastProtocolValueWithHttpInfo(aoo); - return localVarResponse.Data; - } - - /// - /// This call returns the last protocol number generated by the system - /// - /// Thrown when fails to make API call - /// Business unit code - /// ApiResponse of string - public ApiResponse< string > BusinessUnitsGetLastProtocolValueWithHttpInfo (string aoo) - { - // verify the required parameter 'aoo' is set - if (aoo == null) - throw new ApiException(400, "Missing required parameter 'aoo' when calling BusinessUnitsApi->BusinessUnitsGetLastProtocolValue"); - - var localVarPath = "/api/BusinessUnits/LastProtocolValue"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (aoo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "aoo", aoo)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsGetLastProtocolValue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call returns the last protocol number generated by the system - /// - /// Thrown when fails to make API call - /// Business unit code - /// Task of string - public async System.Threading.Tasks.Task BusinessUnitsGetLastProtocolValueAsync (string aoo) - { - ApiResponse localVarResponse = await BusinessUnitsGetLastProtocolValueAsyncWithHttpInfo(aoo); - return localVarResponse.Data; - - } - - /// - /// This call returns the last protocol number generated by the system - /// - /// Thrown when fails to make API call - /// Business unit code - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> BusinessUnitsGetLastProtocolValueAsyncWithHttpInfo (string aoo) - { - // verify the required parameter 'aoo' is set - if (aoo == null) - throw new ApiException(400, "Missing required parameter 'aoo' when calling BusinessUnitsApi->BusinessUnitsGetLastProtocolValue"); - - var localVarPath = "/api/BusinessUnits/LastProtocolValue"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (aoo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "aoo", aoo)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsGetLastProtocolValue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/CacheApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/CacheApi.cs deleted file mode 100644 index 2e38ca9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/CacheApi.cs +++ /dev/null @@ -1,322 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ICacheApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The file - /// List<string> - List CacheInsert (System.IO.Stream file); - - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The file - /// ApiResponse of List<string> - ApiResponse> CacheInsertWithHttpInfo (System.IO.Stream file); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The file - /// Task of List<string> - System.Threading.Tasks.Task> CacheInsertAsync (System.IO.Stream file); - - /// - /// This call allows to add a file to the buffer - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The file - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> CacheInsertAsyncWithHttpInfo (System.IO.Stream file); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class CacheApi : ICacheApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public CacheApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public CacheApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// The file - /// List<string> - public List CacheInsert (System.IO.Stream file) - { - ApiResponse> localVarResponse = CacheInsertWithHttpInfo(file); - return localVarResponse.Data; - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// The file - /// ApiResponse of List<string> - public ApiResponse< List > CacheInsertWithHttpInfo (System.IO.Stream file) - { - // verify the required parameter 'file' is set - if (file == null) - throw new ApiException(400, "Missing required parameter 'file' when calling CacheApi->CacheInsert"); - - var localVarPath = "/api/Cache/insert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "multipart/form-data" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (file != null) localVarFileParams.Add("file", this.Configuration.ApiClient.ParameterToFile("file", file)); - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CacheInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// The file - /// Task of List<string> - public async System.Threading.Tasks.Task> CacheInsertAsync (System.IO.Stream file) - { - ApiResponse> localVarResponse = await CacheInsertAsyncWithHttpInfo(file); - return localVarResponse.Data; - - } - - /// - /// This call allows to add a file to the buffer - /// - /// Thrown when fails to make API call - /// The file - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> CacheInsertAsyncWithHttpInfo (System.IO.Stream file) - { - // verify the required parameter 'file' is set - if (file == null) - throw new ApiException(400, "Missing required parameter 'file' when calling CacheApi->CacheInsert"); - - var localVarPath = "/api/Cache/insert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "multipart/form-data" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (file != null) localVarFileParams.Add("file", this.Configuration.ApiClient.ParameterToFile("file", file)); - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CacheInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ChatApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ChatApi.cs deleted file mode 100644 index 8228424..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ChatApi.cs +++ /dev/null @@ -1,1507 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IChatApi : IApiAccessor - { - #region Synchronous Operations - /// - /// Thi call delete the avatar for the user connected - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - void ChatDeleteAvatar (); - - /// - /// Thi call delete the avatar for the user connected - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - ApiResponse ChatDeleteAvatarWithHttpInfo (); - /// - /// Call that returns the user avatar given his identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier which you require avatar - /// Object - Object ChatGetAvatar (int? id); - - /// - /// Call that returns the user avatar given his identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier which you require avatar - /// ApiResponse of Object - ApiResponse ChatGetAvatarWithHttpInfo (int? id); - /// - /// Call that returns the settings for the chat service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ChatServiceSettingsDTO - ChatServiceSettingsDTO ChatGetSettings (); - - /// - /// Call that returns the settings for the chat service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of ChatServiceSettingsDTO - ApiResponse ChatGetSettingsWithHttpInfo (); - /// - /// This call returns the share option by a share object - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Share data - /// ShareObjectOptionsDTO - ShareObjectOptionsDTO ChatGetShareOptions (ShareObjectBaseDTO shareObject); - - /// - /// This call returns the share option by a share object - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Share data - /// ApiResponse of ShareObjectOptionsDTO - ApiResponse ChatGetShareOptionsWithHttpInfo (ShareObjectBaseDTO shareObject); - /// - /// This call set the avatar for the user connected - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SetAvatarRequestDto that contain the base64 avatar - /// - void ChatSetAvatar (SetAvatarRequestDto request); - - /// - /// This call set the avatar for the user connected - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SetAvatarRequestDto that contain the base64 avatar - /// ApiResponse of Object(void) - ApiResponse ChatSetAvatarWithHttpInfo (SetAvatarRequestDto request); - /// - /// Call that save the settings for the chat service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings of char service - /// - void ChatSetSettings (ChatServiceSettingsDTO chatServiceSettings); - - /// - /// Call that save the settings for the chat service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings of char service - /// ApiResponse of Object(void) - ApiResponse ChatSetSettingsWithHttpInfo (ChatServiceSettingsDTO chatServiceSettings); - /// - /// This call share an object to conversation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the conversation - /// Object to share - /// - void ChatShareObject (int? conversationid, ShareObjectDTO shareObject); - - /// - /// This call share an object to conversation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the conversation - /// Object to share - /// ApiResponse of Object(void) - ApiResponse ChatShareObjectWithHttpInfo (int? conversationid, ShareObjectDTO shareObject); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// Thi call delete the avatar for the user connected - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of void - System.Threading.Tasks.Task ChatDeleteAvatarAsync (); - - /// - /// Thi call delete the avatar for the user connected - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - System.Threading.Tasks.Task> ChatDeleteAvatarAsyncWithHttpInfo (); - /// - /// Call that returns the user avatar given his identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier which you require avatar - /// Task of Object - System.Threading.Tasks.Task ChatGetAvatarAsync (int? id); - - /// - /// Call that returns the user avatar given his identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier which you require avatar - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ChatGetAvatarAsyncWithHttpInfo (int? id); - /// - /// Call that returns the settings for the chat service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ChatServiceSettingsDTO - System.Threading.Tasks.Task ChatGetSettingsAsync (); - - /// - /// Call that returns the settings for the chat service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (ChatServiceSettingsDTO) - System.Threading.Tasks.Task> ChatGetSettingsAsyncWithHttpInfo (); - /// - /// This call returns the share option by a share object - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Share data - /// Task of ShareObjectOptionsDTO - System.Threading.Tasks.Task ChatGetShareOptionsAsync (ShareObjectBaseDTO shareObject); - - /// - /// This call returns the share option by a share object - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Share data - /// Task of ApiResponse (ShareObjectOptionsDTO) - System.Threading.Tasks.Task> ChatGetShareOptionsAsyncWithHttpInfo (ShareObjectBaseDTO shareObject); - /// - /// This call set the avatar for the user connected - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SetAvatarRequestDto that contain the base64 avatar - /// Task of void - System.Threading.Tasks.Task ChatSetAvatarAsync (SetAvatarRequestDto request); - - /// - /// This call set the avatar for the user connected - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SetAvatarRequestDto that contain the base64 avatar - /// Task of ApiResponse - System.Threading.Tasks.Task> ChatSetAvatarAsyncWithHttpInfo (SetAvatarRequestDto request); - /// - /// Call that save the settings for the chat service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings of char service - /// Task of void - System.Threading.Tasks.Task ChatSetSettingsAsync (ChatServiceSettingsDTO chatServiceSettings); - - /// - /// Call that save the settings for the chat service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings of char service - /// Task of ApiResponse - System.Threading.Tasks.Task> ChatSetSettingsAsyncWithHttpInfo (ChatServiceSettingsDTO chatServiceSettings); - /// - /// This call share an object to conversation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the conversation - /// Object to share - /// Task of void - System.Threading.Tasks.Task ChatShareObjectAsync (int? conversationid, ShareObjectDTO shareObject); - - /// - /// This call share an object to conversation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the conversation - /// Object to share - /// Task of ApiResponse - System.Threading.Tasks.Task> ChatShareObjectAsyncWithHttpInfo (int? conversationid, ShareObjectDTO shareObject); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ChatApi : IChatApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ChatApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ChatApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// Thi call delete the avatar for the user connected - /// - /// Thrown when fails to make API call - /// - public void ChatDeleteAvatar () - { - ChatDeleteAvatarWithHttpInfo(); - } - - /// - /// Thi call delete the avatar for the user connected - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - public ApiResponse ChatDeleteAvatarWithHttpInfo () - { - - var localVarPath = "/api/Chat/avatar"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChatDeleteAvatar", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Thi call delete the avatar for the user connected - /// - /// Thrown when fails to make API call - /// Task of void - public async System.Threading.Tasks.Task ChatDeleteAvatarAsync () - { - await ChatDeleteAvatarAsyncWithHttpInfo(); - - } - - /// - /// Thi call delete the avatar for the user connected - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ChatDeleteAvatarAsyncWithHttpInfo () - { - - var localVarPath = "/api/Chat/avatar"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChatDeleteAvatar", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Call that returns the user avatar given his identifier - /// - /// Thrown when fails to make API call - /// User identifier which you require avatar - /// Object - public Object ChatGetAvatar (int? id) - { - ApiResponse localVarResponse = ChatGetAvatarWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Call that returns the user avatar given his identifier - /// - /// Thrown when fails to make API call - /// User identifier which you require avatar - /// ApiResponse of Object - public ApiResponse< Object > ChatGetAvatarWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ChatApi->ChatGetAvatar"); - - var localVarPath = "/api/Chat/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChatGetAvatar", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// Call that returns the user avatar given his identifier - /// - /// Thrown when fails to make API call - /// User identifier which you require avatar - /// Task of Object - public async System.Threading.Tasks.Task ChatGetAvatarAsync (int? id) - { - ApiResponse localVarResponse = await ChatGetAvatarAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// Call that returns the user avatar given his identifier - /// - /// Thrown when fails to make API call - /// User identifier which you require avatar - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ChatGetAvatarAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ChatApi->ChatGetAvatar"); - - var localVarPath = "/api/Chat/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChatGetAvatar", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// Call that returns the settings for the chat service - /// - /// Thrown when fails to make API call - /// ChatServiceSettingsDTO - public ChatServiceSettingsDTO ChatGetSettings () - { - ApiResponse localVarResponse = ChatGetSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Call that returns the settings for the chat service - /// - /// Thrown when fails to make API call - /// ApiResponse of ChatServiceSettingsDTO - public ApiResponse< ChatServiceSettingsDTO > ChatGetSettingsWithHttpInfo () - { - - var localVarPath = "/api/Chat/settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChatGetSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ChatServiceSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChatServiceSettingsDTO))); - } - - /// - /// Call that returns the settings for the chat service - /// - /// Thrown when fails to make API call - /// Task of ChatServiceSettingsDTO - public async System.Threading.Tasks.Task ChatGetSettingsAsync () - { - ApiResponse localVarResponse = await ChatGetSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// Call that returns the settings for the chat service - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (ChatServiceSettingsDTO) - public async System.Threading.Tasks.Task> ChatGetSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/Chat/settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChatGetSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ChatServiceSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChatServiceSettingsDTO))); - } - - /// - /// This call returns the share option by a share object - /// - /// Thrown when fails to make API call - /// Share data - /// ShareObjectOptionsDTO - public ShareObjectOptionsDTO ChatGetShareOptions (ShareObjectBaseDTO shareObject) - { - ApiResponse localVarResponse = ChatGetShareOptionsWithHttpInfo(shareObject); - return localVarResponse.Data; - } - - /// - /// This call returns the share option by a share object - /// - /// Thrown when fails to make API call - /// Share data - /// ApiResponse of ShareObjectOptionsDTO - public ApiResponse< ShareObjectOptionsDTO > ChatGetShareOptionsWithHttpInfo (ShareObjectBaseDTO shareObject) - { - // verify the required parameter 'shareObject' is set - if (shareObject == null) - throw new ApiException(400, "Missing required parameter 'shareObject' when calling ChatApi->ChatGetShareOptions"); - - var localVarPath = "/api/Chat/ShareOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (shareObject != null && shareObject.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(shareObject); // http body (model) parameter - } - else - { - localVarPostBody = shareObject; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChatGetShareOptions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShareObjectOptionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShareObjectOptionsDTO))); - } - - /// - /// This call returns the share option by a share object - /// - /// Thrown when fails to make API call - /// Share data - /// Task of ShareObjectOptionsDTO - public async System.Threading.Tasks.Task ChatGetShareOptionsAsync (ShareObjectBaseDTO shareObject) - { - ApiResponse localVarResponse = await ChatGetShareOptionsAsyncWithHttpInfo(shareObject); - return localVarResponse.Data; - - } - - /// - /// This call returns the share option by a share object - /// - /// Thrown when fails to make API call - /// Share data - /// Task of ApiResponse (ShareObjectOptionsDTO) - public async System.Threading.Tasks.Task> ChatGetShareOptionsAsyncWithHttpInfo (ShareObjectBaseDTO shareObject) - { - // verify the required parameter 'shareObject' is set - if (shareObject == null) - throw new ApiException(400, "Missing required parameter 'shareObject' when calling ChatApi->ChatGetShareOptions"); - - var localVarPath = "/api/Chat/ShareOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (shareObject != null && shareObject.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(shareObject); // http body (model) parameter - } - else - { - localVarPostBody = shareObject; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChatGetShareOptions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShareObjectOptionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShareObjectOptionsDTO))); - } - - /// - /// This call set the avatar for the user connected - /// - /// Thrown when fails to make API call - /// SetAvatarRequestDto that contain the base64 avatar - /// - public void ChatSetAvatar (SetAvatarRequestDto request) - { - ChatSetAvatarWithHttpInfo(request); - } - - /// - /// This call set the avatar for the user connected - /// - /// Thrown when fails to make API call - /// SetAvatarRequestDto that contain the base64 avatar - /// ApiResponse of Object(void) - public ApiResponse ChatSetAvatarWithHttpInfo (SetAvatarRequestDto request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling ChatApi->ChatSetAvatar"); - - var localVarPath = "/api/Chat/avatar"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChatSetAvatar", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call set the avatar for the user connected - /// - /// Thrown when fails to make API call - /// SetAvatarRequestDto that contain the base64 avatar - /// Task of void - public async System.Threading.Tasks.Task ChatSetAvatarAsync (SetAvatarRequestDto request) - { - await ChatSetAvatarAsyncWithHttpInfo(request); - - } - - /// - /// This call set the avatar for the user connected - /// - /// Thrown when fails to make API call - /// SetAvatarRequestDto that contain the base64 avatar - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ChatSetAvatarAsyncWithHttpInfo (SetAvatarRequestDto request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling ChatApi->ChatSetAvatar"); - - var localVarPath = "/api/Chat/avatar"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChatSetAvatar", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Call that save the settings for the chat service - /// - /// Thrown when fails to make API call - /// Settings of char service - /// - public void ChatSetSettings (ChatServiceSettingsDTO chatServiceSettings) - { - ChatSetSettingsWithHttpInfo(chatServiceSettings); - } - - /// - /// Call that save the settings for the chat service - /// - /// Thrown when fails to make API call - /// Settings of char service - /// ApiResponse of Object(void) - public ApiResponse ChatSetSettingsWithHttpInfo (ChatServiceSettingsDTO chatServiceSettings) - { - // verify the required parameter 'chatServiceSettings' is set - if (chatServiceSettings == null) - throw new ApiException(400, "Missing required parameter 'chatServiceSettings' when calling ChatApi->ChatSetSettings"); - - var localVarPath = "/api/Chat/settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (chatServiceSettings != null && chatServiceSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(chatServiceSettings); // http body (model) parameter - } - else - { - localVarPostBody = chatServiceSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChatSetSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Call that save the settings for the chat service - /// - /// Thrown when fails to make API call - /// Settings of char service - /// Task of void - public async System.Threading.Tasks.Task ChatSetSettingsAsync (ChatServiceSettingsDTO chatServiceSettings) - { - await ChatSetSettingsAsyncWithHttpInfo(chatServiceSettings); - - } - - /// - /// Call that save the settings for the chat service - /// - /// Thrown when fails to make API call - /// Settings of char service - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ChatSetSettingsAsyncWithHttpInfo (ChatServiceSettingsDTO chatServiceSettings) - { - // verify the required parameter 'chatServiceSettings' is set - if (chatServiceSettings == null) - throw new ApiException(400, "Missing required parameter 'chatServiceSettings' when calling ChatApi->ChatSetSettings"); - - var localVarPath = "/api/Chat/settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (chatServiceSettings != null && chatServiceSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(chatServiceSettings); // http body (model) parameter - } - else - { - localVarPostBody = chatServiceSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChatSetSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call share an object to conversation - /// - /// Thrown when fails to make API call - /// Identifier of the conversation - /// Object to share - /// - public void ChatShareObject (int? conversationid, ShareObjectDTO shareObject) - { - ChatShareObjectWithHttpInfo(conversationid, shareObject); - } - - /// - /// This call share an object to conversation - /// - /// Thrown when fails to make API call - /// Identifier of the conversation - /// Object to share - /// ApiResponse of Object(void) - public ApiResponse ChatShareObjectWithHttpInfo (int? conversationid, ShareObjectDTO shareObject) - { - // verify the required parameter 'conversationid' is set - if (conversationid == null) - throw new ApiException(400, "Missing required parameter 'conversationid' when calling ChatApi->ChatShareObject"); - // verify the required parameter 'shareObject' is set - if (shareObject == null) - throw new ApiException(400, "Missing required parameter 'shareObject' when calling ChatApi->ChatShareObject"); - - var localVarPath = "/api/Chat/Share/{conversationid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (conversationid != null) localVarPathParams.Add("conversationid", this.Configuration.ApiClient.ParameterToString(conversationid)); // path parameter - if (shareObject != null && shareObject.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(shareObject); // http body (model) parameter - } - else - { - localVarPostBody = shareObject; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChatShareObject", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call share an object to conversation - /// - /// Thrown when fails to make API call - /// Identifier of the conversation - /// Object to share - /// Task of void - public async System.Threading.Tasks.Task ChatShareObjectAsync (int? conversationid, ShareObjectDTO shareObject) - { - await ChatShareObjectAsyncWithHttpInfo(conversationid, shareObject); - - } - - /// - /// This call share an object to conversation - /// - /// Thrown when fails to make API call - /// Identifier of the conversation - /// Object to share - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ChatShareObjectAsyncWithHttpInfo (int? conversationid, ShareObjectDTO shareObject) - { - // verify the required parameter 'conversationid' is set - if (conversationid == null) - throw new ApiException(400, "Missing required parameter 'conversationid' when calling ChatApi->ChatShareObject"); - // verify the required parameter 'shareObject' is set - if (shareObject == null) - throw new ApiException(400, "Missing required parameter 'shareObject' when calling ChatApi->ChatShareObject"); - - var localVarPath = "/api/Chat/Share/{conversationid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (conversationid != null) localVarPathParams.Add("conversationid", this.Configuration.ApiClient.ParameterToString(conversationid)); // path parameter - if (shareObject != null && shareObject.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(shareObject); // http body (model) parameter - } - else - { - localVarPostBody = shareObject; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChatShareObject", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/CheckInOutApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/CheckInOutApi.cs deleted file mode 100644 index 67de082..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/CheckInOutApi.cs +++ /dev/null @@ -1,1758 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ICheckInOutApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call set file and remove document from checkout list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// - void CheckInOutCheckIn (int? docnumber, string fileId, int? option, bool? undoCheckOut); - - /// - /// This call set file and remove document from checkout list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// ApiResponse of Object(void) - ApiResponse CheckInOutCheckInWithHttpInfo (int? docnumber, string fileId, int? option, bool? undoCheckOut); - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in cache you want to upload - /// - void CheckInOutCheckInForTask (int? processDocId, int? taskWorkId, string fileId); - - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in cache you want to upload - /// ApiResponse of Object(void) - ApiResponse CheckInOutCheckInForTaskWithHttpInfo (int? processDocId, int? taskWorkId, string fileId); - /// - /// This call allows checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// - void CheckInOutCheckOut (int? docNumber); - - /// - /// This call allows checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// ApiResponse of Object(void) - ApiResponse CheckInOutCheckOutWithHttpInfo (int? docNumber); - /// - /// This call allows checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// - void CheckInOutCheckOutForTask (int? processDocId, int? taskWorkId); - - /// - /// This call allows checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// ApiResponse of Object(void) - ApiResponse CheckInOutCheckOutForTaskWithHttpInfo (int? processDocId, int? taskWorkId); - /// - /// This call allows the retrieval of the default profile for archiving based on user connected - /// - /// - /// This method is deprecated. Use api/v2/CheckInOut - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// List<RowSearchResult> - List CheckInOutGetCheckOutProfilesList (SelectDTO selectDto); - - /// - /// This call allows the retrieval of the default profile for archiving based on user connected - /// - /// - /// This method is deprecated. Use api/v2/CheckInOut - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// ApiResponse of List<RowSearchResult> - ApiResponse> CheckInOutGetCheckOutProfilesListWithHttpInfo (SelectDTO selectDto); - /// - /// This call allows to know if the document is in checkout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// bool? - bool? CheckInOutIsAlreadyInCheckOutByUserConnected (int? docnumber); - - /// - /// This call allows to know if the document is in checkout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of bool? - ApiResponse CheckInOutIsAlreadyInCheckOutByUserConnectedWithHttpInfo (int? docnumber); - /// - /// This call allows undo checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// - void CheckInOutUndoCheckOut (List docNumbers); - - /// - /// This call allows undo checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// ApiResponse of Object(void) - ApiResponse CheckInOutUndoCheckOutWithHttpInfo (List docNumbers); - /// - /// This call allows undo checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// - void CheckInOutUndoCheckOutForTask (int? processDocId, int? taskWorkId); - - /// - /// This call allows undo checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// ApiResponse of Object(void) - ApiResponse CheckInOutUndoCheckOutForTaskWithHttpInfo (int? processDocId, int? taskWorkId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call set file and remove document from checkout list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// Task of void - System.Threading.Tasks.Task CheckInOutCheckInAsync (int? docnumber, string fileId, int? option, bool? undoCheckOut); - - /// - /// This call set file and remove document from checkout list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// Task of ApiResponse - System.Threading.Tasks.Task> CheckInOutCheckInAsyncWithHttpInfo (int? docnumber, string fileId, int? option, bool? undoCheckOut); - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in cache you want to upload - /// Task of void - System.Threading.Tasks.Task CheckInOutCheckInForTaskAsync (int? processDocId, int? taskWorkId, string fileId); - - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in cache you want to upload - /// Task of ApiResponse - System.Threading.Tasks.Task> CheckInOutCheckInForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId, string fileId); - /// - /// This call allows checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// Task of void - System.Threading.Tasks.Task CheckInOutCheckOutAsync (int? docNumber); - - /// - /// This call allows checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// Task of ApiResponse - System.Threading.Tasks.Task> CheckInOutCheckOutAsyncWithHttpInfo (int? docNumber); - /// - /// This call allows checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of void - System.Threading.Tasks.Task CheckInOutCheckOutForTaskAsync (int? processDocId, int? taskWorkId); - - /// - /// This call allows checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of ApiResponse - System.Threading.Tasks.Task> CheckInOutCheckOutForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId); - /// - /// This call allows the retrieval of the default profile for archiving based on user connected - /// - /// - /// This method is deprecated. Use api/v2/CheckInOut - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> CheckInOutGetCheckOutProfilesListAsync (SelectDTO selectDto); - - /// - /// This call allows the retrieval of the default profile for archiving based on user connected - /// - /// - /// This method is deprecated. Use api/v2/CheckInOut - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> CheckInOutGetCheckOutProfilesListAsyncWithHttpInfo (SelectDTO selectDto); - /// - /// This call allows to know if the document is in checkout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of bool? - System.Threading.Tasks.Task CheckInOutIsAlreadyInCheckOutByUserConnectedAsync (int? docnumber); - - /// - /// This call allows to know if the document is in checkout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> CheckInOutIsAlreadyInCheckOutByUserConnectedAsyncWithHttpInfo (int? docnumber); - /// - /// This call allows undo checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// Task of void - System.Threading.Tasks.Task CheckInOutUndoCheckOutAsync (List docNumbers); - - /// - /// This call allows undo checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// Task of ApiResponse - System.Threading.Tasks.Task> CheckInOutUndoCheckOutAsyncWithHttpInfo (List docNumbers); - /// - /// This call allows undo checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of void - System.Threading.Tasks.Task CheckInOutUndoCheckOutForTaskAsync (int? processDocId, int? taskWorkId); - - /// - /// This call allows undo checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of ApiResponse - System.Threading.Tasks.Task> CheckInOutUndoCheckOutForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class CheckInOutApi : ICheckInOutApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public CheckInOutApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public CheckInOutApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call set file and remove document from checkout list - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// - public void CheckInOutCheckIn (int? docnumber, string fileId, int? option, bool? undoCheckOut) - { - CheckInOutCheckInWithHttpInfo(docnumber, fileId, option, undoCheckOut); - } - - /// - /// This call set file and remove document from checkout list - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// ApiResponse of Object(void) - public ApiResponse CheckInOutCheckInWithHttpInfo (int? docnumber, string fileId, int? option, bool? undoCheckOut) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling CheckInOutApi->CheckInOutCheckIn"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new ApiException(400, "Missing required parameter 'fileId' when calling CheckInOutApi->CheckInOutCheckIn"); - // verify the required parameter 'option' is set - if (option == null) - throw new ApiException(400, "Missing required parameter 'option' when calling CheckInOutApi->CheckInOutCheckIn"); - // verify the required parameter 'undoCheckOut' is set - if (undoCheckOut == null) - throw new ApiException(400, "Missing required parameter 'undoCheckOut' when calling CheckInOutApi->CheckInOutCheckIn"); - - var localVarPath = "/api/CheckInOut/checkIn/{docnumber}/{fileId}/{option}/{undoCheckOut}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (fileId != null) localVarPathParams.Add("fileId", this.Configuration.ApiClient.ParameterToString(fileId)); // path parameter - if (option != null) localVarPathParams.Add("option", this.Configuration.ApiClient.ParameterToString(option)); // path parameter - if (undoCheckOut != null) localVarPathParams.Add("undoCheckOut", this.Configuration.ApiClient.ParameterToString(undoCheckOut)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutCheckIn", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call set file and remove document from checkout list - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// Task of void - public async System.Threading.Tasks.Task CheckInOutCheckInAsync (int? docnumber, string fileId, int? option, bool? undoCheckOut) - { - await CheckInOutCheckInAsyncWithHttpInfo(docnumber, fileId, option, undoCheckOut); - - } - - /// - /// This call set file and remove document from checkout list - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CheckInOutCheckInAsyncWithHttpInfo (int? docnumber, string fileId, int? option, bool? undoCheckOut) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling CheckInOutApi->CheckInOutCheckIn"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new ApiException(400, "Missing required parameter 'fileId' when calling CheckInOutApi->CheckInOutCheckIn"); - // verify the required parameter 'option' is set - if (option == null) - throw new ApiException(400, "Missing required parameter 'option' when calling CheckInOutApi->CheckInOutCheckIn"); - // verify the required parameter 'undoCheckOut' is set - if (undoCheckOut == null) - throw new ApiException(400, "Missing required parameter 'undoCheckOut' when calling CheckInOutApi->CheckInOutCheckIn"); - - var localVarPath = "/api/CheckInOut/checkIn/{docnumber}/{fileId}/{option}/{undoCheckOut}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (fileId != null) localVarPathParams.Add("fileId", this.Configuration.ApiClient.ParameterToString(fileId)); // path parameter - if (option != null) localVarPathParams.Add("option", this.Configuration.ApiClient.ParameterToString(option)); // path parameter - if (undoCheckOut != null) localVarPathParams.Add("undoCheckOut", this.Configuration.ApiClient.ParameterToString(undoCheckOut)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutCheckIn", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in cache you want to upload - /// - public void CheckInOutCheckInForTask (int? processDocId, int? taskWorkId, string fileId) - { - CheckInOutCheckInForTaskWithHttpInfo(processDocId, taskWorkId, fileId); - } - - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in cache you want to upload - /// ApiResponse of Object(void) - public ApiResponse CheckInOutCheckInForTaskWithHttpInfo (int? processDocId, int? taskWorkId, string fileId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling CheckInOutApi->CheckInOutCheckInForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling CheckInOutApi->CheckInOutCheckInForTask"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new ApiException(400, "Missing required parameter 'fileId' when calling CheckInOutApi->CheckInOutCheckInForTask"); - - var localVarPath = "/api/CheckInOut/checkInForTask/{processDocId}/{taskWorkId}/{fileId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (fileId != null) localVarPathParams.Add("fileId", this.Configuration.ApiClient.ParameterToString(fileId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutCheckInForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in cache you want to upload - /// Task of void - public async System.Threading.Tasks.Task CheckInOutCheckInForTaskAsync (int? processDocId, int? taskWorkId, string fileId) - { - await CheckInOutCheckInForTaskAsyncWithHttpInfo(processDocId, taskWorkId, fileId); - - } - - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in cache you want to upload - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CheckInOutCheckInForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId, string fileId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling CheckInOutApi->CheckInOutCheckInForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling CheckInOutApi->CheckInOutCheckInForTask"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new ApiException(400, "Missing required parameter 'fileId' when calling CheckInOutApi->CheckInOutCheckInForTask"); - - var localVarPath = "/api/CheckInOut/checkInForTask/{processDocId}/{taskWorkId}/{fileId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (fileId != null) localVarPathParams.Add("fileId", this.Configuration.ApiClient.ParameterToString(fileId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutCheckInForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows checkout document - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// - public void CheckInOutCheckOut (int? docNumber) - { - CheckInOutCheckOutWithHttpInfo(docNumber); - } - - /// - /// This call allows checkout document - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// ApiResponse of Object(void) - public ApiResponse CheckInOutCheckOutWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling CheckInOutApi->CheckInOutCheckOut"); - - var localVarPath = "/api/CheckInOut/checkOut/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutCheckOut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows checkout document - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// Task of void - public async System.Threading.Tasks.Task CheckInOutCheckOutAsync (int? docNumber) - { - await CheckInOutCheckOutAsyncWithHttpInfo(docNumber); - - } - - /// - /// This call allows checkout document - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CheckInOutCheckOutAsyncWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling CheckInOutApi->CheckInOutCheckOut"); - - var localVarPath = "/api/CheckInOut/checkOut/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutCheckOut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// - public void CheckInOutCheckOutForTask (int? processDocId, int? taskWorkId) - { - CheckInOutCheckOutForTaskWithHttpInfo(processDocId, taskWorkId); - } - - /// - /// This call allows checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// ApiResponse of Object(void) - public ApiResponse CheckInOutCheckOutForTaskWithHttpInfo (int? processDocId, int? taskWorkId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling CheckInOutApi->CheckInOutCheckOutForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling CheckInOutApi->CheckInOutCheckOutForTask"); - - var localVarPath = "/api/CheckInOut/checkOutTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutCheckOutForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of void - public async System.Threading.Tasks.Task CheckInOutCheckOutForTaskAsync (int? processDocId, int? taskWorkId) - { - await CheckInOutCheckOutForTaskAsyncWithHttpInfo(processDocId, taskWorkId); - - } - - /// - /// This call allows checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CheckInOutCheckOutForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling CheckInOutApi->CheckInOutCheckOutForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling CheckInOutApi->CheckInOutCheckOutForTask"); - - var localVarPath = "/api/CheckInOut/checkOutTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutCheckOutForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows the retrieval of the default profile for archiving based on user connected This method is deprecated. Use api/v2/CheckInOut - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// List<RowSearchResult> - public List CheckInOutGetCheckOutProfilesList (SelectDTO selectDto) - { - ApiResponse> localVarResponse = CheckInOutGetCheckOutProfilesListWithHttpInfo(selectDto); - return localVarResponse.Data; - } - - /// - /// This call allows the retrieval of the default profile for archiving based on user connected This method is deprecated. Use api/v2/CheckInOut - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > CheckInOutGetCheckOutProfilesListWithHttpInfo (SelectDTO selectDto) - { - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling CheckInOutApi->CheckInOutGetCheckOutProfilesList"); - - var localVarPath = "/api/CheckInOut"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutGetCheckOutProfilesList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows the retrieval of the default profile for archiving based on user connected This method is deprecated. Use api/v2/CheckInOut - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> CheckInOutGetCheckOutProfilesListAsync (SelectDTO selectDto) - { - ApiResponse> localVarResponse = await CheckInOutGetCheckOutProfilesListAsyncWithHttpInfo(selectDto); - return localVarResponse.Data; - - } - - /// - /// This call allows the retrieval of the default profile for archiving based on user connected This method is deprecated. Use api/v2/CheckInOut - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> CheckInOutGetCheckOutProfilesListAsyncWithHttpInfo (SelectDTO selectDto) - { - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling CheckInOutApi->CheckInOutGetCheckOutProfilesList"); - - var localVarPath = "/api/CheckInOut"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutGetCheckOutProfilesList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows to know if the document is in checkout - /// - /// Thrown when fails to make API call - /// Document identifier - /// bool? - public bool? CheckInOutIsAlreadyInCheckOutByUserConnected (int? docnumber) - { - ApiResponse localVarResponse = CheckInOutIsAlreadyInCheckOutByUserConnectedWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call allows to know if the document is in checkout - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of bool? - public ApiResponse< bool? > CheckInOutIsAlreadyInCheckOutByUserConnectedWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling CheckInOutApi->CheckInOutIsAlreadyInCheckOutByUserConnected"); - - var localVarPath = "/api/CheckInOut/isInCheckOut/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutIsAlreadyInCheckOutByUserConnected", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call allows to know if the document is in checkout - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of bool? - public async System.Threading.Tasks.Task CheckInOutIsAlreadyInCheckOutByUserConnectedAsync (int? docnumber) - { - ApiResponse localVarResponse = await CheckInOutIsAlreadyInCheckOutByUserConnectedAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call allows to know if the document is in checkout - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> CheckInOutIsAlreadyInCheckOutByUserConnectedAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling CheckInOutApi->CheckInOutIsAlreadyInCheckOutByUserConnected"); - - var localVarPath = "/api/CheckInOut/isInCheckOut/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutIsAlreadyInCheckOutByUserConnected", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call allows undo checkout document - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// - public void CheckInOutUndoCheckOut (List docNumbers) - { - CheckInOutUndoCheckOutWithHttpInfo(docNumbers); - } - - /// - /// This call allows undo checkout document - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// ApiResponse of Object(void) - public ApiResponse CheckInOutUndoCheckOutWithHttpInfo (List docNumbers) - { - // verify the required parameter 'docNumbers' is set - if (docNumbers == null) - throw new ApiException(400, "Missing required parameter 'docNumbers' when calling CheckInOutApi->CheckInOutUndoCheckOut"); - - var localVarPath = "/api/CheckInOut/undoCheckOut"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumbers != null && docNumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docNumbers); // http body (model) parameter - } - else - { - localVarPostBody = docNumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutUndoCheckOut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows undo checkout document - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// Task of void - public async System.Threading.Tasks.Task CheckInOutUndoCheckOutAsync (List docNumbers) - { - await CheckInOutUndoCheckOutAsyncWithHttpInfo(docNumbers); - - } - - /// - /// This call allows undo checkout document - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CheckInOutUndoCheckOutAsyncWithHttpInfo (List docNumbers) - { - // verify the required parameter 'docNumbers' is set - if (docNumbers == null) - throw new ApiException(400, "Missing required parameter 'docNumbers' when calling CheckInOutApi->CheckInOutUndoCheckOut"); - - var localVarPath = "/api/CheckInOut/undoCheckOut"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumbers != null && docNumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docNumbers); // http body (model) parameter - } - else - { - localVarPostBody = docNumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutUndoCheckOut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows undo checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// - public void CheckInOutUndoCheckOutForTask (int? processDocId, int? taskWorkId) - { - CheckInOutUndoCheckOutForTaskWithHttpInfo(processDocId, taskWorkId); - } - - /// - /// This call allows undo checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// ApiResponse of Object(void) - public ApiResponse CheckInOutUndoCheckOutForTaskWithHttpInfo (int? processDocId, int? taskWorkId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling CheckInOutApi->CheckInOutUndoCheckOutForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling CheckInOutApi->CheckInOutUndoCheckOutForTask"); - - var localVarPath = "/api/CheckInOut/undoCheckOutForTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutUndoCheckOutForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows undo checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of void - public async System.Threading.Tasks.Task CheckInOutUndoCheckOutForTaskAsync (int? processDocId, int? taskWorkId) - { - await CheckInOutUndoCheckOutForTaskAsyncWithHttpInfo(processDocId, taskWorkId); - - } - - /// - /// This call allows undo checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CheckInOutUndoCheckOutForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling CheckInOutApi->CheckInOutUndoCheckOutForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling CheckInOutApi->CheckInOutUndoCheckOutForTask"); - - var localVarPath = "/api/CheckInOut/undoCheckOutForTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutUndoCheckOutForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/CheckInOutV2Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/CheckInOutV2Api.cs deleted file mode 100644 index a9077b9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/CheckInOutV2Api.cs +++ /dev/null @@ -1,1774 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ICheckInOutV2Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call set file and remove document from checkout list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// - void CheckInOutV2CheckIn (int? docnumber, string fileId, int? option, bool? undoCheckOut); - - /// - /// This call set file and remove document from checkout list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// ApiResponse of Object(void) - ApiResponse CheckInOutV2CheckInWithHttpInfo (int? docnumber, string fileId, int? option, bool? undoCheckOut); - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in the cache you want to upload - /// State option (overwrite or revise) - /// - void CheckInOutV2CheckInForTask (int? processDocId, int? taskWorkId, string fileId, int? option); - - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in the cache you want to upload - /// State option (overwrite or revise) - /// ApiResponse of Object(void) - ApiResponse CheckInOutV2CheckInForTaskWithHttpInfo (int? processDocId, int? taskWorkId, string fileId, int? option); - /// - /// This call allows checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// - void CheckInOutV2CheckOut (int? docNumber); - - /// - /// This call allows checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// ApiResponse of Object(void) - ApiResponse CheckInOutV2CheckOutWithHttpInfo (int? docNumber); - /// - /// This call allows checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// - void CheckInOutV2CheckOutForTask (int? processDocId, int? taskWorkId); - - /// - /// This call allows checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// ApiResponse of Object(void) - ApiResponse CheckInOutV2CheckOutForTaskWithHttpInfo (int? processDocId, int? taskWorkId); - /// - /// This call allows the retrieval of the default profile for archiving based on user connected. This call could not be compatible with some programming language, in this case use the call api/CheckInOut - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// Object - Object CheckInOutV2GetCheckOutProfilesList (SelectDTO selectDto); - - /// - /// This call allows the retrieval of the default profile for archiving based on user connected. This call could not be compatible with some programming language, in this case use the call api/CheckInOut - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// ApiResponse of Object - ApiResponse CheckInOutV2GetCheckOutProfilesListWithHttpInfo (SelectDTO selectDto); - /// - /// This call allows to know if the document is in checkout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// bool? - bool? CheckInOutV2IsAlreadyInCheckOutByUserConnected (int? docnumber); - - /// - /// This call allows to know if the document is in checkout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of bool? - ApiResponse CheckInOutV2IsAlreadyInCheckOutByUserConnectedWithHttpInfo (int? docnumber); - /// - /// This call allows undo checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// - void CheckInOutV2UndoCheckOut (List docNumbers); - - /// - /// This call allows undo checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// ApiResponse of Object(void) - ApiResponse CheckInOutV2UndoCheckOutWithHttpInfo (List docNumbers); - /// - /// This call allows undo checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// - void CheckInOutV2UndoCheckOutForTask (int? processDocId, int? taskWorkId); - - /// - /// This call allows undo checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// ApiResponse of Object(void) - ApiResponse CheckInOutV2UndoCheckOutForTaskWithHttpInfo (int? processDocId, int? taskWorkId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call set file and remove document from checkout list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// Task of void - System.Threading.Tasks.Task CheckInOutV2CheckInAsync (int? docnumber, string fileId, int? option, bool? undoCheckOut); - - /// - /// This call set file and remove document from checkout list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// Task of ApiResponse - System.Threading.Tasks.Task> CheckInOutV2CheckInAsyncWithHttpInfo (int? docnumber, string fileId, int? option, bool? undoCheckOut); - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in the cache you want to upload - /// State option (overwrite or revise) - /// Task of void - System.Threading.Tasks.Task CheckInOutV2CheckInForTaskAsync (int? processDocId, int? taskWorkId, string fileId, int? option); - - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in the cache you want to upload - /// State option (overwrite or revise) - /// Task of ApiResponse - System.Threading.Tasks.Task> CheckInOutV2CheckInForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId, string fileId, int? option); - /// - /// This call allows checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// Task of void - System.Threading.Tasks.Task CheckInOutV2CheckOutAsync (int? docNumber); - - /// - /// This call allows checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// Task of ApiResponse - System.Threading.Tasks.Task> CheckInOutV2CheckOutAsyncWithHttpInfo (int? docNumber); - /// - /// This call allows checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of void - System.Threading.Tasks.Task CheckInOutV2CheckOutForTaskAsync (int? processDocId, int? taskWorkId); - - /// - /// This call allows checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of ApiResponse - System.Threading.Tasks.Task> CheckInOutV2CheckOutForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId); - /// - /// This call allows the retrieval of the default profile for archiving based on user connected. This call could not be compatible with some programming language, in this case use the call api/CheckInOut - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// Task of Object - System.Threading.Tasks.Task CheckInOutV2GetCheckOutProfilesListAsync (SelectDTO selectDto); - - /// - /// This call allows the retrieval of the default profile for archiving based on user connected. This call could not be compatible with some programming language, in this case use the call api/CheckInOut - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> CheckInOutV2GetCheckOutProfilesListAsyncWithHttpInfo (SelectDTO selectDto); - /// - /// This call allows to know if the document is in checkout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of bool? - System.Threading.Tasks.Task CheckInOutV2IsAlreadyInCheckOutByUserConnectedAsync (int? docnumber); - - /// - /// This call allows to know if the document is in checkout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> CheckInOutV2IsAlreadyInCheckOutByUserConnectedAsyncWithHttpInfo (int? docnumber); - /// - /// This call allows undo checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// Task of void - System.Threading.Tasks.Task CheckInOutV2UndoCheckOutAsync (List docNumbers); - - /// - /// This call allows undo checkout document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// Task of ApiResponse - System.Threading.Tasks.Task> CheckInOutV2UndoCheckOutAsyncWithHttpInfo (List docNumbers); - /// - /// This call allows undo checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of void - System.Threading.Tasks.Task CheckInOutV2UndoCheckOutForTaskAsync (int? processDocId, int? taskWorkId); - - /// - /// This call allows undo checkout document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of ApiResponse - System.Threading.Tasks.Task> CheckInOutV2UndoCheckOutForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class CheckInOutV2Api : ICheckInOutV2Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public CheckInOutV2Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public CheckInOutV2Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call set file and remove document from checkout list - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// - public void CheckInOutV2CheckIn (int? docnumber, string fileId, int? option, bool? undoCheckOut) - { - CheckInOutV2CheckInWithHttpInfo(docnumber, fileId, option, undoCheckOut); - } - - /// - /// This call set file and remove document from checkout list - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// ApiResponse of Object(void) - public ApiResponse CheckInOutV2CheckInWithHttpInfo (int? docnumber, string fileId, int? option, bool? undoCheckOut) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling CheckInOutV2Api->CheckInOutV2CheckIn"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new ApiException(400, "Missing required parameter 'fileId' when calling CheckInOutV2Api->CheckInOutV2CheckIn"); - // verify the required parameter 'option' is set - if (option == null) - throw new ApiException(400, "Missing required parameter 'option' when calling CheckInOutV2Api->CheckInOutV2CheckIn"); - // verify the required parameter 'undoCheckOut' is set - if (undoCheckOut == null) - throw new ApiException(400, "Missing required parameter 'undoCheckOut' when calling CheckInOutV2Api->CheckInOutV2CheckIn"); - - var localVarPath = "/api/v2/CheckInOut/checkIn/{docnumber}/{fileId}/{option}/{undoCheckOut}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (fileId != null) localVarPathParams.Add("fileId", this.Configuration.ApiClient.ParameterToString(fileId)); // path parameter - if (option != null) localVarPathParams.Add("option", this.Configuration.ApiClient.ParameterToString(option)); // path parameter - if (undoCheckOut != null) localVarPathParams.Add("undoCheckOut", this.Configuration.ApiClient.ParameterToString(undoCheckOut)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2CheckIn", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call set file and remove document from checkout list - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// Task of void - public async System.Threading.Tasks.Task CheckInOutV2CheckInAsync (int? docnumber, string fileId, int? option, bool? undoCheckOut) - { - await CheckInOutV2CheckInAsyncWithHttpInfo(docnumber, fileId, option, undoCheckOut); - - } - - /// - /// This call set file and remove document from checkout list - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of file you want to upload - /// State option - /// If import fails execute undo checkout - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CheckInOutV2CheckInAsyncWithHttpInfo (int? docnumber, string fileId, int? option, bool? undoCheckOut) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling CheckInOutV2Api->CheckInOutV2CheckIn"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new ApiException(400, "Missing required parameter 'fileId' when calling CheckInOutV2Api->CheckInOutV2CheckIn"); - // verify the required parameter 'option' is set - if (option == null) - throw new ApiException(400, "Missing required parameter 'option' when calling CheckInOutV2Api->CheckInOutV2CheckIn"); - // verify the required parameter 'undoCheckOut' is set - if (undoCheckOut == null) - throw new ApiException(400, "Missing required parameter 'undoCheckOut' when calling CheckInOutV2Api->CheckInOutV2CheckIn"); - - var localVarPath = "/api/v2/CheckInOut/checkIn/{docnumber}/{fileId}/{option}/{undoCheckOut}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (fileId != null) localVarPathParams.Add("fileId", this.Configuration.ApiClient.ParameterToString(fileId)); // path parameter - if (option != null) localVarPathParams.Add("option", this.Configuration.ApiClient.ParameterToString(option)); // path parameter - if (undoCheckOut != null) localVarPathParams.Add("undoCheckOut", this.Configuration.ApiClient.ParameterToString(undoCheckOut)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2CheckIn", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in the cache you want to upload - /// State option (overwrite or revise) - /// - public void CheckInOutV2CheckInForTask (int? processDocId, int? taskWorkId, string fileId, int? option) - { - CheckInOutV2CheckInForTaskWithHttpInfo(processDocId, taskWorkId, fileId, option); - } - - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in the cache you want to upload - /// State option (overwrite or revise) - /// ApiResponse of Object(void) - public ApiResponse CheckInOutV2CheckInForTaskWithHttpInfo (int? processDocId, int? taskWorkId, string fileId, int? option) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling CheckInOutV2Api->CheckInOutV2CheckInForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling CheckInOutV2Api->CheckInOutV2CheckInForTask"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new ApiException(400, "Missing required parameter 'fileId' when calling CheckInOutV2Api->CheckInOutV2CheckInForTask"); - // verify the required parameter 'option' is set - if (option == null) - throw new ApiException(400, "Missing required parameter 'option' when calling CheckInOutV2Api->CheckInOutV2CheckInForTask"); - - var localVarPath = "/api/v2/CheckInOut/checkInForTask/{processDocId}/{taskWorkId}/{fileId}/{option}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (fileId != null) localVarPathParams.Add("fileId", this.Configuration.ApiClient.ParameterToString(fileId)); // path parameter - if (option != null) localVarPathParams.Add("option", this.Configuration.ApiClient.ParameterToString(option)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2CheckInForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in the cache you want to upload - /// State option (overwrite or revise) - /// Task of void - public async System.Threading.Tasks.Task CheckInOutV2CheckInForTaskAsync (int? processDocId, int? taskWorkId, string fileId, int? option) - { - await CheckInOutV2CheckInForTaskAsyncWithHttpInfo(processDocId, taskWorkId, fileId, option); - - } - - /// - /// This call set file and remove document from checkout list when document is used in taskwork - /// - /// Thrown when fails to make API call - /// Identifier of the document you want to checkin - /// Identifier of the document you want to checkin - /// Identifier of file in the cache you want to upload - /// State option (overwrite or revise) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CheckInOutV2CheckInForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId, string fileId, int? option) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling CheckInOutV2Api->CheckInOutV2CheckInForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling CheckInOutV2Api->CheckInOutV2CheckInForTask"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new ApiException(400, "Missing required parameter 'fileId' when calling CheckInOutV2Api->CheckInOutV2CheckInForTask"); - // verify the required parameter 'option' is set - if (option == null) - throw new ApiException(400, "Missing required parameter 'option' when calling CheckInOutV2Api->CheckInOutV2CheckInForTask"); - - var localVarPath = "/api/v2/CheckInOut/checkInForTask/{processDocId}/{taskWorkId}/{fileId}/{option}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (fileId != null) localVarPathParams.Add("fileId", this.Configuration.ApiClient.ParameterToString(fileId)); // path parameter - if (option != null) localVarPathParams.Add("option", this.Configuration.ApiClient.ParameterToString(option)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2CheckInForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows checkout document - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// - public void CheckInOutV2CheckOut (int? docNumber) - { - CheckInOutV2CheckOutWithHttpInfo(docNumber); - } - - /// - /// This call allows checkout document - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// ApiResponse of Object(void) - public ApiResponse CheckInOutV2CheckOutWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling CheckInOutV2Api->CheckInOutV2CheckOut"); - - var localVarPath = "/api/v2/CheckInOut/checkOut/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2CheckOut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows checkout document - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// Task of void - public async System.Threading.Tasks.Task CheckInOutV2CheckOutAsync (int? docNumber) - { - await CheckInOutV2CheckOutAsyncWithHttpInfo(docNumber); - - } - - /// - /// This call allows checkout document - /// - /// Thrown when fails to make API call - /// The identifier of document to checkout - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CheckInOutV2CheckOutAsyncWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling CheckInOutV2Api->CheckInOutV2CheckOut"); - - var localVarPath = "/api/v2/CheckInOut/checkOut/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2CheckOut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// - public void CheckInOutV2CheckOutForTask (int? processDocId, int? taskWorkId) - { - CheckInOutV2CheckOutForTaskWithHttpInfo(processDocId, taskWorkId); - } - - /// - /// This call allows checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// ApiResponse of Object(void) - public ApiResponse CheckInOutV2CheckOutForTaskWithHttpInfo (int? processDocId, int? taskWorkId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling CheckInOutV2Api->CheckInOutV2CheckOutForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling CheckInOutV2Api->CheckInOutV2CheckOutForTask"); - - var localVarPath = "/api/v2/CheckInOut/checkOutTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2CheckOutForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of void - public async System.Threading.Tasks.Task CheckInOutV2CheckOutForTaskAsync (int? processDocId, int? taskWorkId) - { - await CheckInOutV2CheckOutForTaskAsyncWithHttpInfo(processDocId, taskWorkId); - - } - - /// - /// This call allows checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CheckInOutV2CheckOutForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling CheckInOutV2Api->CheckInOutV2CheckOutForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling CheckInOutV2Api->CheckInOutV2CheckOutForTask"); - - var localVarPath = "/api/v2/CheckInOut/checkOutTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2CheckOutForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows the retrieval of the default profile for archiving based on user connected. This call could not be compatible with some programming language, in this case use the call api/CheckInOut - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// Object - public Object CheckInOutV2GetCheckOutProfilesList (SelectDTO selectDto) - { - ApiResponse localVarResponse = CheckInOutV2GetCheckOutProfilesListWithHttpInfo(selectDto); - return localVarResponse.Data; - } - - /// - /// This call allows the retrieval of the default profile for archiving based on user connected. This call could not be compatible with some programming language, in this case use the call api/CheckInOut - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// ApiResponse of Object - public ApiResponse< Object > CheckInOutV2GetCheckOutProfilesListWithHttpInfo (SelectDTO selectDto) - { - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling CheckInOutV2Api->CheckInOutV2GetCheckOutProfilesList"); - - var localVarPath = "/api/v2/CheckInOut"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2GetCheckOutProfilesList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call allows the retrieval of the default profile for archiving based on user connected. This call could not be compatible with some programming language, in this case use the call api/CheckInOut - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// Task of Object - public async System.Threading.Tasks.Task CheckInOutV2GetCheckOutProfilesListAsync (SelectDTO selectDto) - { - ApiResponse localVarResponse = await CheckInOutV2GetCheckOutProfilesListAsyncWithHttpInfo(selectDto); - return localVarResponse.Data; - - } - - /// - /// This call allows the retrieval of the default profile for archiving based on user connected. This call could not be compatible with some programming language, in this case use the call api/CheckInOut - /// - /// Thrown when fails to make API call - /// Seleted data for search - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> CheckInOutV2GetCheckOutProfilesListAsyncWithHttpInfo (SelectDTO selectDto) - { - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling CheckInOutV2Api->CheckInOutV2GetCheckOutProfilesList"); - - var localVarPath = "/api/v2/CheckInOut"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2GetCheckOutProfilesList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call allows to know if the document is in checkout - /// - /// Thrown when fails to make API call - /// Document identifier - /// bool? - public bool? CheckInOutV2IsAlreadyInCheckOutByUserConnected (int? docnumber) - { - ApiResponse localVarResponse = CheckInOutV2IsAlreadyInCheckOutByUserConnectedWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call allows to know if the document is in checkout - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of bool? - public ApiResponse< bool? > CheckInOutV2IsAlreadyInCheckOutByUserConnectedWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling CheckInOutV2Api->CheckInOutV2IsAlreadyInCheckOutByUserConnected"); - - var localVarPath = "/api/v2/CheckInOut/isInCheckOut/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2IsAlreadyInCheckOutByUserConnected", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call allows to know if the document is in checkout - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of bool? - public async System.Threading.Tasks.Task CheckInOutV2IsAlreadyInCheckOutByUserConnectedAsync (int? docnumber) - { - ApiResponse localVarResponse = await CheckInOutV2IsAlreadyInCheckOutByUserConnectedAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call allows to know if the document is in checkout - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> CheckInOutV2IsAlreadyInCheckOutByUserConnectedAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling CheckInOutV2Api->CheckInOutV2IsAlreadyInCheckOutByUserConnected"); - - var localVarPath = "/api/v2/CheckInOut/isInCheckOut/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2IsAlreadyInCheckOutByUserConnected", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call allows undo checkout document - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// - public void CheckInOutV2UndoCheckOut (List docNumbers) - { - CheckInOutV2UndoCheckOutWithHttpInfo(docNumbers); - } - - /// - /// This call allows undo checkout document - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// ApiResponse of Object(void) - public ApiResponse CheckInOutV2UndoCheckOutWithHttpInfo (List docNumbers) - { - // verify the required parameter 'docNumbers' is set - if (docNumbers == null) - throw new ApiException(400, "Missing required parameter 'docNumbers' when calling CheckInOutV2Api->CheckInOutV2UndoCheckOut"); - - var localVarPath = "/api/v2/CheckInOut/undoCheckOut"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumbers != null && docNumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docNumbers); // http body (model) parameter - } - else - { - localVarPostBody = docNumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2UndoCheckOut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows undo checkout document - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// Task of void - public async System.Threading.Tasks.Task CheckInOutV2UndoCheckOutAsync (List docNumbers) - { - await CheckInOutV2UndoCheckOutAsyncWithHttpInfo(docNumbers); - - } - - /// - /// This call allows undo checkout document - /// - /// Thrown when fails to make API call - /// Array of document identifiers - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CheckInOutV2UndoCheckOutAsyncWithHttpInfo (List docNumbers) - { - // verify the required parameter 'docNumbers' is set - if (docNumbers == null) - throw new ApiException(400, "Missing required parameter 'docNumbers' when calling CheckInOutV2Api->CheckInOutV2UndoCheckOut"); - - var localVarPath = "/api/v2/CheckInOut/undoCheckOut"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumbers != null && docNumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docNumbers); // http body (model) parameter - } - else - { - localVarPostBody = docNumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2UndoCheckOut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows undo checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// - public void CheckInOutV2UndoCheckOutForTask (int? processDocId, int? taskWorkId) - { - CheckInOutV2UndoCheckOutForTaskWithHttpInfo(processDocId, taskWorkId); - } - - /// - /// This call allows undo checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// ApiResponse of Object(void) - public ApiResponse CheckInOutV2UndoCheckOutForTaskWithHttpInfo (int? processDocId, int? taskWorkId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling CheckInOutV2Api->CheckInOutV2UndoCheckOutForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling CheckInOutV2Api->CheckInOutV2UndoCheckOutForTask"); - - var localVarPath = "/api/v2/CheckInOut/undoCheckOutForTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2UndoCheckOutForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows undo checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of void - public async System.Threading.Tasks.Task CheckInOutV2UndoCheckOutForTaskAsync (int? processDocId, int? taskWorkId) - { - await CheckInOutV2UndoCheckOutForTaskAsyncWithHttpInfo(processDocId, taskWorkId); - - } - - /// - /// This call allows undo checkout document for task - /// - /// Thrown when fails to make API call - /// The process document identifier of profile to checkout - /// The taskWork identifier for the profile to checkout - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CheckInOutV2UndoCheckOutForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling CheckInOutV2Api->CheckInOutV2UndoCheckOutForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling CheckInOutV2Api->CheckInOutV2UndoCheckOutForTask"); - - var localVarPath = "/api/v2/CheckInOut/undoCheckOutForTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CheckInOutV2UndoCheckOutForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ClassAdditionalFieldsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ClassAdditionalFieldsApi.cs deleted file mode 100644 index 8272425..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ClassAdditionalFieldsApi.cs +++ /dev/null @@ -1,656 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IClassAdditionalFieldsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) - /// - /// - /// This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// List<RowSearchResult> - List ClassAdditionalFieldsAdditionalFieldClassComposeValues (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers); - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) - /// - /// - /// This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// ApiResponse of List<RowSearchResult> - ApiResponse> ClassAdditionalFieldsAdditionalFieldClassComposeValuesWithHttpInfo (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers); - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) - /// - /// - /// This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// List<RowSearchResult> - List ClassAdditionalFieldsAdditionalFieldClassComposeValues_0 (string fieldName, int? documentTypeSystemId, List docNumbers); - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) - /// - /// - /// This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// ApiResponse of List<RowSearchResult> - ApiResponse> ClassAdditionalFieldsAdditionalFieldClassComposeValues_0WithHttpInfo (string fieldName, int? documentTypeSystemId, List docNumbers); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) - /// - /// - /// This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> ClassAdditionalFieldsAdditionalFieldClassComposeValuesAsync (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers); - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) - /// - /// - /// This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> ClassAdditionalFieldsAdditionalFieldClassComposeValuesAsyncWithHttpInfo (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers); - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) - /// - /// - /// This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> ClassAdditionalFieldsAdditionalFieldClassComposeValues_0Async (string fieldName, int? documentTypeSystemId, List docNumbers); - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) - /// - /// - /// This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> ClassAdditionalFieldsAdditionalFieldClassComposeValues_0AsyncWithHttpInfo (string fieldName, int? documentTypeSystemId, List docNumbers); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ClassAdditionalFieldsApi : IClassAdditionalFieldsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ClassAdditionalFieldsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ClassAdditionalFieldsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// List<RowSearchResult> - public List ClassAdditionalFieldsAdditionalFieldClassComposeValues (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers) - { - ApiResponse> localVarResponse = ClassAdditionalFieldsAdditionalFieldClassComposeValuesWithHttpInfo(fieldName, documentType, tipo2, tipo3, docNumbers); - return localVarResponse.Data; - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > ClassAdditionalFieldsAdditionalFieldClassComposeValuesWithHttpInfo (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers) - { - // verify the required parameter 'fieldName' is set - if (fieldName == null) - throw new ApiException(400, "Missing required parameter 'fieldName' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues"); - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues"); - // verify the required parameter 'docNumbers' is set - if (docNumbers == null) - throw new ApiException(400, "Missing required parameter 'docNumbers' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues"); - - var localVarPath = "/api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldName != null) localVarPathParams.Add("fieldName", this.Configuration.ApiClient.ParameterToString(fieldName)); // path parameter - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - if (docNumbers != null && docNumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docNumbers); // http body (model) parameter - } - else - { - localVarPostBody = docNumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClassAdditionalFieldsAdditionalFieldClassComposeValues", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> ClassAdditionalFieldsAdditionalFieldClassComposeValuesAsync (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers) - { - ApiResponse> localVarResponse = await ClassAdditionalFieldsAdditionalFieldClassComposeValuesAsyncWithHttpInfo(fieldName, documentType, tipo2, tipo3, docNumbers); - return localVarResponse.Data; - - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> ClassAdditionalFieldsAdditionalFieldClassComposeValuesAsyncWithHttpInfo (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers) - { - // verify the required parameter 'fieldName' is set - if (fieldName == null) - throw new ApiException(400, "Missing required parameter 'fieldName' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues"); - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues"); - // verify the required parameter 'docNumbers' is set - if (docNumbers == null) - throw new ApiException(400, "Missing required parameter 'docNumbers' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues"); - - var localVarPath = "/api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldName != null) localVarPathParams.Add("fieldName", this.Configuration.ApiClient.ParameterToString(fieldName)); // path parameter - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - if (docNumbers != null && docNumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docNumbers); // http body (model) parameter - } - else - { - localVarPostBody = docNumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClassAdditionalFieldsAdditionalFieldClassComposeValues", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// List<RowSearchResult> - public List ClassAdditionalFieldsAdditionalFieldClassComposeValues_0 (string fieldName, int? documentTypeSystemId, List docNumbers) - { - ApiResponse> localVarResponse = ClassAdditionalFieldsAdditionalFieldClassComposeValues_0WithHttpInfo(fieldName, documentTypeSystemId, docNumbers); - return localVarResponse.Data; - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > ClassAdditionalFieldsAdditionalFieldClassComposeValues_0WithHttpInfo (string fieldName, int? documentTypeSystemId, List docNumbers) - { - // verify the required parameter 'fieldName' is set - if (fieldName == null) - throw new ApiException(400, "Missing required parameter 'fieldName' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues_0"); - // verify the required parameter 'documentTypeSystemId' is set - if (documentTypeSystemId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeSystemId' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues_0"); - // verify the required parameter 'docNumbers' is set - if (docNumbers == null) - throw new ApiException(400, "Missing required parameter 'docNumbers' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues_0"); - - var localVarPath = "/api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldName != null) localVarPathParams.Add("fieldName", this.Configuration.ApiClient.ParameterToString(fieldName)); // path parameter - if (documentTypeSystemId != null) localVarPathParams.Add("documentTypeSystemId", this.Configuration.ApiClient.ParameterToString(documentTypeSystemId)); // path parameter - if (docNumbers != null && docNumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docNumbers); // http body (model) parameter - } - else - { - localVarPostBody = docNumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClassAdditionalFieldsAdditionalFieldClassComposeValues_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> ClassAdditionalFieldsAdditionalFieldClassComposeValues_0Async (string fieldName, int? documentTypeSystemId, List docNumbers) - { - ApiResponse> localVarResponse = await ClassAdditionalFieldsAdditionalFieldClassComposeValues_0AsyncWithHttpInfo(fieldName, documentTypeSystemId, docNumbers); - return localVarResponse.Data; - - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration) This method is deprecated. Use api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> ClassAdditionalFieldsAdditionalFieldClassComposeValues_0AsyncWithHttpInfo (string fieldName, int? documentTypeSystemId, List docNumbers) - { - // verify the required parameter 'fieldName' is set - if (fieldName == null) - throw new ApiException(400, "Missing required parameter 'fieldName' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues_0"); - // verify the required parameter 'documentTypeSystemId' is set - if (documentTypeSystemId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeSystemId' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues_0"); - // verify the required parameter 'docNumbers' is set - if (docNumbers == null) - throw new ApiException(400, "Missing required parameter 'docNumbers' when calling ClassAdditionalFieldsApi->ClassAdditionalFieldsAdditionalFieldClassComposeValues_0"); - - var localVarPath = "/api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldName != null) localVarPathParams.Add("fieldName", this.Configuration.ApiClient.ParameterToString(fieldName)); // path parameter - if (documentTypeSystemId != null) localVarPathParams.Add("documentTypeSystemId", this.Configuration.ApiClient.ParameterToString(documentTypeSystemId)); // path parameter - if (docNumbers != null && docNumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docNumbers); // http body (model) parameter - } - else - { - localVarPostBody = docNumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClassAdditionalFieldsAdditionalFieldClassComposeValues_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ClassAdditionalFieldsV2Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/ClassAdditionalFieldsV2Api.cs deleted file mode 100644 index 6175eb4..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ClassAdditionalFieldsV2Api.cs +++ /dev/null @@ -1,655 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IClassAdditionalFieldsV2Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// Object - Object ClassAdditionalFieldsV2AdditionalFieldClassComposeValues (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers); - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// ApiResponse of Object - ApiResponse ClassAdditionalFieldsV2AdditionalFieldClassComposeValuesWithHttpInfo (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers); - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// Object - Object ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0 (string fieldName, int? documentTypeSystemId, List docNumbers); - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// ApiResponse of Object - ApiResponse ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0WithHttpInfo (string fieldName, int? documentTypeSystemId, List docNumbers); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// Task of Object - System.Threading.Tasks.Task ClassAdditionalFieldsV2AdditionalFieldClassComposeValuesAsync (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers); - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ClassAdditionalFieldsV2AdditionalFieldClassComposeValuesAsyncWithHttpInfo (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers); - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// Task of Object - System.Threading.Tasks.Task ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0Async (string fieldName, int? documentTypeSystemId, List docNumbers); - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0AsyncWithHttpInfo (string fieldName, int? documentTypeSystemId, List docNumbers); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ClassAdditionalFieldsV2Api : IClassAdditionalFieldsV2Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ClassAdditionalFieldsV2Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ClassAdditionalFieldsV2Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// Object - public Object ClassAdditionalFieldsV2AdditionalFieldClassComposeValues (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers) - { - ApiResponse localVarResponse = ClassAdditionalFieldsV2AdditionalFieldClassComposeValuesWithHttpInfo(fieldName, documentType, tipo2, tipo3, docNumbers); - return localVarResponse.Data; - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// ApiResponse of Object - public ApiResponse< Object > ClassAdditionalFieldsV2AdditionalFieldClassComposeValuesWithHttpInfo (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers) - { - // verify the required parameter 'fieldName' is set - if (fieldName == null) - throw new ApiException(400, "Missing required parameter 'fieldName' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues"); - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues"); - // verify the required parameter 'docNumbers' is set - if (docNumbers == null) - throw new ApiException(400, "Missing required parameter 'docNumbers' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues"); - - var localVarPath = "/api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldName != null) localVarPathParams.Add("fieldName", this.Configuration.ApiClient.ParameterToString(fieldName)); // path parameter - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - if (docNumbers != null && docNumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docNumbers); // http body (model) parameter - } - else - { - localVarPostBody = docNumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClassAdditionalFieldsV2AdditionalFieldClassComposeValues", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// Task of Object - public async System.Threading.Tasks.Task ClassAdditionalFieldsV2AdditionalFieldClassComposeValuesAsync (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers) - { - ApiResponse localVarResponse = await ClassAdditionalFieldsV2AdditionalFieldClassComposeValuesAsyncWithHttpInfo(fieldName, documentType, tipo2, tipo3, docNumbers); - return localVarResponse.Data; - - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Documents Identifier in the additional field - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ClassAdditionalFieldsV2AdditionalFieldClassComposeValuesAsyncWithHttpInfo (string fieldName, int? documentType, int? tipo2, int? tipo3, List docNumbers) - { - // verify the required parameter 'fieldName' is set - if (fieldName == null) - throw new ApiException(400, "Missing required parameter 'fieldName' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues"); - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues"); - // verify the required parameter 'docNumbers' is set - if (docNumbers == null) - throw new ApiException(400, "Missing required parameter 'docNumbers' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues"); - - var localVarPath = "/api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldName != null) localVarPathParams.Add("fieldName", this.Configuration.ApiClient.ParameterToString(fieldName)); // path parameter - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - if (docNumbers != null && docNumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docNumbers); // http body (model) parameter - } - else - { - localVarPostBody = docNumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClassAdditionalFieldsV2AdditionalFieldClassComposeValues", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// Object - public Object ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0 (string fieldName, int? documentTypeSystemId, List docNumbers) - { - ApiResponse localVarResponse = ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0WithHttpInfo(fieldName, documentTypeSystemId, docNumbers); - return localVarResponse.Data; - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// ApiResponse of Object - public ApiResponse< Object > ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0WithHttpInfo (string fieldName, int? documentTypeSystemId, List docNumbers) - { - // verify the required parameter 'fieldName' is set - if (fieldName == null) - throw new ApiException(400, "Missing required parameter 'fieldName' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0"); - // verify the required parameter 'documentTypeSystemId' is set - if (documentTypeSystemId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeSystemId' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0"); - // verify the required parameter 'docNumbers' is set - if (docNumbers == null) - throw new ApiException(400, "Missing required parameter 'docNumbers' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0"); - - var localVarPath = "/api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldName != null) localVarPathParams.Add("fieldName", this.Configuration.ApiClient.ParameterToString(fieldName)); // path parameter - if (documentTypeSystemId != null) localVarPathParams.Add("documentTypeSystemId", this.Configuration.ApiClient.ParameterToString(documentTypeSystemId)); // path parameter - if (docNumbers != null && docNumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docNumbers); // http body (model) parameter - } - else - { - localVarPostBody = docNumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// Task of Object - public async System.Threading.Tasks.Task ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0Async (string fieldName, int? documentTypeSystemId, List docNumbers) - { - ApiResponse localVarResponse = await ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0AsyncWithHttpInfo(fieldName, documentTypeSystemId, docNumbers); - return localVarResponse.Data; - - } - - /// - /// This call retrieve the entire datasource for values in an class additional fields (the call compose columns based on call additional field configuration). This call could not be compatible with some programming language, in this case use the call api/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId} - /// - /// Thrown when fails to make API call - /// Name of the additional field - /// Document type - /// Documents Identifier in the additional field - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0AsyncWithHttpInfo (string fieldName, int? documentTypeSystemId, List docNumbers) - { - // verify the required parameter 'fieldName' is set - if (fieldName == null) - throw new ApiException(400, "Missing required parameter 'fieldName' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0"); - // verify the required parameter 'documentTypeSystemId' is set - if (documentTypeSystemId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeSystemId' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0"); - // verify the required parameter 'docNumbers' is set - if (docNumbers == null) - throw new ApiException(400, "Missing required parameter 'docNumbers' when calling ClassAdditionalFieldsV2Api->ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0"); - - var localVarPath = "/api/v2/ClassAdditionalFields/fieldclasscomposevalues/{fieldName}/{documentTypeSystemId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldName != null) localVarPathParams.Add("fieldName", this.Configuration.ApiClient.ParameterToString(fieldName)); // path parameter - if (documentTypeSystemId != null) localVarPathParams.Add("documentTypeSystemId", this.Configuration.ApiClient.ParameterToString(documentTypeSystemId)); // path parameter - if (docNumbers != null && docNumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docNumbers); // http body (model) parameter - } - else - { - localVarPostBody = docNumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClassAdditionalFieldsV2AdditionalFieldClassComposeValues_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ClientSettingsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ClientSettingsApi.cs deleted file mode 100644 index 7d5f3c8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ClientSettingsApi.cs +++ /dev/null @@ -1,2945 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IClientSettingsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the settings of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Object - Object ClientSettingsGetPluginSettings (string pluginId); - - /// - /// This call returns the settings of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object - ApiResponse ClientSettingsGetPluginSettingsWithHttpInfo (string pluginId); - /// - /// This call returns the settings of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// - /// Object - Object ClientSettingsGetPluginSettings_0 (string pluginId, string instanceId, string desktopId); - - /// - /// This call returns the settings of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// - /// ApiResponse of Object - ApiResponse ClientSettingsGetPluginSettings_0WithHttpInfo (string pluginId, string instanceId, string desktopId); - /// - /// This call returns the plugin settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// Object - Object ClientSettingsGetPluginUserSettings (PluginSettingRequest pluginRequest); - - /// - /// This call returns the plugin settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// ApiResponse of Object - ApiResponse ClientSettingsGetPluginUserSettingsWithHttpInfo (PluginSettingRequest pluginRequest); - /// - /// This call returns the settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object - Object ClientSettingsGetSettings (); - - /// - /// This call returns the settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of Object - ApiResponse ClientSettingsGetSettingsWithHttpInfo (); - /// - /// This call returns the settings of system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object - Object ClientSettingsGetSystemSettings (); - - /// - /// This call returns the settings of system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of Object - ApiResponse ClientSettingsGetSystemSettingsWithHttpInfo (); - /// - /// This call returns the widget settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Object - Object ClientSettingsGetWidgetSettings (string id, string instanceId, int? desktopId); - - /// - /// This call returns the widget settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// ApiResponse of Object - ApiResponse ClientSettingsGetWidgetSettingsWithHttpInfo (string id, string instanceId, int? desktopId); - /// - /// This call returns the widget settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Object - Object ClientSettingsGetWidgetUserSettings (string id, string instanceId, int? desktopId); - - /// - /// This call returns the widget settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// ApiResponse of Object - ApiResponse ClientSettingsGetWidgetUserSettingsWithHttpInfo (string id, string instanceId, int? desktopId); - /// - /// This call upade the setting of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// - void ClientSettingsUpdatePluginSetting (string pluginId, Object setting); - - /// - /// This call upade the setting of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object(void) - ApiResponse ClientSettingsUpdatePluginSettingWithHttpInfo (string pluginId, Object setting); - /// - /// This call upade the setting of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// - void ClientSettingsUpdatePluginSetting_0 (string pluginId, string instanceId, string desktopId, Object setting); - - /// - /// This call upade the setting of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// ApiResponse of Object(void) - ApiResponse ClientSettingsUpdatePluginSetting_0WithHttpInfo (string pluginId, string instanceId, string desktopId, Object setting); - /// - /// This call upade the plugin settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// - void ClientSettingsUpdatePluginUserSetting (PluginSettingRequest pluginRequest); - - /// - /// This call upade the plugin settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// ApiResponse of Object(void) - ApiResponse ClientSettingsUpdatePluginUserSettingWithHttpInfo (PluginSettingRequest pluginRequest); - /// - /// This call upade the setting of system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings information to update - /// - void ClientSettingsUpdateUserSetting (Object setting); - - /// - /// This call upade the setting of system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings information to update - /// ApiResponse of Object(void) - ApiResponse ClientSettingsUpdateUserSettingWithHttpInfo (Object setting); - /// - /// This call upade the widget settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// - void ClientSettingsUpdateWidgetSetting (string id, string instanceId, int? desktopId, Object userSettings); - - /// - /// This call upade the widget settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// ApiResponse of Object(void) - ApiResponse ClientSettingsUpdateWidgetSettingWithHttpInfo (string id, string instanceId, int? desktopId, Object userSettings); - /// - /// This call upade the widget settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// - void ClientSettingsUpdateWidgetUserSetting (string id, string instanceId, int? desktopId, Object userSettings); - - /// - /// This call upade the widget settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// ApiResponse of Object(void) - ApiResponse ClientSettingsUpdateWidgetUserSettingWithHttpInfo (string id, string instanceId, int? desktopId, Object userSettings); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the settings of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of Object - System.Threading.Tasks.Task ClientSettingsGetPluginSettingsAsync (string pluginId); - - /// - /// This call returns the settings of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ClientSettingsGetPluginSettingsAsyncWithHttpInfo (string pluginId); - /// - /// This call returns the settings of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// - /// Task of Object - System.Threading.Tasks.Task ClientSettingsGetPluginSettings_0Async (string pluginId, string instanceId, string desktopId); - - /// - /// This call returns the settings of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ClientSettingsGetPluginSettings_0AsyncWithHttpInfo (string pluginId, string instanceId, string desktopId); - /// - /// This call returns the plugin settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// Task of Object - System.Threading.Tasks.Task ClientSettingsGetPluginUserSettingsAsync (PluginSettingRequest pluginRequest); - - /// - /// This call returns the plugin settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ClientSettingsGetPluginUserSettingsAsyncWithHttpInfo (PluginSettingRequest pluginRequest); - /// - /// This call returns the settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of Object - System.Threading.Tasks.Task ClientSettingsGetSettingsAsync (); - - /// - /// This call returns the settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ClientSettingsGetSettingsAsyncWithHttpInfo (); - /// - /// This call returns the settings of system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of Object - System.Threading.Tasks.Task ClientSettingsGetSystemSettingsAsync (); - - /// - /// This call returns the settings of system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ClientSettingsGetSystemSettingsAsyncWithHttpInfo (); - /// - /// This call returns the widget settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Task of Object - System.Threading.Tasks.Task ClientSettingsGetWidgetSettingsAsync (string id, string instanceId, int? desktopId); - - /// - /// This call returns the widget settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ClientSettingsGetWidgetSettingsAsyncWithHttpInfo (string id, string instanceId, int? desktopId); - /// - /// This call returns the widget settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Task of Object - System.Threading.Tasks.Task ClientSettingsGetWidgetUserSettingsAsync (string id, string instanceId, int? desktopId); - - /// - /// This call returns the widget settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ClientSettingsGetWidgetUserSettingsAsyncWithHttpInfo (string id, string instanceId, int? desktopId); - /// - /// This call upade the setting of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of void - System.Threading.Tasks.Task ClientSettingsUpdatePluginSettingAsync (string pluginId, Object setting); - - /// - /// This call upade the setting of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> ClientSettingsUpdatePluginSettingAsyncWithHttpInfo (string pluginId, Object setting); - /// - /// This call upade the setting of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// Task of void - System.Threading.Tasks.Task ClientSettingsUpdatePluginSetting_0Async (string pluginId, string instanceId, string desktopId, Object setting); - - /// - /// This call upade the setting of plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> ClientSettingsUpdatePluginSetting_0AsyncWithHttpInfo (string pluginId, string instanceId, string desktopId, Object setting); - /// - /// This call upade the plugin settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// Task of void - System.Threading.Tasks.Task ClientSettingsUpdatePluginUserSettingAsync (PluginSettingRequest pluginRequest); - - /// - /// This call upade the plugin settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// Task of ApiResponse - System.Threading.Tasks.Task> ClientSettingsUpdatePluginUserSettingAsyncWithHttpInfo (PluginSettingRequest pluginRequest); - /// - /// This call upade the setting of system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings information to update - /// Task of void - System.Threading.Tasks.Task ClientSettingsUpdateUserSettingAsync (Object setting); - - /// - /// This call upade the setting of system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings information to update - /// Task of ApiResponse - System.Threading.Tasks.Task> ClientSettingsUpdateUserSettingAsyncWithHttpInfo (Object setting); - /// - /// This call upade the widget settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// Task of void - System.Threading.Tasks.Task ClientSettingsUpdateWidgetSettingAsync (string id, string instanceId, int? desktopId, Object userSettings); - - /// - /// This call upade the widget settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// Task of ApiResponse - System.Threading.Tasks.Task> ClientSettingsUpdateWidgetSettingAsyncWithHttpInfo (string id, string instanceId, int? desktopId, Object userSettings); - /// - /// This call upade the widget settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// Task of void - System.Threading.Tasks.Task ClientSettingsUpdateWidgetUserSettingAsync (string id, string instanceId, int? desktopId, Object userSettings); - - /// - /// This call upade the widget settings of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// Task of ApiResponse - System.Threading.Tasks.Task> ClientSettingsUpdateWidgetUserSettingAsyncWithHttpInfo (string id, string instanceId, int? desktopId, Object userSettings); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ClientSettingsApi : IClientSettingsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ClientSettingsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ClientSettingsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the settings of plugin - /// - /// Thrown when fails to make API call - /// - /// Object - public Object ClientSettingsGetPluginSettings (string pluginId) - { - ApiResponse localVarResponse = ClientSettingsGetPluginSettingsWithHttpInfo(pluginId); - return localVarResponse.Data; - } - - /// - /// This call returns the settings of plugin - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object - public ApiResponse< Object > ClientSettingsGetPluginSettingsWithHttpInfo (string pluginId) - { - // verify the required parameter 'pluginId' is set - if (pluginId == null) - throw new ApiException(400, "Missing required parameter 'pluginId' when calling ClientSettingsApi->ClientSettingsGetPluginSettings"); - - var localVarPath = "/api/Settings/plugin/{pluginId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginId != null) localVarPathParams.Add("pluginId", this.Configuration.ApiClient.ParameterToString(pluginId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsGetPluginSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the settings of plugin - /// - /// Thrown when fails to make API call - /// - /// Task of Object - public async System.Threading.Tasks.Task ClientSettingsGetPluginSettingsAsync (string pluginId) - { - ApiResponse localVarResponse = await ClientSettingsGetPluginSettingsAsyncWithHttpInfo(pluginId); - return localVarResponse.Data; - - } - - /// - /// This call returns the settings of plugin - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ClientSettingsGetPluginSettingsAsyncWithHttpInfo (string pluginId) - { - // verify the required parameter 'pluginId' is set - if (pluginId == null) - throw new ApiException(400, "Missing required parameter 'pluginId' when calling ClientSettingsApi->ClientSettingsGetPluginSettings"); - - var localVarPath = "/api/Settings/plugin/{pluginId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginId != null) localVarPathParams.Add("pluginId", this.Configuration.ApiClient.ParameterToString(pluginId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsGetPluginSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the settings of plugin - /// - /// Thrown when fails to make API call - /// - /// - /// - /// Object - public Object ClientSettingsGetPluginSettings_0 (string pluginId, string instanceId, string desktopId) - { - ApiResponse localVarResponse = ClientSettingsGetPluginSettings_0WithHttpInfo(pluginId, instanceId, desktopId); - return localVarResponse.Data; - } - - /// - /// This call returns the settings of plugin - /// - /// Thrown when fails to make API call - /// - /// - /// - /// ApiResponse of Object - public ApiResponse< Object > ClientSettingsGetPluginSettings_0WithHttpInfo (string pluginId, string instanceId, string desktopId) - { - // verify the required parameter 'pluginId' is set - if (pluginId == null) - throw new ApiException(400, "Missing required parameter 'pluginId' when calling ClientSettingsApi->ClientSettingsGetPluginSettings_0"); - // verify the required parameter 'instanceId' is set - if (instanceId == null) - throw new ApiException(400, "Missing required parameter 'instanceId' when calling ClientSettingsApi->ClientSettingsGetPluginSettings_0"); - // verify the required parameter 'desktopId' is set - if (desktopId == null) - throw new ApiException(400, "Missing required parameter 'desktopId' when calling ClientSettingsApi->ClientSettingsGetPluginSettings_0"); - - var localVarPath = "/api/Settings/plugin/{pluginId}/{instanceId}/{desktopId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginId != null) localVarPathParams.Add("pluginId", this.Configuration.ApiClient.ParameterToString(pluginId)); // path parameter - if (instanceId != null) localVarPathParams.Add("instanceId", this.Configuration.ApiClient.ParameterToString(instanceId)); // path parameter - if (desktopId != null) localVarPathParams.Add("desktopId", this.Configuration.ApiClient.ParameterToString(desktopId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsGetPluginSettings_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the settings of plugin - /// - /// Thrown when fails to make API call - /// - /// - /// - /// Task of Object - public async System.Threading.Tasks.Task ClientSettingsGetPluginSettings_0Async (string pluginId, string instanceId, string desktopId) - { - ApiResponse localVarResponse = await ClientSettingsGetPluginSettings_0AsyncWithHttpInfo(pluginId, instanceId, desktopId); - return localVarResponse.Data; - - } - - /// - /// This call returns the settings of plugin - /// - /// Thrown when fails to make API call - /// - /// - /// - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ClientSettingsGetPluginSettings_0AsyncWithHttpInfo (string pluginId, string instanceId, string desktopId) - { - // verify the required parameter 'pluginId' is set - if (pluginId == null) - throw new ApiException(400, "Missing required parameter 'pluginId' when calling ClientSettingsApi->ClientSettingsGetPluginSettings_0"); - // verify the required parameter 'instanceId' is set - if (instanceId == null) - throw new ApiException(400, "Missing required parameter 'instanceId' when calling ClientSettingsApi->ClientSettingsGetPluginSettings_0"); - // verify the required parameter 'desktopId' is set - if (desktopId == null) - throw new ApiException(400, "Missing required parameter 'desktopId' when calling ClientSettingsApi->ClientSettingsGetPluginSettings_0"); - - var localVarPath = "/api/Settings/plugin/{pluginId}/{instanceId}/{desktopId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginId != null) localVarPathParams.Add("pluginId", this.Configuration.ApiClient.ParameterToString(pluginId)); // path parameter - if (instanceId != null) localVarPathParams.Add("instanceId", this.Configuration.ApiClient.ParameterToString(instanceId)); // path parameter - if (desktopId != null) localVarPathParams.Add("desktopId", this.Configuration.ApiClient.ParameterToString(desktopId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsGetPluginSettings_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the plugin settings of connected user - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// Object - public Object ClientSettingsGetPluginUserSettings (PluginSettingRequest pluginRequest) - { - ApiResponse localVarResponse = ClientSettingsGetPluginUserSettingsWithHttpInfo(pluginRequest); - return localVarResponse.Data; - } - - /// - /// This call returns the plugin settings of connected user - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// ApiResponse of Object - public ApiResponse< Object > ClientSettingsGetPluginUserSettingsWithHttpInfo (PluginSettingRequest pluginRequest) - { - // verify the required parameter 'pluginRequest' is set - if (pluginRequest == null) - throw new ApiException(400, "Missing required parameter 'pluginRequest' when calling ClientSettingsApi->ClientSettingsGetPluginUserSettings"); - - var localVarPath = "/api/Settings/pluginForUser"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginRequest != null && pluginRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pluginRequest); // http body (model) parameter - } - else - { - localVarPostBody = pluginRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsGetPluginUserSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the plugin settings of connected user - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// Task of Object - public async System.Threading.Tasks.Task ClientSettingsGetPluginUserSettingsAsync (PluginSettingRequest pluginRequest) - { - ApiResponse localVarResponse = await ClientSettingsGetPluginUserSettingsAsyncWithHttpInfo(pluginRequest); - return localVarResponse.Data; - - } - - /// - /// This call returns the plugin settings of connected user - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ClientSettingsGetPluginUserSettingsAsyncWithHttpInfo (PluginSettingRequest pluginRequest) - { - // verify the required parameter 'pluginRequest' is set - if (pluginRequest == null) - throw new ApiException(400, "Missing required parameter 'pluginRequest' when calling ClientSettingsApi->ClientSettingsGetPluginUserSettings"); - - var localVarPath = "/api/Settings/pluginForUser"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginRequest != null && pluginRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pluginRequest); // http body (model) parameter - } - else - { - localVarPostBody = pluginRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsGetPluginUserSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the settings of connected user - /// - /// Thrown when fails to make API call - /// Object - public Object ClientSettingsGetSettings () - { - ApiResponse localVarResponse = ClientSettingsGetSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the settings of connected user - /// - /// Thrown when fails to make API call - /// ApiResponse of Object - public ApiResponse< Object > ClientSettingsGetSettingsWithHttpInfo () - { - - var localVarPath = "/api/Settings/user"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsGetSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the settings of connected user - /// - /// Thrown when fails to make API call - /// Task of Object - public async System.Threading.Tasks.Task ClientSettingsGetSettingsAsync () - { - ApiResponse localVarResponse = await ClientSettingsGetSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the settings of connected user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ClientSettingsGetSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/Settings/user"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsGetSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the settings of system - /// - /// Thrown when fails to make API call - /// Object - public Object ClientSettingsGetSystemSettings () - { - ApiResponse localVarResponse = ClientSettingsGetSystemSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the settings of system - /// - /// Thrown when fails to make API call - /// ApiResponse of Object - public ApiResponse< Object > ClientSettingsGetSystemSettingsWithHttpInfo () - { - - var localVarPath = "/api/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsGetSystemSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the settings of system - /// - /// Thrown when fails to make API call - /// Task of Object - public async System.Threading.Tasks.Task ClientSettingsGetSystemSettingsAsync () - { - ApiResponse localVarResponse = await ClientSettingsGetSystemSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the settings of system - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ClientSettingsGetSystemSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsGetSystemSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the widget settings - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Object - public Object ClientSettingsGetWidgetSettings (string id, string instanceId, int? desktopId) - { - ApiResponse localVarResponse = ClientSettingsGetWidgetSettingsWithHttpInfo(id, instanceId, desktopId); - return localVarResponse.Data; - } - - /// - /// This call returns the widget settings - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// ApiResponse of Object - public ApiResponse< Object > ClientSettingsGetWidgetSettingsWithHttpInfo (string id, string instanceId, int? desktopId) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ClientSettingsApi->ClientSettingsGetWidgetSettings"); - // verify the required parameter 'instanceId' is set - if (instanceId == null) - throw new ApiException(400, "Missing required parameter 'instanceId' when calling ClientSettingsApi->ClientSettingsGetWidgetSettings"); - // verify the required parameter 'desktopId' is set - if (desktopId == null) - throw new ApiException(400, "Missing required parameter 'desktopId' when calling ClientSettingsApi->ClientSettingsGetWidgetSettings"); - - var localVarPath = "/api/Settings/widget/{id}/{instanceId}/{desktopId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (instanceId != null) localVarPathParams.Add("instanceId", this.Configuration.ApiClient.ParameterToString(instanceId)); // path parameter - if (desktopId != null) localVarPathParams.Add("desktopId", this.Configuration.ApiClient.ParameterToString(desktopId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsGetWidgetSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the widget settings - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Task of Object - public async System.Threading.Tasks.Task ClientSettingsGetWidgetSettingsAsync (string id, string instanceId, int? desktopId) - { - ApiResponse localVarResponse = await ClientSettingsGetWidgetSettingsAsyncWithHttpInfo(id, instanceId, desktopId); - return localVarResponse.Data; - - } - - /// - /// This call returns the widget settings - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ClientSettingsGetWidgetSettingsAsyncWithHttpInfo (string id, string instanceId, int? desktopId) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ClientSettingsApi->ClientSettingsGetWidgetSettings"); - // verify the required parameter 'instanceId' is set - if (instanceId == null) - throw new ApiException(400, "Missing required parameter 'instanceId' when calling ClientSettingsApi->ClientSettingsGetWidgetSettings"); - // verify the required parameter 'desktopId' is set - if (desktopId == null) - throw new ApiException(400, "Missing required parameter 'desktopId' when calling ClientSettingsApi->ClientSettingsGetWidgetSettings"); - - var localVarPath = "/api/Settings/widget/{id}/{instanceId}/{desktopId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (instanceId != null) localVarPathParams.Add("instanceId", this.Configuration.ApiClient.ParameterToString(instanceId)); // path parameter - if (desktopId != null) localVarPathParams.Add("desktopId", this.Configuration.ApiClient.ParameterToString(desktopId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsGetWidgetSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the widget settings of connected user - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Object - public Object ClientSettingsGetWidgetUserSettings (string id, string instanceId, int? desktopId) - { - ApiResponse localVarResponse = ClientSettingsGetWidgetUserSettingsWithHttpInfo(id, instanceId, desktopId); - return localVarResponse.Data; - } - - /// - /// This call returns the widget settings of connected user - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// ApiResponse of Object - public ApiResponse< Object > ClientSettingsGetWidgetUserSettingsWithHttpInfo (string id, string instanceId, int? desktopId) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ClientSettingsApi->ClientSettingsGetWidgetUserSettings"); - // verify the required parameter 'instanceId' is set - if (instanceId == null) - throw new ApiException(400, "Missing required parameter 'instanceId' when calling ClientSettingsApi->ClientSettingsGetWidgetUserSettings"); - // verify the required parameter 'desktopId' is set - if (desktopId == null) - throw new ApiException(400, "Missing required parameter 'desktopId' when calling ClientSettingsApi->ClientSettingsGetWidgetUserSettings"); - - var localVarPath = "/api/Settings/widgetForUser/{id}/{instanceId}/{desktopId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (instanceId != null) localVarPathParams.Add("instanceId", this.Configuration.ApiClient.ParameterToString(instanceId)); // path parameter - if (desktopId != null) localVarPathParams.Add("desktopId", this.Configuration.ApiClient.ParameterToString(desktopId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsGetWidgetUserSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the widget settings of connected user - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Task of Object - public async System.Threading.Tasks.Task ClientSettingsGetWidgetUserSettingsAsync (string id, string instanceId, int? desktopId) - { - ApiResponse localVarResponse = await ClientSettingsGetWidgetUserSettingsAsyncWithHttpInfo(id, instanceId, desktopId); - return localVarResponse.Data; - - } - - /// - /// This call returns the widget settings of connected user - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ClientSettingsGetWidgetUserSettingsAsyncWithHttpInfo (string id, string instanceId, int? desktopId) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ClientSettingsApi->ClientSettingsGetWidgetUserSettings"); - // verify the required parameter 'instanceId' is set - if (instanceId == null) - throw new ApiException(400, "Missing required parameter 'instanceId' when calling ClientSettingsApi->ClientSettingsGetWidgetUserSettings"); - // verify the required parameter 'desktopId' is set - if (desktopId == null) - throw new ApiException(400, "Missing required parameter 'desktopId' when calling ClientSettingsApi->ClientSettingsGetWidgetUserSettings"); - - var localVarPath = "/api/Settings/widgetForUser/{id}/{instanceId}/{desktopId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (instanceId != null) localVarPathParams.Add("instanceId", this.Configuration.ApiClient.ParameterToString(instanceId)); // path parameter - if (desktopId != null) localVarPathParams.Add("desktopId", this.Configuration.ApiClient.ParameterToString(desktopId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsGetWidgetUserSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call upade the setting of plugin - /// - /// Thrown when fails to make API call - /// - /// - /// - public void ClientSettingsUpdatePluginSetting (string pluginId, Object setting) - { - ClientSettingsUpdatePluginSettingWithHttpInfo(pluginId, setting); - } - - /// - /// This call upade the setting of plugin - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object(void) - public ApiResponse ClientSettingsUpdatePluginSettingWithHttpInfo (string pluginId, Object setting) - { - // verify the required parameter 'pluginId' is set - if (pluginId == null) - throw new ApiException(400, "Missing required parameter 'pluginId' when calling ClientSettingsApi->ClientSettingsUpdatePluginSetting"); - // verify the required parameter 'setting' is set - if (setting == null) - throw new ApiException(400, "Missing required parameter 'setting' when calling ClientSettingsApi->ClientSettingsUpdatePluginSetting"); - - var localVarPath = "/api/Settings/plugin/{pluginId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginId != null) localVarPathParams.Add("pluginId", this.Configuration.ApiClient.ParameterToString(pluginId)); // path parameter - if (setting != null && setting.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(setting); // http body (model) parameter - } - else - { - localVarPostBody = setting; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsUpdatePluginSetting", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call upade the setting of plugin - /// - /// Thrown when fails to make API call - /// - /// - /// Task of void - public async System.Threading.Tasks.Task ClientSettingsUpdatePluginSettingAsync (string pluginId, Object setting) - { - await ClientSettingsUpdatePluginSettingAsyncWithHttpInfo(pluginId, setting); - - } - - /// - /// This call upade the setting of plugin - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ClientSettingsUpdatePluginSettingAsyncWithHttpInfo (string pluginId, Object setting) - { - // verify the required parameter 'pluginId' is set - if (pluginId == null) - throw new ApiException(400, "Missing required parameter 'pluginId' when calling ClientSettingsApi->ClientSettingsUpdatePluginSetting"); - // verify the required parameter 'setting' is set - if (setting == null) - throw new ApiException(400, "Missing required parameter 'setting' when calling ClientSettingsApi->ClientSettingsUpdatePluginSetting"); - - var localVarPath = "/api/Settings/plugin/{pluginId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginId != null) localVarPathParams.Add("pluginId", this.Configuration.ApiClient.ParameterToString(pluginId)); // path parameter - if (setting != null && setting.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(setting); // http body (model) parameter - } - else - { - localVarPostBody = setting; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsUpdatePluginSetting", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call upade the setting of plugin - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// - public void ClientSettingsUpdatePluginSetting_0 (string pluginId, string instanceId, string desktopId, Object setting) - { - ClientSettingsUpdatePluginSetting_0WithHttpInfo(pluginId, instanceId, desktopId, setting); - } - - /// - /// This call upade the setting of plugin - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// ApiResponse of Object(void) - public ApiResponse ClientSettingsUpdatePluginSetting_0WithHttpInfo (string pluginId, string instanceId, string desktopId, Object setting) - { - // verify the required parameter 'pluginId' is set - if (pluginId == null) - throw new ApiException(400, "Missing required parameter 'pluginId' when calling ClientSettingsApi->ClientSettingsUpdatePluginSetting_0"); - // verify the required parameter 'instanceId' is set - if (instanceId == null) - throw new ApiException(400, "Missing required parameter 'instanceId' when calling ClientSettingsApi->ClientSettingsUpdatePluginSetting_0"); - // verify the required parameter 'desktopId' is set - if (desktopId == null) - throw new ApiException(400, "Missing required parameter 'desktopId' when calling ClientSettingsApi->ClientSettingsUpdatePluginSetting_0"); - // verify the required parameter 'setting' is set - if (setting == null) - throw new ApiException(400, "Missing required parameter 'setting' when calling ClientSettingsApi->ClientSettingsUpdatePluginSetting_0"); - - var localVarPath = "/api/Settings/plugin/{pluginId}/{instanceId}/{desktopId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginId != null) localVarPathParams.Add("pluginId", this.Configuration.ApiClient.ParameterToString(pluginId)); // path parameter - if (instanceId != null) localVarPathParams.Add("instanceId", this.Configuration.ApiClient.ParameterToString(instanceId)); // path parameter - if (desktopId != null) localVarPathParams.Add("desktopId", this.Configuration.ApiClient.ParameterToString(desktopId)); // path parameter - if (setting != null && setting.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(setting); // http body (model) parameter - } - else - { - localVarPostBody = setting; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsUpdatePluginSetting_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call upade the setting of plugin - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// Task of void - public async System.Threading.Tasks.Task ClientSettingsUpdatePluginSetting_0Async (string pluginId, string instanceId, string desktopId, Object setting) - { - await ClientSettingsUpdatePluginSetting_0AsyncWithHttpInfo(pluginId, instanceId, desktopId, setting); - - } - - /// - /// This call upade the setting of plugin - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ClientSettingsUpdatePluginSetting_0AsyncWithHttpInfo (string pluginId, string instanceId, string desktopId, Object setting) - { - // verify the required parameter 'pluginId' is set - if (pluginId == null) - throw new ApiException(400, "Missing required parameter 'pluginId' when calling ClientSettingsApi->ClientSettingsUpdatePluginSetting_0"); - // verify the required parameter 'instanceId' is set - if (instanceId == null) - throw new ApiException(400, "Missing required parameter 'instanceId' when calling ClientSettingsApi->ClientSettingsUpdatePluginSetting_0"); - // verify the required parameter 'desktopId' is set - if (desktopId == null) - throw new ApiException(400, "Missing required parameter 'desktopId' when calling ClientSettingsApi->ClientSettingsUpdatePluginSetting_0"); - // verify the required parameter 'setting' is set - if (setting == null) - throw new ApiException(400, "Missing required parameter 'setting' when calling ClientSettingsApi->ClientSettingsUpdatePluginSetting_0"); - - var localVarPath = "/api/Settings/plugin/{pluginId}/{instanceId}/{desktopId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginId != null) localVarPathParams.Add("pluginId", this.Configuration.ApiClient.ParameterToString(pluginId)); // path parameter - if (instanceId != null) localVarPathParams.Add("instanceId", this.Configuration.ApiClient.ParameterToString(instanceId)); // path parameter - if (desktopId != null) localVarPathParams.Add("desktopId", this.Configuration.ApiClient.ParameterToString(desktopId)); // path parameter - if (setting != null && setting.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(setting); // http body (model) parameter - } - else - { - localVarPostBody = setting; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsUpdatePluginSetting_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call upade the plugin settings of connected user - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// - public void ClientSettingsUpdatePluginUserSetting (PluginSettingRequest pluginRequest) - { - ClientSettingsUpdatePluginUserSettingWithHttpInfo(pluginRequest); - } - - /// - /// This call upade the plugin settings of connected user - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// ApiResponse of Object(void) - public ApiResponse ClientSettingsUpdatePluginUserSettingWithHttpInfo (PluginSettingRequest pluginRequest) - { - // verify the required parameter 'pluginRequest' is set - if (pluginRequest == null) - throw new ApiException(400, "Missing required parameter 'pluginRequest' when calling ClientSettingsApi->ClientSettingsUpdatePluginUserSetting"); - - var localVarPath = "/api/Settings/pluginForUser"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginRequest != null && pluginRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pluginRequest); // http body (model) parameter - } - else - { - localVarPostBody = pluginRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsUpdatePluginUserSetting", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call upade the plugin settings of connected user - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// Task of void - public async System.Threading.Tasks.Task ClientSettingsUpdatePluginUserSettingAsync (PluginSettingRequest pluginRequest) - { - await ClientSettingsUpdatePluginUserSettingAsyncWithHttpInfo(pluginRequest); - - } - - /// - /// This call upade the plugin settings of connected user - /// - /// Thrown when fails to make API call - /// Request of plugin settings - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ClientSettingsUpdatePluginUserSettingAsyncWithHttpInfo (PluginSettingRequest pluginRequest) - { - // verify the required parameter 'pluginRequest' is set - if (pluginRequest == null) - throw new ApiException(400, "Missing required parameter 'pluginRequest' when calling ClientSettingsApi->ClientSettingsUpdatePluginUserSetting"); - - var localVarPath = "/api/Settings/pluginForUser"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginRequest != null && pluginRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pluginRequest); // http body (model) parameter - } - else - { - localVarPostBody = pluginRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsUpdatePluginUserSetting", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call upade the setting of system - /// - /// Thrown when fails to make API call - /// Settings information to update - /// - public void ClientSettingsUpdateUserSetting (Object setting) - { - ClientSettingsUpdateUserSettingWithHttpInfo(setting); - } - - /// - /// This call upade the setting of system - /// - /// Thrown when fails to make API call - /// Settings information to update - /// ApiResponse of Object(void) - public ApiResponse ClientSettingsUpdateUserSettingWithHttpInfo (Object setting) - { - // verify the required parameter 'setting' is set - if (setting == null) - throw new ApiException(400, "Missing required parameter 'setting' when calling ClientSettingsApi->ClientSettingsUpdateUserSetting"); - - var localVarPath = "/api/Settings/user"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (setting != null && setting.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(setting); // http body (model) parameter - } - else - { - localVarPostBody = setting; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsUpdateUserSetting", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call upade the setting of system - /// - /// Thrown when fails to make API call - /// Settings information to update - /// Task of void - public async System.Threading.Tasks.Task ClientSettingsUpdateUserSettingAsync (Object setting) - { - await ClientSettingsUpdateUserSettingAsyncWithHttpInfo(setting); - - } - - /// - /// This call upade the setting of system - /// - /// Thrown when fails to make API call - /// Settings information to update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ClientSettingsUpdateUserSettingAsyncWithHttpInfo (Object setting) - { - // verify the required parameter 'setting' is set - if (setting == null) - throw new ApiException(400, "Missing required parameter 'setting' when calling ClientSettingsApi->ClientSettingsUpdateUserSetting"); - - var localVarPath = "/api/Settings/user"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (setting != null && setting.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(setting); // http body (model) parameter - } - else - { - localVarPostBody = setting; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsUpdateUserSetting", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call upade the widget settings - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// - public void ClientSettingsUpdateWidgetSetting (string id, string instanceId, int? desktopId, Object userSettings) - { - ClientSettingsUpdateWidgetSettingWithHttpInfo(id, instanceId, desktopId, userSettings); - } - - /// - /// This call upade the widget settings - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// ApiResponse of Object(void) - public ApiResponse ClientSettingsUpdateWidgetSettingWithHttpInfo (string id, string instanceId, int? desktopId, Object userSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ClientSettingsApi->ClientSettingsUpdateWidgetSetting"); - // verify the required parameter 'instanceId' is set - if (instanceId == null) - throw new ApiException(400, "Missing required parameter 'instanceId' when calling ClientSettingsApi->ClientSettingsUpdateWidgetSetting"); - // verify the required parameter 'desktopId' is set - if (desktopId == null) - throw new ApiException(400, "Missing required parameter 'desktopId' when calling ClientSettingsApi->ClientSettingsUpdateWidgetSetting"); - // verify the required parameter 'userSettings' is set - if (userSettings == null) - throw new ApiException(400, "Missing required parameter 'userSettings' when calling ClientSettingsApi->ClientSettingsUpdateWidgetSetting"); - - var localVarPath = "/api/Settings/widget/{id}/{instanceId}/{desktopId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (instanceId != null) localVarPathParams.Add("instanceId", this.Configuration.ApiClient.ParameterToString(instanceId)); // path parameter - if (desktopId != null) localVarPathParams.Add("desktopId", this.Configuration.ApiClient.ParameterToString(desktopId)); // path parameter - if (userSettings != null && userSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userSettings); // http body (model) parameter - } - else - { - localVarPostBody = userSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsUpdateWidgetSetting", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call upade the widget settings - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// Task of void - public async System.Threading.Tasks.Task ClientSettingsUpdateWidgetSettingAsync (string id, string instanceId, int? desktopId, Object userSettings) - { - await ClientSettingsUpdateWidgetSettingAsyncWithHttpInfo(id, instanceId, desktopId, userSettings); - - } - - /// - /// This call upade the widget settings - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ClientSettingsUpdateWidgetSettingAsyncWithHttpInfo (string id, string instanceId, int? desktopId, Object userSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ClientSettingsApi->ClientSettingsUpdateWidgetSetting"); - // verify the required parameter 'instanceId' is set - if (instanceId == null) - throw new ApiException(400, "Missing required parameter 'instanceId' when calling ClientSettingsApi->ClientSettingsUpdateWidgetSetting"); - // verify the required parameter 'desktopId' is set - if (desktopId == null) - throw new ApiException(400, "Missing required parameter 'desktopId' when calling ClientSettingsApi->ClientSettingsUpdateWidgetSetting"); - // verify the required parameter 'userSettings' is set - if (userSettings == null) - throw new ApiException(400, "Missing required parameter 'userSettings' when calling ClientSettingsApi->ClientSettingsUpdateWidgetSetting"); - - var localVarPath = "/api/Settings/widget/{id}/{instanceId}/{desktopId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (instanceId != null) localVarPathParams.Add("instanceId", this.Configuration.ApiClient.ParameterToString(instanceId)); // path parameter - if (desktopId != null) localVarPathParams.Add("desktopId", this.Configuration.ApiClient.ParameterToString(desktopId)); // path parameter - if (userSettings != null && userSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userSettings); // http body (model) parameter - } - else - { - localVarPostBody = userSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsUpdateWidgetSetting", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call upade the widget settings of connected user - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// - public void ClientSettingsUpdateWidgetUserSetting (string id, string instanceId, int? desktopId, Object userSettings) - { - ClientSettingsUpdateWidgetUserSettingWithHttpInfo(id, instanceId, desktopId, userSettings); - } - - /// - /// This call upade the widget settings of connected user - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// ApiResponse of Object(void) - public ApiResponse ClientSettingsUpdateWidgetUserSettingWithHttpInfo (string id, string instanceId, int? desktopId, Object userSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ClientSettingsApi->ClientSettingsUpdateWidgetUserSetting"); - // verify the required parameter 'instanceId' is set - if (instanceId == null) - throw new ApiException(400, "Missing required parameter 'instanceId' when calling ClientSettingsApi->ClientSettingsUpdateWidgetUserSetting"); - // verify the required parameter 'desktopId' is set - if (desktopId == null) - throw new ApiException(400, "Missing required parameter 'desktopId' when calling ClientSettingsApi->ClientSettingsUpdateWidgetUserSetting"); - // verify the required parameter 'userSettings' is set - if (userSettings == null) - throw new ApiException(400, "Missing required parameter 'userSettings' when calling ClientSettingsApi->ClientSettingsUpdateWidgetUserSetting"); - - var localVarPath = "/api/Settings/widgetForUser/{id}/{instanceId}/{desktopId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (instanceId != null) localVarPathParams.Add("instanceId", this.Configuration.ApiClient.ParameterToString(instanceId)); // path parameter - if (desktopId != null) localVarPathParams.Add("desktopId", this.Configuration.ApiClient.ParameterToString(desktopId)); // path parameter - if (userSettings != null && userSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userSettings); // http body (model) parameter - } - else - { - localVarPostBody = userSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsUpdateWidgetUserSetting", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call upade the widget settings of connected user - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// Task of void - public async System.Threading.Tasks.Task ClientSettingsUpdateWidgetUserSettingAsync (string id, string instanceId, int? desktopId, Object userSettings) - { - await ClientSettingsUpdateWidgetUserSettingAsyncWithHttpInfo(id, instanceId, desktopId, userSettings); - - } - - /// - /// This call upade the widget settings of connected user - /// - /// Thrown when fails to make API call - /// Widget identifier - /// Instance identifier - /// Desktop identifier - /// Settings information to update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ClientSettingsUpdateWidgetUserSettingAsyncWithHttpInfo (string id, string instanceId, int? desktopId, Object userSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ClientSettingsApi->ClientSettingsUpdateWidgetUserSetting"); - // verify the required parameter 'instanceId' is set - if (instanceId == null) - throw new ApiException(400, "Missing required parameter 'instanceId' when calling ClientSettingsApi->ClientSettingsUpdateWidgetUserSetting"); - // verify the required parameter 'desktopId' is set - if (desktopId == null) - throw new ApiException(400, "Missing required parameter 'desktopId' when calling ClientSettingsApi->ClientSettingsUpdateWidgetUserSetting"); - // verify the required parameter 'userSettings' is set - if (userSettings == null) - throw new ApiException(400, "Missing required parameter 'userSettings' when calling ClientSettingsApi->ClientSettingsUpdateWidgetUserSetting"); - - var localVarPath = "/api/Settings/widgetForUser/{id}/{instanceId}/{desktopId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (instanceId != null) localVarPathParams.Add("instanceId", this.Configuration.ApiClient.ParameterToString(instanceId)); // path parameter - if (desktopId != null) localVarPathParams.Add("desktopId", this.Configuration.ApiClient.ParameterToString(desktopId)); // path parameter - if (userSettings != null && userSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userSettings); // http body (model) parameter - } - else - { - localVarPostBody = userSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ClientSettingsUpdateWidgetUserSetting", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ContactCategoryApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ContactCategoryApi.cs deleted file mode 100644 index 4dd47d6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ContactCategoryApi.cs +++ /dev/null @@ -1,691 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IContactCategoryApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call adds new contact category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void ContactCategoryDeleteCategories (int? contactCategoryId); - - /// - /// This call adds new contact category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse ContactCategoryDeleteCategoriesWithHttpInfo (int? contactCategoryId); - /// - /// This call returns all the contact categories available - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<ContactCategoryDTO> - List ContactCategoryGetCategories (); - - /// - /// This call returns all the contact categories available - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ContactCategoryDTO> - ApiResponse> ContactCategoryGetCategoriesWithHttpInfo (); - /// - /// This call adds new contact category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void ContactCategoryInsertCategories (ContactCategoryDTO contactCategoryDTO); - - /// - /// This call adds new contact category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse ContactCategoryInsertCategoriesWithHttpInfo (ContactCategoryDTO contactCategoryDTO); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call adds new contact category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task ContactCategoryDeleteCategoriesAsync (int? contactCategoryId); - - /// - /// This call adds new contact category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> ContactCategoryDeleteCategoriesAsyncWithHttpInfo (int? contactCategoryId); - /// - /// This call returns all the contact categories available - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<ContactCategoryDTO> - System.Threading.Tasks.Task> ContactCategoryGetCategoriesAsync (); - - /// - /// This call returns all the contact categories available - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ContactCategoryDTO>) - System.Threading.Tasks.Task>> ContactCategoryGetCategoriesAsyncWithHttpInfo (); - /// - /// This call adds new contact category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task ContactCategoryInsertCategoriesAsync (ContactCategoryDTO contactCategoryDTO); - - /// - /// This call adds new contact category - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> ContactCategoryInsertCategoriesAsyncWithHttpInfo (ContactCategoryDTO contactCategoryDTO); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ContactCategoryApi : IContactCategoryApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ContactCategoryApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ContactCategoryApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call adds new contact category - /// - /// Thrown when fails to make API call - /// - /// - public void ContactCategoryDeleteCategories (int? contactCategoryId) - { - ContactCategoryDeleteCategoriesWithHttpInfo(contactCategoryId); - } - - /// - /// This call adds new contact category - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse ContactCategoryDeleteCategoriesWithHttpInfo (int? contactCategoryId) - { - // verify the required parameter 'contactCategoryId' is set - if (contactCategoryId == null) - throw new ApiException(400, "Missing required parameter 'contactCategoryId' when calling ContactCategoryApi->ContactCategoryDeleteCategories"); - - var localVarPath = "/api/ContactCategory/{contactCategoryId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactCategoryId != null) localVarPathParams.Add("contactCategoryId", this.Configuration.ApiClient.ParameterToString(contactCategoryId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ContactCategoryDeleteCategories", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds new contact category - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task ContactCategoryDeleteCategoriesAsync (int? contactCategoryId) - { - await ContactCategoryDeleteCategoriesAsyncWithHttpInfo(contactCategoryId); - - } - - /// - /// This call adds new contact category - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ContactCategoryDeleteCategoriesAsyncWithHttpInfo (int? contactCategoryId) - { - // verify the required parameter 'contactCategoryId' is set - if (contactCategoryId == null) - throw new ApiException(400, "Missing required parameter 'contactCategoryId' when calling ContactCategoryApi->ContactCategoryDeleteCategories"); - - var localVarPath = "/api/ContactCategory/{contactCategoryId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactCategoryId != null) localVarPathParams.Add("contactCategoryId", this.Configuration.ApiClient.ParameterToString(contactCategoryId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ContactCategoryDeleteCategories", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all the contact categories available - /// - /// Thrown when fails to make API call - /// List<ContactCategoryDTO> - public List ContactCategoryGetCategories () - { - ApiResponse> localVarResponse = ContactCategoryGetCategoriesWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all the contact categories available - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ContactCategoryDTO> - public ApiResponse< List > ContactCategoryGetCategoriesWithHttpInfo () - { - - var localVarPath = "/api/ContactCategory"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ContactCategoryGetCategories", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the contact categories available - /// - /// Thrown when fails to make API call - /// Task of List<ContactCategoryDTO> - public async System.Threading.Tasks.Task> ContactCategoryGetCategoriesAsync () - { - ApiResponse> localVarResponse = await ContactCategoryGetCategoriesAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all the contact categories available - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ContactCategoryDTO>) - public async System.Threading.Tasks.Task>> ContactCategoryGetCategoriesAsyncWithHttpInfo () - { - - var localVarPath = "/api/ContactCategory"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ContactCategoryGetCategories", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds new contact category - /// - /// Thrown when fails to make API call - /// - /// - public void ContactCategoryInsertCategories (ContactCategoryDTO contactCategoryDTO) - { - ContactCategoryInsertCategoriesWithHttpInfo(contactCategoryDTO); - } - - /// - /// This call adds new contact category - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse ContactCategoryInsertCategoriesWithHttpInfo (ContactCategoryDTO contactCategoryDTO) - { - // verify the required parameter 'contactCategoryDTO' is set - if (contactCategoryDTO == null) - throw new ApiException(400, "Missing required parameter 'contactCategoryDTO' when calling ContactCategoryApi->ContactCategoryInsertCategories"); - - var localVarPath = "/api/ContactCategory"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactCategoryDTO != null && contactCategoryDTO.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(contactCategoryDTO); // http body (model) parameter - } - else - { - localVarPostBody = contactCategoryDTO; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ContactCategoryInsertCategories", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds new contact category - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task ContactCategoryInsertCategoriesAsync (ContactCategoryDTO contactCategoryDTO) - { - await ContactCategoryInsertCategoriesAsyncWithHttpInfo(contactCategoryDTO); - - } - - /// - /// This call adds new contact category - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ContactCategoryInsertCategoriesAsyncWithHttpInfo (ContactCategoryDTO contactCategoryDTO) - { - // verify the required parameter 'contactCategoryDTO' is set - if (contactCategoryDTO == null) - throw new ApiException(400, "Missing required parameter 'contactCategoryDTO' when calling ContactCategoryApi->ContactCategoryInsertCategories"); - - var localVarPath = "/api/ContactCategory"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (contactCategoryDTO != null && contactCategoryDTO.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(contactCategoryDTO); // http body (model) parameter - } - else - { - localVarPostBody = contactCategoryDTO; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ContactCategoryInsertCategories", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/CustomLabelsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/CustomLabelsApi.cs deleted file mode 100644 index 1bd7a4b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/CustomLabelsApi.cs +++ /dev/null @@ -1,304 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ICustomLabelsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This method return the binder label - /// - /// - /// - /// - /// Thrown when fails to make API call - /// string - string CustomLabelsGetBinderLabel (); - - /// - /// This method return the binder label - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of string - ApiResponse CustomLabelsGetBinderLabelWithHttpInfo (); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This method return the binder label - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of string - System.Threading.Tasks.Task CustomLabelsGetBinderLabelAsync (); - - /// - /// This method return the binder label - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> CustomLabelsGetBinderLabelAsyncWithHttpInfo (); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class CustomLabelsApi : ICustomLabelsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public CustomLabelsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public CustomLabelsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This method return the binder label - /// - /// Thrown when fails to make API call - /// string - public string CustomLabelsGetBinderLabel () - { - ApiResponse localVarResponse = CustomLabelsGetBinderLabelWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This method return the binder label - /// - /// Thrown when fails to make API call - /// ApiResponse of string - public ApiResponse< string > CustomLabelsGetBinderLabelWithHttpInfo () - { - - var localVarPath = "/api/CustomLabels/binders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CustomLabelsGetBinderLabel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This method return the binder label - /// - /// Thrown when fails to make API call - /// Task of string - public async System.Threading.Tasks.Task CustomLabelsGetBinderLabelAsync () - { - ApiResponse localVarResponse = await CustomLabelsGetBinderLabelAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This method return the binder label - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> CustomLabelsGetBinderLabelAsyncWithHttpInfo () - { - - var localVarPath = "/api/CustomLabels/binders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("CustomLabelsGetBinderLabel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/DelegationApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/DelegationApi.cs deleted file mode 100644 index 8176ac9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/DelegationApi.cs +++ /dev/null @@ -1,1103 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDelegationApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deactivate an active delegation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// - void DelegationDeactivate (int? id); - - /// - /// This call deactivate an active delegation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// ApiResponse of Object(void) - ApiResponse DelegationDeactivateWithHttpInfo (int? id); - /// - /// This call returns all the delegation for the connected user or all delegation for user of type admin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Get only active delegation - /// List<DelegationDTO> - List DelegationGet (bool? onlyActive); - - /// - /// This call returns all the delegation for the connected user or all delegation for user of type admin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Get only active delegation - /// ApiResponse of List<DelegationDTO> - ApiResponse> DelegationGetWithHttpInfo (bool? onlyActive); - /// - /// This call returns the delegation by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// DelegationDTO - DelegationDTO DelegationGetById (int? id); - - /// - /// This call returns the delegation by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// ApiResponse of DelegationDTO - ApiResponse DelegationGetByIdWithHttpInfo (int? id); - /// - /// This call insert new delegation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void DelegationInsert (DelegationDTO delegation); - - /// - /// This call insert new delegation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse DelegationInsertWithHttpInfo (DelegationDTO delegation); - /// - /// This call update a delegation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void DelegationUpdate (DelegationDTO delegation); - - /// - /// This call update a delegation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse DelegationUpdateWithHttpInfo (DelegationDTO delegation); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deactivate an active delegation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// Task of void - System.Threading.Tasks.Task DelegationDeactivateAsync (int? id); - - /// - /// This call deactivate an active delegation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// Task of ApiResponse - System.Threading.Tasks.Task> DelegationDeactivateAsyncWithHttpInfo (int? id); - /// - /// This call returns all the delegation for the connected user or all delegation for user of type admin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Get only active delegation - /// Task of List<DelegationDTO> - System.Threading.Tasks.Task> DelegationGetAsync (bool? onlyActive); - - /// - /// This call returns all the delegation for the connected user or all delegation for user of type admin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Get only active delegation - /// Task of ApiResponse (List<DelegationDTO>) - System.Threading.Tasks.Task>> DelegationGetAsyncWithHttpInfo (bool? onlyActive); - /// - /// This call returns the delegation by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// Task of DelegationDTO - System.Threading.Tasks.Task DelegationGetByIdAsync (int? id); - - /// - /// This call returns the delegation by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// Task of ApiResponse (DelegationDTO) - System.Threading.Tasks.Task> DelegationGetByIdAsyncWithHttpInfo (int? id); - /// - /// This call insert new delegation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task DelegationInsertAsync (DelegationDTO delegation); - - /// - /// This call insert new delegation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> DelegationInsertAsyncWithHttpInfo (DelegationDTO delegation); - /// - /// This call update a delegation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task DelegationUpdateAsync (DelegationDTO delegation); - - /// - /// This call update a delegation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> DelegationUpdateAsyncWithHttpInfo (DelegationDTO delegation); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class DelegationApi : IDelegationApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public DelegationApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public DelegationApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deactivate an active delegation - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// - public void DelegationDeactivate (int? id) - { - DelegationDeactivateWithHttpInfo(id); - } - - /// - /// This call deactivate an active delegation - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// ApiResponse of Object(void) - public ApiResponse DelegationDeactivateWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DelegationApi->DelegationDeactivate"); - - var localVarPath = "/api/Delegation/{id}/setInactive"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DelegationDeactivate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deactivate an active delegation - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// Task of void - public async System.Threading.Tasks.Task DelegationDeactivateAsync (int? id) - { - await DelegationDeactivateAsyncWithHttpInfo(id); - - } - - /// - /// This call deactivate an active delegation - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DelegationDeactivateAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DelegationApi->DelegationDeactivate"); - - var localVarPath = "/api/Delegation/{id}/setInactive"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DelegationDeactivate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all the delegation for the connected user or all delegation for user of type admin - /// - /// Thrown when fails to make API call - /// Get only active delegation - /// List<DelegationDTO> - public List DelegationGet (bool? onlyActive) - { - ApiResponse> localVarResponse = DelegationGetWithHttpInfo(onlyActive); - return localVarResponse.Data; - } - - /// - /// This call returns all the delegation for the connected user or all delegation for user of type admin - /// - /// Thrown when fails to make API call - /// Get only active delegation - /// ApiResponse of List<DelegationDTO> - public ApiResponse< List > DelegationGetWithHttpInfo (bool? onlyActive) - { - // verify the required parameter 'onlyActive' is set - if (onlyActive == null) - throw new ApiException(400, "Missing required parameter 'onlyActive' when calling DelegationApi->DelegationGet"); - - var localVarPath = "/api/Delegation/{onlyActive}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (onlyActive != null) localVarPathParams.Add("onlyActive", this.Configuration.ApiClient.ParameterToString(onlyActive)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DelegationGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the delegation for the connected user or all delegation for user of type admin - /// - /// Thrown when fails to make API call - /// Get only active delegation - /// Task of List<DelegationDTO> - public async System.Threading.Tasks.Task> DelegationGetAsync (bool? onlyActive) - { - ApiResponse> localVarResponse = await DelegationGetAsyncWithHttpInfo(onlyActive); - return localVarResponse.Data; - - } - - /// - /// This call returns all the delegation for the connected user or all delegation for user of type admin - /// - /// Thrown when fails to make API call - /// Get only active delegation - /// Task of ApiResponse (List<DelegationDTO>) - public async System.Threading.Tasks.Task>> DelegationGetAsyncWithHttpInfo (bool? onlyActive) - { - // verify the required parameter 'onlyActive' is set - if (onlyActive == null) - throw new ApiException(400, "Missing required parameter 'onlyActive' when calling DelegationApi->DelegationGet"); - - var localVarPath = "/api/Delegation/{onlyActive}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (onlyActive != null) localVarPathParams.Add("onlyActive", this.Configuration.ApiClient.ParameterToString(onlyActive)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DelegationGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the delegation by its id - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// DelegationDTO - public DelegationDTO DelegationGetById (int? id) - { - ApiResponse localVarResponse = DelegationGetByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns the delegation by its id - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// ApiResponse of DelegationDTO - public ApiResponse< DelegationDTO > DelegationGetByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DelegationApi->DelegationGetById"); - - var localVarPath = "/api/Delegation/byId/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DelegationGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DelegationDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DelegationDTO))); - } - - /// - /// This call returns the delegation by its id - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// Task of DelegationDTO - public async System.Threading.Tasks.Task DelegationGetByIdAsync (int? id) - { - ApiResponse localVarResponse = await DelegationGetByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns the delegation by its id - /// - /// Thrown when fails to make API call - /// Id of the delegation - /// Task of ApiResponse (DelegationDTO) - public async System.Threading.Tasks.Task> DelegationGetByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DelegationApi->DelegationGetById"); - - var localVarPath = "/api/Delegation/byId/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DelegationGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DelegationDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DelegationDTO))); - } - - /// - /// This call insert new delegation - /// - /// Thrown when fails to make API call - /// - /// - public void DelegationInsert (DelegationDTO delegation) - { - DelegationInsertWithHttpInfo(delegation); - } - - /// - /// This call insert new delegation - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse DelegationInsertWithHttpInfo (DelegationDTO delegation) - { - // verify the required parameter 'delegation' is set - if (delegation == null) - throw new ApiException(400, "Missing required parameter 'delegation' when calling DelegationApi->DelegationInsert"); - - var localVarPath = "/api/Delegation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (delegation != null && delegation.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(delegation); // http body (model) parameter - } - else - { - localVarPostBody = delegation; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DelegationInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call insert new delegation - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task DelegationInsertAsync (DelegationDTO delegation) - { - await DelegationInsertAsyncWithHttpInfo(delegation); - - } - - /// - /// This call insert new delegation - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DelegationInsertAsyncWithHttpInfo (DelegationDTO delegation) - { - // verify the required parameter 'delegation' is set - if (delegation == null) - throw new ApiException(400, "Missing required parameter 'delegation' when calling DelegationApi->DelegationInsert"); - - var localVarPath = "/api/Delegation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (delegation != null && delegation.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(delegation); // http body (model) parameter - } - else - { - localVarPostBody = delegation; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DelegationInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update a delegation - /// - /// Thrown when fails to make API call - /// - /// - public void DelegationUpdate (DelegationDTO delegation) - { - DelegationUpdateWithHttpInfo(delegation); - } - - /// - /// This call update a delegation - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse DelegationUpdateWithHttpInfo (DelegationDTO delegation) - { - // verify the required parameter 'delegation' is set - if (delegation == null) - throw new ApiException(400, "Missing required parameter 'delegation' when calling DelegationApi->DelegationUpdate"); - - var localVarPath = "/api/Delegation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (delegation != null && delegation.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(delegation); // http body (model) parameter - } - else - { - localVarPostBody = delegation; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DelegationUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update a delegation - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task DelegationUpdateAsync (DelegationDTO delegation) - { - await DelegationUpdateAsyncWithHttpInfo(delegation); - - } - - /// - /// This call update a delegation - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DelegationUpdateAsyncWithHttpInfo (DelegationDTO delegation) - { - // verify the required parameter 'delegation' is set - if (delegation == null) - throw new ApiException(400, "Missing required parameter 'delegation' when calling DelegationApi->DelegationUpdate"); - - var localVarPath = "/api/Delegation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (delegation != null && delegation.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(delegation); // http body (model) parameter - } - else - { - localVarPostBody = delegation; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DelegationUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/DesktopApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/DesktopApi.cs deleted file mode 100644 index c6a5735..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/DesktopApi.cs +++ /dev/null @@ -1,1620 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDesktopApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call delete items from desktop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void DesktopDeleteItem (DesktopItemDeleteRequestDTO desktopItemDeleteRequestDTO); - - /// - /// This call delete items from desktop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse DesktopDeleteItemWithHttpInfo (DesktopItemDeleteRequestDTO desktopItemDeleteRequestDTO); - /// - /// This call returns the desktop items for the user (old ARXivar desktop functionality) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// DesktopDTO - DesktopDTO DesktopGet (); - - /// - /// This call returns the desktop items for the user (old ARXivar desktop functionality) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of DesktopDTO - ApiResponse DesktopGetWithHttpInfo (); - /// - /// This call add profiles to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Profile docnumbers to add - /// - void DesktopInsertDocnumbers (List docnumbers); - - /// - /// This call add profiles to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Profile docnumbers to add - /// ApiResponse of Object(void) - ApiResponse DesktopInsertDocnumbersWithHttpInfo (List docnumbers); - /// - /// This call add folder to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Folder id to add - /// - void DesktopInsertFolder (int? folderId); - - /// - /// This call add folder to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Folder id to add - /// ApiResponse of Object(void) - ApiResponse DesktopInsertFolderWithHttpInfo (int? folderId); - /// - /// This call add mask to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mask id to add - /// - void DesktopInsertMask (string maskId); - - /// - /// This call add mask to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mask id to add - /// ApiResponse of Object(void) - ApiResponse DesktopInsertMaskWithHttpInfo (string maskId); - /// - /// This call add model to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model id to add - /// - void DesktopInsertModel (int? modelId); - - /// - /// This call add model to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model id to add - /// ApiResponse of Object(void) - ApiResponse DesktopInsertModelWithHttpInfo (int? modelId); - /// - /// This call add quick search to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick Search id to add - /// - void DesktopInsertRicQuick (string ricQuickId); - - /// - /// This call add quick search to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick Search id to add - /// ApiResponse of Object(void) - ApiResponse DesktopInsertRicQuickWithHttpInfo (string ricQuickId); - /// - /// This call add view to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View id to add - /// - void DesktopInsertView (string viewId); - - /// - /// This call add view to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View id to add - /// ApiResponse of Object(void) - ApiResponse DesktopInsertViewWithHttpInfo (string viewId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call delete items from desktop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task DesktopDeleteItemAsync (DesktopItemDeleteRequestDTO desktopItemDeleteRequestDTO); - - /// - /// This call delete items from desktop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> DesktopDeleteItemAsyncWithHttpInfo (DesktopItemDeleteRequestDTO desktopItemDeleteRequestDTO); - /// - /// This call returns the desktop items for the user (old ARXivar desktop functionality) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of DesktopDTO - System.Threading.Tasks.Task DesktopGetAsync (); - - /// - /// This call returns the desktop items for the user (old ARXivar desktop functionality) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DesktopDTO) - System.Threading.Tasks.Task> DesktopGetAsyncWithHttpInfo (); - /// - /// This call add profiles to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Profile docnumbers to add - /// Task of void - System.Threading.Tasks.Task DesktopInsertDocnumbersAsync (List docnumbers); - - /// - /// This call add profiles to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Profile docnumbers to add - /// Task of ApiResponse - System.Threading.Tasks.Task> DesktopInsertDocnumbersAsyncWithHttpInfo (List docnumbers); - /// - /// This call add folder to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Folder id to add - /// Task of void - System.Threading.Tasks.Task DesktopInsertFolderAsync (int? folderId); - - /// - /// This call add folder to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Folder id to add - /// Task of ApiResponse - System.Threading.Tasks.Task> DesktopInsertFolderAsyncWithHttpInfo (int? folderId); - /// - /// This call add mask to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mask id to add - /// Task of void - System.Threading.Tasks.Task DesktopInsertMaskAsync (string maskId); - - /// - /// This call add mask to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mask id to add - /// Task of ApiResponse - System.Threading.Tasks.Task> DesktopInsertMaskAsyncWithHttpInfo (string maskId); - /// - /// This call add model to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model id to add - /// Task of void - System.Threading.Tasks.Task DesktopInsertModelAsync (int? modelId); - - /// - /// This call add model to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model id to add - /// Task of ApiResponse - System.Threading.Tasks.Task> DesktopInsertModelAsyncWithHttpInfo (int? modelId); - /// - /// This call add quick search to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick Search id to add - /// Task of void - System.Threading.Tasks.Task DesktopInsertRicQuickAsync (string ricQuickId); - - /// - /// This call add quick search to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick Search id to add - /// Task of ApiResponse - System.Threading.Tasks.Task> DesktopInsertRicQuickAsyncWithHttpInfo (string ricQuickId); - /// - /// This call add view to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View id to add - /// Task of void - System.Threading.Tasks.Task DesktopInsertViewAsync (string viewId); - - /// - /// This call add view to dekstop - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View id to add - /// Task of ApiResponse - System.Threading.Tasks.Task> DesktopInsertViewAsyncWithHttpInfo (string viewId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class DesktopApi : IDesktopApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public DesktopApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public DesktopApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call delete items from desktop - /// - /// Thrown when fails to make API call - /// - /// - public void DesktopDeleteItem (DesktopItemDeleteRequestDTO desktopItemDeleteRequestDTO) - { - DesktopDeleteItemWithHttpInfo(desktopItemDeleteRequestDTO); - } - - /// - /// This call delete items from desktop - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse DesktopDeleteItemWithHttpInfo (DesktopItemDeleteRequestDTO desktopItemDeleteRequestDTO) - { - // verify the required parameter 'desktopItemDeleteRequestDTO' is set - if (desktopItemDeleteRequestDTO == null) - throw new ApiException(400, "Missing required parameter 'desktopItemDeleteRequestDTO' when calling DesktopApi->DesktopDeleteItem"); - - var localVarPath = "/api/desktop"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (desktopItemDeleteRequestDTO != null && desktopItemDeleteRequestDTO.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(desktopItemDeleteRequestDTO); // http body (model) parameter - } - else - { - localVarPostBody = desktopItemDeleteRequestDTO; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopDeleteItem", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call delete items from desktop - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task DesktopDeleteItemAsync (DesktopItemDeleteRequestDTO desktopItemDeleteRequestDTO) - { - await DesktopDeleteItemAsyncWithHttpInfo(desktopItemDeleteRequestDTO); - - } - - /// - /// This call delete items from desktop - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DesktopDeleteItemAsyncWithHttpInfo (DesktopItemDeleteRequestDTO desktopItemDeleteRequestDTO) - { - // verify the required parameter 'desktopItemDeleteRequestDTO' is set - if (desktopItemDeleteRequestDTO == null) - throw new ApiException(400, "Missing required parameter 'desktopItemDeleteRequestDTO' when calling DesktopApi->DesktopDeleteItem"); - - var localVarPath = "/api/desktop"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (desktopItemDeleteRequestDTO != null && desktopItemDeleteRequestDTO.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(desktopItemDeleteRequestDTO); // http body (model) parameter - } - else - { - localVarPostBody = desktopItemDeleteRequestDTO; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopDeleteItem", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the desktop items for the user (old ARXivar desktop functionality) - /// - /// Thrown when fails to make API call - /// DesktopDTO - public DesktopDTO DesktopGet () - { - ApiResponse localVarResponse = DesktopGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the desktop items for the user (old ARXivar desktop functionality) - /// - /// Thrown when fails to make API call - /// ApiResponse of DesktopDTO - public ApiResponse< DesktopDTO > DesktopGetWithHttpInfo () - { - - var localVarPath = "/api/desktop"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DesktopDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DesktopDTO))); - } - - /// - /// This call returns the desktop items for the user (old ARXivar desktop functionality) - /// - /// Thrown when fails to make API call - /// Task of DesktopDTO - public async System.Threading.Tasks.Task DesktopGetAsync () - { - ApiResponse localVarResponse = await DesktopGetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the desktop items for the user (old ARXivar desktop functionality) - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DesktopDTO) - public async System.Threading.Tasks.Task> DesktopGetAsyncWithHttpInfo () - { - - var localVarPath = "/api/desktop"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DesktopDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DesktopDTO))); - } - - /// - /// This call add profiles to dekstop - /// - /// Thrown when fails to make API call - /// Profile docnumbers to add - /// - public void DesktopInsertDocnumbers (List docnumbers) - { - DesktopInsertDocnumbersWithHttpInfo(docnumbers); - } - - /// - /// This call add profiles to dekstop - /// - /// Thrown when fails to make API call - /// Profile docnumbers to add - /// ApiResponse of Object(void) - public ApiResponse DesktopInsertDocnumbersWithHttpInfo (List docnumbers) - { - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling DesktopApi->DesktopInsertDocnumbers"); - - var localVarPath = "/api/desktop/insert/documents"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopInsertDocnumbers", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call add profiles to dekstop - /// - /// Thrown when fails to make API call - /// Profile docnumbers to add - /// Task of void - public async System.Threading.Tasks.Task DesktopInsertDocnumbersAsync (List docnumbers) - { - await DesktopInsertDocnumbersAsyncWithHttpInfo(docnumbers); - - } - - /// - /// This call add profiles to dekstop - /// - /// Thrown when fails to make API call - /// Profile docnumbers to add - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DesktopInsertDocnumbersAsyncWithHttpInfo (List docnumbers) - { - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling DesktopApi->DesktopInsertDocnumbers"); - - var localVarPath = "/api/desktop/insert/documents"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopInsertDocnumbers", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call add folder to dekstop - /// - /// Thrown when fails to make API call - /// Folder id to add - /// - public void DesktopInsertFolder (int? folderId) - { - DesktopInsertFolderWithHttpInfo(folderId); - } - - /// - /// This call add folder to dekstop - /// - /// Thrown when fails to make API call - /// Folder id to add - /// ApiResponse of Object(void) - public ApiResponse DesktopInsertFolderWithHttpInfo (int? folderId) - { - // verify the required parameter 'folderId' is set - if (folderId == null) - throw new ApiException(400, "Missing required parameter 'folderId' when calling DesktopApi->DesktopInsertFolder"); - - var localVarPath = "/api/desktop/insert/folder"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (folderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "folderId", folderId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopInsertFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call add folder to dekstop - /// - /// Thrown when fails to make API call - /// Folder id to add - /// Task of void - public async System.Threading.Tasks.Task DesktopInsertFolderAsync (int? folderId) - { - await DesktopInsertFolderAsyncWithHttpInfo(folderId); - - } - - /// - /// This call add folder to dekstop - /// - /// Thrown when fails to make API call - /// Folder id to add - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DesktopInsertFolderAsyncWithHttpInfo (int? folderId) - { - // verify the required parameter 'folderId' is set - if (folderId == null) - throw new ApiException(400, "Missing required parameter 'folderId' when calling DesktopApi->DesktopInsertFolder"); - - var localVarPath = "/api/desktop/insert/folder"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (folderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "folderId", folderId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopInsertFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call add mask to dekstop - /// - /// Thrown when fails to make API call - /// Mask id to add - /// - public void DesktopInsertMask (string maskId) - { - DesktopInsertMaskWithHttpInfo(maskId); - } - - /// - /// This call add mask to dekstop - /// - /// Thrown when fails to make API call - /// Mask id to add - /// ApiResponse of Object(void) - public ApiResponse DesktopInsertMaskWithHttpInfo (string maskId) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling DesktopApi->DesktopInsertMask"); - - var localVarPath = "/api/desktop/insert/mask"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "maskId", maskId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopInsertMask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call add mask to dekstop - /// - /// Thrown when fails to make API call - /// Mask id to add - /// Task of void - public async System.Threading.Tasks.Task DesktopInsertMaskAsync (string maskId) - { - await DesktopInsertMaskAsyncWithHttpInfo(maskId); - - } - - /// - /// This call add mask to dekstop - /// - /// Thrown when fails to make API call - /// Mask id to add - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DesktopInsertMaskAsyncWithHttpInfo (string maskId) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling DesktopApi->DesktopInsertMask"); - - var localVarPath = "/api/desktop/insert/mask"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "maskId", maskId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopInsertMask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call add model to dekstop - /// - /// Thrown when fails to make API call - /// Model id to add - /// - public void DesktopInsertModel (int? modelId) - { - DesktopInsertModelWithHttpInfo(modelId); - } - - /// - /// This call add model to dekstop - /// - /// Thrown when fails to make API call - /// Model id to add - /// ApiResponse of Object(void) - public ApiResponse DesktopInsertModelWithHttpInfo (int? modelId) - { - // verify the required parameter 'modelId' is set - if (modelId == null) - throw new ApiException(400, "Missing required parameter 'modelId' when calling DesktopApi->DesktopInsertModel"); - - var localVarPath = "/api/desktop/insert/model"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (modelId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "modelId", modelId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopInsertModel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call add model to dekstop - /// - /// Thrown when fails to make API call - /// Model id to add - /// Task of void - public async System.Threading.Tasks.Task DesktopInsertModelAsync (int? modelId) - { - await DesktopInsertModelAsyncWithHttpInfo(modelId); - - } - - /// - /// This call add model to dekstop - /// - /// Thrown when fails to make API call - /// Model id to add - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DesktopInsertModelAsyncWithHttpInfo (int? modelId) - { - // verify the required parameter 'modelId' is set - if (modelId == null) - throw new ApiException(400, "Missing required parameter 'modelId' when calling DesktopApi->DesktopInsertModel"); - - var localVarPath = "/api/desktop/insert/model"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (modelId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "modelId", modelId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopInsertModel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call add quick search to dekstop - /// - /// Thrown when fails to make API call - /// Quick Search id to add - /// - public void DesktopInsertRicQuick (string ricQuickId) - { - DesktopInsertRicQuickWithHttpInfo(ricQuickId); - } - - /// - /// This call add quick search to dekstop - /// - /// Thrown when fails to make API call - /// Quick Search id to add - /// ApiResponse of Object(void) - public ApiResponse DesktopInsertRicQuickWithHttpInfo (string ricQuickId) - { - // verify the required parameter 'ricQuickId' is set - if (ricQuickId == null) - throw new ApiException(400, "Missing required parameter 'ricQuickId' when calling DesktopApi->DesktopInsertRicQuick"); - - var localVarPath = "/api/desktop/insert/ricQuick"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (ricQuickId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "ricQuickId", ricQuickId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopInsertRicQuick", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call add quick search to dekstop - /// - /// Thrown when fails to make API call - /// Quick Search id to add - /// Task of void - public async System.Threading.Tasks.Task DesktopInsertRicQuickAsync (string ricQuickId) - { - await DesktopInsertRicQuickAsyncWithHttpInfo(ricQuickId); - - } - - /// - /// This call add quick search to dekstop - /// - /// Thrown when fails to make API call - /// Quick Search id to add - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DesktopInsertRicQuickAsyncWithHttpInfo (string ricQuickId) - { - // verify the required parameter 'ricQuickId' is set - if (ricQuickId == null) - throw new ApiException(400, "Missing required parameter 'ricQuickId' when calling DesktopApi->DesktopInsertRicQuick"); - - var localVarPath = "/api/desktop/insert/ricQuick"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (ricQuickId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "ricQuickId", ricQuickId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopInsertRicQuick", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call add view to dekstop - /// - /// Thrown when fails to make API call - /// View id to add - /// - public void DesktopInsertView (string viewId) - { - DesktopInsertViewWithHttpInfo(viewId); - } - - /// - /// This call add view to dekstop - /// - /// Thrown when fails to make API call - /// View id to add - /// ApiResponse of Object(void) - public ApiResponse DesktopInsertViewWithHttpInfo (string viewId) - { - // verify the required parameter 'viewId' is set - if (viewId == null) - throw new ApiException(400, "Missing required parameter 'viewId' when calling DesktopApi->DesktopInsertView"); - - var localVarPath = "/api/desktop/insert/view"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "viewId", viewId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopInsertView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call add view to dekstop - /// - /// Thrown when fails to make API call - /// View id to add - /// Task of void - public async System.Threading.Tasks.Task DesktopInsertViewAsync (string viewId) - { - await DesktopInsertViewAsyncWithHttpInfo(viewId); - - } - - /// - /// This call add view to dekstop - /// - /// Thrown when fails to make API call - /// View id to add - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DesktopInsertViewAsyncWithHttpInfo (string viewId) - { - // verify the required parameter 'viewId' is set - if (viewId == null) - throw new ApiException(400, "Missing required parameter 'viewId' when calling DesktopApi->DesktopInsertView"); - - var localVarPath = "/api/desktop/insert/view"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "viewId", viewId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopInsertView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/DesktopLayoutApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/DesktopLayoutApi.cs deleted file mode 100644 index 1fbf8bf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/DesktopLayoutApi.cs +++ /dev/null @@ -1,1113 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDesktopLayoutApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call delete an existent layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the layout to be deleted - /// - void DesktopLayoutDelete (int? layoutId); - - /// - /// This call delete an existent layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the layout to be deleted - /// ApiResponse of Object(void) - ApiResponse DesktopLayoutDeleteWithHttpInfo (int? layoutId); - /// - /// This call returns all layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<LayoutDesktopDTO> - List DesktopLayoutGet (); - - /// - /// This call returns all layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<LayoutDesktopDTO> - ApiResponse> DesktopLayoutGetWithHttpInfo (); - /// - /// This call returns the single layout by the given id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// LayoutDesktopDTO - LayoutDesktopDTO DesktopLayoutGetById (int? id); - - /// - /// This call returns the single layout by the given id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// ApiResponse of LayoutDesktopDTO - ApiResponse DesktopLayoutGetByIdWithHttpInfo (int? id); - /// - /// This call save a new layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// LayoutDesktopDTO - LayoutDesktopDTO DesktopLayoutPost (LayoutDesktopDTO layout); - - /// - /// This call save a new layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// ApiResponse of LayoutDesktopDTO - ApiResponse DesktopLayoutPostWithHttpInfo (LayoutDesktopDTO layout); - /// - /// This call update a layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// New data of layout - /// - void DesktopLayoutPut (int? id, LayoutDesktopDTO layout); - - /// - /// This call update a layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// New data of layout - /// ApiResponse of Object(void) - ApiResponse DesktopLayoutPutWithHttpInfo (int? id, LayoutDesktopDTO layout); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call delete an existent layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the layout to be deleted - /// Task of void - System.Threading.Tasks.Task DesktopLayoutDeleteAsync (int? layoutId); - - /// - /// This call delete an existent layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the layout to be deleted - /// Task of ApiResponse - System.Threading.Tasks.Task> DesktopLayoutDeleteAsyncWithHttpInfo (int? layoutId); - /// - /// This call returns all layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<LayoutDesktopDTO> - System.Threading.Tasks.Task> DesktopLayoutGetAsync (); - - /// - /// This call returns all layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<LayoutDesktopDTO>) - System.Threading.Tasks.Task>> DesktopLayoutGetAsyncWithHttpInfo (); - /// - /// This call returns the single layout by the given id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// Task of LayoutDesktopDTO - System.Threading.Tasks.Task DesktopLayoutGetByIdAsync (int? id); - - /// - /// This call returns the single layout by the given id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// Task of ApiResponse (LayoutDesktopDTO) - System.Threading.Tasks.Task> DesktopLayoutGetByIdAsyncWithHttpInfo (int? id); - /// - /// This call save a new layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// Task of LayoutDesktopDTO - System.Threading.Tasks.Task DesktopLayoutPostAsync (LayoutDesktopDTO layout); - - /// - /// This call save a new layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// Task of ApiResponse (LayoutDesktopDTO) - System.Threading.Tasks.Task> DesktopLayoutPostAsyncWithHttpInfo (LayoutDesktopDTO layout); - /// - /// This call update a layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// New data of layout - /// Task of void - System.Threading.Tasks.Task DesktopLayoutPutAsync (int? id, LayoutDesktopDTO layout); - - /// - /// This call update a layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// New data of layout - /// Task of ApiResponse - System.Threading.Tasks.Task> DesktopLayoutPutAsyncWithHttpInfo (int? id, LayoutDesktopDTO layout); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class DesktopLayoutApi : IDesktopLayoutApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public DesktopLayoutApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public DesktopLayoutApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call delete an existent layout - /// - /// Thrown when fails to make API call - /// Identifier of the layout to be deleted - /// - public void DesktopLayoutDelete (int? layoutId) - { - DesktopLayoutDeleteWithHttpInfo(layoutId); - } - - /// - /// This call delete an existent layout - /// - /// Thrown when fails to make API call - /// Identifier of the layout to be deleted - /// ApiResponse of Object(void) - public ApiResponse DesktopLayoutDeleteWithHttpInfo (int? layoutId) - { - // verify the required parameter 'layoutId' is set - if (layoutId == null) - throw new ApiException(400, "Missing required parameter 'layoutId' when calling DesktopLayoutApi->DesktopLayoutDelete"); - - var localVarPath = "/api/DesktopLayout/{layoutId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (layoutId != null) localVarPathParams.Add("layoutId", this.Configuration.ApiClient.ParameterToString(layoutId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopLayoutDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call delete an existent layout - /// - /// Thrown when fails to make API call - /// Identifier of the layout to be deleted - /// Task of void - public async System.Threading.Tasks.Task DesktopLayoutDeleteAsync (int? layoutId) - { - await DesktopLayoutDeleteAsyncWithHttpInfo(layoutId); - - } - - /// - /// This call delete an existent layout - /// - /// Thrown when fails to make API call - /// Identifier of the layout to be deleted - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DesktopLayoutDeleteAsyncWithHttpInfo (int? layoutId) - { - // verify the required parameter 'layoutId' is set - if (layoutId == null) - throw new ApiException(400, "Missing required parameter 'layoutId' when calling DesktopLayoutApi->DesktopLayoutDelete"); - - var localVarPath = "/api/DesktopLayout/{layoutId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (layoutId != null) localVarPathParams.Add("layoutId", this.Configuration.ApiClient.ParameterToString(layoutId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopLayoutDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all layout - /// - /// Thrown when fails to make API call - /// List<LayoutDesktopDTO> - public List DesktopLayoutGet () - { - ApiResponse> localVarResponse = DesktopLayoutGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all layout - /// - /// Thrown when fails to make API call - /// ApiResponse of List<LayoutDesktopDTO> - public ApiResponse< List > DesktopLayoutGetWithHttpInfo () - { - - var localVarPath = "/api/DesktopLayout"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopLayoutGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all layout - /// - /// Thrown when fails to make API call - /// Task of List<LayoutDesktopDTO> - public async System.Threading.Tasks.Task> DesktopLayoutGetAsync () - { - ApiResponse> localVarResponse = await DesktopLayoutGetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all layout - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<LayoutDesktopDTO>) - public async System.Threading.Tasks.Task>> DesktopLayoutGetAsyncWithHttpInfo () - { - - var localVarPath = "/api/DesktopLayout"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopLayoutGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the single layout by the given id - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// LayoutDesktopDTO - public LayoutDesktopDTO DesktopLayoutGetById (int? id) - { - ApiResponse localVarResponse = DesktopLayoutGetByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns the single layout by the given id - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// ApiResponse of LayoutDesktopDTO - public ApiResponse< LayoutDesktopDTO > DesktopLayoutGetByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DesktopLayoutApi->DesktopLayoutGetById"); - - var localVarPath = "/api/DesktopLayout/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopLayoutGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LayoutDesktopDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LayoutDesktopDTO))); - } - - /// - /// This call returns the single layout by the given id - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// Task of LayoutDesktopDTO - public async System.Threading.Tasks.Task DesktopLayoutGetByIdAsync (int? id) - { - ApiResponse localVarResponse = await DesktopLayoutGetByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns the single layout by the given id - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// Task of ApiResponse (LayoutDesktopDTO) - public async System.Threading.Tasks.Task> DesktopLayoutGetByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DesktopLayoutApi->DesktopLayoutGetById"); - - var localVarPath = "/api/DesktopLayout/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopLayoutGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LayoutDesktopDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LayoutDesktopDTO))); - } - - /// - /// This call save a new layout - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// LayoutDesktopDTO - public LayoutDesktopDTO DesktopLayoutPost (LayoutDesktopDTO layout) - { - ApiResponse localVarResponse = DesktopLayoutPostWithHttpInfo(layout); - return localVarResponse.Data; - } - - /// - /// This call save a new layout - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// ApiResponse of LayoutDesktopDTO - public ApiResponse< LayoutDesktopDTO > DesktopLayoutPostWithHttpInfo (LayoutDesktopDTO layout) - { - // verify the required parameter 'layout' is set - if (layout == null) - throw new ApiException(400, "Missing required parameter 'layout' when calling DesktopLayoutApi->DesktopLayoutPost"); - - var localVarPath = "/api/DesktopLayout"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (layout != null && layout.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(layout); // http body (model) parameter - } - else - { - localVarPostBody = layout; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopLayoutPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LayoutDesktopDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LayoutDesktopDTO))); - } - - /// - /// This call save a new layout - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// Task of LayoutDesktopDTO - public async System.Threading.Tasks.Task DesktopLayoutPostAsync (LayoutDesktopDTO layout) - { - ApiResponse localVarResponse = await DesktopLayoutPostAsyncWithHttpInfo(layout); - return localVarResponse.Data; - - } - - /// - /// This call save a new layout - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// Task of ApiResponse (LayoutDesktopDTO) - public async System.Threading.Tasks.Task> DesktopLayoutPostAsyncWithHttpInfo (LayoutDesktopDTO layout) - { - // verify the required parameter 'layout' is set - if (layout == null) - throw new ApiException(400, "Missing required parameter 'layout' when calling DesktopLayoutApi->DesktopLayoutPost"); - - var localVarPath = "/api/DesktopLayout"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (layout != null && layout.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(layout); // http body (model) parameter - } - else - { - localVarPostBody = layout; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopLayoutPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LayoutDesktopDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LayoutDesktopDTO))); - } - - /// - /// This call update a layout - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// New data of layout - /// - public void DesktopLayoutPut (int? id, LayoutDesktopDTO layout) - { - DesktopLayoutPutWithHttpInfo(id, layout); - } - - /// - /// This call update a layout - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// New data of layout - /// ApiResponse of Object(void) - public ApiResponse DesktopLayoutPutWithHttpInfo (int? id, LayoutDesktopDTO layout) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DesktopLayoutApi->DesktopLayoutPut"); - // verify the required parameter 'layout' is set - if (layout == null) - throw new ApiException(400, "Missing required parameter 'layout' when calling DesktopLayoutApi->DesktopLayoutPut"); - - var localVarPath = "/api/DesktopLayout/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (layout != null && layout.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(layout); // http body (model) parameter - } - else - { - localVarPostBody = layout; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopLayoutPut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update a layout - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// New data of layout - /// Task of void - public async System.Threading.Tasks.Task DesktopLayoutPutAsync (int? id, LayoutDesktopDTO layout) - { - await DesktopLayoutPutAsyncWithHttpInfo(id, layout); - - } - - /// - /// This call update a layout - /// - /// Thrown when fails to make API call - /// Identifier of the wanted layout - /// New data of layout - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DesktopLayoutPutAsyncWithHttpInfo (int? id, LayoutDesktopDTO layout) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DesktopLayoutApi->DesktopLayoutPut"); - // verify the required parameter 'layout' is set - if (layout == null) - throw new ApiException(400, "Missing required parameter 'layout' when calling DesktopLayoutApi->DesktopLayoutPut"); - - var localVarPath = "/api/DesktopLayout/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (layout != null && layout.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(layout); // http body (model) parameter - } - else - { - localVarPostBody = layout; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DesktopLayoutPut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/DevicesApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/DevicesApi.cs deleted file mode 100644 index d057276..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/DevicesApi.cs +++ /dev/null @@ -1,321 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDevicesApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all devices defined for specified type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Conservazione 1: Outsourcing 2: ExternalEngine - /// List<DeviceDTO> - List DevicesGetDevices (int? type); - - /// - /// This call returns all devices defined for specified type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Conservazione 1: Outsourcing 2: ExternalEngine - /// ApiResponse of List<DeviceDTO> - ApiResponse> DevicesGetDevicesWithHttpInfo (int? type); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all devices defined for specified type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Conservazione 1: Outsourcing 2: ExternalEngine - /// Task of List<DeviceDTO> - System.Threading.Tasks.Task> DevicesGetDevicesAsync (int? type); - - /// - /// This call returns all devices defined for specified type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Conservazione 1: Outsourcing 2: ExternalEngine - /// Task of ApiResponse (List<DeviceDTO>) - System.Threading.Tasks.Task>> DevicesGetDevicesAsyncWithHttpInfo (int? type); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class DevicesApi : IDevicesApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public DevicesApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public DevicesApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all devices defined for specified type - /// - /// Thrown when fails to make API call - /// Possible values: 0: Conservazione 1: Outsourcing 2: ExternalEngine - /// List<DeviceDTO> - public List DevicesGetDevices (int? type) - { - ApiResponse> localVarResponse = DevicesGetDevicesWithHttpInfo(type); - return localVarResponse.Data; - } - - /// - /// This call returns all devices defined for specified type - /// - /// Thrown when fails to make API call - /// Possible values: 0: Conservazione 1: Outsourcing 2: ExternalEngine - /// ApiResponse of List<DeviceDTO> - public ApiResponse< List > DevicesGetDevicesWithHttpInfo (int? type) - { - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling DevicesApi->DevicesGetDevices"); - - var localVarPath = "/api/Devices/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DevicesGetDevices", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all devices defined for specified type - /// - /// Thrown when fails to make API call - /// Possible values: 0: Conservazione 1: Outsourcing 2: ExternalEngine - /// Task of List<DeviceDTO> - public async System.Threading.Tasks.Task> DevicesGetDevicesAsync (int? type) - { - ApiResponse> localVarResponse = await DevicesGetDevicesAsyncWithHttpInfo(type); - return localVarResponse.Data; - - } - - /// - /// This call returns all devices defined for specified type - /// - /// Thrown when fails to make API call - /// Possible values: 0: Conservazione 1: Outsourcing 2: ExternalEngine - /// Task of ApiResponse (List<DeviceDTO>) - public async System.Threading.Tasks.Task>> DevicesGetDevicesAsyncWithHttpInfo (int? type) - { - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling DevicesApi->DevicesGetDevices"); - - var localVarPath = "/api/Devices/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DevicesGetDevices", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/DocToOcrApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/DocToOcrApi.cs deleted file mode 100644 index 56878ff..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/DocToOcrApi.cs +++ /dev/null @@ -1,502 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDocToOcrApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This method enqueue document to ocr - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - void DocToOcrDocToOcrQueue (int? docnumber); - - /// - /// This method enqueue document to ocr - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of Object(void) - ApiResponse DocToOcrDocToOcrQueueWithHttpInfo (int? docnumber); - /// - /// This method return the texts containedin specified document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// List<DocToOcrDTO> - List DocToOcrGetByDocnumber (int? docnumber); - - /// - /// This method return the texts containedin specified document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of List<DocToOcrDTO> - ApiResponse> DocToOcrGetByDocnumberWithHttpInfo (int? docnumber); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This method enqueue document to ocr - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of void - System.Threading.Tasks.Task DocToOcrDocToOcrQueueAsync (int? docnumber); - - /// - /// This method enqueue document to ocr - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> DocToOcrDocToOcrQueueAsyncWithHttpInfo (int? docnumber); - /// - /// This method return the texts containedin specified document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of List<DocToOcrDTO> - System.Threading.Tasks.Task> DocToOcrGetByDocnumberAsync (int? docnumber); - - /// - /// This method return the texts containedin specified document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (List<DocToOcrDTO>) - System.Threading.Tasks.Task>> DocToOcrGetByDocnumberAsyncWithHttpInfo (int? docnumber); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class DocToOcrApi : IDocToOcrApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public DocToOcrApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public DocToOcrApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This method enqueue document to ocr - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - public void DocToOcrDocToOcrQueue (int? docnumber) - { - DocToOcrDocToOcrQueueWithHttpInfo(docnumber); - } - - /// - /// This method enqueue document to ocr - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of Object(void) - public ApiResponse DocToOcrDocToOcrQueueWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling DocToOcrApi->DocToOcrDocToOcrQueue"); - - var localVarPath = "/api/DocToOcr/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocToOcrDocToOcrQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method enqueue document to ocr - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of void - public async System.Threading.Tasks.Task DocToOcrDocToOcrQueueAsync (int? docnumber) - { - await DocToOcrDocToOcrQueueAsyncWithHttpInfo(docnumber); - - } - - /// - /// This method enqueue document to ocr - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocToOcrDocToOcrQueueAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling DocToOcrApi->DocToOcrDocToOcrQueue"); - - var localVarPath = "/api/DocToOcr/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocToOcrDocToOcrQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method return the texts containedin specified document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// List<DocToOcrDTO> - public List DocToOcrGetByDocnumber (int? docnumber) - { - ApiResponse> localVarResponse = DocToOcrGetByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This method return the texts containedin specified document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of List<DocToOcrDTO> - public ApiResponse< List > DocToOcrGetByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling DocToOcrApi->DocToOcrGetByDocnumber"); - - var localVarPath = "/api/DocToOcr/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocToOcrGetByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method return the texts containedin specified document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of List<DocToOcrDTO> - public async System.Threading.Tasks.Task> DocToOcrGetByDocnumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await DocToOcrGetByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This method return the texts containedin specified document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (List<DocToOcrDTO>) - public async System.Threading.Tasks.Task>> DocToOcrGetByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling DocToOcrApi->DocToOcrGetByDocnumber"); - - var localVarPath = "/api/DocToOcr/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocToOcrGetByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/DocumentTicketsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/DocumentTicketsApi.cs deleted file mode 100644 index 7a2d6cf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/DocumentTicketsApi.cs +++ /dev/null @@ -1,1982 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDocumentTicketsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the ticket for downloading a document associated to a specified revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// string - string DocumentTicketsGetDocumentByRevisionId (int? revisionId, bool? forView = null); - - /// - /// This call returns the ticket for downloading a document associated to a specified revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of string - ApiResponse DocumentTicketsGetDocumentByRevisionIdWithHttpInfo (int? revisionId, bool? forView = null); - /// - /// This call retrieve a ticket for downloading a file for an external profile attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// string - string DocumentTicketsGetForExternalAttachment (int? id, bool? forView = null); - - /// - /// This call retrieve a ticket for downloading a file for an external profile attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of string - ApiResponse DocumentTicketsGetForExternalAttachmentWithHttpInfo (int? id, bool? forView = null); - /// - /// This call returns the ticket for downloading a file associated with the attachment into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - System.IO.Stream DocumentTicketsGetForProcessAttachement (int? attachementid, int? processId, bool? forView = null); - - /// - /// This call returns the ticket for downloading a file associated with the attachment into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - ApiResponse DocumentTicketsGetForProcessAttachementWithHttpInfo (int? attachementid, int? processId, bool? forView = null); - /// - /// This call returns the ticket for downloading a file associated with the document process into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - System.IO.Stream DocumentTicketsGetForProcessDocument (int? processdocid, int? processId, bool? forView = null); - - /// - /// This call returns the ticket for downloading a file associated with the document process into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - ApiResponse DocumentTicketsGetForProcessDocumentWithHttpInfo (int? processdocid, int? processId, bool? forView = null); - /// - /// This call returns the ticket for downloading a file associated with a specified profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - System.IO.Stream DocumentTicketsGetForProfile (int? id, bool? forView = null); - - /// - /// This call returns the ticket for downloading a file associated with a specified profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - ApiResponse DocumentTicketsGetForProfileWithHttpInfo (int? id, bool? forView = null); - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - System.IO.Stream DocumentTicketsGetForTask (int? processDocId, int? taskWorkId, bool? forView = null); - - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - ApiResponse DocumentTicketsGetForTaskWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null); - /// - /// This call returns the ticket for downloading a file associated with the task attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - System.IO.Stream DocumentTicketsGetForTaskAttachement (int? id, bool? forView = null); - - /// - /// This call returns the ticket for downloading a file associated with the task attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - ApiResponse DocumentTicketsGetForTaskAttachementWithHttpInfo (int? id, bool? forView = null); - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process, for read-only management - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - System.IO.Stream DocumentTicketsGetForTaskReadOnly (int? processDocId, int? taskWorkId, bool? forView = null); - - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process, for read-only management - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - ApiResponse DocumentTicketsGetForTaskReadOnlyWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null); - /// - /// This call retrieve the ticket for downloading an attachemnt file by its revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// string - string DocumentTicketsGetRevisionDocumentById (int? attachmentId, int? revisionId, bool? forView = null); - - /// - /// This call retrieve the ticket for downloading an attachemnt file by its revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of string - ApiResponse DocumentTicketsGetRevisionDocumentByIdWithHttpInfo (int? attachmentId, int? revisionId, bool? forView = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the ticket for downloading a document associated to a specified revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of string - System.Threading.Tasks.Task DocumentTicketsGetDocumentByRevisionIdAsync (int? revisionId, bool? forView = null); - - /// - /// This call returns the ticket for downloading a document associated to a specified revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> DocumentTicketsGetDocumentByRevisionIdAsyncWithHttpInfo (int? revisionId, bool? forView = null); - /// - /// This call retrieve a ticket for downloading a file for an external profile attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of string - System.Threading.Tasks.Task DocumentTicketsGetForExternalAttachmentAsync (int? id, bool? forView = null); - - /// - /// This call retrieve a ticket for downloading a file for an external profile attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> DocumentTicketsGetForExternalAttachmentAsyncWithHttpInfo (int? id, bool? forView = null); - /// - /// This call returns the ticket for downloading a file associated with the attachment into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentTicketsGetForProcessAttachementAsync (int? attachementid, int? processId, bool? forView = null); - - /// - /// This call returns the ticket for downloading a file associated with the attachment into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentTicketsGetForProcessAttachementAsyncWithHttpInfo (int? attachementid, int? processId, bool? forView = null); - /// - /// This call returns the ticket for downloading a file associated with the document process into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentTicketsGetForProcessDocumentAsync (int? processdocid, int? processId, bool? forView = null); - - /// - /// This call returns the ticket for downloading a file associated with the document process into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentTicketsGetForProcessDocumentAsyncWithHttpInfo (int? processdocid, int? processId, bool? forView = null); - /// - /// This call returns the ticket for downloading a file associated with a specified profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentTicketsGetForProfileAsync (int? id, bool? forView = null); - - /// - /// This call returns the ticket for downloading a file associated with a specified profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentTicketsGetForProfileAsyncWithHttpInfo (int? id, bool? forView = null); - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentTicketsGetForTaskAsync (int? processDocId, int? taskWorkId, bool? forView = null); - - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentTicketsGetForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null); - /// - /// This call returns the ticket for downloading a file associated with the task attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentTicketsGetForTaskAttachementAsync (int? id, bool? forView = null); - - /// - /// This call returns the ticket for downloading a file associated with the task attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentTicketsGetForTaskAttachementAsyncWithHttpInfo (int? id, bool? forView = null); - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process, for read-only management - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentTicketsGetForTaskReadOnlyAsync (int? processDocId, int? taskWorkId, bool? forView = null); - - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process, for read-only management - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentTicketsGetForTaskReadOnlyAsyncWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null); - /// - /// This call retrieve the ticket for downloading an attachemnt file by its revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of string - System.Threading.Tasks.Task DocumentTicketsGetRevisionDocumentByIdAsync (int? attachmentId, int? revisionId, bool? forView = null); - - /// - /// This call retrieve the ticket for downloading an attachemnt file by its revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> DocumentTicketsGetRevisionDocumentByIdAsyncWithHttpInfo (int? attachmentId, int? revisionId, bool? forView = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class DocumentTicketsApi : IDocumentTicketsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public DocumentTicketsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public DocumentTicketsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the ticket for downloading a document associated to a specified revision - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// string - public string DocumentTicketsGetDocumentByRevisionId (int? revisionId, bool? forView = null) - { - ApiResponse localVarResponse = DocumentTicketsGetDocumentByRevisionIdWithHttpInfo(revisionId, forView); - return localVarResponse.Data; - } - - /// - /// This call returns the ticket for downloading a document associated to a specified revision - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of string - public ApiResponse< string > DocumentTicketsGetDocumentByRevisionIdWithHttpInfo (int? revisionId, bool? forView = null) - { - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling DocumentTicketsApi->DocumentTicketsGetDocumentByRevisionId"); - - var localVarPath = "/api/DocumentTickets/ticketByRevision/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetDocumentByRevisionId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call returns the ticket for downloading a document associated to a specified revision - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of string - public async System.Threading.Tasks.Task DocumentTicketsGetDocumentByRevisionIdAsync (int? revisionId, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentTicketsGetDocumentByRevisionIdAsyncWithHttpInfo(revisionId, forView); - return localVarResponse.Data; - - } - - /// - /// This call returns the ticket for downloading a document associated to a specified revision - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> DocumentTicketsGetDocumentByRevisionIdAsyncWithHttpInfo (int? revisionId, bool? forView = null) - { - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling DocumentTicketsApi->DocumentTicketsGetDocumentByRevisionId"); - - var localVarPath = "/api/DocumentTickets/ticketByRevision/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetDocumentByRevisionId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call retrieve a ticket for downloading a file for an external profile attachment - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// string - public string DocumentTicketsGetForExternalAttachment (int? id, bool? forView = null) - { - ApiResponse localVarResponse = DocumentTicketsGetForExternalAttachmentWithHttpInfo(id, forView); - return localVarResponse.Data; - } - - /// - /// This call retrieve a ticket for downloading a file for an external profile attachment - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of string - public ApiResponse< string > DocumentTicketsGetForExternalAttachmentWithHttpInfo (int? id, bool? forView = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentTicketsApi->DocumentTicketsGetForExternalAttachment"); - - var localVarPath = "/api/DocumentTickets/ticketProfileAttachment/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetForExternalAttachment", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call retrieve a ticket for downloading a file for an external profile attachment - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of string - public async System.Threading.Tasks.Task DocumentTicketsGetForExternalAttachmentAsync (int? id, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentTicketsGetForExternalAttachmentAsyncWithHttpInfo(id, forView); - return localVarResponse.Data; - - } - - /// - /// This call retrieve a ticket for downloading a file for an external profile attachment - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> DocumentTicketsGetForExternalAttachmentAsyncWithHttpInfo (int? id, bool? forView = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentTicketsApi->DocumentTicketsGetForExternalAttachment"); - - var localVarPath = "/api/DocumentTickets/ticketProfileAttachment/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetForExternalAttachment", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call returns the ticket for downloading a file associated with the attachment into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - public System.IO.Stream DocumentTicketsGetForProcessAttachement (int? attachementid, int? processId, bool? forView = null) - { - ApiResponse localVarResponse = DocumentTicketsGetForProcessAttachementWithHttpInfo(attachementid, processId, forView); - return localVarResponse.Data; - } - - /// - /// This call returns the ticket for downloading a file associated with the attachment into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentTicketsGetForProcessAttachementWithHttpInfo (int? attachementid, int? processId, bool? forView = null) - { - // verify the required parameter 'attachementid' is set - if (attachementid == null) - throw new ApiException(400, "Missing required parameter 'attachementid' when calling DocumentTicketsApi->DocumentTicketsGetForProcessAttachement"); - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling DocumentTicketsApi->DocumentTicketsGetForProcessAttachement"); - - var localVarPath = "/api/DocumentTickets/ticketProcessattachments/{processId}/{attachementid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachementid != null) localVarPathParams.Add("attachementid", this.Configuration.ApiClient.ParameterToString(attachementid)); // path parameter - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetForProcessAttachement", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the ticket for downloading a file associated with the attachment into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentTicketsGetForProcessAttachementAsync (int? attachementid, int? processId, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentTicketsGetForProcessAttachementAsyncWithHttpInfo(attachementid, processId, forView); - return localVarResponse.Data; - - } - - /// - /// This call returns the ticket for downloading a file associated with the attachment into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentTicketsGetForProcessAttachementAsyncWithHttpInfo (int? attachementid, int? processId, bool? forView = null) - { - // verify the required parameter 'attachementid' is set - if (attachementid == null) - throw new ApiException(400, "Missing required parameter 'attachementid' when calling DocumentTicketsApi->DocumentTicketsGetForProcessAttachement"); - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling DocumentTicketsApi->DocumentTicketsGetForProcessAttachement"); - - var localVarPath = "/api/DocumentTickets/ticketProcessattachments/{processId}/{attachementid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachementid != null) localVarPathParams.Add("attachementid", this.Configuration.ApiClient.ParameterToString(attachementid)); // path parameter - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetForProcessAttachement", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the ticket for downloading a file associated with the document process into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - public System.IO.Stream DocumentTicketsGetForProcessDocument (int? processdocid, int? processId, bool? forView = null) - { - ApiResponse localVarResponse = DocumentTicketsGetForProcessDocumentWithHttpInfo(processdocid, processId, forView); - return localVarResponse.Data; - } - - /// - /// This call returns the ticket for downloading a file associated with the document process into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentTicketsGetForProcessDocumentWithHttpInfo (int? processdocid, int? processId, bool? forView = null) - { - // verify the required parameter 'processdocid' is set - if (processdocid == null) - throw new ApiException(400, "Missing required parameter 'processdocid' when calling DocumentTicketsApi->DocumentTicketsGetForProcessDocument"); - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling DocumentTicketsApi->DocumentTicketsGetForProcessDocument"); - - var localVarPath = "/api/DocumentTickets/ticketProcessdocument/{processId}/{processdocid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processdocid != null) localVarPathParams.Add("processdocid", this.Configuration.ApiClient.ParameterToString(processdocid)); // path parameter - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetForProcessDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the ticket for downloading a file associated with the document process into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentTicketsGetForProcessDocumentAsync (int? processdocid, int? processId, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentTicketsGetForProcessDocumentAsyncWithHttpInfo(processdocid, processId, forView); - return localVarResponse.Data; - - } - - /// - /// This call returns the ticket for downloading a file associated with the document process into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentTicketsGetForProcessDocumentAsyncWithHttpInfo (int? processdocid, int? processId, bool? forView = null) - { - // verify the required parameter 'processdocid' is set - if (processdocid == null) - throw new ApiException(400, "Missing required parameter 'processdocid' when calling DocumentTicketsApi->DocumentTicketsGetForProcessDocument"); - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling DocumentTicketsApi->DocumentTicketsGetForProcessDocument"); - - var localVarPath = "/api/DocumentTickets/ticketProcessdocument/{processId}/{processdocid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processdocid != null) localVarPathParams.Add("processdocid", this.Configuration.ApiClient.ParameterToString(processdocid)); // path parameter - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetForProcessDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the ticket for downloading a file associated with a specified profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - public System.IO.Stream DocumentTicketsGetForProfile (int? id, bool? forView = null) - { - ApiResponse localVarResponse = DocumentTicketsGetForProfileWithHttpInfo(id, forView); - return localVarResponse.Data; - } - - /// - /// This call returns the ticket for downloading a file associated with a specified profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentTicketsGetForProfileWithHttpInfo (int? id, bool? forView = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentTicketsApi->DocumentTicketsGetForProfile"); - - var localVarPath = "/api/DocumentTickets/ticket/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetForProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the ticket for downloading a file associated with a specified profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentTicketsGetForProfileAsync (int? id, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentTicketsGetForProfileAsyncWithHttpInfo(id, forView); - return localVarResponse.Data; - - } - - /// - /// This call returns the ticket for downloading a file associated with a specified profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentTicketsGetForProfileAsyncWithHttpInfo (int? id, bool? forView = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentTicketsApi->DocumentTicketsGetForProfile"); - - var localVarPath = "/api/DocumentTickets/ticket/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetForProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - public System.IO.Stream DocumentTicketsGetForTask (int? processDocId, int? taskWorkId, bool? forView = null) - { - ApiResponse localVarResponse = DocumentTicketsGetForTaskWithHttpInfo(processDocId, taskWorkId, forView); - return localVarResponse.Data; - } - - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentTicketsGetForTaskWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentTicketsApi->DocumentTicketsGetForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling DocumentTicketsApi->DocumentTicketsGetForTask"); - - var localVarPath = "/api/DocumentTickets/ticketForTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentTicketsGetForTaskAsync (int? processDocId, int? taskWorkId, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentTicketsGetForTaskAsyncWithHttpInfo(processDocId, taskWorkId, forView); - return localVarResponse.Data; - - } - - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentTicketsGetForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentTicketsApi->DocumentTicketsGetForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling DocumentTicketsApi->DocumentTicketsGetForTask"); - - var localVarPath = "/api/DocumentTickets/ticketForTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the ticket for downloading a file associated with the task attachment - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - public System.IO.Stream DocumentTicketsGetForTaskAttachement (int? id, bool? forView = null) - { - ApiResponse localVarResponse = DocumentTicketsGetForTaskAttachementWithHttpInfo(id, forView); - return localVarResponse.Data; - } - - /// - /// This call returns the ticket for downloading a file associated with the task attachment - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentTicketsGetForTaskAttachementWithHttpInfo (int? id, bool? forView = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentTicketsApi->DocumentTicketsGetForTaskAttachement"); - - var localVarPath = "/api/DocumentTickets/ticketTaskattachments/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetForTaskAttachement", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the ticket for downloading a file associated with the task attachment - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentTicketsGetForTaskAttachementAsync (int? id, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentTicketsGetForTaskAttachementAsyncWithHttpInfo(id, forView); - return localVarResponse.Data; - - } - - /// - /// This call returns the ticket for downloading a file associated with the task attachment - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentTicketsGetForTaskAttachementAsyncWithHttpInfo (int? id, bool? forView = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentTicketsApi->DocumentTicketsGetForTaskAttachement"); - - var localVarPath = "/api/DocumentTickets/ticketTaskattachments/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetForTaskAttachement", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process, for read-only management - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - public System.IO.Stream DocumentTicketsGetForTaskReadOnly (int? processDocId, int? taskWorkId, bool? forView = null) - { - ApiResponse localVarResponse = DocumentTicketsGetForTaskReadOnlyWithHttpInfo(processDocId, taskWorkId, forView); - return localVarResponse.Data; - } - - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process, for read-only management - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentTicketsGetForTaskReadOnlyWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentTicketsApi->DocumentTicketsGetForTaskReadOnly"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling DocumentTicketsApi->DocumentTicketsGetForTaskReadOnly"); - - var localVarPath = "/api/DocumentTickets/ticketForTaskReadOnly/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetForTaskReadOnly", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process, for read-only management - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentTicketsGetForTaskReadOnlyAsync (int? processDocId, int? taskWorkId, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentTicketsGetForTaskReadOnlyAsyncWithHttpInfo(processDocId, taskWorkId, forView); - return localVarResponse.Data; - - } - - /// - /// This call returns the ticket for downloading a file associated with a taskwork and a document in process, for read-only management - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentTicketsGetForTaskReadOnlyAsyncWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentTicketsApi->DocumentTicketsGetForTaskReadOnly"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling DocumentTicketsApi->DocumentTicketsGetForTaskReadOnly"); - - var localVarPath = "/api/DocumentTickets/ticketForTaskReadOnly/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetForTaskReadOnly", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call retrieve the ticket for downloading an attachemnt file by its revision - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// string - public string DocumentTicketsGetRevisionDocumentById (int? attachmentId, int? revisionId, bool? forView = null) - { - ApiResponse localVarResponse = DocumentTicketsGetRevisionDocumentByIdWithHttpInfo(attachmentId, revisionId, forView); - return localVarResponse.Data; - } - - /// - /// This call retrieve the ticket for downloading an attachemnt file by its revision - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of string - public ApiResponse< string > DocumentTicketsGetRevisionDocumentByIdWithHttpInfo (int? attachmentId, int? revisionId, bool? forView = null) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling DocumentTicketsApi->DocumentTicketsGetRevisionDocumentById"); - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling DocumentTicketsApi->DocumentTicketsGetRevisionDocumentById"); - - var localVarPath = "/api/DocumentTickets/ticketProfileAttachment/{attachmentId}/revisions/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetRevisionDocumentById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call retrieve the ticket for downloading an attachemnt file by its revision - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of string - public async System.Threading.Tasks.Task DocumentTicketsGetRevisionDocumentByIdAsync (int? attachmentId, int? revisionId, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentTicketsGetRevisionDocumentByIdAsyncWithHttpInfo(attachmentId, revisionId, forView); - return localVarResponse.Data; - - } - - /// - /// This call retrieve the ticket for downloading an attachemnt file by its revision - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> DocumentTicketsGetRevisionDocumentByIdAsyncWithHttpInfo (int? attachmentId, int? revisionId, bool? forView = null) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling DocumentTicketsApi->DocumentTicketsGetRevisionDocumentById"); - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling DocumentTicketsApi->DocumentTicketsGetRevisionDocumentById"); - - var localVarPath = "/api/DocumentTickets/ticketProfileAttachment/{attachmentId}/revisions/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTicketsGetRevisionDocumentById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/DocumentTypesApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/DocumentTypesApi.cs deleted file mode 100644 index 58a362d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/DocumentTypesApi.cs +++ /dev/null @@ -1,1503 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDocumentTypesApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all the document types configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<DocumentTypeBaseDTO> - List DocumentTypesGet (); - - /// - /// This call returns all the document types configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<DocumentTypeBaseDTO> - ApiResponse> DocumentTypesGetWithHttpInfo (); - /// - /// This call returns a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type id - /// DocumentTypeBaseDTO - DocumentTypeBaseDTO DocumentTypesGetBySystemId (int? documentTypeId); - - /// - /// This call returns a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type id - /// ApiResponse of DocumentTypeBaseDTO - ApiResponse DocumentTypesGetBySystemIdWithHttpInfo (int? documentTypeId); - /// - /// This call returns the document types that the user can access - /// - /// - /// This method is deprecated. Use /api/DocumentTypes/{mode}/mode?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// List<DocumentTypeBaseDTO> - List DocumentTypesGetOld (int? mode, string businessunitcode); - - /// - /// This call returns the document types that the user can access - /// - /// - /// This method is deprecated. Use /api/DocumentTypes/{mode}/mode?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// ApiResponse of List<DocumentTypeBaseDTO> - ApiResponse> DocumentTypesGetOldWithHttpInfo (int? mode, string businessunitcode); - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// DocumentTypeBaseTreeDTO - DocumentTypeBaseTreeDTO DocumentTypesGetTree (int? mode, string businessunitcode = null); - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// ApiResponse of DocumentTypeBaseTreeDTO - ApiResponse DocumentTypesGetTreeWithHttpInfo (int? mode, string businessunitcode = null); - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// - /// This method is deprecated. Use /api/DocumentTypes/GetTree/{mode}?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// If the type is of Protocol (PA) (default false) - /// DocumentTypeBaseTreeDTO - DocumentTypeBaseTreeDTO DocumentTypesGetTreeOld (int? mode, string businessunitcode, bool? forProtocol); - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// - /// This method is deprecated. Use /api/DocumentTypes/GetTree/{mode}?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// If the type is of Protocol (PA) (default false) - /// ApiResponse of DocumentTypeBaseTreeDTO - ApiResponse DocumentTypesGetTreeOldWithHttpInfo (int? mode, string businessunitcode, bool? forProtocol); - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// - /// - /// - /// Thrown when fails to make API call - /// DocumentTypeBaseTreeDTO - DocumentTypeBaseTreeDTO DocumentTypesGetTree_0 (); - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of DocumentTypeBaseTreeDTO - ApiResponse DocumentTypesGetTree_0WithHttpInfo (); - /// - /// This call returns the document types that the user can access - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// List<DocumentTypeBaseDTO> - List DocumentTypesGet_0 (int? mode, string businessUnitCode = null); - - /// - /// This call returns the document types that the user can access - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// ApiResponse of List<DocumentTypeBaseDTO> - ApiResponse> DocumentTypesGet_0WithHttpInfo (int? mode, string businessUnitCode = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all the document types configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<DocumentTypeBaseDTO> - System.Threading.Tasks.Task> DocumentTypesGetAsync (); - - /// - /// This call returns all the document types configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<DocumentTypeBaseDTO>) - System.Threading.Tasks.Task>> DocumentTypesGetAsyncWithHttpInfo (); - /// - /// This call returns a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type id - /// Task of DocumentTypeBaseDTO - System.Threading.Tasks.Task DocumentTypesGetBySystemIdAsync (int? documentTypeId); - - /// - /// This call returns a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type id - /// Task of ApiResponse (DocumentTypeBaseDTO) - System.Threading.Tasks.Task> DocumentTypesGetBySystemIdAsyncWithHttpInfo (int? documentTypeId); - /// - /// This call returns the document types that the user can access - /// - /// - /// This method is deprecated. Use /api/DocumentTypes/{mode}/mode?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// Task of List<DocumentTypeBaseDTO> - System.Threading.Tasks.Task> DocumentTypesGetOldAsync (int? mode, string businessunitcode); - - /// - /// This call returns the document types that the user can access - /// - /// - /// This method is deprecated. Use /api/DocumentTypes/{mode}/mode?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// Task of ApiResponse (List<DocumentTypeBaseDTO>) - System.Threading.Tasks.Task>> DocumentTypesGetOldAsyncWithHttpInfo (int? mode, string businessunitcode); - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// Task of DocumentTypeBaseTreeDTO - System.Threading.Tasks.Task DocumentTypesGetTreeAsync (int? mode, string businessunitcode = null); - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// Task of ApiResponse (DocumentTypeBaseTreeDTO) - System.Threading.Tasks.Task> DocumentTypesGetTreeAsyncWithHttpInfo (int? mode, string businessunitcode = null); - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// - /// This method is deprecated. Use /api/DocumentTypes/GetTree/{mode}?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// If the type is of Protocol (PA) (default false) - /// Task of DocumentTypeBaseTreeDTO - System.Threading.Tasks.Task DocumentTypesGetTreeOldAsync (int? mode, string businessunitcode, bool? forProtocol); - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// - /// This method is deprecated. Use /api/DocumentTypes/GetTree/{mode}?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// If the type is of Protocol (PA) (default false) - /// Task of ApiResponse (DocumentTypeBaseTreeDTO) - System.Threading.Tasks.Task> DocumentTypesGetTreeOldAsyncWithHttpInfo (int? mode, string businessunitcode, bool? forProtocol); - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of DocumentTypeBaseTreeDTO - System.Threading.Tasks.Task DocumentTypesGetTree_0Async (); - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DocumentTypeBaseTreeDTO) - System.Threading.Tasks.Task> DocumentTypesGetTree_0AsyncWithHttpInfo (); - /// - /// This call returns the document types that the user can access - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// Task of List<DocumentTypeBaseDTO> - System.Threading.Tasks.Task> DocumentTypesGet_0Async (int? mode, string businessUnitCode = null); - - /// - /// This call returns the document types that the user can access - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// Task of ApiResponse (List<DocumentTypeBaseDTO>) - System.Threading.Tasks.Task>> DocumentTypesGet_0AsyncWithHttpInfo (int? mode, string businessUnitCode = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class DocumentTypesApi : IDocumentTypesApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public DocumentTypesApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public DocumentTypesApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all the document types configured - /// - /// Thrown when fails to make API call - /// List<DocumentTypeBaseDTO> - public List DocumentTypesGet () - { - ApiResponse> localVarResponse = DocumentTypesGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all the document types configured - /// - /// Thrown when fails to make API call - /// ApiResponse of List<DocumentTypeBaseDTO> - public ApiResponse< List > DocumentTypesGetWithHttpInfo () - { - - var localVarPath = "/api/DocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the document types configured - /// - /// Thrown when fails to make API call - /// Task of List<DocumentTypeBaseDTO> - public async System.Threading.Tasks.Task> DocumentTypesGetAsync () - { - ApiResponse> localVarResponse = await DocumentTypesGetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all the document types configured - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<DocumentTypeBaseDTO>) - public async System.Threading.Tasks.Task>> DocumentTypesGetAsyncWithHttpInfo () - { - - var localVarPath = "/api/DocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a specific document type - /// - /// Thrown when fails to make API call - /// Document Type id - /// DocumentTypeBaseDTO - public DocumentTypeBaseDTO DocumentTypesGetBySystemId (int? documentTypeId) - { - ApiResponse localVarResponse = DocumentTypesGetBySystemIdWithHttpInfo(documentTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns a specific document type - /// - /// Thrown when fails to make API call - /// Document Type id - /// ApiResponse of DocumentTypeBaseDTO - public ApiResponse< DocumentTypeBaseDTO > DocumentTypesGetBySystemIdWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesApi->DocumentTypesGetBySystemId"); - - var localVarPath = "/api/DocumentTypes/{documentTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesGetBySystemId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeBaseDTO))); - } - - /// - /// This call returns a specific document type - /// - /// Thrown when fails to make API call - /// Document Type id - /// Task of DocumentTypeBaseDTO - public async System.Threading.Tasks.Task DocumentTypesGetBySystemIdAsync (int? documentTypeId) - { - ApiResponse localVarResponse = await DocumentTypesGetBySystemIdAsyncWithHttpInfo(documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns a specific document type - /// - /// Thrown when fails to make API call - /// Document Type id - /// Task of ApiResponse (DocumentTypeBaseDTO) - public async System.Threading.Tasks.Task> DocumentTypesGetBySystemIdAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesApi->DocumentTypesGetBySystemId"); - - var localVarPath = "/api/DocumentTypes/{documentTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesGetBySystemId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeBaseDTO))); - } - - /// - /// This call returns the document types that the user can access This method is deprecated. Use /api/DocumentTypes/{mode}/mode?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// List<DocumentTypeBaseDTO> - public List DocumentTypesGetOld (int? mode, string businessunitcode) - { - ApiResponse> localVarResponse = DocumentTypesGetOldWithHttpInfo(mode, businessunitcode); - return localVarResponse.Data; - } - - /// - /// This call returns the document types that the user can access This method is deprecated. Use /api/DocumentTypes/{mode}/mode?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// ApiResponse of List<DocumentTypeBaseDTO> - public ApiResponse< List > DocumentTypesGetOldWithHttpInfo (int? mode, string businessunitcode) - { - // verify the required parameter 'mode' is set - if (mode == null) - throw new ApiException(400, "Missing required parameter 'mode' when calling DocumentTypesApi->DocumentTypesGetOld"); - // verify the required parameter 'businessunitcode' is set - if (businessunitcode == null) - throw new ApiException(400, "Missing required parameter 'businessunitcode' when calling DocumentTypesApi->DocumentTypesGetOld"); - - var localVarPath = "/api/DocumentTypes/{mode}/mode/{businessunitcode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mode != null) localVarPathParams.Add("mode", this.Configuration.ApiClient.ParameterToString(mode)); // path parameter - if (businessunitcode != null) localVarPathParams.Add("businessunitcode", this.Configuration.ApiClient.ParameterToString(businessunitcode)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesGetOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the document types that the user can access This method is deprecated. Use /api/DocumentTypes/{mode}/mode?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// Task of List<DocumentTypeBaseDTO> - public async System.Threading.Tasks.Task> DocumentTypesGetOldAsync (int? mode, string businessunitcode) - { - ApiResponse> localVarResponse = await DocumentTypesGetOldAsyncWithHttpInfo(mode, businessunitcode); - return localVarResponse.Data; - - } - - /// - /// This call returns the document types that the user can access This method is deprecated. Use /api/DocumentTypes/{mode}/mode?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// Task of ApiResponse (List<DocumentTypeBaseDTO>) - public async System.Threading.Tasks.Task>> DocumentTypesGetOldAsyncWithHttpInfo (int? mode, string businessunitcode) - { - // verify the required parameter 'mode' is set - if (mode == null) - throw new ApiException(400, "Missing required parameter 'mode' when calling DocumentTypesApi->DocumentTypesGetOld"); - // verify the required parameter 'businessunitcode' is set - if (businessunitcode == null) - throw new ApiException(400, "Missing required parameter 'businessunitcode' when calling DocumentTypesApi->DocumentTypesGetOld"); - - var localVarPath = "/api/DocumentTypes/{mode}/mode/{businessunitcode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mode != null) localVarPathParams.Add("mode", this.Configuration.ApiClient.ParameterToString(mode)); // path parameter - if (businessunitcode != null) localVarPathParams.Add("businessunitcode", this.Configuration.ApiClient.ParameterToString(businessunitcode)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesGetOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// DocumentTypeBaseTreeDTO - public DocumentTypeBaseTreeDTO DocumentTypesGetTree (int? mode, string businessunitcode = null) - { - ApiResponse localVarResponse = DocumentTypesGetTreeWithHttpInfo(mode, businessunitcode); - return localVarResponse.Data; - } - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// ApiResponse of DocumentTypeBaseTreeDTO - public ApiResponse< DocumentTypeBaseTreeDTO > DocumentTypesGetTreeWithHttpInfo (int? mode, string businessunitcode = null) - { - // verify the required parameter 'mode' is set - if (mode == null) - throw new ApiException(400, "Missing required parameter 'mode' when calling DocumentTypesApi->DocumentTypesGetTree"); - - var localVarPath = "/api/DocumentTypes/GetTree/{mode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mode != null) localVarPathParams.Add("mode", this.Configuration.ApiClient.ParameterToString(mode)); // path parameter - if (businessunitcode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessunitcode", businessunitcode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesGetTree", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeBaseTreeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeBaseTreeDTO))); - } - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// Task of DocumentTypeBaseTreeDTO - public async System.Threading.Tasks.Task DocumentTypesGetTreeAsync (int? mode, string businessunitcode = null) - { - ApiResponse localVarResponse = await DocumentTypesGetTreeAsyncWithHttpInfo(mode, businessunitcode); - return localVarResponse.Data; - - } - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// Task of ApiResponse (DocumentTypeBaseTreeDTO) - public async System.Threading.Tasks.Task> DocumentTypesGetTreeAsyncWithHttpInfo (int? mode, string businessunitcode = null) - { - // verify the required parameter 'mode' is set - if (mode == null) - throw new ApiException(400, "Missing required parameter 'mode' when calling DocumentTypesApi->DocumentTypesGetTree"); - - var localVarPath = "/api/DocumentTypes/GetTree/{mode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mode != null) localVarPathParams.Add("mode", this.Configuration.ApiClient.ParameterToString(mode)); // path parameter - if (businessunitcode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessunitcode", businessunitcode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesGetTree", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeBaseTreeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeBaseTreeDTO))); - } - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship This method is deprecated. Use /api/DocumentTypes/GetTree/{mode}?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// If the type is of Protocol (PA) (default false) - /// DocumentTypeBaseTreeDTO - public DocumentTypeBaseTreeDTO DocumentTypesGetTreeOld (int? mode, string businessunitcode, bool? forProtocol) - { - ApiResponse localVarResponse = DocumentTypesGetTreeOldWithHttpInfo(mode, businessunitcode, forProtocol); - return localVarResponse.Data; - } - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship This method is deprecated. Use /api/DocumentTypes/GetTree/{mode}?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// If the type is of Protocol (PA) (default false) - /// ApiResponse of DocumentTypeBaseTreeDTO - public ApiResponse< DocumentTypeBaseTreeDTO > DocumentTypesGetTreeOldWithHttpInfo (int? mode, string businessunitcode, bool? forProtocol) - { - // verify the required parameter 'mode' is set - if (mode == null) - throw new ApiException(400, "Missing required parameter 'mode' when calling DocumentTypesApi->DocumentTypesGetTreeOld"); - // verify the required parameter 'businessunitcode' is set - if (businessunitcode == null) - throw new ApiException(400, "Missing required parameter 'businessunitcode' when calling DocumentTypesApi->DocumentTypesGetTreeOld"); - // verify the required parameter 'forProtocol' is set - if (forProtocol == null) - throw new ApiException(400, "Missing required parameter 'forProtocol' when calling DocumentTypesApi->DocumentTypesGetTreeOld"); - - var localVarPath = "/api/DocumentTypes/GetTree/{mode}/{businessunitcode}/{forProtocol}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mode != null) localVarPathParams.Add("mode", this.Configuration.ApiClient.ParameterToString(mode)); // path parameter - if (businessunitcode != null) localVarPathParams.Add("businessunitcode", this.Configuration.ApiClient.ParameterToString(businessunitcode)); // path parameter - if (forProtocol != null) localVarPathParams.Add("forProtocol", this.Configuration.ApiClient.ParameterToString(forProtocol)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesGetTreeOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeBaseTreeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeBaseTreeDTO))); - } - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship This method is deprecated. Use /api/DocumentTypes/GetTree/{mode}?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// If the type is of Protocol (PA) (default false) - /// Task of DocumentTypeBaseTreeDTO - public async System.Threading.Tasks.Task DocumentTypesGetTreeOldAsync (int? mode, string businessunitcode, bool? forProtocol) - { - ApiResponse localVarResponse = await DocumentTypesGetTreeOldAsyncWithHttpInfo(mode, businessunitcode, forProtocol); - return localVarResponse.Data; - - } - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship This method is deprecated. Use /api/DocumentTypes/GetTree/{mode}?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) - /// If the type is of Protocol (PA) (default false) - /// Task of ApiResponse (DocumentTypeBaseTreeDTO) - public async System.Threading.Tasks.Task> DocumentTypesGetTreeOldAsyncWithHttpInfo (int? mode, string businessunitcode, bool? forProtocol) - { - // verify the required parameter 'mode' is set - if (mode == null) - throw new ApiException(400, "Missing required parameter 'mode' when calling DocumentTypesApi->DocumentTypesGetTreeOld"); - // verify the required parameter 'businessunitcode' is set - if (businessunitcode == null) - throw new ApiException(400, "Missing required parameter 'businessunitcode' when calling DocumentTypesApi->DocumentTypesGetTreeOld"); - // verify the required parameter 'forProtocol' is set - if (forProtocol == null) - throw new ApiException(400, "Missing required parameter 'forProtocol' when calling DocumentTypesApi->DocumentTypesGetTreeOld"); - - var localVarPath = "/api/DocumentTypes/GetTree/{mode}/{businessunitcode}/{forProtocol}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mode != null) localVarPathParams.Add("mode", this.Configuration.ApiClient.ParameterToString(mode)); // path parameter - if (businessunitcode != null) localVarPathParams.Add("businessunitcode", this.Configuration.ApiClient.ParameterToString(businessunitcode)); // path parameter - if (forProtocol != null) localVarPathParams.Add("forProtocol", this.Configuration.ApiClient.ParameterToString(forProtocol)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesGetTreeOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeBaseTreeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeBaseTreeDTO))); - } - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// Thrown when fails to make API call - /// DocumentTypeBaseTreeDTO - public DocumentTypeBaseTreeDTO DocumentTypesGetTree_0 () - { - ApiResponse localVarResponse = DocumentTypesGetTree_0WithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// Thrown when fails to make API call - /// ApiResponse of DocumentTypeBaseTreeDTO - public ApiResponse< DocumentTypeBaseTreeDTO > DocumentTypesGetTree_0WithHttpInfo () - { - - var localVarPath = "/api/DocumentTypes/GetTree"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesGetTree_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeBaseTreeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeBaseTreeDTO))); - } - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// Thrown when fails to make API call - /// Task of DocumentTypeBaseTreeDTO - public async System.Threading.Tasks.Task DocumentTypesGetTree_0Async () - { - ApiResponse localVarResponse = await DocumentTypesGetTree_0AsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the document types that the user can access but in a preformatted tree with parent/child relationship - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DocumentTypeBaseTreeDTO) - public async System.Threading.Tasks.Task> DocumentTypesGetTree_0AsyncWithHttpInfo () - { - - var localVarPath = "/api/DocumentTypes/GetTree"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesGetTree_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeBaseTreeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeBaseTreeDTO))); - } - - /// - /// This call returns the document types that the user can access - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// List<DocumentTypeBaseDTO> - public List DocumentTypesGet_0 (int? mode, string businessUnitCode = null) - { - ApiResponse> localVarResponse = DocumentTypesGet_0WithHttpInfo(mode, businessUnitCode); - return localVarResponse.Data; - } - - /// - /// This call returns the document types that the user can access - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// ApiResponse of List<DocumentTypeBaseDTO> - public ApiResponse< List > DocumentTypesGet_0WithHttpInfo (int? mode, string businessUnitCode = null) - { - // verify the required parameter 'mode' is set - if (mode == null) - throw new ApiException(400, "Missing required parameter 'mode' when calling DocumentTypesApi->DocumentTypesGet_0"); - - var localVarPath = "/api/DocumentTypes/{mode}/mode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mode != null) localVarPathParams.Add("mode", this.Configuration.ApiClient.ParameterToString(mode)); // path parameter - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesGet_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the document types that the user can access - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// Task of List<DocumentTypeBaseDTO> - public async System.Threading.Tasks.Task> DocumentTypesGet_0Async (int? mode, string businessUnitCode = null) - { - ApiResponse> localVarResponse = await DocumentTypesGet_0AsyncWithHttpInfo(mode, businessUnitCode); - return localVarResponse.Data; - - } - - /// - /// This call returns the document types that the user can access - /// - /// Thrown when fails to make API call - /// Possible values: 0: Archive 1: Search 2: EditProfile - /// Business Unit (optional) (optional) - /// Task of ApiResponse (List<DocumentTypeBaseDTO>) - public async System.Threading.Tasks.Task>> DocumentTypesGet_0AsyncWithHttpInfo (int? mode, string businessUnitCode = null) - { - // verify the required parameter 'mode' is set - if (mode == null) - throw new ApiException(400, "Missing required parameter 'mode' when calling DocumentTypesApi->DocumentTypesGet_0"); - - var localVarPath = "/api/DocumentTypes/{mode}/mode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mode != null) localVarPathParams.Add("mode", this.Configuration.ApiClient.ParameterToString(mode)); // path parameter - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesGet_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/DocumentsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/DocumentsApi.cs deleted file mode 100644 index 87919e2..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/DocumentsApi.cs +++ /dev/null @@ -1,6823 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDocumentsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns if the user can write the file. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// bool? - bool? DocumentsCanRead (int? docnumber); - - /// - /// This call returns if the user can write the file. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of bool? - ApiResponse DocumentsCanReadWithHttpInfo (int? docnumber); - /// - /// This call returns if the user can write the file. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - void DocumentsCanWrite (int? docnumber); - - /// - /// This call returns if the user can write the file. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of Object(void) - ApiResponse DocumentsCanWriteWithHttpInfo (int? docnumber); - /// - /// This call returns if the user can write the document under workflow process. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// - void DocumentsCanWriteForTask (int? processDocId, int? taskWorkId); - - /// - /// This call returns if the user can write the document under workflow process. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// ApiResponse of Object(void) - ApiResponse DocumentsCanWriteForTaskWithHttpInfo (int? processDocId, int? taskWorkId); - /// - /// This call returns if the user can write the document under workflow process (V2). - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of profile - /// - void DocumentsCanWriteForTask_0 (Guid? documentId, int? docnumber); - - /// - /// This call returns if the user can write the document under workflow process (V2). - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of profile - /// ApiResponse of Object(void) - ApiResponse DocumentsCanWriteForTask_0WithHttpInfo (Guid? documentId, int? docnumber); - /// - /// This call start new export procedure - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// System.IO.Stream - System.IO.Stream DocumentsExportMassiveForProfile (ExportMassiveForProfileRequestDTO exportMassiveForProfileRequest); - - /// - /// This call start new export procedure - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsExportMassiveForProfileWithHttpInfo (ExportMassiveForProfileRequestDTO exportMassiveForProfileRequest); - /// - /// This call start new export procedure for processdoc - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// System.IO.Stream - System.IO.Stream DocumentsExportMassiveForProfile_0 (ExportMassiveForProcessDocRequestDTO exportMassiveForProcessDocRequest); - - /// - /// This call start new export procedure for processdoc - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsExportMassiveForProfile_0WithHttpInfo (ExportMassiveForProcessDocRequestDTO exportMassiveForProcessDocRequest); - /// - /// This call returns the document associated to a specified revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - System.IO.Stream DocumentsGetDocumentByRevisionId (int? revisionId, bool? forView = null); - - /// - /// This call returns the document associated to a specified revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetDocumentByRevisionIdWithHttpInfo (int? revisionId, bool? forView = null); - /// - /// This call returns the file, contained in the signature, associated with the profile - /// - /// - /// This method is deprecated. Use {id}/{forView} instead - /// - /// Thrown when fails to make API call - /// Document Identifier - /// System.IO.Stream - System.IO.Stream DocumentsGetExtractP7M (int? id); - - /// - /// This call returns the file, contained in the signature, associated with the profile - /// - /// - /// This method is deprecated. Use {id}/{forView} instead - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetExtractP7MWithHttpInfo (int? id); - /// - /// This call returns the document associated to a specified revision (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// System.IO.Stream - System.IO.Stream DocumentsGetExtractedDocumentByRevisionId (int? revisionId); - - /// - /// This call returns the document associated to a specified revision (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetExtractedDocumentByRevisionIdWithHttpInfo (int? revisionId); - /// - /// This call returns the file associated with a specified profile (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// System.IO.Stream - System.IO.Stream DocumentsGetExtractedForProfile (int? id); - - /// - /// This call returns the file associated with a specified profile (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetExtractedForProfileWithHttpInfo (int? id); - /// - /// This call returns the file associated with a taskwork and a document in process (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// System.IO.Stream - System.IO.Stream DocumentsGetExtractedForTask (int? processDocId, int? taskWorkId); - - /// - /// This call returns the file associated with a taskwork and a document in process (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetExtractedForTaskWithHttpInfo (int? processDocId, int? taskWorkId); - /// - /// This call returns the file associated with the task attachment (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// System.IO.Stream - System.IO.Stream DocumentsGetExtractedForTaskAttachement (int? id); - - /// - /// This call returns the file associated with the task attachment (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetExtractedForTaskAttachementWithHttpInfo (int? id); - /// - /// This call retrieve a file for an external profile attachment (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// System.IO.Stream - System.IO.Stream DocumentsGetExtractedProfileAttachment (int? id); - - /// - /// This call retrieve a file for an external profile attachment (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetExtractedProfileAttachmentWithHttpInfo (int? id); - /// - /// This call retrieve the attachemnt file by its revision (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of attachment revision - /// System.IO.Stream - System.IO.Stream DocumentsGetExtractedProfileAttachmentRevision (int? attachmentId, int? attachmentRevisionId); - - /// - /// This call retrieve the attachemnt file by its revision (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of attachment revision - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetExtractedProfileAttachmentRevisionWithHttpInfo (int? attachmentId, int? attachmentRevisionId); - /// - /// This call retrieve a file for an external profile attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - System.IO.Stream DocumentsGetForExternalAttachment (int? id, bool? forView = null); - - /// - /// This call retrieve a file for an external profile attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetForExternalAttachmentWithHttpInfo (int? id, bool? forView = null); - /// - /// This call gets the document as attachment inside of an eml file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// System.IO.Stream - System.IO.Stream DocumentsGetForMail (int? id, bool? forView, bool? createZip, bool? addAttachments); - - /// - /// This call gets the document as attachment inside of an eml file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetForMailWithHttpInfo (int? id, bool? forView, bool? createZip, bool? addAttachments); - /// - /// This call returns the file associated with the attachment into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - System.IO.Stream DocumentsGetForProcessAttachement (int? attachementid, int? processId, bool? forView = null); - - /// - /// This call returns the file associated with the attachment into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetForProcessAttachementWithHttpInfo (int? attachementid, int? processId, bool? forView = null); - /// - /// This call returns the file associated with the document process into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - System.IO.Stream DocumentsGetForProcessDocument (int? processdocid, int? processId, bool? forView = null); - - /// - /// This call returns the file associated with the document process into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetForProcessDocumentWithHttpInfo (int? processdocid, int? processId, bool? forView = null); - /// - /// This call returns the file associated with a specified profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - System.IO.Stream DocumentsGetForProfile (int? id, bool? forView = null); - - /// - /// This call returns the file associated with a specified profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetForProfileWithHttpInfo (int? id, bool? forView = null); - /// - /// This call returns the file associated with a specified profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cache Identifier - /// System.IO.Stream - System.IO.Stream DocumentsGetForProfileByCacheId (int? id, string cacheId); - - /// - /// This call returns the file associated with a specified profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cache Identifier - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetForProfileByCacheIdWithHttpInfo (int? id, string cacheId); - /// - /// This call returns the file associated with a taskwork and a document in process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - System.IO.Stream DocumentsGetForTask (int? processDocId, int? taskWorkId, bool? forView = null); - - /// - /// This call returns the file associated with a taskwork and a document in process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetForTaskWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null); - /// - /// This call returns the file associated with the task attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - System.IO.Stream DocumentsGetForTaskAttachement (int? id, bool? forView = null); - - /// - /// This call returns the file associated with the task attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetForTaskAttachementWithHttpInfo (int? id, bool? forView = null); - /// - /// This call returns if the document process has a associated file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// bool? - bool? DocumentsGetForTaskHasDocument (int? processDocId); - - /// - /// This call returns if the document process has a associated file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// ApiResponse of bool? - ApiResponse DocumentsGetForTaskHasDocumentWithHttpInfo (int? processDocId); - /// - /// This call returns the file associated with a taskwork and a document in process, for read-only management - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - System.IO.Stream DocumentsGetForTaskReadOnly (int? processDocId, int? taskWorkId, bool? forView = null); - - /// - /// This call returns the file associated with a taskwork and a document in process, for read-only management - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetForTaskReadOnlyWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null); - /// - /// This call returns if the profile has a associated file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// bool? - bool? DocumentsGetHasDocumentForProfile (int? id); - - /// - /// This call returns if the profile has a associated file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of bool? - ApiResponse DocumentsGetHasDocumentForProfileWithHttpInfo (int? id); - /// - /// Creates an asynchronous queue job that creates an eml file with process documents in attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// MailMassiveForProfileResponseDTO - MailMassiveForProfileResponseDTO DocumentsGetMailMassiveForProcessDoc (MailMassiveForProcessDocRequestDTO mailMassiveForProcessDocRequest); - - /// - /// Creates an asynchronous queue job that creates an eml file with process documents in attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of MailMassiveForProfileResponseDTO - ApiResponse DocumentsGetMailMassiveForProcessDocWithHttpInfo (MailMassiveForProcessDocRequestDTO mailMassiveForProcessDocRequest); - /// - /// Creates an asynchronous queue job that creates an eml file with documents in attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// MailMassiveForProfileResponseDTO - MailMassiveForProfileResponseDTO DocumentsGetMailMassiveForProfile (MailMassiveForProfileRequestDTO mailMassiveForProfileRequest); - - /// - /// Creates an asynchronous queue job that creates an eml file with documents in attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of MailMassiveForProfileResponseDTO - ApiResponse DocumentsGetMailMassiveForProfileWithHttpInfo (MailMassiveForProfileRequestDTO mailMassiveForProfileRequest); - /// - /// This call gets the process document as attachment inside of an eml file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of process document - /// Id of task - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// System.IO.Stream - System.IO.Stream DocumentsGetProcessdocForMail (int? processDocId, int? taskWorkId, bool? forView, bool? createZip, bool? addAttachments); - - /// - /// This call gets the process document as attachment inside of an eml file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of process document - /// Id of task - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetProcessdocForMailWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView, bool? createZip, bool? addAttachments); - /// - /// This call retrieve the attachemnt file by its revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - System.IO.Stream DocumentsGetRevisionDocumentById (int? attachmentId, int? revisionId, bool? forView = null); - - /// - /// This call retrieve the attachemnt file by its revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - ApiResponse DocumentsGetRevisionDocumentByIdWithHttpInfo (int? attachmentId, int? revisionId, bool? forView = null); - /// - /// This call update a file associated to a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// - void DocumentsSetDocument (string cacheId, int? docNumber); - - /// - /// This call update a file associated to a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// ApiResponse of Object(void) - ApiResponse DocumentsSetDocumentWithHttpInfo (string cacheId, int? docNumber); - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// - void DocumentsSetDocumentWithOption (string cacheId, int? docNumber, int? updateOption); - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// ApiResponse of Object(void) - ApiResponse DocumentsSetDocumentWithOptionWithHttpInfo (string cacheId, int? docNumber, int? updateOption); - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// - void DocumentsSetDocumentWithOptionForProcessV2 (string cacheId, int? docNumber, int? updateOption); - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// ApiResponse of Object(void) - ApiResponse DocumentsSetDocumentWithOptionForProcessV2WithHttpInfo (string cacheId, int? docNumber, int? updateOption); - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Process document identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// - void DocumentsSetDocumentWithOptionForTaskV2 (string cacheId, int? docNumber, Guid? processDocId, int? updateOption); - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Process document identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// ApiResponse of Object(void) - ApiResponse DocumentsSetDocumentWithOptionForTaskV2WithHttpInfo (string cacheId, int? docNumber, Guid? processDocId, int? updateOption); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns if the user can write the file. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of bool? - System.Threading.Tasks.Task DocumentsCanReadAsync (int? docnumber); - - /// - /// This call returns if the user can write the file. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> DocumentsCanReadAsyncWithHttpInfo (int? docnumber); - /// - /// This call returns if the user can write the file. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of void - System.Threading.Tasks.Task DocumentsCanWriteAsync (int? docnumber); - - /// - /// This call returns if the user can write the file. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentsCanWriteAsyncWithHttpInfo (int? docnumber); - /// - /// This call returns if the user can write the document under workflow process. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Task of void - System.Threading.Tasks.Task DocumentsCanWriteForTaskAsync (int? processDocId, int? taskWorkId); - - /// - /// This call returns if the user can write the document under workflow process. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentsCanWriteForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId); - /// - /// This call returns if the user can write the document under workflow process (V2). - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of profile - /// Task of void - System.Threading.Tasks.Task DocumentsCanWriteForTask_0Async (Guid? documentId, int? docnumber); - - /// - /// This call returns if the user can write the document under workflow process (V2). - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of profile - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentsCanWriteForTask_0AsyncWithHttpInfo (Guid? documentId, int? docnumber); - /// - /// This call start new export procedure - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsExportMassiveForProfileAsync (ExportMassiveForProfileRequestDTO exportMassiveForProfileRequest); - - /// - /// This call start new export procedure - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsExportMassiveForProfileAsyncWithHttpInfo (ExportMassiveForProfileRequestDTO exportMassiveForProfileRequest); - /// - /// This call start new export procedure for processdoc - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsExportMassiveForProfile_0Async (ExportMassiveForProcessDocRequestDTO exportMassiveForProcessDocRequest); - - /// - /// This call start new export procedure for processdoc - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsExportMassiveForProfile_0AsyncWithHttpInfo (ExportMassiveForProcessDocRequestDTO exportMassiveForProcessDocRequest); - /// - /// This call returns the document associated to a specified revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetDocumentByRevisionIdAsync (int? revisionId, bool? forView = null); - - /// - /// This call returns the document associated to a specified revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetDocumentByRevisionIdAsyncWithHttpInfo (int? revisionId, bool? forView = null); - /// - /// This call returns the file, contained in the signature, associated with the profile - /// - /// - /// This method is deprecated. Use {id}/{forView} instead - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetExtractP7MAsync (int? id); - - /// - /// This call returns the file, contained in the signature, associated with the profile - /// - /// - /// This method is deprecated. Use {id}/{forView} instead - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetExtractP7MAsyncWithHttpInfo (int? id); - /// - /// This call returns the document associated to a specified revision (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetExtractedDocumentByRevisionIdAsync (int? revisionId); - - /// - /// This call returns the document associated to a specified revision (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetExtractedDocumentByRevisionIdAsyncWithHttpInfo (int? revisionId); - /// - /// This call returns the file associated with a specified profile (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetExtractedForProfileAsync (int? id); - - /// - /// This call returns the file associated with a specified profile (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetExtractedForProfileAsyncWithHttpInfo (int? id); - /// - /// This call returns the file associated with a taskwork and a document in process (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetExtractedForTaskAsync (int? processDocId, int? taskWorkId); - - /// - /// This call returns the file associated with a taskwork and a document in process (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetExtractedForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId); - /// - /// This call returns the file associated with the task attachment (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetExtractedForTaskAttachementAsync (int? id); - - /// - /// This call returns the file associated with the task attachment (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetExtractedForTaskAttachementAsyncWithHttpInfo (int? id); - /// - /// This call retrieve a file for an external profile attachment (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetExtractedProfileAttachmentAsync (int? id); - - /// - /// This call retrieve a file for an external profile attachment (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetExtractedProfileAttachmentAsyncWithHttpInfo (int? id); - /// - /// This call retrieve the attachemnt file by its revision (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of attachment revision - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetExtractedProfileAttachmentRevisionAsync (int? attachmentId, int? attachmentRevisionId); - - /// - /// This call retrieve the attachemnt file by its revision (extracted from cryptographic envelopes) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of attachment revision - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetExtractedProfileAttachmentRevisionAsyncWithHttpInfo (int? attachmentId, int? attachmentRevisionId); - /// - /// This call retrieve a file for an external profile attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetForExternalAttachmentAsync (int? id, bool? forView = null); - - /// - /// This call retrieve a file for an external profile attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetForExternalAttachmentAsyncWithHttpInfo (int? id, bool? forView = null); - /// - /// This call gets the document as attachment inside of an eml file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetForMailAsync (int? id, bool? forView, bool? createZip, bool? addAttachments); - - /// - /// This call gets the document as attachment inside of an eml file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetForMailAsyncWithHttpInfo (int? id, bool? forView, bool? createZip, bool? addAttachments); - /// - /// This call returns the file associated with the attachment into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetForProcessAttachementAsync (int? attachementid, int? processId, bool? forView = null); - - /// - /// This call returns the file associated with the attachment into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetForProcessAttachementAsyncWithHttpInfo (int? attachementid, int? processId, bool? forView = null); - /// - /// This call returns the file associated with the document process into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetForProcessDocumentAsync (int? processdocid, int? processId, bool? forView = null); - - /// - /// This call returns the file associated with the document process into in a process workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetForProcessDocumentAsyncWithHttpInfo (int? processdocid, int? processId, bool? forView = null); - /// - /// This call returns the file associated with a specified profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetForProfileAsync (int? id, bool? forView = null); - - /// - /// This call returns the file associated with a specified profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetForProfileAsyncWithHttpInfo (int? id, bool? forView = null); - /// - /// This call returns the file associated with a specified profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cache Identifier - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetForProfileByCacheIdAsync (int? id, string cacheId); - - /// - /// This call returns the file associated with a specified profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cache Identifier - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetForProfileByCacheIdAsyncWithHttpInfo (int? id, string cacheId); - /// - /// This call returns the file associated with a taskwork and a document in process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetForTaskAsync (int? processDocId, int? taskWorkId, bool? forView = null); - - /// - /// This call returns the file associated with a taskwork and a document in process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null); - /// - /// This call returns the file associated with the task attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetForTaskAttachementAsync (int? id, bool? forView = null); - - /// - /// This call returns the file associated with the task attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetForTaskAttachementAsyncWithHttpInfo (int? id, bool? forView = null); - /// - /// This call returns if the document process has a associated file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Task of bool? - System.Threading.Tasks.Task DocumentsGetForTaskHasDocumentAsync (int? processDocId); - - /// - /// This call returns if the document process has a associated file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> DocumentsGetForTaskHasDocumentAsyncWithHttpInfo (int? processDocId); - /// - /// This call returns the file associated with a taskwork and a document in process, for read-only management - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetForTaskReadOnlyAsync (int? processDocId, int? taskWorkId, bool? forView = null); - - /// - /// This call returns the file associated with a taskwork and a document in process, for read-only management - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetForTaskReadOnlyAsyncWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null); - /// - /// This call returns if the profile has a associated file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of bool? - System.Threading.Tasks.Task DocumentsGetHasDocumentForProfileAsync (int? id); - - /// - /// This call returns if the profile has a associated file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> DocumentsGetHasDocumentForProfileAsyncWithHttpInfo (int? id); - /// - /// Creates an asynchronous queue job that creates an eml file with process documents in attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of MailMassiveForProfileResponseDTO - System.Threading.Tasks.Task DocumentsGetMailMassiveForProcessDocAsync (MailMassiveForProcessDocRequestDTO mailMassiveForProcessDocRequest); - - /// - /// Creates an asynchronous queue job that creates an eml file with process documents in attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (MailMassiveForProfileResponseDTO) - System.Threading.Tasks.Task> DocumentsGetMailMassiveForProcessDocAsyncWithHttpInfo (MailMassiveForProcessDocRequestDTO mailMassiveForProcessDocRequest); - /// - /// Creates an asynchronous queue job that creates an eml file with documents in attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of MailMassiveForProfileResponseDTO - System.Threading.Tasks.Task DocumentsGetMailMassiveForProfileAsync (MailMassiveForProfileRequestDTO mailMassiveForProfileRequest); - - /// - /// Creates an asynchronous queue job that creates an eml file with documents in attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (MailMassiveForProfileResponseDTO) - System.Threading.Tasks.Task> DocumentsGetMailMassiveForProfileAsyncWithHttpInfo (MailMassiveForProfileRequestDTO mailMassiveForProfileRequest); - /// - /// This call gets the process document as attachment inside of an eml file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of process document - /// Id of task - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetProcessdocForMailAsync (int? processDocId, int? taskWorkId, bool? forView, bool? createZip, bool? addAttachments); - - /// - /// This call gets the process document as attachment inside of an eml file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of process document - /// Id of task - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetProcessdocForMailAsyncWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView, bool? createZip, bool? addAttachments); - /// - /// This call retrieve the attachemnt file by its revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentsGetRevisionDocumentByIdAsync (int? attachmentId, int? revisionId, bool? forView = null); - - /// - /// This call retrieve the attachemnt file by its revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentsGetRevisionDocumentByIdAsyncWithHttpInfo (int? attachmentId, int? revisionId, bool? forView = null); - /// - /// This call update a file associated to a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Task of void - System.Threading.Tasks.Task DocumentsSetDocumentAsync (string cacheId, int? docNumber); - - /// - /// This call update a file associated to a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentsSetDocumentAsyncWithHttpInfo (string cacheId, int? docNumber); - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// Task of void - System.Threading.Tasks.Task DocumentsSetDocumentWithOptionAsync (string cacheId, int? docNumber, int? updateOption); - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentsSetDocumentWithOptionAsyncWithHttpInfo (string cacheId, int? docNumber, int? updateOption); - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// Task of void - System.Threading.Tasks.Task DocumentsSetDocumentWithOptionForProcessV2Async (string cacheId, int? docNumber, int? updateOption); - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentsSetDocumentWithOptionForProcessV2AsyncWithHttpInfo (string cacheId, int? docNumber, int? updateOption); - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Process document identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// Task of void - System.Threading.Tasks.Task DocumentsSetDocumentWithOptionForTaskV2Async (string cacheId, int? docNumber, Guid? processDocId, int? updateOption); - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Process document identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentsSetDocumentWithOptionForTaskV2AsyncWithHttpInfo (string cacheId, int? docNumber, Guid? processDocId, int? updateOption); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class DocumentsApi : IDocumentsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public DocumentsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public DocumentsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns if the user can write the file. - /// - /// Thrown when fails to make API call - /// Document Identifier - /// bool? - public bool? DocumentsCanRead (int? docnumber) - { - ApiResponse localVarResponse = DocumentsCanReadWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns if the user can write the file. - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of bool? - public ApiResponse< bool? > DocumentsCanReadWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling DocumentsApi->DocumentsCanRead"); - - var localVarPath = "/api/Documents/{docnumber}/canRead"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsCanRead", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns if the user can write the file. - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of bool? - public async System.Threading.Tasks.Task DocumentsCanReadAsync (int? docnumber) - { - ApiResponse localVarResponse = await DocumentsCanReadAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns if the user can write the file. - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> DocumentsCanReadAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling DocumentsApi->DocumentsCanRead"); - - var localVarPath = "/api/Documents/{docnumber}/canRead"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsCanRead", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns if the user can write the file. - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - public void DocumentsCanWrite (int? docnumber) - { - DocumentsCanWriteWithHttpInfo(docnumber); - } - - /// - /// This call returns if the user can write the file. - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of Object(void) - public ApiResponse DocumentsCanWriteWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling DocumentsApi->DocumentsCanWrite"); - - var localVarPath = "/api/Documents/{docnumber}/canWrite"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsCanWrite", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns if the user can write the file. - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of void - public async System.Threading.Tasks.Task DocumentsCanWriteAsync (int? docnumber) - { - await DocumentsCanWriteAsyncWithHttpInfo(docnumber); - - } - - /// - /// This call returns if the user can write the file. - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentsCanWriteAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling DocumentsApi->DocumentsCanWrite"); - - var localVarPath = "/api/Documents/{docnumber}/canWrite"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsCanWrite", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns if the user can write the document under workflow process. - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// - public void DocumentsCanWriteForTask (int? processDocId, int? taskWorkId) - { - DocumentsCanWriteForTaskWithHttpInfo(processDocId, taskWorkId); - } - - /// - /// This call returns if the user can write the document under workflow process. - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// ApiResponse of Object(void) - public ApiResponse DocumentsCanWriteForTaskWithHttpInfo (int? processDocId, int? taskWorkId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentsApi->DocumentsCanWriteForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling DocumentsApi->DocumentsCanWriteForTask"); - - var localVarPath = "/api/Documents/forTask/{processDocId}/{taskWorkId}/canWrite"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsCanWriteForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns if the user can write the document under workflow process. - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Task of void - public async System.Threading.Tasks.Task DocumentsCanWriteForTaskAsync (int? processDocId, int? taskWorkId) - { - await DocumentsCanWriteForTaskAsyncWithHttpInfo(processDocId, taskWorkId); - - } - - /// - /// This call returns if the user can write the document under workflow process. - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentsCanWriteForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentsApi->DocumentsCanWriteForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling DocumentsApi->DocumentsCanWriteForTask"); - - var localVarPath = "/api/Documents/forTask/{processDocId}/{taskWorkId}/canWrite"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsCanWriteForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns if the user can write the document under workflow process (V2). - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of profile - /// - public void DocumentsCanWriteForTask_0 (Guid? documentId, int? docnumber) - { - DocumentsCanWriteForTask_0WithHttpInfo(documentId, docnumber); - } - - /// - /// This call returns if the user can write the document under workflow process (V2). - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of profile - /// ApiResponse of Object(void) - public ApiResponse DocumentsCanWriteForTask_0WithHttpInfo (Guid? documentId, int? docnumber) - { - // verify the required parameter 'documentId' is set - if (documentId == null) - throw new ApiException(400, "Missing required parameter 'documentId' when calling DocumentsApi->DocumentsCanWriteForTask_0"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling DocumentsApi->DocumentsCanWriteForTask_0"); - - var localVarPath = "/api/Documents/forTaskV2/{documentId}/{docnumber}/canWrite"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentId != null) localVarPathParams.Add("documentId", this.Configuration.ApiClient.ParameterToString(documentId)); // path parameter - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsCanWriteForTask_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns if the user can write the document under workflow process (V2). - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of profile - /// Task of void - public async System.Threading.Tasks.Task DocumentsCanWriteForTask_0Async (Guid? documentId, int? docnumber) - { - await DocumentsCanWriteForTask_0AsyncWithHttpInfo(documentId, docnumber); - - } - - /// - /// This call returns if the user can write the document under workflow process (V2). - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of profile - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentsCanWriteForTask_0AsyncWithHttpInfo (Guid? documentId, int? docnumber) - { - // verify the required parameter 'documentId' is set - if (documentId == null) - throw new ApiException(400, "Missing required parameter 'documentId' when calling DocumentsApi->DocumentsCanWriteForTask_0"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling DocumentsApi->DocumentsCanWriteForTask_0"); - - var localVarPath = "/api/Documents/forTaskV2/{documentId}/{docnumber}/canWrite"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentId != null) localVarPathParams.Add("documentId", this.Configuration.ApiClient.ParameterToString(documentId)); // path parameter - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsCanWriteForTask_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call start new export procedure - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// System.IO.Stream - public System.IO.Stream DocumentsExportMassiveForProfile (ExportMassiveForProfileRequestDTO exportMassiveForProfileRequest) - { - ApiResponse localVarResponse = DocumentsExportMassiveForProfileWithHttpInfo(exportMassiveForProfileRequest); - return localVarResponse.Data; - } - - /// - /// This call start new export procedure - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsExportMassiveForProfileWithHttpInfo (ExportMassiveForProfileRequestDTO exportMassiveForProfileRequest) - { - // verify the required parameter 'exportMassiveForProfileRequest' is set - if (exportMassiveForProfileRequest == null) - throw new ApiException(400, "Missing required parameter 'exportMassiveForProfileRequest' when calling DocumentsApi->DocumentsExportMassiveForProfile"); - - var localVarPath = "/api/Documents/ExportMassive"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (exportMassiveForProfileRequest != null && exportMassiveForProfileRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(exportMassiveForProfileRequest); // http body (model) parameter - } - else - { - localVarPostBody = exportMassiveForProfileRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsExportMassiveForProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call start new export procedure - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsExportMassiveForProfileAsync (ExportMassiveForProfileRequestDTO exportMassiveForProfileRequest) - { - ApiResponse localVarResponse = await DocumentsExportMassiveForProfileAsyncWithHttpInfo(exportMassiveForProfileRequest); - return localVarResponse.Data; - - } - - /// - /// This call start new export procedure - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsExportMassiveForProfileAsyncWithHttpInfo (ExportMassiveForProfileRequestDTO exportMassiveForProfileRequest) - { - // verify the required parameter 'exportMassiveForProfileRequest' is set - if (exportMassiveForProfileRequest == null) - throw new ApiException(400, "Missing required parameter 'exportMassiveForProfileRequest' when calling DocumentsApi->DocumentsExportMassiveForProfile"); - - var localVarPath = "/api/Documents/ExportMassive"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (exportMassiveForProfileRequest != null && exportMassiveForProfileRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(exportMassiveForProfileRequest); // http body (model) parameter - } - else - { - localVarPostBody = exportMassiveForProfileRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsExportMassiveForProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call start new export procedure for processdoc - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// System.IO.Stream - public System.IO.Stream DocumentsExportMassiveForProfile_0 (ExportMassiveForProcessDocRequestDTO exportMassiveForProcessDocRequest) - { - ApiResponse localVarResponse = DocumentsExportMassiveForProfile_0WithHttpInfo(exportMassiveForProcessDocRequest); - return localVarResponse.Data; - } - - /// - /// This call start new export procedure for processdoc - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsExportMassiveForProfile_0WithHttpInfo (ExportMassiveForProcessDocRequestDTO exportMassiveForProcessDocRequest) - { - // verify the required parameter 'exportMassiveForProcessDocRequest' is set - if (exportMassiveForProcessDocRequest == null) - throw new ApiException(400, "Missing required parameter 'exportMassiveForProcessDocRequest' when calling DocumentsApi->DocumentsExportMassiveForProfile_0"); - - var localVarPath = "/api/Documents/ExportMassiveProcessDoc"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (exportMassiveForProcessDocRequest != null && exportMassiveForProcessDocRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(exportMassiveForProcessDocRequest); // http body (model) parameter - } - else - { - localVarPostBody = exportMassiveForProcessDocRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsExportMassiveForProfile_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call start new export procedure for processdoc - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsExportMassiveForProfile_0Async (ExportMassiveForProcessDocRequestDTO exportMassiveForProcessDocRequest) - { - ApiResponse localVarResponse = await DocumentsExportMassiveForProfile_0AsyncWithHttpInfo(exportMassiveForProcessDocRequest); - return localVarResponse.Data; - - } - - /// - /// This call start new export procedure for processdoc - /// - /// Thrown when fails to make API call - /// Request for export procedure - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsExportMassiveForProfile_0AsyncWithHttpInfo (ExportMassiveForProcessDocRequestDTO exportMassiveForProcessDocRequest) - { - // verify the required parameter 'exportMassiveForProcessDocRequest' is set - if (exportMassiveForProcessDocRequest == null) - throw new ApiException(400, "Missing required parameter 'exportMassiveForProcessDocRequest' when calling DocumentsApi->DocumentsExportMassiveForProfile_0"); - - var localVarPath = "/api/Documents/ExportMassiveProcessDoc"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (exportMassiveForProcessDocRequest != null && exportMassiveForProcessDocRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(exportMassiveForProcessDocRequest); // http body (model) parameter - } - else - { - localVarPostBody = exportMassiveForProcessDocRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsExportMassiveForProfile_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the document associated to a specified revision - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - public System.IO.Stream DocumentsGetDocumentByRevisionId (int? revisionId, bool? forView = null) - { - ApiResponse localVarResponse = DocumentsGetDocumentByRevisionIdWithHttpInfo(revisionId, forView); - return localVarResponse.Data; - } - - /// - /// This call returns the document associated to a specified revision - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetDocumentByRevisionIdWithHttpInfo (int? revisionId, bool? forView = null) - { - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling DocumentsApi->DocumentsGetDocumentByRevisionId"); - - var localVarPath = "/api/Documents/byRevision/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetDocumentByRevisionId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the document associated to a specified revision - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetDocumentByRevisionIdAsync (int? revisionId, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentsGetDocumentByRevisionIdAsyncWithHttpInfo(revisionId, forView); - return localVarResponse.Data; - - } - - /// - /// This call returns the document associated to a specified revision - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetDocumentByRevisionIdAsyncWithHttpInfo (int? revisionId, bool? forView = null) - { - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling DocumentsApi->DocumentsGetDocumentByRevisionId"); - - var localVarPath = "/api/Documents/byRevision/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetDocumentByRevisionId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file, contained in the signature, associated with the profile This method is deprecated. Use {id}/{forView} instead - /// - /// Thrown when fails to make API call - /// Document Identifier - /// System.IO.Stream - public System.IO.Stream DocumentsGetExtractP7M (int? id) - { - ApiResponse localVarResponse = DocumentsGetExtractP7MWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns the file, contained in the signature, associated with the profile This method is deprecated. Use {id}/{forView} instead - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetExtractP7MWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetExtractP7M"); - - var localVarPath = "/api/Documents/{id}/extract"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetExtractP7M", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file, contained in the signature, associated with the profile This method is deprecated. Use {id}/{forView} instead - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetExtractP7MAsync (int? id) - { - ApiResponse localVarResponse = await DocumentsGetExtractP7MAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns the file, contained in the signature, associated with the profile This method is deprecated. Use {id}/{forView} instead - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetExtractP7MAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetExtractP7M"); - - var localVarPath = "/api/Documents/{id}/extract"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetExtractP7M", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the document associated to a specified revision (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// System.IO.Stream - public System.IO.Stream DocumentsGetExtractedDocumentByRevisionId (int? revisionId) - { - ApiResponse localVarResponse = DocumentsGetExtractedDocumentByRevisionIdWithHttpInfo(revisionId); - return localVarResponse.Data; - } - - /// - /// This call returns the document associated to a specified revision (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetExtractedDocumentByRevisionIdWithHttpInfo (int? revisionId) - { - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling DocumentsApi->DocumentsGetExtractedDocumentByRevisionId"); - - var localVarPath = "/api/Documents/extractByRevision/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetExtractedDocumentByRevisionId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the document associated to a specified revision (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetExtractedDocumentByRevisionIdAsync (int? revisionId) - { - ApiResponse localVarResponse = await DocumentsGetExtractedDocumentByRevisionIdAsyncWithHttpInfo(revisionId); - return localVarResponse.Data; - - } - - /// - /// This call returns the document associated to a specified revision (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of revision - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetExtractedDocumentByRevisionIdAsyncWithHttpInfo (int? revisionId) - { - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling DocumentsApi->DocumentsGetExtractedDocumentByRevisionId"); - - var localVarPath = "/api/Documents/extractByRevision/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetExtractedDocumentByRevisionId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with a specified profile (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Document Identifier - /// System.IO.Stream - public System.IO.Stream DocumentsGetExtractedForProfile (int? id) - { - ApiResponse localVarResponse = DocumentsGetExtractedForProfileWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns the file associated with a specified profile (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetExtractedForProfileWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetExtractedForProfile"); - - var localVarPath = "/api/Documents/extract/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetExtractedForProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with a specified profile (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetExtractedForProfileAsync (int? id) - { - ApiResponse localVarResponse = await DocumentsGetExtractedForProfileAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns the file associated with a specified profile (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetExtractedForProfileAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetExtractedForProfile"); - - var localVarPath = "/api/Documents/extract/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetExtractedForProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with a taskwork and a document in process (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// System.IO.Stream - public System.IO.Stream DocumentsGetExtractedForTask (int? processDocId, int? taskWorkId) - { - ApiResponse localVarResponse = DocumentsGetExtractedForTaskWithHttpInfo(processDocId, taskWorkId); - return localVarResponse.Data; - } - - /// - /// This call returns the file associated with a taskwork and a document in process (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetExtractedForTaskWithHttpInfo (int? processDocId, int? taskWorkId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentsApi->DocumentsGetExtractedForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling DocumentsApi->DocumentsGetExtractedForTask"); - - var localVarPath = "/api/Documents/extractForTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetExtractedForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with a taskwork and a document in process (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetExtractedForTaskAsync (int? processDocId, int? taskWorkId) - { - ApiResponse localVarResponse = await DocumentsGetExtractedForTaskAsyncWithHttpInfo(processDocId, taskWorkId); - return localVarResponse.Data; - - } - - /// - /// This call returns the file associated with a taskwork and a document in process (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetExtractedForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentsApi->DocumentsGetExtractedForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling DocumentsApi->DocumentsGetExtractedForTask"); - - var localVarPath = "/api/Documents/extractForTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetExtractedForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with the task attachment (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// System.IO.Stream - public System.IO.Stream DocumentsGetExtractedForTaskAttachement (int? id) - { - ApiResponse localVarResponse = DocumentsGetExtractedForTaskAttachementWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns the file associated with the task attachment (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetExtractedForTaskAttachementWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetExtractedForTaskAttachement"); - - var localVarPath = "/api/Documents/extractTaskattachments/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetExtractedForTaskAttachement", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with the task attachment (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetExtractedForTaskAttachementAsync (int? id) - { - ApiResponse localVarResponse = await DocumentsGetExtractedForTaskAttachementAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns the file associated with the task attachment (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetExtractedForTaskAttachementAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetExtractedForTaskAttachement"); - - var localVarPath = "/api/Documents/extractTaskattachments/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetExtractedForTaskAttachement", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call retrieve a file for an external profile attachment (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// System.IO.Stream - public System.IO.Stream DocumentsGetExtractedProfileAttachment (int? id) - { - ApiResponse localVarResponse = DocumentsGetExtractedProfileAttachmentWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call retrieve a file for an external profile attachment (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetExtractedProfileAttachmentWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetExtractedProfileAttachment"); - - var localVarPath = "/api/Documents/extractProfileAttachment/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetExtractedProfileAttachment", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call retrieve a file for an external profile attachment (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetExtractedProfileAttachmentAsync (int? id) - { - ApiResponse localVarResponse = await DocumentsGetExtractedProfileAttachmentAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call retrieve a file for an external profile attachment (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetExtractedProfileAttachmentAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetExtractedProfileAttachment"); - - var localVarPath = "/api/Documents/extractProfileAttachment/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetExtractedProfileAttachment", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call retrieve the attachemnt file by its revision (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of attachment revision - /// System.IO.Stream - public System.IO.Stream DocumentsGetExtractedProfileAttachmentRevision (int? attachmentId, int? attachmentRevisionId) - { - ApiResponse localVarResponse = DocumentsGetExtractedProfileAttachmentRevisionWithHttpInfo(attachmentId, attachmentRevisionId); - return localVarResponse.Data; - } - - /// - /// This call retrieve the attachemnt file by its revision (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of attachment revision - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetExtractedProfileAttachmentRevisionWithHttpInfo (int? attachmentId, int? attachmentRevisionId) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling DocumentsApi->DocumentsGetExtractedProfileAttachmentRevision"); - // verify the required parameter 'attachmentRevisionId' is set - if (attachmentRevisionId == null) - throw new ApiException(400, "Missing required parameter 'attachmentRevisionId' when calling DocumentsApi->DocumentsGetExtractedProfileAttachmentRevision"); - - var localVarPath = "/api/Documents/extractProfileAttachment/{attachmentId}/revisions/{attachmentRevisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - if (attachmentRevisionId != null) localVarPathParams.Add("attachmentRevisionId", this.Configuration.ApiClient.ParameterToString(attachmentRevisionId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetExtractedProfileAttachmentRevision", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call retrieve the attachemnt file by its revision (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of attachment revision - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetExtractedProfileAttachmentRevisionAsync (int? attachmentId, int? attachmentRevisionId) - { - ApiResponse localVarResponse = await DocumentsGetExtractedProfileAttachmentRevisionAsyncWithHttpInfo(attachmentId, attachmentRevisionId); - return localVarResponse.Data; - - } - - /// - /// This call retrieve the attachemnt file by its revision (extracted from cryptographic envelopes) - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of attachment revision - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetExtractedProfileAttachmentRevisionAsyncWithHttpInfo (int? attachmentId, int? attachmentRevisionId) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling DocumentsApi->DocumentsGetExtractedProfileAttachmentRevision"); - // verify the required parameter 'attachmentRevisionId' is set - if (attachmentRevisionId == null) - throw new ApiException(400, "Missing required parameter 'attachmentRevisionId' when calling DocumentsApi->DocumentsGetExtractedProfileAttachmentRevision"); - - var localVarPath = "/api/Documents/extractProfileAttachment/{attachmentId}/revisions/{attachmentRevisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - if (attachmentRevisionId != null) localVarPathParams.Add("attachmentRevisionId", this.Configuration.ApiClient.ParameterToString(attachmentRevisionId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetExtractedProfileAttachmentRevision", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call retrieve a file for an external profile attachment - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - public System.IO.Stream DocumentsGetForExternalAttachment (int? id, bool? forView = null) - { - ApiResponse localVarResponse = DocumentsGetForExternalAttachmentWithHttpInfo(id, forView); - return localVarResponse.Data; - } - - /// - /// This call retrieve a file for an external profile attachment - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetForExternalAttachmentWithHttpInfo (int? id, bool? forView = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetForExternalAttachment"); - - var localVarPath = "/api/Documents/profileAttachment/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForExternalAttachment", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call retrieve a file for an external profile attachment - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetForExternalAttachmentAsync (int? id, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentsGetForExternalAttachmentAsyncWithHttpInfo(id, forView); - return localVarResponse.Data; - - } - - /// - /// This call retrieve a file for an external profile attachment - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetForExternalAttachmentAsyncWithHttpInfo (int? id, bool? forView = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetForExternalAttachment"); - - var localVarPath = "/api/Documents/profileAttachment/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForExternalAttachment", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call gets the document as attachment inside of an eml file - /// - /// Thrown when fails to make API call - /// Docnumber - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// System.IO.Stream - public System.IO.Stream DocumentsGetForMail (int? id, bool? forView, bool? createZip, bool? addAttachments) - { - ApiResponse localVarResponse = DocumentsGetForMailWithHttpInfo(id, forView, createZip, addAttachments); - return localVarResponse.Data; - } - - /// - /// This call gets the document as attachment inside of an eml file - /// - /// Thrown when fails to make API call - /// Docnumber - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetForMailWithHttpInfo (int? id, bool? forView, bool? createZip, bool? addAttachments) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetForMail"); - // verify the required parameter 'forView' is set - if (forView == null) - throw new ApiException(400, "Missing required parameter 'forView' when calling DocumentsApi->DocumentsGetForMail"); - // verify the required parameter 'createZip' is set - if (createZip == null) - throw new ApiException(400, "Missing required parameter 'createZip' when calling DocumentsApi->DocumentsGetForMail"); - // verify the required parameter 'addAttachments' is set - if (addAttachments == null) - throw new ApiException(400, "Missing required parameter 'addAttachments' when calling DocumentsApi->DocumentsGetForMail"); - - var localVarPath = "/api/Documents/GetMail/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - if (createZip != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "createZip", createZip)); // query parameter - if (addAttachments != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "addAttachments", addAttachments)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForMail", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call gets the document as attachment inside of an eml file - /// - /// Thrown when fails to make API call - /// Docnumber - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetForMailAsync (int? id, bool? forView, bool? createZip, bool? addAttachments) - { - ApiResponse localVarResponse = await DocumentsGetForMailAsyncWithHttpInfo(id, forView, createZip, addAttachments); - return localVarResponse.Data; - - } - - /// - /// This call gets the document as attachment inside of an eml file - /// - /// Thrown when fails to make API call - /// Docnumber - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetForMailAsyncWithHttpInfo (int? id, bool? forView, bool? createZip, bool? addAttachments) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetForMail"); - // verify the required parameter 'forView' is set - if (forView == null) - throw new ApiException(400, "Missing required parameter 'forView' when calling DocumentsApi->DocumentsGetForMail"); - // verify the required parameter 'createZip' is set - if (createZip == null) - throw new ApiException(400, "Missing required parameter 'createZip' when calling DocumentsApi->DocumentsGetForMail"); - // verify the required parameter 'addAttachments' is set - if (addAttachments == null) - throw new ApiException(400, "Missing required parameter 'addAttachments' when calling DocumentsApi->DocumentsGetForMail"); - - var localVarPath = "/api/Documents/GetMail/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - if (createZip != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "createZip", createZip)); // query parameter - if (addAttachments != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "addAttachments", addAttachments)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForMail", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with the attachment into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - public System.IO.Stream DocumentsGetForProcessAttachement (int? attachementid, int? processId, bool? forView = null) - { - ApiResponse localVarResponse = DocumentsGetForProcessAttachementWithHttpInfo(attachementid, processId, forView); - return localVarResponse.Data; - } - - /// - /// This call returns the file associated with the attachment into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetForProcessAttachementWithHttpInfo (int? attachementid, int? processId, bool? forView = null) - { - // verify the required parameter 'attachementid' is set - if (attachementid == null) - throw new ApiException(400, "Missing required parameter 'attachementid' when calling DocumentsApi->DocumentsGetForProcessAttachement"); - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling DocumentsApi->DocumentsGetForProcessAttachement"); - - var localVarPath = "/api/Documents/processattachments/{processId}/{attachementid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachementid != null) localVarPathParams.Add("attachementid", this.Configuration.ApiClient.ParameterToString(attachementid)); // path parameter - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForProcessAttachement", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with the attachment into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetForProcessAttachementAsync (int? attachementid, int? processId, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentsGetForProcessAttachementAsyncWithHttpInfo(attachementid, processId, forView); - return localVarResponse.Data; - - } - - /// - /// This call returns the file associated with the attachment into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Identifier of process - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetForProcessAttachementAsyncWithHttpInfo (int? attachementid, int? processId, bool? forView = null) - { - // verify the required parameter 'attachementid' is set - if (attachementid == null) - throw new ApiException(400, "Missing required parameter 'attachementid' when calling DocumentsApi->DocumentsGetForProcessAttachement"); - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling DocumentsApi->DocumentsGetForProcessAttachement"); - - var localVarPath = "/api/Documents/processattachments/{processId}/{attachementid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachementid != null) localVarPathParams.Add("attachementid", this.Configuration.ApiClient.ParameterToString(attachementid)); // path parameter - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForProcessAttachement", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with the document process into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - public System.IO.Stream DocumentsGetForProcessDocument (int? processdocid, int? processId, bool? forView = null) - { - ApiResponse localVarResponse = DocumentsGetForProcessDocumentWithHttpInfo(processdocid, processId, forView); - return localVarResponse.Data; - } - - /// - /// This call returns the file associated with the document process into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetForProcessDocumentWithHttpInfo (int? processdocid, int? processId, bool? forView = null) - { - // verify the required parameter 'processdocid' is set - if (processdocid == null) - throw new ApiException(400, "Missing required parameter 'processdocid' when calling DocumentsApi->DocumentsGetForProcessDocument"); - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling DocumentsApi->DocumentsGetForProcessDocument"); - - var localVarPath = "/api/Documents/processdocument/{processId}/{processdocid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processdocid != null) localVarPathParams.Add("processdocid", this.Configuration.ApiClient.ParameterToString(processdocid)); // path parameter - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForProcessDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with the document process into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetForProcessDocumentAsync (int? processdocid, int? processId, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentsGetForProcessDocumentAsyncWithHttpInfo(processdocid, processId, forView); - return localVarResponse.Data; - - } - - /// - /// This call returns the file associated with the document process into in a process workflow - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of process workflow - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetForProcessDocumentAsyncWithHttpInfo (int? processdocid, int? processId, bool? forView = null) - { - // verify the required parameter 'processdocid' is set - if (processdocid == null) - throw new ApiException(400, "Missing required parameter 'processdocid' when calling DocumentsApi->DocumentsGetForProcessDocument"); - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling DocumentsApi->DocumentsGetForProcessDocument"); - - var localVarPath = "/api/Documents/processdocument/{processId}/{processdocid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processdocid != null) localVarPathParams.Add("processdocid", this.Configuration.ApiClient.ParameterToString(processdocid)); // path parameter - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForProcessDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with a specified profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - public System.IO.Stream DocumentsGetForProfile (int? id, bool? forView = null) - { - ApiResponse localVarResponse = DocumentsGetForProfileWithHttpInfo(id, forView); - return localVarResponse.Data; - } - - /// - /// This call returns the file associated with a specified profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetForProfileWithHttpInfo (int? id, bool? forView = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetForProfile"); - - var localVarPath = "/api/Documents/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with a specified profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetForProfileAsync (int? id, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentsGetForProfileAsyncWithHttpInfo(id, forView); - return localVarResponse.Data; - - } - - /// - /// This call returns the file associated with a specified profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetForProfileAsyncWithHttpInfo (int? id, bool? forView = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetForProfile"); - - var localVarPath = "/api/Documents/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with a specified profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cache Identifier - /// System.IO.Stream - public System.IO.Stream DocumentsGetForProfileByCacheId (int? id, string cacheId) - { - ApiResponse localVarResponse = DocumentsGetForProfileByCacheIdWithHttpInfo(id, cacheId); - return localVarResponse.Data; - } - - /// - /// This call returns the file associated with a specified profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cache Identifier - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetForProfileByCacheIdWithHttpInfo (int? id, string cacheId) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetForProfileByCacheId"); - // verify the required parameter 'cacheId' is set - if (cacheId == null) - throw new ApiException(400, "Missing required parameter 'cacheId' when calling DocumentsApi->DocumentsGetForProfileByCacheId"); - - var localVarPath = "/api/Documents/{id}/cache/{cacheId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (cacheId != null) localVarPathParams.Add("cacheId", this.Configuration.ApiClient.ParameterToString(cacheId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForProfileByCacheId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with a specified profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cache Identifier - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetForProfileByCacheIdAsync (int? id, string cacheId) - { - ApiResponse localVarResponse = await DocumentsGetForProfileByCacheIdAsyncWithHttpInfo(id, cacheId); - return localVarResponse.Data; - - } - - /// - /// This call returns the file associated with a specified profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Cache Identifier - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetForProfileByCacheIdAsyncWithHttpInfo (int? id, string cacheId) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetForProfileByCacheId"); - // verify the required parameter 'cacheId' is set - if (cacheId == null) - throw new ApiException(400, "Missing required parameter 'cacheId' when calling DocumentsApi->DocumentsGetForProfileByCacheId"); - - var localVarPath = "/api/Documents/{id}/cache/{cacheId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (cacheId != null) localVarPathParams.Add("cacheId", this.Configuration.ApiClient.ParameterToString(cacheId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForProfileByCacheId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with a taskwork and a document in process - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - public System.IO.Stream DocumentsGetForTask (int? processDocId, int? taskWorkId, bool? forView = null) - { - ApiResponse localVarResponse = DocumentsGetForTaskWithHttpInfo(processDocId, taskWorkId, forView); - return localVarResponse.Data; - } - - /// - /// This call returns the file associated with a taskwork and a document in process - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetForTaskWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentsApi->DocumentsGetForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling DocumentsApi->DocumentsGetForTask"); - - var localVarPath = "/api/Documents/ForTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with a taskwork and a document in process - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetForTaskAsync (int? processDocId, int? taskWorkId, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentsGetForTaskAsyncWithHttpInfo(processDocId, taskWorkId, forView); - return localVarResponse.Data; - - } - - /// - /// This call returns the file associated with a taskwork and a document in process - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetForTaskAsyncWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentsApi->DocumentsGetForTask"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling DocumentsApi->DocumentsGetForTask"); - - var localVarPath = "/api/Documents/ForTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with the task attachment - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - public System.IO.Stream DocumentsGetForTaskAttachement (int? id, bool? forView = null) - { - ApiResponse localVarResponse = DocumentsGetForTaskAttachementWithHttpInfo(id, forView); - return localVarResponse.Data; - } - - /// - /// This call returns the file associated with the task attachment - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetForTaskAttachementWithHttpInfo (int? id, bool? forView = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetForTaskAttachement"); - - var localVarPath = "/api/Documents/taskattachments/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForTaskAttachement", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with the task attachment - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetForTaskAttachementAsync (int? id, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentsGetForTaskAttachementAsyncWithHttpInfo(id, forView); - return localVarResponse.Data; - - } - - /// - /// This call returns the file associated with the task attachment - /// - /// Thrown when fails to make API call - /// Identifier of task attachment - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetForTaskAttachementAsyncWithHttpInfo (int? id, bool? forView = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetForTaskAttachement"); - - var localVarPath = "/api/Documents/taskattachments/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForTaskAttachement", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns if the document process has a associated file - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// bool? - public bool? DocumentsGetForTaskHasDocument (int? processDocId) - { - ApiResponse localVarResponse = DocumentsGetForTaskHasDocumentWithHttpInfo(processDocId); - return localVarResponse.Data; - } - - /// - /// This call returns if the document process has a associated file - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// ApiResponse of bool? - public ApiResponse< bool? > DocumentsGetForTaskHasDocumentWithHttpInfo (int? processDocId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentsApi->DocumentsGetForTaskHasDocument"); - - var localVarPath = "/api/Documents/ForTask/HasDocument/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForTaskHasDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns if the document process has a associated file - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Task of bool? - public async System.Threading.Tasks.Task DocumentsGetForTaskHasDocumentAsync (int? processDocId) - { - ApiResponse localVarResponse = await DocumentsGetForTaskHasDocumentAsyncWithHttpInfo(processDocId); - return localVarResponse.Data; - - } - - /// - /// This call returns if the document process has a associated file - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> DocumentsGetForTaskHasDocumentAsyncWithHttpInfo (int? processDocId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentsApi->DocumentsGetForTaskHasDocument"); - - var localVarPath = "/api/Documents/ForTask/HasDocument/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForTaskHasDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns the file associated with a taskwork and a document in process, for read-only management - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - public System.IO.Stream DocumentsGetForTaskReadOnly (int? processDocId, int? taskWorkId, bool? forView = null) - { - ApiResponse localVarResponse = DocumentsGetForTaskReadOnlyWithHttpInfo(processDocId, taskWorkId, forView); - return localVarResponse.Data; - } - - /// - /// This call returns the file associated with a taskwork and a document in process, for read-only management - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetForTaskReadOnlyWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentsApi->DocumentsGetForTaskReadOnly"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling DocumentsApi->DocumentsGetForTaskReadOnly"); - - var localVarPath = "/api/Documents/ForTaskReadOnly/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForTaskReadOnly", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with a taskwork and a document in process, for read-only management - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetForTaskReadOnlyAsync (int? processDocId, int? taskWorkId, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentsGetForTaskReadOnlyAsyncWithHttpInfo(processDocId, taskWorkId, forView); - return localVarResponse.Data; - - } - - /// - /// This call returns the file associated with a taskwork and a document in process, for read-only management - /// - /// Thrown when fails to make API call - /// Identifier of document process - /// Identifier of taskwork - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetForTaskReadOnlyAsyncWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView = null) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentsApi->DocumentsGetForTaskReadOnly"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling DocumentsApi->DocumentsGetForTaskReadOnly"); - - var localVarPath = "/api/Documents/ForTaskReadOnly/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetForTaskReadOnly", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns if the profile has a associated file - /// - /// Thrown when fails to make API call - /// Document Identifier - /// bool? - public bool? DocumentsGetHasDocumentForProfile (int? id) - { - ApiResponse localVarResponse = DocumentsGetHasDocumentForProfileWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns if the profile has a associated file - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of bool? - public ApiResponse< bool? > DocumentsGetHasDocumentForProfileWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetHasDocumentForProfile"); - - var localVarPath = "/api/Documents/HasDocument/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetHasDocumentForProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns if the profile has a associated file - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of bool? - public async System.Threading.Tasks.Task DocumentsGetHasDocumentForProfileAsync (int? id) - { - ApiResponse localVarResponse = await DocumentsGetHasDocumentForProfileAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns if the profile has a associated file - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> DocumentsGetHasDocumentForProfileAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentsApi->DocumentsGetHasDocumentForProfile"); - - var localVarPath = "/api/Documents/HasDocument/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetHasDocumentForProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// Creates an asynchronous queue job that creates an eml file with process documents in attachment - /// - /// Thrown when fails to make API call - /// - /// MailMassiveForProfileResponseDTO - public MailMassiveForProfileResponseDTO DocumentsGetMailMassiveForProcessDoc (MailMassiveForProcessDocRequestDTO mailMassiveForProcessDocRequest) - { - ApiResponse localVarResponse = DocumentsGetMailMassiveForProcessDocWithHttpInfo(mailMassiveForProcessDocRequest); - return localVarResponse.Data; - } - - /// - /// Creates an asynchronous queue job that creates an eml file with process documents in attachment - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of MailMassiveForProfileResponseDTO - public ApiResponse< MailMassiveForProfileResponseDTO > DocumentsGetMailMassiveForProcessDocWithHttpInfo (MailMassiveForProcessDocRequestDTO mailMassiveForProcessDocRequest) - { - // verify the required parameter 'mailMassiveForProcessDocRequest' is set - if (mailMassiveForProcessDocRequest == null) - throw new ApiException(400, "Missing required parameter 'mailMassiveForProcessDocRequest' when calling DocumentsApi->DocumentsGetMailMassiveForProcessDoc"); - - var localVarPath = "/api/Documents/GetMailMassiveProcessDoc"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailMassiveForProcessDocRequest != null && mailMassiveForProcessDocRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailMassiveForProcessDocRequest); // http body (model) parameter - } - else - { - localVarPostBody = mailMassiveForProcessDocRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetMailMassiveForProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailMassiveForProfileResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailMassiveForProfileResponseDTO))); - } - - /// - /// Creates an asynchronous queue job that creates an eml file with process documents in attachment - /// - /// Thrown when fails to make API call - /// - /// Task of MailMassiveForProfileResponseDTO - public async System.Threading.Tasks.Task DocumentsGetMailMassiveForProcessDocAsync (MailMassiveForProcessDocRequestDTO mailMassiveForProcessDocRequest) - { - ApiResponse localVarResponse = await DocumentsGetMailMassiveForProcessDocAsyncWithHttpInfo(mailMassiveForProcessDocRequest); - return localVarResponse.Data; - - } - - /// - /// Creates an asynchronous queue job that creates an eml file with process documents in attachment - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (MailMassiveForProfileResponseDTO) - public async System.Threading.Tasks.Task> DocumentsGetMailMassiveForProcessDocAsyncWithHttpInfo (MailMassiveForProcessDocRequestDTO mailMassiveForProcessDocRequest) - { - // verify the required parameter 'mailMassiveForProcessDocRequest' is set - if (mailMassiveForProcessDocRequest == null) - throw new ApiException(400, "Missing required parameter 'mailMassiveForProcessDocRequest' when calling DocumentsApi->DocumentsGetMailMassiveForProcessDoc"); - - var localVarPath = "/api/Documents/GetMailMassiveProcessDoc"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailMassiveForProcessDocRequest != null && mailMassiveForProcessDocRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailMassiveForProcessDocRequest); // http body (model) parameter - } - else - { - localVarPostBody = mailMassiveForProcessDocRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetMailMassiveForProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailMassiveForProfileResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailMassiveForProfileResponseDTO))); - } - - /// - /// Creates an asynchronous queue job that creates an eml file with documents in attachment - /// - /// Thrown when fails to make API call - /// - /// MailMassiveForProfileResponseDTO - public MailMassiveForProfileResponseDTO DocumentsGetMailMassiveForProfile (MailMassiveForProfileRequestDTO mailMassiveForProfileRequest) - { - ApiResponse localVarResponse = DocumentsGetMailMassiveForProfileWithHttpInfo(mailMassiveForProfileRequest); - return localVarResponse.Data; - } - - /// - /// Creates an asynchronous queue job that creates an eml file with documents in attachment - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of MailMassiveForProfileResponseDTO - public ApiResponse< MailMassiveForProfileResponseDTO > DocumentsGetMailMassiveForProfileWithHttpInfo (MailMassiveForProfileRequestDTO mailMassiveForProfileRequest) - { - // verify the required parameter 'mailMassiveForProfileRequest' is set - if (mailMassiveForProfileRequest == null) - throw new ApiException(400, "Missing required parameter 'mailMassiveForProfileRequest' when calling DocumentsApi->DocumentsGetMailMassiveForProfile"); - - var localVarPath = "/api/Documents/GetMailMassive"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailMassiveForProfileRequest != null && mailMassiveForProfileRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailMassiveForProfileRequest); // http body (model) parameter - } - else - { - localVarPostBody = mailMassiveForProfileRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetMailMassiveForProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailMassiveForProfileResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailMassiveForProfileResponseDTO))); - } - - /// - /// Creates an asynchronous queue job that creates an eml file with documents in attachment - /// - /// Thrown when fails to make API call - /// - /// Task of MailMassiveForProfileResponseDTO - public async System.Threading.Tasks.Task DocumentsGetMailMassiveForProfileAsync (MailMassiveForProfileRequestDTO mailMassiveForProfileRequest) - { - ApiResponse localVarResponse = await DocumentsGetMailMassiveForProfileAsyncWithHttpInfo(mailMassiveForProfileRequest); - return localVarResponse.Data; - - } - - /// - /// Creates an asynchronous queue job that creates an eml file with documents in attachment - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (MailMassiveForProfileResponseDTO) - public async System.Threading.Tasks.Task> DocumentsGetMailMassiveForProfileAsyncWithHttpInfo (MailMassiveForProfileRequestDTO mailMassiveForProfileRequest) - { - // verify the required parameter 'mailMassiveForProfileRequest' is set - if (mailMassiveForProfileRequest == null) - throw new ApiException(400, "Missing required parameter 'mailMassiveForProfileRequest' when calling DocumentsApi->DocumentsGetMailMassiveForProfile"); - - var localVarPath = "/api/Documents/GetMailMassive"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailMassiveForProfileRequest != null && mailMassiveForProfileRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailMassiveForProfileRequest); // http body (model) parameter - } - else - { - localVarPostBody = mailMassiveForProfileRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetMailMassiveForProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailMassiveForProfileResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailMassiveForProfileResponseDTO))); - } - - /// - /// This call gets the process document as attachment inside of an eml file - /// - /// Thrown when fails to make API call - /// Id of process document - /// Id of task - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// System.IO.Stream - public System.IO.Stream DocumentsGetProcessdocForMail (int? processDocId, int? taskWorkId, bool? forView, bool? createZip, bool? addAttachments) - { - ApiResponse localVarResponse = DocumentsGetProcessdocForMailWithHttpInfo(processDocId, taskWorkId, forView, createZip, addAttachments); - return localVarResponse.Data; - } - - /// - /// This call gets the process document as attachment inside of an eml file - /// - /// Thrown when fails to make API call - /// Id of process document - /// Id of task - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetProcessdocForMailWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView, bool? createZip, bool? addAttachments) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentsApi->DocumentsGetProcessdocForMail"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling DocumentsApi->DocumentsGetProcessdocForMail"); - // verify the required parameter 'forView' is set - if (forView == null) - throw new ApiException(400, "Missing required parameter 'forView' when calling DocumentsApi->DocumentsGetProcessdocForMail"); - // verify the required parameter 'createZip' is set - if (createZip == null) - throw new ApiException(400, "Missing required parameter 'createZip' when calling DocumentsApi->DocumentsGetProcessdocForMail"); - // verify the required parameter 'addAttachments' is set - if (addAttachments == null) - throw new ApiException(400, "Missing required parameter 'addAttachments' when calling DocumentsApi->DocumentsGetProcessdocForMail"); - - var localVarPath = "/api/Documents/GetMail/ForTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - if (createZip != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "createZip", createZip)); // query parameter - if (addAttachments != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "addAttachments", addAttachments)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetProcessdocForMail", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call gets the process document as attachment inside of an eml file - /// - /// Thrown when fails to make API call - /// Id of process document - /// Id of task - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetProcessdocForMailAsync (int? processDocId, int? taskWorkId, bool? forView, bool? createZip, bool? addAttachments) - { - ApiResponse localVarResponse = await DocumentsGetProcessdocForMailAsyncWithHttpInfo(processDocId, taskWorkId, forView, createZip, addAttachments); - return localVarResponse.Data; - - } - - /// - /// This call gets the process document as attachment inside of an eml file - /// - /// Thrown when fails to make API call - /// Id of process document - /// Id of task - /// Cryptographic envelopes will be removed and stylesheet applied - /// Attachment as zip - /// Add also the documents attachments - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetProcessdocForMailAsyncWithHttpInfo (int? processDocId, int? taskWorkId, bool? forView, bool? createZip, bool? addAttachments) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentsApi->DocumentsGetProcessdocForMail"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling DocumentsApi->DocumentsGetProcessdocForMail"); - // verify the required parameter 'forView' is set - if (forView == null) - throw new ApiException(400, "Missing required parameter 'forView' when calling DocumentsApi->DocumentsGetProcessdocForMail"); - // verify the required parameter 'createZip' is set - if (createZip == null) - throw new ApiException(400, "Missing required parameter 'createZip' when calling DocumentsApi->DocumentsGetProcessdocForMail"); - // verify the required parameter 'addAttachments' is set - if (addAttachments == null) - throw new ApiException(400, "Missing required parameter 'addAttachments' when calling DocumentsApi->DocumentsGetProcessdocForMail"); - - var localVarPath = "/api/Documents/GetMail/ForTask/{processDocId}/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - if (createZip != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "createZip", createZip)); // query parameter - if (addAttachments != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "addAttachments", addAttachments)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetProcessdocForMail", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call retrieve the attachemnt file by its revision - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// System.IO.Stream - public System.IO.Stream DocumentsGetRevisionDocumentById (int? attachmentId, int? revisionId, bool? forView = null) - { - ApiResponse localVarResponse = DocumentsGetRevisionDocumentByIdWithHttpInfo(attachmentId, revisionId, forView); - return localVarResponse.Data; - } - - /// - /// This call retrieve the attachemnt file by its revision - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentsGetRevisionDocumentByIdWithHttpInfo (int? attachmentId, int? revisionId, bool? forView = null) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling DocumentsApi->DocumentsGetRevisionDocumentById"); - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling DocumentsApi->DocumentsGetRevisionDocumentById"); - - var localVarPath = "/api/Documents/profileAttachment/{attachmentId}/revisions/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetRevisionDocumentById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call retrieve the attachemnt file by its revision - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentsGetRevisionDocumentByIdAsync (int? attachmentId, int? revisionId, bool? forView = null) - { - ApiResponse localVarResponse = await DocumentsGetRevisionDocumentByIdAsyncWithHttpInfo(attachmentId, revisionId, forView); - return localVarResponse.Data; - - } - - /// - /// This call retrieve the attachemnt file by its revision - /// - /// Thrown when fails to make API call - /// Identifier of attachment - /// Revision Number - /// Cryptographic envelope removed and stylesheet applied if available (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentsGetRevisionDocumentByIdAsyncWithHttpInfo (int? attachmentId, int? revisionId, bool? forView = null) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling DocumentsApi->DocumentsGetRevisionDocumentById"); - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling DocumentsApi->DocumentsGetRevisionDocumentById"); - - var localVarPath = "/api/Documents/profileAttachment/{attachmentId}/revisions/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - if (forView != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "forView", forView)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsGetRevisionDocumentById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call update a file associated to a profile - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// - public void DocumentsSetDocument (string cacheId, int? docNumber) - { - DocumentsSetDocumentWithHttpInfo(cacheId, docNumber); - } - - /// - /// This call update a file associated to a profile - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// ApiResponse of Object(void) - public ApiResponse DocumentsSetDocumentWithHttpInfo (string cacheId, int? docNumber) - { - // verify the required parameter 'cacheId' is set - if (cacheId == null) - throw new ApiException(400, "Missing required parameter 'cacheId' when calling DocumentsApi->DocumentsSetDocument"); - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling DocumentsApi->DocumentsSetDocument"); - - var localVarPath = "/api/Documents/{docNumber}/{cacheId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (cacheId != null) localVarPathParams.Add("cacheId", this.Configuration.ApiClient.ParameterToString(cacheId)); // path parameter - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsSetDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update a file associated to a profile - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Task of void - public async System.Threading.Tasks.Task DocumentsSetDocumentAsync (string cacheId, int? docNumber) - { - await DocumentsSetDocumentAsyncWithHttpInfo(cacheId, docNumber); - - } - - /// - /// This call update a file associated to a profile - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentsSetDocumentAsyncWithHttpInfo (string cacheId, int? docNumber) - { - // verify the required parameter 'cacheId' is set - if (cacheId == null) - throw new ApiException(400, "Missing required parameter 'cacheId' when calling DocumentsApi->DocumentsSetDocument"); - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling DocumentsApi->DocumentsSetDocument"); - - var localVarPath = "/api/Documents/{docNumber}/{cacheId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (cacheId != null) localVarPathParams.Add("cacheId", this.Configuration.ApiClient.ParameterToString(cacheId)); // path parameter - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsSetDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// - public void DocumentsSetDocumentWithOption (string cacheId, int? docNumber, int? updateOption) - { - DocumentsSetDocumentWithOptionWithHttpInfo(cacheId, docNumber, updateOption); - } - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// ApiResponse of Object(void) - public ApiResponse DocumentsSetDocumentWithOptionWithHttpInfo (string cacheId, int? docNumber, int? updateOption) - { - // verify the required parameter 'cacheId' is set - if (cacheId == null) - throw new ApiException(400, "Missing required parameter 'cacheId' when calling DocumentsApi->DocumentsSetDocumentWithOption"); - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling DocumentsApi->DocumentsSetDocumentWithOption"); - // verify the required parameter 'updateOption' is set - if (updateOption == null) - throw new ApiException(400, "Missing required parameter 'updateOption' when calling DocumentsApi->DocumentsSetDocumentWithOption"); - - var localVarPath = "/api/Documents/{docNumber}/{cacheId}/{updateOption}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (cacheId != null) localVarPathParams.Add("cacheId", this.Configuration.ApiClient.ParameterToString(cacheId)); // path parameter - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (updateOption != null) localVarPathParams.Add("updateOption", this.Configuration.ApiClient.ParameterToString(updateOption)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsSetDocumentWithOption", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// Task of void - public async System.Threading.Tasks.Task DocumentsSetDocumentWithOptionAsync (string cacheId, int? docNumber, int? updateOption) - { - await DocumentsSetDocumentWithOptionAsyncWithHttpInfo(cacheId, docNumber, updateOption); - - } - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentsSetDocumentWithOptionAsyncWithHttpInfo (string cacheId, int? docNumber, int? updateOption) - { - // verify the required parameter 'cacheId' is set - if (cacheId == null) - throw new ApiException(400, "Missing required parameter 'cacheId' when calling DocumentsApi->DocumentsSetDocumentWithOption"); - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling DocumentsApi->DocumentsSetDocumentWithOption"); - // verify the required parameter 'updateOption' is set - if (updateOption == null) - throw new ApiException(400, "Missing required parameter 'updateOption' when calling DocumentsApi->DocumentsSetDocumentWithOption"); - - var localVarPath = "/api/Documents/{docNumber}/{cacheId}/{updateOption}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (cacheId != null) localVarPathParams.Add("cacheId", this.Configuration.ApiClient.ParameterToString(cacheId)); // path parameter - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (updateOption != null) localVarPathParams.Add("updateOption", this.Configuration.ApiClient.ParameterToString(updateOption)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsSetDocumentWithOption", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// - public void DocumentsSetDocumentWithOptionForProcessV2 (string cacheId, int? docNumber, int? updateOption) - { - DocumentsSetDocumentWithOptionForProcessV2WithHttpInfo(cacheId, docNumber, updateOption); - } - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// ApiResponse of Object(void) - public ApiResponse DocumentsSetDocumentWithOptionForProcessV2WithHttpInfo (string cacheId, int? docNumber, int? updateOption) - { - // verify the required parameter 'cacheId' is set - if (cacheId == null) - throw new ApiException(400, "Missing required parameter 'cacheId' when calling DocumentsApi->DocumentsSetDocumentWithOptionForProcessV2"); - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling DocumentsApi->DocumentsSetDocumentWithOptionForProcessV2"); - // verify the required parameter 'updateOption' is set - if (updateOption == null) - throw new ApiException(400, "Missing required parameter 'updateOption' when calling DocumentsApi->DocumentsSetDocumentWithOptionForProcessV2"); - - var localVarPath = "/api/Documents/processV2/{docNumber}/{cacheId}/{updateOption}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (cacheId != null) localVarPathParams.Add("cacheId", this.Configuration.ApiClient.ParameterToString(cacheId)); // path parameter - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (updateOption != null) localVarPathParams.Add("updateOption", this.Configuration.ApiClient.ParameterToString(updateOption)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsSetDocumentWithOptionForProcessV2", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// Task of void - public async System.Threading.Tasks.Task DocumentsSetDocumentWithOptionForProcessV2Async (string cacheId, int? docNumber, int? updateOption) - { - await DocumentsSetDocumentWithOptionForProcessV2AsyncWithHttpInfo(cacheId, docNumber, updateOption); - - } - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentsSetDocumentWithOptionForProcessV2AsyncWithHttpInfo (string cacheId, int? docNumber, int? updateOption) - { - // verify the required parameter 'cacheId' is set - if (cacheId == null) - throw new ApiException(400, "Missing required parameter 'cacheId' when calling DocumentsApi->DocumentsSetDocumentWithOptionForProcessV2"); - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling DocumentsApi->DocumentsSetDocumentWithOptionForProcessV2"); - // verify the required parameter 'updateOption' is set - if (updateOption == null) - throw new ApiException(400, "Missing required parameter 'updateOption' when calling DocumentsApi->DocumentsSetDocumentWithOptionForProcessV2"); - - var localVarPath = "/api/Documents/processV2/{docNumber}/{cacheId}/{updateOption}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (cacheId != null) localVarPathParams.Add("cacheId", this.Configuration.ApiClient.ParameterToString(cacheId)); // path parameter - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (updateOption != null) localVarPathParams.Add("updateOption", this.Configuration.ApiClient.ParameterToString(updateOption)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsSetDocumentWithOptionForProcessV2", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Process document identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// - public void DocumentsSetDocumentWithOptionForTaskV2 (string cacheId, int? docNumber, Guid? processDocId, int? updateOption) - { - DocumentsSetDocumentWithOptionForTaskV2WithHttpInfo(cacheId, docNumber, processDocId, updateOption); - } - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Process document identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// ApiResponse of Object(void) - public ApiResponse DocumentsSetDocumentWithOptionForTaskV2WithHttpInfo (string cacheId, int? docNumber, Guid? processDocId, int? updateOption) - { - // verify the required parameter 'cacheId' is set - if (cacheId == null) - throw new ApiException(400, "Missing required parameter 'cacheId' when calling DocumentsApi->DocumentsSetDocumentWithOptionForTaskV2"); - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling DocumentsApi->DocumentsSetDocumentWithOptionForTaskV2"); - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentsApi->DocumentsSetDocumentWithOptionForTaskV2"); - // verify the required parameter 'updateOption' is set - if (updateOption == null) - throw new ApiException(400, "Missing required parameter 'updateOption' when calling DocumentsApi->DocumentsSetDocumentWithOptionForTaskV2"); - - var localVarPath = "/api/Documents/{docNumber}/{processDocId}/{cacheId}/{updateOption}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (cacheId != null) localVarPathParams.Add("cacheId", this.Configuration.ApiClient.ParameterToString(cacheId)); // path parameter - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (updateOption != null) localVarPathParams.Add("updateOption", this.Configuration.ApiClient.ParameterToString(updateOption)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsSetDocumentWithOptionForTaskV2", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Process document identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// Task of void - public async System.Threading.Tasks.Task DocumentsSetDocumentWithOptionForTaskV2Async (string cacheId, int? docNumber, Guid? processDocId, int? updateOption) - { - await DocumentsSetDocumentWithOptionForTaskV2AsyncWithHttpInfo(cacheId, docNumber, processDocId, updateOption); - - } - - /// - /// This call update a file associated to a profile. The update mode is specified by the update option parameter - /// - /// Thrown when fails to make API call - /// Identifier of cache - /// Document Identifier - /// Process document identifier - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentsSetDocumentWithOptionForTaskV2AsyncWithHttpInfo (string cacheId, int? docNumber, Guid? processDocId, int? updateOption) - { - // verify the required parameter 'cacheId' is set - if (cacheId == null) - throw new ApiException(400, "Missing required parameter 'cacheId' when calling DocumentsApi->DocumentsSetDocumentWithOptionForTaskV2"); - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling DocumentsApi->DocumentsSetDocumentWithOptionForTaskV2"); - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling DocumentsApi->DocumentsSetDocumentWithOptionForTaskV2"); - // verify the required parameter 'updateOption' is set - if (updateOption == null) - throw new ApiException(400, "Missing required parameter 'updateOption' when calling DocumentsApi->DocumentsSetDocumentWithOptionForTaskV2"); - - var localVarPath = "/api/Documents/{docNumber}/{processDocId}/{cacheId}/{updateOption}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (cacheId != null) localVarPathParams.Add("cacheId", this.Configuration.ApiClient.ParameterToString(cacheId)); // path parameter - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (updateOption != null) localVarPathParams.Add("updateOption", this.Configuration.ApiClient.ParameterToString(updateOption)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsSetDocumentWithOptionForTaskV2", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ElementApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ElementApi.cs deleted file mode 100644 index 8f14b7c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ElementApi.cs +++ /dev/null @@ -1,321 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IElementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all possible single element that can be used for the specific element type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Kind of elements that the call should return - /// List<KeyValueElementDto> - List ElementGetByElementType (int? elementType); - - /// - /// This call returns all possible single element that can be used for the specific element type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Kind of elements that the call should return - /// ApiResponse of List<KeyValueElementDto> - ApiResponse> ElementGetByElementTypeWithHttpInfo (int? elementType); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all possible single element that can be used for the specific element type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Kind of elements that the call should return - /// Task of List<KeyValueElementDto> - System.Threading.Tasks.Task> ElementGetByElementTypeAsync (int? elementType); - - /// - /// This call returns all possible single element that can be used for the specific element type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Kind of elements that the call should return - /// Task of ApiResponse (List<KeyValueElementDto>) - System.Threading.Tasks.Task>> ElementGetByElementTypeAsyncWithHttpInfo (int? elementType); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ElementApi : IElementApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ElementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ElementApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all possible single element that can be used for the specific element type - /// - /// Thrown when fails to make API call - /// Kind of elements that the call should return - /// List<KeyValueElementDto> - public List ElementGetByElementType (int? elementType) - { - ApiResponse> localVarResponse = ElementGetByElementTypeWithHttpInfo(elementType); - return localVarResponse.Data; - } - - /// - /// This call returns all possible single element that can be used for the specific element type - /// - /// Thrown when fails to make API call - /// Kind of elements that the call should return - /// ApiResponse of List<KeyValueElementDto> - public ApiResponse< List > ElementGetByElementTypeWithHttpInfo (int? elementType) - { - // verify the required parameter 'elementType' is set - if (elementType == null) - throw new ApiException(400, "Missing required parameter 'elementType' when calling ElementApi->ElementGetByElementType"); - - var localVarPath = "/api/LayoutListElements/{elementType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (elementType != null) localVarPathParams.Add("elementType", this.Configuration.ApiClient.ParameterToString(elementType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ElementGetByElementType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all possible single element that can be used for the specific element type - /// - /// Thrown when fails to make API call - /// Kind of elements that the call should return - /// Task of List<KeyValueElementDto> - public async System.Threading.Tasks.Task> ElementGetByElementTypeAsync (int? elementType) - { - ApiResponse> localVarResponse = await ElementGetByElementTypeAsyncWithHttpInfo(elementType); - return localVarResponse.Data; - - } - - /// - /// This call returns all possible single element that can be used for the specific element type - /// - /// Thrown when fails to make API call - /// Kind of elements that the call should return - /// Task of ApiResponse (List<KeyValueElementDto>) - public async System.Threading.Tasks.Task>> ElementGetByElementTypeAsyncWithHttpInfo (int? elementType) - { - // verify the required parameter 'elementType' is set - if (elementType == null) - throw new ApiException(400, "Missing required parameter 'elementType' when calling ElementApi->ElementGetByElementType"); - - var localVarPath = "/api/LayoutListElements/{elementType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (elementType != null) localVarPathParams.Add("elementType", this.Configuration.ApiClient.ParameterToString(elementType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ElementGetByElementType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/EncryptionApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/EncryptionApi.cs deleted file mode 100644 index 8107944..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/EncryptionApi.cs +++ /dev/null @@ -1,320 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IEncryptionApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// bool? - bool? EncryptionCanDbEncrypt (int? context); - - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// ApiResponse of bool? - ApiResponse EncryptionCanDbEncryptWithHttpInfo (int? context); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// Task of bool? - System.Threading.Tasks.Task EncryptionCanDbEncryptAsync (int? context); - - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> EncryptionCanDbEncryptAsyncWithHttpInfo (int? context); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class EncryptionApi : IEncryptionApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public EncryptionApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public EncryptionApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// bool? - public bool? EncryptionCanDbEncrypt (int? context) - { - ApiResponse localVarResponse = EncryptionCanDbEncryptWithHttpInfo(context); - return localVarResponse.Data; - } - - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// ApiResponse of bool? - public ApiResponse< bool? > EncryptionCanDbEncryptWithHttpInfo (int? context) - { - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling EncryptionApi->EncryptionCanDbEncrypt"); - - var localVarPath = "/api/Encryption/CanDbEncrypt"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (context != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "context", context)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("EncryptionCanDbEncrypt", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// Task of bool? - public async System.Threading.Tasks.Task EncryptionCanDbEncryptAsync (int? context) - { - ApiResponse localVarResponse = await EncryptionCanDbEncryptAsyncWithHttpInfo(context); - return localVarResponse.Data; - - } - - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> EncryptionCanDbEncryptAsyncWithHttpInfo (int? context) - { - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling EncryptionApi->EncryptionCanDbEncrypt"); - - var localVarPath = "/api/Encryption/CanDbEncrypt"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (context != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "context", context)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("EncryptionCanDbEncrypt", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ExternalAppsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ExternalAppsApi.cs deleted file mode 100644 index 12d14b7..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ExternalAppsApi.cs +++ /dev/null @@ -1,1519 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IExternalAppsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// Aborts a document edit session - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void ExternalAppsAbortDocument (string idDocument); - - /// - /// Aborts a document edit session - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse ExternalAppsAbortDocumentWithHttpInfo (string idDocument); - /// - /// Begins an edit of a docnumber in Office365 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// EditDocumentResponseDTO - EditDocumentResponseDTO ExternalAppsEditDocnumber (EditDocnumberRequestDTO editDocnumberRequest); - - /// - /// Begins an edit of a docnumber in Office365 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of EditDocumentResponseDTO - ApiResponse ExternalAppsEditDocnumberWithHttpInfo (EditDocnumberRequestDTO editDocnumberRequest); - /// - /// Begins an edit of a workflow document in Office365 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// EditDocumentResponseDTO - EditDocumentResponseDTO ExternalAppsEditProcessDoc (EditProcessDocRequestDTO editProcessDocRequest); - - /// - /// Begins an edit of a workflow document in Office365 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of EditDocumentResponseDTO - ApiResponse ExternalAppsEditProcessDocWithHttpInfo (EditProcessDocRequestDTO editProcessDocRequest); - /// - /// Returns authorization parameters for retrieve access token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// ExternalAppAuthParamsDTO - ExternalAppAuthParamsDTO ExternalAppsGetExternalAppAuthParams (int? externalAppType); - - /// - /// Returns authorization parameters for retrieve access token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// ApiResponse of ExternalAppAuthParamsDTO - ApiResponse ExternalAppsGetExternalAppAuthParamsWithHttpInfo (int? externalAppType); - /// - /// Returns profilation options for a new office document in ARXivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// List<ExternalAppProfilationModeDTO> - List ExternalAppsGetProfilationOptions (int? externalAppType); - - /// - /// Returns profilation options for a new office document in ARXivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// ApiResponse of List<ExternalAppProfilationModeDTO> - ApiResponse> ExternalAppsGetProfilationOptionsWithHttpInfo (int? externalAppType); - /// - /// Get information about a document edit session - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Microsoft graph file object identifier - /// InfoDocumentResponseDTO - InfoDocumentResponseDTO ExternalAppsInfoDocument (string idDocument); - - /// - /// Get information about a document edit session - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Microsoft graph file object identifier - /// ApiResponse of InfoDocumentResponseDTO - ApiResponse ExternalAppsInfoDocumentWithHttpInfo (string idDocument); - /// - /// Updates a document within an edit session. Retrieves the document from Microsoft Graph and update the ARXivar document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void ExternalAppsUpdateDocument (UpdateDocumentRequestDTO updateRequest); - - /// - /// Updates a document within an edit session. Retrieves the document from Microsoft Graph and update the ARXivar document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse ExternalAppsUpdateDocumentWithHttpInfo (UpdateDocumentRequestDTO updateRequest); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// Aborts a document edit session - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task ExternalAppsAbortDocumentAsync (string idDocument); - - /// - /// Aborts a document edit session - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> ExternalAppsAbortDocumentAsyncWithHttpInfo (string idDocument); - /// - /// Begins an edit of a docnumber in Office365 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of EditDocumentResponseDTO - System.Threading.Tasks.Task ExternalAppsEditDocnumberAsync (EditDocnumberRequestDTO editDocnumberRequest); - - /// - /// Begins an edit of a docnumber in Office365 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (EditDocumentResponseDTO) - System.Threading.Tasks.Task> ExternalAppsEditDocnumberAsyncWithHttpInfo (EditDocnumberRequestDTO editDocnumberRequest); - /// - /// Begins an edit of a workflow document in Office365 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of EditDocumentResponseDTO - System.Threading.Tasks.Task ExternalAppsEditProcessDocAsync (EditProcessDocRequestDTO editProcessDocRequest); - - /// - /// Begins an edit of a workflow document in Office365 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (EditDocumentResponseDTO) - System.Threading.Tasks.Task> ExternalAppsEditProcessDocAsyncWithHttpInfo (EditProcessDocRequestDTO editProcessDocRequest); - /// - /// Returns authorization parameters for retrieve access token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// Task of ExternalAppAuthParamsDTO - System.Threading.Tasks.Task ExternalAppsGetExternalAppAuthParamsAsync (int? externalAppType); - - /// - /// Returns authorization parameters for retrieve access token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// Task of ApiResponse (ExternalAppAuthParamsDTO) - System.Threading.Tasks.Task> ExternalAppsGetExternalAppAuthParamsAsyncWithHttpInfo (int? externalAppType); - /// - /// Returns profilation options for a new office document in ARXivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// Task of List<ExternalAppProfilationModeDTO> - System.Threading.Tasks.Task> ExternalAppsGetProfilationOptionsAsync (int? externalAppType); - - /// - /// Returns profilation options for a new office document in ARXivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// Task of ApiResponse (List<ExternalAppProfilationModeDTO>) - System.Threading.Tasks.Task>> ExternalAppsGetProfilationOptionsAsyncWithHttpInfo (int? externalAppType); - /// - /// Get information about a document edit session - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Microsoft graph file object identifier - /// Task of InfoDocumentResponseDTO - System.Threading.Tasks.Task ExternalAppsInfoDocumentAsync (string idDocument); - - /// - /// Get information about a document edit session - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Microsoft graph file object identifier - /// Task of ApiResponse (InfoDocumentResponseDTO) - System.Threading.Tasks.Task> ExternalAppsInfoDocumentAsyncWithHttpInfo (string idDocument); - /// - /// Updates a document within an edit session. Retrieves the document from Microsoft Graph and update the ARXivar document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task ExternalAppsUpdateDocumentAsync (UpdateDocumentRequestDTO updateRequest); - - /// - /// Updates a document within an edit session. Retrieves the document from Microsoft Graph and update the ARXivar document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> ExternalAppsUpdateDocumentAsyncWithHttpInfo (UpdateDocumentRequestDTO updateRequest); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ExternalAppsApi : IExternalAppsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ExternalAppsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ExternalAppsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// Aborts a document edit session - /// - /// Thrown when fails to make API call - /// - /// - public void ExternalAppsAbortDocument (string idDocument) - { - ExternalAppsAbortDocumentWithHttpInfo(idDocument); - } - - /// - /// Aborts a document edit session - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse ExternalAppsAbortDocumentWithHttpInfo (string idDocument) - { - // verify the required parameter 'idDocument' is set - if (idDocument == null) - throw new ApiException(400, "Missing required parameter 'idDocument' when calling ExternalAppsApi->ExternalAppsAbortDocument"); - - var localVarPath = "/api/ExternalApps/abortDocument"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (idDocument != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "idDocument", idDocument)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsAbortDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Aborts a document edit session - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task ExternalAppsAbortDocumentAsync (string idDocument) - { - await ExternalAppsAbortDocumentAsyncWithHttpInfo(idDocument); - - } - - /// - /// Aborts a document edit session - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ExternalAppsAbortDocumentAsyncWithHttpInfo (string idDocument) - { - // verify the required parameter 'idDocument' is set - if (idDocument == null) - throw new ApiException(400, "Missing required parameter 'idDocument' when calling ExternalAppsApi->ExternalAppsAbortDocument"); - - var localVarPath = "/api/ExternalApps/abortDocument"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (idDocument != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "idDocument", idDocument)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsAbortDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Begins an edit of a docnumber in Office365 - /// - /// Thrown when fails to make API call - /// - /// EditDocumentResponseDTO - public EditDocumentResponseDTO ExternalAppsEditDocnumber (EditDocnumberRequestDTO editDocnumberRequest) - { - ApiResponse localVarResponse = ExternalAppsEditDocnumberWithHttpInfo(editDocnumberRequest); - return localVarResponse.Data; - } - - /// - /// Begins an edit of a docnumber in Office365 - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of EditDocumentResponseDTO - public ApiResponse< EditDocumentResponseDTO > ExternalAppsEditDocnumberWithHttpInfo (EditDocnumberRequestDTO editDocnumberRequest) - { - // verify the required parameter 'editDocnumberRequest' is set - if (editDocnumberRequest == null) - throw new ApiException(400, "Missing required parameter 'editDocnumberRequest' when calling ExternalAppsApi->ExternalAppsEditDocnumber"); - - var localVarPath = "/api/ExternalApps/editDocnumber"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (editDocnumberRequest != null && editDocnumberRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(editDocnumberRequest); // http body (model) parameter - } - else - { - localVarPostBody = editDocnumberRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsEditDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (EditDocumentResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EditDocumentResponseDTO))); - } - - /// - /// Begins an edit of a docnumber in Office365 - /// - /// Thrown when fails to make API call - /// - /// Task of EditDocumentResponseDTO - public async System.Threading.Tasks.Task ExternalAppsEditDocnumberAsync (EditDocnumberRequestDTO editDocnumberRequest) - { - ApiResponse localVarResponse = await ExternalAppsEditDocnumberAsyncWithHttpInfo(editDocnumberRequest); - return localVarResponse.Data; - - } - - /// - /// Begins an edit of a docnumber in Office365 - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (EditDocumentResponseDTO) - public async System.Threading.Tasks.Task> ExternalAppsEditDocnumberAsyncWithHttpInfo (EditDocnumberRequestDTO editDocnumberRequest) - { - // verify the required parameter 'editDocnumberRequest' is set - if (editDocnumberRequest == null) - throw new ApiException(400, "Missing required parameter 'editDocnumberRequest' when calling ExternalAppsApi->ExternalAppsEditDocnumber"); - - var localVarPath = "/api/ExternalApps/editDocnumber"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (editDocnumberRequest != null && editDocnumberRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(editDocnumberRequest); // http body (model) parameter - } - else - { - localVarPostBody = editDocnumberRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsEditDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (EditDocumentResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EditDocumentResponseDTO))); - } - - /// - /// Begins an edit of a workflow document in Office365 - /// - /// Thrown when fails to make API call - /// - /// EditDocumentResponseDTO - public EditDocumentResponseDTO ExternalAppsEditProcessDoc (EditProcessDocRequestDTO editProcessDocRequest) - { - ApiResponse localVarResponse = ExternalAppsEditProcessDocWithHttpInfo(editProcessDocRequest); - return localVarResponse.Data; - } - - /// - /// Begins an edit of a workflow document in Office365 - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of EditDocumentResponseDTO - public ApiResponse< EditDocumentResponseDTO > ExternalAppsEditProcessDocWithHttpInfo (EditProcessDocRequestDTO editProcessDocRequest) - { - // verify the required parameter 'editProcessDocRequest' is set - if (editProcessDocRequest == null) - throw new ApiException(400, "Missing required parameter 'editProcessDocRequest' when calling ExternalAppsApi->ExternalAppsEditProcessDoc"); - - var localVarPath = "/api/ExternalApps/editProcessDoc"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (editProcessDocRequest != null && editProcessDocRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(editProcessDocRequest); // http body (model) parameter - } - else - { - localVarPostBody = editProcessDocRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsEditProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (EditDocumentResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EditDocumentResponseDTO))); - } - - /// - /// Begins an edit of a workflow document in Office365 - /// - /// Thrown when fails to make API call - /// - /// Task of EditDocumentResponseDTO - public async System.Threading.Tasks.Task ExternalAppsEditProcessDocAsync (EditProcessDocRequestDTO editProcessDocRequest) - { - ApiResponse localVarResponse = await ExternalAppsEditProcessDocAsyncWithHttpInfo(editProcessDocRequest); - return localVarResponse.Data; - - } - - /// - /// Begins an edit of a workflow document in Office365 - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (EditDocumentResponseDTO) - public async System.Threading.Tasks.Task> ExternalAppsEditProcessDocAsyncWithHttpInfo (EditProcessDocRequestDTO editProcessDocRequest) - { - // verify the required parameter 'editProcessDocRequest' is set - if (editProcessDocRequest == null) - throw new ApiException(400, "Missing required parameter 'editProcessDocRequest' when calling ExternalAppsApi->ExternalAppsEditProcessDoc"); - - var localVarPath = "/api/ExternalApps/editProcessDoc"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (editProcessDocRequest != null && editProcessDocRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(editProcessDocRequest); // http body (model) parameter - } - else - { - localVarPostBody = editProcessDocRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsEditProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (EditDocumentResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EditDocumentResponseDTO))); - } - - /// - /// Returns authorization parameters for retrieve access token - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// ExternalAppAuthParamsDTO - public ExternalAppAuthParamsDTO ExternalAppsGetExternalAppAuthParams (int? externalAppType) - { - ApiResponse localVarResponse = ExternalAppsGetExternalAppAuthParamsWithHttpInfo(externalAppType); - return localVarResponse.Data; - } - - /// - /// Returns authorization parameters for retrieve access token - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// ApiResponse of ExternalAppAuthParamsDTO - public ApiResponse< ExternalAppAuthParamsDTO > ExternalAppsGetExternalAppAuthParamsWithHttpInfo (int? externalAppType) - { - // verify the required parameter 'externalAppType' is set - if (externalAppType == null) - throw new ApiException(400, "Missing required parameter 'externalAppType' when calling ExternalAppsApi->ExternalAppsGetExternalAppAuthParams"); - - var localVarPath = "/api/ExternalApps/authParams"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (externalAppType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "externalAppType", externalAppType)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsGetExternalAppAuthParams", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ExternalAppAuthParamsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalAppAuthParamsDTO))); - } - - /// - /// Returns authorization parameters for retrieve access token - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// Task of ExternalAppAuthParamsDTO - public async System.Threading.Tasks.Task ExternalAppsGetExternalAppAuthParamsAsync (int? externalAppType) - { - ApiResponse localVarResponse = await ExternalAppsGetExternalAppAuthParamsAsyncWithHttpInfo(externalAppType); - return localVarResponse.Data; - - } - - /// - /// Returns authorization parameters for retrieve access token - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// Task of ApiResponse (ExternalAppAuthParamsDTO) - public async System.Threading.Tasks.Task> ExternalAppsGetExternalAppAuthParamsAsyncWithHttpInfo (int? externalAppType) - { - // verify the required parameter 'externalAppType' is set - if (externalAppType == null) - throw new ApiException(400, "Missing required parameter 'externalAppType' when calling ExternalAppsApi->ExternalAppsGetExternalAppAuthParams"); - - var localVarPath = "/api/ExternalApps/authParams"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (externalAppType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "externalAppType", externalAppType)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsGetExternalAppAuthParams", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ExternalAppAuthParamsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalAppAuthParamsDTO))); - } - - /// - /// Returns profilation options for a new office document in ARXivar - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// List<ExternalAppProfilationModeDTO> - public List ExternalAppsGetProfilationOptions (int? externalAppType) - { - ApiResponse> localVarResponse = ExternalAppsGetProfilationOptionsWithHttpInfo(externalAppType); - return localVarResponse.Data; - } - - /// - /// Returns profilation options for a new office document in ARXivar - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// ApiResponse of List<ExternalAppProfilationModeDTO> - public ApiResponse< List > ExternalAppsGetProfilationOptionsWithHttpInfo (int? externalAppType) - { - // verify the required parameter 'externalAppType' is set - if (externalAppType == null) - throw new ApiException(400, "Missing required parameter 'externalAppType' when calling ExternalAppsApi->ExternalAppsGetProfilationOptions"); - - var localVarPath = "/api/ExternalApps/profilationOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (externalAppType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "externalAppType", externalAppType)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsGetProfilationOptions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Returns profilation options for a new office document in ARXivar - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// Task of List<ExternalAppProfilationModeDTO> - public async System.Threading.Tasks.Task> ExternalAppsGetProfilationOptionsAsync (int? externalAppType) - { - ApiResponse> localVarResponse = await ExternalAppsGetProfilationOptionsAsyncWithHttpInfo(externalAppType); - return localVarResponse.Data; - - } - - /// - /// Returns profilation options for a new office document in ARXivar - /// - /// Thrown when fails to make API call - /// Possible values: 0: Office365 - /// Task of ApiResponse (List<ExternalAppProfilationModeDTO>) - public async System.Threading.Tasks.Task>> ExternalAppsGetProfilationOptionsAsyncWithHttpInfo (int? externalAppType) - { - // verify the required parameter 'externalAppType' is set - if (externalAppType == null) - throw new ApiException(400, "Missing required parameter 'externalAppType' when calling ExternalAppsApi->ExternalAppsGetProfilationOptions"); - - var localVarPath = "/api/ExternalApps/profilationOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (externalAppType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "externalAppType", externalAppType)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsGetProfilationOptions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Get information about a document edit session - /// - /// Thrown when fails to make API call - /// Microsoft graph file object identifier - /// InfoDocumentResponseDTO - public InfoDocumentResponseDTO ExternalAppsInfoDocument (string idDocument) - { - ApiResponse localVarResponse = ExternalAppsInfoDocumentWithHttpInfo(idDocument); - return localVarResponse.Data; - } - - /// - /// Get information about a document edit session - /// - /// Thrown when fails to make API call - /// Microsoft graph file object identifier - /// ApiResponse of InfoDocumentResponseDTO - public ApiResponse< InfoDocumentResponseDTO > ExternalAppsInfoDocumentWithHttpInfo (string idDocument) - { - // verify the required parameter 'idDocument' is set - if (idDocument == null) - throw new ApiException(400, "Missing required parameter 'idDocument' when calling ExternalAppsApi->ExternalAppsInfoDocument"); - - var localVarPath = "/api/ExternalApps/infoDocument"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (idDocument != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "idDocument", idDocument)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsInfoDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (InfoDocumentResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InfoDocumentResponseDTO))); - } - - /// - /// Get information about a document edit session - /// - /// Thrown when fails to make API call - /// Microsoft graph file object identifier - /// Task of InfoDocumentResponseDTO - public async System.Threading.Tasks.Task ExternalAppsInfoDocumentAsync (string idDocument) - { - ApiResponse localVarResponse = await ExternalAppsInfoDocumentAsyncWithHttpInfo(idDocument); - return localVarResponse.Data; - - } - - /// - /// Get information about a document edit session - /// - /// Thrown when fails to make API call - /// Microsoft graph file object identifier - /// Task of ApiResponse (InfoDocumentResponseDTO) - public async System.Threading.Tasks.Task> ExternalAppsInfoDocumentAsyncWithHttpInfo (string idDocument) - { - // verify the required parameter 'idDocument' is set - if (idDocument == null) - throw new ApiException(400, "Missing required parameter 'idDocument' when calling ExternalAppsApi->ExternalAppsInfoDocument"); - - var localVarPath = "/api/ExternalApps/infoDocument"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (idDocument != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "idDocument", idDocument)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsInfoDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (InfoDocumentResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InfoDocumentResponseDTO))); - } - - /// - /// Updates a document within an edit session. Retrieves the document from Microsoft Graph and update the ARXivar document - /// - /// Thrown when fails to make API call - /// - /// - public void ExternalAppsUpdateDocument (UpdateDocumentRequestDTO updateRequest) - { - ExternalAppsUpdateDocumentWithHttpInfo(updateRequest); - } - - /// - /// Updates a document within an edit session. Retrieves the document from Microsoft Graph and update the ARXivar document - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse ExternalAppsUpdateDocumentWithHttpInfo (UpdateDocumentRequestDTO updateRequest) - { - // verify the required parameter 'updateRequest' is set - if (updateRequest == null) - throw new ApiException(400, "Missing required parameter 'updateRequest' when calling ExternalAppsApi->ExternalAppsUpdateDocument"); - - var localVarPath = "/api/ExternalApps/updateDocument"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (updateRequest != null && updateRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(updateRequest); // http body (model) parameter - } - else - { - localVarPostBody = updateRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsUpdateDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Updates a document within an edit session. Retrieves the document from Microsoft Graph and update the ARXivar document - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task ExternalAppsUpdateDocumentAsync (UpdateDocumentRequestDTO updateRequest) - { - await ExternalAppsUpdateDocumentAsyncWithHttpInfo(updateRequest); - - } - - /// - /// Updates a document within an edit session. Retrieves the document from Microsoft Graph and update the ARXivar document - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ExternalAppsUpdateDocumentAsyncWithHttpInfo (UpdateDocumentRequestDTO updateRequest) - { - // verify the required parameter 'updateRequest' is set - if (updateRequest == null) - throw new ApiException(400, "Missing required parameter 'updateRequest' when calling ExternalAppsApi->ExternalAppsUpdateDocument"); - - var localVarPath = "/api/ExternalApps/updateDocument"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (updateRequest != null && updateRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(updateRequest); // http body (model) parameter - } - else - { - localVarPostBody = updateRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsUpdateDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/FieldsSelectorApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/FieldsSelectorApi.cs deleted file mode 100644 index fb6dbde..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/FieldsSelectorApi.cs +++ /dev/null @@ -1,353 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IFieldsSelectorApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the selector fields for barcode template associated with a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// List<FieldBaseForSelectDTO> - List FieldsSelectorGetForConfigureBarcodeTemplate (int? documentType, int? tipo2, int? tipo3); - - /// - /// This call returns the selector fields for barcode template associated with a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// ApiResponse of List<FieldBaseForSelectDTO> - ApiResponse> FieldsSelectorGetForConfigureBarcodeTemplateWithHttpInfo (int? documentType, int? tipo2, int? tipo3); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the selector fields for barcode template associated with a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Task of List<FieldBaseForSelectDTO> - System.Threading.Tasks.Task> FieldsSelectorGetForConfigureBarcodeTemplateAsync (int? documentType, int? tipo2, int? tipo3); - - /// - /// This call returns the selector fields for barcode template associated with a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Task of ApiResponse (List<FieldBaseForSelectDTO>) - System.Threading.Tasks.Task>> FieldsSelectorGetForConfigureBarcodeTemplateAsyncWithHttpInfo (int? documentType, int? tipo2, int? tipo3); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class FieldsSelectorApi : IFieldsSelectorApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public FieldsSelectorApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public FieldsSelectorApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the selector fields for barcode template associated with a specific document type - /// - /// Thrown when fails to make API call - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// List<FieldBaseForSelectDTO> - public List FieldsSelectorGetForConfigureBarcodeTemplate (int? documentType, int? tipo2, int? tipo3) - { - ApiResponse> localVarResponse = FieldsSelectorGetForConfigureBarcodeTemplateWithHttpInfo(documentType, tipo2, tipo3); - return localVarResponse.Data; - } - - /// - /// This call returns the selector fields for barcode template associated with a specific document type - /// - /// Thrown when fails to make API call - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// ApiResponse of List<FieldBaseForSelectDTO> - public ApiResponse< List > FieldsSelectorGetForConfigureBarcodeTemplateWithHttpInfo (int? documentType, int? tipo2, int? tipo3) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling FieldsSelectorApi->FieldsSelectorGetForConfigureBarcodeTemplate"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling FieldsSelectorApi->FieldsSelectorGetForConfigureBarcodeTemplate"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling FieldsSelectorApi->FieldsSelectorGetForConfigureBarcodeTemplate"); - - var localVarPath = "/api/FieldsSelector/ForConfigureBarcodeTemplate/byDocumenttype/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FieldsSelectorGetForConfigureBarcodeTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the selector fields for barcode template associated with a specific document type - /// - /// Thrown when fails to make API call - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Task of List<FieldBaseForSelectDTO> - public async System.Threading.Tasks.Task> FieldsSelectorGetForConfigureBarcodeTemplateAsync (int? documentType, int? tipo2, int? tipo3) - { - ApiResponse> localVarResponse = await FieldsSelectorGetForConfigureBarcodeTemplateAsyncWithHttpInfo(documentType, tipo2, tipo3); - return localVarResponse.Data; - - } - - /// - /// This call returns the selector fields for barcode template associated with a specific document type - /// - /// Thrown when fails to make API call - /// Document type of first level - /// Document type of second level - /// Document type of third level - /// Task of ApiResponse (List<FieldBaseForSelectDTO>) - public async System.Threading.Tasks.Task>> FieldsSelectorGetForConfigureBarcodeTemplateAsyncWithHttpInfo (int? documentType, int? tipo2, int? tipo3) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling FieldsSelectorApi->FieldsSelectorGetForConfigureBarcodeTemplate"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling FieldsSelectorApi->FieldsSelectorGetForConfigureBarcodeTemplate"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling FieldsSelectorApi->FieldsSelectorGetForConfigureBarcodeTemplate"); - - var localVarPath = "/api/FieldsSelector/ForConfigureBarcodeTemplate/byDocumenttype/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FieldsSelectorGetForConfigureBarcodeTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/FindApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/FindApi.cs deleted file mode 100644 index 571bdc6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/FindApi.cs +++ /dev/null @@ -1,496 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IFindApi : IApiAccessor - { - #region Synchronous Operations - /// - /// Get Find Group by Id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// FindGroupDTO - FindGroupDTO FindGetFindGroupById (string id); - - /// - /// Get Find Group by Id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of FindGroupDTO - ApiResponse FindGetFindGroupByIdWithHttpInfo (string id); - /// - /// List of Find Group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<FindGroupDTO> - List FindGetFindGroupList (); - - /// - /// List of Find Group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<FindGroupDTO> - ApiResponse> FindGetFindGroupListWithHttpInfo (); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// Get Find Group by Id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of FindGroupDTO - System.Threading.Tasks.Task FindGetFindGroupByIdAsync (string id); - - /// - /// Get Find Group by Id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (FindGroupDTO) - System.Threading.Tasks.Task> FindGetFindGroupByIdAsyncWithHttpInfo (string id); - /// - /// List of Find Group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<FindGroupDTO> - System.Threading.Tasks.Task> FindGetFindGroupListAsync (); - - /// - /// List of Find Group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<FindGroupDTO>) - System.Threading.Tasks.Task>> FindGetFindGroupListAsyncWithHttpInfo (); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class FindApi : IFindApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public FindApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public FindApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// Get Find Group by Id - /// - /// Thrown when fails to make API call - /// - /// FindGroupDTO - public FindGroupDTO FindGetFindGroupById (string id) - { - ApiResponse localVarResponse = FindGetFindGroupByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get Find Group by Id - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of FindGroupDTO - public ApiResponse< FindGroupDTO > FindGetFindGroupByIdWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FindApi->FindGetFindGroupById"); - - var localVarPath = "/api/Find/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FindGetFindGroupById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FindGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FindGroupDTO))); - } - - /// - /// Get Find Group by Id - /// - /// Thrown when fails to make API call - /// - /// Task of FindGroupDTO - public async System.Threading.Tasks.Task FindGetFindGroupByIdAsync (string id) - { - ApiResponse localVarResponse = await FindGetFindGroupByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// Get Find Group by Id - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (FindGroupDTO) - public async System.Threading.Tasks.Task> FindGetFindGroupByIdAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FindApi->FindGetFindGroupById"); - - var localVarPath = "/api/Find/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FindGetFindGroupById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FindGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FindGroupDTO))); - } - - /// - /// List of Find Group - /// - /// Thrown when fails to make API call - /// List<FindGroupDTO> - public List FindGetFindGroupList () - { - ApiResponse> localVarResponse = FindGetFindGroupListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// List of Find Group - /// - /// Thrown when fails to make API call - /// ApiResponse of List<FindGroupDTO> - public ApiResponse< List > FindGetFindGroupListWithHttpInfo () - { - - var localVarPath = "/api/Find/GroupList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FindGetFindGroupList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// List of Find Group - /// - /// Thrown when fails to make API call - /// Task of List<FindGroupDTO> - public async System.Threading.Tasks.Task> FindGetFindGroupListAsync () - { - ApiResponse> localVarResponse = await FindGetFindGroupListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// List of Find Group - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<FindGroupDTO>) - public async System.Threading.Tasks.Task>> FindGetFindGroupListAsyncWithHttpInfo () - { - - var localVarPath = "/api/Find/GroupList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FindGetFindGroupList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/FoldersApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/FoldersApi.cs deleted file mode 100644 index 1c29c85..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/FoldersApi.cs +++ /dev/null @@ -1,4773 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IFoldersApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This method recalculate folder for profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// - void FoldersAutoinsertInFolderByDocnumber (int? docnumber); - - /// - /// This method recalculate folder for profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// ApiResponse of Object(void) - ApiResponse FoldersAutoinsertInFolderByDocnumberWithHttpInfo (int? docnumber); - /// - /// This method allow to delete a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// - void FoldersDelete (int? id); - - /// - /// This method allow to delete a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of Object(void) - ApiResponse FoldersDeleteWithHttpInfo (int? id); - /// - /// This method delete the arxdrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// - void FoldersDeleteArxDriveConfiguration (int? id); - - /// - /// This method delete the arxdrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// ApiResponse of Object(void) - ApiResponse FoldersDeleteArxDriveConfigurationWithHttpInfo (int? id); - /// - /// This method allows to find folders that contains docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// List<FolderDTO> - List FoldersFindByDocnumber (int? docnumber); - - /// - /// This method allows to find folders that contains docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// ApiResponse of List<FolderDTO> - ApiResponse> FoldersFindByDocnumberWithHttpInfo (int? docnumber); - /// - /// This method allows to find folders by their name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The name to search - /// List<FolderDTO> - List FoldersFindByName (string name); - - /// - /// This method allows to find folders by their name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The name to search - /// ApiResponse of List<FolderDTO> - ApiResponse> FoldersFindByNameWithHttpInfo (string name); - /// - /// This method allows to find folders by their name - /// - /// - /// This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// List<FolderDTO> - List FoldersFindByNameOld (string name); - - /// - /// This method allows to find folders by their name - /// - /// - /// This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// ApiResponse of List<FolderDTO> - ApiResponse> FoldersFindByNameOldWithHttpInfo (string name); - /// - /// This method allows to find folders by their parent and name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// List<FolderDTO> - List FoldersFindInFolderByName (int? id, string name); - - /// - /// This method allows to find folders by their parent and name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// ApiResponse of List<FolderDTO> - ApiResponse> FoldersFindInFolderByNameWithHttpInfo (int? id, string name); - /// - /// This method returns the profile configuration for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// FolderArchiveModeInfo - FolderArchiveModeInfo FoldersGetArchiveInfo (int? id); - - /// - /// This method returns the profile configuration for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of FolderArchiveModeInfo - ApiResponse FoldersGetArchiveInfoWithHttpInfo (int? id); - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDriveFolderModeInfo - ArxDriveFolderModeInfo FoldersGetArxDriveConfiguration (int? id); - - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of ArxDriveFolderModeInfo - ApiResponse FoldersGetArxDriveConfigurationWithHttpInfo (int? id); - /// - /// This method return the folders contained in specified folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// FolderDTO - FolderDTO FoldersGetById (int? id); - - /// - /// This method return the folders contained in specified folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of FolderDTO - ApiResponse FoldersGetByIdWithHttpInfo (int? id); - /// - /// This method return the folders contained in specified parent folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// List<FolderDTO> - List FoldersGetByParentId (int? parentId); - - /// - /// This method return the folders contained in specified parent folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// ApiResponse of List<FolderDTO> - ApiResponse> FoldersGetByParentIdWithHttpInfo (int? parentId); - /// - /// This methods return the profiles contained in a folder - /// - /// - /// This method is deprecated. Use api/v2/Folders/{id}/documents - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// List<RowSearchResult> - List FoldersGetDocumentsById (int? id, SelectDTO select); - - /// - /// This methods return the profiles contained in a folder - /// - /// - /// This method is deprecated. Use api/v2/Folders/{id}/documents - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// ApiResponse of List<RowSearchResult> - ApiResponse> FoldersGetDocumentsByIdWithHttpInfo (int? id, SelectDTO select); - /// - /// This method returns the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// FolderPermissionsDTO - FolderPermissionsDTO FoldersGetFolderPermission (int? id); - - /// - /// This method returns the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of FolderPermissionsDTO - ApiResponse FoldersGetFolderPermissionWithHttpInfo (int? id); - /// - /// This method allow to insert docnumbers in a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// - void FoldersInsertDocnumbers (int? id, List docnumbers); - - /// - /// This method allow to insert docnumbers in a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// ApiResponse of Object(void) - ApiResponse FoldersInsertDocnumbersWithHttpInfo (int? id, List docnumbers); - /// - /// This method allows to change the parent of a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// - void FoldersMove (int? id, int? parentid); - - /// - /// This method allows to change the parent of a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// ApiResponse of Object(void) - ApiResponse FoldersMoveWithHttpInfo (int? id, int? parentid); - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// FolderDTO - FolderDTO FoldersNew (int? parentId, string name); - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// ApiResponse of FolderDTO - ApiResponse FoldersNewWithHttpInfo (int? parentId, string name); - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// FolderDTO - FolderDTO FoldersNewFolder (int? parentId, string name); - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// ApiResponse of FolderDTO - ApiResponse FoldersNewFolderWithHttpInfo (int? parentId, string name); - /// - /// This method allows to remove some docnumber from a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// - void FoldersRemoveDocumentsInFolder (int? id, List docnumbers); - - /// - /// This method allows to remove some docnumber from a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// ApiResponse of Object(void) - ApiResponse FoldersRemoveDocumentsInFolderWithHttpInfo (int? id, List docnumbers); - /// - /// This method allows to rename a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// - void FoldersRename (string name, int? id); - - /// - /// This method allows to rename a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// ApiResponse of Object(void) - ApiResponse FoldersRenameWithHttpInfo (string name, int? id); - /// - /// This method allows to rename a folder - /// - /// - /// This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// - void FoldersRenameOld (string name, int? id); - - /// - /// This method allows to rename a folder - /// - /// - /// This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// ApiResponse of Object(void) - ApiResponse FoldersRenameOldWithHttpInfo (string name, int? id); - /// - /// This method allows to set the profile information for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// - void FoldersSetArchiveInfo (int? id, FolderArchiveModeInfo archiveInfo); - - /// - /// This method allows to set the profile information for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// ApiResponse of Object(void) - ApiResponse FoldersSetArchiveInfoWithHttpInfo (int? id, FolderArchiveModeInfo archiveInfo); - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// - void FoldersSetArxDriveConfiguration (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo); - - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// ApiResponse of Object(void) - ApiResponse FoldersSetArxDriveConfigurationWithHttpInfo (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo); - /// - /// This method sets the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// - void FoldersSetFolderPermission (int? id, FolderPermissionsDTO permissions); - - /// - /// This method sets the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// ApiResponse of Object(void) - ApiResponse FoldersSetFolderPermissionWithHttpInfo (int? id, FolderPermissionsDTO permissions); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This method recalculate folder for profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// Task of void - System.Threading.Tasks.Task FoldersAutoinsertInFolderByDocnumberAsync (int? docnumber); - - /// - /// This method recalculate folder for profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersAutoinsertInFolderByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This method allow to delete a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of void - System.Threading.Tasks.Task FoldersDeleteAsync (int? id); - - /// - /// This method allow to delete a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersDeleteAsyncWithHttpInfo (int? id); - /// - /// This method delete the arxdrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// Task of void - System.Threading.Tasks.Task FoldersDeleteArxDriveConfigurationAsync (int? id); - - /// - /// This method delete the arxdrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersDeleteArxDriveConfigurationAsyncWithHttpInfo (int? id); - /// - /// This method allows to find folders that contains docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// Task of List<FolderDTO> - System.Threading.Tasks.Task> FoldersFindByDocnumberAsync (int? docnumber); - - /// - /// This method allows to find folders that contains docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// Task of ApiResponse (List<FolderDTO>) - System.Threading.Tasks.Task>> FoldersFindByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This method allows to find folders by their name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of List<FolderDTO> - System.Threading.Tasks.Task> FoldersFindByNameAsync (string name); - - /// - /// This method allows to find folders by their name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of ApiResponse (List<FolderDTO>) - System.Threading.Tasks.Task>> FoldersFindByNameAsyncWithHttpInfo (string name); - /// - /// This method allows to find folders by their name - /// - /// - /// This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of List<FolderDTO> - System.Threading.Tasks.Task> FoldersFindByNameOldAsync (string name); - - /// - /// This method allows to find folders by their name - /// - /// - /// This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of ApiResponse (List<FolderDTO>) - System.Threading.Tasks.Task>> FoldersFindByNameOldAsyncWithHttpInfo (string name); - /// - /// This method allows to find folders by their parent and name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// Task of List<FolderDTO> - System.Threading.Tasks.Task> FoldersFindInFolderByNameAsync (int? id, string name); - - /// - /// This method allows to find folders by their parent and name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// Task of ApiResponse (List<FolderDTO>) - System.Threading.Tasks.Task>> FoldersFindInFolderByNameAsyncWithHttpInfo (int? id, string name); - /// - /// This method returns the profile configuration for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of FolderArchiveModeInfo - System.Threading.Tasks.Task FoldersGetArchiveInfoAsync (int? id); - - /// - /// This method returns the profile configuration for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (FolderArchiveModeInfo) - System.Threading.Tasks.Task> FoldersGetArchiveInfoAsyncWithHttpInfo (int? id); - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ArxDriveFolderModeInfo - System.Threading.Tasks.Task FoldersGetArxDriveConfigurationAsync (int? id); - - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (ArxDriveFolderModeInfo) - System.Threading.Tasks.Task> FoldersGetArxDriveConfigurationAsyncWithHttpInfo (int? id); - /// - /// This method return the folders contained in specified folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of FolderDTO - System.Threading.Tasks.Task FoldersGetByIdAsync (int? id); - - /// - /// This method return the folders contained in specified folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (FolderDTO) - System.Threading.Tasks.Task> FoldersGetByIdAsyncWithHttpInfo (int? id); - /// - /// This method return the folders contained in specified parent folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// Task of List<FolderDTO> - System.Threading.Tasks.Task> FoldersGetByParentIdAsync (int? parentId); - - /// - /// This method return the folders contained in specified parent folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// Task of ApiResponse (List<FolderDTO>) - System.Threading.Tasks.Task>> FoldersGetByParentIdAsyncWithHttpInfo (int? parentId); - /// - /// This methods return the profiles contained in a folder - /// - /// - /// This method is deprecated. Use api/v2/Folders/{id}/documents - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> FoldersGetDocumentsByIdAsync (int? id, SelectDTO select); - - /// - /// This methods return the profiles contained in a folder - /// - /// - /// This method is deprecated. Use api/v2/Folders/{id}/documents - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> FoldersGetDocumentsByIdAsyncWithHttpInfo (int? id, SelectDTO select); - /// - /// This method returns the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of FolderPermissionsDTO - System.Threading.Tasks.Task FoldersGetFolderPermissionAsync (int? id); - - /// - /// This method returns the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (FolderPermissionsDTO) - System.Threading.Tasks.Task> FoldersGetFolderPermissionAsyncWithHttpInfo (int? id); - /// - /// This method allow to insert docnumbers in a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// Task of void - System.Threading.Tasks.Task FoldersInsertDocnumbersAsync (int? id, List docnumbers); - - /// - /// This method allow to insert docnumbers in a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersInsertDocnumbersAsyncWithHttpInfo (int? id, List docnumbers); - /// - /// This method allows to change the parent of a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// Task of void - System.Threading.Tasks.Task FoldersMoveAsync (int? id, int? parentid); - - /// - /// This method allows to change the parent of a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersMoveAsyncWithHttpInfo (int? id, int? parentid); - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of FolderDTO - System.Threading.Tasks.Task FoldersNewAsync (int? parentId, string name); - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of ApiResponse (FolderDTO) - System.Threading.Tasks.Task> FoldersNewAsyncWithHttpInfo (int? parentId, string name); - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of FolderDTO - System.Threading.Tasks.Task FoldersNewFolderAsync (int? parentId, string name); - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of ApiResponse (FolderDTO) - System.Threading.Tasks.Task> FoldersNewFolderAsyncWithHttpInfo (int? parentId, string name); - /// - /// This method allows to remove some docnumber from a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// Task of void - System.Threading.Tasks.Task FoldersRemoveDocumentsInFolderAsync (int? id, List docnumbers); - - /// - /// This method allows to remove some docnumber from a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersRemoveDocumentsInFolderAsyncWithHttpInfo (int? id, List docnumbers); - /// - /// This method allows to rename a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of void - System.Threading.Tasks.Task FoldersRenameAsync (string name, int? id); - - /// - /// This method allows to rename a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersRenameAsyncWithHttpInfo (string name, int? id); - /// - /// This method allows to rename a folder - /// - /// - /// This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of void - System.Threading.Tasks.Task FoldersRenameOldAsync (string name, int? id); - - /// - /// This method allows to rename a folder - /// - /// - /// This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersRenameOldAsyncWithHttpInfo (string name, int? id); - /// - /// This method allows to set the profile information for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// Task of void - System.Threading.Tasks.Task FoldersSetArchiveInfoAsync (int? id, FolderArchiveModeInfo archiveInfo); - - /// - /// This method allows to set the profile information for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersSetArchiveInfoAsyncWithHttpInfo (int? id, FolderArchiveModeInfo archiveInfo); - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// Task of void - System.Threading.Tasks.Task FoldersSetArxDriveConfigurationAsync (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo); - - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersSetArxDriveConfigurationAsyncWithHttpInfo (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo); - /// - /// This method sets the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// Task of void - System.Threading.Tasks.Task FoldersSetFolderPermissionAsync (int? id, FolderPermissionsDTO permissions); - - /// - /// This method sets the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersSetFolderPermissionAsyncWithHttpInfo (int? id, FolderPermissionsDTO permissions); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class FoldersApi : IFoldersApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public FoldersApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public FoldersApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This method recalculate folder for profile - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// - public void FoldersAutoinsertInFolderByDocnumber (int? docnumber) - { - FoldersAutoinsertInFolderByDocnumberWithHttpInfo(docnumber); - } - - /// - /// This method recalculate folder for profile - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// ApiResponse of Object(void) - public ApiResponse FoldersAutoinsertInFolderByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling FoldersApi->FoldersAutoinsertInFolderByDocnumber"); - - var localVarPath = "/api/Folders/{docnumber}/autoinsert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersAutoinsertInFolderByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method recalculate folder for profile - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// Task of void - public async System.Threading.Tasks.Task FoldersAutoinsertInFolderByDocnumberAsync (int? docnumber) - { - await FoldersAutoinsertInFolderByDocnumberAsyncWithHttpInfo(docnumber); - - } - - /// - /// This method recalculate folder for profile - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersAutoinsertInFolderByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling FoldersApi->FoldersAutoinsertInFolderByDocnumber"); - - var localVarPath = "/api/Folders/{docnumber}/autoinsert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersAutoinsertInFolderByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allow to delete a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// - public void FoldersDelete (int? id) - { - FoldersDeleteWithHttpInfo(id); - } - - /// - /// This method allow to delete a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of Object(void) - public ApiResponse FoldersDeleteWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersDelete"); - - var localVarPath = "/api/Folders/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allow to delete a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of void - public async System.Threading.Tasks.Task FoldersDeleteAsync (int? id) - { - await FoldersDeleteAsyncWithHttpInfo(id); - - } - - /// - /// This method allow to delete a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersDeleteAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersDelete"); - - var localVarPath = "/api/Folders/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method delete the arxdrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// - public void FoldersDeleteArxDriveConfiguration (int? id) - { - FoldersDeleteArxDriveConfigurationWithHttpInfo(id); - } - - /// - /// This method delete the arxdrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// ApiResponse of Object(void) - public ApiResponse FoldersDeleteArxDriveConfigurationWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersDeleteArxDriveConfiguration"); - - var localVarPath = "/api/Folders/arxdriveinfo/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersDeleteArxDriveConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method delete the arxdrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// Task of void - public async System.Threading.Tasks.Task FoldersDeleteArxDriveConfigurationAsync (int? id) - { - await FoldersDeleteArxDriveConfigurationAsyncWithHttpInfo(id); - - } - - /// - /// This method delete the arxdrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersDeleteArxDriveConfigurationAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersDeleteArxDriveConfiguration"); - - var localVarPath = "/api/Folders/arxdriveinfo/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersDeleteArxDriveConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to find folders that contains docnumber - /// - /// Thrown when fails to make API call - /// The document identifier - /// List<FolderDTO> - public List FoldersFindByDocnumber (int? docnumber) - { - ApiResponse> localVarResponse = FoldersFindByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This method allows to find folders that contains docnumber - /// - /// Thrown when fails to make API call - /// The document identifier - /// ApiResponse of List<FolderDTO> - public ApiResponse< List > FoldersFindByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling FoldersApi->FoldersFindByDocnumber"); - - var localVarPath = "/api/Folders/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersFindByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find folders that contains docnumber - /// - /// Thrown when fails to make API call - /// The document identifier - /// Task of List<FolderDTO> - public async System.Threading.Tasks.Task> FoldersFindByDocnumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await FoldersFindByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This method allows to find folders that contains docnumber - /// - /// Thrown when fails to make API call - /// The document identifier - /// Task of ApiResponse (List<FolderDTO>) - public async System.Threading.Tasks.Task>> FoldersFindByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling FoldersApi->FoldersFindByDocnumber"); - - var localVarPath = "/api/Folders/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersFindByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find folders by their name - /// - /// Thrown when fails to make API call - /// The name to search - /// List<FolderDTO> - public List FoldersFindByName (string name) - { - ApiResponse> localVarResponse = FoldersFindByNameWithHttpInfo(name); - return localVarResponse.Data; - } - - /// - /// This method allows to find folders by their name - /// - /// Thrown when fails to make API call - /// The name to search - /// ApiResponse of List<FolderDTO> - public ApiResponse< List > FoldersFindByNameWithHttpInfo (string name) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersApi->FoldersFindByName"); - - var localVarPath = "/api/Folders/find"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersFindByName", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find folders by their name - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of List<FolderDTO> - public async System.Threading.Tasks.Task> FoldersFindByNameAsync (string name) - { - ApiResponse> localVarResponse = await FoldersFindByNameAsyncWithHttpInfo(name); - return localVarResponse.Data; - - } - - /// - /// This method allows to find folders by their name - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of ApiResponse (List<FolderDTO>) - public async System.Threading.Tasks.Task>> FoldersFindByNameAsyncWithHttpInfo (string name) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersApi->FoldersFindByName"); - - var localVarPath = "/api/Folders/find"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersFindByName", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find folders by their name This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// List<FolderDTO> - public List FoldersFindByNameOld (string name) - { - ApiResponse> localVarResponse = FoldersFindByNameOldWithHttpInfo(name); - return localVarResponse.Data; - } - - /// - /// This method allows to find folders by their name This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// ApiResponse of List<FolderDTO> - public ApiResponse< List > FoldersFindByNameOldWithHttpInfo (string name) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersApi->FoldersFindByNameOld"); - - var localVarPath = "/api/Folders/find/{name}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersFindByNameOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find folders by their name This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of List<FolderDTO> - public async System.Threading.Tasks.Task> FoldersFindByNameOldAsync (string name) - { - ApiResponse> localVarResponse = await FoldersFindByNameOldAsyncWithHttpInfo(name); - return localVarResponse.Data; - - } - - /// - /// This method allows to find folders by their name This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of ApiResponse (List<FolderDTO>) - public async System.Threading.Tasks.Task>> FoldersFindByNameOldAsyncWithHttpInfo (string name) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersApi->FoldersFindByNameOld"); - - var localVarPath = "/api/Folders/find/{name}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersFindByNameOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find folders by their parent and name - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// List<FolderDTO> - public List FoldersFindInFolderByName (int? id, string name) - { - ApiResponse> localVarResponse = FoldersFindInFolderByNameWithHttpInfo(id, name); - return localVarResponse.Data; - } - - /// - /// This method allows to find folders by their parent and name - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// ApiResponse of List<FolderDTO> - public ApiResponse< List > FoldersFindInFolderByNameWithHttpInfo (int? id, string name) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersFindInFolderByName"); - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersApi->FoldersFindInFolderByName"); - - var localVarPath = "/api/Folders/{id}/name/{name}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersFindInFolderByName", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find folders by their parent and name - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// Task of List<FolderDTO> - public async System.Threading.Tasks.Task> FoldersFindInFolderByNameAsync (int? id, string name) - { - ApiResponse> localVarResponse = await FoldersFindInFolderByNameAsyncWithHttpInfo(id, name); - return localVarResponse.Data; - - } - - /// - /// This method allows to find folders by their parent and name - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// Task of ApiResponse (List<FolderDTO>) - public async System.Threading.Tasks.Task>> FoldersFindInFolderByNameAsyncWithHttpInfo (int? id, string name) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersFindInFolderByName"); - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersApi->FoldersFindInFolderByName"); - - var localVarPath = "/api/Folders/{id}/name/{name}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersFindInFolderByName", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns the profile configuration for a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// FolderArchiveModeInfo - public FolderArchiveModeInfo FoldersGetArchiveInfo (int? id) - { - ApiResponse localVarResponse = FoldersGetArchiveInfoWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This method returns the profile configuration for a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of FolderArchiveModeInfo - public ApiResponse< FolderArchiveModeInfo > FoldersGetArchiveInfoWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersGetArchiveInfo"); - - var localVarPath = "/api/Folders/{id}/archiveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersGetArchiveInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderArchiveModeInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderArchiveModeInfo))); - } - - /// - /// This method returns the profile configuration for a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of FolderArchiveModeInfo - public async System.Threading.Tasks.Task FoldersGetArchiveInfoAsync (int? id) - { - ApiResponse localVarResponse = await FoldersGetArchiveInfoAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This method returns the profile configuration for a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (FolderArchiveModeInfo) - public async System.Threading.Tasks.Task> FoldersGetArchiveInfoAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersGetArchiveInfo"); - - var localVarPath = "/api/Folders/{id}/archiveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersGetArchiveInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderArchiveModeInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderArchiveModeInfo))); - } - - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDriveFolderModeInfo - public ArxDriveFolderModeInfo FoldersGetArxDriveConfiguration (int? id) - { - ApiResponse localVarResponse = FoldersGetArxDriveConfigurationWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of ArxDriveFolderModeInfo - public ApiResponse< ArxDriveFolderModeInfo > FoldersGetArxDriveConfigurationWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersGetArxDriveConfiguration"); - - var localVarPath = "/api/Folders/{id}/arxdriveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersGetArxDriveConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxDriveFolderModeInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxDriveFolderModeInfo))); - } - - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ArxDriveFolderModeInfo - public async System.Threading.Tasks.Task FoldersGetArxDriveConfigurationAsync (int? id) - { - ApiResponse localVarResponse = await FoldersGetArxDriveConfigurationAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (ArxDriveFolderModeInfo) - public async System.Threading.Tasks.Task> FoldersGetArxDriveConfigurationAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersGetArxDriveConfiguration"); - - var localVarPath = "/api/Folders/{id}/arxdriveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersGetArxDriveConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxDriveFolderModeInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxDriveFolderModeInfo))); - } - - /// - /// This method return the folders contained in specified folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// FolderDTO - public FolderDTO FoldersGetById (int? id) - { - ApiResponse localVarResponse = FoldersGetByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This method return the folders contained in specified folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of FolderDTO - public ApiResponse< FolderDTO > FoldersGetByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersGetById"); - - var localVarPath = "/api/Folders/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderDTO))); - } - - /// - /// This method return the folders contained in specified folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of FolderDTO - public async System.Threading.Tasks.Task FoldersGetByIdAsync (int? id) - { - ApiResponse localVarResponse = await FoldersGetByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This method return the folders contained in specified folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (FolderDTO) - public async System.Threading.Tasks.Task> FoldersGetByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersGetById"); - - var localVarPath = "/api/Folders/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderDTO))); - } - - /// - /// This method return the folders contained in specified parent folder - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// List<FolderDTO> - public List FoldersGetByParentId (int? parentId) - { - ApiResponse> localVarResponse = FoldersGetByParentIdWithHttpInfo(parentId); - return localVarResponse.Data; - } - - /// - /// This method return the folders contained in specified parent folder - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// ApiResponse of List<FolderDTO> - public ApiResponse< List > FoldersGetByParentIdWithHttpInfo (int? parentId) - { - // verify the required parameter 'parentId' is set - if (parentId == null) - throw new ApiException(400, "Missing required parameter 'parentId' when calling FoldersApi->FoldersGetByParentId"); - - var localVarPath = "/api/Folders/parent/{parentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parentId != null) localVarPathParams.Add("parentId", this.Configuration.ApiClient.ParameterToString(parentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersGetByParentId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method return the folders contained in specified parent folder - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// Task of List<FolderDTO> - public async System.Threading.Tasks.Task> FoldersGetByParentIdAsync (int? parentId) - { - ApiResponse> localVarResponse = await FoldersGetByParentIdAsyncWithHttpInfo(parentId); - return localVarResponse.Data; - - } - - /// - /// This method return the folders contained in specified parent folder - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// Task of ApiResponse (List<FolderDTO>) - public async System.Threading.Tasks.Task>> FoldersGetByParentIdAsyncWithHttpInfo (int? parentId) - { - // verify the required parameter 'parentId' is set - if (parentId == null) - throw new ApiException(400, "Missing required parameter 'parentId' when calling FoldersApi->FoldersGetByParentId"); - - var localVarPath = "/api/Folders/parent/{parentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parentId != null) localVarPathParams.Add("parentId", this.Configuration.ApiClient.ParameterToString(parentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersGetByParentId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This methods return the profiles contained in a folder This method is deprecated. Use api/v2/Folders/{id}/documents - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// List<RowSearchResult> - public List FoldersGetDocumentsById (int? id, SelectDTO select) - { - ApiResponse> localVarResponse = FoldersGetDocumentsByIdWithHttpInfo(id, select); - return localVarResponse.Data; - } - - /// - /// This methods return the profiles contained in a folder This method is deprecated. Use api/v2/Folders/{id}/documents - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > FoldersGetDocumentsByIdWithHttpInfo (int? id, SelectDTO select) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersGetDocumentsById"); - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling FoldersApi->FoldersGetDocumentsById"); - - var localVarPath = "/api/Folders/{id}/documents"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersGetDocumentsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This methods return the profiles contained in a folder This method is deprecated. Use api/v2/Folders/{id}/documents - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> FoldersGetDocumentsByIdAsync (int? id, SelectDTO select) - { - ApiResponse> localVarResponse = await FoldersGetDocumentsByIdAsyncWithHttpInfo(id, select); - return localVarResponse.Data; - - } - - /// - /// This methods return the profiles contained in a folder This method is deprecated. Use api/v2/Folders/{id}/documents - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> FoldersGetDocumentsByIdAsyncWithHttpInfo (int? id, SelectDTO select) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersGetDocumentsById"); - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling FoldersApi->FoldersGetDocumentsById"); - - var localVarPath = "/api/Folders/{id}/documents"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersGetDocumentsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// FolderPermissionsDTO - public FolderPermissionsDTO FoldersGetFolderPermission (int? id) - { - ApiResponse localVarResponse = FoldersGetFolderPermissionWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This method returns the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of FolderPermissionsDTO - public ApiResponse< FolderPermissionsDTO > FoldersGetFolderPermissionWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersGetFolderPermission"); - - var localVarPath = "/api/Folders/{id}/permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersGetFolderPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderPermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderPermissionsDTO))); - } - - /// - /// This method returns the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of FolderPermissionsDTO - public async System.Threading.Tasks.Task FoldersGetFolderPermissionAsync (int? id) - { - ApiResponse localVarResponse = await FoldersGetFolderPermissionAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This method returns the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (FolderPermissionsDTO) - public async System.Threading.Tasks.Task> FoldersGetFolderPermissionAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersGetFolderPermission"); - - var localVarPath = "/api/Folders/{id}/permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersGetFolderPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderPermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderPermissionsDTO))); - } - - /// - /// This method allow to insert docnumbers in a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// - public void FoldersInsertDocnumbers (int? id, List docnumbers) - { - FoldersInsertDocnumbersWithHttpInfo(id, docnumbers); - } - - /// - /// This method allow to insert docnumbers in a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// ApiResponse of Object(void) - public ApiResponse FoldersInsertDocnumbersWithHttpInfo (int? id, List docnumbers) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersInsertDocnumbers"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling FoldersApi->FoldersInsertDocnumbers"); - - var localVarPath = "/api/Folders/{id}/add"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersInsertDocnumbers", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allow to insert docnumbers in a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// Task of void - public async System.Threading.Tasks.Task FoldersInsertDocnumbersAsync (int? id, List docnumbers) - { - await FoldersInsertDocnumbersAsyncWithHttpInfo(id, docnumbers); - - } - - /// - /// This method allow to insert docnumbers in a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersInsertDocnumbersAsyncWithHttpInfo (int? id, List docnumbers) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersInsertDocnumbers"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling FoldersApi->FoldersInsertDocnumbers"); - - var localVarPath = "/api/Folders/{id}/add"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersInsertDocnumbers", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to change the parent of a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// - public void FoldersMove (int? id, int? parentid) - { - FoldersMoveWithHttpInfo(id, parentid); - } - - /// - /// This method allows to change the parent of a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// ApiResponse of Object(void) - public ApiResponse FoldersMoveWithHttpInfo (int? id, int? parentid) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersMove"); - // verify the required parameter 'parentid' is set - if (parentid == null) - throw new ApiException(400, "Missing required parameter 'parentid' when calling FoldersApi->FoldersMove"); - - var localVarPath = "/api/Folders/move/{id}/{parentid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (parentid != null) localVarPathParams.Add("parentid", this.Configuration.ApiClient.ParameterToString(parentid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersMove", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to change the parent of a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// Task of void - public async System.Threading.Tasks.Task FoldersMoveAsync (int? id, int? parentid) - { - await FoldersMoveAsyncWithHttpInfo(id, parentid); - - } - - /// - /// This method allows to change the parent of a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersMoveAsyncWithHttpInfo (int? id, int? parentid) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersMove"); - // verify the required parameter 'parentid' is set - if (parentid == null) - throw new ApiException(400, "Missing required parameter 'parentid' when calling FoldersApi->FoldersMove"); - - var localVarPath = "/api/Folders/move/{id}/{parentid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (parentid != null) localVarPathParams.Add("parentid", this.Configuration.ApiClient.ParameterToString(parentid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersMove", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allow to create a new folder in the parent folder specified This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// FolderDTO - public FolderDTO FoldersNew (int? parentId, string name) - { - ApiResponse localVarResponse = FoldersNewWithHttpInfo(parentId, name); - return localVarResponse.Data; - } - - /// - /// This method allow to create a new folder in the parent folder specified This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// ApiResponse of FolderDTO - public ApiResponse< FolderDTO > FoldersNewWithHttpInfo (int? parentId, string name) - { - // verify the required parameter 'parentId' is set - if (parentId == null) - throw new ApiException(400, "Missing required parameter 'parentId' when calling FoldersApi->FoldersNew"); - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersApi->FoldersNew"); - - var localVarPath = "/api/Folders/{parentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parentId != null) localVarPathParams.Add("parentId", this.Configuration.ApiClient.ParameterToString(parentId)); // path parameter - if (name != null && name.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(name); // http body (model) parameter - } - else - { - localVarPostBody = name; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersNew", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderDTO))); - } - - /// - /// This method allow to create a new folder in the parent folder specified This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of FolderDTO - public async System.Threading.Tasks.Task FoldersNewAsync (int? parentId, string name) - { - ApiResponse localVarResponse = await FoldersNewAsyncWithHttpInfo(parentId, name); - return localVarResponse.Data; - - } - - /// - /// This method allow to create a new folder in the parent folder specified This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of ApiResponse (FolderDTO) - public async System.Threading.Tasks.Task> FoldersNewAsyncWithHttpInfo (int? parentId, string name) - { - // verify the required parameter 'parentId' is set - if (parentId == null) - throw new ApiException(400, "Missing required parameter 'parentId' when calling FoldersApi->FoldersNew"); - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersApi->FoldersNew"); - - var localVarPath = "/api/Folders/{parentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parentId != null) localVarPathParams.Add("parentId", this.Configuration.ApiClient.ParameterToString(parentId)); // path parameter - if (name != null && name.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(name); // http body (model) parameter - } - else - { - localVarPostBody = name; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersNew", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderDTO))); - } - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// FolderDTO - public FolderDTO FoldersNewFolder (int? parentId, string name) - { - ApiResponse localVarResponse = FoldersNewFolderWithHttpInfo(parentId, name); - return localVarResponse.Data; - } - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// ApiResponse of FolderDTO - public ApiResponse< FolderDTO > FoldersNewFolderWithHttpInfo (int? parentId, string name) - { - // verify the required parameter 'parentId' is set - if (parentId == null) - throw new ApiException(400, "Missing required parameter 'parentId' when calling FoldersApi->FoldersNewFolder"); - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersApi->FoldersNewFolder"); - - var localVarPath = "/api/Folders/{parentId}/new"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parentId != null) localVarPathParams.Add("parentId", this.Configuration.ApiClient.ParameterToString(parentId)); // path parameter - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersNewFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderDTO))); - } - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of FolderDTO - public async System.Threading.Tasks.Task FoldersNewFolderAsync (int? parentId, string name) - { - ApiResponse localVarResponse = await FoldersNewFolderAsyncWithHttpInfo(parentId, name); - return localVarResponse.Data; - - } - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of ApiResponse (FolderDTO) - public async System.Threading.Tasks.Task> FoldersNewFolderAsyncWithHttpInfo (int? parentId, string name) - { - // verify the required parameter 'parentId' is set - if (parentId == null) - throw new ApiException(400, "Missing required parameter 'parentId' when calling FoldersApi->FoldersNewFolder"); - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersApi->FoldersNewFolder"); - - var localVarPath = "/api/Folders/{parentId}/new"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parentId != null) localVarPathParams.Add("parentId", this.Configuration.ApiClient.ParameterToString(parentId)); // path parameter - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersNewFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderDTO))); - } - - /// - /// This method allows to remove some docnumber from a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// - public void FoldersRemoveDocumentsInFolder (int? id, List docnumbers) - { - FoldersRemoveDocumentsInFolderWithHttpInfo(id, docnumbers); - } - - /// - /// This method allows to remove some docnumber from a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// ApiResponse of Object(void) - public ApiResponse FoldersRemoveDocumentsInFolderWithHttpInfo (int? id, List docnumbers) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersRemoveDocumentsInFolder"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling FoldersApi->FoldersRemoveDocumentsInFolder"); - - var localVarPath = "/api/Folders/{id}/documents/delete"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersRemoveDocumentsInFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to remove some docnumber from a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// Task of void - public async System.Threading.Tasks.Task FoldersRemoveDocumentsInFolderAsync (int? id, List docnumbers) - { - await FoldersRemoveDocumentsInFolderAsyncWithHttpInfo(id, docnumbers); - - } - - /// - /// This method allows to remove some docnumber from a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersRemoveDocumentsInFolderAsyncWithHttpInfo (int? id, List docnumbers) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersRemoveDocumentsInFolder"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling FoldersApi->FoldersRemoveDocumentsInFolder"); - - var localVarPath = "/api/Folders/{id}/documents/delete"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersRemoveDocumentsInFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to rename a folder - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// - public void FoldersRename (string name, int? id) - { - FoldersRenameWithHttpInfo(name, id); - } - - /// - /// This method allows to rename a folder - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// ApiResponse of Object(void) - public ApiResponse FoldersRenameWithHttpInfo (string name, int? id) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersApi->FoldersRename"); - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersRename"); - - var localVarPath = "/api/Folders/rename/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersRename", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to rename a folder - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of void - public async System.Threading.Tasks.Task FoldersRenameAsync (string name, int? id) - { - await FoldersRenameAsyncWithHttpInfo(name, id); - - } - - /// - /// This method allows to rename a folder - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersRenameAsyncWithHttpInfo (string name, int? id) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersApi->FoldersRename"); - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersRename"); - - var localVarPath = "/api/Folders/rename/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersRename", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to rename a folder This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// - public void FoldersRenameOld (string name, int? id) - { - FoldersRenameOldWithHttpInfo(name, id); - } - - /// - /// This method allows to rename a folder This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// ApiResponse of Object(void) - public ApiResponse FoldersRenameOldWithHttpInfo (string name, int? id) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersApi->FoldersRenameOld"); - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersRenameOld"); - - var localVarPath = "/api/Folders/rename/{id}/{name}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersRenameOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to rename a folder This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of void - public async System.Threading.Tasks.Task FoldersRenameOldAsync (string name, int? id) - { - await FoldersRenameOldAsyncWithHttpInfo(name, id); - - } - - /// - /// This method allows to rename a folder This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersRenameOldAsyncWithHttpInfo (string name, int? id) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersApi->FoldersRenameOld"); - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersRenameOld"); - - var localVarPath = "/api/Folders/rename/{id}/{name}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersRenameOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to set the profile information for a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// - public void FoldersSetArchiveInfo (int? id, FolderArchiveModeInfo archiveInfo) - { - FoldersSetArchiveInfoWithHttpInfo(id, archiveInfo); - } - - /// - /// This method allows to set the profile information for a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// ApiResponse of Object(void) - public ApiResponse FoldersSetArchiveInfoWithHttpInfo (int? id, FolderArchiveModeInfo archiveInfo) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersSetArchiveInfo"); - // verify the required parameter 'archiveInfo' is set - if (archiveInfo == null) - throw new ApiException(400, "Missing required parameter 'archiveInfo' when calling FoldersApi->FoldersSetArchiveInfo"); - - var localVarPath = "/api/Folders/{id}/archiveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (archiveInfo != null && archiveInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(archiveInfo); // http body (model) parameter - } - else - { - localVarPostBody = archiveInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersSetArchiveInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to set the profile information for a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// Task of void - public async System.Threading.Tasks.Task FoldersSetArchiveInfoAsync (int? id, FolderArchiveModeInfo archiveInfo) - { - await FoldersSetArchiveInfoAsyncWithHttpInfo(id, archiveInfo); - - } - - /// - /// This method allows to set the profile information for a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersSetArchiveInfoAsyncWithHttpInfo (int? id, FolderArchiveModeInfo archiveInfo) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersSetArchiveInfo"); - // verify the required parameter 'archiveInfo' is set - if (archiveInfo == null) - throw new ApiException(400, "Missing required parameter 'archiveInfo' when calling FoldersApi->FoldersSetArchiveInfo"); - - var localVarPath = "/api/Folders/{id}/archiveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (archiveInfo != null && archiveInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(archiveInfo); // http body (model) parameter - } - else - { - localVarPostBody = archiveInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersSetArchiveInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// - public void FoldersSetArxDriveConfiguration (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo) - { - FoldersSetArxDriveConfigurationWithHttpInfo(id, arxDriveFolderModeInfo); - } - - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// ApiResponse of Object(void) - public ApiResponse FoldersSetArxDriveConfigurationWithHttpInfo (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersSetArxDriveConfiguration"); - // verify the required parameter 'arxDriveFolderModeInfo' is set - if (arxDriveFolderModeInfo == null) - throw new ApiException(400, "Missing required parameter 'arxDriveFolderModeInfo' when calling FoldersApi->FoldersSetArxDriveConfiguration"); - - var localVarPath = "/api/Folders/{id}/arxdriveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (arxDriveFolderModeInfo != null && arxDriveFolderModeInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(arxDriveFolderModeInfo); // http body (model) parameter - } - else - { - localVarPostBody = arxDriveFolderModeInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersSetArxDriveConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// Task of void - public async System.Threading.Tasks.Task FoldersSetArxDriveConfigurationAsync (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo) - { - await FoldersSetArxDriveConfigurationAsyncWithHttpInfo(id, arxDriveFolderModeInfo); - - } - - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersSetArxDriveConfigurationAsyncWithHttpInfo (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersSetArxDriveConfiguration"); - // verify the required parameter 'arxDriveFolderModeInfo' is set - if (arxDriveFolderModeInfo == null) - throw new ApiException(400, "Missing required parameter 'arxDriveFolderModeInfo' when calling FoldersApi->FoldersSetArxDriveConfiguration"); - - var localVarPath = "/api/Folders/{id}/arxdriveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (arxDriveFolderModeInfo != null && arxDriveFolderModeInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(arxDriveFolderModeInfo); // http body (model) parameter - } - else - { - localVarPostBody = arxDriveFolderModeInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersSetArxDriveConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method sets the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// - public void FoldersSetFolderPermission (int? id, FolderPermissionsDTO permissions) - { - FoldersSetFolderPermissionWithHttpInfo(id, permissions); - } - - /// - /// This method sets the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// ApiResponse of Object(void) - public ApiResponse FoldersSetFolderPermissionWithHttpInfo (int? id, FolderPermissionsDTO permissions) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersSetFolderPermission"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling FoldersApi->FoldersSetFolderPermission"); - - var localVarPath = "/api/Folders/{id}/permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersSetFolderPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method sets the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// Task of void - public async System.Threading.Tasks.Task FoldersSetFolderPermissionAsync (int? id, FolderPermissionsDTO permissions) - { - await FoldersSetFolderPermissionAsyncWithHttpInfo(id, permissions); - - } - - /// - /// This method sets the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersSetFolderPermissionAsyncWithHttpInfo (int? id, FolderPermissionsDTO permissions) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersApi->FoldersSetFolderPermission"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling FoldersApi->FoldersSetFolderPermission"); - - var localVarPath = "/api/Folders/{id}/permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersSetFolderPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/FoldersV2Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/FoldersV2Api.cs deleted file mode 100644 index 9a23a83..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/FoldersV2Api.cs +++ /dev/null @@ -1,4773 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IFoldersV2Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This method recalculate folder for profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// - void FoldersV2AutoinsertInFolderByDocnumber (int? docnumber); - - /// - /// This method recalculate folder for profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// ApiResponse of Object(void) - ApiResponse FoldersV2AutoinsertInFolderByDocnumberWithHttpInfo (int? docnumber); - /// - /// This method allow to delete a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// - void FoldersV2Delete (int? id); - - /// - /// This method allow to delete a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of Object(void) - ApiResponse FoldersV2DeleteWithHttpInfo (int? id); - /// - /// This method delete the arxdrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// - void FoldersV2DeleteArxDriveConfiguration (int? id); - - /// - /// This method delete the arxdrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// ApiResponse of Object(void) - ApiResponse FoldersV2DeleteArxDriveConfigurationWithHttpInfo (int? id); - /// - /// This method allows to find folders that contains docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// List<FolderDTO> - List FoldersV2FindByDocnumber (int? docnumber); - - /// - /// This method allows to find folders that contains docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// ApiResponse of List<FolderDTO> - ApiResponse> FoldersV2FindByDocnumberWithHttpInfo (int? docnumber); - /// - /// This method allows to find folders by their name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The name to search - /// List<FolderDTO> - List FoldersV2FindByName (string name); - - /// - /// This method allows to find folders by their name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The name to search - /// ApiResponse of List<FolderDTO> - ApiResponse> FoldersV2FindByNameWithHttpInfo (string name); - /// - /// This method allows to find folders by their name - /// - /// - /// This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// List<FolderDTO> - List FoldersV2FindByNameOld (string name); - - /// - /// This method allows to find folders by their name - /// - /// - /// This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// ApiResponse of List<FolderDTO> - ApiResponse> FoldersV2FindByNameOldWithHttpInfo (string name); - /// - /// This method allows to find folders by their parent and name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// List<FolderDTO> - List FoldersV2FindInFolderByName (int? id, string name); - - /// - /// This method allows to find folders by their parent and name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// ApiResponse of List<FolderDTO> - ApiResponse> FoldersV2FindInFolderByNameWithHttpInfo (int? id, string name); - /// - /// This method returns the profile configuration for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// FolderArchiveModeInfo - FolderArchiveModeInfo FoldersV2GetArchiveInfo (int? id); - - /// - /// This method returns the profile configuration for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of FolderArchiveModeInfo - ApiResponse FoldersV2GetArchiveInfoWithHttpInfo (int? id); - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDriveFolderModeInfo - ArxDriveFolderModeInfo FoldersV2GetArxDriveConfiguration (int? id); - - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of ArxDriveFolderModeInfo - ApiResponse FoldersV2GetArxDriveConfigurationWithHttpInfo (int? id); - /// - /// This method return the folders contained in specified folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// FolderDTO - FolderDTO FoldersV2GetById (int? id); - - /// - /// This method return the folders contained in specified folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of FolderDTO - ApiResponse FoldersV2GetByIdWithHttpInfo (int? id); - /// - /// This method return the folders contained in specified parent folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// List<FolderDTO> - List FoldersV2GetByParentId (int? parentId); - - /// - /// This method return the folders contained in specified parent folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// ApiResponse of List<FolderDTO> - ApiResponse> FoldersV2GetByParentIdWithHttpInfo (int? parentId); - /// - /// This methods return the profiles contained in a folder. This call could not be compatible with some programming language, in this case use the call api/Folders/{id}/documents - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// Object - Object FoldersV2GetDocumentsById (int? id, SelectDTO select); - - /// - /// This methods return the profiles contained in a folder. This call could not be compatible with some programming language, in this case use the call api/Folders/{id}/documents - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// ApiResponse of Object - ApiResponse FoldersV2GetDocumentsByIdWithHttpInfo (int? id, SelectDTO select); - /// - /// This method returns the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// FolderPermissionsDTO - FolderPermissionsDTO FoldersV2GetFolderPermission (int? id); - - /// - /// This method returns the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of FolderPermissionsDTO - ApiResponse FoldersV2GetFolderPermissionWithHttpInfo (int? id); - /// - /// This method allow to insert docnumbers in a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// - void FoldersV2InsertDocnumbers (int? id, List docnumbers); - - /// - /// This method allow to insert docnumbers in a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// ApiResponse of Object(void) - ApiResponse FoldersV2InsertDocnumbersWithHttpInfo (int? id, List docnumbers); - /// - /// This method allows to change the parent of a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// - void FoldersV2Move (int? id, int? parentid); - - /// - /// This method allows to change the parent of a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// ApiResponse of Object(void) - ApiResponse FoldersV2MoveWithHttpInfo (int? id, int? parentid); - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// FolderDTO - FolderDTO FoldersV2New (int? parentId, string name); - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// ApiResponse of FolderDTO - ApiResponse FoldersV2NewWithHttpInfo (int? parentId, string name); - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// FolderDTO - FolderDTO FoldersV2NewFolder (int? parentId, string name); - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// ApiResponse of FolderDTO - ApiResponse FoldersV2NewFolderWithHttpInfo (int? parentId, string name); - /// - /// This method allows to remove some docnumber from a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// - void FoldersV2RemoveDocumentsInFolder (int? id, List docnumbers); - - /// - /// This method allows to remove some docnumber from a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// ApiResponse of Object(void) - ApiResponse FoldersV2RemoveDocumentsInFolderWithHttpInfo (int? id, List docnumbers); - /// - /// This method allows to rename a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// - void FoldersV2Rename (string name, int? id); - - /// - /// This method allows to rename a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// ApiResponse of Object(void) - ApiResponse FoldersV2RenameWithHttpInfo (string name, int? id); - /// - /// This method allows to rename a folder - /// - /// - /// This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// - void FoldersV2RenameOld (string name, int? id); - - /// - /// This method allows to rename a folder - /// - /// - /// This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// ApiResponse of Object(void) - ApiResponse FoldersV2RenameOldWithHttpInfo (string name, int? id); - /// - /// This method allows to set the profile information for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// - void FoldersV2SetArchiveInfo (int? id, FolderArchiveModeInfo archiveInfo); - - /// - /// This method allows to set the profile information for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// ApiResponse of Object(void) - ApiResponse FoldersV2SetArchiveInfoWithHttpInfo (int? id, FolderArchiveModeInfo archiveInfo); - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// - void FoldersV2SetArxDriveConfiguration (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo); - - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// ApiResponse of Object(void) - ApiResponse FoldersV2SetArxDriveConfigurationWithHttpInfo (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo); - /// - /// This method sets the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// - void FoldersV2SetFolderPermission (int? id, FolderPermissionsDTO permissions); - - /// - /// This method sets the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// ApiResponse of Object(void) - ApiResponse FoldersV2SetFolderPermissionWithHttpInfo (int? id, FolderPermissionsDTO permissions); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This method recalculate folder for profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// Task of void - System.Threading.Tasks.Task FoldersV2AutoinsertInFolderByDocnumberAsync (int? docnumber); - - /// - /// This method recalculate folder for profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersV2AutoinsertInFolderByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This method allow to delete a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of void - System.Threading.Tasks.Task FoldersV2DeleteAsync (int? id); - - /// - /// This method allow to delete a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersV2DeleteAsyncWithHttpInfo (int? id); - /// - /// This method delete the arxdrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// Task of void - System.Threading.Tasks.Task FoldersV2DeleteArxDriveConfigurationAsync (int? id); - - /// - /// This method delete the arxdrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersV2DeleteArxDriveConfigurationAsyncWithHttpInfo (int? id); - /// - /// This method allows to find folders that contains docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// Task of List<FolderDTO> - System.Threading.Tasks.Task> FoldersV2FindByDocnumberAsync (int? docnumber); - - /// - /// This method allows to find folders that contains docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// Task of ApiResponse (List<FolderDTO>) - System.Threading.Tasks.Task>> FoldersV2FindByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This method allows to find folders by their name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of List<FolderDTO> - System.Threading.Tasks.Task> FoldersV2FindByNameAsync (string name); - - /// - /// This method allows to find folders by their name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of ApiResponse (List<FolderDTO>) - System.Threading.Tasks.Task>> FoldersV2FindByNameAsyncWithHttpInfo (string name); - /// - /// This method allows to find folders by their name - /// - /// - /// This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of List<FolderDTO> - System.Threading.Tasks.Task> FoldersV2FindByNameOldAsync (string name); - - /// - /// This method allows to find folders by their name - /// - /// - /// This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of ApiResponse (List<FolderDTO>) - System.Threading.Tasks.Task>> FoldersV2FindByNameOldAsyncWithHttpInfo (string name); - /// - /// This method allows to find folders by their parent and name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// Task of List<FolderDTO> - System.Threading.Tasks.Task> FoldersV2FindInFolderByNameAsync (int? id, string name); - - /// - /// This method allows to find folders by their parent and name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// Task of ApiResponse (List<FolderDTO>) - System.Threading.Tasks.Task>> FoldersV2FindInFolderByNameAsyncWithHttpInfo (int? id, string name); - /// - /// This method returns the profile configuration for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of FolderArchiveModeInfo - System.Threading.Tasks.Task FoldersV2GetArchiveInfoAsync (int? id); - - /// - /// This method returns the profile configuration for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (FolderArchiveModeInfo) - System.Threading.Tasks.Task> FoldersV2GetArchiveInfoAsyncWithHttpInfo (int? id); - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ArxDriveFolderModeInfo - System.Threading.Tasks.Task FoldersV2GetArxDriveConfigurationAsync (int? id); - - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (ArxDriveFolderModeInfo) - System.Threading.Tasks.Task> FoldersV2GetArxDriveConfigurationAsyncWithHttpInfo (int? id); - /// - /// This method return the folders contained in specified folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of FolderDTO - System.Threading.Tasks.Task FoldersV2GetByIdAsync (int? id); - - /// - /// This method return the folders contained in specified folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (FolderDTO) - System.Threading.Tasks.Task> FoldersV2GetByIdAsyncWithHttpInfo (int? id); - /// - /// This method return the folders contained in specified parent folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// Task of List<FolderDTO> - System.Threading.Tasks.Task> FoldersV2GetByParentIdAsync (int? parentId); - - /// - /// This method return the folders contained in specified parent folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// Task of ApiResponse (List<FolderDTO>) - System.Threading.Tasks.Task>> FoldersV2GetByParentIdAsyncWithHttpInfo (int? parentId); - /// - /// This methods return the profiles contained in a folder. This call could not be compatible with some programming language, in this case use the call api/Folders/{id}/documents - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// Task of Object - System.Threading.Tasks.Task FoldersV2GetDocumentsByIdAsync (int? id, SelectDTO select); - - /// - /// This methods return the profiles contained in a folder. This call could not be compatible with some programming language, in this case use the call api/Folders/{id}/documents - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> FoldersV2GetDocumentsByIdAsyncWithHttpInfo (int? id, SelectDTO select); - /// - /// This method returns the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of FolderPermissionsDTO - System.Threading.Tasks.Task FoldersV2GetFolderPermissionAsync (int? id); - - /// - /// This method returns the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (FolderPermissionsDTO) - System.Threading.Tasks.Task> FoldersV2GetFolderPermissionAsyncWithHttpInfo (int? id); - /// - /// This method allow to insert docnumbers in a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// Task of void - System.Threading.Tasks.Task FoldersV2InsertDocnumbersAsync (int? id, List docnumbers); - - /// - /// This method allow to insert docnumbers in a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersV2InsertDocnumbersAsyncWithHttpInfo (int? id, List docnumbers); - /// - /// This method allows to change the parent of a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// Task of void - System.Threading.Tasks.Task FoldersV2MoveAsync (int? id, int? parentid); - - /// - /// This method allows to change the parent of a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersV2MoveAsyncWithHttpInfo (int? id, int? parentid); - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of FolderDTO - System.Threading.Tasks.Task FoldersV2NewAsync (int? parentId, string name); - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of ApiResponse (FolderDTO) - System.Threading.Tasks.Task> FoldersV2NewAsyncWithHttpInfo (int? parentId, string name); - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of FolderDTO - System.Threading.Tasks.Task FoldersV2NewFolderAsync (int? parentId, string name); - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of ApiResponse (FolderDTO) - System.Threading.Tasks.Task> FoldersV2NewFolderAsyncWithHttpInfo (int? parentId, string name); - /// - /// This method allows to remove some docnumber from a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// Task of void - System.Threading.Tasks.Task FoldersV2RemoveDocumentsInFolderAsync (int? id, List docnumbers); - - /// - /// This method allows to remove some docnumber from a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersV2RemoveDocumentsInFolderAsyncWithHttpInfo (int? id, List docnumbers); - /// - /// This method allows to rename a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of void - System.Threading.Tasks.Task FoldersV2RenameAsync (string name, int? id); - - /// - /// This method allows to rename a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersV2RenameAsyncWithHttpInfo (string name, int? id); - /// - /// This method allows to rename a folder - /// - /// - /// This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of void - System.Threading.Tasks.Task FoldersV2RenameOldAsync (string name, int? id); - - /// - /// This method allows to rename a folder - /// - /// - /// This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersV2RenameOldAsyncWithHttpInfo (string name, int? id); - /// - /// This method allows to set the profile information for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// Task of void - System.Threading.Tasks.Task FoldersV2SetArchiveInfoAsync (int? id, FolderArchiveModeInfo archiveInfo); - - /// - /// This method allows to set the profile information for a folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersV2SetArchiveInfoAsyncWithHttpInfo (int? id, FolderArchiveModeInfo archiveInfo); - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// Task of void - System.Threading.Tasks.Task FoldersV2SetArxDriveConfigurationAsync (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo); - - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersV2SetArxDriveConfigurationAsyncWithHttpInfo (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo); - /// - /// This method sets the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// Task of void - System.Threading.Tasks.Task FoldersV2SetFolderPermissionAsync (int? id, FolderPermissionsDTO permissions); - - /// - /// This method sets the permissions for the folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// Task of ApiResponse - System.Threading.Tasks.Task> FoldersV2SetFolderPermissionAsyncWithHttpInfo (int? id, FolderPermissionsDTO permissions); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class FoldersV2Api : IFoldersV2Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public FoldersV2Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public FoldersV2Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This method recalculate folder for profile - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// - public void FoldersV2AutoinsertInFolderByDocnumber (int? docnumber) - { - FoldersV2AutoinsertInFolderByDocnumberWithHttpInfo(docnumber); - } - - /// - /// This method recalculate folder for profile - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// ApiResponse of Object(void) - public ApiResponse FoldersV2AutoinsertInFolderByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling FoldersV2Api->FoldersV2AutoinsertInFolderByDocnumber"); - - var localVarPath = "/api/v2/Folders/{docnumber}/autoinsert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2AutoinsertInFolderByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method recalculate folder for profile - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// Task of void - public async System.Threading.Tasks.Task FoldersV2AutoinsertInFolderByDocnumberAsync (int? docnumber) - { - await FoldersV2AutoinsertInFolderByDocnumberAsyncWithHttpInfo(docnumber); - - } - - /// - /// This method recalculate folder for profile - /// - /// Thrown when fails to make API call - /// The identifier of the profile - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersV2AutoinsertInFolderByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling FoldersV2Api->FoldersV2AutoinsertInFolderByDocnumber"); - - var localVarPath = "/api/v2/Folders/{docnumber}/autoinsert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2AutoinsertInFolderByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allow to delete a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// - public void FoldersV2Delete (int? id) - { - FoldersV2DeleteWithHttpInfo(id); - } - - /// - /// This method allow to delete a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of Object(void) - public ApiResponse FoldersV2DeleteWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2Delete"); - - var localVarPath = "/api/v2/Folders/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2Delete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allow to delete a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of void - public async System.Threading.Tasks.Task FoldersV2DeleteAsync (int? id) - { - await FoldersV2DeleteAsyncWithHttpInfo(id); - - } - - /// - /// This method allow to delete a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersV2DeleteAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2Delete"); - - var localVarPath = "/api/v2/Folders/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2Delete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method delete the arxdrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// - public void FoldersV2DeleteArxDriveConfiguration (int? id) - { - FoldersV2DeleteArxDriveConfigurationWithHttpInfo(id); - } - - /// - /// This method delete the arxdrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// ApiResponse of Object(void) - public ApiResponse FoldersV2DeleteArxDriveConfigurationWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2DeleteArxDriveConfiguration"); - - var localVarPath = "/api/v2/Folders/arxdriveinfo/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2DeleteArxDriveConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method delete the arxdrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// Task of void - public async System.Threading.Tasks.Task FoldersV2DeleteArxDriveConfigurationAsync (int? id) - { - await FoldersV2DeleteArxDriveConfigurationAsyncWithHttpInfo(id); - - } - - /// - /// This method delete the arxdrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the configuration - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersV2DeleteArxDriveConfigurationAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2DeleteArxDriveConfiguration"); - - var localVarPath = "/api/v2/Folders/arxdriveinfo/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2DeleteArxDriveConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to find folders that contains docnumber - /// - /// Thrown when fails to make API call - /// The document identifier - /// List<FolderDTO> - public List FoldersV2FindByDocnumber (int? docnumber) - { - ApiResponse> localVarResponse = FoldersV2FindByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This method allows to find folders that contains docnumber - /// - /// Thrown when fails to make API call - /// The document identifier - /// ApiResponse of List<FolderDTO> - public ApiResponse< List > FoldersV2FindByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling FoldersV2Api->FoldersV2FindByDocnumber"); - - var localVarPath = "/api/v2/Folders/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2FindByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find folders that contains docnumber - /// - /// Thrown when fails to make API call - /// The document identifier - /// Task of List<FolderDTO> - public async System.Threading.Tasks.Task> FoldersV2FindByDocnumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await FoldersV2FindByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This method allows to find folders that contains docnumber - /// - /// Thrown when fails to make API call - /// The document identifier - /// Task of ApiResponse (List<FolderDTO>) - public async System.Threading.Tasks.Task>> FoldersV2FindByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling FoldersV2Api->FoldersV2FindByDocnumber"); - - var localVarPath = "/api/v2/Folders/docnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2FindByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find folders by their name - /// - /// Thrown when fails to make API call - /// The name to search - /// List<FolderDTO> - public List FoldersV2FindByName (string name) - { - ApiResponse> localVarResponse = FoldersV2FindByNameWithHttpInfo(name); - return localVarResponse.Data; - } - - /// - /// This method allows to find folders by their name - /// - /// Thrown when fails to make API call - /// The name to search - /// ApiResponse of List<FolderDTO> - public ApiResponse< List > FoldersV2FindByNameWithHttpInfo (string name) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersV2Api->FoldersV2FindByName"); - - var localVarPath = "/api/v2/Folders/find"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2FindByName", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find folders by their name - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of List<FolderDTO> - public async System.Threading.Tasks.Task> FoldersV2FindByNameAsync (string name) - { - ApiResponse> localVarResponse = await FoldersV2FindByNameAsyncWithHttpInfo(name); - return localVarResponse.Data; - - } - - /// - /// This method allows to find folders by their name - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of ApiResponse (List<FolderDTO>) - public async System.Threading.Tasks.Task>> FoldersV2FindByNameAsyncWithHttpInfo (string name) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersV2Api->FoldersV2FindByName"); - - var localVarPath = "/api/v2/Folders/find"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2FindByName", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find folders by their name This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// List<FolderDTO> - public List FoldersV2FindByNameOld (string name) - { - ApiResponse> localVarResponse = FoldersV2FindByNameOldWithHttpInfo(name); - return localVarResponse.Data; - } - - /// - /// This method allows to find folders by their name This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// ApiResponse of List<FolderDTO> - public ApiResponse< List > FoldersV2FindByNameOldWithHttpInfo (string name) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersV2Api->FoldersV2FindByNameOld"); - - var localVarPath = "/api/v2/Folders/find/{name}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2FindByNameOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find folders by their name This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of List<FolderDTO> - public async System.Threading.Tasks.Task> FoldersV2FindByNameOldAsync (string name) - { - ApiResponse> localVarResponse = await FoldersV2FindByNameOldAsyncWithHttpInfo(name); - return localVarResponse.Data; - - } - - /// - /// This method allows to find folders by their name This method is deprecated. Use /api/v2/Folders/find?name={name} - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of ApiResponse (List<FolderDTO>) - public async System.Threading.Tasks.Task>> FoldersV2FindByNameOldAsyncWithHttpInfo (string name) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersV2Api->FoldersV2FindByNameOld"); - - var localVarPath = "/api/v2/Folders/find/{name}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2FindByNameOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find folders by their parent and name - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// List<FolderDTO> - public List FoldersV2FindInFolderByName (int? id, string name) - { - ApiResponse> localVarResponse = FoldersV2FindInFolderByNameWithHttpInfo(id, name); - return localVarResponse.Data; - } - - /// - /// This method allows to find folders by their parent and name - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// ApiResponse of List<FolderDTO> - public ApiResponse< List > FoldersV2FindInFolderByNameWithHttpInfo (int? id, string name) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2FindInFolderByName"); - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersV2Api->FoldersV2FindInFolderByName"); - - var localVarPath = "/api/v2/Folders/{id}/name/{name}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2FindInFolderByName", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find folders by their parent and name - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// Task of List<FolderDTO> - public async System.Threading.Tasks.Task> FoldersV2FindInFolderByNameAsync (int? id, string name) - { - ApiResponse> localVarResponse = await FoldersV2FindInFolderByNameAsyncWithHttpInfo(id, name); - return localVarResponse.Data; - - } - - /// - /// This method allows to find folders by their parent and name - /// - /// Thrown when fails to make API call - /// The identifier for root folder - /// The name to search - /// Task of ApiResponse (List<FolderDTO>) - public async System.Threading.Tasks.Task>> FoldersV2FindInFolderByNameAsyncWithHttpInfo (int? id, string name) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2FindInFolderByName"); - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersV2Api->FoldersV2FindInFolderByName"); - - var localVarPath = "/api/v2/Folders/{id}/name/{name}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2FindInFolderByName", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns the profile configuration for a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// FolderArchiveModeInfo - public FolderArchiveModeInfo FoldersV2GetArchiveInfo (int? id) - { - ApiResponse localVarResponse = FoldersV2GetArchiveInfoWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This method returns the profile configuration for a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of FolderArchiveModeInfo - public ApiResponse< FolderArchiveModeInfo > FoldersV2GetArchiveInfoWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2GetArchiveInfo"); - - var localVarPath = "/api/v2/Folders/{id}/archiveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2GetArchiveInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderArchiveModeInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderArchiveModeInfo))); - } - - /// - /// This method returns the profile configuration for a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of FolderArchiveModeInfo - public async System.Threading.Tasks.Task FoldersV2GetArchiveInfoAsync (int? id) - { - ApiResponse localVarResponse = await FoldersV2GetArchiveInfoAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This method returns the profile configuration for a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (FolderArchiveModeInfo) - public async System.Threading.Tasks.Task> FoldersV2GetArchiveInfoAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2GetArchiveInfo"); - - var localVarPath = "/api/v2/Folders/{id}/archiveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2GetArchiveInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderArchiveModeInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderArchiveModeInfo))); - } - - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDriveFolderModeInfo - public ArxDriveFolderModeInfo FoldersV2GetArxDriveConfiguration (int? id) - { - ApiResponse localVarResponse = FoldersV2GetArxDriveConfigurationWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of ArxDriveFolderModeInfo - public ApiResponse< ArxDriveFolderModeInfo > FoldersV2GetArxDriveConfigurationWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2GetArxDriveConfiguration"); - - var localVarPath = "/api/v2/Folders/{id}/arxdriveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2GetArxDriveConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxDriveFolderModeInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxDriveFolderModeInfo))); - } - - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ArxDriveFolderModeInfo - public async System.Threading.Tasks.Task FoldersV2GetArxDriveConfigurationAsync (int? id) - { - ApiResponse localVarResponse = await FoldersV2GetArxDriveConfigurationAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This method returns the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (ArxDriveFolderModeInfo) - public async System.Threading.Tasks.Task> FoldersV2GetArxDriveConfigurationAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2GetArxDriveConfiguration"); - - var localVarPath = "/api/v2/Folders/{id}/arxdriveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2GetArxDriveConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxDriveFolderModeInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxDriveFolderModeInfo))); - } - - /// - /// This method return the folders contained in specified folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// FolderDTO - public FolderDTO FoldersV2GetById (int? id) - { - ApiResponse localVarResponse = FoldersV2GetByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This method return the folders contained in specified folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of FolderDTO - public ApiResponse< FolderDTO > FoldersV2GetByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2GetById"); - - var localVarPath = "/api/v2/Folders/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2GetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderDTO))); - } - - /// - /// This method return the folders contained in specified folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of FolderDTO - public async System.Threading.Tasks.Task FoldersV2GetByIdAsync (int? id) - { - ApiResponse localVarResponse = await FoldersV2GetByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This method return the folders contained in specified folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (FolderDTO) - public async System.Threading.Tasks.Task> FoldersV2GetByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2GetById"); - - var localVarPath = "/api/v2/Folders/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2GetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderDTO))); - } - - /// - /// This method return the folders contained in specified parent folder - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// List<FolderDTO> - public List FoldersV2GetByParentId (int? parentId) - { - ApiResponse> localVarResponse = FoldersV2GetByParentIdWithHttpInfo(parentId); - return localVarResponse.Data; - } - - /// - /// This method return the folders contained in specified parent folder - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// ApiResponse of List<FolderDTO> - public ApiResponse< List > FoldersV2GetByParentIdWithHttpInfo (int? parentId) - { - // verify the required parameter 'parentId' is set - if (parentId == null) - throw new ApiException(400, "Missing required parameter 'parentId' when calling FoldersV2Api->FoldersV2GetByParentId"); - - var localVarPath = "/api/v2/Folders/parent/{parentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parentId != null) localVarPathParams.Add("parentId", this.Configuration.ApiClient.ParameterToString(parentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2GetByParentId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method return the folders contained in specified parent folder - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// Task of List<FolderDTO> - public async System.Threading.Tasks.Task> FoldersV2GetByParentIdAsync (int? parentId) - { - ApiResponse> localVarResponse = await FoldersV2GetByParentIdAsyncWithHttpInfo(parentId); - return localVarResponse.Data; - - } - - /// - /// This method return the folders contained in specified parent folder - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// Task of ApiResponse (List<FolderDTO>) - public async System.Threading.Tasks.Task>> FoldersV2GetByParentIdAsyncWithHttpInfo (int? parentId) - { - // verify the required parameter 'parentId' is set - if (parentId == null) - throw new ApiException(400, "Missing required parameter 'parentId' when calling FoldersV2Api->FoldersV2GetByParentId"); - - var localVarPath = "/api/v2/Folders/parent/{parentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parentId != null) localVarPathParams.Add("parentId", this.Configuration.ApiClient.ParameterToString(parentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2GetByParentId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This methods return the profiles contained in a folder. This call could not be compatible with some programming language, in this case use the call api/Folders/{id}/documents - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// Object - public Object FoldersV2GetDocumentsById (int? id, SelectDTO select) - { - ApiResponse localVarResponse = FoldersV2GetDocumentsByIdWithHttpInfo(id, select); - return localVarResponse.Data; - } - - /// - /// This methods return the profiles contained in a folder. This call could not be compatible with some programming language, in this case use the call api/Folders/{id}/documents - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// ApiResponse of Object - public ApiResponse< Object > FoldersV2GetDocumentsByIdWithHttpInfo (int? id, SelectDTO select) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2GetDocumentsById"); - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling FoldersV2Api->FoldersV2GetDocumentsById"); - - var localVarPath = "/api/v2/Folders/{id}/documents"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2GetDocumentsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This methods return the profiles contained in a folder. This call could not be compatible with some programming language, in this case use the call api/Folders/{id}/documents - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// Task of Object - public async System.Threading.Tasks.Task FoldersV2GetDocumentsByIdAsync (int? id, SelectDTO select) - { - ApiResponse localVarResponse = await FoldersV2GetDocumentsByIdAsyncWithHttpInfo(id, select); - return localVarResponse.Data; - - } - - /// - /// This methods return the profiles contained in a folder. This call could not be compatible with some programming language, in this case use the call api/Folders/{id}/documents - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The select object to instruct the server on which fields it must return - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> FoldersV2GetDocumentsByIdAsyncWithHttpInfo (int? id, SelectDTO select) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2GetDocumentsById"); - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling FoldersV2Api->FoldersV2GetDocumentsById"); - - var localVarPath = "/api/v2/Folders/{id}/documents"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2GetDocumentsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This method returns the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// FolderPermissionsDTO - public FolderPermissionsDTO FoldersV2GetFolderPermission (int? id) - { - ApiResponse localVarResponse = FoldersV2GetFolderPermissionWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This method returns the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ApiResponse of FolderPermissionsDTO - public ApiResponse< FolderPermissionsDTO > FoldersV2GetFolderPermissionWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2GetFolderPermission"); - - var localVarPath = "/api/v2/Folders/{id}/permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2GetFolderPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderPermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderPermissionsDTO))); - } - - /// - /// This method returns the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of FolderPermissionsDTO - public async System.Threading.Tasks.Task FoldersV2GetFolderPermissionAsync (int? id) - { - ApiResponse localVarResponse = await FoldersV2GetFolderPermissionAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This method returns the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Task of ApiResponse (FolderPermissionsDTO) - public async System.Threading.Tasks.Task> FoldersV2GetFolderPermissionAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2GetFolderPermission"); - - var localVarPath = "/api/v2/Folders/{id}/permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2GetFolderPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderPermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderPermissionsDTO))); - } - - /// - /// This method allow to insert docnumbers in a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// - public void FoldersV2InsertDocnumbers (int? id, List docnumbers) - { - FoldersV2InsertDocnumbersWithHttpInfo(id, docnumbers); - } - - /// - /// This method allow to insert docnumbers in a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// ApiResponse of Object(void) - public ApiResponse FoldersV2InsertDocnumbersWithHttpInfo (int? id, List docnumbers) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2InsertDocnumbers"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling FoldersV2Api->FoldersV2InsertDocnumbers"); - - var localVarPath = "/api/v2/Folders/{id}/add"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2InsertDocnumbers", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allow to insert docnumbers in a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// Task of void - public async System.Threading.Tasks.Task FoldersV2InsertDocnumbersAsync (int? id, List docnumbers) - { - await FoldersV2InsertDocnumbersAsyncWithHttpInfo(id, docnumbers); - - } - - /// - /// This method allow to insert docnumbers in a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of identifier of docnumbers to insert - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersV2InsertDocnumbersAsyncWithHttpInfo (int? id, List docnumbers) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2InsertDocnumbers"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling FoldersV2Api->FoldersV2InsertDocnumbers"); - - var localVarPath = "/api/v2/Folders/{id}/add"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2InsertDocnumbers", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to change the parent of a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// - public void FoldersV2Move (int? id, int? parentid) - { - FoldersV2MoveWithHttpInfo(id, parentid); - } - - /// - /// This method allows to change the parent of a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// ApiResponse of Object(void) - public ApiResponse FoldersV2MoveWithHttpInfo (int? id, int? parentid) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2Move"); - // verify the required parameter 'parentid' is set - if (parentid == null) - throw new ApiException(400, "Missing required parameter 'parentid' when calling FoldersV2Api->FoldersV2Move"); - - var localVarPath = "/api/v2/Folders/move/{id}/{parentid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (parentid != null) localVarPathParams.Add("parentid", this.Configuration.ApiClient.ParameterToString(parentid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2Move", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to change the parent of a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// Task of void - public async System.Threading.Tasks.Task FoldersV2MoveAsync (int? id, int? parentid) - { - await FoldersV2MoveAsyncWithHttpInfo(id, parentid); - - } - - /// - /// This method allows to change the parent of a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The new parent folder identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersV2MoveAsyncWithHttpInfo (int? id, int? parentid) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2Move"); - // verify the required parameter 'parentid' is set - if (parentid == null) - throw new ApiException(400, "Missing required parameter 'parentid' when calling FoldersV2Api->FoldersV2Move"); - - var localVarPath = "/api/v2/Folders/move/{id}/{parentid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (parentid != null) localVarPathParams.Add("parentid", this.Configuration.ApiClient.ParameterToString(parentid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2Move", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allow to create a new folder in the parent folder specified This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// FolderDTO - public FolderDTO FoldersV2New (int? parentId, string name) - { - ApiResponse localVarResponse = FoldersV2NewWithHttpInfo(parentId, name); - return localVarResponse.Data; - } - - /// - /// This method allow to create a new folder in the parent folder specified This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// ApiResponse of FolderDTO - public ApiResponse< FolderDTO > FoldersV2NewWithHttpInfo (int? parentId, string name) - { - // verify the required parameter 'parentId' is set - if (parentId == null) - throw new ApiException(400, "Missing required parameter 'parentId' when calling FoldersV2Api->FoldersV2New"); - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersV2Api->FoldersV2New"); - - var localVarPath = "/api/v2/Folders/{parentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parentId != null) localVarPathParams.Add("parentId", this.Configuration.ApiClient.ParameterToString(parentId)); // path parameter - if (name != null && name.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(name); // http body (model) parameter - } - else - { - localVarPostBody = name; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2New", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderDTO))); - } - - /// - /// This method allow to create a new folder in the parent folder specified This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of FolderDTO - public async System.Threading.Tasks.Task FoldersV2NewAsync (int? parentId, string name) - { - ApiResponse localVarResponse = await FoldersV2NewAsyncWithHttpInfo(parentId, name); - return localVarResponse.Data; - - } - - /// - /// This method allow to create a new folder in the parent folder specified This method is deprecated. Use /api/v2/Folders/{parentId}/new?name={name} - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of ApiResponse (FolderDTO) - public async System.Threading.Tasks.Task> FoldersV2NewAsyncWithHttpInfo (int? parentId, string name) - { - // verify the required parameter 'parentId' is set - if (parentId == null) - throw new ApiException(400, "Missing required parameter 'parentId' when calling FoldersV2Api->FoldersV2New"); - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersV2Api->FoldersV2New"); - - var localVarPath = "/api/v2/Folders/{parentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parentId != null) localVarPathParams.Add("parentId", this.Configuration.ApiClient.ParameterToString(parentId)); // path parameter - if (name != null && name.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(name); // http body (model) parameter - } - else - { - localVarPostBody = name; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2New", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderDTO))); - } - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// FolderDTO - public FolderDTO FoldersV2NewFolder (int? parentId, string name) - { - ApiResponse localVarResponse = FoldersV2NewFolderWithHttpInfo(parentId, name); - return localVarResponse.Data; - } - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// ApiResponse of FolderDTO - public ApiResponse< FolderDTO > FoldersV2NewFolderWithHttpInfo (int? parentId, string name) - { - // verify the required parameter 'parentId' is set - if (parentId == null) - throw new ApiException(400, "Missing required parameter 'parentId' when calling FoldersV2Api->FoldersV2NewFolder"); - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersV2Api->FoldersV2NewFolder"); - - var localVarPath = "/api/v2/Folders/{parentId}/new"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parentId != null) localVarPathParams.Add("parentId", this.Configuration.ApiClient.ParameterToString(parentId)); // path parameter - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2NewFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderDTO))); - } - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of FolderDTO - public async System.Threading.Tasks.Task FoldersV2NewFolderAsync (int? parentId, string name) - { - ApiResponse localVarResponse = await FoldersV2NewFolderAsyncWithHttpInfo(parentId, name); - return localVarResponse.Data; - - } - - /// - /// This method allow to create a new folder in the parent folder specified - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// The name of new folder - /// Task of ApiResponse (FolderDTO) - public async System.Threading.Tasks.Task> FoldersV2NewFolderAsyncWithHttpInfo (int? parentId, string name) - { - // verify the required parameter 'parentId' is set - if (parentId == null) - throw new ApiException(400, "Missing required parameter 'parentId' when calling FoldersV2Api->FoldersV2NewFolder"); - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersV2Api->FoldersV2NewFolder"); - - var localVarPath = "/api/v2/Folders/{parentId}/new"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parentId != null) localVarPathParams.Add("parentId", this.Configuration.ApiClient.ParameterToString(parentId)); // path parameter - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2NewFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderDTO))); - } - - /// - /// This method allows to remove some docnumber from a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// - public void FoldersV2RemoveDocumentsInFolder (int? id, List docnumbers) - { - FoldersV2RemoveDocumentsInFolderWithHttpInfo(id, docnumbers); - } - - /// - /// This method allows to remove some docnumber from a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// ApiResponse of Object(void) - public ApiResponse FoldersV2RemoveDocumentsInFolderWithHttpInfo (int? id, List docnumbers) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2RemoveDocumentsInFolder"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling FoldersV2Api->FoldersV2RemoveDocumentsInFolder"); - - var localVarPath = "/api/v2/Folders/{id}/documents/delete"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2RemoveDocumentsInFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to remove some docnumber from a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// Task of void - public async System.Threading.Tasks.Task FoldersV2RemoveDocumentsInFolderAsync (int? id, List docnumbers) - { - await FoldersV2RemoveDocumentsInFolderAsyncWithHttpInfo(id, docnumbers); - - } - - /// - /// This method allows to remove some docnumber from a folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// Array of documents identifier to remove - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersV2RemoveDocumentsInFolderAsyncWithHttpInfo (int? id, List docnumbers) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2RemoveDocumentsInFolder"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling FoldersV2Api->FoldersV2RemoveDocumentsInFolder"); - - var localVarPath = "/api/v2/Folders/{id}/documents/delete"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2RemoveDocumentsInFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to rename a folder - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// - public void FoldersV2Rename (string name, int? id) - { - FoldersV2RenameWithHttpInfo(name, id); - } - - /// - /// This method allows to rename a folder - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// ApiResponse of Object(void) - public ApiResponse FoldersV2RenameWithHttpInfo (string name, int? id) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersV2Api->FoldersV2Rename"); - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2Rename"); - - var localVarPath = "/api/v2/Folders/rename/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2Rename", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to rename a folder - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of void - public async System.Threading.Tasks.Task FoldersV2RenameAsync (string name, int? id) - { - await FoldersV2RenameAsyncWithHttpInfo(name, id); - - } - - /// - /// This method allows to rename a folder - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersV2RenameAsyncWithHttpInfo (string name, int? id) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersV2Api->FoldersV2Rename"); - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2Rename"); - - var localVarPath = "/api/v2/Folders/rename/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2Rename", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to rename a folder This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// - public void FoldersV2RenameOld (string name, int? id) - { - FoldersV2RenameOldWithHttpInfo(name, id); - } - - /// - /// This method allows to rename a folder This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// ApiResponse of Object(void) - public ApiResponse FoldersV2RenameOldWithHttpInfo (string name, int? id) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersV2Api->FoldersV2RenameOld"); - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2RenameOld"); - - var localVarPath = "/api/v2/Folders/rename/{id}/{name}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2RenameOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to rename a folder This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of void - public async System.Threading.Tasks.Task FoldersV2RenameOldAsync (string name, int? id) - { - await FoldersV2RenameOldAsyncWithHttpInfo(name, id); - - } - - /// - /// This method allows to rename a folder This method is deprecated. Use /api/v2/Folders/rename/{id}?name={name} - /// - /// Thrown when fails to make API call - /// The new name of folder - /// The identifier of folder to rename - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersV2RenameOldAsyncWithHttpInfo (string name, int? id) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersV2Api->FoldersV2RenameOld"); - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2RenameOld"); - - var localVarPath = "/api/v2/Folders/rename/{id}/{name}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2RenameOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to set the profile information for a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// - public void FoldersV2SetArchiveInfo (int? id, FolderArchiveModeInfo archiveInfo) - { - FoldersV2SetArchiveInfoWithHttpInfo(id, archiveInfo); - } - - /// - /// This method allows to set the profile information for a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// ApiResponse of Object(void) - public ApiResponse FoldersV2SetArchiveInfoWithHttpInfo (int? id, FolderArchiveModeInfo archiveInfo) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2SetArchiveInfo"); - // verify the required parameter 'archiveInfo' is set - if (archiveInfo == null) - throw new ApiException(400, "Missing required parameter 'archiveInfo' when calling FoldersV2Api->FoldersV2SetArchiveInfo"); - - var localVarPath = "/api/v2/Folders/{id}/archiveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (archiveInfo != null && archiveInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(archiveInfo); // http body (model) parameter - } - else - { - localVarPostBody = archiveInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2SetArchiveInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows to set the profile information for a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// Task of void - public async System.Threading.Tasks.Task FoldersV2SetArchiveInfoAsync (int? id, FolderArchiveModeInfo archiveInfo) - { - await FoldersV2SetArchiveInfoAsyncWithHttpInfo(id, archiveInfo); - - } - - /// - /// This method allows to set the profile information for a folder - /// - /// Thrown when fails to make API call - /// The identifier of folder - /// The profile configuration - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersV2SetArchiveInfoAsyncWithHttpInfo (int? id, FolderArchiveModeInfo archiveInfo) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2SetArchiveInfo"); - // verify the required parameter 'archiveInfo' is set - if (archiveInfo == null) - throw new ApiException(400, "Missing required parameter 'archiveInfo' when calling FoldersV2Api->FoldersV2SetArchiveInfo"); - - var localVarPath = "/api/v2/Folders/{id}/archiveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (archiveInfo != null && archiveInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(archiveInfo); // http body (model) parameter - } - else - { - localVarPostBody = archiveInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2SetArchiveInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// - public void FoldersV2SetArxDriveConfiguration (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo) - { - FoldersV2SetArxDriveConfigurationWithHttpInfo(id, arxDriveFolderModeInfo); - } - - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// ApiResponse of Object(void) - public ApiResponse FoldersV2SetArxDriveConfigurationWithHttpInfo (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2SetArxDriveConfiguration"); - // verify the required parameter 'arxDriveFolderModeInfo' is set - if (arxDriveFolderModeInfo == null) - throw new ApiException(400, "Missing required parameter 'arxDriveFolderModeInfo' when calling FoldersV2Api->FoldersV2SetArxDriveConfiguration"); - - var localVarPath = "/api/v2/Folders/{id}/arxdriveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (arxDriveFolderModeInfo != null && arxDriveFolderModeInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(arxDriveFolderModeInfo); // http body (model) parameter - } - else - { - localVarPostBody = arxDriveFolderModeInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2SetArxDriveConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// Task of void - public async System.Threading.Tasks.Task FoldersV2SetArxDriveConfigurationAsync (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo) - { - await FoldersV2SetArxDriveConfigurationAsyncWithHttpInfo(id, arxDriveFolderModeInfo); - - } - - /// - /// This method sets the ArxDrive configuration for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// ArxDrive folder information - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersV2SetArxDriveConfigurationAsyncWithHttpInfo (int? id, ArxDriveFolderModeInfo arxDriveFolderModeInfo) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2SetArxDriveConfiguration"); - // verify the required parameter 'arxDriveFolderModeInfo' is set - if (arxDriveFolderModeInfo == null) - throw new ApiException(400, "Missing required parameter 'arxDriveFolderModeInfo' when calling FoldersV2Api->FoldersV2SetArxDriveConfiguration"); - - var localVarPath = "/api/v2/Folders/{id}/arxdriveinfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (arxDriveFolderModeInfo != null && arxDriveFolderModeInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(arxDriveFolderModeInfo); // http body (model) parameter - } - else - { - localVarPostBody = arxDriveFolderModeInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2SetArxDriveConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method sets the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// - public void FoldersV2SetFolderPermission (int? id, FolderPermissionsDTO permissions) - { - FoldersV2SetFolderPermissionWithHttpInfo(id, permissions); - } - - /// - /// This method sets the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// ApiResponse of Object(void) - public ApiResponse FoldersV2SetFolderPermissionWithHttpInfo (int? id, FolderPermissionsDTO permissions) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2SetFolderPermission"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling FoldersV2Api->FoldersV2SetFolderPermission"); - - var localVarPath = "/api/v2/Folders/{id}/permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2SetFolderPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method sets the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// Task of void - public async System.Threading.Tasks.Task FoldersV2SetFolderPermissionAsync (int? id, FolderPermissionsDTO permissions) - { - await FoldersV2SetFolderPermissionAsyncWithHttpInfo(id, permissions); - - } - - /// - /// This method sets the permissions for the folder - /// - /// Thrown when fails to make API call - /// The identifier of the folder - /// The folder permissions - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FoldersV2SetFolderPermissionAsyncWithHttpInfo (int? id, FolderPermissionsDTO permissions) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling FoldersV2Api->FoldersV2SetFolderPermission"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling FoldersV2Api->FoldersV2SetFolderPermission"); - - var localVarPath = "/api/v2/Folders/{id}/permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersV2SetFolderPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/FullTextApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/FullTextApi.cs deleted file mode 100644 index 75f1916..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/FullTextApi.cs +++ /dev/null @@ -1,763 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IFullTextApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This method return the texts contained in specified document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the document - /// List<FullTextDTO> - List FullTextGetByDocnumber (int? docnumber); - - /// - /// This method return the texts contained in specified document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the document - /// ApiResponse of List<FullTextDTO> - ApiResponse> FullTextGetByDocnumberWithHttpInfo (int? docnumber); - /// - /// This method insert the texts in specific document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// The text of the document - /// - void FullTextInsertByDocnumber (int? docnumber, string text); - - /// - /// This method insert the texts in specific document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// The text of the document - /// ApiResponse of Object(void) - ApiResponse FullTextInsertByDocnumberWithHttpInfo (int? docnumber, string text); - /// - /// This method update the texts in specific document by ocr - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document idenfier - /// The text of the document - /// - void FullTextUpdateByDocnumber (int? docnumber, string text); - - /// - /// This method update the texts in specific document by ocr - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document idenfier - /// The text of the document - /// ApiResponse of Object(void) - ApiResponse FullTextUpdateByDocnumberWithHttpInfo (int? docnumber, string text); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This method return the texts contained in specified document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the document - /// Task of List<FullTextDTO> - System.Threading.Tasks.Task> FullTextGetByDocnumberAsync (int? docnumber); - - /// - /// This method return the texts contained in specified document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the document - /// Task of ApiResponse (List<FullTextDTO>) - System.Threading.Tasks.Task>> FullTextGetByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This method insert the texts in specific document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// The text of the document - /// Task of void - System.Threading.Tasks.Task FullTextInsertByDocnumberAsync (int? docnumber, string text); - - /// - /// This method insert the texts in specific document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document identifier - /// The text of the document - /// Task of ApiResponse - System.Threading.Tasks.Task> FullTextInsertByDocnumberAsyncWithHttpInfo (int? docnumber, string text); - /// - /// This method update the texts in specific document by ocr - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document idenfier - /// The text of the document - /// Task of void - System.Threading.Tasks.Task FullTextUpdateByDocnumberAsync (int? docnumber, string text); - - /// - /// This method update the texts in specific document by ocr - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The document idenfier - /// The text of the document - /// Task of ApiResponse - System.Threading.Tasks.Task> FullTextUpdateByDocnumberAsyncWithHttpInfo (int? docnumber, string text); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class FullTextApi : IFullTextApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public FullTextApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public FullTextApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This method return the texts contained in specified document - /// - /// Thrown when fails to make API call - /// The identifier of the document - /// List<FullTextDTO> - public List FullTextGetByDocnumber (int? docnumber) - { - ApiResponse> localVarResponse = FullTextGetByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This method return the texts contained in specified document - /// - /// Thrown when fails to make API call - /// The identifier of the document - /// ApiResponse of List<FullTextDTO> - public ApiResponse< List > FullTextGetByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling FullTextApi->FullTextGetByDocnumber"); - - var localVarPath = "/api/FullText/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FullTextGetByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method return the texts contained in specified document - /// - /// Thrown when fails to make API call - /// The identifier of the document - /// Task of List<FullTextDTO> - public async System.Threading.Tasks.Task> FullTextGetByDocnumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await FullTextGetByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This method return the texts contained in specified document - /// - /// Thrown when fails to make API call - /// The identifier of the document - /// Task of ApiResponse (List<FullTextDTO>) - public async System.Threading.Tasks.Task>> FullTextGetByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling FullTextApi->FullTextGetByDocnumber"); - - var localVarPath = "/api/FullText/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FullTextGetByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method insert the texts in specific document - /// - /// Thrown when fails to make API call - /// The document identifier - /// The text of the document - /// - public void FullTextInsertByDocnumber (int? docnumber, string text) - { - FullTextInsertByDocnumberWithHttpInfo(docnumber, text); - } - - /// - /// This method insert the texts in specific document - /// - /// Thrown when fails to make API call - /// The document identifier - /// The text of the document - /// ApiResponse of Object(void) - public ApiResponse FullTextInsertByDocnumberWithHttpInfo (int? docnumber, string text) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling FullTextApi->FullTextInsertByDocnumber"); - // verify the required parameter 'text' is set - if (text == null) - throw new ApiException(400, "Missing required parameter 'text' when calling FullTextApi->FullTextInsertByDocnumber"); - - var localVarPath = "/api/FullText/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (text != null && text.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(text); // http body (model) parameter - } - else - { - localVarPostBody = text; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FullTextInsertByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method insert the texts in specific document - /// - /// Thrown when fails to make API call - /// The document identifier - /// The text of the document - /// Task of void - public async System.Threading.Tasks.Task FullTextInsertByDocnumberAsync (int? docnumber, string text) - { - await FullTextInsertByDocnumberAsyncWithHttpInfo(docnumber, text); - - } - - /// - /// This method insert the texts in specific document - /// - /// Thrown when fails to make API call - /// The document identifier - /// The text of the document - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FullTextInsertByDocnumberAsyncWithHttpInfo (int? docnumber, string text) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling FullTextApi->FullTextInsertByDocnumber"); - // verify the required parameter 'text' is set - if (text == null) - throw new ApiException(400, "Missing required parameter 'text' when calling FullTextApi->FullTextInsertByDocnumber"); - - var localVarPath = "/api/FullText/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (text != null && text.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(text); // http body (model) parameter - } - else - { - localVarPostBody = text; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FullTextInsertByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method update the texts in specific document by ocr - /// - /// Thrown when fails to make API call - /// The document idenfier - /// The text of the document - /// - public void FullTextUpdateByDocnumber (int? docnumber, string text) - { - FullTextUpdateByDocnumberWithHttpInfo(docnumber, text); - } - - /// - /// This method update the texts in specific document by ocr - /// - /// Thrown when fails to make API call - /// The document idenfier - /// The text of the document - /// ApiResponse of Object(void) - public ApiResponse FullTextUpdateByDocnumberWithHttpInfo (int? docnumber, string text) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling FullTextApi->FullTextUpdateByDocnumber"); - // verify the required parameter 'text' is set - if (text == null) - throw new ApiException(400, "Missing required parameter 'text' when calling FullTextApi->FullTextUpdateByDocnumber"); - - var localVarPath = "/api/FullText/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (text != null && text.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(text); // http body (model) parameter - } - else - { - localVarPostBody = text; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FullTextUpdateByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method update the texts in specific document by ocr - /// - /// Thrown when fails to make API call - /// The document idenfier - /// The text of the document - /// Task of void - public async System.Threading.Tasks.Task FullTextUpdateByDocnumberAsync (int? docnumber, string text) - { - await FullTextUpdateByDocnumberAsyncWithHttpInfo(docnumber, text); - - } - - /// - /// This method update the texts in specific document by ocr - /// - /// Thrown when fails to make API call - /// The document idenfier - /// The text of the document - /// Task of ApiResponse - public async System.Threading.Tasks.Task> FullTextUpdateByDocnumberAsyncWithHttpInfo (int? docnumber, string text) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling FullTextApi->FullTextUpdateByDocnumber"); - // verify the required parameter 'text' is set - if (text == null) - throw new ApiException(400, "Missing required parameter 'text' when calling FullTextApi->FullTextUpdateByDocnumber"); - - var localVarPath = "/api/FullText/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (text != null && text.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(text); // http body (model) parameter - } - else - { - localVarPostBody = text; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FullTextUpdateByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/GlobalSearchApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/GlobalSearchApi.cs deleted file mode 100644 index 64d2a2c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/GlobalSearchApi.cs +++ /dev/null @@ -1,711 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IGlobalSearchApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the result of a search in full index - /// - /// - /// This method is deprecated. Use api/v3/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// List<RowSearchResult> - List GlobalSearchGetFullIndexSearch (string searchFilter); - - /// - /// This call returns the result of a search in full index - /// - /// - /// This method is deprecated. Use api/v3/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// ApiResponse of List<RowSearchResult> - ApiResponse> GlobalSearchGetFullIndexSearchWithHttpInfo (string searchFilter); - /// - /// This call returns the result of a search in full index - /// - /// - /// This method is deprecated. Use api/v3/GlobalSearches/search - /// - /// Thrown when fails to make API call - /// (optional) - /// List<RowSearchResult> - List GlobalSearchGetFullIndexSearch_0 (FullIndexSearchRequestDto fullindexsearchrequestdto = null); - - /// - /// This call returns the result of a search in full index - /// - /// - /// This method is deprecated. Use api/v3/GlobalSearches/search - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of List<RowSearchResult> - ApiResponse> GlobalSearchGetFullIndexSearch_0WithHttpInfo (FullIndexSearchRequestDto fullindexsearchrequestdto = null); - /// - /// This call returns all elements match the given filter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// List<GenericItemDTO> - List GlobalSearchGlobalSearch (string searchFilter); - - /// - /// This call returns all elements match the given filter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// ApiResponse of List<GenericItemDTO> - ApiResponse> GlobalSearchGlobalSearchWithHttpInfo (string searchFilter); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the result of a search in full index - /// - /// - /// This method is deprecated. Use api/v3/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> GlobalSearchGetFullIndexSearchAsync (string searchFilter); - - /// - /// This call returns the result of a search in full index - /// - /// - /// This method is deprecated. Use api/v3/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> GlobalSearchGetFullIndexSearchAsyncWithHttpInfo (string searchFilter); - /// - /// This call returns the result of a search in full index - /// - /// - /// This method is deprecated. Use api/v3/GlobalSearches/search - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> GlobalSearchGetFullIndexSearch_0Async (FullIndexSearchRequestDto fullindexsearchrequestdto = null); - - /// - /// This call returns the result of a search in full index - /// - /// - /// This method is deprecated. Use api/v3/GlobalSearches/search - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> GlobalSearchGetFullIndexSearch_0AsyncWithHttpInfo (FullIndexSearchRequestDto fullindexsearchrequestdto = null); - /// - /// This call returns all elements match the given filter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of List<GenericItemDTO> - System.Threading.Tasks.Task> GlobalSearchGlobalSearchAsync (string searchFilter); - - /// - /// This call returns all elements match the given filter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of ApiResponse (List<GenericItemDTO>) - System.Threading.Tasks.Task>> GlobalSearchGlobalSearchAsyncWithHttpInfo (string searchFilter); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class GlobalSearchApi : IGlobalSearchApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public GlobalSearchApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public GlobalSearchApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the result of a search in full index This method is deprecated. Use api/v3/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// List<RowSearchResult> - public List GlobalSearchGetFullIndexSearch (string searchFilter) - { - ApiResponse> localVarResponse = GlobalSearchGetFullIndexSearchWithHttpInfo(searchFilter); - return localVarResponse.Data; - } - - /// - /// This call returns the result of a search in full index This method is deprecated. Use api/v3/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > GlobalSearchGetFullIndexSearchWithHttpInfo (string searchFilter) - { - // verify the required parameter 'searchFilter' is set - if (searchFilter == null) - throw new ApiException(400, "Missing required parameter 'searchFilter' when calling GlobalSearchApi->GlobalSearchGetFullIndexSearch"); - - var localVarPath = "/api/GlobalSearches/search/{searchFilter}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchFilter != null) localVarPathParams.Add("searchFilter", this.Configuration.ApiClient.ParameterToString(searchFilter)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GlobalSearchGetFullIndexSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the result of a search in full index This method is deprecated. Use api/v3/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> GlobalSearchGetFullIndexSearchAsync (string searchFilter) - { - ApiResponse> localVarResponse = await GlobalSearchGetFullIndexSearchAsyncWithHttpInfo(searchFilter); - return localVarResponse.Data; - - } - - /// - /// This call returns the result of a search in full index This method is deprecated. Use api/v3/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> GlobalSearchGetFullIndexSearchAsyncWithHttpInfo (string searchFilter) - { - // verify the required parameter 'searchFilter' is set - if (searchFilter == null) - throw new ApiException(400, "Missing required parameter 'searchFilter' when calling GlobalSearchApi->GlobalSearchGetFullIndexSearch"); - - var localVarPath = "/api/GlobalSearches/search/{searchFilter}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchFilter != null) localVarPathParams.Add("searchFilter", this.Configuration.ApiClient.ParameterToString(searchFilter)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GlobalSearchGetFullIndexSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the result of a search in full index This method is deprecated. Use api/v3/GlobalSearches/search - /// - /// Thrown when fails to make API call - /// (optional) - /// List<RowSearchResult> - public List GlobalSearchGetFullIndexSearch_0 (FullIndexSearchRequestDto fullindexsearchrequestdto = null) - { - ApiResponse> localVarResponse = GlobalSearchGetFullIndexSearch_0WithHttpInfo(fullindexsearchrequestdto); - return localVarResponse.Data; - } - - /// - /// This call returns the result of a search in full index This method is deprecated. Use api/v3/GlobalSearches/search - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > GlobalSearchGetFullIndexSearch_0WithHttpInfo (FullIndexSearchRequestDto fullindexsearchrequestdto = null) - { - - var localVarPath = "/api/GlobalSearches/search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fullindexsearchrequestdto != null && fullindexsearchrequestdto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fullindexsearchrequestdto); // http body (model) parameter - } - else - { - localVarPostBody = fullindexsearchrequestdto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GlobalSearchGetFullIndexSearch_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the result of a search in full index This method is deprecated. Use api/v3/GlobalSearches/search - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> GlobalSearchGetFullIndexSearch_0Async (FullIndexSearchRequestDto fullindexsearchrequestdto = null) - { - ApiResponse> localVarResponse = await GlobalSearchGetFullIndexSearch_0AsyncWithHttpInfo(fullindexsearchrequestdto); - return localVarResponse.Data; - - } - - /// - /// This call returns the result of a search in full index This method is deprecated. Use api/v3/GlobalSearches/search - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> GlobalSearchGetFullIndexSearch_0AsyncWithHttpInfo (FullIndexSearchRequestDto fullindexsearchrequestdto = null) - { - - var localVarPath = "/api/GlobalSearches/search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fullindexsearchrequestdto != null && fullindexsearchrequestdto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fullindexsearchrequestdto); // http body (model) parameter - } - else - { - localVarPostBody = fullindexsearchrequestdto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GlobalSearchGetFullIndexSearch_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all elements match the given filter - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// List<GenericItemDTO> - public List GlobalSearchGlobalSearch (string searchFilter) - { - ApiResponse> localVarResponse = GlobalSearchGlobalSearchWithHttpInfo(searchFilter); - return localVarResponse.Data; - } - - /// - /// This call returns all elements match the given filter - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// ApiResponse of List<GenericItemDTO> - public ApiResponse< List > GlobalSearchGlobalSearchWithHttpInfo (string searchFilter) - { - // verify the required parameter 'searchFilter' is set - if (searchFilter == null) - throw new ApiException(400, "Missing required parameter 'searchFilter' when calling GlobalSearchApi->GlobalSearchGlobalSearch"); - - var localVarPath = "/api/GlobalSearches/{searchFilter}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchFilter != null) localVarPathParams.Add("searchFilter", this.Configuration.ApiClient.ParameterToString(searchFilter)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GlobalSearchGlobalSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all elements match the given filter - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of List<GenericItemDTO> - public async System.Threading.Tasks.Task> GlobalSearchGlobalSearchAsync (string searchFilter) - { - ApiResponse> localVarResponse = await GlobalSearchGlobalSearchAsyncWithHttpInfo(searchFilter); - return localVarResponse.Data; - - } - - /// - /// This call returns all elements match the given filter - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of ApiResponse (List<GenericItemDTO>) - public async System.Threading.Tasks.Task>> GlobalSearchGlobalSearchAsyncWithHttpInfo (string searchFilter) - { - // verify the required parameter 'searchFilter' is set - if (searchFilter == null) - throw new ApiException(400, "Missing required parameter 'searchFilter' when calling GlobalSearchApi->GlobalSearchGlobalSearch"); - - var localVarPath = "/api/GlobalSearches/{searchFilter}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchFilter != null) localVarPathParams.Add("searchFilter", this.Configuration.ApiClient.ParameterToString(searchFilter)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GlobalSearchGlobalSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/GlobalSearchV3Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/GlobalSearchV3Api.cs deleted file mode 100644 index 45c481e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/GlobalSearchV3Api.cs +++ /dev/null @@ -1,711 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IGlobalSearchV3Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Object - Object GlobalSearchV3GetFullIndexSearch (string searchFilter); - - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// ApiResponse of Object - ApiResponse GlobalSearchV3GetFullIndexSearchWithHttpInfo (string searchFilter); - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Object - Object GlobalSearchV3GetFullIndexSearch_0 (FullIndexSearchRequestDto fullindexsearchrequestdto = null); - - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object - ApiResponse GlobalSearchV3GetFullIndexSearch_0WithHttpInfo (FullIndexSearchRequestDto fullindexsearchrequestdto = null); - /// - /// This call returns all elements match the given filter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// List<GenericItemDTO> - List GlobalSearchV3GlobalSearch (string searchFilter); - - /// - /// This call returns all elements match the given filter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// ApiResponse of List<GenericItemDTO> - ApiResponse> GlobalSearchV3GlobalSearchWithHttpInfo (string searchFilter); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of Object - System.Threading.Tasks.Task GlobalSearchV3GetFullIndexSearchAsync (string searchFilter); - - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> GlobalSearchV3GetFullIndexSearchAsyncWithHttpInfo (string searchFilter); - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of Object - System.Threading.Tasks.Task GlobalSearchV3GetFullIndexSearch_0Async (FullIndexSearchRequestDto fullindexsearchrequestdto = null); - - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> GlobalSearchV3GetFullIndexSearch_0AsyncWithHttpInfo (FullIndexSearchRequestDto fullindexsearchrequestdto = null); - /// - /// This call returns all elements match the given filter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of List<GenericItemDTO> - System.Threading.Tasks.Task> GlobalSearchV3GlobalSearchAsync (string searchFilter); - - /// - /// This call returns all elements match the given filter - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of ApiResponse (List<GenericItemDTO>) - System.Threading.Tasks.Task>> GlobalSearchV3GlobalSearchAsyncWithHttpInfo (string searchFilter); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class GlobalSearchV3Api : IGlobalSearchV3Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public GlobalSearchV3Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public GlobalSearchV3Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Object - public Object GlobalSearchV3GetFullIndexSearch (string searchFilter) - { - ApiResponse localVarResponse = GlobalSearchV3GetFullIndexSearchWithHttpInfo(searchFilter); - return localVarResponse.Data; - } - - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// ApiResponse of Object - public ApiResponse< Object > GlobalSearchV3GetFullIndexSearchWithHttpInfo (string searchFilter) - { - // verify the required parameter 'searchFilter' is set - if (searchFilter == null) - throw new ApiException(400, "Missing required parameter 'searchFilter' when calling GlobalSearchV3Api->GlobalSearchV3GetFullIndexSearch"); - - var localVarPath = "/api/v3/GlobalSearches/search/{searchFilter}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchFilter != null) localVarPathParams.Add("searchFilter", this.Configuration.ApiClient.ParameterToString(searchFilter)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GlobalSearchV3GetFullIndexSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of Object - public async System.Threading.Tasks.Task GlobalSearchV3GetFullIndexSearchAsync (string searchFilter) - { - ApiResponse localVarResponse = await GlobalSearchV3GetFullIndexSearchAsyncWithHttpInfo(searchFilter); - return localVarResponse.Data; - - } - - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search/{searchFilter=searchFilter} - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> GlobalSearchV3GetFullIndexSearchAsyncWithHttpInfo (string searchFilter) - { - // verify the required parameter 'searchFilter' is set - if (searchFilter == null) - throw new ApiException(400, "Missing required parameter 'searchFilter' when calling GlobalSearchV3Api->GlobalSearchV3GetFullIndexSearch"); - - var localVarPath = "/api/v3/GlobalSearches/search/{searchFilter}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchFilter != null) localVarPathParams.Add("searchFilter", this.Configuration.ApiClient.ParameterToString(searchFilter)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GlobalSearchV3GetFullIndexSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search - /// - /// Thrown when fails to make API call - /// (optional) - /// Object - public Object GlobalSearchV3GetFullIndexSearch_0 (FullIndexSearchRequestDto fullindexsearchrequestdto = null) - { - ApiResponse localVarResponse = GlobalSearchV3GetFullIndexSearch_0WithHttpInfo(fullindexsearchrequestdto); - return localVarResponse.Data; - } - - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object - public ApiResponse< Object > GlobalSearchV3GetFullIndexSearch_0WithHttpInfo (FullIndexSearchRequestDto fullindexsearchrequestdto = null) - { - - var localVarPath = "/api/v3/GlobalSearches/search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fullindexsearchrequestdto != null && fullindexsearchrequestdto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fullindexsearchrequestdto); // http body (model) parameter - } - else - { - localVarPostBody = fullindexsearchrequestdto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GlobalSearchV3GetFullIndexSearch_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of Object - public async System.Threading.Tasks.Task GlobalSearchV3GetFullIndexSearch_0Async (FullIndexSearchRequestDto fullindexsearchrequestdto = null) - { - ApiResponse localVarResponse = await GlobalSearchV3GetFullIndexSearch_0AsyncWithHttpInfo(fullindexsearchrequestdto); - return localVarResponse.Data; - - } - - /// - /// This call returns the result of a search in full index. This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> GlobalSearchV3GetFullIndexSearch_0AsyncWithHttpInfo (FullIndexSearchRequestDto fullindexsearchrequestdto = null) - { - - var localVarPath = "/api/v3/GlobalSearches/search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fullindexsearchrequestdto != null && fullindexsearchrequestdto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fullindexsearchrequestdto); // http body (model) parameter - } - else - { - localVarPostBody = fullindexsearchrequestdto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GlobalSearchV3GetFullIndexSearch_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns all elements match the given filter - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// List<GenericItemDTO> - public List GlobalSearchV3GlobalSearch (string searchFilter) - { - ApiResponse> localVarResponse = GlobalSearchV3GlobalSearchWithHttpInfo(searchFilter); - return localVarResponse.Data; - } - - /// - /// This call returns all elements match the given filter - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// ApiResponse of List<GenericItemDTO> - public ApiResponse< List > GlobalSearchV3GlobalSearchWithHttpInfo (string searchFilter) - { - // verify the required parameter 'searchFilter' is set - if (searchFilter == null) - throw new ApiException(400, "Missing required parameter 'searchFilter' when calling GlobalSearchV3Api->GlobalSearchV3GlobalSearch"); - - var localVarPath = "/api/v3/GlobalSearches/{searchFilter}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchFilter != null) localVarPathParams.Add("searchFilter", this.Configuration.ApiClient.ParameterToString(searchFilter)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GlobalSearchV3GlobalSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all elements match the given filter - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of List<GenericItemDTO> - public async System.Threading.Tasks.Task> GlobalSearchV3GlobalSearchAsync (string searchFilter) - { - ApiResponse> localVarResponse = await GlobalSearchV3GlobalSearchAsyncWithHttpInfo(searchFilter); - return localVarResponse.Data; - - } - - /// - /// This call returns all elements match the given filter - /// - /// Thrown when fails to make API call - /// Filter to be applied to the search - /// Task of ApiResponse (List<GenericItemDTO>) - public async System.Threading.Tasks.Task>> GlobalSearchV3GlobalSearchAsyncWithHttpInfo (string searchFilter) - { - // verify the required parameter 'searchFilter' is set - if (searchFilter == null) - throw new ApiException(400, "Missing required parameter 'searchFilter' when calling GlobalSearchV3Api->GlobalSearchV3GlobalSearch"); - - var localVarPath = "/api/v3/GlobalSearches/{searchFilter}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchFilter != null) localVarPathParams.Add("searchFilter", this.Configuration.ApiClient.ParameterToString(searchFilter)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GlobalSearchV3GlobalSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/GroupsModelsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/GroupsModelsApi.cs deleted file mode 100644 index 046c290..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/GroupsModelsApi.cs +++ /dev/null @@ -1,912 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IGroupsModelsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes a group model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// - void GroupsModelsDeleteGroupModel (int? id); - - /// - /// This call deletes a group model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// ApiResponse of Object(void) - ApiResponse GroupsModelsDeleteGroupModelWithHttpInfo (int? id); - /// - /// This call returns the groups models on user connected - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<GroupModelDTO> - List GroupsModelsGetGroupsModels (); - - /// - /// This call returns the groups models on user connected - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<GroupModelDTO> - ApiResponse> GroupsModelsGetGroupsModelsWithHttpInfo (); - /// - /// This call updates a model group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// Name to update - /// - void GroupsModelsUpdateModel (int? id, string groupModelName); - - /// - /// This call updates a model group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// Name to update - /// ApiResponse of Object(void) - ApiResponse GroupsModelsUpdateModelWithHttpInfo (int? id, string groupModelName); - /// - /// This call adds new group model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data of group model - /// - void GroupsModelsWriteGroupModel (GroupModelDTO groupModelDto); - - /// - /// This call adds new group model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data of group model - /// ApiResponse of Object(void) - ApiResponse GroupsModelsWriteGroupModelWithHttpInfo (GroupModelDTO groupModelDto); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes a group model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// Task of void - System.Threading.Tasks.Task GroupsModelsDeleteGroupModelAsync (int? id); - - /// - /// This call deletes a group model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// Task of ApiResponse - System.Threading.Tasks.Task> GroupsModelsDeleteGroupModelAsyncWithHttpInfo (int? id); - /// - /// This call returns the groups models on user connected - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<GroupModelDTO> - System.Threading.Tasks.Task> GroupsModelsGetGroupsModelsAsync (); - - /// - /// This call returns the groups models on user connected - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<GroupModelDTO>) - System.Threading.Tasks.Task>> GroupsModelsGetGroupsModelsAsyncWithHttpInfo (); - /// - /// This call updates a model group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// Name to update - /// Task of void - System.Threading.Tasks.Task GroupsModelsUpdateModelAsync (int? id, string groupModelName); - - /// - /// This call updates a model group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// Name to update - /// Task of ApiResponse - System.Threading.Tasks.Task> GroupsModelsUpdateModelAsyncWithHttpInfo (int? id, string groupModelName); - /// - /// This call adds new group model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data of group model - /// Task of void - System.Threading.Tasks.Task GroupsModelsWriteGroupModelAsync (GroupModelDTO groupModelDto); - - /// - /// This call adds new group model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data of group model - /// Task of ApiResponse - System.Threading.Tasks.Task> GroupsModelsWriteGroupModelAsyncWithHttpInfo (GroupModelDTO groupModelDto); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class GroupsModelsApi : IGroupsModelsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public GroupsModelsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public GroupsModelsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes a group model - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// - public void GroupsModelsDeleteGroupModel (int? id) - { - GroupsModelsDeleteGroupModelWithHttpInfo(id); - } - - /// - /// This call deletes a group model - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// ApiResponse of Object(void) - public ApiResponse GroupsModelsDeleteGroupModelWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling GroupsModelsApi->GroupsModelsDeleteGroupModel"); - - var localVarPath = "/api/ModelsGroups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsModelsDeleteGroupModel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a group model - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// Task of void - public async System.Threading.Tasks.Task GroupsModelsDeleteGroupModelAsync (int? id) - { - await GroupsModelsDeleteGroupModelAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes a group model - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// Task of ApiResponse - public async System.Threading.Tasks.Task> GroupsModelsDeleteGroupModelAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling GroupsModelsApi->GroupsModelsDeleteGroupModel"); - - var localVarPath = "/api/ModelsGroups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsModelsDeleteGroupModel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the groups models on user connected - /// - /// Thrown when fails to make API call - /// List<GroupModelDTO> - public List GroupsModelsGetGroupsModels () - { - ApiResponse> localVarResponse = GroupsModelsGetGroupsModelsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the groups models on user connected - /// - /// Thrown when fails to make API call - /// ApiResponse of List<GroupModelDTO> - public ApiResponse< List > GroupsModelsGetGroupsModelsWithHttpInfo () - { - - var localVarPath = "/api/ModelsGroups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsModelsGetGroupsModels", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the groups models on user connected - /// - /// Thrown when fails to make API call - /// Task of List<GroupModelDTO> - public async System.Threading.Tasks.Task> GroupsModelsGetGroupsModelsAsync () - { - ApiResponse> localVarResponse = await GroupsModelsGetGroupsModelsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the groups models on user connected - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<GroupModelDTO>) - public async System.Threading.Tasks.Task>> GroupsModelsGetGroupsModelsAsyncWithHttpInfo () - { - - var localVarPath = "/api/ModelsGroups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsModelsGetGroupsModels", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call updates a model group - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// Name to update - /// - public void GroupsModelsUpdateModel (int? id, string groupModelName) - { - GroupsModelsUpdateModelWithHttpInfo(id, groupModelName); - } - - /// - /// This call updates a model group - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// Name to update - /// ApiResponse of Object(void) - public ApiResponse GroupsModelsUpdateModelWithHttpInfo (int? id, string groupModelName) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling GroupsModelsApi->GroupsModelsUpdateModel"); - // verify the required parameter 'groupModelName' is set - if (groupModelName == null) - throw new ApiException(400, "Missing required parameter 'groupModelName' when calling GroupsModelsApi->GroupsModelsUpdateModel"); - - var localVarPath = "/api/ModelsGroups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (groupModelName != null && groupModelName.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(groupModelName); // http body (model) parameter - } - else - { - localVarPostBody = groupModelName; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsModelsUpdateModel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates a model group - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// Name to update - /// Task of void - public async System.Threading.Tasks.Task GroupsModelsUpdateModelAsync (int? id, string groupModelName) - { - await GroupsModelsUpdateModelAsyncWithHttpInfo(id, groupModelName); - - } - - /// - /// This call updates a model group - /// - /// Thrown when fails to make API call - /// Identifier of the group model - /// Name to update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> GroupsModelsUpdateModelAsyncWithHttpInfo (int? id, string groupModelName) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling GroupsModelsApi->GroupsModelsUpdateModel"); - // verify the required parameter 'groupModelName' is set - if (groupModelName == null) - throw new ApiException(400, "Missing required parameter 'groupModelName' when calling GroupsModelsApi->GroupsModelsUpdateModel"); - - var localVarPath = "/api/ModelsGroups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (groupModelName != null && groupModelName.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(groupModelName); // http body (model) parameter - } - else - { - localVarPostBody = groupModelName; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsModelsUpdateModel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds new group model - /// - /// Thrown when fails to make API call - /// Data of group model - /// - public void GroupsModelsWriteGroupModel (GroupModelDTO groupModelDto) - { - GroupsModelsWriteGroupModelWithHttpInfo(groupModelDto); - } - - /// - /// This call adds new group model - /// - /// Thrown when fails to make API call - /// Data of group model - /// ApiResponse of Object(void) - public ApiResponse GroupsModelsWriteGroupModelWithHttpInfo (GroupModelDTO groupModelDto) - { - // verify the required parameter 'groupModelDto' is set - if (groupModelDto == null) - throw new ApiException(400, "Missing required parameter 'groupModelDto' when calling GroupsModelsApi->GroupsModelsWriteGroupModel"); - - var localVarPath = "/api/ModelsGroups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (groupModelDto != null && groupModelDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(groupModelDto); // http body (model) parameter - } - else - { - localVarPostBody = groupModelDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsModelsWriteGroupModel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds new group model - /// - /// Thrown when fails to make API call - /// Data of group model - /// Task of void - public async System.Threading.Tasks.Task GroupsModelsWriteGroupModelAsync (GroupModelDTO groupModelDto) - { - await GroupsModelsWriteGroupModelAsyncWithHttpInfo(groupModelDto); - - } - - /// - /// This call adds new group model - /// - /// Thrown when fails to make API call - /// Data of group model - /// Task of ApiResponse - public async System.Threading.Tasks.Task> GroupsModelsWriteGroupModelAsyncWithHttpInfo (GroupModelDTO groupModelDto) - { - // verify the required parameter 'groupModelDto' is set - if (groupModelDto == null) - throw new ApiException(400, "Missing required parameter 'groupModelDto' when calling GroupsModelsApi->GroupsModelsWriteGroupModel"); - - var localVarPath = "/api/ModelsGroups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (groupModelDto != null && groupModelDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(groupModelDto); // http body (model) parameter - } - else - { - localVarPostBody = groupModelDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsModelsWriteGroupModel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/IxServicesApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/IxServicesApi.cs deleted file mode 100644 index 64c3ff8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/IxServicesApi.cs +++ /dev/null @@ -1,3449 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IIxServicesApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call set approved a document to IX-FE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// - void IxServicesApprove (int? docnumber); - - /// - /// This call set approved a document to IX-FE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// ApiResponse of Object(void) - ApiResponse IxServicesApproveWithHttpInfo (int? docnumber); - /// - /// This method return the possibility for user to delete a accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the accumulation package - /// AccumulationPackageDeleteStatus - AccumulationPackageDeleteStatus IxServicesCanDeleteAccumulationPackage (int? accumulationPackageId); - - /// - /// This method return the possibility for user to delete a accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the accumulation package - /// ApiResponse of AccumulationPackageDeleteStatus - ApiResponse IxServicesCanDeleteAccumulationPackageWithHttpInfo (int? accumulationPackageId); - /// - /// This method return the possibility for user to delete a document in an accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// AccumulationPackageDocumentDeleteStatus - AccumulationPackageDocumentDeleteStatus IxServicesCanDeleteAccumulationPackageDocument (int? accumulationPackageDocumentId); - - /// - /// This method return the possibility for user to delete a document in an accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// ApiResponse of AccumulationPackageDocumentDeleteStatus - ApiResponse IxServicesCanDeleteAccumulationPackageDocumentWithHttpInfo (int? accumulationPackageDocumentId); - /// - /// This method deletes a accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the package - /// - void IxServicesDeleteAccumulationPackage (int? accumulationPackageId); - - /// - /// This method deletes a accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the package - /// ApiResponse of Object(void) - ApiResponse IxServicesDeleteAccumulationPackageWithHttpInfo (int? accumulationPackageId); - /// - /// This method deletes a document in an accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the document - /// - void IxServicesDeleteAccumulationPackageDocument (int? accumulationPackageDocumentId); - - /// - /// This method deletes a document in an accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the document - /// ApiResponse of Object(void) - ApiResponse IxServicesDeleteAccumulationPackageDocumentWithHttpInfo (int? accumulationPackageDocumentId); - /// - /// Detach the accumulation package from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void IxServicesDetachAccumulationPackage (int? accumulationPackageId); - - /// - /// Detach the accumulation package from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse IxServicesDetachAccumulationPackageWithHttpInfo (int? accumulationPackageId); - /// - /// Detach the document from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// - void IxServicesDetachAccumulationPackageDocument (int? accumulationPackageDocumentId); - - /// - /// Detach the document from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// ApiResponse of Object(void) - ApiResponse IxServicesDetachAccumulationPackageDocumentWithHttpInfo (int? accumulationPackageDocumentId); - /// - /// This call return the status of the validations for accumulation package documents in a range of date - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Start date - /// End date - /// List<AccumulationPackageDocumentValidationDTO> - List IxServicesGetAccumulationPackageDocumentValidationByDate (DateTime? startDate, DateTime? endDate); - - /// - /// This call return the status of the validations for accumulation package documents in a range of date - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Start date - /// End date - /// ApiResponse of List<AccumulationPackageDocumentValidationDTO> - ApiResponse> IxServicesGetAccumulationPackageDocumentValidationByDateWithHttpInfo (DateTime? startDate, DateTime? endDate); - /// - /// This method return the accumulation packages contained in IX-CE services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the business unit - /// List<AccumulationPackageDTO> - List IxServicesGetByAoo (string businessUnitCode); - - /// - /// This method return the accumulation packages contained in IX-CE services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the business unit - /// ApiResponse of List<AccumulationPackageDTO> - ApiResponse> IxServicesGetByAooWithHttpInfo (string businessUnitCode); - /// - /// This method return the document contained in IX-CE accumulation packages - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the accumulation package - /// List<IxCeDocumentDTO> - List IxServicesGetDocumentsByAccumulationPackageId (int? accumulationPackageId); - - /// - /// This method return the document contained in IX-CE accumulation packages - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the accumulation package - /// ApiResponse of List<IxCeDocumentDTO> - ApiResponse> IxServicesGetDocumentsByAccumulationPackageIdWithHttpInfo (int? accumulationPackageId); - /// - /// This call returns all the information about a document sent to IX-CE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// List<IxCeDocumentCompleteDTO> - List IxServicesGetIxCeCompleteDetailsByDocnumber (int? docnumber); - - /// - /// This call returns all the information about a document sent to IX-CE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// ApiResponse of List<IxCeDocumentCompleteDTO> - ApiResponse> IxServicesGetIxCeCompleteDetailsByDocnumberWithHttpInfo (int? docnumber); - /// - /// This call returns all the information about a document sent to IX-FE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// List<IxFeDocumentCompleteDTO> - List IxServicesGetIxFeCompleteDetailsByDocnumber (int? docnumber); - - /// - /// This call returns all the information about a document sent to IX-FE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// ApiResponse of List<IxFeDocumentCompleteDTO> - ApiResponse> IxServicesGetIxFeCompleteDetailsByDocnumberWithHttpInfo (int? docnumber); - /// - /// This call set rejected a document to IX-FE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// - /// - void IxServicesReject (int? docnumber, string reason); - - /// - /// This call set rejected a document to IX-FE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// - /// ApiResponse of Object(void) - ApiResponse IxServicesRejectWithHttpInfo (int? docnumber, string reason); - /// - /// This call send an outcome value for a docnumber (for invoice from IX-CE service) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void IxServicesSendOutcomeByDocnumber (SendOutcomeRequestDTO request); - - /// - /// This call send an outcome value for a docnumber (for invoice from IX-CE service) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse IxServicesSendOutcomeByDocnumberWithHttpInfo (SendOutcomeRequestDTO request); - /// - /// This call send docnumbers to IX-FE services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// IxFeSendResponseDTO - IxFeSendResponseDTO IxServicesSendToIx (IxFeSendRequestDTO request); - - /// - /// This call send docnumbers to IX-FE services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of IxFeSendResponseDTO - ApiResponse IxServicesSendToIxWithHttpInfo (IxFeSendRequestDTO request); - /// - /// This call send docnumbers to IX-CE services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void IxServicesSendToIxCe (SendToIxCeRequestDTO request); - - /// - /// This call send docnumbers to IX-CE services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse IxServicesSendToIxCeWithHttpInfo (SendToIxCeRequestDTO request); - /// - /// Checks is the docnumber list must be signed before being sent to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// bool? - bool? IxServicesSendToIxFeSignRequired (SendToIxFeSignRequiredRequestDto request); - - /// - /// Checks is the docnumber list must be signed before being sent to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of bool? - ApiResponse IxServicesSendToIxFeSignRequiredWithHttpInfo (SendToIxFeSignRequiredRequestDto request); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call set approved a document to IX-FE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// Task of void - System.Threading.Tasks.Task IxServicesApproveAsync (int? docnumber); - - /// - /// This call set approved a document to IX-FE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// Task of ApiResponse - System.Threading.Tasks.Task> IxServicesApproveAsyncWithHttpInfo (int? docnumber); - /// - /// This method return the possibility for user to delete a accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the accumulation package - /// Task of AccumulationPackageDeleteStatus - System.Threading.Tasks.Task IxServicesCanDeleteAccumulationPackageAsync (int? accumulationPackageId); - - /// - /// This method return the possibility for user to delete a accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the accumulation package - /// Task of ApiResponse (AccumulationPackageDeleteStatus) - System.Threading.Tasks.Task> IxServicesCanDeleteAccumulationPackageAsyncWithHttpInfo (int? accumulationPackageId); - /// - /// This method return the possibility for user to delete a document in an accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// Task of AccumulationPackageDocumentDeleteStatus - System.Threading.Tasks.Task IxServicesCanDeleteAccumulationPackageDocumentAsync (int? accumulationPackageDocumentId); - - /// - /// This method return the possibility for user to delete a document in an accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// Task of ApiResponse (AccumulationPackageDocumentDeleteStatus) - System.Threading.Tasks.Task> IxServicesCanDeleteAccumulationPackageDocumentAsyncWithHttpInfo (int? accumulationPackageDocumentId); - /// - /// This method deletes a accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the package - /// Task of void - System.Threading.Tasks.Task IxServicesDeleteAccumulationPackageAsync (int? accumulationPackageId); - - /// - /// This method deletes a accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the package - /// Task of ApiResponse - System.Threading.Tasks.Task> IxServicesDeleteAccumulationPackageAsyncWithHttpInfo (int? accumulationPackageId); - /// - /// This method deletes a document in an accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the document - /// Task of void - System.Threading.Tasks.Task IxServicesDeleteAccumulationPackageDocumentAsync (int? accumulationPackageDocumentId); - - /// - /// This method deletes a document in an accumulation package - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the document - /// Task of ApiResponse - System.Threading.Tasks.Task> IxServicesDeleteAccumulationPackageDocumentAsyncWithHttpInfo (int? accumulationPackageDocumentId); - /// - /// Detach the accumulation package from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task IxServicesDetachAccumulationPackageAsync (int? accumulationPackageId); - - /// - /// Detach the accumulation package from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> IxServicesDetachAccumulationPackageAsyncWithHttpInfo (int? accumulationPackageId); - /// - /// Detach the document from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// Task of void - System.Threading.Tasks.Task IxServicesDetachAccumulationPackageDocumentAsync (int? accumulationPackageDocumentId); - - /// - /// Detach the document from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// Task of ApiResponse - System.Threading.Tasks.Task> IxServicesDetachAccumulationPackageDocumentAsyncWithHttpInfo (int? accumulationPackageDocumentId); - /// - /// This call return the status of the validations for accumulation package documents in a range of date - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Start date - /// End date - /// Task of List<AccumulationPackageDocumentValidationDTO> - System.Threading.Tasks.Task> IxServicesGetAccumulationPackageDocumentValidationByDateAsync (DateTime? startDate, DateTime? endDate); - - /// - /// This call return the status of the validations for accumulation package documents in a range of date - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Start date - /// End date - /// Task of ApiResponse (List<AccumulationPackageDocumentValidationDTO>) - System.Threading.Tasks.Task>> IxServicesGetAccumulationPackageDocumentValidationByDateAsyncWithHttpInfo (DateTime? startDate, DateTime? endDate); - /// - /// This method return the accumulation packages contained in IX-CE services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the business unit - /// Task of List<AccumulationPackageDTO> - System.Threading.Tasks.Task> IxServicesGetByAooAsync (string businessUnitCode); - - /// - /// This method return the accumulation packages contained in IX-CE services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the business unit - /// Task of ApiResponse (List<AccumulationPackageDTO>) - System.Threading.Tasks.Task>> IxServicesGetByAooAsyncWithHttpInfo (string businessUnitCode); - /// - /// This method return the document contained in IX-CE accumulation packages - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the accumulation package - /// Task of List<IxCeDocumentDTO> - System.Threading.Tasks.Task> IxServicesGetDocumentsByAccumulationPackageIdAsync (int? accumulationPackageId); - - /// - /// This method return the document contained in IX-CE accumulation packages - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The code of the accumulation package - /// Task of ApiResponse (List<IxCeDocumentDTO>) - System.Threading.Tasks.Task>> IxServicesGetDocumentsByAccumulationPackageIdAsyncWithHttpInfo (int? accumulationPackageId); - /// - /// This call returns all the information about a document sent to IX-CE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// Task of List<IxCeDocumentCompleteDTO> - System.Threading.Tasks.Task> IxServicesGetIxCeCompleteDetailsByDocnumberAsync (int? docnumber); - - /// - /// This call returns all the information about a document sent to IX-CE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// Task of ApiResponse (List<IxCeDocumentCompleteDTO>) - System.Threading.Tasks.Task>> IxServicesGetIxCeCompleteDetailsByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call returns all the information about a document sent to IX-FE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// Task of List<IxFeDocumentCompleteDTO> - System.Threading.Tasks.Task> IxServicesGetIxFeCompleteDetailsByDocnumberAsync (int? docnumber); - - /// - /// This call returns all the information about a document sent to IX-FE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// Task of ApiResponse (List<IxFeDocumentCompleteDTO>) - System.Threading.Tasks.Task>> IxServicesGetIxFeCompleteDetailsByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call set rejected a document to IX-FE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// - /// Task of void - System.Threading.Tasks.Task IxServicesRejectAsync (int? docnumber, string reason); - - /// - /// This call set rejected a document to IX-FE Service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> IxServicesRejectAsyncWithHttpInfo (int? docnumber, string reason); - /// - /// This call send an outcome value for a docnumber (for invoice from IX-CE service) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task IxServicesSendOutcomeByDocnumberAsync (SendOutcomeRequestDTO request); - - /// - /// This call send an outcome value for a docnumber (for invoice from IX-CE service) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> IxServicesSendOutcomeByDocnumberAsyncWithHttpInfo (SendOutcomeRequestDTO request); - /// - /// This call send docnumbers to IX-FE services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of IxFeSendResponseDTO - System.Threading.Tasks.Task IxServicesSendToIxAsync (IxFeSendRequestDTO request); - - /// - /// This call send docnumbers to IX-FE services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (IxFeSendResponseDTO) - System.Threading.Tasks.Task> IxServicesSendToIxAsyncWithHttpInfo (IxFeSendRequestDTO request); - /// - /// This call send docnumbers to IX-CE services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task IxServicesSendToIxCeAsync (SendToIxCeRequestDTO request); - - /// - /// This call send docnumbers to IX-CE services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> IxServicesSendToIxCeAsyncWithHttpInfo (SendToIxCeRequestDTO request); - /// - /// Checks is the docnumber list must be signed before being sent to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of bool? - System.Threading.Tasks.Task IxServicesSendToIxFeSignRequiredAsync (SendToIxFeSignRequiredRequestDto request); - - /// - /// Checks is the docnumber list must be signed before being sent to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> IxServicesSendToIxFeSignRequiredAsyncWithHttpInfo (SendToIxFeSignRequiredRequestDto request); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class IxServicesApi : IIxServicesApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public IxServicesApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public IxServicesApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call set approved a document to IX-FE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// - public void IxServicesApprove (int? docnumber) - { - IxServicesApproveWithHttpInfo(docnumber); - } - - /// - /// This call set approved a document to IX-FE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// ApiResponse of Object(void) - public ApiResponse IxServicesApproveWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling IxServicesApi->IxServicesApprove"); - - var localVarPath = "/api/IxServices/FE/{docnumber}/Approve"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesApprove", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call set approved a document to IX-FE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// Task of void - public async System.Threading.Tasks.Task IxServicesApproveAsync (int? docnumber) - { - await IxServicesApproveAsyncWithHttpInfo(docnumber); - - } - - /// - /// This call set approved a document to IX-FE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxServicesApproveAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling IxServicesApi->IxServicesApprove"); - - var localVarPath = "/api/IxServices/FE/{docnumber}/Approve"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesApprove", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method return the possibility for user to delete a accumulation package - /// - /// Thrown when fails to make API call - /// The id of the accumulation package - /// AccumulationPackageDeleteStatus - public AccumulationPackageDeleteStatus IxServicesCanDeleteAccumulationPackage (int? accumulationPackageId) - { - ApiResponse localVarResponse = IxServicesCanDeleteAccumulationPackageWithHttpInfo(accumulationPackageId); - return localVarResponse.Data; - } - - /// - /// This method return the possibility for user to delete a accumulation package - /// - /// Thrown when fails to make API call - /// The id of the accumulation package - /// ApiResponse of AccumulationPackageDeleteStatus - public ApiResponse< AccumulationPackageDeleteStatus > IxServicesCanDeleteAccumulationPackageWithHttpInfo (int? accumulationPackageId) - { - // verify the required parameter 'accumulationPackageId' is set - if (accumulationPackageId == null) - throw new ApiException(400, "Missing required parameter 'accumulationPackageId' when calling IxServicesApi->IxServicesCanDeleteAccumulationPackage"); - - var localVarPath = "/api/IxServices/{accumulationPackageId}/CanDelete"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (accumulationPackageId != null) localVarPathParams.Add("accumulationPackageId", this.Configuration.ApiClient.ParameterToString(accumulationPackageId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesCanDeleteAccumulationPackage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AccumulationPackageDeleteStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccumulationPackageDeleteStatus))); - } - - /// - /// This method return the possibility for user to delete a accumulation package - /// - /// Thrown when fails to make API call - /// The id of the accumulation package - /// Task of AccumulationPackageDeleteStatus - public async System.Threading.Tasks.Task IxServicesCanDeleteAccumulationPackageAsync (int? accumulationPackageId) - { - ApiResponse localVarResponse = await IxServicesCanDeleteAccumulationPackageAsyncWithHttpInfo(accumulationPackageId); - return localVarResponse.Data; - - } - - /// - /// This method return the possibility for user to delete a accumulation package - /// - /// Thrown when fails to make API call - /// The id of the accumulation package - /// Task of ApiResponse (AccumulationPackageDeleteStatus) - public async System.Threading.Tasks.Task> IxServicesCanDeleteAccumulationPackageAsyncWithHttpInfo (int? accumulationPackageId) - { - // verify the required parameter 'accumulationPackageId' is set - if (accumulationPackageId == null) - throw new ApiException(400, "Missing required parameter 'accumulationPackageId' when calling IxServicesApi->IxServicesCanDeleteAccumulationPackage"); - - var localVarPath = "/api/IxServices/{accumulationPackageId}/CanDelete"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (accumulationPackageId != null) localVarPathParams.Add("accumulationPackageId", this.Configuration.ApiClient.ParameterToString(accumulationPackageId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesCanDeleteAccumulationPackage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AccumulationPackageDeleteStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccumulationPackageDeleteStatus))); - } - - /// - /// This method return the possibility for user to delete a document in an accumulation package - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// AccumulationPackageDocumentDeleteStatus - public AccumulationPackageDocumentDeleteStatus IxServicesCanDeleteAccumulationPackageDocument (int? accumulationPackageDocumentId) - { - ApiResponse localVarResponse = IxServicesCanDeleteAccumulationPackageDocumentWithHttpInfo(accumulationPackageDocumentId); - return localVarResponse.Data; - } - - /// - /// This method return the possibility for user to delete a document in an accumulation package - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// ApiResponse of AccumulationPackageDocumentDeleteStatus - public ApiResponse< AccumulationPackageDocumentDeleteStatus > IxServicesCanDeleteAccumulationPackageDocumentWithHttpInfo (int? accumulationPackageDocumentId) - { - // verify the required parameter 'accumulationPackageDocumentId' is set - if (accumulationPackageDocumentId == null) - throw new ApiException(400, "Missing required parameter 'accumulationPackageDocumentId' when calling IxServicesApi->IxServicesCanDeleteAccumulationPackageDocument"); - - var localVarPath = "/api/IxServices/Document/{accumulationPackageDocumentId}/CanDelete"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (accumulationPackageDocumentId != null) localVarPathParams.Add("accumulationPackageDocumentId", this.Configuration.ApiClient.ParameterToString(accumulationPackageDocumentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesCanDeleteAccumulationPackageDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AccumulationPackageDocumentDeleteStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccumulationPackageDocumentDeleteStatus))); - } - - /// - /// This method return the possibility for user to delete a document in an accumulation package - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// Task of AccumulationPackageDocumentDeleteStatus - public async System.Threading.Tasks.Task IxServicesCanDeleteAccumulationPackageDocumentAsync (int? accumulationPackageDocumentId) - { - ApiResponse localVarResponse = await IxServicesCanDeleteAccumulationPackageDocumentAsyncWithHttpInfo(accumulationPackageDocumentId); - return localVarResponse.Data; - - } - - /// - /// This method return the possibility for user to delete a document in an accumulation package - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// Task of ApiResponse (AccumulationPackageDocumentDeleteStatus) - public async System.Threading.Tasks.Task> IxServicesCanDeleteAccumulationPackageDocumentAsyncWithHttpInfo (int? accumulationPackageDocumentId) - { - // verify the required parameter 'accumulationPackageDocumentId' is set - if (accumulationPackageDocumentId == null) - throw new ApiException(400, "Missing required parameter 'accumulationPackageDocumentId' when calling IxServicesApi->IxServicesCanDeleteAccumulationPackageDocument"); - - var localVarPath = "/api/IxServices/Document/{accumulationPackageDocumentId}/CanDelete"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (accumulationPackageDocumentId != null) localVarPathParams.Add("accumulationPackageDocumentId", this.Configuration.ApiClient.ParameterToString(accumulationPackageDocumentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesCanDeleteAccumulationPackageDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AccumulationPackageDocumentDeleteStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccumulationPackageDocumentDeleteStatus))); - } - - /// - /// This method deletes a accumulation package - /// - /// Thrown when fails to make API call - /// The id of the package - /// - public void IxServicesDeleteAccumulationPackage (int? accumulationPackageId) - { - IxServicesDeleteAccumulationPackageWithHttpInfo(accumulationPackageId); - } - - /// - /// This method deletes a accumulation package - /// - /// Thrown when fails to make API call - /// The id of the package - /// ApiResponse of Object(void) - public ApiResponse IxServicesDeleteAccumulationPackageWithHttpInfo (int? accumulationPackageId) - { - // verify the required parameter 'accumulationPackageId' is set - if (accumulationPackageId == null) - throw new ApiException(400, "Missing required parameter 'accumulationPackageId' when calling IxServicesApi->IxServicesDeleteAccumulationPackage"); - - var localVarPath = "/api/IxServices/{accumulationPackageId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (accumulationPackageId != null) localVarPathParams.Add("accumulationPackageId", this.Configuration.ApiClient.ParameterToString(accumulationPackageId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesDeleteAccumulationPackage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method deletes a accumulation package - /// - /// Thrown when fails to make API call - /// The id of the package - /// Task of void - public async System.Threading.Tasks.Task IxServicesDeleteAccumulationPackageAsync (int? accumulationPackageId) - { - await IxServicesDeleteAccumulationPackageAsyncWithHttpInfo(accumulationPackageId); - - } - - /// - /// This method deletes a accumulation package - /// - /// Thrown when fails to make API call - /// The id of the package - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxServicesDeleteAccumulationPackageAsyncWithHttpInfo (int? accumulationPackageId) - { - // verify the required parameter 'accumulationPackageId' is set - if (accumulationPackageId == null) - throw new ApiException(400, "Missing required parameter 'accumulationPackageId' when calling IxServicesApi->IxServicesDeleteAccumulationPackage"); - - var localVarPath = "/api/IxServices/{accumulationPackageId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (accumulationPackageId != null) localVarPathParams.Add("accumulationPackageId", this.Configuration.ApiClient.ParameterToString(accumulationPackageId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesDeleteAccumulationPackage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method deletes a document in an accumulation package - /// - /// Thrown when fails to make API call - /// The id of the document - /// - public void IxServicesDeleteAccumulationPackageDocument (int? accumulationPackageDocumentId) - { - IxServicesDeleteAccumulationPackageDocumentWithHttpInfo(accumulationPackageDocumentId); - } - - /// - /// This method deletes a document in an accumulation package - /// - /// Thrown when fails to make API call - /// The id of the document - /// ApiResponse of Object(void) - public ApiResponse IxServicesDeleteAccumulationPackageDocumentWithHttpInfo (int? accumulationPackageDocumentId) - { - // verify the required parameter 'accumulationPackageDocumentId' is set - if (accumulationPackageDocumentId == null) - throw new ApiException(400, "Missing required parameter 'accumulationPackageDocumentId' when calling IxServicesApi->IxServicesDeleteAccumulationPackageDocument"); - - var localVarPath = "/api/IxServices/Document/{accumulationPackageDocumentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (accumulationPackageDocumentId != null) localVarPathParams.Add("accumulationPackageDocumentId", this.Configuration.ApiClient.ParameterToString(accumulationPackageDocumentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesDeleteAccumulationPackageDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method deletes a document in an accumulation package - /// - /// Thrown when fails to make API call - /// The id of the document - /// Task of void - public async System.Threading.Tasks.Task IxServicesDeleteAccumulationPackageDocumentAsync (int? accumulationPackageDocumentId) - { - await IxServicesDeleteAccumulationPackageDocumentAsyncWithHttpInfo(accumulationPackageDocumentId); - - } - - /// - /// This method deletes a document in an accumulation package - /// - /// Thrown when fails to make API call - /// The id of the document - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxServicesDeleteAccumulationPackageDocumentAsyncWithHttpInfo (int? accumulationPackageDocumentId) - { - // verify the required parameter 'accumulationPackageDocumentId' is set - if (accumulationPackageDocumentId == null) - throw new ApiException(400, "Missing required parameter 'accumulationPackageDocumentId' when calling IxServicesApi->IxServicesDeleteAccumulationPackageDocument"); - - var localVarPath = "/api/IxServices/Document/{accumulationPackageDocumentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (accumulationPackageDocumentId != null) localVarPathParams.Add("accumulationPackageDocumentId", this.Configuration.ApiClient.ParameterToString(accumulationPackageDocumentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesDeleteAccumulationPackageDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Detach the accumulation package from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// Thrown when fails to make API call - /// - /// - public void IxServicesDetachAccumulationPackage (int? accumulationPackageId) - { - IxServicesDetachAccumulationPackageWithHttpInfo(accumulationPackageId); - } - - /// - /// Detach the accumulation package from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse IxServicesDetachAccumulationPackageWithHttpInfo (int? accumulationPackageId) - { - // verify the required parameter 'accumulationPackageId' is set - if (accumulationPackageId == null) - throw new ApiException(400, "Missing required parameter 'accumulationPackageId' when calling IxServicesApi->IxServicesDetachAccumulationPackage"); - - var localVarPath = "/api/IxServices/{accumulationPackageId}/Detach"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (accumulationPackageId != null) localVarPathParams.Add("accumulationPackageId", this.Configuration.ApiClient.ParameterToString(accumulationPackageId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesDetachAccumulationPackage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Detach the accumulation package from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task IxServicesDetachAccumulationPackageAsync (int? accumulationPackageId) - { - await IxServicesDetachAccumulationPackageAsyncWithHttpInfo(accumulationPackageId); - - } - - /// - /// Detach the accumulation package from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxServicesDetachAccumulationPackageAsyncWithHttpInfo (int? accumulationPackageId) - { - // verify the required parameter 'accumulationPackageId' is set - if (accumulationPackageId == null) - throw new ApiException(400, "Missing required parameter 'accumulationPackageId' when calling IxServicesApi->IxServicesDetachAccumulationPackage"); - - var localVarPath = "/api/IxServices/{accumulationPackageId}/Detach"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (accumulationPackageId != null) localVarPathParams.Add("accumulationPackageId", this.Configuration.ApiClient.ParameterToString(accumulationPackageId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesDetachAccumulationPackage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Detach the document from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// - public void IxServicesDetachAccumulationPackageDocument (int? accumulationPackageDocumentId) - { - IxServicesDetachAccumulationPackageDocumentWithHttpInfo(accumulationPackageDocumentId); - } - - /// - /// Detach the document from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// ApiResponse of Object(void) - public ApiResponse IxServicesDetachAccumulationPackageDocumentWithHttpInfo (int? accumulationPackageDocumentId) - { - // verify the required parameter 'accumulationPackageDocumentId' is set - if (accumulationPackageDocumentId == null) - throw new ApiException(400, "Missing required parameter 'accumulationPackageDocumentId' when calling IxServicesApi->IxServicesDetachAccumulationPackageDocument"); - - var localVarPath = "/api/IxServices/Document/{accumulationPackageDocumentId}/Detach"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (accumulationPackageDocumentId != null) localVarPathParams.Add("accumulationPackageDocumentId", this.Configuration.ApiClient.ParameterToString(accumulationPackageDocumentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesDetachAccumulationPackageDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Detach the document from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// Task of void - public async System.Threading.Tasks.Task IxServicesDetachAccumulationPackageDocumentAsync (int? accumulationPackageDocumentId) - { - await IxServicesDetachAccumulationPackageDocumentAsyncWithHttpInfo(accumulationPackageDocumentId); - - } - - /// - /// Detach the document from the WebSuite service. This call is required if the call CanDelete returns DetachRequired = 2 - /// - /// Thrown when fails to make API call - /// The code of the accumulation package document - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxServicesDetachAccumulationPackageDocumentAsyncWithHttpInfo (int? accumulationPackageDocumentId) - { - // verify the required parameter 'accumulationPackageDocumentId' is set - if (accumulationPackageDocumentId == null) - throw new ApiException(400, "Missing required parameter 'accumulationPackageDocumentId' when calling IxServicesApi->IxServicesDetachAccumulationPackageDocument"); - - var localVarPath = "/api/IxServices/Document/{accumulationPackageDocumentId}/Detach"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (accumulationPackageDocumentId != null) localVarPathParams.Add("accumulationPackageDocumentId", this.Configuration.ApiClient.ParameterToString(accumulationPackageDocumentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesDetachAccumulationPackageDocument", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call return the status of the validations for accumulation package documents in a range of date - /// - /// Thrown when fails to make API call - /// Start date - /// End date - /// List<AccumulationPackageDocumentValidationDTO> - public List IxServicesGetAccumulationPackageDocumentValidationByDate (DateTime? startDate, DateTime? endDate) - { - ApiResponse> localVarResponse = IxServicesGetAccumulationPackageDocumentValidationByDateWithHttpInfo(startDate, endDate); - return localVarResponse.Data; - } - - /// - /// This call return the status of the validations for accumulation package documents in a range of date - /// - /// Thrown when fails to make API call - /// Start date - /// End date - /// ApiResponse of List<AccumulationPackageDocumentValidationDTO> - public ApiResponse< List > IxServicesGetAccumulationPackageDocumentValidationByDateWithHttpInfo (DateTime? startDate, DateTime? endDate) - { - // verify the required parameter 'startDate' is set - if (startDate == null) - throw new ApiException(400, "Missing required parameter 'startDate' when calling IxServicesApi->IxServicesGetAccumulationPackageDocumentValidationByDate"); - // verify the required parameter 'endDate' is set - if (endDate == null) - throw new ApiException(400, "Missing required parameter 'endDate' when calling IxServicesApi->IxServicesGetAccumulationPackageDocumentValidationByDate"); - - var localVarPath = "/api/IxServices/Validation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (startDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "startDate", startDate)); // query parameter - if (endDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "endDate", endDate)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesGetAccumulationPackageDocumentValidationByDate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call return the status of the validations for accumulation package documents in a range of date - /// - /// Thrown when fails to make API call - /// Start date - /// End date - /// Task of List<AccumulationPackageDocumentValidationDTO> - public async System.Threading.Tasks.Task> IxServicesGetAccumulationPackageDocumentValidationByDateAsync (DateTime? startDate, DateTime? endDate) - { - ApiResponse> localVarResponse = await IxServicesGetAccumulationPackageDocumentValidationByDateAsyncWithHttpInfo(startDate, endDate); - return localVarResponse.Data; - - } - - /// - /// This call return the status of the validations for accumulation package documents in a range of date - /// - /// Thrown when fails to make API call - /// Start date - /// End date - /// Task of ApiResponse (List<AccumulationPackageDocumentValidationDTO>) - public async System.Threading.Tasks.Task>> IxServicesGetAccumulationPackageDocumentValidationByDateAsyncWithHttpInfo (DateTime? startDate, DateTime? endDate) - { - // verify the required parameter 'startDate' is set - if (startDate == null) - throw new ApiException(400, "Missing required parameter 'startDate' when calling IxServicesApi->IxServicesGetAccumulationPackageDocumentValidationByDate"); - // verify the required parameter 'endDate' is set - if (endDate == null) - throw new ApiException(400, "Missing required parameter 'endDate' when calling IxServicesApi->IxServicesGetAccumulationPackageDocumentValidationByDate"); - - var localVarPath = "/api/IxServices/Validation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (startDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "startDate", startDate)); // query parameter - if (endDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "endDate", endDate)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesGetAccumulationPackageDocumentValidationByDate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method return the accumulation packages contained in IX-CE services - /// - /// Thrown when fails to make API call - /// The code of the business unit - /// List<AccumulationPackageDTO> - public List IxServicesGetByAoo (string businessUnitCode) - { - ApiResponse> localVarResponse = IxServicesGetByAooWithHttpInfo(businessUnitCode); - return localVarResponse.Data; - } - - /// - /// This method return the accumulation packages contained in IX-CE services - /// - /// Thrown when fails to make API call - /// The code of the business unit - /// ApiResponse of List<AccumulationPackageDTO> - public ApiResponse< List > IxServicesGetByAooWithHttpInfo (string businessUnitCode) - { - // verify the required parameter 'businessUnitCode' is set - if (businessUnitCode == null) - throw new ApiException(400, "Missing required parameter 'businessUnitCode' when calling IxServicesApi->IxServicesGetByAoo"); - - var localVarPath = "/api/IxServices"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesGetByAoo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method return the accumulation packages contained in IX-CE services - /// - /// Thrown when fails to make API call - /// The code of the business unit - /// Task of List<AccumulationPackageDTO> - public async System.Threading.Tasks.Task> IxServicesGetByAooAsync (string businessUnitCode) - { - ApiResponse> localVarResponse = await IxServicesGetByAooAsyncWithHttpInfo(businessUnitCode); - return localVarResponse.Data; - - } - - /// - /// This method return the accumulation packages contained in IX-CE services - /// - /// Thrown when fails to make API call - /// The code of the business unit - /// Task of ApiResponse (List<AccumulationPackageDTO>) - public async System.Threading.Tasks.Task>> IxServicesGetByAooAsyncWithHttpInfo (string businessUnitCode) - { - // verify the required parameter 'businessUnitCode' is set - if (businessUnitCode == null) - throw new ApiException(400, "Missing required parameter 'businessUnitCode' when calling IxServicesApi->IxServicesGetByAoo"); - - var localVarPath = "/api/IxServices"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesGetByAoo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method return the document contained in IX-CE accumulation packages - /// - /// Thrown when fails to make API call - /// The code of the accumulation package - /// List<IxCeDocumentDTO> - public List IxServicesGetDocumentsByAccumulationPackageId (int? accumulationPackageId) - { - ApiResponse> localVarResponse = IxServicesGetDocumentsByAccumulationPackageIdWithHttpInfo(accumulationPackageId); - return localVarResponse.Data; - } - - /// - /// This method return the document contained in IX-CE accumulation packages - /// - /// Thrown when fails to make API call - /// The code of the accumulation package - /// ApiResponse of List<IxCeDocumentDTO> - public ApiResponse< List > IxServicesGetDocumentsByAccumulationPackageIdWithHttpInfo (int? accumulationPackageId) - { - // verify the required parameter 'accumulationPackageId' is set - if (accumulationPackageId == null) - throw new ApiException(400, "Missing required parameter 'accumulationPackageId' when calling IxServicesApi->IxServicesGetDocumentsByAccumulationPackageId"); - - var localVarPath = "/api/IxServices/{accumulationPackageId}/Documents"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (accumulationPackageId != null) localVarPathParams.Add("accumulationPackageId", this.Configuration.ApiClient.ParameterToString(accumulationPackageId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesGetDocumentsByAccumulationPackageId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method return the document contained in IX-CE accumulation packages - /// - /// Thrown when fails to make API call - /// The code of the accumulation package - /// Task of List<IxCeDocumentDTO> - public async System.Threading.Tasks.Task> IxServicesGetDocumentsByAccumulationPackageIdAsync (int? accumulationPackageId) - { - ApiResponse> localVarResponse = await IxServicesGetDocumentsByAccumulationPackageIdAsyncWithHttpInfo(accumulationPackageId); - return localVarResponse.Data; - - } - - /// - /// This method return the document contained in IX-CE accumulation packages - /// - /// Thrown when fails to make API call - /// The code of the accumulation package - /// Task of ApiResponse (List<IxCeDocumentDTO>) - public async System.Threading.Tasks.Task>> IxServicesGetDocumentsByAccumulationPackageIdAsyncWithHttpInfo (int? accumulationPackageId) - { - // verify the required parameter 'accumulationPackageId' is set - if (accumulationPackageId == null) - throw new ApiException(400, "Missing required parameter 'accumulationPackageId' when calling IxServicesApi->IxServicesGetDocumentsByAccumulationPackageId"); - - var localVarPath = "/api/IxServices/{accumulationPackageId}/Documents"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (accumulationPackageId != null) localVarPathParams.Add("accumulationPackageId", this.Configuration.ApiClient.ParameterToString(accumulationPackageId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesGetDocumentsByAccumulationPackageId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the information about a document sent to IX-CE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// List<IxCeDocumentCompleteDTO> - public List IxServicesGetIxCeCompleteDetailsByDocnumber (int? docnumber) - { - ApiResponse> localVarResponse = IxServicesGetIxCeCompleteDetailsByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns all the information about a document sent to IX-CE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// ApiResponse of List<IxCeDocumentCompleteDTO> - public ApiResponse< List > IxServicesGetIxCeCompleteDetailsByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling IxServicesApi->IxServicesGetIxCeCompleteDetailsByDocnumber"); - - var localVarPath = "/api/IxServices/Document/{docnumber}/IxCeInfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesGetIxCeCompleteDetailsByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the information about a document sent to IX-CE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// Task of List<IxCeDocumentCompleteDTO> - public async System.Threading.Tasks.Task> IxServicesGetIxCeCompleteDetailsByDocnumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await IxServicesGetIxCeCompleteDetailsByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns all the information about a document sent to IX-CE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// Task of ApiResponse (List<IxCeDocumentCompleteDTO>) - public async System.Threading.Tasks.Task>> IxServicesGetIxCeCompleteDetailsByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling IxServicesApi->IxServicesGetIxCeCompleteDetailsByDocnumber"); - - var localVarPath = "/api/IxServices/Document/{docnumber}/IxCeInfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesGetIxCeCompleteDetailsByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the information about a document sent to IX-FE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// List<IxFeDocumentCompleteDTO> - public List IxServicesGetIxFeCompleteDetailsByDocnumber (int? docnumber) - { - ApiResponse> localVarResponse = IxServicesGetIxFeCompleteDetailsByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns all the information about a document sent to IX-FE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// ApiResponse of List<IxFeDocumentCompleteDTO> - public ApiResponse< List > IxServicesGetIxFeCompleteDetailsByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling IxServicesApi->IxServicesGetIxFeCompleteDetailsByDocnumber"); - - var localVarPath = "/api/IxServices/Document/{docnumber}/IxFeInfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesGetIxFeCompleteDetailsByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the information about a document sent to IX-FE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// Task of List<IxFeDocumentCompleteDTO> - public async System.Threading.Tasks.Task> IxServicesGetIxFeCompleteDetailsByDocnumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await IxServicesGetIxFeCompleteDetailsByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns all the information about a document sent to IX-FE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// Task of ApiResponse (List<IxFeDocumentCompleteDTO>) - public async System.Threading.Tasks.Task>> IxServicesGetIxFeCompleteDetailsByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling IxServicesApi->IxServicesGetIxFeCompleteDetailsByDocnumber"); - - var localVarPath = "/api/IxServices/Document/{docnumber}/IxFeInfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesGetIxFeCompleteDetailsByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call set rejected a document to IX-FE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// - /// - public void IxServicesReject (int? docnumber, string reason) - { - IxServicesRejectWithHttpInfo(docnumber, reason); - } - - /// - /// This call set rejected a document to IX-FE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// - /// ApiResponse of Object(void) - public ApiResponse IxServicesRejectWithHttpInfo (int? docnumber, string reason) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling IxServicesApi->IxServicesReject"); - // verify the required parameter 'reason' is set - if (reason == null) - throw new ApiException(400, "Missing required parameter 'reason' when calling IxServicesApi->IxServicesReject"); - - var localVarPath = "/api/IxServices/FE/{docnumber}/Reject"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (reason != null && reason.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(reason); // http body (model) parameter - } - else - { - localVarPostBody = reason; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesReject", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call set rejected a document to IX-FE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// - /// Task of void - public async System.Threading.Tasks.Task IxServicesRejectAsync (int? docnumber, string reason) - { - await IxServicesRejectAsyncWithHttpInfo(docnumber, reason); - - } - - /// - /// This call set rejected a document to IX-FE Service - /// - /// Thrown when fails to make API call - /// Docnumber - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxServicesRejectAsyncWithHttpInfo (int? docnumber, string reason) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling IxServicesApi->IxServicesReject"); - // verify the required parameter 'reason' is set - if (reason == null) - throw new ApiException(400, "Missing required parameter 'reason' when calling IxServicesApi->IxServicesReject"); - - var localVarPath = "/api/IxServices/FE/{docnumber}/Reject"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (reason != null && reason.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(reason); // http body (model) parameter - } - else - { - localVarPostBody = reason; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesReject", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call send an outcome value for a docnumber (for invoice from IX-CE service) - /// - /// Thrown when fails to make API call - /// - /// - public void IxServicesSendOutcomeByDocnumber (SendOutcomeRequestDTO request) - { - IxServicesSendOutcomeByDocnumberWithHttpInfo(request); - } - - /// - /// This call send an outcome value for a docnumber (for invoice from IX-CE service) - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse IxServicesSendOutcomeByDocnumberWithHttpInfo (SendOutcomeRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling IxServicesApi->IxServicesSendOutcomeByDocnumber"); - - var localVarPath = "/api/IxServices/SendOutcome"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesSendOutcomeByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call send an outcome value for a docnumber (for invoice from IX-CE service) - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task IxServicesSendOutcomeByDocnumberAsync (SendOutcomeRequestDTO request) - { - await IxServicesSendOutcomeByDocnumberAsyncWithHttpInfo(request); - - } - - /// - /// This call send an outcome value for a docnumber (for invoice from IX-CE service) - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxServicesSendOutcomeByDocnumberAsyncWithHttpInfo (SendOutcomeRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling IxServicesApi->IxServicesSendOutcomeByDocnumber"); - - var localVarPath = "/api/IxServices/SendOutcome"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesSendOutcomeByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call send docnumbers to IX-FE services - /// - /// Thrown when fails to make API call - /// - /// IxFeSendResponseDTO - public IxFeSendResponseDTO IxServicesSendToIx (IxFeSendRequestDTO request) - { - ApiResponse localVarResponse = IxServicesSendToIxWithHttpInfo(request); - return localVarResponse.Data; - } - - /// - /// This call send docnumbers to IX-FE services - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of IxFeSendResponseDTO - public ApiResponse< IxFeSendResponseDTO > IxServicesSendToIxWithHttpInfo (IxFeSendRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling IxServicesApi->IxServicesSendToIx"); - - var localVarPath = "/api/IxServices/SendToIxFe"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesSendToIx", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeSendResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeSendResponseDTO))); - } - - /// - /// This call send docnumbers to IX-FE services - /// - /// Thrown when fails to make API call - /// - /// Task of IxFeSendResponseDTO - public async System.Threading.Tasks.Task IxServicesSendToIxAsync (IxFeSendRequestDTO request) - { - ApiResponse localVarResponse = await IxServicesSendToIxAsyncWithHttpInfo(request); - return localVarResponse.Data; - - } - - /// - /// This call send docnumbers to IX-FE services - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (IxFeSendResponseDTO) - public async System.Threading.Tasks.Task> IxServicesSendToIxAsyncWithHttpInfo (IxFeSendRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling IxServicesApi->IxServicesSendToIx"); - - var localVarPath = "/api/IxServices/SendToIxFe"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesSendToIx", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeSendResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeSendResponseDTO))); - } - - /// - /// This call send docnumbers to IX-CE services - /// - /// Thrown when fails to make API call - /// - /// - public void IxServicesSendToIxCe (SendToIxCeRequestDTO request) - { - IxServicesSendToIxCeWithHttpInfo(request); - } - - /// - /// This call send docnumbers to IX-CE services - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse IxServicesSendToIxCeWithHttpInfo (SendToIxCeRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling IxServicesApi->IxServicesSendToIxCe"); - - var localVarPath = "/api/IxServices/SendToIxCe"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesSendToIxCe", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call send docnumbers to IX-CE services - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task IxServicesSendToIxCeAsync (SendToIxCeRequestDTO request) - { - await IxServicesSendToIxCeAsyncWithHttpInfo(request); - - } - - /// - /// This call send docnumbers to IX-CE services - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxServicesSendToIxCeAsyncWithHttpInfo (SendToIxCeRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling IxServicesApi->IxServicesSendToIxCe"); - - var localVarPath = "/api/IxServices/SendToIxCe"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesSendToIxCe", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Checks is the docnumber list must be signed before being sent to IX-FE - /// - /// Thrown when fails to make API call - /// - /// bool? - public bool? IxServicesSendToIxFeSignRequired (SendToIxFeSignRequiredRequestDto request) - { - ApiResponse localVarResponse = IxServicesSendToIxFeSignRequiredWithHttpInfo(request); - return localVarResponse.Data; - } - - /// - /// Checks is the docnumber list must be signed before being sent to IX-FE - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of bool? - public ApiResponse< bool? > IxServicesSendToIxFeSignRequiredWithHttpInfo (SendToIxFeSignRequiredRequestDto request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling IxServicesApi->IxServicesSendToIxFeSignRequired"); - - var localVarPath = "/api/IxServices/SendToIxFeSignRequired"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesSendToIxFeSignRequired", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// Checks is the docnumber list must be signed before being sent to IX-FE - /// - /// Thrown when fails to make API call - /// - /// Task of bool? - public async System.Threading.Tasks.Task IxServicesSendToIxFeSignRequiredAsync (SendToIxFeSignRequiredRequestDto request) - { - ApiResponse localVarResponse = await IxServicesSendToIxFeSignRequiredAsyncWithHttpInfo(request); - return localVarResponse.Data; - - } - - /// - /// Checks is the docnumber list must be signed before being sent to IX-FE - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> IxServicesSendToIxFeSignRequiredAsyncWithHttpInfo (SendToIxFeSignRequiredRequestDto request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling IxServicesApi->IxServicesSendToIxFeSignRequired"); - - var localVarPath = "/api/IxServices/SendToIxFeSignRequired"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesSendToIxFeSignRequired", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/LanguagesApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/LanguagesApi.cs deleted file mode 100644 index 17ae6b3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/LanguagesApi.cs +++ /dev/null @@ -1,508 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ILanguagesApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call gets all languages information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<LanguageDto> - List LanguagesGet (); - - /// - /// This call gets all languages information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<LanguageDto> - ApiResponse> LanguagesGetWithHttpInfo (); - /// - /// This call gets a language service for profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Language code - /// Context of use - /// DictionaryHttpActionResult - DictionaryHttpActionResult LanguagesGetProfilo (string lang, string part); - - /// - /// This call gets a language service for profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Language code - /// Context of use - /// ApiResponse of DictionaryHttpActionResult - ApiResponse LanguagesGetProfiloWithHttpInfo (string lang, string part); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call gets all languages information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<LanguageDto> - System.Threading.Tasks.Task> LanguagesGetAsync (); - - /// - /// This call gets all languages information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<LanguageDto>) - System.Threading.Tasks.Task>> LanguagesGetAsyncWithHttpInfo (); - /// - /// This call gets a language service for profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Language code - /// Context of use - /// Task of DictionaryHttpActionResult - System.Threading.Tasks.Task LanguagesGetProfiloAsync (string lang, string part); - - /// - /// This call gets a language service for profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Language code - /// Context of use - /// Task of ApiResponse (DictionaryHttpActionResult) - System.Threading.Tasks.Task> LanguagesGetProfiloAsyncWithHttpInfo (string lang, string part); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class LanguagesApi : ILanguagesApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public LanguagesApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public LanguagesApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call gets all languages information - /// - /// Thrown when fails to make API call - /// List<LanguageDto> - public List LanguagesGet () - { - ApiResponse> localVarResponse = LanguagesGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call gets all languages information - /// - /// Thrown when fails to make API call - /// ApiResponse of List<LanguageDto> - public ApiResponse< List > LanguagesGetWithHttpInfo () - { - - var localVarPath = "/api/Languages"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LanguagesGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets all languages information - /// - /// Thrown when fails to make API call - /// Task of List<LanguageDto> - public async System.Threading.Tasks.Task> LanguagesGetAsync () - { - ApiResponse> localVarResponse = await LanguagesGetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call gets all languages information - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<LanguageDto>) - public async System.Threading.Tasks.Task>> LanguagesGetAsyncWithHttpInfo () - { - - var localVarPath = "/api/Languages"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LanguagesGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets a language service for profile - /// - /// Thrown when fails to make API call - /// Language code - /// Context of use - /// DictionaryHttpActionResult - public DictionaryHttpActionResult LanguagesGetProfilo (string lang, string part) - { - ApiResponse localVarResponse = LanguagesGetProfiloWithHttpInfo(lang, part); - return localVarResponse.Data; - } - - /// - /// This call gets a language service for profile - /// - /// Thrown when fails to make API call - /// Language code - /// Context of use - /// ApiResponse of DictionaryHttpActionResult - public ApiResponse< DictionaryHttpActionResult > LanguagesGetProfiloWithHttpInfo (string lang, string part) - { - // verify the required parameter 'lang' is set - if (lang == null) - throw new ApiException(400, "Missing required parameter 'lang' when calling LanguagesApi->LanguagesGetProfilo"); - // verify the required parameter 'part' is set - if (part == null) - throw new ApiException(400, "Missing required parameter 'part' when calling LanguagesApi->LanguagesGetProfilo"); - - var localVarPath = "/api/Languages/{lang}/{part}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (lang != null) localVarPathParams.Add("lang", this.Configuration.ApiClient.ParameterToString(lang)); // path parameter - if (part != null) localVarPathParams.Add("part", this.Configuration.ApiClient.ParameterToString(part)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LanguagesGetProfilo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DictionaryHttpActionResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DictionaryHttpActionResult))); - } - - /// - /// This call gets a language service for profile - /// - /// Thrown when fails to make API call - /// Language code - /// Context of use - /// Task of DictionaryHttpActionResult - public async System.Threading.Tasks.Task LanguagesGetProfiloAsync (string lang, string part) - { - ApiResponse localVarResponse = await LanguagesGetProfiloAsyncWithHttpInfo(lang, part); - return localVarResponse.Data; - - } - - /// - /// This call gets a language service for profile - /// - /// Thrown when fails to make API call - /// Language code - /// Context of use - /// Task of ApiResponse (DictionaryHttpActionResult) - public async System.Threading.Tasks.Task> LanguagesGetProfiloAsyncWithHttpInfo (string lang, string part) - { - // verify the required parameter 'lang' is set - if (lang == null) - throw new ApiException(400, "Missing required parameter 'lang' when calling LanguagesApi->LanguagesGetProfilo"); - // verify the required parameter 'part' is set - if (part == null) - throw new ApiException(400, "Missing required parameter 'part' when calling LanguagesApi->LanguagesGetProfilo"); - - var localVarPath = "/api/Languages/{lang}/{part}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (lang != null) localVarPathParams.Add("lang", this.Configuration.ApiClient.ParameterToString(lang)); // path parameter - if (part != null) localVarPathParams.Add("part", this.Configuration.ApiClient.ParameterToString(part)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LanguagesGetProfilo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DictionaryHttpActionResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DictionaryHttpActionResult))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/LayoutApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/LayoutApi.cs deleted file mode 100644 index cccace3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/LayoutApi.cs +++ /dev/null @@ -1,1756 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ILayoutApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call delete an existent layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the layout to be deleted - /// - void LayoutDelete (int? layoutId); - - /// - /// This call delete an existent layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the layout to be deleted - /// ApiResponse of Object(void) - ApiResponse LayoutDeleteWithHttpInfo (int? layoutId); - /// - /// This call returns the single layout by the given id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the wanted layout - /// LayoutDTO - LayoutDTO LayoutGetById (int? id); - - /// - /// This call returns the single layout by the given id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the wanted layout - /// ApiResponse of LayoutDTO - ApiResponse LayoutGetByIdWithHttpInfo (int? id); - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// - /// - /// - /// Thrown when fails to make API call - /// TaskWorkId - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// LayoutDTO - LayoutDTO LayoutGetByTask (int? taskWorkId, int? usingtype); - - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// - /// - /// - /// Thrown when fails to make API call - /// TaskWorkId - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// ApiResponse of LayoutDTO - ApiResponse LayoutGetByTaskWithHttpInfo (int? taskWorkId, int? usingtype); - /// - /// This call returns all layout of the specified type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// List<LayoutDTO> - List LayoutGetByType (int? type); - - /// - /// This call returns all layout of the specified type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// ApiResponse of List<LayoutDTO> - ApiResponse> LayoutGetByTypeWithHttpInfo (int? type); - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Id - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// LayoutDTO - LayoutDTO LayoutGetByUser (int? userId, int? usingtype, int? layouttype); - - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Id - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// ApiResponse of LayoutDTO - ApiResponse LayoutGetByUserWithHttpInfo (int? userId, int? usingtype, int? layouttype); - /// - /// This call save a new layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// LayoutDTO - LayoutDTO LayoutPost (LayoutDTO layout); - - /// - /// This call save a new layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// ApiResponse of LayoutDTO - ApiResponse LayoutPostWithHttpInfo (LayoutDTO layout); - /// - /// This call update a layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// id of the wanted layout - /// New version of layout - /// - void LayoutPut (int? id, LayoutDTO layout); - - /// - /// This call update a layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// id of the wanted layout - /// New version of layout - /// ApiResponse of Object(void) - ApiResponse LayoutPutWithHttpInfo (int? id, LayoutDTO layout); - /// - /// This call changes the layout order for a given layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the layout - /// new order index for the given layout - /// - void LayoutPutChangeOrder (int? layoutId, int? order); - - /// - /// This call changes the layout order for a given layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the layout - /// new order index for the given layout - /// ApiResponse of Object(void) - ApiResponse LayoutPutChangeOrderWithHttpInfo (int? layoutId, int? order); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call delete an existent layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the layout to be deleted - /// Task of void - System.Threading.Tasks.Task LayoutDeleteAsync (int? layoutId); - - /// - /// This call delete an existent layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the layout to be deleted - /// Task of ApiResponse - System.Threading.Tasks.Task> LayoutDeleteAsyncWithHttpInfo (int? layoutId); - /// - /// This call returns the single layout by the given id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the wanted layout - /// Task of LayoutDTO - System.Threading.Tasks.Task LayoutGetByIdAsync (int? id); - - /// - /// This call returns the single layout by the given id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the wanted layout - /// Task of ApiResponse (LayoutDTO) - System.Threading.Tasks.Task> LayoutGetByIdAsyncWithHttpInfo (int? id); - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// - /// - /// - /// Thrown when fails to make API call - /// TaskWorkId - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// Task of LayoutDTO - System.Threading.Tasks.Task LayoutGetByTaskAsync (int? taskWorkId, int? usingtype); - - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// - /// - /// - /// Thrown when fails to make API call - /// TaskWorkId - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// Task of ApiResponse (LayoutDTO) - System.Threading.Tasks.Task> LayoutGetByTaskAsyncWithHttpInfo (int? taskWorkId, int? usingtype); - /// - /// This call returns all layout of the specified type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// Task of List<LayoutDTO> - System.Threading.Tasks.Task> LayoutGetByTypeAsync (int? type); - - /// - /// This call returns all layout of the specified type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// Task of ApiResponse (List<LayoutDTO>) - System.Threading.Tasks.Task>> LayoutGetByTypeAsyncWithHttpInfo (int? type); - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Id - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// Task of LayoutDTO - System.Threading.Tasks.Task LayoutGetByUserAsync (int? userId, int? usingtype, int? layouttype); - - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Id - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// Task of ApiResponse (LayoutDTO) - System.Threading.Tasks.Task> LayoutGetByUserAsyncWithHttpInfo (int? userId, int? usingtype, int? layouttype); - /// - /// This call save a new layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// Task of LayoutDTO - System.Threading.Tasks.Task LayoutPostAsync (LayoutDTO layout); - - /// - /// This call save a new layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// Task of ApiResponse (LayoutDTO) - System.Threading.Tasks.Task> LayoutPostAsyncWithHttpInfo (LayoutDTO layout); - /// - /// This call update a layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// id of the wanted layout - /// New version of layout - /// Task of void - System.Threading.Tasks.Task LayoutPutAsync (int? id, LayoutDTO layout); - - /// - /// This call update a layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// id of the wanted layout - /// New version of layout - /// Task of ApiResponse - System.Threading.Tasks.Task> LayoutPutAsyncWithHttpInfo (int? id, LayoutDTO layout); - /// - /// This call changes the layout order for a given layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the layout - /// new order index for the given layout - /// Task of void - System.Threading.Tasks.Task LayoutPutChangeOrderAsync (int? layoutId, int? order); - - /// - /// This call changes the layout order for a given layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the layout - /// new order index for the given layout - /// Task of ApiResponse - System.Threading.Tasks.Task> LayoutPutChangeOrderAsyncWithHttpInfo (int? layoutId, int? order); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class LayoutApi : ILayoutApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public LayoutApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public LayoutApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call delete an existent layout - /// - /// Thrown when fails to make API call - /// Id of the layout to be deleted - /// - public void LayoutDelete (int? layoutId) - { - LayoutDeleteWithHttpInfo(layoutId); - } - - /// - /// This call delete an existent layout - /// - /// Thrown when fails to make API call - /// Id of the layout to be deleted - /// ApiResponse of Object(void) - public ApiResponse LayoutDeleteWithHttpInfo (int? layoutId) - { - // verify the required parameter 'layoutId' is set - if (layoutId == null) - throw new ApiException(400, "Missing required parameter 'layoutId' when calling LayoutApi->LayoutDelete"); - - var localVarPath = "/api/Layout/{layoutId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (layoutId != null) localVarPathParams.Add("layoutId", this.Configuration.ApiClient.ParameterToString(layoutId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call delete an existent layout - /// - /// Thrown when fails to make API call - /// Id of the layout to be deleted - /// Task of void - public async System.Threading.Tasks.Task LayoutDeleteAsync (int? layoutId) - { - await LayoutDeleteAsyncWithHttpInfo(layoutId); - - } - - /// - /// This call delete an existent layout - /// - /// Thrown when fails to make API call - /// Id of the layout to be deleted - /// Task of ApiResponse - public async System.Threading.Tasks.Task> LayoutDeleteAsyncWithHttpInfo (int? layoutId) - { - // verify the required parameter 'layoutId' is set - if (layoutId == null) - throw new ApiException(400, "Missing required parameter 'layoutId' when calling LayoutApi->LayoutDelete"); - - var localVarPath = "/api/Layout/{layoutId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (layoutId != null) localVarPathParams.Add("layoutId", this.Configuration.ApiClient.ParameterToString(layoutId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the single layout by the given id - /// - /// Thrown when fails to make API call - /// Id of the wanted layout - /// LayoutDTO - public LayoutDTO LayoutGetById (int? id) - { - ApiResponse localVarResponse = LayoutGetByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns the single layout by the given id - /// - /// Thrown when fails to make API call - /// Id of the wanted layout - /// ApiResponse of LayoutDTO - public ApiResponse< LayoutDTO > LayoutGetByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LayoutApi->LayoutGetById"); - - var localVarPath = "/api/Layout/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LayoutDTO))); - } - - /// - /// This call returns the single layout by the given id - /// - /// Thrown when fails to make API call - /// Id of the wanted layout - /// Task of LayoutDTO - public async System.Threading.Tasks.Task LayoutGetByIdAsync (int? id) - { - ApiResponse localVarResponse = await LayoutGetByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns the single layout by the given id - /// - /// Thrown when fails to make API call - /// Id of the wanted layout - /// Task of ApiResponse (LayoutDTO) - public async System.Threading.Tasks.Task> LayoutGetByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LayoutApi->LayoutGetById"); - - var localVarPath = "/api/Layout/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LayoutDTO))); - } - - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// Thrown when fails to make API call - /// TaskWorkId - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// LayoutDTO - public LayoutDTO LayoutGetByTask (int? taskWorkId, int? usingtype) - { - ApiResponse localVarResponse = LayoutGetByTaskWithHttpInfo(taskWorkId, usingtype); - return localVarResponse.Data; - } - - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// Thrown when fails to make API call - /// TaskWorkId - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// ApiResponse of LayoutDTO - public ApiResponse< LayoutDTO > LayoutGetByTaskWithHttpInfo (int? taskWorkId, int? usingtype) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling LayoutApi->LayoutGetByTask"); - // verify the required parameter 'usingtype' is set - if (usingtype == null) - throw new ApiException(400, "Missing required parameter 'usingtype' when calling LayoutApi->LayoutGetByTask"); - - var localVarPath = "/api/Layout/Task/{taskWorkId}/{usingtype}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (usingtype != null) localVarPathParams.Add("usingtype", this.Configuration.ApiClient.ParameterToString(usingtype)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutGetByTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LayoutDTO))); - } - - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// Thrown when fails to make API call - /// TaskWorkId - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// Task of LayoutDTO - public async System.Threading.Tasks.Task LayoutGetByTaskAsync (int? taskWorkId, int? usingtype) - { - ApiResponse localVarResponse = await LayoutGetByTaskAsyncWithHttpInfo(taskWorkId, usingtype); - return localVarResponse.Data; - - } - - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// Thrown when fails to make API call - /// TaskWorkId - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// Task of ApiResponse (LayoutDTO) - public async System.Threading.Tasks.Task> LayoutGetByTaskAsyncWithHttpInfo (int? taskWorkId, int? usingtype) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling LayoutApi->LayoutGetByTask"); - // verify the required parameter 'usingtype' is set - if (usingtype == null) - throw new ApiException(400, "Missing required parameter 'usingtype' when calling LayoutApi->LayoutGetByTask"); - - var localVarPath = "/api/Layout/Task/{taskWorkId}/{usingtype}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (usingtype != null) localVarPathParams.Add("usingtype", this.Configuration.ApiClient.ParameterToString(usingtype)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutGetByTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LayoutDTO))); - } - - /// - /// This call returns all layout of the specified type - /// - /// Thrown when fails to make API call - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// List<LayoutDTO> - public List LayoutGetByType (int? type) - { - ApiResponse> localVarResponse = LayoutGetByTypeWithHttpInfo(type); - return localVarResponse.Data; - } - - /// - /// This call returns all layout of the specified type - /// - /// Thrown when fails to make API call - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// ApiResponse of List<LayoutDTO> - public ApiResponse< List > LayoutGetByTypeWithHttpInfo (int? type) - { - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling LayoutApi->LayoutGetByType"); - - var localVarPath = "/api/Layout/Type/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutGetByType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all layout of the specified type - /// - /// Thrown when fails to make API call - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// Task of List<LayoutDTO> - public async System.Threading.Tasks.Task> LayoutGetByTypeAsync (int? type) - { - ApiResponse> localVarResponse = await LayoutGetByTypeAsyncWithHttpInfo(type); - return localVarResponse.Data; - - } - - /// - /// This call returns all layout of the specified type - /// - /// Thrown when fails to make API call - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// Task of ApiResponse (List<LayoutDTO>) - public async System.Threading.Tasks.Task>> LayoutGetByTypeAsyncWithHttpInfo (int? type) - { - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling LayoutApi->LayoutGetByType"); - - var localVarPath = "/api/Layout/Type/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutGetByType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// Thrown when fails to make API call - /// User Id - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// LayoutDTO - public LayoutDTO LayoutGetByUser (int? userId, int? usingtype, int? layouttype) - { - ApiResponse localVarResponse = LayoutGetByUserWithHttpInfo(userId, usingtype, layouttype); - return localVarResponse.Data; - } - - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// Thrown when fails to make API call - /// User Id - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// ApiResponse of LayoutDTO - public ApiResponse< LayoutDTO > LayoutGetByUserWithHttpInfo (int? userId, int? usingtype, int? layouttype) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling LayoutApi->LayoutGetByUser"); - // verify the required parameter 'usingtype' is set - if (usingtype == null) - throw new ApiException(400, "Missing required parameter 'usingtype' when calling LayoutApi->LayoutGetByUser"); - // verify the required parameter 'layouttype' is set - if (layouttype == null) - throw new ApiException(400, "Missing required parameter 'layouttype' when calling LayoutApi->LayoutGetByUser"); - - var localVarPath = "/api/Layout/User/{userId}/{usingtype}/{layouttype}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (usingtype != null) localVarPathParams.Add("usingtype", this.Configuration.ApiClient.ParameterToString(usingtype)); // path parameter - if (layouttype != null) localVarPathParams.Add("layouttype", this.Configuration.ApiClient.ParameterToString(layouttype)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutGetByUser", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LayoutDTO))); - } - - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// Thrown when fails to make API call - /// User Id - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// Task of LayoutDTO - public async System.Threading.Tasks.Task LayoutGetByUserAsync (int? userId, int? usingtype, int? layouttype) - { - ApiResponse localVarResponse = await LayoutGetByUserAsyncWithHttpInfo(userId, usingtype, layouttype); - return localVarResponse.Data; - - } - - /// - /// This call returns the layout for the given user, the given type and the given utilization - /// - /// Thrown when fails to make API call - /// User Id - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// Task of ApiResponse (LayoutDTO) - public async System.Threading.Tasks.Task> LayoutGetByUserAsyncWithHttpInfo (int? userId, int? usingtype, int? layouttype) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling LayoutApi->LayoutGetByUser"); - // verify the required parameter 'usingtype' is set - if (usingtype == null) - throw new ApiException(400, "Missing required parameter 'usingtype' when calling LayoutApi->LayoutGetByUser"); - // verify the required parameter 'layouttype' is set - if (layouttype == null) - throw new ApiException(400, "Missing required parameter 'layouttype' when calling LayoutApi->LayoutGetByUser"); - - var localVarPath = "/api/Layout/User/{userId}/{usingtype}/{layouttype}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (usingtype != null) localVarPathParams.Add("usingtype", this.Configuration.ApiClient.ParameterToString(usingtype)); // path parameter - if (layouttype != null) localVarPathParams.Add("layouttype", this.Configuration.ApiClient.ParameterToString(layouttype)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutGetByUser", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LayoutDTO))); - } - - /// - /// This call save a new layout - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// LayoutDTO - public LayoutDTO LayoutPost (LayoutDTO layout) - { - ApiResponse localVarResponse = LayoutPostWithHttpInfo(layout); - return localVarResponse.Data; - } - - /// - /// This call save a new layout - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// ApiResponse of LayoutDTO - public ApiResponse< LayoutDTO > LayoutPostWithHttpInfo (LayoutDTO layout) - { - // verify the required parameter 'layout' is set - if (layout == null) - throw new ApiException(400, "Missing required parameter 'layout' when calling LayoutApi->LayoutPost"); - - var localVarPath = "/api/Layout"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (layout != null && layout.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(layout); // http body (model) parameter - } - else - { - localVarPostBody = layout; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LayoutDTO))); - } - - /// - /// This call save a new layout - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// Task of LayoutDTO - public async System.Threading.Tasks.Task LayoutPostAsync (LayoutDTO layout) - { - ApiResponse localVarResponse = await LayoutPostAsyncWithHttpInfo(layout); - return localVarResponse.Data; - - } - - /// - /// This call save a new layout - /// - /// Thrown when fails to make API call - /// Layout to be saved - /// Task of ApiResponse (LayoutDTO) - public async System.Threading.Tasks.Task> LayoutPostAsyncWithHttpInfo (LayoutDTO layout) - { - // verify the required parameter 'layout' is set - if (layout == null) - throw new ApiException(400, "Missing required parameter 'layout' when calling LayoutApi->LayoutPost"); - - var localVarPath = "/api/Layout"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (layout != null && layout.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(layout); // http body (model) parameter - } - else - { - localVarPostBody = layout; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LayoutDTO))); - } - - /// - /// This call update a layout - /// - /// Thrown when fails to make API call - /// id of the wanted layout - /// New version of layout - /// - public void LayoutPut (int? id, LayoutDTO layout) - { - LayoutPutWithHttpInfo(id, layout); - } - - /// - /// This call update a layout - /// - /// Thrown when fails to make API call - /// id of the wanted layout - /// New version of layout - /// ApiResponse of Object(void) - public ApiResponse LayoutPutWithHttpInfo (int? id, LayoutDTO layout) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LayoutApi->LayoutPut"); - // verify the required parameter 'layout' is set - if (layout == null) - throw new ApiException(400, "Missing required parameter 'layout' when calling LayoutApi->LayoutPut"); - - var localVarPath = "/api/Layout/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (layout != null && layout.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(layout); // http body (model) parameter - } - else - { - localVarPostBody = layout; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutPut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update a layout - /// - /// Thrown when fails to make API call - /// id of the wanted layout - /// New version of layout - /// Task of void - public async System.Threading.Tasks.Task LayoutPutAsync (int? id, LayoutDTO layout) - { - await LayoutPutAsyncWithHttpInfo(id, layout); - - } - - /// - /// This call update a layout - /// - /// Thrown when fails to make API call - /// id of the wanted layout - /// New version of layout - /// Task of ApiResponse - public async System.Threading.Tasks.Task> LayoutPutAsyncWithHttpInfo (int? id, LayoutDTO layout) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LayoutApi->LayoutPut"); - // verify the required parameter 'layout' is set - if (layout == null) - throw new ApiException(400, "Missing required parameter 'layout' when calling LayoutApi->LayoutPut"); - - var localVarPath = "/api/Layout/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (layout != null && layout.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(layout); // http body (model) parameter - } - else - { - localVarPostBody = layout; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutPut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call changes the layout order for a given layout - /// - /// Thrown when fails to make API call - /// Id of the layout - /// new order index for the given layout - /// - public void LayoutPutChangeOrder (int? layoutId, int? order) - { - LayoutPutChangeOrderWithHttpInfo(layoutId, order); - } - - /// - /// This call changes the layout order for a given layout - /// - /// Thrown when fails to make API call - /// Id of the layout - /// new order index for the given layout - /// ApiResponse of Object(void) - public ApiResponse LayoutPutChangeOrderWithHttpInfo (int? layoutId, int? order) - { - // verify the required parameter 'layoutId' is set - if (layoutId == null) - throw new ApiException(400, "Missing required parameter 'layoutId' when calling LayoutApi->LayoutPutChangeOrder"); - // verify the required parameter 'order' is set - if (order == null) - throw new ApiException(400, "Missing required parameter 'order' when calling LayoutApi->LayoutPutChangeOrder"); - - var localVarPath = "/api/Layout/{layoutId}/{order}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (layoutId != null) localVarPathParams.Add("layoutId", this.Configuration.ApiClient.ParameterToString(layoutId)); // path parameter - if (order != null) localVarPathParams.Add("order", this.Configuration.ApiClient.ParameterToString(order)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutPutChangeOrder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call changes the layout order for a given layout - /// - /// Thrown when fails to make API call - /// Id of the layout - /// new order index for the given layout - /// Task of void - public async System.Threading.Tasks.Task LayoutPutChangeOrderAsync (int? layoutId, int? order) - { - await LayoutPutChangeOrderAsyncWithHttpInfo(layoutId, order); - - } - - /// - /// This call changes the layout order for a given layout - /// - /// Thrown when fails to make API call - /// Id of the layout - /// new order index for the given layout - /// Task of ApiResponse - public async System.Threading.Tasks.Task> LayoutPutChangeOrderAsyncWithHttpInfo (int? layoutId, int? order) - { - // verify the required parameter 'layoutId' is set - if (layoutId == null) - throw new ApiException(400, "Missing required parameter 'layoutId' when calling LayoutApi->LayoutPutChangeOrder"); - // verify the required parameter 'order' is set - if (order == null) - throw new ApiException(400, "Missing required parameter 'order' when calling LayoutApi->LayoutPutChangeOrder"); - - var localVarPath = "/api/Layout/{layoutId}/{order}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (layoutId != null) localVarPathParams.Add("layoutId", this.Configuration.ApiClient.ParameterToString(layoutId)); // path parameter - if (order != null) localVarPathParams.Add("order", this.Configuration.ApiClient.ParameterToString(order)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LayoutPutChangeOrder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/LicenseApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/LicenseApi.cs deleted file mode 100644 index 79f7390..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/LicenseApi.cs +++ /dev/null @@ -1,480 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ILicenseApi : IApiAccessor - { - #region Synchronous Operations - /// - /// Get the current loaded license (Admin permission required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ServerLicense - ServerLicense LicenseGetLoadedlicense (); - - /// - /// Get the current loaded license (Admin permission required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of ServerLicense - ApiResponse LicenseGetLoadedlicenseWithHttpInfo (); - /// - /// Checks if license is loaded (Admin permission required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// bool? - bool? LicenseLicenseIsLoaded (); - - /// - /// Checks if license is loaded (Admin permission required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - ApiResponse LicenseLicenseIsLoadedWithHttpInfo (); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// Get the current loaded license (Admin permission required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ServerLicense - System.Threading.Tasks.Task LicenseGetLoadedlicenseAsync (); - - /// - /// Get the current loaded license (Admin permission required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (ServerLicense) - System.Threading.Tasks.Task> LicenseGetLoadedlicenseAsyncWithHttpInfo (); - /// - /// Checks if license is loaded (Admin permission required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of bool? - System.Threading.Tasks.Task LicenseLicenseIsLoadedAsync (); - - /// - /// Checks if license is loaded (Admin permission required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> LicenseLicenseIsLoadedAsyncWithHttpInfo (); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class LicenseApi : ILicenseApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public LicenseApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public LicenseApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// Get the current loaded license (Admin permission required) - /// - /// Thrown when fails to make API call - /// ServerLicense - public ServerLicense LicenseGetLoadedlicense () - { - ApiResponse localVarResponse = LicenseGetLoadedlicenseWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Get the current loaded license (Admin permission required) - /// - /// Thrown when fails to make API call - /// ApiResponse of ServerLicense - public ApiResponse< ServerLicense > LicenseGetLoadedlicenseWithHttpInfo () - { - - var localVarPath = "/api/License/LoadedLicense"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LicenseGetLoadedlicense", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ServerLicense) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ServerLicense))); - } - - /// - /// Get the current loaded license (Admin permission required) - /// - /// Thrown when fails to make API call - /// Task of ServerLicense - public async System.Threading.Tasks.Task LicenseGetLoadedlicenseAsync () - { - ApiResponse localVarResponse = await LicenseGetLoadedlicenseAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// Get the current loaded license (Admin permission required) - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (ServerLicense) - public async System.Threading.Tasks.Task> LicenseGetLoadedlicenseAsyncWithHttpInfo () - { - - var localVarPath = "/api/License/LoadedLicense"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LicenseGetLoadedlicense", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ServerLicense) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ServerLicense))); - } - - /// - /// Checks if license is loaded (Admin permission required) - /// - /// Thrown when fails to make API call - /// bool? - public bool? LicenseLicenseIsLoaded () - { - ApiResponse localVarResponse = LicenseLicenseIsLoadedWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Checks if license is loaded (Admin permission required) - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - public ApiResponse< bool? > LicenseLicenseIsLoadedWithHttpInfo () - { - - var localVarPath = "/api/License/IsLoaded"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LicenseLicenseIsLoaded", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// Checks if license is loaded (Admin permission required) - /// - /// Thrown when fails to make API call - /// Task of bool? - public async System.Threading.Tasks.Task LicenseLicenseIsLoadedAsync () - { - ApiResponse localVarResponse = await LicenseLicenseIsLoadedAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// Checks if license is loaded (Admin permission required) - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> LicenseLicenseIsLoadedAsyncWithHttpInfo () - { - - var localVarPath = "/api/License/IsLoaded"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LicenseLicenseIsLoaded", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/LogApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/LogApi.cs deleted file mode 100644 index 83fff45..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/LogApi.cs +++ /dev/null @@ -1,536 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ILogApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all log items for a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// List<LogDTO> - List LogGetLog (int? docNumber); - - /// - /// This call returns all log items for a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of List<LogDTO> - ApiResponse> LogGetLogWithHttpInfo (int? docNumber); - /// - /// This call writes a log document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model for log writing - /// bool? - bool? LogWriteDocnumberLog (DocnumberLogDTO model); - - /// - /// This call writes a log document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model for log writing - /// ApiResponse of bool? - ApiResponse LogWriteDocnumberLogWithHttpInfo (DocnumberLogDTO model); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all log items for a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of List<LogDTO> - System.Threading.Tasks.Task> LogGetLogAsync (int? docNumber); - - /// - /// This call returns all log items for a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (List<LogDTO>) - System.Threading.Tasks.Task>> LogGetLogAsyncWithHttpInfo (int? docNumber); - /// - /// This call writes a log document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model for log writing - /// Task of bool? - System.Threading.Tasks.Task LogWriteDocnumberLogAsync (DocnumberLogDTO model); - - /// - /// This call writes a log document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model for log writing - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> LogWriteDocnumberLogAsyncWithHttpInfo (DocnumberLogDTO model); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class LogApi : ILogApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public LogApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public LogApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all log items for a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// List<LogDTO> - public List LogGetLog (int? docNumber) - { - ApiResponse> localVarResponse = LogGetLogWithHttpInfo(docNumber); - return localVarResponse.Data; - } - - /// - /// This call returns all log items for a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of List<LogDTO> - public ApiResponse< List > LogGetLogWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling LogApi->LogGetLog"); - - var localVarPath = "/api/Log/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogGetLog", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all log items for a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of List<LogDTO> - public async System.Threading.Tasks.Task> LogGetLogAsync (int? docNumber) - { - ApiResponse> localVarResponse = await LogGetLogAsyncWithHttpInfo(docNumber); - return localVarResponse.Data; - - } - - /// - /// This call returns all log items for a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (List<LogDTO>) - public async System.Threading.Tasks.Task>> LogGetLogAsyncWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling LogApi->LogGetLog"); - - var localVarPath = "/api/Log/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogGetLog", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call writes a log document - /// - /// Thrown when fails to make API call - /// Model for log writing - /// bool? - public bool? LogWriteDocnumberLog (DocnumberLogDTO model) - { - ApiResponse localVarResponse = LogWriteDocnumberLogWithHttpInfo(model); - return localVarResponse.Data; - } - - /// - /// This call writes a log document - /// - /// Thrown when fails to make API call - /// Model for log writing - /// ApiResponse of bool? - public ApiResponse< bool? > LogWriteDocnumberLogWithHttpInfo (DocnumberLogDTO model) - { - // verify the required parameter 'model' is set - if (model == null) - throw new ApiException(400, "Missing required parameter 'model' when calling LogApi->LogWriteDocnumberLog"); - - var localVarPath = "/api/Log"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogWriteDocnumberLog", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call writes a log document - /// - /// Thrown when fails to make API call - /// Model for log writing - /// Task of bool? - public async System.Threading.Tasks.Task LogWriteDocnumberLogAsync (DocnumberLogDTO model) - { - ApiResponse localVarResponse = await LogWriteDocnumberLogAsyncWithHttpInfo(model); - return localVarResponse.Data; - - } - - /// - /// This call writes a log document - /// - /// Thrown when fails to make API call - /// Model for log writing - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> LogWriteDocnumberLogAsyncWithHttpInfo (DocnumberLogDTO model) - { - // verify the required parameter 'model' is set - if (model == null) - throw new ApiException(400, "Missing required parameter 'model' when calling LogApi->LogWriteDocnumberLog"); - - var localVarPath = "/api/Log"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogWriteDocnumberLog", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/LogJsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/LogJsApi.cs deleted file mode 100644 index 5723e36..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/LogJsApi.cs +++ /dev/null @@ -1,334 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ILogJsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call adds a log item for client purpose (javascript) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object the contains the data - /// - void LogJsPost (Object logData); - - /// - /// This call adds a log item for client purpose (javascript) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object the contains the data - /// ApiResponse of Object(void) - ApiResponse LogJsPostWithHttpInfo (Object logData); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call adds a log item for client purpose (javascript) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object the contains the data - /// Task of void - System.Threading.Tasks.Task LogJsPostAsync (Object logData); - - /// - /// This call adds a log item for client purpose (javascript) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object the contains the data - /// Task of ApiResponse - System.Threading.Tasks.Task> LogJsPostAsyncWithHttpInfo (Object logData); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class LogJsApi : ILogJsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public LogJsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public LogJsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call adds a log item for client purpose (javascript) - /// - /// Thrown when fails to make API call - /// Object the contains the data - /// - public void LogJsPost (Object logData) - { - LogJsPostWithHttpInfo(logData); - } - - /// - /// This call adds a log item for client purpose (javascript) - /// - /// Thrown when fails to make API call - /// Object the contains the data - /// ApiResponse of Object(void) - public ApiResponse LogJsPostWithHttpInfo (Object logData) - { - // verify the required parameter 'logData' is set - if (logData == null) - throw new ApiException(400, "Missing required parameter 'logData' when calling LogJsApi->LogJsPost"); - - var localVarPath = "/api/Jslog"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (logData != null && logData.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(logData); // http body (model) parameter - } - else - { - localVarPostBody = logData; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogJsPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds a log item for client purpose (javascript) - /// - /// Thrown when fails to make API call - /// Object the contains the data - /// Task of void - public async System.Threading.Tasks.Task LogJsPostAsync (Object logData) - { - await LogJsPostAsyncWithHttpInfo(logData); - - } - - /// - /// This call adds a log item for client purpose (javascript) - /// - /// Thrown when fails to make API call - /// Object the contains the data - /// Task of ApiResponse - public async System.Threading.Tasks.Task> LogJsPostAsyncWithHttpInfo (Object logData) - { - // verify the required parameter 'logData' is set - if (logData == null) - throw new ApiException(400, "Missing required parameter 'logData' when calling LogJsApi->LogJsPost"); - - var localVarPath = "/api/Jslog"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (logData != null && logData.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(logData); // http body (model) parameter - } - else - { - localVarPostBody = logData; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogJsPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/MailAccountsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/MailAccountsApi.cs deleted file mode 100644 index cbcc900..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/MailAccountsApi.cs +++ /dev/null @@ -1,1272 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IMailAccountsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// Deletes the specified mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the mail account to delete - /// - void MailAccountsDeleteMailAccount (int? mailAccountId); - - /// - /// Deletes the specified mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the mail account to delete - /// ApiResponse of Object(void) - ApiResponse MailAccountsDeleteMailAccountWithHttpInfo (int? mailAccountId); - /// - /// Gets the information of the specified mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The mail account's id - /// MailAccountDTO - MailAccountDTO MailAccountsGetMailAccountDetail (int? mailAccountId); - - /// - /// Gets the information of the specified mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The mail account's id - /// ApiResponse of MailAccountDTO - ApiResponse MailAccountsGetMailAccountDetailWithHttpInfo (int? mailAccountId); - /// - /// Gets the list of the mail accounts for the current authenticated user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<MailAccountDTO> - List MailAccountsGetMailAccounts (); - - /// - /// Gets the list of the mail accounts for the current authenticated user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<MailAccountDTO> - ApiResponse> MailAccountsGetMailAccountsWithHttpInfo (); - /// - /// Creates a new mail account for the authenticated user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// MailAccountDTO - MailAccountDTO MailAccountsInsertMailAccount (MailAccountDTO model = null); - - /// - /// Creates a new mail account for the authenticated user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of MailAccountDTO - ApiResponse MailAccountsInsertMailAccountWithHttpInfo (MailAccountDTO model = null); - /// - /// Sets the specified mail account as the default mail account for the authenticated user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The mail account's id - /// - void MailAccountsSetDefaultMailAccount (int? mailAccountId); - - /// - /// Sets the specified mail account as the default mail account for the authenticated user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The mail account's id - /// ApiResponse of Object(void) - ApiResponse MailAccountsSetDefaultMailAccountWithHttpInfo (int? mailAccountId); - /// - /// Updates the specified mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The mail account's id - /// (optional) - /// MailAccountDTO - MailAccountDTO MailAccountsUpdateMailAccount (int? mailAccountId, MailAccountDTO model = null); - - /// - /// Updates the specified mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The mail account's id - /// (optional) - /// ApiResponse of MailAccountDTO - ApiResponse MailAccountsUpdateMailAccountWithHttpInfo (int? mailAccountId, MailAccountDTO model = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// Deletes the specified mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the mail account to delete - /// Task of void - System.Threading.Tasks.Task MailAccountsDeleteMailAccountAsync (int? mailAccountId); - - /// - /// Deletes the specified mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the mail account to delete - /// Task of ApiResponse - System.Threading.Tasks.Task> MailAccountsDeleteMailAccountAsyncWithHttpInfo (int? mailAccountId); - /// - /// Gets the information of the specified mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The mail account's id - /// Task of MailAccountDTO - System.Threading.Tasks.Task MailAccountsGetMailAccountDetailAsync (int? mailAccountId); - - /// - /// Gets the information of the specified mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The mail account's id - /// Task of ApiResponse (MailAccountDTO) - System.Threading.Tasks.Task> MailAccountsGetMailAccountDetailAsyncWithHttpInfo (int? mailAccountId); - /// - /// Gets the list of the mail accounts for the current authenticated user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<MailAccountDTO> - System.Threading.Tasks.Task> MailAccountsGetMailAccountsAsync (); - - /// - /// Gets the list of the mail accounts for the current authenticated user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<MailAccountDTO>) - System.Threading.Tasks.Task>> MailAccountsGetMailAccountsAsyncWithHttpInfo (); - /// - /// Creates a new mail account for the authenticated user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of MailAccountDTO - System.Threading.Tasks.Task MailAccountsInsertMailAccountAsync (MailAccountDTO model = null); - - /// - /// Creates a new mail account for the authenticated user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (MailAccountDTO) - System.Threading.Tasks.Task> MailAccountsInsertMailAccountAsyncWithHttpInfo (MailAccountDTO model = null); - /// - /// Sets the specified mail account as the default mail account for the authenticated user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The mail account's id - /// Task of void - System.Threading.Tasks.Task MailAccountsSetDefaultMailAccountAsync (int? mailAccountId); - - /// - /// Sets the specified mail account as the default mail account for the authenticated user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The mail account's id - /// Task of ApiResponse - System.Threading.Tasks.Task> MailAccountsSetDefaultMailAccountAsyncWithHttpInfo (int? mailAccountId); - /// - /// Updates the specified mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The mail account's id - /// (optional) - /// Task of MailAccountDTO - System.Threading.Tasks.Task MailAccountsUpdateMailAccountAsync (int? mailAccountId, MailAccountDTO model = null); - - /// - /// Updates the specified mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The mail account's id - /// (optional) - /// Task of ApiResponse (MailAccountDTO) - System.Threading.Tasks.Task> MailAccountsUpdateMailAccountAsyncWithHttpInfo (int? mailAccountId, MailAccountDTO model = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class MailAccountsApi : IMailAccountsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public MailAccountsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public MailAccountsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// Deletes the specified mail account - /// - /// Thrown when fails to make API call - /// The id of the mail account to delete - /// - public void MailAccountsDeleteMailAccount (int? mailAccountId) - { - MailAccountsDeleteMailAccountWithHttpInfo(mailAccountId); - } - - /// - /// Deletes the specified mail account - /// - /// Thrown when fails to make API call - /// The id of the mail account to delete - /// ApiResponse of Object(void) - public ApiResponse MailAccountsDeleteMailAccountWithHttpInfo (int? mailAccountId) - { - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling MailAccountsApi->MailAccountsDeleteMailAccount"); - - var localVarPath = "/api/MailAccounts/{mailAccountId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailAccountsDeleteMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Deletes the specified mail account - /// - /// Thrown when fails to make API call - /// The id of the mail account to delete - /// Task of void - public async System.Threading.Tasks.Task MailAccountsDeleteMailAccountAsync (int? mailAccountId) - { - await MailAccountsDeleteMailAccountAsyncWithHttpInfo(mailAccountId); - - } - - /// - /// Deletes the specified mail account - /// - /// Thrown when fails to make API call - /// The id of the mail account to delete - /// Task of ApiResponse - public async System.Threading.Tasks.Task> MailAccountsDeleteMailAccountAsyncWithHttpInfo (int? mailAccountId) - { - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling MailAccountsApi->MailAccountsDeleteMailAccount"); - - var localVarPath = "/api/MailAccounts/{mailAccountId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailAccountsDeleteMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Gets the information of the specified mail account - /// - /// Thrown when fails to make API call - /// The mail account's id - /// MailAccountDTO - public MailAccountDTO MailAccountsGetMailAccountDetail (int? mailAccountId) - { - ApiResponse localVarResponse = MailAccountsGetMailAccountDetailWithHttpInfo(mailAccountId); - return localVarResponse.Data; - } - - /// - /// Gets the information of the specified mail account - /// - /// Thrown when fails to make API call - /// The mail account's id - /// ApiResponse of MailAccountDTO - public ApiResponse< MailAccountDTO > MailAccountsGetMailAccountDetailWithHttpInfo (int? mailAccountId) - { - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling MailAccountsApi->MailAccountsGetMailAccountDetail"); - - var localVarPath = "/api/MailAccounts/{mailAccountId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailAccountsGetMailAccountDetail", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailAccountDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailAccountDTO))); - } - - /// - /// Gets the information of the specified mail account - /// - /// Thrown when fails to make API call - /// The mail account's id - /// Task of MailAccountDTO - public async System.Threading.Tasks.Task MailAccountsGetMailAccountDetailAsync (int? mailAccountId) - { - ApiResponse localVarResponse = await MailAccountsGetMailAccountDetailAsyncWithHttpInfo(mailAccountId); - return localVarResponse.Data; - - } - - /// - /// Gets the information of the specified mail account - /// - /// Thrown when fails to make API call - /// The mail account's id - /// Task of ApiResponse (MailAccountDTO) - public async System.Threading.Tasks.Task> MailAccountsGetMailAccountDetailAsyncWithHttpInfo (int? mailAccountId) - { - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling MailAccountsApi->MailAccountsGetMailAccountDetail"); - - var localVarPath = "/api/MailAccounts/{mailAccountId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailAccountsGetMailAccountDetail", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailAccountDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailAccountDTO))); - } - - /// - /// Gets the list of the mail accounts for the current authenticated user - /// - /// Thrown when fails to make API call - /// List<MailAccountDTO> - public List MailAccountsGetMailAccounts () - { - ApiResponse> localVarResponse = MailAccountsGetMailAccountsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Gets the list of the mail accounts for the current authenticated user - /// - /// Thrown when fails to make API call - /// ApiResponse of List<MailAccountDTO> - public ApiResponse< List > MailAccountsGetMailAccountsWithHttpInfo () - { - - var localVarPath = "/api/MailAccounts"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailAccountsGetMailAccounts", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Gets the list of the mail accounts for the current authenticated user - /// - /// Thrown when fails to make API call - /// Task of List<MailAccountDTO> - public async System.Threading.Tasks.Task> MailAccountsGetMailAccountsAsync () - { - ApiResponse> localVarResponse = await MailAccountsGetMailAccountsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// Gets the list of the mail accounts for the current authenticated user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<MailAccountDTO>) - public async System.Threading.Tasks.Task>> MailAccountsGetMailAccountsAsyncWithHttpInfo () - { - - var localVarPath = "/api/MailAccounts"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailAccountsGetMailAccounts", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Creates a new mail account for the authenticated user - /// - /// Thrown when fails to make API call - /// (optional) - /// MailAccountDTO - public MailAccountDTO MailAccountsInsertMailAccount (MailAccountDTO model = null) - { - ApiResponse localVarResponse = MailAccountsInsertMailAccountWithHttpInfo(model); - return localVarResponse.Data; - } - - /// - /// Creates a new mail account for the authenticated user - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of MailAccountDTO - public ApiResponse< MailAccountDTO > MailAccountsInsertMailAccountWithHttpInfo (MailAccountDTO model = null) - { - - var localVarPath = "/api/MailAccounts"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailAccountsInsertMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailAccountDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailAccountDTO))); - } - - /// - /// Creates a new mail account for the authenticated user - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of MailAccountDTO - public async System.Threading.Tasks.Task MailAccountsInsertMailAccountAsync (MailAccountDTO model = null) - { - ApiResponse localVarResponse = await MailAccountsInsertMailAccountAsyncWithHttpInfo(model); - return localVarResponse.Data; - - } - - /// - /// Creates a new mail account for the authenticated user - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (MailAccountDTO) - public async System.Threading.Tasks.Task> MailAccountsInsertMailAccountAsyncWithHttpInfo (MailAccountDTO model = null) - { - - var localVarPath = "/api/MailAccounts"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailAccountsInsertMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailAccountDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailAccountDTO))); - } - - /// - /// Sets the specified mail account as the default mail account for the authenticated user - /// - /// Thrown when fails to make API call - /// The mail account's id - /// - public void MailAccountsSetDefaultMailAccount (int? mailAccountId) - { - MailAccountsSetDefaultMailAccountWithHttpInfo(mailAccountId); - } - - /// - /// Sets the specified mail account as the default mail account for the authenticated user - /// - /// Thrown when fails to make API call - /// The mail account's id - /// ApiResponse of Object(void) - public ApiResponse MailAccountsSetDefaultMailAccountWithHttpInfo (int? mailAccountId) - { - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling MailAccountsApi->MailAccountsSetDefaultMailAccount"); - - var localVarPath = "/api/MailAccounts/{mailAccountId}/default"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailAccountsSetDefaultMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Sets the specified mail account as the default mail account for the authenticated user - /// - /// Thrown when fails to make API call - /// The mail account's id - /// Task of void - public async System.Threading.Tasks.Task MailAccountsSetDefaultMailAccountAsync (int? mailAccountId) - { - await MailAccountsSetDefaultMailAccountAsyncWithHttpInfo(mailAccountId); - - } - - /// - /// Sets the specified mail account as the default mail account for the authenticated user - /// - /// Thrown when fails to make API call - /// The mail account's id - /// Task of ApiResponse - public async System.Threading.Tasks.Task> MailAccountsSetDefaultMailAccountAsyncWithHttpInfo (int? mailAccountId) - { - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling MailAccountsApi->MailAccountsSetDefaultMailAccount"); - - var localVarPath = "/api/MailAccounts/{mailAccountId}/default"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailAccountsSetDefaultMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Updates the specified mail account - /// - /// Thrown when fails to make API call - /// The mail account's id - /// (optional) - /// MailAccountDTO - public MailAccountDTO MailAccountsUpdateMailAccount (int? mailAccountId, MailAccountDTO model = null) - { - ApiResponse localVarResponse = MailAccountsUpdateMailAccountWithHttpInfo(mailAccountId, model); - return localVarResponse.Data; - } - - /// - /// Updates the specified mail account - /// - /// Thrown when fails to make API call - /// The mail account's id - /// (optional) - /// ApiResponse of MailAccountDTO - public ApiResponse< MailAccountDTO > MailAccountsUpdateMailAccountWithHttpInfo (int? mailAccountId, MailAccountDTO model = null) - { - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling MailAccountsApi->MailAccountsUpdateMailAccount"); - - var localVarPath = "/api/MailAccounts/{mailAccountId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailAccountsUpdateMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailAccountDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailAccountDTO))); - } - - /// - /// Updates the specified mail account - /// - /// Thrown when fails to make API call - /// The mail account's id - /// (optional) - /// Task of MailAccountDTO - public async System.Threading.Tasks.Task MailAccountsUpdateMailAccountAsync (int? mailAccountId, MailAccountDTO model = null) - { - ApiResponse localVarResponse = await MailAccountsUpdateMailAccountAsyncWithHttpInfo(mailAccountId, model); - return localVarResponse.Data; - - } - - /// - /// Updates the specified mail account - /// - /// Thrown when fails to make API call - /// The mail account's id - /// (optional) - /// Task of ApiResponse (MailAccountDTO) - public async System.Threading.Tasks.Task> MailAccountsUpdateMailAccountAsyncWithHttpInfo (int? mailAccountId, MailAccountDTO model = null) - { - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling MailAccountsApi->MailAccountsUpdateMailAccount"); - - var localVarPath = "/api/MailAccounts/{mailAccountId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailAccountsUpdateMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailAccountDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailAccountDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/MailApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/MailApi.cs deleted file mode 100644 index 132bc15..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/MailApi.cs +++ /dev/null @@ -1,345 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IMailApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call insert new mail for send queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// MailOutDTO - MailOutDTO MailMailOutInsert (MailOutInsertRequestDTO mailOutInsertRequestDTO); - - /// - /// This call insert new mail for send queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of MailOutDTO - ApiResponse MailMailOutInsertWithHttpInfo (MailOutInsertRequestDTO mailOutInsertRequestDTO); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call insert new mail for send queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of MailOutDTO - System.Threading.Tasks.Task MailMailOutInsertAsync (MailOutInsertRequestDTO mailOutInsertRequestDTO); - - /// - /// This call insert new mail for send queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (MailOutDTO) - System.Threading.Tasks.Task> MailMailOutInsertAsyncWithHttpInfo (MailOutInsertRequestDTO mailOutInsertRequestDTO); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class MailApi : IMailApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public MailApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public MailApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call insert new mail for send queue - /// - /// Thrown when fails to make API call - /// - /// MailOutDTO - public MailOutDTO MailMailOutInsert (MailOutInsertRequestDTO mailOutInsertRequestDTO) - { - ApiResponse localVarResponse = MailMailOutInsertWithHttpInfo(mailOutInsertRequestDTO); - return localVarResponse.Data; - } - - /// - /// This call insert new mail for send queue - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of MailOutDTO - public ApiResponse< MailOutDTO > MailMailOutInsertWithHttpInfo (MailOutInsertRequestDTO mailOutInsertRequestDTO) - { - // verify the required parameter 'mailOutInsertRequestDTO' is set - if (mailOutInsertRequestDTO == null) - throw new ApiException(400, "Missing required parameter 'mailOutInsertRequestDTO' when calling MailApi->MailMailOutInsert"); - - var localVarPath = "/api/Mail"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailOutInsertRequestDTO != null && mailOutInsertRequestDTO.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailOutInsertRequestDTO); // http body (model) parameter - } - else - { - localVarPostBody = mailOutInsertRequestDTO; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailMailOutInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailOutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailOutDTO))); - } - - /// - /// This call insert new mail for send queue - /// - /// Thrown when fails to make API call - /// - /// Task of MailOutDTO - public async System.Threading.Tasks.Task MailMailOutInsertAsync (MailOutInsertRequestDTO mailOutInsertRequestDTO) - { - ApiResponse localVarResponse = await MailMailOutInsertAsyncWithHttpInfo(mailOutInsertRequestDTO); - return localVarResponse.Data; - - } - - /// - /// This call insert new mail for send queue - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (MailOutDTO) - public async System.Threading.Tasks.Task> MailMailOutInsertAsyncWithHttpInfo (MailOutInsertRequestDTO mailOutInsertRequestDTO) - { - // verify the required parameter 'mailOutInsertRequestDTO' is set - if (mailOutInsertRequestDTO == null) - throw new ApiException(400, "Missing required parameter 'mailOutInsertRequestDTO' when calling MailApi->MailMailOutInsert"); - - var localVarPath = "/api/Mail"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailOutInsertRequestDTO != null && mailOutInsertRequestDTO.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailOutInsertRequestDTO); // http body (model) parameter - } - else - { - localVarPostBody = mailOutInsertRequestDTO; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailMailOutInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailOutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailOutDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/MailV2Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/MailV2Api.cs deleted file mode 100644 index 33b9aa5..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/MailV2Api.cs +++ /dev/null @@ -1,2092 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IMailV2Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call allows to check mail connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// bool? - bool? MailV2CheckMailConnection (MailServerSettingsDTO mailServerSettings); - - /// - /// This call allows to check mail connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// ApiResponse of bool? - ApiResponse MailV2CheckMailConnectionWithHttpInfo (MailServerSettingsDTO mailServerSettings); - /// - /// This call deletes a email message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void MailV2DeleteMessage (int? dmMsgId); - - /// - /// This call deletes a email message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse MailV2DeleteMessageWithHttpInfo (int? dmMsgId); - /// - /// This call builds the redirect url used to perform the authentication/authorization to an external provider (Microsoft / Google) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ExternalAuthRedirectUrlResponseDTO - ExternalAuthRedirectUrlResponseDTO MailV2GetExternalAuthRedirectUrl (ExternalAuthRedirectUrlRequestDTO requestDto); - - /// - /// This call builds the redirect url used to perform the authentication/authorization to an external provider (Microsoft / Google) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ExternalAuthRedirectUrlResponseDTO - ApiResponse MailV2GetExternalAuthRedirectUrlWithHttpInfo (ExternalAuthRedirectUrlRequestDTO requestDto); - /// - /// This call returns IMAP folders by account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// List<MailBoxFolderDTO> - List MailV2GetImapMailBoxStructureByAccount (int? mailAccountId); - - /// - /// This call returns IMAP folders by account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// ApiResponse of List<MailBoxFolderDTO> - ApiResponse> MailV2GetImapMailBoxStructureByAccountWithHttpInfo (int? mailAccountId); - /// - /// This call returns IMAP folders by settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// List<MailBoxFolderDTO> - List MailV2GetImapMailBoxStructureBySettings (MailServerSettingsDTO mailServerSettings); - - /// - /// This call returns IMAP folders by settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// ApiResponse of List<MailBoxFolderDTO> - ApiResponse> MailV2GetImapMailBoxStructureBySettingsWithHttpInfo (MailServerSettingsDTO mailServerSettings); - /// - /// Get mail plugin configuration parameters - /// - /// - /// - /// - /// Thrown when fails to make API call - /// MailPluginConfigurationDTO - MailPluginConfigurationDTO MailV2GetMailPluginConfiguration (); - - /// - /// Get mail plugin configuration parameters - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of MailPluginConfigurationDTO - ApiResponse MailV2GetMailPluginConfigurationWithHttpInfo (); - /// - /// This call returns mail system variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// List<KeyValueDTO> - List MailV2GetMailSystemVariables (int? type); - - /// - /// This call returns mail system variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// ApiResponse of List<KeyValueDTO> - ApiResponse> MailV2GetMailSystemVariablesWithHttpInfo (int? type); - /// - /// This call resends a email message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void MailV2ReSendMessage (int? dmMsgId); - - /// - /// This call resends a email message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse MailV2ReSendMessageWithHttpInfo (int? dmMsgId); - /// - /// This call saves a new draft message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// SaveMailRequestDTO - SaveMailRequestDTO MailV2SaveMessage (SaveMailRequestDTO requestdto = null); - - /// - /// This call saves a new draft message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of SaveMailRequestDTO - ApiResponse MailV2SaveMessageWithHttpInfo (SaveMailRequestDTO requestdto = null); - /// - /// This call sends a new email message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// MailOutDTO - MailOutDTO MailV2SendMessage (SendMailRequestDTO requestdto = null); - - /// - /// This call sends a new email message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of MailOutDTO - ApiResponse MailV2SendMessageWithHttpInfo (SendMailRequestDTO requestdto = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call allows to check mail connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of bool? - System.Threading.Tasks.Task MailV2CheckMailConnectionAsync (MailServerSettingsDTO mailServerSettings); - - /// - /// This call allows to check mail connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> MailV2CheckMailConnectionAsyncWithHttpInfo (MailServerSettingsDTO mailServerSettings); - /// - /// This call deletes a email message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task MailV2DeleteMessageAsync (int? dmMsgId); - - /// - /// This call deletes a email message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> MailV2DeleteMessageAsyncWithHttpInfo (int? dmMsgId); - /// - /// This call builds the redirect url used to perform the authentication/authorization to an external provider (Microsoft / Google) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ExternalAuthRedirectUrlResponseDTO - System.Threading.Tasks.Task MailV2GetExternalAuthRedirectUrlAsync (ExternalAuthRedirectUrlRequestDTO requestDto); - - /// - /// This call builds the redirect url used to perform the authentication/authorization to an external provider (Microsoft / Google) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ExternalAuthRedirectUrlResponseDTO) - System.Threading.Tasks.Task> MailV2GetExternalAuthRedirectUrlAsyncWithHttpInfo (ExternalAuthRedirectUrlRequestDTO requestDto); - /// - /// This call returns IMAP folders by account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// Task of List<MailBoxFolderDTO> - System.Threading.Tasks.Task> MailV2GetImapMailBoxStructureByAccountAsync (int? mailAccountId); - - /// - /// This call returns IMAP folders by account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// Task of ApiResponse (List<MailBoxFolderDTO>) - System.Threading.Tasks.Task>> MailV2GetImapMailBoxStructureByAccountAsyncWithHttpInfo (int? mailAccountId); - /// - /// This call returns IMAP folders by settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of List<MailBoxFolderDTO> - System.Threading.Tasks.Task> MailV2GetImapMailBoxStructureBySettingsAsync (MailServerSettingsDTO mailServerSettings); - - /// - /// This call returns IMAP folders by settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of ApiResponse (List<MailBoxFolderDTO>) - System.Threading.Tasks.Task>> MailV2GetImapMailBoxStructureBySettingsAsyncWithHttpInfo (MailServerSettingsDTO mailServerSettings); - /// - /// Get mail plugin configuration parameters - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of MailPluginConfigurationDTO - System.Threading.Tasks.Task MailV2GetMailPluginConfigurationAsync (); - - /// - /// Get mail plugin configuration parameters - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (MailPluginConfigurationDTO) - System.Threading.Tasks.Task> MailV2GetMailPluginConfigurationAsyncWithHttpInfo (); - /// - /// This call returns mail system variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// Task of List<KeyValueDTO> - System.Threading.Tasks.Task> MailV2GetMailSystemVariablesAsync (int? type); - - /// - /// This call returns mail system variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// Task of ApiResponse (List<KeyValueDTO>) - System.Threading.Tasks.Task>> MailV2GetMailSystemVariablesAsyncWithHttpInfo (int? type); - /// - /// This call resends a email message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task MailV2ReSendMessageAsync (int? dmMsgId); - - /// - /// This call resends a email message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> MailV2ReSendMessageAsyncWithHttpInfo (int? dmMsgId); - /// - /// This call saves a new draft message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of SaveMailRequestDTO - System.Threading.Tasks.Task MailV2SaveMessageAsync (SaveMailRequestDTO requestdto = null); - - /// - /// This call saves a new draft message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (SaveMailRequestDTO) - System.Threading.Tasks.Task> MailV2SaveMessageAsyncWithHttpInfo (SaveMailRequestDTO requestdto = null); - /// - /// This call sends a new email message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of MailOutDTO - System.Threading.Tasks.Task MailV2SendMessageAsync (SendMailRequestDTO requestdto = null); - - /// - /// This call sends a new email message - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (MailOutDTO) - System.Threading.Tasks.Task> MailV2SendMessageAsyncWithHttpInfo (SendMailRequestDTO requestdto = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class MailV2Api : IMailV2Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public MailV2Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public MailV2Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call allows to check mail connection - /// - /// Thrown when fails to make API call - /// Mail server settings - /// bool? - public bool? MailV2CheckMailConnection (MailServerSettingsDTO mailServerSettings) - { - ApiResponse localVarResponse = MailV2CheckMailConnectionWithHttpInfo(mailServerSettings); - return localVarResponse.Data; - } - - /// - /// This call allows to check mail connection - /// - /// Thrown when fails to make API call - /// Mail server settings - /// ApiResponse of bool? - public ApiResponse< bool? > MailV2CheckMailConnectionWithHttpInfo (MailServerSettingsDTO mailServerSettings) - { - // verify the required parameter 'mailServerSettings' is set - if (mailServerSettings == null) - throw new ApiException(400, "Missing required parameter 'mailServerSettings' when calling MailV2Api->MailV2CheckMailConnection"); - - var localVarPath = "/api/v2/Mail/CheckMailConnection"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailServerSettings != null && mailServerSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailServerSettings); // http body (model) parameter - } - else - { - localVarPostBody = mailServerSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2CheckMailConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call allows to check mail connection - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of bool? - public async System.Threading.Tasks.Task MailV2CheckMailConnectionAsync (MailServerSettingsDTO mailServerSettings) - { - ApiResponse localVarResponse = await MailV2CheckMailConnectionAsyncWithHttpInfo(mailServerSettings); - return localVarResponse.Data; - - } - - /// - /// This call allows to check mail connection - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> MailV2CheckMailConnectionAsyncWithHttpInfo (MailServerSettingsDTO mailServerSettings) - { - // verify the required parameter 'mailServerSettings' is set - if (mailServerSettings == null) - throw new ApiException(400, "Missing required parameter 'mailServerSettings' when calling MailV2Api->MailV2CheckMailConnection"); - - var localVarPath = "/api/v2/Mail/CheckMailConnection"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailServerSettings != null && mailServerSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailServerSettings); // http body (model) parameter - } - else - { - localVarPostBody = mailServerSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2CheckMailConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call deletes a email message - /// - /// Thrown when fails to make API call - /// - /// - public void MailV2DeleteMessage (int? dmMsgId) - { - MailV2DeleteMessageWithHttpInfo(dmMsgId); - } - - /// - /// This call deletes a email message - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse MailV2DeleteMessageWithHttpInfo (int? dmMsgId) - { - // verify the required parameter 'dmMsgId' is set - if (dmMsgId == null) - throw new ApiException(400, "Missing required parameter 'dmMsgId' when calling MailV2Api->MailV2DeleteMessage"); - - var localVarPath = "/api/MailV2"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dmMsgId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dmMsgId", dmMsgId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2DeleteMessage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a email message - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task MailV2DeleteMessageAsync (int? dmMsgId) - { - await MailV2DeleteMessageAsyncWithHttpInfo(dmMsgId); - - } - - /// - /// This call deletes a email message - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> MailV2DeleteMessageAsyncWithHttpInfo (int? dmMsgId) - { - // verify the required parameter 'dmMsgId' is set - if (dmMsgId == null) - throw new ApiException(400, "Missing required parameter 'dmMsgId' when calling MailV2Api->MailV2DeleteMessage"); - - var localVarPath = "/api/MailV2"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dmMsgId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dmMsgId", dmMsgId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2DeleteMessage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call builds the redirect url used to perform the authentication/authorization to an external provider (Microsoft / Google) - /// - /// Thrown when fails to make API call - /// - /// ExternalAuthRedirectUrlResponseDTO - public ExternalAuthRedirectUrlResponseDTO MailV2GetExternalAuthRedirectUrl (ExternalAuthRedirectUrlRequestDTO requestDto) - { - ApiResponse localVarResponse = MailV2GetExternalAuthRedirectUrlWithHttpInfo(requestDto); - return localVarResponse.Data; - } - - /// - /// This call builds the redirect url used to perform the authentication/authorization to an external provider (Microsoft / Google) - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ExternalAuthRedirectUrlResponseDTO - public ApiResponse< ExternalAuthRedirectUrlResponseDTO > MailV2GetExternalAuthRedirectUrlWithHttpInfo (ExternalAuthRedirectUrlRequestDTO requestDto) - { - // verify the required parameter 'requestDto' is set - if (requestDto == null) - throw new ApiException(400, "Missing required parameter 'requestDto' when calling MailV2Api->MailV2GetExternalAuthRedirectUrl"); - - var localVarPath = "/api/v2/Mail/auth/redirect"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestDto != null && requestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestDto); // http body (model) parameter - } - else - { - localVarPostBody = requestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2GetExternalAuthRedirectUrl", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ExternalAuthRedirectUrlResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalAuthRedirectUrlResponseDTO))); - } - - /// - /// This call builds the redirect url used to perform the authentication/authorization to an external provider (Microsoft / Google) - /// - /// Thrown when fails to make API call - /// - /// Task of ExternalAuthRedirectUrlResponseDTO - public async System.Threading.Tasks.Task MailV2GetExternalAuthRedirectUrlAsync (ExternalAuthRedirectUrlRequestDTO requestDto) - { - ApiResponse localVarResponse = await MailV2GetExternalAuthRedirectUrlAsyncWithHttpInfo(requestDto); - return localVarResponse.Data; - - } - - /// - /// This call builds the redirect url used to perform the authentication/authorization to an external provider (Microsoft / Google) - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ExternalAuthRedirectUrlResponseDTO) - public async System.Threading.Tasks.Task> MailV2GetExternalAuthRedirectUrlAsyncWithHttpInfo (ExternalAuthRedirectUrlRequestDTO requestDto) - { - // verify the required parameter 'requestDto' is set - if (requestDto == null) - throw new ApiException(400, "Missing required parameter 'requestDto' when calling MailV2Api->MailV2GetExternalAuthRedirectUrl"); - - var localVarPath = "/api/v2/Mail/auth/redirect"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestDto != null && requestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestDto); // http body (model) parameter - } - else - { - localVarPostBody = requestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2GetExternalAuthRedirectUrl", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ExternalAuthRedirectUrlResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalAuthRedirectUrlResponseDTO))); - } - - /// - /// This call returns IMAP folders by account - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// List<MailBoxFolderDTO> - public List MailV2GetImapMailBoxStructureByAccount (int? mailAccountId) - { - ApiResponse> localVarResponse = MailV2GetImapMailBoxStructureByAccountWithHttpInfo(mailAccountId); - return localVarResponse.Data; - } - - /// - /// This call returns IMAP folders by account - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// ApiResponse of List<MailBoxFolderDTO> - public ApiResponse< List > MailV2GetImapMailBoxStructureByAccountWithHttpInfo (int? mailAccountId) - { - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling MailV2Api->MailV2GetImapMailBoxStructureByAccount"); - - var localVarPath = "/api/v2/Mail/ImapFolders/ByAccount/{mailAccountId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2GetImapMailBoxStructureByAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns IMAP folders by account - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// Task of List<MailBoxFolderDTO> - public async System.Threading.Tasks.Task> MailV2GetImapMailBoxStructureByAccountAsync (int? mailAccountId) - { - ApiResponse> localVarResponse = await MailV2GetImapMailBoxStructureByAccountAsyncWithHttpInfo(mailAccountId); - return localVarResponse.Data; - - } - - /// - /// This call returns IMAP folders by account - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// Task of ApiResponse (List<MailBoxFolderDTO>) - public async System.Threading.Tasks.Task>> MailV2GetImapMailBoxStructureByAccountAsyncWithHttpInfo (int? mailAccountId) - { - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling MailV2Api->MailV2GetImapMailBoxStructureByAccount"); - - var localVarPath = "/api/v2/Mail/ImapFolders/ByAccount/{mailAccountId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2GetImapMailBoxStructureByAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns IMAP folders by settings - /// - /// Thrown when fails to make API call - /// Mail server settings - /// List<MailBoxFolderDTO> - public List MailV2GetImapMailBoxStructureBySettings (MailServerSettingsDTO mailServerSettings) - { - ApiResponse> localVarResponse = MailV2GetImapMailBoxStructureBySettingsWithHttpInfo(mailServerSettings); - return localVarResponse.Data; - } - - /// - /// This call returns IMAP folders by settings - /// - /// Thrown when fails to make API call - /// Mail server settings - /// ApiResponse of List<MailBoxFolderDTO> - public ApiResponse< List > MailV2GetImapMailBoxStructureBySettingsWithHttpInfo (MailServerSettingsDTO mailServerSettings) - { - // verify the required parameter 'mailServerSettings' is set - if (mailServerSettings == null) - throw new ApiException(400, "Missing required parameter 'mailServerSettings' when calling MailV2Api->MailV2GetImapMailBoxStructureBySettings"); - - var localVarPath = "/api/v2/Mail/ImapFolders/BySettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailServerSettings != null && mailServerSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailServerSettings); // http body (model) parameter - } - else - { - localVarPostBody = mailServerSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2GetImapMailBoxStructureBySettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns IMAP folders by settings - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of List<MailBoxFolderDTO> - public async System.Threading.Tasks.Task> MailV2GetImapMailBoxStructureBySettingsAsync (MailServerSettingsDTO mailServerSettings) - { - ApiResponse> localVarResponse = await MailV2GetImapMailBoxStructureBySettingsAsyncWithHttpInfo(mailServerSettings); - return localVarResponse.Data; - - } - - /// - /// This call returns IMAP folders by settings - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of ApiResponse (List<MailBoxFolderDTO>) - public async System.Threading.Tasks.Task>> MailV2GetImapMailBoxStructureBySettingsAsyncWithHttpInfo (MailServerSettingsDTO mailServerSettings) - { - // verify the required parameter 'mailServerSettings' is set - if (mailServerSettings == null) - throw new ApiException(400, "Missing required parameter 'mailServerSettings' when calling MailV2Api->MailV2GetImapMailBoxStructureBySettings"); - - var localVarPath = "/api/v2/Mail/ImapFolders/BySettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailServerSettings != null && mailServerSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailServerSettings); // http body (model) parameter - } - else - { - localVarPostBody = mailServerSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2GetImapMailBoxStructureBySettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Get mail plugin configuration parameters - /// - /// Thrown when fails to make API call - /// MailPluginConfigurationDTO - public MailPluginConfigurationDTO MailV2GetMailPluginConfiguration () - { - ApiResponse localVarResponse = MailV2GetMailPluginConfigurationWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Get mail plugin configuration parameters - /// - /// Thrown when fails to make API call - /// ApiResponse of MailPluginConfigurationDTO - public ApiResponse< MailPluginConfigurationDTO > MailV2GetMailPluginConfigurationWithHttpInfo () - { - - var localVarPath = "/api/v2/Mail/mailPluginConfiguration"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2GetMailPluginConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailPluginConfigurationDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailPluginConfigurationDTO))); - } - - /// - /// Get mail plugin configuration parameters - /// - /// Thrown when fails to make API call - /// Task of MailPluginConfigurationDTO - public async System.Threading.Tasks.Task MailV2GetMailPluginConfigurationAsync () - { - ApiResponse localVarResponse = await MailV2GetMailPluginConfigurationAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// Get mail plugin configuration parameters - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (MailPluginConfigurationDTO) - public async System.Threading.Tasks.Task> MailV2GetMailPluginConfigurationAsyncWithHttpInfo () - { - - var localVarPath = "/api/v2/Mail/mailPluginConfiguration"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2GetMailPluginConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailPluginConfigurationDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailPluginConfigurationDTO))); - } - - /// - /// This call returns mail system variables - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// List<KeyValueDTO> - public List MailV2GetMailSystemVariables (int? type) - { - ApiResponse> localVarResponse = MailV2GetMailSystemVariablesWithHttpInfo(type); - return localVarResponse.Data; - } - - /// - /// This call returns mail system variables - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// ApiResponse of List<KeyValueDTO> - public ApiResponse< List > MailV2GetMailSystemVariablesWithHttpInfo (int? type) - { - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling MailV2Api->MailV2GetMailSystemVariables"); - - var localVarPath = "/api/v2/Mail/SystemVariables/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2GetMailSystemVariables", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns mail system variables - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// Task of List<KeyValueDTO> - public async System.Threading.Tasks.Task> MailV2GetMailSystemVariablesAsync (int? type) - { - ApiResponse> localVarResponse = await MailV2GetMailSystemVariablesAsyncWithHttpInfo(type); - return localVarResponse.Data; - - } - - /// - /// This call returns mail system variables - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// Task of ApiResponse (List<KeyValueDTO>) - public async System.Threading.Tasks.Task>> MailV2GetMailSystemVariablesAsyncWithHttpInfo (int? type) - { - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling MailV2Api->MailV2GetMailSystemVariables"); - - var localVarPath = "/api/v2/Mail/SystemVariables/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2GetMailSystemVariables", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call resends a email message - /// - /// Thrown when fails to make API call - /// - /// - public void MailV2ReSendMessage (int? dmMsgId) - { - MailV2ReSendMessageWithHttpInfo(dmMsgId); - } - - /// - /// This call resends a email message - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse MailV2ReSendMessageWithHttpInfo (int? dmMsgId) - { - // verify the required parameter 'dmMsgId' is set - if (dmMsgId == null) - throw new ApiException(400, "Missing required parameter 'dmMsgId' when calling MailV2Api->MailV2ReSendMessage"); - - var localVarPath = "/api/v2/Mail/resend"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dmMsgId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dmMsgId", dmMsgId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2ReSendMessage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call resends a email message - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task MailV2ReSendMessageAsync (int? dmMsgId) - { - await MailV2ReSendMessageAsyncWithHttpInfo(dmMsgId); - - } - - /// - /// This call resends a email message - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> MailV2ReSendMessageAsyncWithHttpInfo (int? dmMsgId) - { - // verify the required parameter 'dmMsgId' is set - if (dmMsgId == null) - throw new ApiException(400, "Missing required parameter 'dmMsgId' when calling MailV2Api->MailV2ReSendMessage"); - - var localVarPath = "/api/v2/Mail/resend"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dmMsgId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dmMsgId", dmMsgId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2ReSendMessage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves a new draft message - /// - /// Thrown when fails to make API call - /// (optional) - /// SaveMailRequestDTO - public SaveMailRequestDTO MailV2SaveMessage (SaveMailRequestDTO requestdto = null) - { - ApiResponse localVarResponse = MailV2SaveMessageWithHttpInfo(requestdto); - return localVarResponse.Data; - } - - /// - /// This call saves a new draft message - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of SaveMailRequestDTO - public ApiResponse< SaveMailRequestDTO > MailV2SaveMessageWithHttpInfo (SaveMailRequestDTO requestdto = null) - { - - var localVarPath = "/api/v2/Mail/save"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestdto != null && requestdto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestdto); // http body (model) parameter - } - else - { - localVarPostBody = requestdto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2SaveMessage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SaveMailRequestDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SaveMailRequestDTO))); - } - - /// - /// This call saves a new draft message - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of SaveMailRequestDTO - public async System.Threading.Tasks.Task MailV2SaveMessageAsync (SaveMailRequestDTO requestdto = null) - { - ApiResponse localVarResponse = await MailV2SaveMessageAsyncWithHttpInfo(requestdto); - return localVarResponse.Data; - - } - - /// - /// This call saves a new draft message - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (SaveMailRequestDTO) - public async System.Threading.Tasks.Task> MailV2SaveMessageAsyncWithHttpInfo (SaveMailRequestDTO requestdto = null) - { - - var localVarPath = "/api/v2/Mail/save"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestdto != null && requestdto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestdto); // http body (model) parameter - } - else - { - localVarPostBody = requestdto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2SaveMessage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SaveMailRequestDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SaveMailRequestDTO))); - } - - /// - /// This call sends a new email message - /// - /// Thrown when fails to make API call - /// (optional) - /// MailOutDTO - public MailOutDTO MailV2SendMessage (SendMailRequestDTO requestdto = null) - { - ApiResponse localVarResponse = MailV2SendMessageWithHttpInfo(requestdto); - return localVarResponse.Data; - } - - /// - /// This call sends a new email message - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of MailOutDTO - public ApiResponse< MailOutDTO > MailV2SendMessageWithHttpInfo (SendMailRequestDTO requestdto = null) - { - - var localVarPath = "/api/v2/Mail/send"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestdto != null && requestdto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestdto); // http body (model) parameter - } - else - { - localVarPostBody = requestdto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2SendMessage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailOutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailOutDTO))); - } - - /// - /// This call sends a new email message - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of MailOutDTO - public async System.Threading.Tasks.Task MailV2SendMessageAsync (SendMailRequestDTO requestdto = null) - { - ApiResponse localVarResponse = await MailV2SendMessageAsyncWithHttpInfo(requestdto); - return localVarResponse.Data; - - } - - /// - /// This call sends a new email message - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (MailOutDTO) - public async System.Threading.Tasks.Task> MailV2SendMessageAsyncWithHttpInfo (SendMailRequestDTO requestdto = null) - { - - var localVarPath = "/api/v2/Mail/send"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestdto != null && requestdto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestdto); // http body (model) parameter - } - else - { - localVarPostBody = requestdto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailV2SendMessage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailOutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailOutDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/MasksApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/MasksApi.cs deleted file mode 100644 index 835b5b3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/MasksApi.cs +++ /dev/null @@ -1,3943 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IMasksApi : IApiAccessor - { - #region Synchronous Operations - /// - /// Tells if the mask can be upgraded to advanced - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// bool? - bool? MasksCanUpgradeToAdvanced (string maskId); - - /// - /// Tells if the mask can be upgraded to advanced - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of bool? - ApiResponse MasksCanUpgradeToAdvancedWithHttpInfo (string maskId); - /// - /// This call clones a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Options to use for cloning - /// - void MasksCloneMask (string id, MaskCloneOptionsDto cloneOptions); - - /// - /// This call clones a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Options to use for cloning - /// ApiResponse of Object(void) - ApiResponse MasksCloneMaskWithHttpInfo (string id, MaskCloneOptionsDto cloneOptions); - /// - /// This call deletes a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Object - Object MasksDelete (string id); - - /// - /// This call deletes a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// ApiResponse of Object - ApiResponse MasksDeleteWithHttpInfo (string id); - /// - /// This call returns a mask by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// MaskDTO - MaskDTO MasksGetById (string id); - - /// - /// This call returns a mask by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// ApiResponse of MaskDTO - ApiResponse MasksGetByIdWithHttpInfo (string id); - /// - /// This call returns all possibile Document Types for a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// List<DocumentTypeBaseDTO> - List MasksGetDocumentTypesByMaskId (string maskId, string businessUnitCode = null); - - /// - /// This call returns all possibile Document Types for a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// ApiResponse of List<DocumentTypeBaseDTO> - ApiResponse> MasksGetDocumentTypesByMaskIdWithHttpInfo (string maskId, string businessUnitCode = null); - /// - /// This call returns all possibile Document Types for a mask - /// - /// - /// This method is deprecated. Use api/Masks/{maskId}/DocumentTypes?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// List<DocumentTypeBaseDTO> - List MasksGetDocumentTypesByMaskIdOld (string maskId, string businessUnitCode); - - /// - /// This call returns all possibile Document Types for a mask - /// - /// - /// This method is deprecated. Use api/Masks/{maskId}/DocumentTypes?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// ApiResponse of List<DocumentTypeBaseDTO> - ApiResponse> MasksGetDocumentTypesByMaskIdOldWithHttpInfo (string maskId, string businessUnitCode); - /// - /// This call returns all possibile Document Types for a mask (tree format) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// DocumentTypeBaseTreeDTO - DocumentTypeBaseTreeDTO MasksGetDocumentTypesTreeByMaskId (string maskId, string businessUnitCode = null); - - /// - /// This call returns all possibile Document Types for a mask (tree format) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// ApiResponse of DocumentTypeBaseTreeDTO - ApiResponse MasksGetDocumentTypesTreeByMaskIdWithHttpInfo (string maskId, string businessUnitCode = null); - /// - /// This call returns all possibile Document Types for a mask (tree format) - /// - /// - /// This method is deprecated. Use api/Masks/{maskId}/DocumentTypesTree?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// DocumentTypeBaseTreeDTO - DocumentTypeBaseTreeDTO MasksGetDocumentTypesTreeByMaskIdOld (string maskId, string businessUnitCode); - - /// - /// This call returns all possibile Document Types for a mask (tree format) - /// - /// - /// This method is deprecated. Use api/Masks/{maskId}/DocumentTypesTree?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// ApiResponse of DocumentTypeBaseTreeDTO - ApiResponse MasksGetDocumentTypesTreeByMaskIdOldWithHttpInfo (string maskId, string businessUnitCode); - /// - /// This call returns possibile fields by a Document Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// List<MaskDetailDTO> - List MasksGetFieldsByClasse (int? systemid); - - /// - /// This call returns possibile fields by a Document Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// ApiResponse of List<MaskDetailDTO> - ApiResponse> MasksGetFieldsByClasseWithHttpInfo (int? systemid); - /// - /// This call returns all masks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<MaskDTO> - List MasksGetList (); - - /// - /// This call returns all masks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<MaskDTO> - ApiResponse> MasksGetListWithHttpInfo (); - /// - /// This call returns the permissions for a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// PermissionsDTO - PermissionsDTO MasksGetPermission (string maskId); - - /// - /// This call returns the permissions for a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// ApiResponse of PermissionsDTO - ApiResponse MasksGetPermissionWithHttpInfo (string maskId); - /// - /// This calls returns the profile schema for a mask associated to a class additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional name - /// (optional) - /// MaskProfileSchemaDTO - MaskProfileSchemaDTO MasksGetProfileForClasseBox (string additionalFieldName, ProfileDTO profile = null); - - /// - /// This calls returns the profile schema for a mask associated to a class additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional name - /// (optional) - /// ApiResponse of MaskProfileSchemaDTO - ApiResponse MasksGetProfileForClasseBoxWithHttpInfo (string additionalFieldName, ProfileDTO profile = null); - /// - /// This call returns the profile schema by a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// MaskProfileSchemaDTO - MaskProfileSchemaDTO MasksGetProfileSchemaByMaskId (string maskId); - - /// - /// This call returns the profile schema by a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// ApiResponse of MaskProfileSchemaDTO - ApiResponse MasksGetProfileSchemaByMaskIdWithHttpInfo (string maskId); - /// - /// This call returns the profile schema by a mask and a variables mapping - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// MaskProfileSchemaDTO - MaskProfileSchemaDTO MasksGetProfileSchemaByMaskIdAndMappings (string maskId, ProcessVariablesMappingDTO mapping = null); - - /// - /// This call returns the profile schema by a mask and a variables mapping - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// ApiResponse of MaskProfileSchemaDTO - ApiResponse MasksGetProfileSchemaByMaskIdAndMappingsWithHttpInfo (string maskId, ProcessVariablesMappingDTO mapping = null); - /// - /// This call returns the root mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// MaskDTO - MaskDTO MasksGetRoot (); - - /// - /// This call returns the root mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of MaskDTO - ApiResponse MasksGetRootWithHttpInfo (); - /// - /// This call inserts a new mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// MaskDTO - MaskDTO MasksInsertMask (MaskDTO mask = null); - - /// - /// This call inserts a new mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of MaskDTO - ApiResponse MasksInsertMaskWithHttpInfo (MaskDTO mask = null); - /// - /// This call executes a new profiling - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// ProfileResultDTO - ProfileResultDTO MasksPost (string maskId, ProfileDTO profile = null); - - /// - /// This call executes a new profiling - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// ApiResponse of ProfileResultDTO - ApiResponse MasksPostWithHttpInfo (string maskId, ProfileDTO profile = null); - /// - /// This call updates the permissions for a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Permissions to update - /// - void MasksSetPermission (string maskId, PermissionsDTO permissions); - - /// - /// This call updates the permissions for a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Permissions to update - /// ApiResponse of Object(void) - ApiResponse MasksSetPermissionWithHttpInfo (string maskId, PermissionsDTO permissions); - /// - /// This call updates a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// MaskDTO - MaskDTO MasksUpdateMask (string id, MaskDTO mask = null); - - /// - /// This call updates a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// ApiResponse of MaskDTO - ApiResponse MasksUpdateMaskWithHttpInfo (string id, MaskDTO mask = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// Tells if the mask can be upgraded to advanced - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of bool? - System.Threading.Tasks.Task MasksCanUpgradeToAdvancedAsync (string maskId); - - /// - /// Tells if the mask can be upgraded to advanced - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> MasksCanUpgradeToAdvancedAsyncWithHttpInfo (string maskId); - /// - /// This call clones a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Options to use for cloning - /// Task of void - System.Threading.Tasks.Task MasksCloneMaskAsync (string id, MaskCloneOptionsDto cloneOptions); - - /// - /// This call clones a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Options to use for cloning - /// Task of ApiResponse - System.Threading.Tasks.Task> MasksCloneMaskAsyncWithHttpInfo (string id, MaskCloneOptionsDto cloneOptions); - /// - /// This call deletes a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of Object - System.Threading.Tasks.Task MasksDeleteAsync (string id); - - /// - /// This call deletes a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> MasksDeleteAsyncWithHttpInfo (string id); - /// - /// This call returns a mask by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of MaskDTO - System.Threading.Tasks.Task MasksGetByIdAsync (string id); - - /// - /// This call returns a mask by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of ApiResponse (MaskDTO) - System.Threading.Tasks.Task> MasksGetByIdAsyncWithHttpInfo (string id); - /// - /// This call returns all possibile Document Types for a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// Task of List<DocumentTypeBaseDTO> - System.Threading.Tasks.Task> MasksGetDocumentTypesByMaskIdAsync (string maskId, string businessUnitCode = null); - - /// - /// This call returns all possibile Document Types for a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// Task of ApiResponse (List<DocumentTypeBaseDTO>) - System.Threading.Tasks.Task>> MasksGetDocumentTypesByMaskIdAsyncWithHttpInfo (string maskId, string businessUnitCode = null); - /// - /// This call returns all possibile Document Types for a mask - /// - /// - /// This method is deprecated. Use api/Masks/{maskId}/DocumentTypes?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// Task of List<DocumentTypeBaseDTO> - System.Threading.Tasks.Task> MasksGetDocumentTypesByMaskIdOldAsync (string maskId, string businessUnitCode); - - /// - /// This call returns all possibile Document Types for a mask - /// - /// - /// This method is deprecated. Use api/Masks/{maskId}/DocumentTypes?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// Task of ApiResponse (List<DocumentTypeBaseDTO>) - System.Threading.Tasks.Task>> MasksGetDocumentTypesByMaskIdOldAsyncWithHttpInfo (string maskId, string businessUnitCode); - /// - /// This call returns all possibile Document Types for a mask (tree format) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// Task of DocumentTypeBaseTreeDTO - System.Threading.Tasks.Task MasksGetDocumentTypesTreeByMaskIdAsync (string maskId, string businessUnitCode = null); - - /// - /// This call returns all possibile Document Types for a mask (tree format) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// Task of ApiResponse (DocumentTypeBaseTreeDTO) - System.Threading.Tasks.Task> MasksGetDocumentTypesTreeByMaskIdAsyncWithHttpInfo (string maskId, string businessUnitCode = null); - /// - /// This call returns all possibile Document Types for a mask (tree format) - /// - /// - /// This method is deprecated. Use api/Masks/{maskId}/DocumentTypesTree?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// Task of DocumentTypeBaseTreeDTO - System.Threading.Tasks.Task MasksGetDocumentTypesTreeByMaskIdOldAsync (string maskId, string businessUnitCode); - - /// - /// This call returns all possibile Document Types for a mask (tree format) - /// - /// - /// This method is deprecated. Use api/Masks/{maskId}/DocumentTypesTree?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// Task of ApiResponse (DocumentTypeBaseTreeDTO) - System.Threading.Tasks.Task> MasksGetDocumentTypesTreeByMaskIdOldAsyncWithHttpInfo (string maskId, string businessUnitCode); - /// - /// This call returns possibile fields by a Document Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of List<MaskDetailDTO> - System.Threading.Tasks.Task> MasksGetFieldsByClasseAsync (int? systemid); - - /// - /// This call returns possibile fields by a Document Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of ApiResponse (List<MaskDetailDTO>) - System.Threading.Tasks.Task>> MasksGetFieldsByClasseAsyncWithHttpInfo (int? systemid); - /// - /// This call returns all masks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<MaskDTO> - System.Threading.Tasks.Task> MasksGetListAsync (); - - /// - /// This call returns all masks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<MaskDTO>) - System.Threading.Tasks.Task>> MasksGetListAsyncWithHttpInfo (); - /// - /// This call returns the permissions for a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of PermissionsDTO - System.Threading.Tasks.Task MasksGetPermissionAsync (string maskId); - - /// - /// This call returns the permissions for a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of ApiResponse (PermissionsDTO) - System.Threading.Tasks.Task> MasksGetPermissionAsyncWithHttpInfo (string maskId); - /// - /// This calls returns the profile schema for a mask associated to a class additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional name - /// (optional) - /// Task of MaskProfileSchemaDTO - System.Threading.Tasks.Task MasksGetProfileForClasseBoxAsync (string additionalFieldName, ProfileDTO profile = null); - - /// - /// This calls returns the profile schema for a mask associated to a class additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional name - /// (optional) - /// Task of ApiResponse (MaskProfileSchemaDTO) - System.Threading.Tasks.Task> MasksGetProfileForClasseBoxAsyncWithHttpInfo (string additionalFieldName, ProfileDTO profile = null); - /// - /// This call returns the profile schema by a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of MaskProfileSchemaDTO - System.Threading.Tasks.Task MasksGetProfileSchemaByMaskIdAsync (string maskId); - - /// - /// This call returns the profile schema by a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of ApiResponse (MaskProfileSchemaDTO) - System.Threading.Tasks.Task> MasksGetProfileSchemaByMaskIdAsyncWithHttpInfo (string maskId); - /// - /// This call returns the profile schema by a mask and a variables mapping - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// Task of MaskProfileSchemaDTO - System.Threading.Tasks.Task MasksGetProfileSchemaByMaskIdAndMappingsAsync (string maskId, ProcessVariablesMappingDTO mapping = null); - - /// - /// This call returns the profile schema by a mask and a variables mapping - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// Task of ApiResponse (MaskProfileSchemaDTO) - System.Threading.Tasks.Task> MasksGetProfileSchemaByMaskIdAndMappingsAsyncWithHttpInfo (string maskId, ProcessVariablesMappingDTO mapping = null); - /// - /// This call returns the root mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of MaskDTO - System.Threading.Tasks.Task MasksGetRootAsync (); - - /// - /// This call returns the root mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (MaskDTO) - System.Threading.Tasks.Task> MasksGetRootAsyncWithHttpInfo (); - /// - /// This call inserts a new mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of MaskDTO - System.Threading.Tasks.Task MasksInsertMaskAsync (MaskDTO mask = null); - - /// - /// This call inserts a new mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (MaskDTO) - System.Threading.Tasks.Task> MasksInsertMaskAsyncWithHttpInfo (MaskDTO mask = null); - /// - /// This call executes a new profiling - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// Task of ProfileResultDTO - System.Threading.Tasks.Task MasksPostAsync (string maskId, ProfileDTO profile = null); - - /// - /// This call executes a new profiling - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - System.Threading.Tasks.Task> MasksPostAsyncWithHttpInfo (string maskId, ProfileDTO profile = null); - /// - /// This call updates the permissions for a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Permissions to update - /// Task of void - System.Threading.Tasks.Task MasksSetPermissionAsync (string maskId, PermissionsDTO permissions); - - /// - /// This call updates the permissions for a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Permissions to update - /// Task of ApiResponse - System.Threading.Tasks.Task> MasksSetPermissionAsyncWithHttpInfo (string maskId, PermissionsDTO permissions); - /// - /// This call updates a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// Task of MaskDTO - System.Threading.Tasks.Task MasksUpdateMaskAsync (string id, MaskDTO mask = null); - - /// - /// This call updates a mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// Task of ApiResponse (MaskDTO) - System.Threading.Tasks.Task> MasksUpdateMaskAsyncWithHttpInfo (string id, MaskDTO mask = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class MasksApi : IMasksApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public MasksApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public MasksApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// Tells if the mask can be upgraded to advanced - /// - /// Thrown when fails to make API call - /// - /// bool? - public bool? MasksCanUpgradeToAdvanced (string maskId) - { - ApiResponse localVarResponse = MasksCanUpgradeToAdvancedWithHttpInfo(maskId); - return localVarResponse.Data; - } - - /// - /// Tells if the mask can be upgraded to advanced - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of bool? - public ApiResponse< bool? > MasksCanUpgradeToAdvancedWithHttpInfo (string maskId) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksCanUpgradeToAdvanced"); - - var localVarPath = "/api/Masks/{maskId}/CanUpgradeToAdvanced"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksCanUpgradeToAdvanced", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// Tells if the mask can be upgraded to advanced - /// - /// Thrown when fails to make API call - /// - /// Task of bool? - public async System.Threading.Tasks.Task MasksCanUpgradeToAdvancedAsync (string maskId) - { - ApiResponse localVarResponse = await MasksCanUpgradeToAdvancedAsyncWithHttpInfo(maskId); - return localVarResponse.Data; - - } - - /// - /// Tells if the mask can be upgraded to advanced - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> MasksCanUpgradeToAdvancedAsyncWithHttpInfo (string maskId) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksCanUpgradeToAdvanced"); - - var localVarPath = "/api/Masks/{maskId}/CanUpgradeToAdvanced"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksCanUpgradeToAdvanced", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call clones a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Options to use for cloning - /// - public void MasksCloneMask (string id, MaskCloneOptionsDto cloneOptions) - { - MasksCloneMaskWithHttpInfo(id, cloneOptions); - } - - /// - /// This call clones a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Options to use for cloning - /// ApiResponse of Object(void) - public ApiResponse MasksCloneMaskWithHttpInfo (string id, MaskCloneOptionsDto cloneOptions) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling MasksApi->MasksCloneMask"); - // verify the required parameter 'cloneOptions' is set - if (cloneOptions == null) - throw new ApiException(400, "Missing required parameter 'cloneOptions' when calling MasksApi->MasksCloneMask"); - - var localVarPath = "/api/Masks/{id}/Clone"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (cloneOptions != null && cloneOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(cloneOptions); // http body (model) parameter - } - else - { - localVarPostBody = cloneOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksCloneMask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call clones a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Options to use for cloning - /// Task of void - public async System.Threading.Tasks.Task MasksCloneMaskAsync (string id, MaskCloneOptionsDto cloneOptions) - { - await MasksCloneMaskAsyncWithHttpInfo(id, cloneOptions); - - } - - /// - /// This call clones a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Options to use for cloning - /// Task of ApiResponse - public async System.Threading.Tasks.Task> MasksCloneMaskAsyncWithHttpInfo (string id, MaskCloneOptionsDto cloneOptions) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling MasksApi->MasksCloneMask"); - // verify the required parameter 'cloneOptions' is set - if (cloneOptions == null) - throw new ApiException(400, "Missing required parameter 'cloneOptions' when calling MasksApi->MasksCloneMask"); - - var localVarPath = "/api/Masks/{id}/Clone"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (cloneOptions != null && cloneOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(cloneOptions); // http body (model) parameter - } - else - { - localVarPostBody = cloneOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksCloneMask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Object - public Object MasksDelete (string id) - { - ApiResponse localVarResponse = MasksDeleteWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call deletes a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// ApiResponse of Object - public ApiResponse< Object > MasksDeleteWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling MasksApi->MasksDelete"); - - var localVarPath = "/api/Masks/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call deletes a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of Object - public async System.Threading.Tasks.Task MasksDeleteAsync (string id) - { - ApiResponse localVarResponse = await MasksDeleteAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call deletes a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> MasksDeleteAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling MasksApi->MasksDelete"); - - var localVarPath = "/api/Masks/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns a mask by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// MaskDTO - public MaskDTO MasksGetById (string id) - { - ApiResponse localVarResponse = MasksGetByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns a mask by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// ApiResponse of MaskDTO - public ApiResponse< MaskDTO > MasksGetByIdWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling MasksApi->MasksGetById"); - - var localVarPath = "/api/Masks/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskDTO))); - } - - /// - /// This call returns a mask by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of MaskDTO - public async System.Threading.Tasks.Task MasksGetByIdAsync (string id) - { - ApiResponse localVarResponse = await MasksGetByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns a mask by its identifier - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of ApiResponse (MaskDTO) - public async System.Threading.Tasks.Task> MasksGetByIdAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling MasksApi->MasksGetById"); - - var localVarPath = "/api/Masks/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskDTO))); - } - - /// - /// This call returns all possibile Document Types for a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// List<DocumentTypeBaseDTO> - public List MasksGetDocumentTypesByMaskId (string maskId, string businessUnitCode = null) - { - ApiResponse> localVarResponse = MasksGetDocumentTypesByMaskIdWithHttpInfo(maskId, businessUnitCode); - return localVarResponse.Data; - } - - /// - /// This call returns all possibile Document Types for a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// ApiResponse of List<DocumentTypeBaseDTO> - public ApiResponse< List > MasksGetDocumentTypesByMaskIdWithHttpInfo (string maskId, string businessUnitCode = null) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksGetDocumentTypesByMaskId"); - - var localVarPath = "/api/Masks/{maskId}/DocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetDocumentTypesByMaskId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all possibile Document Types for a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// Task of List<DocumentTypeBaseDTO> - public async System.Threading.Tasks.Task> MasksGetDocumentTypesByMaskIdAsync (string maskId, string businessUnitCode = null) - { - ApiResponse> localVarResponse = await MasksGetDocumentTypesByMaskIdAsyncWithHttpInfo(maskId, businessUnitCode); - return localVarResponse.Data; - - } - - /// - /// This call returns all possibile Document Types for a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// Task of ApiResponse (List<DocumentTypeBaseDTO>) - public async System.Threading.Tasks.Task>> MasksGetDocumentTypesByMaskIdAsyncWithHttpInfo (string maskId, string businessUnitCode = null) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksGetDocumentTypesByMaskId"); - - var localVarPath = "/api/Masks/{maskId}/DocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetDocumentTypesByMaskId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all possibile Document Types for a mask This method is deprecated. Use api/Masks/{maskId}/DocumentTypes?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// List<DocumentTypeBaseDTO> - public List MasksGetDocumentTypesByMaskIdOld (string maskId, string businessUnitCode) - { - ApiResponse> localVarResponse = MasksGetDocumentTypesByMaskIdOldWithHttpInfo(maskId, businessUnitCode); - return localVarResponse.Data; - } - - /// - /// This call returns all possibile Document Types for a mask This method is deprecated. Use api/Masks/{maskId}/DocumentTypes?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// ApiResponse of List<DocumentTypeBaseDTO> - public ApiResponse< List > MasksGetDocumentTypesByMaskIdOldWithHttpInfo (string maskId, string businessUnitCode) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksGetDocumentTypesByMaskIdOld"); - // verify the required parameter 'businessUnitCode' is set - if (businessUnitCode == null) - throw new ApiException(400, "Missing required parameter 'businessUnitCode' when calling MasksApi->MasksGetDocumentTypesByMaskIdOld"); - - var localVarPath = "/api/Masks/{maskId}/DocumentTypes/{businessUnitCode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (businessUnitCode != null) localVarPathParams.Add("businessUnitCode", this.Configuration.ApiClient.ParameterToString(businessUnitCode)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetDocumentTypesByMaskIdOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all possibile Document Types for a mask This method is deprecated. Use api/Masks/{maskId}/DocumentTypes?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// Task of List<DocumentTypeBaseDTO> - public async System.Threading.Tasks.Task> MasksGetDocumentTypesByMaskIdOldAsync (string maskId, string businessUnitCode) - { - ApiResponse> localVarResponse = await MasksGetDocumentTypesByMaskIdOldAsyncWithHttpInfo(maskId, businessUnitCode); - return localVarResponse.Data; - - } - - /// - /// This call returns all possibile Document Types for a mask This method is deprecated. Use api/Masks/{maskId}/DocumentTypes?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// Task of ApiResponse (List<DocumentTypeBaseDTO>) - public async System.Threading.Tasks.Task>> MasksGetDocumentTypesByMaskIdOldAsyncWithHttpInfo (string maskId, string businessUnitCode) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksGetDocumentTypesByMaskIdOld"); - // verify the required parameter 'businessUnitCode' is set - if (businessUnitCode == null) - throw new ApiException(400, "Missing required parameter 'businessUnitCode' when calling MasksApi->MasksGetDocumentTypesByMaskIdOld"); - - var localVarPath = "/api/Masks/{maskId}/DocumentTypes/{businessUnitCode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (businessUnitCode != null) localVarPathParams.Add("businessUnitCode", this.Configuration.ApiClient.ParameterToString(businessUnitCode)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetDocumentTypesByMaskIdOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all possibile Document Types for a mask (tree format) - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// DocumentTypeBaseTreeDTO - public DocumentTypeBaseTreeDTO MasksGetDocumentTypesTreeByMaskId (string maskId, string businessUnitCode = null) - { - ApiResponse localVarResponse = MasksGetDocumentTypesTreeByMaskIdWithHttpInfo(maskId, businessUnitCode); - return localVarResponse.Data; - } - - /// - /// This call returns all possibile Document Types for a mask (tree format) - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// ApiResponse of DocumentTypeBaseTreeDTO - public ApiResponse< DocumentTypeBaseTreeDTO > MasksGetDocumentTypesTreeByMaskIdWithHttpInfo (string maskId, string businessUnitCode = null) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksGetDocumentTypesTreeByMaskId"); - - var localVarPath = "/api/Masks/{maskId}/DocumentTypesTree"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetDocumentTypesTreeByMaskId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeBaseTreeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeBaseTreeDTO))); - } - - /// - /// This call returns all possibile Document Types for a mask (tree format) - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// Task of DocumentTypeBaseTreeDTO - public async System.Threading.Tasks.Task MasksGetDocumentTypesTreeByMaskIdAsync (string maskId, string businessUnitCode = null) - { - ApiResponse localVarResponse = await MasksGetDocumentTypesTreeByMaskIdAsyncWithHttpInfo(maskId, businessUnitCode); - return localVarResponse.Data; - - } - - /// - /// This call returns all possibile Document Types for a mask (tree format) - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code (optional) - /// Task of ApiResponse (DocumentTypeBaseTreeDTO) - public async System.Threading.Tasks.Task> MasksGetDocumentTypesTreeByMaskIdAsyncWithHttpInfo (string maskId, string businessUnitCode = null) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksGetDocumentTypesTreeByMaskId"); - - var localVarPath = "/api/Masks/{maskId}/DocumentTypesTree"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetDocumentTypesTreeByMaskId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeBaseTreeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeBaseTreeDTO))); - } - - /// - /// This call returns all possibile Document Types for a mask (tree format) This method is deprecated. Use api/Masks/{maskId}/DocumentTypesTree?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// DocumentTypeBaseTreeDTO - public DocumentTypeBaseTreeDTO MasksGetDocumentTypesTreeByMaskIdOld (string maskId, string businessUnitCode) - { - ApiResponse localVarResponse = MasksGetDocumentTypesTreeByMaskIdOldWithHttpInfo(maskId, businessUnitCode); - return localVarResponse.Data; - } - - /// - /// This call returns all possibile Document Types for a mask (tree format) This method is deprecated. Use api/Masks/{maskId}/DocumentTypesTree?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// ApiResponse of DocumentTypeBaseTreeDTO - public ApiResponse< DocumentTypeBaseTreeDTO > MasksGetDocumentTypesTreeByMaskIdOldWithHttpInfo (string maskId, string businessUnitCode) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksGetDocumentTypesTreeByMaskIdOld"); - // verify the required parameter 'businessUnitCode' is set - if (businessUnitCode == null) - throw new ApiException(400, "Missing required parameter 'businessUnitCode' when calling MasksApi->MasksGetDocumentTypesTreeByMaskIdOld"); - - var localVarPath = "/api/Masks/{maskId}/DocumentTypesTree/{businessUnitCode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (businessUnitCode != null) localVarPathParams.Add("businessUnitCode", this.Configuration.ApiClient.ParameterToString(businessUnitCode)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetDocumentTypesTreeByMaskIdOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeBaseTreeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeBaseTreeDTO))); - } - - /// - /// This call returns all possibile Document Types for a mask (tree format) This method is deprecated. Use api/Masks/{maskId}/DocumentTypesTree?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// Task of DocumentTypeBaseTreeDTO - public async System.Threading.Tasks.Task MasksGetDocumentTypesTreeByMaskIdOldAsync (string maskId, string businessUnitCode) - { - ApiResponse localVarResponse = await MasksGetDocumentTypesTreeByMaskIdOldAsyncWithHttpInfo(maskId, businessUnitCode); - return localVarResponse.Data; - - } - - /// - /// This call returns all possibile Document Types for a mask (tree format) This method is deprecated. Use api/Masks/{maskId}/DocumentTypesTree?businessunitcode={businessunitcode} - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Business Unit Code - /// Task of ApiResponse (DocumentTypeBaseTreeDTO) - public async System.Threading.Tasks.Task> MasksGetDocumentTypesTreeByMaskIdOldAsyncWithHttpInfo (string maskId, string businessUnitCode) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksGetDocumentTypesTreeByMaskIdOld"); - // verify the required parameter 'businessUnitCode' is set - if (businessUnitCode == null) - throw new ApiException(400, "Missing required parameter 'businessUnitCode' when calling MasksApi->MasksGetDocumentTypesTreeByMaskIdOld"); - - var localVarPath = "/api/Masks/{maskId}/DocumentTypesTree/{businessUnitCode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (businessUnitCode != null) localVarPathParams.Add("businessUnitCode", this.Configuration.ApiClient.ParameterToString(businessUnitCode)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetDocumentTypesTreeByMaskIdOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeBaseTreeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeBaseTreeDTO))); - } - - /// - /// This call returns possibile fields by a Document Type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// List<MaskDetailDTO> - public List MasksGetFieldsByClasse (int? systemid) - { - ApiResponse> localVarResponse = MasksGetFieldsByClasseWithHttpInfo(systemid); - return localVarResponse.Data; - } - - /// - /// This call returns possibile fields by a Document Type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// ApiResponse of List<MaskDetailDTO> - public ApiResponse< List > MasksGetFieldsByClasseWithHttpInfo (int? systemid) - { - // verify the required parameter 'systemid' is set - if (systemid == null) - throw new ApiException(400, "Missing required parameter 'systemid' when calling MasksApi->MasksGetFieldsByClasse"); - - var localVarPath = "/api/Masks/fieldsbydocumenttype/{systemid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (systemid != null) localVarPathParams.Add("systemid", this.Configuration.ApiClient.ParameterToString(systemid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetFieldsByClasse", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns possibile fields by a Document Type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of List<MaskDetailDTO> - public async System.Threading.Tasks.Task> MasksGetFieldsByClasseAsync (int? systemid) - { - ApiResponse> localVarResponse = await MasksGetFieldsByClasseAsyncWithHttpInfo(systemid); - return localVarResponse.Data; - - } - - /// - /// This call returns possibile fields by a Document Type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of ApiResponse (List<MaskDetailDTO>) - public async System.Threading.Tasks.Task>> MasksGetFieldsByClasseAsyncWithHttpInfo (int? systemid) - { - // verify the required parameter 'systemid' is set - if (systemid == null) - throw new ApiException(400, "Missing required parameter 'systemid' when calling MasksApi->MasksGetFieldsByClasse"); - - var localVarPath = "/api/Masks/fieldsbydocumenttype/{systemid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (systemid != null) localVarPathParams.Add("systemid", this.Configuration.ApiClient.ParameterToString(systemid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetFieldsByClasse", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all masks - /// - /// Thrown when fails to make API call - /// List<MaskDTO> - public List MasksGetList () - { - ApiResponse> localVarResponse = MasksGetListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all masks - /// - /// Thrown when fails to make API call - /// ApiResponse of List<MaskDTO> - public ApiResponse< List > MasksGetListWithHttpInfo () - { - - var localVarPath = "/api/Masks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all masks - /// - /// Thrown when fails to make API call - /// Task of List<MaskDTO> - public async System.Threading.Tasks.Task> MasksGetListAsync () - { - ApiResponse> localVarResponse = await MasksGetListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all masks - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<MaskDTO>) - public async System.Threading.Tasks.Task>> MasksGetListAsyncWithHttpInfo () - { - - var localVarPath = "/api/Masks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the permissions for a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// PermissionsDTO - public PermissionsDTO MasksGetPermission (string maskId) - { - ApiResponse localVarResponse = MasksGetPermissionWithHttpInfo(maskId); - return localVarResponse.Data; - } - - /// - /// This call returns the permissions for a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// ApiResponse of PermissionsDTO - public ApiResponse< PermissionsDTO > MasksGetPermissionWithHttpInfo (string maskId) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksGetPermission"); - - var localVarPath = "/api/Masks/{maskId}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call returns the permissions for a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of PermissionsDTO - public async System.Threading.Tasks.Task MasksGetPermissionAsync (string maskId) - { - ApiResponse localVarResponse = await MasksGetPermissionAsyncWithHttpInfo(maskId); - return localVarResponse.Data; - - } - - /// - /// This call returns the permissions for a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of ApiResponse (PermissionsDTO) - public async System.Threading.Tasks.Task> MasksGetPermissionAsyncWithHttpInfo (string maskId) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksGetPermission"); - - var localVarPath = "/api/Masks/{maskId}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This calls returns the profile schema for a mask associated to a class additional field - /// - /// Thrown when fails to make API call - /// Additional name - /// (optional) - /// MaskProfileSchemaDTO - public MaskProfileSchemaDTO MasksGetProfileForClasseBox (string additionalFieldName, ProfileDTO profile = null) - { - ApiResponse localVarResponse = MasksGetProfileForClasseBoxWithHttpInfo(additionalFieldName, profile); - return localVarResponse.Data; - } - - /// - /// This calls returns the profile schema for a mask associated to a class additional field - /// - /// Thrown when fails to make API call - /// Additional name - /// (optional) - /// ApiResponse of MaskProfileSchemaDTO - public ApiResponse< MaskProfileSchemaDTO > MasksGetProfileForClasseBoxWithHttpInfo (string additionalFieldName, ProfileDTO profile = null) - { - // verify the required parameter 'additionalFieldName' is set - if (additionalFieldName == null) - throw new ApiException(400, "Missing required parameter 'additionalFieldName' when calling MasksApi->MasksGetProfileForClasseBox"); - - var localVarPath = "/api/Masks/byclassadditionalfield/{additionalFieldName}/profileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (additionalFieldName != null) localVarPathParams.Add("additionalFieldName", this.Configuration.ApiClient.ParameterToString(additionalFieldName)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetProfileForClasseBox", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This calls returns the profile schema for a mask associated to a class additional field - /// - /// Thrown when fails to make API call - /// Additional name - /// (optional) - /// Task of MaskProfileSchemaDTO - public async System.Threading.Tasks.Task MasksGetProfileForClasseBoxAsync (string additionalFieldName, ProfileDTO profile = null) - { - ApiResponse localVarResponse = await MasksGetProfileForClasseBoxAsyncWithHttpInfo(additionalFieldName, profile); - return localVarResponse.Data; - - } - - /// - /// This calls returns the profile schema for a mask associated to a class additional field - /// - /// Thrown when fails to make API call - /// Additional name - /// (optional) - /// Task of ApiResponse (MaskProfileSchemaDTO) - public async System.Threading.Tasks.Task> MasksGetProfileForClasseBoxAsyncWithHttpInfo (string additionalFieldName, ProfileDTO profile = null) - { - // verify the required parameter 'additionalFieldName' is set - if (additionalFieldName == null) - throw new ApiException(400, "Missing required parameter 'additionalFieldName' when calling MasksApi->MasksGetProfileForClasseBox"); - - var localVarPath = "/api/Masks/byclassadditionalfield/{additionalFieldName}/profileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (additionalFieldName != null) localVarPathParams.Add("additionalFieldName", this.Configuration.ApiClient.ParameterToString(additionalFieldName)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetProfileForClasseBox", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns the profile schema by a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// MaskProfileSchemaDTO - public MaskProfileSchemaDTO MasksGetProfileSchemaByMaskId (string maskId) - { - ApiResponse localVarResponse = MasksGetProfileSchemaByMaskIdWithHttpInfo(maskId); - return localVarResponse.Data; - } - - /// - /// This call returns the profile schema by a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// ApiResponse of MaskProfileSchemaDTO - public ApiResponse< MaskProfileSchemaDTO > MasksGetProfileSchemaByMaskIdWithHttpInfo (string maskId) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksGetProfileSchemaByMaskId"); - - var localVarPath = "/api/Masks/{maskId}/profileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetProfileSchemaByMaskId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns the profile schema by a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of MaskProfileSchemaDTO - public async System.Threading.Tasks.Task MasksGetProfileSchemaByMaskIdAsync (string maskId) - { - ApiResponse localVarResponse = await MasksGetProfileSchemaByMaskIdAsyncWithHttpInfo(maskId); - return localVarResponse.Data; - - } - - /// - /// This call returns the profile schema by a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Task of ApiResponse (MaskProfileSchemaDTO) - public async System.Threading.Tasks.Task> MasksGetProfileSchemaByMaskIdAsyncWithHttpInfo (string maskId) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksGetProfileSchemaByMaskId"); - - var localVarPath = "/api/Masks/{maskId}/profileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetProfileSchemaByMaskId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns the profile schema by a mask and a variables mapping - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// MaskProfileSchemaDTO - public MaskProfileSchemaDTO MasksGetProfileSchemaByMaskIdAndMappings (string maskId, ProcessVariablesMappingDTO mapping = null) - { - ApiResponse localVarResponse = MasksGetProfileSchemaByMaskIdAndMappingsWithHttpInfo(maskId, mapping); - return localVarResponse.Data; - } - - /// - /// This call returns the profile schema by a mask and a variables mapping - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// ApiResponse of MaskProfileSchemaDTO - public ApiResponse< MaskProfileSchemaDTO > MasksGetProfileSchemaByMaskIdAndMappingsWithHttpInfo (string maskId, ProcessVariablesMappingDTO mapping = null) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksGetProfileSchemaByMaskIdAndMappings"); - - var localVarPath = "/api/Masks/{maskId}/profileSchemaWithMappings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (mapping != null && mapping.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mapping); // http body (model) parameter - } - else - { - localVarPostBody = mapping; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetProfileSchemaByMaskIdAndMappings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns the profile schema by a mask and a variables mapping - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// Task of MaskProfileSchemaDTO - public async System.Threading.Tasks.Task MasksGetProfileSchemaByMaskIdAndMappingsAsync (string maskId, ProcessVariablesMappingDTO mapping = null) - { - ApiResponse localVarResponse = await MasksGetProfileSchemaByMaskIdAndMappingsAsyncWithHttpInfo(maskId, mapping); - return localVarResponse.Data; - - } - - /// - /// This call returns the profile schema by a mask and a variables mapping - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// Task of ApiResponse (MaskProfileSchemaDTO) - public async System.Threading.Tasks.Task> MasksGetProfileSchemaByMaskIdAndMappingsAsyncWithHttpInfo (string maskId, ProcessVariablesMappingDTO mapping = null) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksGetProfileSchemaByMaskIdAndMappings"); - - var localVarPath = "/api/Masks/{maskId}/profileSchemaWithMappings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (mapping != null && mapping.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mapping); // http body (model) parameter - } - else - { - localVarPostBody = mapping; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetProfileSchemaByMaskIdAndMappings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns the root mask - /// - /// Thrown when fails to make API call - /// MaskDTO - public MaskDTO MasksGetRoot () - { - ApiResponse localVarResponse = MasksGetRootWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the root mask - /// - /// Thrown when fails to make API call - /// ApiResponse of MaskDTO - public ApiResponse< MaskDTO > MasksGetRootWithHttpInfo () - { - - var localVarPath = "/api/Masks/root"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetRoot", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskDTO))); - } - - /// - /// This call returns the root mask - /// - /// Thrown when fails to make API call - /// Task of MaskDTO - public async System.Threading.Tasks.Task MasksGetRootAsync () - { - ApiResponse localVarResponse = await MasksGetRootAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the root mask - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (MaskDTO) - public async System.Threading.Tasks.Task> MasksGetRootAsyncWithHttpInfo () - { - - var localVarPath = "/api/Masks/root"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksGetRoot", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskDTO))); - } - - /// - /// This call inserts a new mask - /// - /// Thrown when fails to make API call - /// (optional) - /// MaskDTO - public MaskDTO MasksInsertMask (MaskDTO mask = null) - { - ApiResponse localVarResponse = MasksInsertMaskWithHttpInfo(mask); - return localVarResponse.Data; - } - - /// - /// This call inserts a new mask - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of MaskDTO - public ApiResponse< MaskDTO > MasksInsertMaskWithHttpInfo (MaskDTO mask = null) - { - - var localVarPath = "/api/Masks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mask != null && mask.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mask); // http body (model) parameter - } - else - { - localVarPostBody = mask; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksInsertMask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskDTO))); - } - - /// - /// This call inserts a new mask - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of MaskDTO - public async System.Threading.Tasks.Task MasksInsertMaskAsync (MaskDTO mask = null) - { - ApiResponse localVarResponse = await MasksInsertMaskAsyncWithHttpInfo(mask); - return localVarResponse.Data; - - } - - /// - /// This call inserts a new mask - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (MaskDTO) - public async System.Threading.Tasks.Task> MasksInsertMaskAsyncWithHttpInfo (MaskDTO mask = null) - { - - var localVarPath = "/api/Masks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mask != null && mask.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mask); // http body (model) parameter - } - else - { - localVarPostBody = mask; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksInsertMask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskDTO))); - } - - /// - /// This call executes a new profiling - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// ProfileResultDTO - public ProfileResultDTO MasksPost (string maskId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = MasksPostWithHttpInfo(maskId, profile); - return localVarResponse.Data; - } - - /// - /// This call executes a new profiling - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// ApiResponse of ProfileResultDTO - public ApiResponse< ProfileResultDTO > MasksPostWithHttpInfo (string maskId, ProfileDTO profile = null) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksPost"); - - var localVarPath = "/api/Masks/{maskId}/Profile"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call executes a new profiling - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// Task of ProfileResultDTO - public async System.Threading.Tasks.Task MasksPostAsync (string maskId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = await MasksPostAsyncWithHttpInfo(maskId, profile); - return localVarResponse.Data; - - } - - /// - /// This call executes a new profiling - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - public async System.Threading.Tasks.Task> MasksPostAsyncWithHttpInfo (string maskId, ProfileDTO profile = null) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksPost"); - - var localVarPath = "/api/Masks/{maskId}/Profile"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call updates the permissions for a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Permissions to update - /// - public void MasksSetPermission (string maskId, PermissionsDTO permissions) - { - MasksSetPermissionWithHttpInfo(maskId, permissions); - } - - /// - /// This call updates the permissions for a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Permissions to update - /// ApiResponse of Object(void) - public ApiResponse MasksSetPermissionWithHttpInfo (string maskId, PermissionsDTO permissions) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksSetPermission"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling MasksApi->MasksSetPermission"); - - var localVarPath = "/api/Masks/{maskId}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksSetPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates the permissions for a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Permissions to update - /// Task of void - public async System.Threading.Tasks.Task MasksSetPermissionAsync (string maskId, PermissionsDTO permissions) - { - await MasksSetPermissionAsyncWithHttpInfo(maskId, permissions); - - } - - /// - /// This call updates the permissions for a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Permissions to update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> MasksSetPermissionAsyncWithHttpInfo (string maskId, PermissionsDTO permissions) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling MasksApi->MasksSetPermission"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling MasksApi->MasksSetPermission"); - - var localVarPath = "/api/Masks/{maskId}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksSetPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// MaskDTO - public MaskDTO MasksUpdateMask (string id, MaskDTO mask = null) - { - ApiResponse localVarResponse = MasksUpdateMaskWithHttpInfo(id, mask); - return localVarResponse.Data; - } - - /// - /// This call updates a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// ApiResponse of MaskDTO - public ApiResponse< MaskDTO > MasksUpdateMaskWithHttpInfo (string id, MaskDTO mask = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling MasksApi->MasksUpdateMask"); - - var localVarPath = "/api/Masks/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (mask != null && mask.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mask); // http body (model) parameter - } - else - { - localVarPostBody = mask; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksUpdateMask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskDTO))); - } - - /// - /// This call updates a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// Task of MaskDTO - public async System.Threading.Tasks.Task MasksUpdateMaskAsync (string id, MaskDTO mask = null) - { - ApiResponse localVarResponse = await MasksUpdateMaskAsyncWithHttpInfo(id, mask); - return localVarResponse.Data; - - } - - /// - /// This call updates a mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// (optional) - /// Task of ApiResponse (MaskDTO) - public async System.Threading.Tasks.Task> MasksUpdateMaskAsyncWithHttpInfo (string id, MaskDTO mask = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling MasksApi->MasksUpdateMask"); - - var localVarPath = "/api/Masks/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (mask != null && mask.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mask); // http body (model) parameter - } - else - { - localVarPostBody = mask; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksUpdateMask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/MassiveChangeApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/MassiveChangeApi.cs deleted file mode 100644 index 53983dc..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/MassiveChangeApi.cs +++ /dev/null @@ -1,544 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IMassiveChangeApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns if is possible to start a specific profiles massive change - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request with profiles for massive change - /// MassiveChangeCanExecuteResult - MassiveChangeCanExecuteResult MassiveChangeCanExecute (MassiveChangeCanExecuteRequest massiveChangeCanExecuteRequest); - - /// - /// This call returns if is possible to start a specific profiles massive change - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request with profiles for massive change - /// ApiResponse of MassiveChangeCanExecuteResult - ApiResponse MassiveChangeCanExecuteWithHttpInfo (MassiveChangeCanExecuteRequest massiveChangeCanExecuteRequest); - /// - /// This call insert new massive change in the system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// MassiveChangeResponseDTO - MassiveChangeResponseDTO MassiveChangeInsertNewMassiveChange (MassiveChangeRequestDTO massivechangerequest = null); - - /// - /// This call insert new massive change in the system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of MassiveChangeResponseDTO - ApiResponse MassiveChangeInsertNewMassiveChangeWithHttpInfo (MassiveChangeRequestDTO massivechangerequest = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns if is possible to start a specific profiles massive change - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request with profiles for massive change - /// Task of MassiveChangeCanExecuteResult - System.Threading.Tasks.Task MassiveChangeCanExecuteAsync (MassiveChangeCanExecuteRequest massiveChangeCanExecuteRequest); - - /// - /// This call returns if is possible to start a specific profiles massive change - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request with profiles for massive change - /// Task of ApiResponse (MassiveChangeCanExecuteResult) - System.Threading.Tasks.Task> MassiveChangeCanExecuteAsyncWithHttpInfo (MassiveChangeCanExecuteRequest massiveChangeCanExecuteRequest); - /// - /// This call insert new massive change in the system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of MassiveChangeResponseDTO - System.Threading.Tasks.Task MassiveChangeInsertNewMassiveChangeAsync (MassiveChangeRequestDTO massivechangerequest = null); - - /// - /// This call insert new massive change in the system - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (MassiveChangeResponseDTO) - System.Threading.Tasks.Task> MassiveChangeInsertNewMassiveChangeAsyncWithHttpInfo (MassiveChangeRequestDTO massivechangerequest = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class MassiveChangeApi : IMassiveChangeApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public MassiveChangeApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public MassiveChangeApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns if is possible to start a specific profiles massive change - /// - /// Thrown when fails to make API call - /// Request with profiles for massive change - /// MassiveChangeCanExecuteResult - public MassiveChangeCanExecuteResult MassiveChangeCanExecute (MassiveChangeCanExecuteRequest massiveChangeCanExecuteRequest) - { - ApiResponse localVarResponse = MassiveChangeCanExecuteWithHttpInfo(massiveChangeCanExecuteRequest); - return localVarResponse.Data; - } - - /// - /// This call returns if is possible to start a specific profiles massive change - /// - /// Thrown when fails to make API call - /// Request with profiles for massive change - /// ApiResponse of MassiveChangeCanExecuteResult - public ApiResponse< MassiveChangeCanExecuteResult > MassiveChangeCanExecuteWithHttpInfo (MassiveChangeCanExecuteRequest massiveChangeCanExecuteRequest) - { - // verify the required parameter 'massiveChangeCanExecuteRequest' is set - if (massiveChangeCanExecuteRequest == null) - throw new ApiException(400, "Missing required parameter 'massiveChangeCanExecuteRequest' when calling MassiveChangeApi->MassiveChangeCanExecute"); - - var localVarPath = "/api/MassiveChange/canExecute"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (massiveChangeCanExecuteRequest != null && massiveChangeCanExecuteRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(massiveChangeCanExecuteRequest); // http body (model) parameter - } - else - { - localVarPostBody = massiveChangeCanExecuteRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MassiveChangeCanExecute", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MassiveChangeCanExecuteResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MassiveChangeCanExecuteResult))); - } - - /// - /// This call returns if is possible to start a specific profiles massive change - /// - /// Thrown when fails to make API call - /// Request with profiles for massive change - /// Task of MassiveChangeCanExecuteResult - public async System.Threading.Tasks.Task MassiveChangeCanExecuteAsync (MassiveChangeCanExecuteRequest massiveChangeCanExecuteRequest) - { - ApiResponse localVarResponse = await MassiveChangeCanExecuteAsyncWithHttpInfo(massiveChangeCanExecuteRequest); - return localVarResponse.Data; - - } - - /// - /// This call returns if is possible to start a specific profiles massive change - /// - /// Thrown when fails to make API call - /// Request with profiles for massive change - /// Task of ApiResponse (MassiveChangeCanExecuteResult) - public async System.Threading.Tasks.Task> MassiveChangeCanExecuteAsyncWithHttpInfo (MassiveChangeCanExecuteRequest massiveChangeCanExecuteRequest) - { - // verify the required parameter 'massiveChangeCanExecuteRequest' is set - if (massiveChangeCanExecuteRequest == null) - throw new ApiException(400, "Missing required parameter 'massiveChangeCanExecuteRequest' when calling MassiveChangeApi->MassiveChangeCanExecute"); - - var localVarPath = "/api/MassiveChange/canExecute"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (massiveChangeCanExecuteRequest != null && massiveChangeCanExecuteRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(massiveChangeCanExecuteRequest); // http body (model) parameter - } - else - { - localVarPostBody = massiveChangeCanExecuteRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MassiveChangeCanExecute", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MassiveChangeCanExecuteResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MassiveChangeCanExecuteResult))); - } - - /// - /// This call insert new massive change in the system - /// - /// Thrown when fails to make API call - /// (optional) - /// MassiveChangeResponseDTO - public MassiveChangeResponseDTO MassiveChangeInsertNewMassiveChange (MassiveChangeRequestDTO massivechangerequest = null) - { - ApiResponse localVarResponse = MassiveChangeInsertNewMassiveChangeWithHttpInfo(massivechangerequest); - return localVarResponse.Data; - } - - /// - /// This call insert new massive change in the system - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of MassiveChangeResponseDTO - public ApiResponse< MassiveChangeResponseDTO > MassiveChangeInsertNewMassiveChangeWithHttpInfo (MassiveChangeRequestDTO massivechangerequest = null) - { - - var localVarPath = "/api/MassiveChange"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (massivechangerequest != null && massivechangerequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(massivechangerequest); // http body (model) parameter - } - else - { - localVarPostBody = massivechangerequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MassiveChangeInsertNewMassiveChange", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MassiveChangeResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MassiveChangeResponseDTO))); - } - - /// - /// This call insert new massive change in the system - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of MassiveChangeResponseDTO - public async System.Threading.Tasks.Task MassiveChangeInsertNewMassiveChangeAsync (MassiveChangeRequestDTO massivechangerequest = null) - { - ApiResponse localVarResponse = await MassiveChangeInsertNewMassiveChangeAsyncWithHttpInfo(massivechangerequest); - return localVarResponse.Data; - - } - - /// - /// This call insert new massive change in the system - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (MassiveChangeResponseDTO) - public async System.Threading.Tasks.Task> MassiveChangeInsertNewMassiveChangeAsyncWithHttpInfo (MassiveChangeRequestDTO massivechangerequest = null) - { - - var localVarPath = "/api/MassiveChange"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (massivechangerequest != null && massivechangerequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(massivechangerequest); // http body (model) parameter - } - else - { - localVarPostBody = massivechangerequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MassiveChangeInsertNewMassiveChange", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MassiveChangeResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MassiveChangeResponseDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ModelsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ModelsApi.cs deleted file mode 100644 index 69933a9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ModelsApi.cs +++ /dev/null @@ -1,2462 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IModelsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call allows to cancel the editing of a document created by model profilation in order to generate the first revision of the document itself - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - void ModelsCancelPostArchiveModelEdit (int? docnumber); - - /// - /// This call allows to cancel the editing of a document created by model profilation in order to generate the first revision of the document itself - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of Object(void) - ApiResponse ModelsCancelPostArchiveModelEditWithHttpInfo (int? docnumber); - /// - /// This call deletes a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Object - Object ModelsDelete (int? id); - - /// - /// This call deletes a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ApiResponse of Object - ApiResponse ModelsDeleteWithHttpInfo (int? id); - /// - /// This call returns the template preview file for a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Object - Object ModelsGetForModelPreviewTemplate (int? id); - - /// - /// This call returns the template preview file for a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ApiResponse of Object - ApiResponse ModelsGetForModelPreviewTemplateWithHttpInfo (int? id); - /// - /// This call retrieves the template file for a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Object - Object ModelsGetForModelTemplate (int? modelId); - - /// - /// This call retrieves the template file for a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ApiResponse of Object - ApiResponse ModelsGetForModelTemplateWithHttpInfo (int? modelId); - /// - /// This call returns model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ModelConfigurationDTO - ModelConfigurationDTO ModelsGetModelById (int? id); - - /// - /// This call returns model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ApiResponse of ModelConfigurationDTO - ApiResponse ModelsGetModelByIdWithHttpInfo (int? id); - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<ModelDTO> - List ModelsGetModelsList (); - - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ModelDTO> - ApiResponse> ModelsGetModelsListWithHttpInfo (); - /// - /// This call returns permissions of model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// PermissionsDTO - PermissionsDTO ModelsGetPermission (int? id); - - /// - /// This call returns permissions of model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ApiResponse of PermissionsDTO - ApiResponse ModelsGetPermissionWithHttpInfo (int? id); - /// - /// This call returns a profile schema for a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ModelProfileSchemaDTO - ModelProfileSchemaDTO ModelsGetProfileSchemaByModelId (int? modelId); - - /// - /// This call returns a profile schema for a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ApiResponse of ModelProfileSchemaDTO - ApiResponse ModelsGetProfileSchemaByModelIdWithHttpInfo (int? modelId); - /// - /// This call inserts a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// - void ModelsInsertModel (ModelConfigurationDTO model = null); - - /// - /// This call inserts a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - ApiResponse ModelsInsertModelWithHttpInfo (ModelConfigurationDTO model = null); - /// - /// This call executes a new profiling by model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// ProfileResultDTO - ProfileResultDTO ModelsPost (int? modelId, ProfileDTO profile = null); - - /// - /// This call executes a new profiling by model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// ApiResponse of ProfileResultDTO - ApiResponse ModelsPostWithHttpInfo (int? modelId, ProfileDTO profile = null); - /// - /// This call sets model's permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Permissions data - /// - void ModelsSetPermission (int? id, PermissionsDTO permissions); - - /// - /// This call sets model's permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Permissions data - /// ApiResponse of Object(void) - ApiResponse ModelsSetPermissionWithHttpInfo (int? id, PermissionsDTO permissions); - /// - /// This call updates a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// - void ModelsUpdateModel (int? id, ModelConfigurationDTO model = null); - - /// - /// This call updates a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// ApiResponse of Object(void) - ApiResponse ModelsUpdateModelWithHttpInfo (int? id, ModelConfigurationDTO model = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call allows to cancel the editing of a document created by model profilation in order to generate the first revision of the document itself - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of void - System.Threading.Tasks.Task ModelsCancelPostArchiveModelEditAsync (int? docnumber); - - /// - /// This call allows to cancel the editing of a document created by model profilation in order to generate the first revision of the document itself - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> ModelsCancelPostArchiveModelEditAsyncWithHttpInfo (int? docnumber); - /// - /// This call deletes a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of Object - System.Threading.Tasks.Task ModelsDeleteAsync (int? id); - - /// - /// This call deletes a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ModelsDeleteAsyncWithHttpInfo (int? id); - /// - /// This call returns the template preview file for a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of Object - System.Threading.Tasks.Task ModelsGetForModelPreviewTemplateAsync (int? id); - - /// - /// This call returns the template preview file for a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ModelsGetForModelPreviewTemplateAsyncWithHttpInfo (int? id); - /// - /// This call retrieves the template file for a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of Object - System.Threading.Tasks.Task ModelsGetForModelTemplateAsync (int? modelId); - - /// - /// This call retrieves the template file for a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ModelsGetForModelTemplateAsyncWithHttpInfo (int? modelId); - /// - /// This call returns model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ModelConfigurationDTO - System.Threading.Tasks.Task ModelsGetModelByIdAsync (int? id); - - /// - /// This call returns model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ApiResponse (ModelConfigurationDTO) - System.Threading.Tasks.Task> ModelsGetModelByIdAsyncWithHttpInfo (int? id); - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<ModelDTO> - System.Threading.Tasks.Task> ModelsGetModelsListAsync (); - - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ModelDTO>) - System.Threading.Tasks.Task>> ModelsGetModelsListAsyncWithHttpInfo (); - /// - /// This call returns permissions of model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of PermissionsDTO - System.Threading.Tasks.Task ModelsGetPermissionAsync (int? id); - - /// - /// This call returns permissions of model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ApiResponse (PermissionsDTO) - System.Threading.Tasks.Task> ModelsGetPermissionAsyncWithHttpInfo (int? id); - /// - /// This call returns a profile schema for a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ModelProfileSchemaDTO - System.Threading.Tasks.Task ModelsGetProfileSchemaByModelIdAsync (int? modelId); - - /// - /// This call returns a profile schema for a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ApiResponse (ModelProfileSchemaDTO) - System.Threading.Tasks.Task> ModelsGetProfileSchemaByModelIdAsyncWithHttpInfo (int? modelId); - /// - /// This call inserts a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - System.Threading.Tasks.Task ModelsInsertModelAsync (ModelConfigurationDTO model = null); - - /// - /// This call inserts a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - System.Threading.Tasks.Task> ModelsInsertModelAsyncWithHttpInfo (ModelConfigurationDTO model = null); - /// - /// This call executes a new profiling by model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// Task of ProfileResultDTO - System.Threading.Tasks.Task ModelsPostAsync (int? modelId, ProfileDTO profile = null); - - /// - /// This call executes a new profiling by model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - System.Threading.Tasks.Task> ModelsPostAsyncWithHttpInfo (int? modelId, ProfileDTO profile = null); - /// - /// This call sets model's permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Permissions data - /// Task of void - System.Threading.Tasks.Task ModelsSetPermissionAsync (int? id, PermissionsDTO permissions); - - /// - /// This call sets model's permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Permissions data - /// Task of ApiResponse - System.Threading.Tasks.Task> ModelsSetPermissionAsyncWithHttpInfo (int? id, PermissionsDTO permissions); - /// - /// This call updates a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// Task of void - System.Threading.Tasks.Task ModelsUpdateModelAsync (int? id, ModelConfigurationDTO model = null); - - /// - /// This call updates a model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// Task of ApiResponse - System.Threading.Tasks.Task> ModelsUpdateModelAsyncWithHttpInfo (int? id, ModelConfigurationDTO model = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ModelsApi : IModelsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ModelsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ModelsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call allows to cancel the editing of a document created by model profilation in order to generate the first revision of the document itself - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - public void ModelsCancelPostArchiveModelEdit (int? docnumber) - { - ModelsCancelPostArchiveModelEditWithHttpInfo(docnumber); - } - - /// - /// This call allows to cancel the editing of a document created by model profilation in order to generate the first revision of the document itself - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of Object(void) - public ApiResponse ModelsCancelPostArchiveModelEditWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling ModelsApi->ModelsCancelPostArchiveModelEdit"); - - var localVarPath = "/api/Models/canceledit/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsCancelPostArchiveModelEdit", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows to cancel the editing of a document created by model profilation in order to generate the first revision of the document itself - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of void - public async System.Threading.Tasks.Task ModelsCancelPostArchiveModelEditAsync (int? docnumber) - { - await ModelsCancelPostArchiveModelEditAsyncWithHttpInfo(docnumber); - - } - - /// - /// This call allows to cancel the editing of a document created by model profilation in order to generate the first revision of the document itself - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ModelsCancelPostArchiveModelEditAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling ModelsApi->ModelsCancelPostArchiveModelEdit"); - - var localVarPath = "/api/Models/canceledit/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsCancelPostArchiveModelEdit", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Object - public Object ModelsDelete (int? id) - { - ApiResponse localVarResponse = ModelsDeleteWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call deletes a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ApiResponse of Object - public ApiResponse< Object > ModelsDeleteWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ModelsApi->ModelsDelete"); - - var localVarPath = "/api/Models/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call deletes a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of Object - public async System.Threading.Tasks.Task ModelsDeleteAsync (int? id) - { - ApiResponse localVarResponse = await ModelsDeleteAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call deletes a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ModelsDeleteAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ModelsApi->ModelsDelete"); - - var localVarPath = "/api/Models/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the template preview file for a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Object - public Object ModelsGetForModelPreviewTemplate (int? id) - { - ApiResponse localVarResponse = ModelsGetForModelPreviewTemplateWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns the template preview file for a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ApiResponse of Object - public ApiResponse< Object > ModelsGetForModelPreviewTemplateWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ModelsApi->ModelsGetForModelPreviewTemplate"); - - var localVarPath = "/api/Models/previewTemplate/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsGetForModelPreviewTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the template preview file for a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of Object - public async System.Threading.Tasks.Task ModelsGetForModelPreviewTemplateAsync (int? id) - { - ApiResponse localVarResponse = await ModelsGetForModelPreviewTemplateAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns the template preview file for a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ModelsGetForModelPreviewTemplateAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ModelsApi->ModelsGetForModelPreviewTemplate"); - - var localVarPath = "/api/Models/previewTemplate/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsGetForModelPreviewTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call retrieves the template file for a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Object - public Object ModelsGetForModelTemplate (int? modelId) - { - ApiResponse localVarResponse = ModelsGetForModelTemplateWithHttpInfo(modelId); - return localVarResponse.Data; - } - - /// - /// This call retrieves the template file for a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ApiResponse of Object - public ApiResponse< Object > ModelsGetForModelTemplateWithHttpInfo (int? modelId) - { - // verify the required parameter 'modelId' is set - if (modelId == null) - throw new ApiException(400, "Missing required parameter 'modelId' when calling ModelsApi->ModelsGetForModelTemplate"); - - var localVarPath = "/api/Models/template/{modelId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (modelId != null) localVarPathParams.Add("modelId", this.Configuration.ApiClient.ParameterToString(modelId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsGetForModelTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call retrieves the template file for a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of Object - public async System.Threading.Tasks.Task ModelsGetForModelTemplateAsync (int? modelId) - { - ApiResponse localVarResponse = await ModelsGetForModelTemplateAsyncWithHttpInfo(modelId); - return localVarResponse.Data; - - } - - /// - /// This call retrieves the template file for a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ModelsGetForModelTemplateAsyncWithHttpInfo (int? modelId) - { - // verify the required parameter 'modelId' is set - if (modelId == null) - throw new ApiException(400, "Missing required parameter 'modelId' when calling ModelsApi->ModelsGetForModelTemplate"); - - var localVarPath = "/api/Models/template/{modelId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (modelId != null) localVarPathParams.Add("modelId", this.Configuration.ApiClient.ParameterToString(modelId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsGetForModelTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ModelConfigurationDTO - public ModelConfigurationDTO ModelsGetModelById (int? id) - { - ApiResponse localVarResponse = ModelsGetModelByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ApiResponse of ModelConfigurationDTO - public ApiResponse< ModelConfigurationDTO > ModelsGetModelByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ModelsApi->ModelsGetModelById"); - - var localVarPath = "/api/Models/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsGetModelById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ModelConfigurationDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelConfigurationDTO))); - } - - /// - /// This call returns model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ModelConfigurationDTO - public async System.Threading.Tasks.Task ModelsGetModelByIdAsync (int? id) - { - ApiResponse localVarResponse = await ModelsGetModelByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ApiResponse (ModelConfigurationDTO) - public async System.Threading.Tasks.Task> ModelsGetModelByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ModelsApi->ModelsGetModelById"); - - var localVarPath = "/api/Models/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsGetModelById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ModelConfigurationDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelConfigurationDTO))); - } - - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// Thrown when fails to make API call - /// List<ModelDTO> - public List ModelsGetModelsList () - { - ApiResponse> localVarResponse = ModelsGetModelsListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ModelDTO> - public ApiResponse< List > ModelsGetModelsListWithHttpInfo () - { - - var localVarPath = "/api/Models"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsGetModelsList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// Thrown when fails to make API call - /// Task of List<ModelDTO> - public async System.Threading.Tasks.Task> ModelsGetModelsListAsync () - { - ApiResponse> localVarResponse = await ModelsGetModelsListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ModelDTO>) - public async System.Threading.Tasks.Task>> ModelsGetModelsListAsyncWithHttpInfo () - { - - var localVarPath = "/api/Models"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsGetModelsList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns permissions of model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// PermissionsDTO - public PermissionsDTO ModelsGetPermission (int? id) - { - ApiResponse localVarResponse = ModelsGetPermissionWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns permissions of model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ApiResponse of PermissionsDTO - public ApiResponse< PermissionsDTO > ModelsGetPermissionWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ModelsApi->ModelsGetPermission"); - - var localVarPath = "/api/Models/{id}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsGetPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call returns permissions of model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of PermissionsDTO - public async System.Threading.Tasks.Task ModelsGetPermissionAsync (int? id) - { - ApiResponse localVarResponse = await ModelsGetPermissionAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns permissions of model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ApiResponse (PermissionsDTO) - public async System.Threading.Tasks.Task> ModelsGetPermissionAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ModelsApi->ModelsGetPermission"); - - var localVarPath = "/api/Models/{id}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsGetPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call returns a profile schema for a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ModelProfileSchemaDTO - public ModelProfileSchemaDTO ModelsGetProfileSchemaByModelId (int? modelId) - { - ApiResponse localVarResponse = ModelsGetProfileSchemaByModelIdWithHttpInfo(modelId); - return localVarResponse.Data; - } - - /// - /// This call returns a profile schema for a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// ApiResponse of ModelProfileSchemaDTO - public ApiResponse< ModelProfileSchemaDTO > ModelsGetProfileSchemaByModelIdWithHttpInfo (int? modelId) - { - // verify the required parameter 'modelId' is set - if (modelId == null) - throw new ApiException(400, "Missing required parameter 'modelId' when calling ModelsApi->ModelsGetProfileSchemaByModelId"); - - var localVarPath = "/api/Models/{modelId}/profileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (modelId != null) localVarPathParams.Add("modelId", this.Configuration.ApiClient.ParameterToString(modelId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsGetProfileSchemaByModelId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ModelProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelProfileSchemaDTO))); - } - - /// - /// This call returns a profile schema for a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ModelProfileSchemaDTO - public async System.Threading.Tasks.Task ModelsGetProfileSchemaByModelIdAsync (int? modelId) - { - ApiResponse localVarResponse = await ModelsGetProfileSchemaByModelIdAsyncWithHttpInfo(modelId); - return localVarResponse.Data; - - } - - /// - /// This call returns a profile schema for a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Task of ApiResponse (ModelProfileSchemaDTO) - public async System.Threading.Tasks.Task> ModelsGetProfileSchemaByModelIdAsyncWithHttpInfo (int? modelId) - { - // verify the required parameter 'modelId' is set - if (modelId == null) - throw new ApiException(400, "Missing required parameter 'modelId' when calling ModelsApi->ModelsGetProfileSchemaByModelId"); - - var localVarPath = "/api/Models/{modelId}/profileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (modelId != null) localVarPathParams.Add("modelId", this.Configuration.ApiClient.ParameterToString(modelId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsGetProfileSchemaByModelId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ModelProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelProfileSchemaDTO))); - } - - /// - /// This call inserts a model - /// - /// Thrown when fails to make API call - /// (optional) - /// - public void ModelsInsertModel (ModelConfigurationDTO model = null) - { - ModelsInsertModelWithHttpInfo(model); - } - - /// - /// This call inserts a model - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - public ApiResponse ModelsInsertModelWithHttpInfo (ModelConfigurationDTO model = null) - { - - var localVarPath = "/api/Models"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsInsertModel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts a model - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - public async System.Threading.Tasks.Task ModelsInsertModelAsync (ModelConfigurationDTO model = null) - { - await ModelsInsertModelAsyncWithHttpInfo(model); - - } - - /// - /// This call inserts a model - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ModelsInsertModelAsyncWithHttpInfo (ModelConfigurationDTO model = null) - { - - var localVarPath = "/api/Models"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsInsertModel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call executes a new profiling by model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// ProfileResultDTO - public ProfileResultDTO ModelsPost (int? modelId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = ModelsPostWithHttpInfo(modelId, profile); - return localVarResponse.Data; - } - - /// - /// This call executes a new profiling by model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// ApiResponse of ProfileResultDTO - public ApiResponse< ProfileResultDTO > ModelsPostWithHttpInfo (int? modelId, ProfileDTO profile = null) - { - // verify the required parameter 'modelId' is set - if (modelId == null) - throw new ApiException(400, "Missing required parameter 'modelId' when calling ModelsApi->ModelsPost"); - - var localVarPath = "/api/Models/{modelId}/Profile"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (modelId != null) localVarPathParams.Add("modelId", this.Configuration.ApiClient.ParameterToString(modelId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call executes a new profiling by model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// Task of ProfileResultDTO - public async System.Threading.Tasks.Task ModelsPostAsync (int? modelId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = await ModelsPostAsyncWithHttpInfo(modelId, profile); - return localVarResponse.Data; - - } - - /// - /// This call executes a new profiling by model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - public async System.Threading.Tasks.Task> ModelsPostAsyncWithHttpInfo (int? modelId, ProfileDTO profile = null) - { - // verify the required parameter 'modelId' is set - if (modelId == null) - throw new ApiException(400, "Missing required parameter 'modelId' when calling ModelsApi->ModelsPost"); - - var localVarPath = "/api/Models/{modelId}/Profile"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (modelId != null) localVarPathParams.Add("modelId", this.Configuration.ApiClient.ParameterToString(modelId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call sets model's permissions - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Permissions data - /// - public void ModelsSetPermission (int? id, PermissionsDTO permissions) - { - ModelsSetPermissionWithHttpInfo(id, permissions); - } - - /// - /// This call sets model's permissions - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Permissions data - /// ApiResponse of Object(void) - public ApiResponse ModelsSetPermissionWithHttpInfo (int? id, PermissionsDTO permissions) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ModelsApi->ModelsSetPermission"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling ModelsApi->ModelsSetPermission"); - - var localVarPath = "/api/Models/{id}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsSetPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets model's permissions - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Permissions data - /// Task of void - public async System.Threading.Tasks.Task ModelsSetPermissionAsync (int? id, PermissionsDTO permissions) - { - await ModelsSetPermissionAsyncWithHttpInfo(id, permissions); - - } - - /// - /// This call sets model's permissions - /// - /// Thrown when fails to make API call - /// Model Identifier - /// Permissions data - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ModelsSetPermissionAsyncWithHttpInfo (int? id, PermissionsDTO permissions) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ModelsApi->ModelsSetPermission"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling ModelsApi->ModelsSetPermission"); - - var localVarPath = "/api/Models/{id}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsSetPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// - public void ModelsUpdateModel (int? id, ModelConfigurationDTO model = null) - { - ModelsUpdateModelWithHttpInfo(id, model); - } - - /// - /// This call updates a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// ApiResponse of Object(void) - public ApiResponse ModelsUpdateModelWithHttpInfo (int? id, ModelConfigurationDTO model = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ModelsApi->ModelsUpdateModel"); - - var localVarPath = "/api/Models/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsUpdateModel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// Task of void - public async System.Threading.Tasks.Task ModelsUpdateModelAsync (int? id, ModelConfigurationDTO model = null) - { - await ModelsUpdateModelAsyncWithHttpInfo(id, model); - - } - - /// - /// This call updates a model - /// - /// Thrown when fails to make API call - /// Model Identifier - /// (optional) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ModelsUpdateModelAsyncWithHttpInfo (int? id, ModelConfigurationDTO model = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ModelsApi->ModelsUpdateModel"); - - var localVarPath = "/api/Models/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ModelsUpdateModel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/MonitoredFoldersApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/MonitoredFoldersApi.cs deleted file mode 100644 index d9bf9c7..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/MonitoredFoldersApi.cs +++ /dev/null @@ -1,1107 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IMonitoredFoldersApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the monitored folders by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// MonitoredFolderDTO - MonitoredFolderDTO MonitoredFoldersGetById (string monitoredFolderId); - - /// - /// This call returns the monitored folders by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of MonitoredFolderDTO - ApiResponse MonitoredFoldersGetByIdWithHttpInfo (string monitoredFolderId); - /// - /// This call returns all the monitored folders for a user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<MonitoredFolderDTO> - List MonitoredFoldersGetByUserId (); - - /// - /// This call returns all the monitored folders for a user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<MonitoredFolderDTO> - ApiResponse> MonitoredFoldersGetByUserIdWithHttpInfo (); - /// - /// This call deletes a monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void MonitoredFoldersMonitoredFolderDelete (string monitoredFolderId); - - /// - /// This call deletes a monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse MonitoredFoldersMonitoredFolderDeleteWithHttpInfo (string monitoredFolderId); - /// - /// This call insert new monitored folder for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// MonitoredFolderDTO - MonitoredFolderDTO MonitoredFoldersMonitoredFolderInsert (MonitoredFolderDTO monitoredFolder); - - /// - /// This call insert new monitored folder for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of MonitoredFolderDTO - ApiResponse MonitoredFoldersMonitoredFolderInsertWithHttpInfo (MonitoredFolderDTO monitoredFolder); - /// - /// This call updates a monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// MonitoredFolderDTO - MonitoredFolderDTO MonitoredFoldersMonitoredFolderUpdate (MonitoredFolderDTO monitoredFolder); - - /// - /// This call updates a monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of MonitoredFolderDTO - ApiResponse MonitoredFoldersMonitoredFolderUpdateWithHttpInfo (MonitoredFolderDTO monitoredFolder); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the monitored folders by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of MonitoredFolderDTO - System.Threading.Tasks.Task MonitoredFoldersGetByIdAsync (string monitoredFolderId); - - /// - /// This call returns the monitored folders by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (MonitoredFolderDTO) - System.Threading.Tasks.Task> MonitoredFoldersGetByIdAsyncWithHttpInfo (string monitoredFolderId); - /// - /// This call returns all the monitored folders for a user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<MonitoredFolderDTO> - System.Threading.Tasks.Task> MonitoredFoldersGetByUserIdAsync (); - - /// - /// This call returns all the monitored folders for a user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<MonitoredFolderDTO>) - System.Threading.Tasks.Task>> MonitoredFoldersGetByUserIdAsyncWithHttpInfo (); - /// - /// This call deletes a monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task MonitoredFoldersMonitoredFolderDeleteAsync (string monitoredFolderId); - - /// - /// This call deletes a monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> MonitoredFoldersMonitoredFolderDeleteAsyncWithHttpInfo (string monitoredFolderId); - /// - /// This call insert new monitored folder for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of MonitoredFolderDTO - System.Threading.Tasks.Task MonitoredFoldersMonitoredFolderInsertAsync (MonitoredFolderDTO monitoredFolder); - - /// - /// This call insert new monitored folder for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (MonitoredFolderDTO) - System.Threading.Tasks.Task> MonitoredFoldersMonitoredFolderInsertAsyncWithHttpInfo (MonitoredFolderDTO monitoredFolder); - /// - /// This call updates a monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of MonitoredFolderDTO - System.Threading.Tasks.Task MonitoredFoldersMonitoredFolderUpdateAsync (MonitoredFolderDTO monitoredFolder); - - /// - /// This call updates a monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (MonitoredFolderDTO) - System.Threading.Tasks.Task> MonitoredFoldersMonitoredFolderUpdateAsyncWithHttpInfo (MonitoredFolderDTO monitoredFolder); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class MonitoredFoldersApi : IMonitoredFoldersApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public MonitoredFoldersApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public MonitoredFoldersApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the monitored folders by its id - /// - /// Thrown when fails to make API call - /// - /// MonitoredFolderDTO - public MonitoredFolderDTO MonitoredFoldersGetById (string monitoredFolderId) - { - ApiResponse localVarResponse = MonitoredFoldersGetByIdWithHttpInfo(monitoredFolderId); - return localVarResponse.Data; - } - - /// - /// This call returns the monitored folders by its id - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of MonitoredFolderDTO - public ApiResponse< MonitoredFolderDTO > MonitoredFoldersGetByIdWithHttpInfo (string monitoredFolderId) - { - // verify the required parameter 'monitoredFolderId' is set - if (monitoredFolderId == null) - throw new ApiException(400, "Missing required parameter 'monitoredFolderId' when calling MonitoredFoldersApi->MonitoredFoldersGetById"); - - var localVarPath = "/api/MonitoredFolders/{monitoredFolderId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFolderId != null) localVarPathParams.Add("monitoredFolderId", this.Configuration.ApiClient.ParameterToString(monitoredFolderId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MonitoredFolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MonitoredFolderDTO))); - } - - /// - /// This call returns the monitored folders by its id - /// - /// Thrown when fails to make API call - /// - /// Task of MonitoredFolderDTO - public async System.Threading.Tasks.Task MonitoredFoldersGetByIdAsync (string monitoredFolderId) - { - ApiResponse localVarResponse = await MonitoredFoldersGetByIdAsyncWithHttpInfo(monitoredFolderId); - return localVarResponse.Data; - - } - - /// - /// This call returns the monitored folders by its id - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (MonitoredFolderDTO) - public async System.Threading.Tasks.Task> MonitoredFoldersGetByIdAsyncWithHttpInfo (string monitoredFolderId) - { - // verify the required parameter 'monitoredFolderId' is set - if (monitoredFolderId == null) - throw new ApiException(400, "Missing required parameter 'monitoredFolderId' when calling MonitoredFoldersApi->MonitoredFoldersGetById"); - - var localVarPath = "/api/MonitoredFolders/{monitoredFolderId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFolderId != null) localVarPathParams.Add("monitoredFolderId", this.Configuration.ApiClient.ParameterToString(monitoredFolderId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MonitoredFolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MonitoredFolderDTO))); - } - - /// - /// This call returns all the monitored folders for a user - /// - /// Thrown when fails to make API call - /// List<MonitoredFolderDTO> - public List MonitoredFoldersGetByUserId () - { - ApiResponse> localVarResponse = MonitoredFoldersGetByUserIdWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all the monitored folders for a user - /// - /// Thrown when fails to make API call - /// ApiResponse of List<MonitoredFolderDTO> - public ApiResponse< List > MonitoredFoldersGetByUserIdWithHttpInfo () - { - - var localVarPath = "/api/MonitoredFolders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersGetByUserId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the monitored folders for a user - /// - /// Thrown when fails to make API call - /// Task of List<MonitoredFolderDTO> - public async System.Threading.Tasks.Task> MonitoredFoldersGetByUserIdAsync () - { - ApiResponse> localVarResponse = await MonitoredFoldersGetByUserIdAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all the monitored folders for a user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<MonitoredFolderDTO>) - public async System.Threading.Tasks.Task>> MonitoredFoldersGetByUserIdAsyncWithHttpInfo () - { - - var localVarPath = "/api/MonitoredFolders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersGetByUserId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call deletes a monitored folder - /// - /// Thrown when fails to make API call - /// - /// - public void MonitoredFoldersMonitoredFolderDelete (string monitoredFolderId) - { - MonitoredFoldersMonitoredFolderDeleteWithHttpInfo(monitoredFolderId); - } - - /// - /// This call deletes a monitored folder - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse MonitoredFoldersMonitoredFolderDeleteWithHttpInfo (string monitoredFolderId) - { - // verify the required parameter 'monitoredFolderId' is set - if (monitoredFolderId == null) - throw new ApiException(400, "Missing required parameter 'monitoredFolderId' when calling MonitoredFoldersApi->MonitoredFoldersMonitoredFolderDelete"); - - var localVarPath = "/api/MonitoredFolders/{monitoredFolderId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFolderId != null) localVarPathParams.Add("monitoredFolderId", this.Configuration.ApiClient.ParameterToString(monitoredFolderId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersMonitoredFolderDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a monitored folder - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task MonitoredFoldersMonitoredFolderDeleteAsync (string monitoredFolderId) - { - await MonitoredFoldersMonitoredFolderDeleteAsyncWithHttpInfo(monitoredFolderId); - - } - - /// - /// This call deletes a monitored folder - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> MonitoredFoldersMonitoredFolderDeleteAsyncWithHttpInfo (string monitoredFolderId) - { - // verify the required parameter 'monitoredFolderId' is set - if (monitoredFolderId == null) - throw new ApiException(400, "Missing required parameter 'monitoredFolderId' when calling MonitoredFoldersApi->MonitoredFoldersMonitoredFolderDelete"); - - var localVarPath = "/api/MonitoredFolders/{monitoredFolderId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFolderId != null) localVarPathParams.Add("monitoredFolderId", this.Configuration.ApiClient.ParameterToString(monitoredFolderId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersMonitoredFolderDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call insert new monitored folder for user - /// - /// Thrown when fails to make API call - /// - /// MonitoredFolderDTO - public MonitoredFolderDTO MonitoredFoldersMonitoredFolderInsert (MonitoredFolderDTO monitoredFolder) - { - ApiResponse localVarResponse = MonitoredFoldersMonitoredFolderInsertWithHttpInfo(monitoredFolder); - return localVarResponse.Data; - } - - /// - /// This call insert new monitored folder for user - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of MonitoredFolderDTO - public ApiResponse< MonitoredFolderDTO > MonitoredFoldersMonitoredFolderInsertWithHttpInfo (MonitoredFolderDTO monitoredFolder) - { - // verify the required parameter 'monitoredFolder' is set - if (monitoredFolder == null) - throw new ApiException(400, "Missing required parameter 'monitoredFolder' when calling MonitoredFoldersApi->MonitoredFoldersMonitoredFolderInsert"); - - var localVarPath = "/api/MonitoredFolders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFolder != null && monitoredFolder.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(monitoredFolder); // http body (model) parameter - } - else - { - localVarPostBody = monitoredFolder; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersMonitoredFolderInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MonitoredFolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MonitoredFolderDTO))); - } - - /// - /// This call insert new monitored folder for user - /// - /// Thrown when fails to make API call - /// - /// Task of MonitoredFolderDTO - public async System.Threading.Tasks.Task MonitoredFoldersMonitoredFolderInsertAsync (MonitoredFolderDTO monitoredFolder) - { - ApiResponse localVarResponse = await MonitoredFoldersMonitoredFolderInsertAsyncWithHttpInfo(monitoredFolder); - return localVarResponse.Data; - - } - - /// - /// This call insert new monitored folder for user - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (MonitoredFolderDTO) - public async System.Threading.Tasks.Task> MonitoredFoldersMonitoredFolderInsertAsyncWithHttpInfo (MonitoredFolderDTO monitoredFolder) - { - // verify the required parameter 'monitoredFolder' is set - if (monitoredFolder == null) - throw new ApiException(400, "Missing required parameter 'monitoredFolder' when calling MonitoredFoldersApi->MonitoredFoldersMonitoredFolderInsert"); - - var localVarPath = "/api/MonitoredFolders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFolder != null && monitoredFolder.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(monitoredFolder); // http body (model) parameter - } - else - { - localVarPostBody = monitoredFolder; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersMonitoredFolderInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MonitoredFolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MonitoredFolderDTO))); - } - - /// - /// This call updates a monitored folder - /// - /// Thrown when fails to make API call - /// - /// MonitoredFolderDTO - public MonitoredFolderDTO MonitoredFoldersMonitoredFolderUpdate (MonitoredFolderDTO monitoredFolder) - { - ApiResponse localVarResponse = MonitoredFoldersMonitoredFolderUpdateWithHttpInfo(monitoredFolder); - return localVarResponse.Data; - } - - /// - /// This call updates a monitored folder - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of MonitoredFolderDTO - public ApiResponse< MonitoredFolderDTO > MonitoredFoldersMonitoredFolderUpdateWithHttpInfo (MonitoredFolderDTO monitoredFolder) - { - // verify the required parameter 'monitoredFolder' is set - if (monitoredFolder == null) - throw new ApiException(400, "Missing required parameter 'monitoredFolder' when calling MonitoredFoldersApi->MonitoredFoldersMonitoredFolderUpdate"); - - var localVarPath = "/api/MonitoredFolders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFolder != null && monitoredFolder.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(monitoredFolder); // http body (model) parameter - } - else - { - localVarPostBody = monitoredFolder; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersMonitoredFolderUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MonitoredFolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MonitoredFolderDTO))); - } - - /// - /// This call updates a monitored folder - /// - /// Thrown when fails to make API call - /// - /// Task of MonitoredFolderDTO - public async System.Threading.Tasks.Task MonitoredFoldersMonitoredFolderUpdateAsync (MonitoredFolderDTO monitoredFolder) - { - ApiResponse localVarResponse = await MonitoredFoldersMonitoredFolderUpdateAsyncWithHttpInfo(monitoredFolder); - return localVarResponse.Data; - - } - - /// - /// This call updates a monitored folder - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (MonitoredFolderDTO) - public async System.Threading.Tasks.Task> MonitoredFoldersMonitoredFolderUpdateAsyncWithHttpInfo (MonitoredFolderDTO monitoredFolder) - { - // verify the required parameter 'monitoredFolder' is set - if (monitoredFolder == null) - throw new ApiException(400, "Missing required parameter 'monitoredFolder' when calling MonitoredFoldersApi->MonitoredFoldersMonitoredFolderUpdate"); - - var localVarPath = "/api/MonitoredFolders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFolder != null && monitoredFolder.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(monitoredFolder); // http body (model) parameter - } - else - { - localVarPostBody = monitoredFolder; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersMonitoredFolderUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MonitoredFolderDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MonitoredFolderDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/MonitoredFoldersDetailsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/MonitoredFoldersDetailsApi.cs deleted file mode 100644 index d72082d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/MonitoredFoldersDetailsApi.cs +++ /dev/null @@ -1,898 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IMonitoredFoldersDetailsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes a monitored folders detail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void MonitoredFoldersDetailsMonitoredFoldersDetailDelete (string monitoredFoldersDetailId); - - /// - /// This call deletes a monitored folders detail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse MonitoredFoldersDetailsMonitoredFoldersDetailDeleteWithHttpInfo (string monitoredFoldersDetailId); - /// - /// This call deletes a monitored folders detail by monitored folder id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void MonitoredFoldersDetailsMonitoredFoldersDetailDeleteByMonitoredFolderId (string monitoredFoldersId); - - /// - /// This call deletes a monitored folders detail by monitored folder id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse MonitoredFoldersDetailsMonitoredFoldersDetailDeleteByMonitoredFolderIdWithHttpInfo (string monitoredFoldersId); - /// - /// This call returns all the monitored folders details for a gover monitored folder id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<MonitoredFolderDetailDTO> - List MonitoredFoldersDetailsMonitoredFoldersDetailGetDataByDmMonitoredfolderId (string monitoredFoldersId); - - /// - /// This call returns all the monitored folders details for a gover monitored folder id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<MonitoredFolderDetailDTO> - ApiResponse> MonitoredFoldersDetailsMonitoredFoldersDetailGetDataByDmMonitoredfolderIdWithHttpInfo (string monitoredFoldersId); - /// - /// This call insert new monitored folders detail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// MonitoredFolderDetailDTO - MonitoredFolderDetailDTO MonitoredFoldersDetailsMonitoredFoldersDetailInsert (MonitoredFolderDetailDTO monitoredFoldersDetail); - - /// - /// This call insert new monitored folders detail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of MonitoredFolderDetailDTO - ApiResponse MonitoredFoldersDetailsMonitoredFoldersDetailInsertWithHttpInfo (MonitoredFolderDetailDTO monitoredFoldersDetail); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes a monitored folders detail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task MonitoredFoldersDetailsMonitoredFoldersDetailDeleteAsync (string monitoredFoldersDetailId); - - /// - /// This call deletes a monitored folders detail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> MonitoredFoldersDetailsMonitoredFoldersDetailDeleteAsyncWithHttpInfo (string monitoredFoldersDetailId); - /// - /// This call deletes a monitored folders detail by monitored folder id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task MonitoredFoldersDetailsMonitoredFoldersDetailDeleteByMonitoredFolderIdAsync (string monitoredFoldersId); - - /// - /// This call deletes a monitored folders detail by monitored folder id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> MonitoredFoldersDetailsMonitoredFoldersDetailDeleteByMonitoredFolderIdAsyncWithHttpInfo (string monitoredFoldersId); - /// - /// This call returns all the monitored folders details for a gover monitored folder id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<MonitoredFolderDetailDTO> - System.Threading.Tasks.Task> MonitoredFoldersDetailsMonitoredFoldersDetailGetDataByDmMonitoredfolderIdAsync (string monitoredFoldersId); - - /// - /// This call returns all the monitored folders details for a gover monitored folder id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<MonitoredFolderDetailDTO>) - System.Threading.Tasks.Task>> MonitoredFoldersDetailsMonitoredFoldersDetailGetDataByDmMonitoredfolderIdAsyncWithHttpInfo (string monitoredFoldersId); - /// - /// This call insert new monitored folders detail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of MonitoredFolderDetailDTO - System.Threading.Tasks.Task MonitoredFoldersDetailsMonitoredFoldersDetailInsertAsync (MonitoredFolderDetailDTO monitoredFoldersDetail); - - /// - /// This call insert new monitored folders detail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (MonitoredFolderDetailDTO) - System.Threading.Tasks.Task> MonitoredFoldersDetailsMonitoredFoldersDetailInsertAsyncWithHttpInfo (MonitoredFolderDetailDTO monitoredFoldersDetail); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class MonitoredFoldersDetailsApi : IMonitoredFoldersDetailsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public MonitoredFoldersDetailsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public MonitoredFoldersDetailsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes a monitored folders detail - /// - /// Thrown when fails to make API call - /// - /// - public void MonitoredFoldersDetailsMonitoredFoldersDetailDelete (string monitoredFoldersDetailId) - { - MonitoredFoldersDetailsMonitoredFoldersDetailDeleteWithHttpInfo(monitoredFoldersDetailId); - } - - /// - /// This call deletes a monitored folders detail - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse MonitoredFoldersDetailsMonitoredFoldersDetailDeleteWithHttpInfo (string monitoredFoldersDetailId) - { - // verify the required parameter 'monitoredFoldersDetailId' is set - if (monitoredFoldersDetailId == null) - throw new ApiException(400, "Missing required parameter 'monitoredFoldersDetailId' when calling MonitoredFoldersDetailsApi->MonitoredFoldersDetailsMonitoredFoldersDetailDelete"); - - var localVarPath = "/api/MonitoredFoldersDetails/{monitoredFoldersDetailId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFoldersDetailId != null) localVarPathParams.Add("monitoredFoldersDetailId", this.Configuration.ApiClient.ParameterToString(monitoredFoldersDetailId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersDetailsMonitoredFoldersDetailDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a monitored folders detail - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task MonitoredFoldersDetailsMonitoredFoldersDetailDeleteAsync (string monitoredFoldersDetailId) - { - await MonitoredFoldersDetailsMonitoredFoldersDetailDeleteAsyncWithHttpInfo(monitoredFoldersDetailId); - - } - - /// - /// This call deletes a monitored folders detail - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> MonitoredFoldersDetailsMonitoredFoldersDetailDeleteAsyncWithHttpInfo (string monitoredFoldersDetailId) - { - // verify the required parameter 'monitoredFoldersDetailId' is set - if (monitoredFoldersDetailId == null) - throw new ApiException(400, "Missing required parameter 'monitoredFoldersDetailId' when calling MonitoredFoldersDetailsApi->MonitoredFoldersDetailsMonitoredFoldersDetailDelete"); - - var localVarPath = "/api/MonitoredFoldersDetails/{monitoredFoldersDetailId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFoldersDetailId != null) localVarPathParams.Add("monitoredFoldersDetailId", this.Configuration.ApiClient.ParameterToString(monitoredFoldersDetailId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersDetailsMonitoredFoldersDetailDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a monitored folders detail by monitored folder id - /// - /// Thrown when fails to make API call - /// - /// - public void MonitoredFoldersDetailsMonitoredFoldersDetailDeleteByMonitoredFolderId (string monitoredFoldersId) - { - MonitoredFoldersDetailsMonitoredFoldersDetailDeleteByMonitoredFolderIdWithHttpInfo(monitoredFoldersId); - } - - /// - /// This call deletes a monitored folders detail by monitored folder id - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse MonitoredFoldersDetailsMonitoredFoldersDetailDeleteByMonitoredFolderIdWithHttpInfo (string monitoredFoldersId) - { - // verify the required parameter 'monitoredFoldersId' is set - if (monitoredFoldersId == null) - throw new ApiException(400, "Missing required parameter 'monitoredFoldersId' when calling MonitoredFoldersDetailsApi->MonitoredFoldersDetailsMonitoredFoldersDetailDeleteByMonitoredFolderId"); - - var localVarPath = "/api/MonitoredFoldersDetails/bymonitoredfolder/{monitoredFoldersId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFoldersId != null) localVarPathParams.Add("monitoredFoldersId", this.Configuration.ApiClient.ParameterToString(monitoredFoldersId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersDetailsMonitoredFoldersDetailDeleteByMonitoredFolderId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a monitored folders detail by monitored folder id - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task MonitoredFoldersDetailsMonitoredFoldersDetailDeleteByMonitoredFolderIdAsync (string monitoredFoldersId) - { - await MonitoredFoldersDetailsMonitoredFoldersDetailDeleteByMonitoredFolderIdAsyncWithHttpInfo(monitoredFoldersId); - - } - - /// - /// This call deletes a monitored folders detail by monitored folder id - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> MonitoredFoldersDetailsMonitoredFoldersDetailDeleteByMonitoredFolderIdAsyncWithHttpInfo (string monitoredFoldersId) - { - // verify the required parameter 'monitoredFoldersId' is set - if (monitoredFoldersId == null) - throw new ApiException(400, "Missing required parameter 'monitoredFoldersId' when calling MonitoredFoldersDetailsApi->MonitoredFoldersDetailsMonitoredFoldersDetailDeleteByMonitoredFolderId"); - - var localVarPath = "/api/MonitoredFoldersDetails/bymonitoredfolder/{monitoredFoldersId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFoldersId != null) localVarPathParams.Add("monitoredFoldersId", this.Configuration.ApiClient.ParameterToString(monitoredFoldersId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersDetailsMonitoredFoldersDetailDeleteByMonitoredFolderId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all the monitored folders details for a gover monitored folder id - /// - /// Thrown when fails to make API call - /// - /// List<MonitoredFolderDetailDTO> - public List MonitoredFoldersDetailsMonitoredFoldersDetailGetDataByDmMonitoredfolderId (string monitoredFoldersId) - { - ApiResponse> localVarResponse = MonitoredFoldersDetailsMonitoredFoldersDetailGetDataByDmMonitoredfolderIdWithHttpInfo(monitoredFoldersId); - return localVarResponse.Data; - } - - /// - /// This call returns all the monitored folders details for a gover monitored folder id - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<MonitoredFolderDetailDTO> - public ApiResponse< List > MonitoredFoldersDetailsMonitoredFoldersDetailGetDataByDmMonitoredfolderIdWithHttpInfo (string monitoredFoldersId) - { - // verify the required parameter 'monitoredFoldersId' is set - if (monitoredFoldersId == null) - throw new ApiException(400, "Missing required parameter 'monitoredFoldersId' when calling MonitoredFoldersDetailsApi->MonitoredFoldersDetailsMonitoredFoldersDetailGetDataByDmMonitoredfolderId"); - - var localVarPath = "/api/MonitoredFoldersDetails/{monitoredFoldersId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFoldersId != null) localVarPathParams.Add("monitoredFoldersId", this.Configuration.ApiClient.ParameterToString(monitoredFoldersId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersDetailsMonitoredFoldersDetailGetDataByDmMonitoredfolderId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the monitored folders details for a gover monitored folder id - /// - /// Thrown when fails to make API call - /// - /// Task of List<MonitoredFolderDetailDTO> - public async System.Threading.Tasks.Task> MonitoredFoldersDetailsMonitoredFoldersDetailGetDataByDmMonitoredfolderIdAsync (string monitoredFoldersId) - { - ApiResponse> localVarResponse = await MonitoredFoldersDetailsMonitoredFoldersDetailGetDataByDmMonitoredfolderIdAsyncWithHttpInfo(monitoredFoldersId); - return localVarResponse.Data; - - } - - /// - /// This call returns all the monitored folders details for a gover monitored folder id - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<MonitoredFolderDetailDTO>) - public async System.Threading.Tasks.Task>> MonitoredFoldersDetailsMonitoredFoldersDetailGetDataByDmMonitoredfolderIdAsyncWithHttpInfo (string monitoredFoldersId) - { - // verify the required parameter 'monitoredFoldersId' is set - if (monitoredFoldersId == null) - throw new ApiException(400, "Missing required parameter 'monitoredFoldersId' when calling MonitoredFoldersDetailsApi->MonitoredFoldersDetailsMonitoredFoldersDetailGetDataByDmMonitoredfolderId"); - - var localVarPath = "/api/MonitoredFoldersDetails/{monitoredFoldersId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFoldersId != null) localVarPathParams.Add("monitoredFoldersId", this.Configuration.ApiClient.ParameterToString(monitoredFoldersId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersDetailsMonitoredFoldersDetailGetDataByDmMonitoredfolderId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call insert new monitored folders detail - /// - /// Thrown when fails to make API call - /// - /// MonitoredFolderDetailDTO - public MonitoredFolderDetailDTO MonitoredFoldersDetailsMonitoredFoldersDetailInsert (MonitoredFolderDetailDTO monitoredFoldersDetail) - { - ApiResponse localVarResponse = MonitoredFoldersDetailsMonitoredFoldersDetailInsertWithHttpInfo(monitoredFoldersDetail); - return localVarResponse.Data; - } - - /// - /// This call insert new monitored folders detail - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of MonitoredFolderDetailDTO - public ApiResponse< MonitoredFolderDetailDTO > MonitoredFoldersDetailsMonitoredFoldersDetailInsertWithHttpInfo (MonitoredFolderDetailDTO monitoredFoldersDetail) - { - // verify the required parameter 'monitoredFoldersDetail' is set - if (monitoredFoldersDetail == null) - throw new ApiException(400, "Missing required parameter 'monitoredFoldersDetail' when calling MonitoredFoldersDetailsApi->MonitoredFoldersDetailsMonitoredFoldersDetailInsert"); - - var localVarPath = "/api/MonitoredFoldersDetails"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFoldersDetail != null && monitoredFoldersDetail.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(monitoredFoldersDetail); // http body (model) parameter - } - else - { - localVarPostBody = monitoredFoldersDetail; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersDetailsMonitoredFoldersDetailInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MonitoredFolderDetailDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MonitoredFolderDetailDTO))); - } - - /// - /// This call insert new monitored folders detail - /// - /// Thrown when fails to make API call - /// - /// Task of MonitoredFolderDetailDTO - public async System.Threading.Tasks.Task MonitoredFoldersDetailsMonitoredFoldersDetailInsertAsync (MonitoredFolderDetailDTO monitoredFoldersDetail) - { - ApiResponse localVarResponse = await MonitoredFoldersDetailsMonitoredFoldersDetailInsertAsyncWithHttpInfo(monitoredFoldersDetail); - return localVarResponse.Data; - - } - - /// - /// This call insert new monitored folders detail - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (MonitoredFolderDetailDTO) - public async System.Threading.Tasks.Task> MonitoredFoldersDetailsMonitoredFoldersDetailInsertAsyncWithHttpInfo (MonitoredFolderDetailDTO monitoredFoldersDetail) - { - // verify the required parameter 'monitoredFoldersDetail' is set - if (monitoredFoldersDetail == null) - throw new ApiException(400, "Missing required parameter 'monitoredFoldersDetail' when calling MonitoredFoldersDetailsApi->MonitoredFoldersDetailsMonitoredFoldersDetailInsert"); - - var localVarPath = "/api/MonitoredFoldersDetails"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (monitoredFoldersDetail != null && monitoredFoldersDetail.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(monitoredFoldersDetail); // http body (model) parameter - } - else - { - localVarPostBody = monitoredFoldersDetail; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersDetailsMonitoredFoldersDetailInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MonitoredFolderDetailDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MonitoredFolderDetailDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/NotesApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/NotesApi.cs deleted file mode 100644 index db40119..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/NotesApi.cs +++ /dev/null @@ -1,1748 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface INotesApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call changes the value for the aos flag of a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// Flag value - /// - void NotesChangeAosFlag (int? noteId, bool? aosFlag); - - /// - /// This call changes the value for the aos flag of a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// Flag value - /// ApiResponse of Object(void) - ApiResponse NotesChangeAosFlagWithHttpInfo (int? noteId, bool? aosFlag); - /// - /// This call deletes a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// - void NotesDeleteById (int? noteId); - - /// - /// This call deletes a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// ApiResponse of Object(void) - ApiResponse NotesDeleteByIdWithHttpInfo (int? noteId); - /// - /// This call returns all the notes for a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber of the profile - /// List<NoteDTO> - List NotesGetByDocnumber (int? docnumber); - - /// - /// This call returns all the notes for a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber of the profile - /// ApiResponse of List<NoteDTO> - ApiResponse> NotesGetByDocnumberWithHttpInfo (int? docnumber); - /// - /// This call returns a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// NoteDTO - NoteDTO NotesGetById (int? id); - - /// - /// This call returns a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// ApiResponse of NoteDTO - ApiResponse NotesGetByIdWithHttpInfo (int? id); - /// - /// This call returns the permissions for a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the note - /// PermissionsDTO - PermissionsDTO NotesGetPermissions (int? noteId); - - /// - /// This call returns the permissions for a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the note - /// ApiResponse of PermissionsDTO - ApiResponse NotesGetPermissionsWithHttpInfo (int? noteId); - /// - /// This call adds new note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note to add - /// NoteDTO - NoteDTO NotesNewNote (NoteDTO note); - - /// - /// This call adds new note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note to add - /// ApiResponse of NoteDTO - ApiResponse NotesNewNoteWithHttpInfo (NoteDTO note); - /// - /// This call updates a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// Note to update - /// NoteDTO - NoteDTO NotesUpdateNote (int? id, NoteDTO note); - - /// - /// This call updates a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// Note to update - /// ApiResponse of NoteDTO - ApiResponse NotesUpdateNoteWithHttpInfo (int? id, NoteDTO note); - /// - /// This call updates the permissions for a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the note - /// Permissions to update - /// - void NotesWritePermissions (int? noteId, PermissionsDTO permissions); - - /// - /// This call updates the permissions for a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the note - /// Permissions to update - /// ApiResponse of Object(void) - ApiResponse NotesWritePermissionsWithHttpInfo (int? noteId, PermissionsDTO permissions); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call changes the value for the aos flag of a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// Flag value - /// Task of void - System.Threading.Tasks.Task NotesChangeAosFlagAsync (int? noteId, bool? aosFlag); - - /// - /// This call changes the value for the aos flag of a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// Flag value - /// Task of ApiResponse - System.Threading.Tasks.Task> NotesChangeAosFlagAsyncWithHttpInfo (int? noteId, bool? aosFlag); - /// - /// This call deletes a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// Task of void - System.Threading.Tasks.Task NotesDeleteByIdAsync (int? noteId); - - /// - /// This call deletes a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> NotesDeleteByIdAsyncWithHttpInfo (int? noteId); - /// - /// This call returns all the notes for a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber of the profile - /// Task of List<NoteDTO> - System.Threading.Tasks.Task> NotesGetByDocnumberAsync (int? docnumber); - - /// - /// This call returns all the notes for a profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber of the profile - /// Task of ApiResponse (List<NoteDTO>) - System.Threading.Tasks.Task>> NotesGetByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call returns a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// Task of NoteDTO - System.Threading.Tasks.Task NotesGetByIdAsync (int? id); - - /// - /// This call returns a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// Task of ApiResponse (NoteDTO) - System.Threading.Tasks.Task> NotesGetByIdAsyncWithHttpInfo (int? id); - /// - /// This call returns the permissions for a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the note - /// Task of PermissionsDTO - System.Threading.Tasks.Task NotesGetPermissionsAsync (int? noteId); - - /// - /// This call returns the permissions for a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the note - /// Task of ApiResponse (PermissionsDTO) - System.Threading.Tasks.Task> NotesGetPermissionsAsyncWithHttpInfo (int? noteId); - /// - /// This call adds new note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note to add - /// Task of NoteDTO - System.Threading.Tasks.Task NotesNewNoteAsync (NoteDTO note); - - /// - /// This call adds new note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note to add - /// Task of ApiResponse (NoteDTO) - System.Threading.Tasks.Task> NotesNewNoteAsyncWithHttpInfo (NoteDTO note); - /// - /// This call updates a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// Note to update - /// Task of NoteDTO - System.Threading.Tasks.Task NotesUpdateNoteAsync (int? id, NoteDTO note); - - /// - /// This call updates a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// Note to update - /// Task of ApiResponse (NoteDTO) - System.Threading.Tasks.Task> NotesUpdateNoteAsyncWithHttpInfo (int? id, NoteDTO note); - /// - /// This call updates the permissions for a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the note - /// Permissions to update - /// Task of void - System.Threading.Tasks.Task NotesWritePermissionsAsync (int? noteId, PermissionsDTO permissions); - - /// - /// This call updates the permissions for a note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the note - /// Permissions to update - /// Task of ApiResponse - System.Threading.Tasks.Task> NotesWritePermissionsAsyncWithHttpInfo (int? noteId, PermissionsDTO permissions); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class NotesApi : INotesApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public NotesApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public NotesApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call changes the value for the aos flag of a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// Flag value - /// - public void NotesChangeAosFlag (int? noteId, bool? aosFlag) - { - NotesChangeAosFlagWithHttpInfo(noteId, aosFlag); - } - - /// - /// This call changes the value for the aos flag of a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// Flag value - /// ApiResponse of Object(void) - public ApiResponse NotesChangeAosFlagWithHttpInfo (int? noteId, bool? aosFlag) - { - // verify the required parameter 'noteId' is set - if (noteId == null) - throw new ApiException(400, "Missing required parameter 'noteId' when calling NotesApi->NotesChangeAosFlag"); - // verify the required parameter 'aosFlag' is set - if (aosFlag == null) - throw new ApiException(400, "Missing required parameter 'aosFlag' when calling NotesApi->NotesChangeAosFlag"); - - var localVarPath = "/api/Notes/aosflag/{noteId}/{aosFlag}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (noteId != null) localVarPathParams.Add("noteId", this.Configuration.ApiClient.ParameterToString(noteId)); // path parameter - if (aosFlag != null) localVarPathParams.Add("aosFlag", this.Configuration.ApiClient.ParameterToString(aosFlag)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesChangeAosFlag", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call changes the value for the aos flag of a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// Flag value - /// Task of void - public async System.Threading.Tasks.Task NotesChangeAosFlagAsync (int? noteId, bool? aosFlag) - { - await NotesChangeAosFlagAsyncWithHttpInfo(noteId, aosFlag); - - } - - /// - /// This call changes the value for the aos flag of a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// Flag value - /// Task of ApiResponse - public async System.Threading.Tasks.Task> NotesChangeAosFlagAsyncWithHttpInfo (int? noteId, bool? aosFlag) - { - // verify the required parameter 'noteId' is set - if (noteId == null) - throw new ApiException(400, "Missing required parameter 'noteId' when calling NotesApi->NotesChangeAosFlag"); - // verify the required parameter 'aosFlag' is set - if (aosFlag == null) - throw new ApiException(400, "Missing required parameter 'aosFlag' when calling NotesApi->NotesChangeAosFlag"); - - var localVarPath = "/api/Notes/aosflag/{noteId}/{aosFlag}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (noteId != null) localVarPathParams.Add("noteId", this.Configuration.ApiClient.ParameterToString(noteId)); // path parameter - if (aosFlag != null) localVarPathParams.Add("aosFlag", this.Configuration.ApiClient.ParameterToString(aosFlag)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesChangeAosFlag", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// - public void NotesDeleteById (int? noteId) - { - NotesDeleteByIdWithHttpInfo(noteId); - } - - /// - /// This call deletes a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// ApiResponse of Object(void) - public ApiResponse NotesDeleteByIdWithHttpInfo (int? noteId) - { - // verify the required parameter 'noteId' is set - if (noteId == null) - throw new ApiException(400, "Missing required parameter 'noteId' when calling NotesApi->NotesDeleteById"); - - var localVarPath = "/api/Notes/{noteId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (noteId != null) localVarPathParams.Add("noteId", this.Configuration.ApiClient.ParameterToString(noteId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesDeleteById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// Task of void - public async System.Threading.Tasks.Task NotesDeleteByIdAsync (int? noteId) - { - await NotesDeleteByIdAsyncWithHttpInfo(noteId); - - } - - /// - /// This call deletes a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> NotesDeleteByIdAsyncWithHttpInfo (int? noteId) - { - // verify the required parameter 'noteId' is set - if (noteId == null) - throw new ApiException(400, "Missing required parameter 'noteId' when calling NotesApi->NotesDeleteById"); - - var localVarPath = "/api/Notes/{noteId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (noteId != null) localVarPathParams.Add("noteId", this.Configuration.ApiClient.ParameterToString(noteId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesDeleteById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all the notes for a profile - /// - /// Thrown when fails to make API call - /// Docnumber of the profile - /// List<NoteDTO> - public List NotesGetByDocnumber (int? docnumber) - { - ApiResponse> localVarResponse = NotesGetByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns all the notes for a profile - /// - /// Thrown when fails to make API call - /// Docnumber of the profile - /// ApiResponse of List<NoteDTO> - public ApiResponse< List > NotesGetByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling NotesApi->NotesGetByDocnumber"); - - var localVarPath = "/api/Notes/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesGetByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the notes for a profile - /// - /// Thrown when fails to make API call - /// Docnumber of the profile - /// Task of List<NoteDTO> - public async System.Threading.Tasks.Task> NotesGetByDocnumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await NotesGetByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns all the notes for a profile - /// - /// Thrown when fails to make API call - /// Docnumber of the profile - /// Task of ApiResponse (List<NoteDTO>) - public async System.Threading.Tasks.Task>> NotesGetByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling NotesApi->NotesGetByDocnumber"); - - var localVarPath = "/api/Notes/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesGetByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// NoteDTO - public NoteDTO NotesGetById (int? id) - { - ApiResponse localVarResponse = NotesGetByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// ApiResponse of NoteDTO - public ApiResponse< NoteDTO > NotesGetByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling NotesApi->NotesGetById"); - - var localVarPath = "/api/Notes/byid/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (NoteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(NoteDTO))); - } - - /// - /// This call returns a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// Task of NoteDTO - public async System.Threading.Tasks.Task NotesGetByIdAsync (int? id) - { - ApiResponse localVarResponse = await NotesGetByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// Task of ApiResponse (NoteDTO) - public async System.Threading.Tasks.Task> NotesGetByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling NotesApi->NotesGetById"); - - var localVarPath = "/api/Notes/byid/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (NoteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(NoteDTO))); - } - - /// - /// This call returns the permissions for a note - /// - /// Thrown when fails to make API call - /// Id of the note - /// PermissionsDTO - public PermissionsDTO NotesGetPermissions (int? noteId) - { - ApiResponse localVarResponse = NotesGetPermissionsWithHttpInfo(noteId); - return localVarResponse.Data; - } - - /// - /// This call returns the permissions for a note - /// - /// Thrown when fails to make API call - /// Id of the note - /// ApiResponse of PermissionsDTO - public ApiResponse< PermissionsDTO > NotesGetPermissionsWithHttpInfo (int? noteId) - { - // verify the required parameter 'noteId' is set - if (noteId == null) - throw new ApiException(400, "Missing required parameter 'noteId' when calling NotesApi->NotesGetPermissions"); - - var localVarPath = "/api/Notes/permissions/{noteId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (noteId != null) localVarPathParams.Add("noteId", this.Configuration.ApiClient.ParameterToString(noteId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesGetPermissions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call returns the permissions for a note - /// - /// Thrown when fails to make API call - /// Id of the note - /// Task of PermissionsDTO - public async System.Threading.Tasks.Task NotesGetPermissionsAsync (int? noteId) - { - ApiResponse localVarResponse = await NotesGetPermissionsAsyncWithHttpInfo(noteId); - return localVarResponse.Data; - - } - - /// - /// This call returns the permissions for a note - /// - /// Thrown when fails to make API call - /// Id of the note - /// Task of ApiResponse (PermissionsDTO) - public async System.Threading.Tasks.Task> NotesGetPermissionsAsyncWithHttpInfo (int? noteId) - { - // verify the required parameter 'noteId' is set - if (noteId == null) - throw new ApiException(400, "Missing required parameter 'noteId' when calling NotesApi->NotesGetPermissions"); - - var localVarPath = "/api/Notes/permissions/{noteId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (noteId != null) localVarPathParams.Add("noteId", this.Configuration.ApiClient.ParameterToString(noteId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesGetPermissions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call adds new note - /// - /// Thrown when fails to make API call - /// Note to add - /// NoteDTO - public NoteDTO NotesNewNote (NoteDTO note) - { - ApiResponse localVarResponse = NotesNewNoteWithHttpInfo(note); - return localVarResponse.Data; - } - - /// - /// This call adds new note - /// - /// Thrown when fails to make API call - /// Note to add - /// ApiResponse of NoteDTO - public ApiResponse< NoteDTO > NotesNewNoteWithHttpInfo (NoteDTO note) - { - // verify the required parameter 'note' is set - if (note == null) - throw new ApiException(400, "Missing required parameter 'note' when calling NotesApi->NotesNewNote"); - - var localVarPath = "/api/Notes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (note != null && note.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(note); // http body (model) parameter - } - else - { - localVarPostBody = note; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesNewNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (NoteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(NoteDTO))); - } - - /// - /// This call adds new note - /// - /// Thrown when fails to make API call - /// Note to add - /// Task of NoteDTO - public async System.Threading.Tasks.Task NotesNewNoteAsync (NoteDTO note) - { - ApiResponse localVarResponse = await NotesNewNoteAsyncWithHttpInfo(note); - return localVarResponse.Data; - - } - - /// - /// This call adds new note - /// - /// Thrown when fails to make API call - /// Note to add - /// Task of ApiResponse (NoteDTO) - public async System.Threading.Tasks.Task> NotesNewNoteAsyncWithHttpInfo (NoteDTO note) - { - // verify the required parameter 'note' is set - if (note == null) - throw new ApiException(400, "Missing required parameter 'note' when calling NotesApi->NotesNewNote"); - - var localVarPath = "/api/Notes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (note != null && note.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(note); // http body (model) parameter - } - else - { - localVarPostBody = note; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesNewNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (NoteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(NoteDTO))); - } - - /// - /// This call updates a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// Note to update - /// NoteDTO - public NoteDTO NotesUpdateNote (int? id, NoteDTO note) - { - ApiResponse localVarResponse = NotesUpdateNoteWithHttpInfo(id, note); - return localVarResponse.Data; - } - - /// - /// This call updates a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// Note to update - /// ApiResponse of NoteDTO - public ApiResponse< NoteDTO > NotesUpdateNoteWithHttpInfo (int? id, NoteDTO note) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling NotesApi->NotesUpdateNote"); - // verify the required parameter 'note' is set - if (note == null) - throw new ApiException(400, "Missing required parameter 'note' when calling NotesApi->NotesUpdateNote"); - - var localVarPath = "/api/Notes/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (note != null && note.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(note); // http body (model) parameter - } - else - { - localVarPostBody = note; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesUpdateNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (NoteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(NoteDTO))); - } - - /// - /// This call updates a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// Note to update - /// Task of NoteDTO - public async System.Threading.Tasks.Task NotesUpdateNoteAsync (int? id, NoteDTO note) - { - ApiResponse localVarResponse = await NotesUpdateNoteAsyncWithHttpInfo(id, note); - return localVarResponse.Data; - - } - - /// - /// This call updates a note - /// - /// Thrown when fails to make API call - /// Note identifier - /// Note to update - /// Task of ApiResponse (NoteDTO) - public async System.Threading.Tasks.Task> NotesUpdateNoteAsyncWithHttpInfo (int? id, NoteDTO note) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling NotesApi->NotesUpdateNote"); - // verify the required parameter 'note' is set - if (note == null) - throw new ApiException(400, "Missing required parameter 'note' when calling NotesApi->NotesUpdateNote"); - - var localVarPath = "/api/Notes/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (note != null && note.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(note); // http body (model) parameter - } - else - { - localVarPostBody = note; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesUpdateNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (NoteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(NoteDTO))); - } - - /// - /// This call updates the permissions for a note - /// - /// Thrown when fails to make API call - /// Id of the note - /// Permissions to update - /// - public void NotesWritePermissions (int? noteId, PermissionsDTO permissions) - { - NotesWritePermissionsWithHttpInfo(noteId, permissions); - } - - /// - /// This call updates the permissions for a note - /// - /// Thrown when fails to make API call - /// Id of the note - /// Permissions to update - /// ApiResponse of Object(void) - public ApiResponse NotesWritePermissionsWithHttpInfo (int? noteId, PermissionsDTO permissions) - { - // verify the required parameter 'noteId' is set - if (noteId == null) - throw new ApiException(400, "Missing required parameter 'noteId' when calling NotesApi->NotesWritePermissions"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling NotesApi->NotesWritePermissions"); - - var localVarPath = "/api/Notes/permissions/{noteId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (noteId != null) localVarPathParams.Add("noteId", this.Configuration.ApiClient.ParameterToString(noteId)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesWritePermissions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates the permissions for a note - /// - /// Thrown when fails to make API call - /// Id of the note - /// Permissions to update - /// Task of void - public async System.Threading.Tasks.Task NotesWritePermissionsAsync (int? noteId, PermissionsDTO permissions) - { - await NotesWritePermissionsAsyncWithHttpInfo(noteId, permissions); - - } - - /// - /// This call updates the permissions for a note - /// - /// Thrown when fails to make API call - /// Id of the note - /// Permissions to update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> NotesWritePermissionsAsyncWithHttpInfo (int? noteId, PermissionsDTO permissions) - { - // verify the required parameter 'noteId' is set - if (noteId == null) - throw new ApiException(400, "Missing required parameter 'noteId' when calling NotesApi->NotesWritePermissions"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling NotesApi->NotesWritePermissions"); - - var localVarPath = "/api/Notes/permissions/{noteId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (noteId != null) localVarPathParams.Add("noteId", this.Configuration.ApiClient.ParameterToString(noteId)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("NotesWritePermissions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/OperationApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/OperationApi.cs deleted file mode 100644 index ce3d02b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/OperationApi.cs +++ /dev/null @@ -1,320 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IOperationApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all possibile operations for the given layout element type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Layout element type - /// Dictionary<string, string> - Dictionary OperationGetByElementType (int? elementType); - - /// - /// This call returns all possibile operations for the given layout element type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Layout element type - /// ApiResponse of Dictionary<string, string> - ApiResponse> OperationGetByElementTypeWithHttpInfo (int? elementType); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all possibile operations for the given layout element type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Layout element type - /// Task of Dictionary<string, string> - System.Threading.Tasks.Task> OperationGetByElementTypeAsync (int? elementType); - - /// - /// This call returns all possibile operations for the given layout element type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Layout element type - /// Task of ApiResponse (Dictionary<string, string>) - System.Threading.Tasks.Task>> OperationGetByElementTypeAsyncWithHttpInfo (int? elementType); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class OperationApi : IOperationApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public OperationApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public OperationApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all possibile operations for the given layout element type - /// - /// Thrown when fails to make API call - /// Layout element type - /// Dictionary<string, string> - public Dictionary OperationGetByElementType (int? elementType) - { - ApiResponse> localVarResponse = OperationGetByElementTypeWithHttpInfo(elementType); - return localVarResponse.Data; - } - - /// - /// This call returns all possibile operations for the given layout element type - /// - /// Thrown when fails to make API call - /// Layout element type - /// ApiResponse of Dictionary<string, string> - public ApiResponse< Dictionary > OperationGetByElementTypeWithHttpInfo (int? elementType) - { - // verify the required parameter 'elementType' is set - if (elementType == null) - throw new ApiException(400, "Missing required parameter 'elementType' when calling OperationApi->OperationGetByElementType"); - - var localVarPath = "/api/LayoutOperation/Element/{elementType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (elementType != null) localVarPathParams.Add("elementType", this.Configuration.ApiClient.ParameterToString(elementType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OperationGetByElementType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Dictionary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary))); - } - - /// - /// This call returns all possibile operations for the given layout element type - /// - /// Thrown when fails to make API call - /// Layout element type - /// Task of Dictionary<string, string> - public async System.Threading.Tasks.Task> OperationGetByElementTypeAsync (int? elementType) - { - ApiResponse> localVarResponse = await OperationGetByElementTypeAsyncWithHttpInfo(elementType); - return localVarResponse.Data; - - } - - /// - /// This call returns all possibile operations for the given layout element type - /// - /// Thrown when fails to make API call - /// Layout element type - /// Task of ApiResponse (Dictionary<string, string>) - public async System.Threading.Tasks.Task>> OperationGetByElementTypeAsyncWithHttpInfo (int? elementType) - { - // verify the required parameter 'elementType' is set - if (elementType == null) - throw new ApiException(400, "Missing required parameter 'elementType' when calling OperationApi->OperationGetByElementType"); - - var localVarPath = "/api/LayoutOperation/Element/{elementType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (elementType != null) localVarPathParams.Add("elementType", this.Configuration.ApiClient.ParameterToString(elementType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OperationGetByElementType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Dictionary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/OptionsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/OptionsApi.cs deleted file mode 100644 index 72840ec..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/OptionsApi.cs +++ /dev/null @@ -1,1684 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IOptionsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the options for the connected user (aka: Configura-Generale) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// UserOptionsDto - UserOptionsDto OptionsGet (); - - /// - /// This call returns the options for the connected user (aka: Configura-Generale) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of UserOptionsDto - ApiResponse OptionsGetWithHttpInfo (); - /// - /// This call retrieves options by the given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// List<OptionsDTO> - List OptionsGetByArgomento (string argument); - - /// - /// This call retrieves options by the given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// ApiResponse of List<OptionsDTO> - ApiResponse> OptionsGetByArgomentoWithHttpInfo (string argument); - /// - /// This call returns options by the given argument and given field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// Field filter - /// List<OptionsDTO> - List OptionsGetByArgomentoCampo (string argument, string field); - - /// - /// This call returns options by the given argument and given field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// Field filter - /// ApiResponse of List<OptionsDTO> - ApiResponse> OptionsGetByArgomentoCampoWithHttpInfo (string argument, string field); - /// - /// This call retrieves options by the given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// List<OptionsDTO> - List OptionsGetByArgomentoUtente (string argument); - - /// - /// This call retrieves options by the given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// ApiResponse of List<OptionsDTO> - ApiResponse> OptionsGetByArgomentoUtenteWithHttpInfo (string argument); - /// - /// This call returns the option for display Document Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// int? - int? OptionsGetDocumentTypeViewMode (); - - /// - /// This call returns the option for display Document Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of int? - ApiResponse OptionsGetDocumentTypeViewModeWithHttpInfo (); - /// - /// This call writes a option - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// - void OptionsSetByArgomentoUtente (OptionsRequestDTO requestDto); - - /// - /// This call writes a option - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// ApiResponse of Object(void) - ApiResponse OptionsSetByArgomentoUtenteWithHttpInfo (OptionsRequestDTO requestDto); - /// - /// This call writes visible option - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// - void OptionsSetByArgomentoVisibleUtente (OptionsVisibleRequestDTO requestDto); - - /// - /// This call writes visible option - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// ApiResponse of Object(void) - ApiResponse OptionsSetByArgomentoVisibleUtenteWithHttpInfo (OptionsVisibleRequestDTO requestDto); - /// - /// This call writes options by argument and field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// - void OptionsSetOpzioniUtenteByArgomentoCampo (OptionsFieldRequestDTO requestDto); - - /// - /// This call writes options by argument and field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// ApiResponse of Object(void) - ApiResponse OptionsSetOpzioniUtenteByArgomentoCampoWithHttpInfo (OptionsFieldRequestDTO requestDto); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the options for the connected user (aka: Configura-Generale) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of UserOptionsDto - System.Threading.Tasks.Task OptionsGetAsync (); - - /// - /// This call returns the options for the connected user (aka: Configura-Generale) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (UserOptionsDto) - System.Threading.Tasks.Task> OptionsGetAsyncWithHttpInfo (); - /// - /// This call retrieves options by the given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// Task of List<OptionsDTO> - System.Threading.Tasks.Task> OptionsGetByArgomentoAsync (string argument); - - /// - /// This call retrieves options by the given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// Task of ApiResponse (List<OptionsDTO>) - System.Threading.Tasks.Task>> OptionsGetByArgomentoAsyncWithHttpInfo (string argument); - /// - /// This call returns options by the given argument and given field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// Field filter - /// Task of List<OptionsDTO> - System.Threading.Tasks.Task> OptionsGetByArgomentoCampoAsync (string argument, string field); - - /// - /// This call returns options by the given argument and given field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// Field filter - /// Task of ApiResponse (List<OptionsDTO>) - System.Threading.Tasks.Task>> OptionsGetByArgomentoCampoAsyncWithHttpInfo (string argument, string field); - /// - /// This call retrieves options by the given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// Task of List<OptionsDTO> - System.Threading.Tasks.Task> OptionsGetByArgomentoUtenteAsync (string argument); - - /// - /// This call retrieves options by the given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// Task of ApiResponse (List<OptionsDTO>) - System.Threading.Tasks.Task>> OptionsGetByArgomentoUtenteAsyncWithHttpInfo (string argument); - /// - /// This call returns the option for display Document Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of int? - System.Threading.Tasks.Task OptionsGetDocumentTypeViewModeAsync (); - - /// - /// This call returns the option for display Document Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (int?) - System.Threading.Tasks.Task> OptionsGetDocumentTypeViewModeAsyncWithHttpInfo (); - /// - /// This call writes a option - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// Task of void - System.Threading.Tasks.Task OptionsSetByArgomentoUtenteAsync (OptionsRequestDTO requestDto); - - /// - /// This call writes a option - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// Task of ApiResponse - System.Threading.Tasks.Task> OptionsSetByArgomentoUtenteAsyncWithHttpInfo (OptionsRequestDTO requestDto); - /// - /// This call writes visible option - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// Task of void - System.Threading.Tasks.Task OptionsSetByArgomentoVisibleUtenteAsync (OptionsVisibleRequestDTO requestDto); - - /// - /// This call writes visible option - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// Task of ApiResponse - System.Threading.Tasks.Task> OptionsSetByArgomentoVisibleUtenteAsyncWithHttpInfo (OptionsVisibleRequestDTO requestDto); - /// - /// This call writes options by argument and field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// Task of void - System.Threading.Tasks.Task OptionsSetOpzioniUtenteByArgomentoCampoAsync (OptionsFieldRequestDTO requestDto); - - /// - /// This call writes options by argument and field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// Task of ApiResponse - System.Threading.Tasks.Task> OptionsSetOpzioniUtenteByArgomentoCampoAsyncWithHttpInfo (OptionsFieldRequestDTO requestDto); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class OptionsApi : IOptionsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public OptionsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public OptionsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the options for the connected user (aka: Configura-Generale) - /// - /// Thrown when fails to make API call - /// UserOptionsDto - public UserOptionsDto OptionsGet () - { - ApiResponse localVarResponse = OptionsGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the options for the connected user (aka: Configura-Generale) - /// - /// Thrown when fails to make API call - /// ApiResponse of UserOptionsDto - public ApiResponse< UserOptionsDto > OptionsGetWithHttpInfo () - { - - var localVarPath = "/api/Options"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserOptionsDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserOptionsDto))); - } - - /// - /// This call returns the options for the connected user (aka: Configura-Generale) - /// - /// Thrown when fails to make API call - /// Task of UserOptionsDto - public async System.Threading.Tasks.Task OptionsGetAsync () - { - ApiResponse localVarResponse = await OptionsGetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the options for the connected user (aka: Configura-Generale) - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (UserOptionsDto) - public async System.Threading.Tasks.Task> OptionsGetAsyncWithHttpInfo () - { - - var localVarPath = "/api/Options"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserOptionsDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserOptionsDto))); - } - - /// - /// This call retrieves options by the given argument - /// - /// Thrown when fails to make API call - /// Argument filter - /// List<OptionsDTO> - public List OptionsGetByArgomento (string argument) - { - ApiResponse> localVarResponse = OptionsGetByArgomentoWithHttpInfo(argument); - return localVarResponse.Data; - } - - /// - /// This call retrieves options by the given argument - /// - /// Thrown when fails to make API call - /// Argument filter - /// ApiResponse of List<OptionsDTO> - public ApiResponse< List > OptionsGetByArgomentoWithHttpInfo (string argument) - { - // verify the required parameter 'argument' is set - if (argument == null) - throw new ApiException(400, "Missing required parameter 'argument' when calling OptionsApi->OptionsGetByArgomento"); - - var localVarPath = "/api/Options/topic/{argument}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (argument != null) localVarPathParams.Add("argument", this.Configuration.ApiClient.ParameterToString(argument)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsGetByArgomento", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieves options by the given argument - /// - /// Thrown when fails to make API call - /// Argument filter - /// Task of List<OptionsDTO> - public async System.Threading.Tasks.Task> OptionsGetByArgomentoAsync (string argument) - { - ApiResponse> localVarResponse = await OptionsGetByArgomentoAsyncWithHttpInfo(argument); - return localVarResponse.Data; - - } - - /// - /// This call retrieves options by the given argument - /// - /// Thrown when fails to make API call - /// Argument filter - /// Task of ApiResponse (List<OptionsDTO>) - public async System.Threading.Tasks.Task>> OptionsGetByArgomentoAsyncWithHttpInfo (string argument) - { - // verify the required parameter 'argument' is set - if (argument == null) - throw new ApiException(400, "Missing required parameter 'argument' when calling OptionsApi->OptionsGetByArgomento"); - - var localVarPath = "/api/Options/topic/{argument}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (argument != null) localVarPathParams.Add("argument", this.Configuration.ApiClient.ParameterToString(argument)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsGetByArgomento", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns options by the given argument and given field - /// - /// Thrown when fails to make API call - /// Argument filter - /// Field filter - /// List<OptionsDTO> - public List OptionsGetByArgomentoCampo (string argument, string field) - { - ApiResponse> localVarResponse = OptionsGetByArgomentoCampoWithHttpInfo(argument, field); - return localVarResponse.Data; - } - - /// - /// This call returns options by the given argument and given field - /// - /// Thrown when fails to make API call - /// Argument filter - /// Field filter - /// ApiResponse of List<OptionsDTO> - public ApiResponse< List > OptionsGetByArgomentoCampoWithHttpInfo (string argument, string field) - { - // verify the required parameter 'argument' is set - if (argument == null) - throw new ApiException(400, "Missing required parameter 'argument' when calling OptionsApi->OptionsGetByArgomentoCampo"); - // verify the required parameter 'field' is set - if (field == null) - throw new ApiException(400, "Missing required parameter 'field' when calling OptionsApi->OptionsGetByArgomentoCampo"); - - var localVarPath = "/api/Options/topicField/{argument}/{field}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (argument != null) localVarPathParams.Add("argument", this.Configuration.ApiClient.ParameterToString(argument)); // path parameter - if (field != null) localVarPathParams.Add("field", this.Configuration.ApiClient.ParameterToString(field)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsGetByArgomentoCampo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns options by the given argument and given field - /// - /// Thrown when fails to make API call - /// Argument filter - /// Field filter - /// Task of List<OptionsDTO> - public async System.Threading.Tasks.Task> OptionsGetByArgomentoCampoAsync (string argument, string field) - { - ApiResponse> localVarResponse = await OptionsGetByArgomentoCampoAsyncWithHttpInfo(argument, field); - return localVarResponse.Data; - - } - - /// - /// This call returns options by the given argument and given field - /// - /// Thrown when fails to make API call - /// Argument filter - /// Field filter - /// Task of ApiResponse (List<OptionsDTO>) - public async System.Threading.Tasks.Task>> OptionsGetByArgomentoCampoAsyncWithHttpInfo (string argument, string field) - { - // verify the required parameter 'argument' is set - if (argument == null) - throw new ApiException(400, "Missing required parameter 'argument' when calling OptionsApi->OptionsGetByArgomentoCampo"); - // verify the required parameter 'field' is set - if (field == null) - throw new ApiException(400, "Missing required parameter 'field' when calling OptionsApi->OptionsGetByArgomentoCampo"); - - var localVarPath = "/api/Options/topicField/{argument}/{field}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (argument != null) localVarPathParams.Add("argument", this.Configuration.ApiClient.ParameterToString(argument)); // path parameter - if (field != null) localVarPathParams.Add("field", this.Configuration.ApiClient.ParameterToString(field)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsGetByArgomentoCampo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieves options by the given argument - /// - /// Thrown when fails to make API call - /// Argument filter - /// List<OptionsDTO> - public List OptionsGetByArgomentoUtente (string argument) - { - ApiResponse> localVarResponse = OptionsGetByArgomentoUtenteWithHttpInfo(argument); - return localVarResponse.Data; - } - - /// - /// This call retrieves options by the given argument - /// - /// Thrown when fails to make API call - /// Argument filter - /// ApiResponse of List<OptionsDTO> - public ApiResponse< List > OptionsGetByArgomentoUtenteWithHttpInfo (string argument) - { - // verify the required parameter 'argument' is set - if (argument == null) - throw new ApiException(400, "Missing required parameter 'argument' when calling OptionsApi->OptionsGetByArgomentoUtente"); - - var localVarPath = "/api/Options/topicAndUser/{argument}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (argument != null) localVarPathParams.Add("argument", this.Configuration.ApiClient.ParameterToString(argument)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsGetByArgomentoUtente", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieves options by the given argument - /// - /// Thrown when fails to make API call - /// Argument filter - /// Task of List<OptionsDTO> - public async System.Threading.Tasks.Task> OptionsGetByArgomentoUtenteAsync (string argument) - { - ApiResponse> localVarResponse = await OptionsGetByArgomentoUtenteAsyncWithHttpInfo(argument); - return localVarResponse.Data; - - } - - /// - /// This call retrieves options by the given argument - /// - /// Thrown when fails to make API call - /// Argument filter - /// Task of ApiResponse (List<OptionsDTO>) - public async System.Threading.Tasks.Task>> OptionsGetByArgomentoUtenteAsyncWithHttpInfo (string argument) - { - // verify the required parameter 'argument' is set - if (argument == null) - throw new ApiException(400, "Missing required parameter 'argument' when calling OptionsApi->OptionsGetByArgomentoUtente"); - - var localVarPath = "/api/Options/topicAndUser/{argument}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (argument != null) localVarPathParams.Add("argument", this.Configuration.ApiClient.ParameterToString(argument)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsGetByArgomentoUtente", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the option for display Document Type - /// - /// Thrown when fails to make API call - /// int? - public int? OptionsGetDocumentTypeViewMode () - { - ApiResponse localVarResponse = OptionsGetDocumentTypeViewModeWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the option for display Document Type - /// - /// Thrown when fails to make API call - /// ApiResponse of int? - public ApiResponse< int? > OptionsGetDocumentTypeViewModeWithHttpInfo () - { - - var localVarPath = "/api/Options/documenttypeviewmode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsGetDocumentTypeViewMode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call returns the option for display Document Type - /// - /// Thrown when fails to make API call - /// Task of int? - public async System.Threading.Tasks.Task OptionsGetDocumentTypeViewModeAsync () - { - ApiResponse localVarResponse = await OptionsGetDocumentTypeViewModeAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the option for display Document Type - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (int?) - public async System.Threading.Tasks.Task> OptionsGetDocumentTypeViewModeAsyncWithHttpInfo () - { - - var localVarPath = "/api/Options/documenttypeviewmode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsGetDocumentTypeViewMode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call writes a option - /// - /// Thrown when fails to make API call - /// Option information - /// - public void OptionsSetByArgomentoUtente (OptionsRequestDTO requestDto) - { - OptionsSetByArgomentoUtenteWithHttpInfo(requestDto); - } - - /// - /// This call writes a option - /// - /// Thrown when fails to make API call - /// Option information - /// ApiResponse of Object(void) - public ApiResponse OptionsSetByArgomentoUtenteWithHttpInfo (OptionsRequestDTO requestDto) - { - // verify the required parameter 'requestDto' is set - if (requestDto == null) - throw new ApiException(400, "Missing required parameter 'requestDto' when calling OptionsApi->OptionsSetByArgomentoUtente"); - - var localVarPath = "/api/Options/topicAndUser"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestDto != null && requestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestDto); // http body (model) parameter - } - else - { - localVarPostBody = requestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsSetByArgomentoUtente", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call writes a option - /// - /// Thrown when fails to make API call - /// Option information - /// Task of void - public async System.Threading.Tasks.Task OptionsSetByArgomentoUtenteAsync (OptionsRequestDTO requestDto) - { - await OptionsSetByArgomentoUtenteAsyncWithHttpInfo(requestDto); - - } - - /// - /// This call writes a option - /// - /// Thrown when fails to make API call - /// Option information - /// Task of ApiResponse - public async System.Threading.Tasks.Task> OptionsSetByArgomentoUtenteAsyncWithHttpInfo (OptionsRequestDTO requestDto) - { - // verify the required parameter 'requestDto' is set - if (requestDto == null) - throw new ApiException(400, "Missing required parameter 'requestDto' when calling OptionsApi->OptionsSetByArgomentoUtente"); - - var localVarPath = "/api/Options/topicAndUser"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestDto != null && requestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestDto); // http body (model) parameter - } - else - { - localVarPostBody = requestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsSetByArgomentoUtente", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call writes visible option - /// - /// Thrown when fails to make API call - /// Option information - /// - public void OptionsSetByArgomentoVisibleUtente (OptionsVisibleRequestDTO requestDto) - { - OptionsSetByArgomentoVisibleUtenteWithHttpInfo(requestDto); - } - - /// - /// This call writes visible option - /// - /// Thrown when fails to make API call - /// Option information - /// ApiResponse of Object(void) - public ApiResponse OptionsSetByArgomentoVisibleUtenteWithHttpInfo (OptionsVisibleRequestDTO requestDto) - { - // verify the required parameter 'requestDto' is set - if (requestDto == null) - throw new ApiException(400, "Missing required parameter 'requestDto' when calling OptionsApi->OptionsSetByArgomentoVisibleUtente"); - - var localVarPath = "/api/Options/topicAndUserVisible"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestDto != null && requestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestDto); // http body (model) parameter - } - else - { - localVarPostBody = requestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsSetByArgomentoVisibleUtente", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call writes visible option - /// - /// Thrown when fails to make API call - /// Option information - /// Task of void - public async System.Threading.Tasks.Task OptionsSetByArgomentoVisibleUtenteAsync (OptionsVisibleRequestDTO requestDto) - { - await OptionsSetByArgomentoVisibleUtenteAsyncWithHttpInfo(requestDto); - - } - - /// - /// This call writes visible option - /// - /// Thrown when fails to make API call - /// Option information - /// Task of ApiResponse - public async System.Threading.Tasks.Task> OptionsSetByArgomentoVisibleUtenteAsyncWithHttpInfo (OptionsVisibleRequestDTO requestDto) - { - // verify the required parameter 'requestDto' is set - if (requestDto == null) - throw new ApiException(400, "Missing required parameter 'requestDto' when calling OptionsApi->OptionsSetByArgomentoVisibleUtente"); - - var localVarPath = "/api/Options/topicAndUserVisible"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestDto != null && requestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestDto); // http body (model) parameter - } - else - { - localVarPostBody = requestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsSetByArgomentoVisibleUtente", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call writes options by argument and field - /// - /// Thrown when fails to make API call - /// Option information - /// - public void OptionsSetOpzioniUtenteByArgomentoCampo (OptionsFieldRequestDTO requestDto) - { - OptionsSetOpzioniUtenteByArgomentoCampoWithHttpInfo(requestDto); - } - - /// - /// This call writes options by argument and field - /// - /// Thrown when fails to make API call - /// Option information - /// ApiResponse of Object(void) - public ApiResponse OptionsSetOpzioniUtenteByArgomentoCampoWithHttpInfo (OptionsFieldRequestDTO requestDto) - { - // verify the required parameter 'requestDto' is set - if (requestDto == null) - throw new ApiException(400, "Missing required parameter 'requestDto' when calling OptionsApi->OptionsSetOpzioniUtenteByArgomentoCampo"); - - var localVarPath = "/api/Options/topicField"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestDto != null && requestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestDto); // http body (model) parameter - } - else - { - localVarPostBody = requestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsSetOpzioniUtenteByArgomentoCampo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call writes options by argument and field - /// - /// Thrown when fails to make API call - /// Option information - /// Task of void - public async System.Threading.Tasks.Task OptionsSetOpzioniUtenteByArgomentoCampoAsync (OptionsFieldRequestDTO requestDto) - { - await OptionsSetOpzioniUtenteByArgomentoCampoAsyncWithHttpInfo(requestDto); - - } - - /// - /// This call writes options by argument and field - /// - /// Thrown when fails to make API call - /// Option information - /// Task of ApiResponse - public async System.Threading.Tasks.Task> OptionsSetOpzioniUtenteByArgomentoCampoAsyncWithHttpInfo (OptionsFieldRequestDTO requestDto) - { - // verify the required parameter 'requestDto' is set - if (requestDto == null) - throw new ApiException(400, "Missing required parameter 'requestDto' when calling OptionsApi->OptionsSetOpzioniUtenteByArgomentoCampo"); - - var localVarPath = "/api/Options/topicField"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestDto != null && requestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestDto); // http body (model) parameter - } - else - { - localVarPostBody = requestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsSetOpzioniUtenteByArgomentoCampo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/OriginsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/OriginsApi.cs deleted file mode 100644 index 046848e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/OriginsApi.cs +++ /dev/null @@ -1,305 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IOriginsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all the origins available in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<OriginFieldDTO> - List OriginsGet (); - - /// - /// This call returns all the origins available in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<OriginFieldDTO> - ApiResponse> OriginsGetWithHttpInfo (); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all the origins available in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<OriginFieldDTO> - System.Threading.Tasks.Task> OriginsGetAsync (); - - /// - /// This call returns all the origins available in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<OriginFieldDTO>) - System.Threading.Tasks.Task>> OriginsGetAsyncWithHttpInfo (); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class OriginsApi : IOriginsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public OriginsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public OriginsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all the origins available in Arxivar - /// - /// Thrown when fails to make API call - /// List<OriginFieldDTO> - public List OriginsGet () - { - ApiResponse> localVarResponse = OriginsGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all the origins available in Arxivar - /// - /// Thrown when fails to make API call - /// ApiResponse of List<OriginFieldDTO> - public ApiResponse< List > OriginsGetWithHttpInfo () - { - - var localVarPath = "/api/Origins"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OriginsGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the origins available in Arxivar - /// - /// Thrown when fails to make API call - /// Task of List<OriginFieldDTO> - public async System.Threading.Tasks.Task> OriginsGetAsync () - { - ApiResponse> localVarResponse = await OriginsGetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all the origins available in Arxivar - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<OriginFieldDTO>) - public async System.Threading.Tasks.Task>> OriginsGetAsyncWithHttpInfo () - { - - var localVarPath = "/api/Origins"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OriginsGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/PasswordManagerApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/PasswordManagerApi.cs deleted file mode 100644 index 7710b6d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/PasswordManagerApi.cs +++ /dev/null @@ -1,1105 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IPasswordManagerApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call changes the password of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Password request to change - /// - void PasswordManagerChangePassword (ChangePasswordRequestDTO passwordRequest); - - /// - /// This call changes the password of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Password request to change - /// ApiResponse of Object(void) - ApiResponse PasswordManagerChangePasswordWithHttpInfo (ChangePasswordRequestDTO passwordRequest); - /// - /// This call changes the password of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Password request to change - /// - void PasswordManagerChangePasswordUnAuthorize (ChangePasswordRequestUnAuthorizeDTO passwordRequest); - - /// - /// This call changes the password of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Password request to change - /// ApiResponse of Object(void) - ApiResponse PasswordManagerChangePasswordUnAuthorizeWithHttpInfo (ChangePasswordRequestUnAuthorizeDTO passwordRequest); - /// - /// This call returns the change password options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object - Object PasswordManagerGet (); - - /// - /// This call returns the change password options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of Object - ApiResponse PasswordManagerGetWithHttpInfo (); - /// - /// This call returns the user password retrieve mode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// string - string PasswordManagerGetPasswordRetrieveMode (); - - /// - /// This call returns the user password retrieve mode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of string - ApiResponse PasswordManagerGetPasswordRetrieveModeWithHttpInfo (); - /// - /// This call retrieves user password according to server configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Retrieve password option - /// string - string PasswordManagerRetrievePassword (RetrievePasswordRequestDTO retrievePasswordRequest); - - /// - /// This call retrieves user password according to server configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Retrieve password option - /// ApiResponse of string - ApiResponse PasswordManagerRetrievePasswordWithHttpInfo (RetrievePasswordRequestDTO retrievePasswordRequest); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call changes the password of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Password request to change - /// Task of void - System.Threading.Tasks.Task PasswordManagerChangePasswordAsync (ChangePasswordRequestDTO passwordRequest); - - /// - /// This call changes the password of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Password request to change - /// Task of ApiResponse - System.Threading.Tasks.Task> PasswordManagerChangePasswordAsyncWithHttpInfo (ChangePasswordRequestDTO passwordRequest); - /// - /// This call changes the password of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Password request to change - /// Task of void - System.Threading.Tasks.Task PasswordManagerChangePasswordUnAuthorizeAsync (ChangePasswordRequestUnAuthorizeDTO passwordRequest); - - /// - /// This call changes the password of connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Password request to change - /// Task of ApiResponse - System.Threading.Tasks.Task> PasswordManagerChangePasswordUnAuthorizeAsyncWithHttpInfo (ChangePasswordRequestUnAuthorizeDTO passwordRequest); - /// - /// This call returns the change password options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of Object - System.Threading.Tasks.Task PasswordManagerGetAsync (); - - /// - /// This call returns the change password options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> PasswordManagerGetAsyncWithHttpInfo (); - /// - /// This call returns the user password retrieve mode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of string - System.Threading.Tasks.Task PasswordManagerGetPasswordRetrieveModeAsync (); - - /// - /// This call returns the user password retrieve mode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> PasswordManagerGetPasswordRetrieveModeAsyncWithHttpInfo (); - /// - /// This call retrieves user password according to server configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Retrieve password option - /// Task of string - System.Threading.Tasks.Task PasswordManagerRetrievePasswordAsync (RetrievePasswordRequestDTO retrievePasswordRequest); - - /// - /// This call retrieves user password according to server configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Retrieve password option - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> PasswordManagerRetrievePasswordAsyncWithHttpInfo (RetrievePasswordRequestDTO retrievePasswordRequest); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class PasswordManagerApi : IPasswordManagerApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public PasswordManagerApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public PasswordManagerApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call changes the password of connected user - /// - /// Thrown when fails to make API call - /// Password request to change - /// - public void PasswordManagerChangePassword (ChangePasswordRequestDTO passwordRequest) - { - PasswordManagerChangePasswordWithHttpInfo(passwordRequest); - } - - /// - /// This call changes the password of connected user - /// - /// Thrown when fails to make API call - /// Password request to change - /// ApiResponse of Object(void) - public ApiResponse PasswordManagerChangePasswordWithHttpInfo (ChangePasswordRequestDTO passwordRequest) - { - // verify the required parameter 'passwordRequest' is set - if (passwordRequest == null) - throw new ApiException(400, "Missing required parameter 'passwordRequest' when calling PasswordManagerApi->PasswordManagerChangePassword"); - - var localVarPath = "/api/PasswordManager/ChangePassword"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (passwordRequest != null && passwordRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(passwordRequest); // http body (model) parameter - } - else - { - localVarPostBody = passwordRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PasswordManagerChangePassword", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call changes the password of connected user - /// - /// Thrown when fails to make API call - /// Password request to change - /// Task of void - public async System.Threading.Tasks.Task PasswordManagerChangePasswordAsync (ChangePasswordRequestDTO passwordRequest) - { - await PasswordManagerChangePasswordAsyncWithHttpInfo(passwordRequest); - - } - - /// - /// This call changes the password of connected user - /// - /// Thrown when fails to make API call - /// Password request to change - /// Task of ApiResponse - public async System.Threading.Tasks.Task> PasswordManagerChangePasswordAsyncWithHttpInfo (ChangePasswordRequestDTO passwordRequest) - { - // verify the required parameter 'passwordRequest' is set - if (passwordRequest == null) - throw new ApiException(400, "Missing required parameter 'passwordRequest' when calling PasswordManagerApi->PasswordManagerChangePassword"); - - var localVarPath = "/api/PasswordManager/ChangePassword"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (passwordRequest != null && passwordRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(passwordRequest); // http body (model) parameter - } - else - { - localVarPostBody = passwordRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PasswordManagerChangePassword", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call changes the password of connected user - /// - /// Thrown when fails to make API call - /// Password request to change - /// - public void PasswordManagerChangePasswordUnAuthorize (ChangePasswordRequestUnAuthorizeDTO passwordRequest) - { - PasswordManagerChangePasswordUnAuthorizeWithHttpInfo(passwordRequest); - } - - /// - /// This call changes the password of connected user - /// - /// Thrown when fails to make API call - /// Password request to change - /// ApiResponse of Object(void) - public ApiResponse PasswordManagerChangePasswordUnAuthorizeWithHttpInfo (ChangePasswordRequestUnAuthorizeDTO passwordRequest) - { - // verify the required parameter 'passwordRequest' is set - if (passwordRequest == null) - throw new ApiException(400, "Missing required parameter 'passwordRequest' when calling PasswordManagerApi->PasswordManagerChangePasswordUnAuthorize"); - - var localVarPath = "/api/PasswordManager/ChangePasswordUnAuthorize"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (passwordRequest != null && passwordRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(passwordRequest); // http body (model) parameter - } - else - { - localVarPostBody = passwordRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PasswordManagerChangePasswordUnAuthorize", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call changes the password of connected user - /// - /// Thrown when fails to make API call - /// Password request to change - /// Task of void - public async System.Threading.Tasks.Task PasswordManagerChangePasswordUnAuthorizeAsync (ChangePasswordRequestUnAuthorizeDTO passwordRequest) - { - await PasswordManagerChangePasswordUnAuthorizeAsyncWithHttpInfo(passwordRequest); - - } - - /// - /// This call changes the password of connected user - /// - /// Thrown when fails to make API call - /// Password request to change - /// Task of ApiResponse - public async System.Threading.Tasks.Task> PasswordManagerChangePasswordUnAuthorizeAsyncWithHttpInfo (ChangePasswordRequestUnAuthorizeDTO passwordRequest) - { - // verify the required parameter 'passwordRequest' is set - if (passwordRequest == null) - throw new ApiException(400, "Missing required parameter 'passwordRequest' when calling PasswordManagerApi->PasswordManagerChangePasswordUnAuthorize"); - - var localVarPath = "/api/PasswordManager/ChangePasswordUnAuthorize"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (passwordRequest != null && passwordRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(passwordRequest); // http body (model) parameter - } - else - { - localVarPostBody = passwordRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PasswordManagerChangePasswordUnAuthorize", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the change password options - /// - /// Thrown when fails to make API call - /// Object - public Object PasswordManagerGet () - { - ApiResponse localVarResponse = PasswordManagerGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the change password options - /// - /// Thrown when fails to make API call - /// ApiResponse of Object - public ApiResponse< Object > PasswordManagerGetWithHttpInfo () - { - - var localVarPath = "/api/PasswordManager/ChangePasswordConstraints"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PasswordManagerGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the change password options - /// - /// Thrown when fails to make API call - /// Task of Object - public async System.Threading.Tasks.Task PasswordManagerGetAsync () - { - ApiResponse localVarResponse = await PasswordManagerGetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the change password options - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> PasswordManagerGetAsyncWithHttpInfo () - { - - var localVarPath = "/api/PasswordManager/ChangePasswordConstraints"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PasswordManagerGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the user password retrieve mode - /// - /// Thrown when fails to make API call - /// string - public string PasswordManagerGetPasswordRetrieveMode () - { - ApiResponse localVarResponse = PasswordManagerGetPasswordRetrieveModeWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the user password retrieve mode - /// - /// Thrown when fails to make API call - /// ApiResponse of string - public ApiResponse< string > PasswordManagerGetPasswordRetrieveModeWithHttpInfo () - { - - var localVarPath = "/api/PasswordManager/PasswordRetrieveMode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PasswordManagerGetPasswordRetrieveMode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call returns the user password retrieve mode - /// - /// Thrown when fails to make API call - /// Task of string - public async System.Threading.Tasks.Task PasswordManagerGetPasswordRetrieveModeAsync () - { - ApiResponse localVarResponse = await PasswordManagerGetPasswordRetrieveModeAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the user password retrieve mode - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> PasswordManagerGetPasswordRetrieveModeAsyncWithHttpInfo () - { - - var localVarPath = "/api/PasswordManager/PasswordRetrieveMode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PasswordManagerGetPasswordRetrieveMode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call retrieves user password according to server configuration - /// - /// Thrown when fails to make API call - /// Retrieve password option - /// string - public string PasswordManagerRetrievePassword (RetrievePasswordRequestDTO retrievePasswordRequest) - { - ApiResponse localVarResponse = PasswordManagerRetrievePasswordWithHttpInfo(retrievePasswordRequest); - return localVarResponse.Data; - } - - /// - /// This call retrieves user password according to server configuration - /// - /// Thrown when fails to make API call - /// Retrieve password option - /// ApiResponse of string - public ApiResponse< string > PasswordManagerRetrievePasswordWithHttpInfo (RetrievePasswordRequestDTO retrievePasswordRequest) - { - // verify the required parameter 'retrievePasswordRequest' is set - if (retrievePasswordRequest == null) - throw new ApiException(400, "Missing required parameter 'retrievePasswordRequest' when calling PasswordManagerApi->PasswordManagerRetrievePassword"); - - var localVarPath = "/api/PasswordManager/RetrievePassword"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (retrievePasswordRequest != null && retrievePasswordRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(retrievePasswordRequest); // http body (model) parameter - } - else - { - localVarPostBody = retrievePasswordRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PasswordManagerRetrievePassword", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call retrieves user password according to server configuration - /// - /// Thrown when fails to make API call - /// Retrieve password option - /// Task of string - public async System.Threading.Tasks.Task PasswordManagerRetrievePasswordAsync (RetrievePasswordRequestDTO retrievePasswordRequest) - { - ApiResponse localVarResponse = await PasswordManagerRetrievePasswordAsyncWithHttpInfo(retrievePasswordRequest); - return localVarResponse.Data; - - } - - /// - /// This call retrieves user password according to server configuration - /// - /// Thrown when fails to make API call - /// Retrieve password option - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> PasswordManagerRetrievePasswordAsyncWithHttpInfo (RetrievePasswordRequestDTO retrievePasswordRequest) - { - // verify the required parameter 'retrievePasswordRequest' is set - if (retrievePasswordRequest == null) - throw new ApiException(400, "Missing required parameter 'retrievePasswordRequest' when calling PasswordManagerApi->PasswordManagerRetrievePassword"); - - var localVarPath = "/api/PasswordManager/RetrievePassword"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (retrievePasswordRequest != null && retrievePasswordRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(retrievePasswordRequest); // http body (model) parameter - } - else - { - localVarPostBody = retrievePasswordRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PasswordManagerRetrievePassword", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/PeriodsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/PeriodsApi.cs deleted file mode 100644 index 2e61018..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/PeriodsApi.cs +++ /dev/null @@ -1,305 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IPeriodsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all periods defined for electronic storage in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<PeriodDTO> - List PeriodsGetPeriods (); - - /// - /// This call returns all periods defined for electronic storage in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<PeriodDTO> - ApiResponse> PeriodsGetPeriodsWithHttpInfo (); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all periods defined for electronic storage in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<PeriodDTO> - System.Threading.Tasks.Task> PeriodsGetPeriodsAsync (); - - /// - /// This call returns all periods defined for electronic storage in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<PeriodDTO>) - System.Threading.Tasks.Task>> PeriodsGetPeriodsAsyncWithHttpInfo (); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class PeriodsApi : IPeriodsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public PeriodsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public PeriodsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all periods defined for electronic storage in Arxivar - /// - /// Thrown when fails to make API call - /// List<PeriodDTO> - public List PeriodsGetPeriods () - { - ApiResponse> localVarResponse = PeriodsGetPeriodsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all periods defined for electronic storage in Arxivar - /// - /// Thrown when fails to make API call - /// ApiResponse of List<PeriodDTO> - public ApiResponse< List > PeriodsGetPeriodsWithHttpInfo () - { - - var localVarPath = "/api/Periods"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PeriodsGetPeriods", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all periods defined for electronic storage in Arxivar - /// - /// Thrown when fails to make API call - /// Task of List<PeriodDTO> - public async System.Threading.Tasks.Task> PeriodsGetPeriodsAsync () - { - ApiResponse> localVarResponse = await PeriodsGetPeriodsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all periods defined for electronic storage in Arxivar - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<PeriodDTO>) - public async System.Threading.Tasks.Task>> PeriodsGetPeriodsAsyncWithHttpInfo () - { - - var localVarPath = "/api/Periods"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PeriodsGetPeriods", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/PluginsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/PluginsApi.cs deleted file mode 100644 index 8e3b4a2..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/PluginsApi.cs +++ /dev/null @@ -1,1189 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IPluginsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call invokes a server plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Object - Object PluginsPluginsGet (string pluginCode); - - /// - /// This call invokes a server plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// ApiResponse of Object - ApiResponse PluginsPluginsGetWithHttpInfo (string pluginCode); - /// - /// This call returns the server plugin list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<ServerPluginDto> - List PluginsPluginsList (); - - /// - /// This call returns the server plugin list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ServerPluginDto> - ApiResponse> PluginsPluginsListWithHttpInfo (); - /// - /// This call invokes a server plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Parameters - /// Object - Object PluginsPluginsPost (string pluginCode, List parameters); - - /// - /// This call invokes a server plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Parameters - /// ApiResponse of Object - ApiResponse PluginsPluginsPostWithHttpInfo (string pluginCode, List parameters); - /// - /// This call executes plugin advanced command - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin advanced command request - /// PluginCommandResponseDTO - PluginCommandResponseDTO PluginsSendAdvancedCommand (string pluginCode, PluginAdvancedCommandRequestDTO request); - - /// - /// This call executes plugin advanced command - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin advanced command request - /// ApiResponse of PluginCommandResponseDTO - ApiResponse PluginsSendAdvancedCommandWithHttpInfo (string pluginCode, PluginAdvancedCommandRequestDTO request); - /// - /// This call executes plugin command - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin command request - /// PluginCommandResponseDTO - PluginCommandResponseDTO PluginsSendCommand (string pluginCode, PluginCommandRequestDTO request); - - /// - /// This call executes plugin command - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin command request - /// ApiResponse of PluginCommandResponseDTO - ApiResponse PluginsSendCommandWithHttpInfo (string pluginCode, PluginCommandRequestDTO request); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call invokes a server plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Task of Object - System.Threading.Tasks.Task PluginsPluginsGetAsync (string pluginCode); - - /// - /// This call invokes a server plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> PluginsPluginsGetAsyncWithHttpInfo (string pluginCode); - /// - /// This call returns the server plugin list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<ServerPluginDto> - System.Threading.Tasks.Task> PluginsPluginsListAsync (); - - /// - /// This call returns the server plugin list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ServerPluginDto>) - System.Threading.Tasks.Task>> PluginsPluginsListAsyncWithHttpInfo (); - /// - /// This call invokes a server plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Parameters - /// Task of Object - System.Threading.Tasks.Task PluginsPluginsPostAsync (string pluginCode, List parameters); - - /// - /// This call invokes a server plugin - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Parameters - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> PluginsPluginsPostAsyncWithHttpInfo (string pluginCode, List parameters); - /// - /// This call executes plugin advanced command - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin advanced command request - /// Task of PluginCommandResponseDTO - System.Threading.Tasks.Task PluginsSendAdvancedCommandAsync (string pluginCode, PluginAdvancedCommandRequestDTO request); - - /// - /// This call executes plugin advanced command - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin advanced command request - /// Task of ApiResponse (PluginCommandResponseDTO) - System.Threading.Tasks.Task> PluginsSendAdvancedCommandAsyncWithHttpInfo (string pluginCode, PluginAdvancedCommandRequestDTO request); - /// - /// This call executes plugin command - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin command request - /// Task of PluginCommandResponseDTO - System.Threading.Tasks.Task PluginsSendCommandAsync (string pluginCode, PluginCommandRequestDTO request); - - /// - /// This call executes plugin command - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin command request - /// Task of ApiResponse (PluginCommandResponseDTO) - System.Threading.Tasks.Task> PluginsSendCommandAsyncWithHttpInfo (string pluginCode, PluginCommandRequestDTO request); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class PluginsApi : IPluginsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public PluginsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public PluginsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call invokes a server plugin - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Object - public Object PluginsPluginsGet (string pluginCode) - { - ApiResponse localVarResponse = PluginsPluginsGetWithHttpInfo(pluginCode); - return localVarResponse.Data; - } - - /// - /// This call invokes a server plugin - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// ApiResponse of Object - public ApiResponse< Object > PluginsPluginsGetWithHttpInfo (string pluginCode) - { - // verify the required parameter 'pluginCode' is set - if (pluginCode == null) - throw new ApiException(400, "Missing required parameter 'pluginCode' when calling PluginsApi->PluginsPluginsGet"); - - var localVarPath = "/api/Plugins/{pluginCode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginCode != null) localVarPathParams.Add("pluginCode", this.Configuration.ApiClient.ParameterToString(pluginCode)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PluginsPluginsGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call invokes a server plugin - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Task of Object - public async System.Threading.Tasks.Task PluginsPluginsGetAsync (string pluginCode) - { - ApiResponse localVarResponse = await PluginsPluginsGetAsyncWithHttpInfo(pluginCode); - return localVarResponse.Data; - - } - - /// - /// This call invokes a server plugin - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> PluginsPluginsGetAsyncWithHttpInfo (string pluginCode) - { - // verify the required parameter 'pluginCode' is set - if (pluginCode == null) - throw new ApiException(400, "Missing required parameter 'pluginCode' when calling PluginsApi->PluginsPluginsGet"); - - var localVarPath = "/api/Plugins/{pluginCode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginCode != null) localVarPathParams.Add("pluginCode", this.Configuration.ApiClient.ParameterToString(pluginCode)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PluginsPluginsGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the server plugin list - /// - /// Thrown when fails to make API call - /// List<ServerPluginDto> - public List PluginsPluginsList () - { - ApiResponse> localVarResponse = PluginsPluginsListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the server plugin list - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ServerPluginDto> - public ApiResponse< List > PluginsPluginsListWithHttpInfo () - { - - var localVarPath = "/api/Plugins/list"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PluginsPluginsList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the server plugin list - /// - /// Thrown when fails to make API call - /// Task of List<ServerPluginDto> - public async System.Threading.Tasks.Task> PluginsPluginsListAsync () - { - ApiResponse> localVarResponse = await PluginsPluginsListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the server plugin list - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ServerPluginDto>) - public async System.Threading.Tasks.Task>> PluginsPluginsListAsyncWithHttpInfo () - { - - var localVarPath = "/api/Plugins/list"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PluginsPluginsList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call invokes a server plugin - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Parameters - /// Object - public Object PluginsPluginsPost (string pluginCode, List parameters) - { - ApiResponse localVarResponse = PluginsPluginsPostWithHttpInfo(pluginCode, parameters); - return localVarResponse.Data; - } - - /// - /// This call invokes a server plugin - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Parameters - /// ApiResponse of Object - public ApiResponse< Object > PluginsPluginsPostWithHttpInfo (string pluginCode, List parameters) - { - // verify the required parameter 'pluginCode' is set - if (pluginCode == null) - throw new ApiException(400, "Missing required parameter 'pluginCode' when calling PluginsApi->PluginsPluginsPost"); - // verify the required parameter 'parameters' is set - if (parameters == null) - throw new ApiException(400, "Missing required parameter 'parameters' when calling PluginsApi->PluginsPluginsPost"); - - var localVarPath = "/api/Plugins/{pluginCode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginCode != null) localVarPathParams.Add("pluginCode", this.Configuration.ApiClient.ParameterToString(pluginCode)); // path parameter - if (parameters != null && parameters.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(parameters); // http body (model) parameter - } - else - { - localVarPostBody = parameters; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PluginsPluginsPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call invokes a server plugin - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Parameters - /// Task of Object - public async System.Threading.Tasks.Task PluginsPluginsPostAsync (string pluginCode, List parameters) - { - ApiResponse localVarResponse = await PluginsPluginsPostAsyncWithHttpInfo(pluginCode, parameters); - return localVarResponse.Data; - - } - - /// - /// This call invokes a server plugin - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Parameters - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> PluginsPluginsPostAsyncWithHttpInfo (string pluginCode, List parameters) - { - // verify the required parameter 'pluginCode' is set - if (pluginCode == null) - throw new ApiException(400, "Missing required parameter 'pluginCode' when calling PluginsApi->PluginsPluginsPost"); - // verify the required parameter 'parameters' is set - if (parameters == null) - throw new ApiException(400, "Missing required parameter 'parameters' when calling PluginsApi->PluginsPluginsPost"); - - var localVarPath = "/api/Plugins/{pluginCode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginCode != null) localVarPathParams.Add("pluginCode", this.Configuration.ApiClient.ParameterToString(pluginCode)); // path parameter - if (parameters != null && parameters.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(parameters); // http body (model) parameter - } - else - { - localVarPostBody = parameters; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PluginsPluginsPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call executes plugin advanced command - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin advanced command request - /// PluginCommandResponseDTO - public PluginCommandResponseDTO PluginsSendAdvancedCommand (string pluginCode, PluginAdvancedCommandRequestDTO request) - { - ApiResponse localVarResponse = PluginsSendAdvancedCommandWithHttpInfo(pluginCode, request); - return localVarResponse.Data; - } - - /// - /// This call executes plugin advanced command - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin advanced command request - /// ApiResponse of PluginCommandResponseDTO - public ApiResponse< PluginCommandResponseDTO > PluginsSendAdvancedCommandWithHttpInfo (string pluginCode, PluginAdvancedCommandRequestDTO request) - { - // verify the required parameter 'pluginCode' is set - if (pluginCode == null) - throw new ApiException(400, "Missing required parameter 'pluginCode' when calling PluginsApi->PluginsSendAdvancedCommand"); - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling PluginsApi->PluginsSendAdvancedCommand"); - - var localVarPath = "/api/Plugins/{pluginCode}/AdvancedCommand"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginCode != null) localVarPathParams.Add("pluginCode", this.Configuration.ApiClient.ParameterToString(pluginCode)); // path parameter - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PluginsSendAdvancedCommand", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PluginCommandResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PluginCommandResponseDTO))); - } - - /// - /// This call executes plugin advanced command - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin advanced command request - /// Task of PluginCommandResponseDTO - public async System.Threading.Tasks.Task PluginsSendAdvancedCommandAsync (string pluginCode, PluginAdvancedCommandRequestDTO request) - { - ApiResponse localVarResponse = await PluginsSendAdvancedCommandAsyncWithHttpInfo(pluginCode, request); - return localVarResponse.Data; - - } - - /// - /// This call executes plugin advanced command - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin advanced command request - /// Task of ApiResponse (PluginCommandResponseDTO) - public async System.Threading.Tasks.Task> PluginsSendAdvancedCommandAsyncWithHttpInfo (string pluginCode, PluginAdvancedCommandRequestDTO request) - { - // verify the required parameter 'pluginCode' is set - if (pluginCode == null) - throw new ApiException(400, "Missing required parameter 'pluginCode' when calling PluginsApi->PluginsSendAdvancedCommand"); - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling PluginsApi->PluginsSendAdvancedCommand"); - - var localVarPath = "/api/Plugins/{pluginCode}/AdvancedCommand"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginCode != null) localVarPathParams.Add("pluginCode", this.Configuration.ApiClient.ParameterToString(pluginCode)); // path parameter - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PluginsSendAdvancedCommand", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PluginCommandResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PluginCommandResponseDTO))); - } - - /// - /// This call executes plugin command - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin command request - /// PluginCommandResponseDTO - public PluginCommandResponseDTO PluginsSendCommand (string pluginCode, PluginCommandRequestDTO request) - { - ApiResponse localVarResponse = PluginsSendCommandWithHttpInfo(pluginCode, request); - return localVarResponse.Data; - } - - /// - /// This call executes plugin command - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin command request - /// ApiResponse of PluginCommandResponseDTO - public ApiResponse< PluginCommandResponseDTO > PluginsSendCommandWithHttpInfo (string pluginCode, PluginCommandRequestDTO request) - { - // verify the required parameter 'pluginCode' is set - if (pluginCode == null) - throw new ApiException(400, "Missing required parameter 'pluginCode' when calling PluginsApi->PluginsSendCommand"); - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling PluginsApi->PluginsSendCommand"); - - var localVarPath = "/api/Plugins/{pluginCode}/Command"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginCode != null) localVarPathParams.Add("pluginCode", this.Configuration.ApiClient.ParameterToString(pluginCode)); // path parameter - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PluginsSendCommand", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PluginCommandResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PluginCommandResponseDTO))); - } - - /// - /// This call executes plugin command - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin command request - /// Task of PluginCommandResponseDTO - public async System.Threading.Tasks.Task PluginsSendCommandAsync (string pluginCode, PluginCommandRequestDTO request) - { - ApiResponse localVarResponse = await PluginsSendCommandAsyncWithHttpInfo(pluginCode, request); - return localVarResponse.Data; - - } - - /// - /// This call executes plugin command - /// - /// Thrown when fails to make API call - /// Identifier of plugin - /// Plugin command request - /// Task of ApiResponse (PluginCommandResponseDTO) - public async System.Threading.Tasks.Task> PluginsSendCommandAsyncWithHttpInfo (string pluginCode, PluginCommandRequestDTO request) - { - // verify the required parameter 'pluginCode' is set - if (pluginCode == null) - throw new ApiException(400, "Missing required parameter 'pluginCode' when calling PluginsApi->PluginsSendCommand"); - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling PluginsApi->PluginsSendCommand"); - - var localVarPath = "/api/Plugins/{pluginCode}/Command"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pluginCode != null) localVarPathParams.Add("pluginCode", this.Configuration.ApiClient.ParameterToString(pluginCode)); // path parameter - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PluginsSendCommand", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PluginCommandResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PluginCommandResponseDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/PredefinedProfilesApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/PredefinedProfilesApi.cs deleted file mode 100644 index 6e3bb3b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/PredefinedProfilesApi.cs +++ /dev/null @@ -1,2070 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IPredefinedProfilesApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call clones a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier to clone - /// Name of the cloned predefined profile - /// - void PredefinedProfilesClone (int? predefinedProfileId, string name); - - /// - /// This call clones a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier to clone - /// Name of the cloned predefined profile - /// ApiResponse of Object(void) - ApiResponse PredefinedProfilesCloneWithHttpInfo (int? predefinedProfileId, string name); - /// - /// This call deletes a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// - void PredefinedProfilesDeletePredefinedProfile (int? predefinedProfileId); - - /// - /// This call deletes a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// ApiResponse of Object(void) - ApiResponse PredefinedProfilesDeletePredefinedProfileWithHttpInfo (int? predefinedProfileId); - /// - /// This call returns all the predefined profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<PredefinedProfileDTO> - List PredefinedProfilesGet (); - - /// - /// This call returns all the predefined profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<PredefinedProfileDTO> - ApiResponse> PredefinedProfilesGetWithHttpInfo (); - /// - /// This call returns a predefined profile by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// PredefinedProfileDTO - PredefinedProfileDTO PredefinedProfilesGetById (int? predefinedProfileId); - - /// - /// This call returns a predefined profile by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// ApiResponse of PredefinedProfileDTO - ApiResponse PredefinedProfilesGetByIdWithHttpInfo (int? predefinedProfileId); - /// - /// This call returns a new predefined profile template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// PredefinedProfileDTO - PredefinedProfileDTO PredefinedProfilesGetNew (); - - /// - /// This call returns a new predefined profile template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of PredefinedProfileDTO - ApiResponse PredefinedProfilesGetNewWithHttpInfo (); - /// - /// This call returns the profile schema by a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// PredefinedProfileSchemaDTO - PredefinedProfileSchemaDTO PredefinedProfilesGetProfileSchemaByPredefinedProfileId (int? predefinedProfileId, ProfileDTO profile = null); - - /// - /// This call returns the profile schema by a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// ApiResponse of PredefinedProfileSchemaDTO - ApiResponse PredefinedProfilesGetProfileSchemaByPredefinedProfileIdWithHttpInfo (int? predefinedProfileId, ProfileDTO profile = null); - /// - /// This call returns the permissions for a predefiend profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// PermissionsDTO - PermissionsDTO PredefinedProfilesPermissionsById (int? predefinedProfileId); - - /// - /// This call returns the permissions for a predefiend profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// ApiResponse of PermissionsDTO - ApiResponse PredefinedProfilesPermissionsByIdWithHttpInfo (int? predefinedProfileId); - /// - /// This call updates a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// - void PredefinedProfilesUpdatePredefinedProfile (int? predefinedProfileId, PredefinedProfileDTO predefinedprofiledto = null); - - /// - /// This call updates a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// ApiResponse of Object(void) - ApiResponse PredefinedProfilesUpdatePredefinedProfileWithHttpInfo (int? predefinedProfileId, PredefinedProfileDTO predefinedprofiledto = null); - /// - /// This call updates permissions for a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Permissions to update - /// - void PredefinedProfilesWritePermissionsById (int? predefinedProfileId, PermissionsDTO permissions); - - /// - /// This call updates permissions for a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Permissions to update - /// ApiResponse of Object(void) - ApiResponse PredefinedProfilesWritePermissionsByIdWithHttpInfo (int? predefinedProfileId, PermissionsDTO permissions); - /// - /// This call creates a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// - void PredefinedProfilesWritePredefinedProfile (PredefinedProfileDTO predefinedprofiledto = null); - - /// - /// This call creates a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - ApiResponse PredefinedProfilesWritePredefinedProfileWithHttpInfo (PredefinedProfileDTO predefinedprofiledto = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call clones a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier to clone - /// Name of the cloned predefined profile - /// Task of void - System.Threading.Tasks.Task PredefinedProfilesCloneAsync (int? predefinedProfileId, string name); - - /// - /// This call clones a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier to clone - /// Name of the cloned predefined profile - /// Task of ApiResponse - System.Threading.Tasks.Task> PredefinedProfilesCloneAsyncWithHttpInfo (int? predefinedProfileId, string name); - /// - /// This call deletes a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of void - System.Threading.Tasks.Task PredefinedProfilesDeletePredefinedProfileAsync (int? predefinedProfileId); - - /// - /// This call deletes a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> PredefinedProfilesDeletePredefinedProfileAsyncWithHttpInfo (int? predefinedProfileId); - /// - /// This call returns all the predefined profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<PredefinedProfileDTO> - System.Threading.Tasks.Task> PredefinedProfilesGetAsync (); - - /// - /// This call returns all the predefined profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<PredefinedProfileDTO>) - System.Threading.Tasks.Task>> PredefinedProfilesGetAsyncWithHttpInfo (); - /// - /// This call returns a predefined profile by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of PredefinedProfileDTO - System.Threading.Tasks.Task PredefinedProfilesGetByIdAsync (int? predefinedProfileId); - - /// - /// This call returns a predefined profile by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of ApiResponse (PredefinedProfileDTO) - System.Threading.Tasks.Task> PredefinedProfilesGetByIdAsyncWithHttpInfo (int? predefinedProfileId); - /// - /// This call returns a new predefined profile template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of PredefinedProfileDTO - System.Threading.Tasks.Task PredefinedProfilesGetNewAsync (); - - /// - /// This call returns a new predefined profile template - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (PredefinedProfileDTO) - System.Threading.Tasks.Task> PredefinedProfilesGetNewAsyncWithHttpInfo (); - /// - /// This call returns the profile schema by a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// Task of PredefinedProfileSchemaDTO - System.Threading.Tasks.Task PredefinedProfilesGetProfileSchemaByPredefinedProfileIdAsync (int? predefinedProfileId, ProfileDTO profile = null); - - /// - /// This call returns the profile schema by a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// Task of ApiResponse (PredefinedProfileSchemaDTO) - System.Threading.Tasks.Task> PredefinedProfilesGetProfileSchemaByPredefinedProfileIdAsyncWithHttpInfo (int? predefinedProfileId, ProfileDTO profile = null); - /// - /// This call returns the permissions for a predefiend profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of PermissionsDTO - System.Threading.Tasks.Task PredefinedProfilesPermissionsByIdAsync (int? predefinedProfileId); - - /// - /// This call returns the permissions for a predefiend profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of ApiResponse (PermissionsDTO) - System.Threading.Tasks.Task> PredefinedProfilesPermissionsByIdAsyncWithHttpInfo (int? predefinedProfileId); - /// - /// This call updates a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// Task of void - System.Threading.Tasks.Task PredefinedProfilesUpdatePredefinedProfileAsync (int? predefinedProfileId, PredefinedProfileDTO predefinedprofiledto = null); - - /// - /// This call updates a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// Task of ApiResponse - System.Threading.Tasks.Task> PredefinedProfilesUpdatePredefinedProfileAsyncWithHttpInfo (int? predefinedProfileId, PredefinedProfileDTO predefinedprofiledto = null); - /// - /// This call updates permissions for a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Permissions to update - /// Task of void - System.Threading.Tasks.Task PredefinedProfilesWritePermissionsByIdAsync (int? predefinedProfileId, PermissionsDTO permissions); - - /// - /// This call updates permissions for a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Permissions to update - /// Task of ApiResponse - System.Threading.Tasks.Task> PredefinedProfilesWritePermissionsByIdAsyncWithHttpInfo (int? predefinedProfileId, PermissionsDTO permissions); - /// - /// This call creates a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - System.Threading.Tasks.Task PredefinedProfilesWritePredefinedProfileAsync (PredefinedProfileDTO predefinedprofiledto = null); - - /// - /// This call creates a predefined profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - System.Threading.Tasks.Task> PredefinedProfilesWritePredefinedProfileAsyncWithHttpInfo (PredefinedProfileDTO predefinedprofiledto = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class PredefinedProfilesApi : IPredefinedProfilesApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public PredefinedProfilesApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public PredefinedProfilesApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call clones a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier to clone - /// Name of the cloned predefined profile - /// - public void PredefinedProfilesClone (int? predefinedProfileId, string name) - { - PredefinedProfilesCloneWithHttpInfo(predefinedProfileId, name); - } - - /// - /// This call clones a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier to clone - /// Name of the cloned predefined profile - /// ApiResponse of Object(void) - public ApiResponse PredefinedProfilesCloneWithHttpInfo (int? predefinedProfileId, string name) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesApi->PredefinedProfilesClone"); - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling PredefinedProfilesApi->PredefinedProfilesClone"); - - var localVarPath = "/api/PredefinedProfiles/{predefinedProfileId}/clone"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesClone", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call clones a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier to clone - /// Name of the cloned predefined profile - /// Task of void - public async System.Threading.Tasks.Task PredefinedProfilesCloneAsync (int? predefinedProfileId, string name) - { - await PredefinedProfilesCloneAsyncWithHttpInfo(predefinedProfileId, name); - - } - - /// - /// This call clones a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier to clone - /// Name of the cloned predefined profile - /// Task of ApiResponse - public async System.Threading.Tasks.Task> PredefinedProfilesCloneAsyncWithHttpInfo (int? predefinedProfileId, string name) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesApi->PredefinedProfilesClone"); - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling PredefinedProfilesApi->PredefinedProfilesClone"); - - var localVarPath = "/api/PredefinedProfiles/{predefinedProfileId}/clone"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesClone", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// - public void PredefinedProfilesDeletePredefinedProfile (int? predefinedProfileId) - { - PredefinedProfilesDeletePredefinedProfileWithHttpInfo(predefinedProfileId); - } - - /// - /// This call deletes a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// ApiResponse of Object(void) - public ApiResponse PredefinedProfilesDeletePredefinedProfileWithHttpInfo (int? predefinedProfileId) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesApi->PredefinedProfilesDeletePredefinedProfile"); - - var localVarPath = "/api/PredefinedProfiles/{predefinedProfileId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesDeletePredefinedProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of void - public async System.Threading.Tasks.Task PredefinedProfilesDeletePredefinedProfileAsync (int? predefinedProfileId) - { - await PredefinedProfilesDeletePredefinedProfileAsyncWithHttpInfo(predefinedProfileId); - - } - - /// - /// This call deletes a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> PredefinedProfilesDeletePredefinedProfileAsyncWithHttpInfo (int? predefinedProfileId) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesApi->PredefinedProfilesDeletePredefinedProfile"); - - var localVarPath = "/api/PredefinedProfiles/{predefinedProfileId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesDeletePredefinedProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all the predefined profiles - /// - /// Thrown when fails to make API call - /// List<PredefinedProfileDTO> - public List PredefinedProfilesGet () - { - ApiResponse> localVarResponse = PredefinedProfilesGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all the predefined profiles - /// - /// Thrown when fails to make API call - /// ApiResponse of List<PredefinedProfileDTO> - public ApiResponse< List > PredefinedProfilesGetWithHttpInfo () - { - - var localVarPath = "/api/PredefinedProfiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the predefined profiles - /// - /// Thrown when fails to make API call - /// Task of List<PredefinedProfileDTO> - public async System.Threading.Tasks.Task> PredefinedProfilesGetAsync () - { - ApiResponse> localVarResponse = await PredefinedProfilesGetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all the predefined profiles - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<PredefinedProfileDTO>) - public async System.Threading.Tasks.Task>> PredefinedProfilesGetAsyncWithHttpInfo () - { - - var localVarPath = "/api/PredefinedProfiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a predefined profile by its id - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// PredefinedProfileDTO - public PredefinedProfileDTO PredefinedProfilesGetById (int? predefinedProfileId) - { - ApiResponse localVarResponse = PredefinedProfilesGetByIdWithHttpInfo(predefinedProfileId); - return localVarResponse.Data; - } - - /// - /// This call returns a predefined profile by its id - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// ApiResponse of PredefinedProfileDTO - public ApiResponse< PredefinedProfileDTO > PredefinedProfilesGetByIdWithHttpInfo (int? predefinedProfileId) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesApi->PredefinedProfilesGetById"); - - var localVarPath = "/api/PredefinedProfiles/{predefinedProfileId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PredefinedProfileDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PredefinedProfileDTO))); - } - - /// - /// This call returns a predefined profile by its id - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of PredefinedProfileDTO - public async System.Threading.Tasks.Task PredefinedProfilesGetByIdAsync (int? predefinedProfileId) - { - ApiResponse localVarResponse = await PredefinedProfilesGetByIdAsyncWithHttpInfo(predefinedProfileId); - return localVarResponse.Data; - - } - - /// - /// This call returns a predefined profile by its id - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of ApiResponse (PredefinedProfileDTO) - public async System.Threading.Tasks.Task> PredefinedProfilesGetByIdAsyncWithHttpInfo (int? predefinedProfileId) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesApi->PredefinedProfilesGetById"); - - var localVarPath = "/api/PredefinedProfiles/{predefinedProfileId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PredefinedProfileDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PredefinedProfileDTO))); - } - - /// - /// This call returns a new predefined profile template - /// - /// Thrown when fails to make API call - /// PredefinedProfileDTO - public PredefinedProfileDTO PredefinedProfilesGetNew () - { - ApiResponse localVarResponse = PredefinedProfilesGetNewWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a new predefined profile template - /// - /// Thrown when fails to make API call - /// ApiResponse of PredefinedProfileDTO - public ApiResponse< PredefinedProfileDTO > PredefinedProfilesGetNewWithHttpInfo () - { - - var localVarPath = "/api/PredefinedProfiles/new"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesGetNew", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PredefinedProfileDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PredefinedProfileDTO))); - } - - /// - /// This call returns a new predefined profile template - /// - /// Thrown when fails to make API call - /// Task of PredefinedProfileDTO - public async System.Threading.Tasks.Task PredefinedProfilesGetNewAsync () - { - ApiResponse localVarResponse = await PredefinedProfilesGetNewAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a new predefined profile template - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (PredefinedProfileDTO) - public async System.Threading.Tasks.Task> PredefinedProfilesGetNewAsyncWithHttpInfo () - { - - var localVarPath = "/api/PredefinedProfiles/new"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesGetNew", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PredefinedProfileDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PredefinedProfileDTO))); - } - - /// - /// This call returns the profile schema by a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// PredefinedProfileSchemaDTO - public PredefinedProfileSchemaDTO PredefinedProfilesGetProfileSchemaByPredefinedProfileId (int? predefinedProfileId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = PredefinedProfilesGetProfileSchemaByPredefinedProfileIdWithHttpInfo(predefinedProfileId, profile); - return localVarResponse.Data; - } - - /// - /// This call returns the profile schema by a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// ApiResponse of PredefinedProfileSchemaDTO - public ApiResponse< PredefinedProfileSchemaDTO > PredefinedProfilesGetProfileSchemaByPredefinedProfileIdWithHttpInfo (int? predefinedProfileId, ProfileDTO profile = null) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesApi->PredefinedProfilesGetProfileSchemaByPredefinedProfileId"); - - var localVarPath = "/api/PredefinedProfiles/{predefinedProfileId}/profileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesGetProfileSchemaByPredefinedProfileId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PredefinedProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PredefinedProfileSchemaDTO))); - } - - /// - /// This call returns the profile schema by a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// Task of PredefinedProfileSchemaDTO - public async System.Threading.Tasks.Task PredefinedProfilesGetProfileSchemaByPredefinedProfileIdAsync (int? predefinedProfileId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = await PredefinedProfilesGetProfileSchemaByPredefinedProfileIdAsyncWithHttpInfo(predefinedProfileId, profile); - return localVarResponse.Data; - - } - - /// - /// This call returns the profile schema by a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// Task of ApiResponse (PredefinedProfileSchemaDTO) - public async System.Threading.Tasks.Task> PredefinedProfilesGetProfileSchemaByPredefinedProfileIdAsyncWithHttpInfo (int? predefinedProfileId, ProfileDTO profile = null) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesApi->PredefinedProfilesGetProfileSchemaByPredefinedProfileId"); - - var localVarPath = "/api/PredefinedProfiles/{predefinedProfileId}/profileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesGetProfileSchemaByPredefinedProfileId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PredefinedProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PredefinedProfileSchemaDTO))); - } - - /// - /// This call returns the permissions for a predefiend profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// PermissionsDTO - public PermissionsDTO PredefinedProfilesPermissionsById (int? predefinedProfileId) - { - ApiResponse localVarResponse = PredefinedProfilesPermissionsByIdWithHttpInfo(predefinedProfileId); - return localVarResponse.Data; - } - - /// - /// This call returns the permissions for a predefiend profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// ApiResponse of PermissionsDTO - public ApiResponse< PermissionsDTO > PredefinedProfilesPermissionsByIdWithHttpInfo (int? predefinedProfileId) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesApi->PredefinedProfilesPermissionsById"); - - var localVarPath = "/api/PredefinedProfiles/{predefinedProfileId}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesPermissionsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call returns the permissions for a predefiend profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of PermissionsDTO - public async System.Threading.Tasks.Task PredefinedProfilesPermissionsByIdAsync (int? predefinedProfileId) - { - ApiResponse localVarResponse = await PredefinedProfilesPermissionsByIdAsyncWithHttpInfo(predefinedProfileId); - return localVarResponse.Data; - - } - - /// - /// This call returns the permissions for a predefiend profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of ApiResponse (PermissionsDTO) - public async System.Threading.Tasks.Task> PredefinedProfilesPermissionsByIdAsyncWithHttpInfo (int? predefinedProfileId) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesApi->PredefinedProfilesPermissionsById"); - - var localVarPath = "/api/PredefinedProfiles/{predefinedProfileId}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesPermissionsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call updates a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// - public void PredefinedProfilesUpdatePredefinedProfile (int? predefinedProfileId, PredefinedProfileDTO predefinedprofiledto = null) - { - PredefinedProfilesUpdatePredefinedProfileWithHttpInfo(predefinedProfileId, predefinedprofiledto); - } - - /// - /// This call updates a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// ApiResponse of Object(void) - public ApiResponse PredefinedProfilesUpdatePredefinedProfileWithHttpInfo (int? predefinedProfileId, PredefinedProfileDTO predefinedprofiledto = null) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesApi->PredefinedProfilesUpdatePredefinedProfile"); - - var localVarPath = "/api/PredefinedProfiles/{predefinedProfileId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - if (predefinedprofiledto != null && predefinedprofiledto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(predefinedprofiledto); // http body (model) parameter - } - else - { - localVarPostBody = predefinedprofiledto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesUpdatePredefinedProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// Task of void - public async System.Threading.Tasks.Task PredefinedProfilesUpdatePredefinedProfileAsync (int? predefinedProfileId, PredefinedProfileDTO predefinedprofiledto = null) - { - await PredefinedProfilesUpdatePredefinedProfileAsyncWithHttpInfo(predefinedProfileId, predefinedprofiledto); - - } - - /// - /// This call updates a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// (optional) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> PredefinedProfilesUpdatePredefinedProfileAsyncWithHttpInfo (int? predefinedProfileId, PredefinedProfileDTO predefinedprofiledto = null) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesApi->PredefinedProfilesUpdatePredefinedProfile"); - - var localVarPath = "/api/PredefinedProfiles/{predefinedProfileId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - if (predefinedprofiledto != null && predefinedprofiledto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(predefinedprofiledto); // http body (model) parameter - } - else - { - localVarPostBody = predefinedprofiledto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesUpdatePredefinedProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates permissions for a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Permissions to update - /// - public void PredefinedProfilesWritePermissionsById (int? predefinedProfileId, PermissionsDTO permissions) - { - PredefinedProfilesWritePermissionsByIdWithHttpInfo(predefinedProfileId, permissions); - } - - /// - /// This call updates permissions for a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Permissions to update - /// ApiResponse of Object(void) - public ApiResponse PredefinedProfilesWritePermissionsByIdWithHttpInfo (int? predefinedProfileId, PermissionsDTO permissions) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesApi->PredefinedProfilesWritePermissionsById"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling PredefinedProfilesApi->PredefinedProfilesWritePermissionsById"); - - var localVarPath = "/api/PredefinedProfiles/{predefinedProfileId}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesWritePermissionsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates permissions for a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Permissions to update - /// Task of void - public async System.Threading.Tasks.Task PredefinedProfilesWritePermissionsByIdAsync (int? predefinedProfileId, PermissionsDTO permissions) - { - await PredefinedProfilesWritePermissionsByIdAsyncWithHttpInfo(predefinedProfileId, permissions); - - } - - /// - /// This call updates permissions for a predefined profile - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Permissions to update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> PredefinedProfilesWritePermissionsByIdAsyncWithHttpInfo (int? predefinedProfileId, PermissionsDTO permissions) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesApi->PredefinedProfilesWritePermissionsById"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling PredefinedProfilesApi->PredefinedProfilesWritePermissionsById"); - - var localVarPath = "/api/PredefinedProfiles/{predefinedProfileId}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesWritePermissionsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call creates a predefined profile - /// - /// Thrown when fails to make API call - /// (optional) - /// - public void PredefinedProfilesWritePredefinedProfile (PredefinedProfileDTO predefinedprofiledto = null) - { - PredefinedProfilesWritePredefinedProfileWithHttpInfo(predefinedprofiledto); - } - - /// - /// This call creates a predefined profile - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - public ApiResponse PredefinedProfilesWritePredefinedProfileWithHttpInfo (PredefinedProfileDTO predefinedprofiledto = null) - { - - var localVarPath = "/api/PredefinedProfiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedprofiledto != null && predefinedprofiledto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(predefinedprofiledto); // http body (model) parameter - } - else - { - localVarPostBody = predefinedprofiledto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesWritePredefinedProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call creates a predefined profile - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - public async System.Threading.Tasks.Task PredefinedProfilesWritePredefinedProfileAsync (PredefinedProfileDTO predefinedprofiledto = null) - { - await PredefinedProfilesWritePredefinedProfileAsyncWithHttpInfo(predefinedprofiledto); - - } - - /// - /// This call creates a predefined profile - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> PredefinedProfilesWritePredefinedProfileAsyncWithHttpInfo (PredefinedProfileDTO predefinedprofiledto = null) - { - - var localVarPath = "/api/PredefinedProfiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedprofiledto != null && predefinedprofiledto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(predefinedprofiledto); // http body (model) parameter - } - else - { - localVarPostBody = predefinedprofiledto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesWritePredefinedProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/PreviewsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/PreviewsApi.cs deleted file mode 100644 index 0184ce9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/PreviewsApi.cs +++ /dev/null @@ -1,1428 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IPreviewsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the total page number of a profile preview file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Revision number - /// PreviewSchemaDTO - PreviewSchemaDTO PreviewsGetPageNumberByDocnumber (int? counterstable, string keyid, int? revision); - - /// - /// This call returns the total page number of a profile preview file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Revision number - /// ApiResponse of PreviewSchemaDTO - ApiResponse PreviewsGetPageNumberByDocnumberWithHttpInfo (int? counterstable, string keyid, int? revision); - /// - /// This call returns the file of a preview file page - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Page index - /// Revision number - /// Object - Object PreviewsGetPreviewByPageNumberAndDocnumber (int? counterstable, string keyid, int? pageindex, int? revision); - - /// - /// This call returns the file of a preview file page - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Page index - /// Revision number - /// ApiResponse of Object - ApiResponse PreviewsGetPreviewByPageNumberAndDocnumberWithHttpInfo (int? counterstable, string keyid, int? pageindex, int? revision); - /// - /// This call returns the preview of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// ProfilePreviewDTO - ProfilePreviewDTO PreviewsGetProfilePreviewByDocnumber (int? docnumber); - - /// - /// This call returns the preview of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of ProfilePreviewDTO - ApiResponse PreviewsGetProfilePreviewByDocnumberWithHttpInfo (int? docnumber); - /// - /// This call returns the list of preview of the document list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifiers - /// List<ProfilePreviewDTO> - List PreviewsGetProfilesPreviewByDocnumbers (List docnumbers); - - /// - /// This call returns the list of preview of the document list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifiers - /// ApiResponse of List<ProfilePreviewDTO> - ApiResponse> PreviewsGetProfilesPreviewByDocnumbersWithHttpInfo (List docnumbers); - /// - /// This call returns the list of preview of the task document list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task document identifiers - /// List<ProfilePreviewDTO> - List PreviewsGetProfilesPreviewByTaskworItems (List taskPreviewList); - - /// - /// This call returns the list of preview of the task document list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task document identifiers - /// ApiResponse of List<ProfilePreviewDTO> - ApiResponse> PreviewsGetProfilesPreviewByTaskworItemsWithHttpInfo (List taskPreviewList); - /// - /// This call returns the list of preview of the task document list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<ProfilePreviewDTO> - List PreviewsGetProfilesPreviewForTaskV2ByDocnumber (List taskV2PreviewList); - - /// - /// This call returns the list of preview of the task document list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<ProfilePreviewDTO> - ApiResponse> PreviewsGetProfilesPreviewForTaskV2ByDocnumberWithHttpInfo (List taskV2PreviewList); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the total page number of a profile preview file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Revision number - /// Task of PreviewSchemaDTO - System.Threading.Tasks.Task PreviewsGetPageNumberByDocnumberAsync (int? counterstable, string keyid, int? revision); - - /// - /// This call returns the total page number of a profile preview file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Revision number - /// Task of ApiResponse (PreviewSchemaDTO) - System.Threading.Tasks.Task> PreviewsGetPageNumberByDocnumberAsyncWithHttpInfo (int? counterstable, string keyid, int? revision); - /// - /// This call returns the file of a preview file page - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Page index - /// Revision number - /// Task of Object - System.Threading.Tasks.Task PreviewsGetPreviewByPageNumberAndDocnumberAsync (int? counterstable, string keyid, int? pageindex, int? revision); - - /// - /// This call returns the file of a preview file page - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Page index - /// Revision number - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> PreviewsGetPreviewByPageNumberAndDocnumberAsyncWithHttpInfo (int? counterstable, string keyid, int? pageindex, int? revision); - /// - /// This call returns the preview of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ProfilePreviewDTO - System.Threading.Tasks.Task PreviewsGetProfilePreviewByDocnumberAsync (int? docnumber); - - /// - /// This call returns the preview of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (ProfilePreviewDTO) - System.Threading.Tasks.Task> PreviewsGetProfilePreviewByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call returns the list of preview of the document list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifiers - /// Task of List<ProfilePreviewDTO> - System.Threading.Tasks.Task> PreviewsGetProfilesPreviewByDocnumbersAsync (List docnumbers); - - /// - /// This call returns the list of preview of the document list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifiers - /// Task of ApiResponse (List<ProfilePreviewDTO>) - System.Threading.Tasks.Task>> PreviewsGetProfilesPreviewByDocnumbersAsyncWithHttpInfo (List docnumbers); - /// - /// This call returns the list of preview of the task document list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task document identifiers - /// Task of List<ProfilePreviewDTO> - System.Threading.Tasks.Task> PreviewsGetProfilesPreviewByTaskworItemsAsync (List taskPreviewList); - - /// - /// This call returns the list of preview of the task document list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task document identifiers - /// Task of ApiResponse (List<ProfilePreviewDTO>) - System.Threading.Tasks.Task>> PreviewsGetProfilesPreviewByTaskworItemsAsyncWithHttpInfo (List taskPreviewList); - /// - /// This call returns the list of preview of the task document list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<ProfilePreviewDTO> - System.Threading.Tasks.Task> PreviewsGetProfilesPreviewForTaskV2ByDocnumberAsync (List taskV2PreviewList); - - /// - /// This call returns the list of preview of the task document list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<ProfilePreviewDTO>) - System.Threading.Tasks.Task>> PreviewsGetProfilesPreviewForTaskV2ByDocnumberAsyncWithHttpInfo (List taskV2PreviewList); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class PreviewsApi : IPreviewsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public PreviewsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public PreviewsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the total page number of a profile preview file - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Revision number - /// PreviewSchemaDTO - public PreviewSchemaDTO PreviewsGetPageNumberByDocnumber (int? counterstable, string keyid, int? revision) - { - ApiResponse localVarResponse = PreviewsGetPageNumberByDocnumberWithHttpInfo(counterstable, keyid, revision); - return localVarResponse.Data; - } - - /// - /// This call returns the total page number of a profile preview file - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Revision number - /// ApiResponse of PreviewSchemaDTO - public ApiResponse< PreviewSchemaDTO > PreviewsGetPageNumberByDocnumberWithHttpInfo (int? counterstable, string keyid, int? revision) - { - // verify the required parameter 'counterstable' is set - if (counterstable == null) - throw new ApiException(400, "Missing required parameter 'counterstable' when calling PreviewsApi->PreviewsGetPageNumberByDocnumber"); - // verify the required parameter 'keyid' is set - if (keyid == null) - throw new ApiException(400, "Missing required parameter 'keyid' when calling PreviewsApi->PreviewsGetPageNumberByDocnumber"); - // verify the required parameter 'revision' is set - if (revision == null) - throw new ApiException(400, "Missing required parameter 'revision' when calling PreviewsApi->PreviewsGetPageNumberByDocnumber"); - - var localVarPath = "/api/Previews/{counterstable}/{keyid}/totalpages/{revision}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (counterstable != null) localVarPathParams.Add("counterstable", this.Configuration.ApiClient.ParameterToString(counterstable)); // path parameter - if (keyid != null) localVarPathParams.Add("keyid", this.Configuration.ApiClient.ParameterToString(keyid)); // path parameter - if (revision != null) localVarPathParams.Add("revision", this.Configuration.ApiClient.ParameterToString(revision)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PreviewsGetPageNumberByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PreviewSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PreviewSchemaDTO))); - } - - /// - /// This call returns the total page number of a profile preview file - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Revision number - /// Task of PreviewSchemaDTO - public async System.Threading.Tasks.Task PreviewsGetPageNumberByDocnumberAsync (int? counterstable, string keyid, int? revision) - { - ApiResponse localVarResponse = await PreviewsGetPageNumberByDocnumberAsyncWithHttpInfo(counterstable, keyid, revision); - return localVarResponse.Data; - - } - - /// - /// This call returns the total page number of a profile preview file - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Revision number - /// Task of ApiResponse (PreviewSchemaDTO) - public async System.Threading.Tasks.Task> PreviewsGetPageNumberByDocnumberAsyncWithHttpInfo (int? counterstable, string keyid, int? revision) - { - // verify the required parameter 'counterstable' is set - if (counterstable == null) - throw new ApiException(400, "Missing required parameter 'counterstable' when calling PreviewsApi->PreviewsGetPageNumberByDocnumber"); - // verify the required parameter 'keyid' is set - if (keyid == null) - throw new ApiException(400, "Missing required parameter 'keyid' when calling PreviewsApi->PreviewsGetPageNumberByDocnumber"); - // verify the required parameter 'revision' is set - if (revision == null) - throw new ApiException(400, "Missing required parameter 'revision' when calling PreviewsApi->PreviewsGetPageNumberByDocnumber"); - - var localVarPath = "/api/Previews/{counterstable}/{keyid}/totalpages/{revision}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (counterstable != null) localVarPathParams.Add("counterstable", this.Configuration.ApiClient.ParameterToString(counterstable)); // path parameter - if (keyid != null) localVarPathParams.Add("keyid", this.Configuration.ApiClient.ParameterToString(keyid)); // path parameter - if (revision != null) localVarPathParams.Add("revision", this.Configuration.ApiClient.ParameterToString(revision)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PreviewsGetPageNumberByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PreviewSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PreviewSchemaDTO))); - } - - /// - /// This call returns the file of a preview file page - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Page index - /// Revision number - /// Object - public Object PreviewsGetPreviewByPageNumberAndDocnumber (int? counterstable, string keyid, int? pageindex, int? revision) - { - ApiResponse localVarResponse = PreviewsGetPreviewByPageNumberAndDocnumberWithHttpInfo(counterstable, keyid, pageindex, revision); - return localVarResponse.Data; - } - - /// - /// This call returns the file of a preview file page - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Page index - /// Revision number - /// ApiResponse of Object - public ApiResponse< Object > PreviewsGetPreviewByPageNumberAndDocnumberWithHttpInfo (int? counterstable, string keyid, int? pageindex, int? revision) - { - // verify the required parameter 'counterstable' is set - if (counterstable == null) - throw new ApiException(400, "Missing required parameter 'counterstable' when calling PreviewsApi->PreviewsGetPreviewByPageNumberAndDocnumber"); - // verify the required parameter 'keyid' is set - if (keyid == null) - throw new ApiException(400, "Missing required parameter 'keyid' when calling PreviewsApi->PreviewsGetPreviewByPageNumberAndDocnumber"); - // verify the required parameter 'pageindex' is set - if (pageindex == null) - throw new ApiException(400, "Missing required parameter 'pageindex' when calling PreviewsApi->PreviewsGetPreviewByPageNumberAndDocnumber"); - // verify the required parameter 'revision' is set - if (revision == null) - throw new ApiException(400, "Missing required parameter 'revision' when calling PreviewsApi->PreviewsGetPreviewByPageNumberAndDocnumber"); - - var localVarPath = "/api/Previews/{counterstable}/{keyid}/page/{pageindex}/{revision}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (counterstable != null) localVarPathParams.Add("counterstable", this.Configuration.ApiClient.ParameterToString(counterstable)); // path parameter - if (keyid != null) localVarPathParams.Add("keyid", this.Configuration.ApiClient.ParameterToString(keyid)); // path parameter - if (pageindex != null) localVarPathParams.Add("pageindex", this.Configuration.ApiClient.ParameterToString(pageindex)); // path parameter - if (revision != null) localVarPathParams.Add("revision", this.Configuration.ApiClient.ParameterToString(revision)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PreviewsGetPreviewByPageNumberAndDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the file of a preview file page - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Page index - /// Revision number - /// Task of Object - public async System.Threading.Tasks.Task PreviewsGetPreviewByPageNumberAndDocnumberAsync (int? counterstable, string keyid, int? pageindex, int? revision) - { - ApiResponse localVarResponse = await PreviewsGetPreviewByPageNumberAndDocnumberAsyncWithHttpInfo(counterstable, keyid, pageindex, revision); - return localVarResponse.Data; - - } - - /// - /// This call returns the file of a preview file page - /// - /// Thrown when fails to make API call - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// Key identifier - /// Page index - /// Revision number - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> PreviewsGetPreviewByPageNumberAndDocnumberAsyncWithHttpInfo (int? counterstable, string keyid, int? pageindex, int? revision) - { - // verify the required parameter 'counterstable' is set - if (counterstable == null) - throw new ApiException(400, "Missing required parameter 'counterstable' when calling PreviewsApi->PreviewsGetPreviewByPageNumberAndDocnumber"); - // verify the required parameter 'keyid' is set - if (keyid == null) - throw new ApiException(400, "Missing required parameter 'keyid' when calling PreviewsApi->PreviewsGetPreviewByPageNumberAndDocnumber"); - // verify the required parameter 'pageindex' is set - if (pageindex == null) - throw new ApiException(400, "Missing required parameter 'pageindex' when calling PreviewsApi->PreviewsGetPreviewByPageNumberAndDocnumber"); - // verify the required parameter 'revision' is set - if (revision == null) - throw new ApiException(400, "Missing required parameter 'revision' when calling PreviewsApi->PreviewsGetPreviewByPageNumberAndDocnumber"); - - var localVarPath = "/api/Previews/{counterstable}/{keyid}/page/{pageindex}/{revision}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (counterstable != null) localVarPathParams.Add("counterstable", this.Configuration.ApiClient.ParameterToString(counterstable)); // path parameter - if (keyid != null) localVarPathParams.Add("keyid", this.Configuration.ApiClient.ParameterToString(keyid)); // path parameter - if (pageindex != null) localVarPathParams.Add("pageindex", this.Configuration.ApiClient.ParameterToString(pageindex)); // path parameter - if (revision != null) localVarPathParams.Add("revision", this.Configuration.ApiClient.ParameterToString(revision)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PreviewsGetPreviewByPageNumberAndDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the preview of a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// ProfilePreviewDTO - public ProfilePreviewDTO PreviewsGetProfilePreviewByDocnumber (int? docnumber) - { - ApiResponse localVarResponse = PreviewsGetProfilePreviewByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns the preview of a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of ProfilePreviewDTO - public ApiResponse< ProfilePreviewDTO > PreviewsGetProfilePreviewByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling PreviewsApi->PreviewsGetProfilePreviewByDocnumber"); - - var localVarPath = "/api/Previews/{docnumber}/profile"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PreviewsGetProfilePreviewByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfilePreviewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfilePreviewDTO))); - } - - /// - /// This call returns the preview of a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ProfilePreviewDTO - public async System.Threading.Tasks.Task PreviewsGetProfilePreviewByDocnumberAsync (int? docnumber) - { - ApiResponse localVarResponse = await PreviewsGetProfilePreviewByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns the preview of a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (ProfilePreviewDTO) - public async System.Threading.Tasks.Task> PreviewsGetProfilePreviewByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling PreviewsApi->PreviewsGetProfilePreviewByDocnumber"); - - var localVarPath = "/api/Previews/{docnumber}/profile"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PreviewsGetProfilePreviewByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfilePreviewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfilePreviewDTO))); - } - - /// - /// This call returns the list of preview of the document list - /// - /// Thrown when fails to make API call - /// Document identifiers - /// List<ProfilePreviewDTO> - public List PreviewsGetProfilesPreviewByDocnumbers (List docnumbers) - { - ApiResponse> localVarResponse = PreviewsGetProfilesPreviewByDocnumbersWithHttpInfo(docnumbers); - return localVarResponse.Data; - } - - /// - /// This call returns the list of preview of the document list - /// - /// Thrown when fails to make API call - /// Document identifiers - /// ApiResponse of List<ProfilePreviewDTO> - public ApiResponse< List > PreviewsGetProfilesPreviewByDocnumbersWithHttpInfo (List docnumbers) - { - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling PreviewsApi->PreviewsGetProfilesPreviewByDocnumbers"); - - var localVarPath = "/api/Previews/profiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PreviewsGetProfilesPreviewByDocnumbers", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the list of preview of the document list - /// - /// Thrown when fails to make API call - /// Document identifiers - /// Task of List<ProfilePreviewDTO> - public async System.Threading.Tasks.Task> PreviewsGetProfilesPreviewByDocnumbersAsync (List docnumbers) - { - ApiResponse> localVarResponse = await PreviewsGetProfilesPreviewByDocnumbersAsyncWithHttpInfo(docnumbers); - return localVarResponse.Data; - - } - - /// - /// This call returns the list of preview of the document list - /// - /// Thrown when fails to make API call - /// Document identifiers - /// Task of ApiResponse (List<ProfilePreviewDTO>) - public async System.Threading.Tasks.Task>> PreviewsGetProfilesPreviewByDocnumbersAsyncWithHttpInfo (List docnumbers) - { - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling PreviewsApi->PreviewsGetProfilesPreviewByDocnumbers"); - - var localVarPath = "/api/Previews/profiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PreviewsGetProfilesPreviewByDocnumbers", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the list of preview of the task document list - /// - /// Thrown when fails to make API call - /// Task document identifiers - /// List<ProfilePreviewDTO> - public List PreviewsGetProfilesPreviewByTaskworItems (List taskPreviewList) - { - ApiResponse> localVarResponse = PreviewsGetProfilesPreviewByTaskworItemsWithHttpInfo(taskPreviewList); - return localVarResponse.Data; - } - - /// - /// This call returns the list of preview of the task document list - /// - /// Thrown when fails to make API call - /// Task document identifiers - /// ApiResponse of List<ProfilePreviewDTO> - public ApiResponse< List > PreviewsGetProfilesPreviewByTaskworItemsWithHttpInfo (List taskPreviewList) - { - // verify the required parameter 'taskPreviewList' is set - if (taskPreviewList == null) - throw new ApiException(400, "Missing required parameter 'taskPreviewList' when calling PreviewsApi->PreviewsGetProfilesPreviewByTaskworItems"); - - var localVarPath = "/api/Previews/task/profiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskPreviewList != null && taskPreviewList.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskPreviewList); // http body (model) parameter - } - else - { - localVarPostBody = taskPreviewList; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PreviewsGetProfilesPreviewByTaskworItems", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the list of preview of the task document list - /// - /// Thrown when fails to make API call - /// Task document identifiers - /// Task of List<ProfilePreviewDTO> - public async System.Threading.Tasks.Task> PreviewsGetProfilesPreviewByTaskworItemsAsync (List taskPreviewList) - { - ApiResponse> localVarResponse = await PreviewsGetProfilesPreviewByTaskworItemsAsyncWithHttpInfo(taskPreviewList); - return localVarResponse.Data; - - } - - /// - /// This call returns the list of preview of the task document list - /// - /// Thrown when fails to make API call - /// Task document identifiers - /// Task of ApiResponse (List<ProfilePreviewDTO>) - public async System.Threading.Tasks.Task>> PreviewsGetProfilesPreviewByTaskworItemsAsyncWithHttpInfo (List taskPreviewList) - { - // verify the required parameter 'taskPreviewList' is set - if (taskPreviewList == null) - throw new ApiException(400, "Missing required parameter 'taskPreviewList' when calling PreviewsApi->PreviewsGetProfilesPreviewByTaskworItems"); - - var localVarPath = "/api/Previews/task/profiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskPreviewList != null && taskPreviewList.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskPreviewList); // http body (model) parameter - } - else - { - localVarPostBody = taskPreviewList; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PreviewsGetProfilesPreviewByTaskworItems", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the list of preview of the task document list - /// - /// Thrown when fails to make API call - /// - /// List<ProfilePreviewDTO> - public List PreviewsGetProfilesPreviewForTaskV2ByDocnumber (List taskV2PreviewList) - { - ApiResponse> localVarResponse = PreviewsGetProfilesPreviewForTaskV2ByDocnumberWithHttpInfo(taskV2PreviewList); - return localVarResponse.Data; - } - - /// - /// This call returns the list of preview of the task document list - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<ProfilePreviewDTO> - public ApiResponse< List > PreviewsGetProfilesPreviewForTaskV2ByDocnumberWithHttpInfo (List taskV2PreviewList) - { - // verify the required parameter 'taskV2PreviewList' is set - if (taskV2PreviewList == null) - throw new ApiException(400, "Missing required parameter 'taskV2PreviewList' when calling PreviewsApi->PreviewsGetProfilesPreviewForTaskV2ByDocnumber"); - - var localVarPath = "/api/Previews/taskV2/profiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskV2PreviewList != null && taskV2PreviewList.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskV2PreviewList); // http body (model) parameter - } - else - { - localVarPostBody = taskV2PreviewList; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PreviewsGetProfilesPreviewForTaskV2ByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the list of preview of the task document list - /// - /// Thrown when fails to make API call - /// - /// Task of List<ProfilePreviewDTO> - public async System.Threading.Tasks.Task> PreviewsGetProfilesPreviewForTaskV2ByDocnumberAsync (List taskV2PreviewList) - { - ApiResponse> localVarResponse = await PreviewsGetProfilesPreviewForTaskV2ByDocnumberAsyncWithHttpInfo(taskV2PreviewList); - return localVarResponse.Data; - - } - - /// - /// This call returns the list of preview of the task document list - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<ProfilePreviewDTO>) - public async System.Threading.Tasks.Task>> PreviewsGetProfilesPreviewForTaskV2ByDocnumberAsyncWithHttpInfo (List taskV2PreviewList) - { - // verify the required parameter 'taskV2PreviewList' is set - if (taskV2PreviewList == null) - throw new ApiException(400, "Missing required parameter 'taskV2PreviewList' when calling PreviewsApi->PreviewsGetProfilesPreviewForTaskV2ByDocnumber"); - - var localVarPath = "/api/Previews/taskV2/profiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskV2PreviewList != null && taskV2PreviewList.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskV2PreviewList); // http body (model) parameter - } - else - { - localVarPostBody = taskV2PreviewList; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PreviewsGetProfilesPreviewForTaskV2ByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ProcessAttachmentsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ProcessAttachmentsApi.cs deleted file mode 100644 index 2d76f9f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ProcessAttachmentsApi.cs +++ /dev/null @@ -1,335 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IProcessAttachmentsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call inserts a new process attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Attachment information to insert - /// - void ProcessAttachmentsInsertTaskAttachment (ProcessAttachmentInsertDto request); - - /// - /// This call inserts a new process attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Attachment information to insert - /// ApiResponse of Object(void) - ApiResponse ProcessAttachmentsInsertTaskAttachmentWithHttpInfo (ProcessAttachmentInsertDto request); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call inserts a new process attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Attachment information to insert - /// Task of void - System.Threading.Tasks.Task ProcessAttachmentsInsertTaskAttachmentAsync (ProcessAttachmentInsertDto request); - - /// - /// This call inserts a new process attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Attachment information to insert - /// Task of ApiResponse - System.Threading.Tasks.Task> ProcessAttachmentsInsertTaskAttachmentAsyncWithHttpInfo (ProcessAttachmentInsertDto request); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ProcessAttachmentsApi : IProcessAttachmentsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ProcessAttachmentsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ProcessAttachmentsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call inserts a new process attachment - /// - /// Thrown when fails to make API call - /// Process Attachment information to insert - /// - public void ProcessAttachmentsInsertTaskAttachment (ProcessAttachmentInsertDto request) - { - ProcessAttachmentsInsertTaskAttachmentWithHttpInfo(request); - } - - /// - /// This call inserts a new process attachment - /// - /// Thrown when fails to make API call - /// Process Attachment information to insert - /// ApiResponse of Object(void) - public ApiResponse ProcessAttachmentsInsertTaskAttachmentWithHttpInfo (ProcessAttachmentInsertDto request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling ProcessAttachmentsApi->ProcessAttachmentsInsertTaskAttachment"); - - var localVarPath = "/api/ProcessAttachments"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessAttachmentsInsertTaskAttachment", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts a new process attachment - /// - /// Thrown when fails to make API call - /// Process Attachment information to insert - /// Task of void - public async System.Threading.Tasks.Task ProcessAttachmentsInsertTaskAttachmentAsync (ProcessAttachmentInsertDto request) - { - await ProcessAttachmentsInsertTaskAttachmentAsyncWithHttpInfo(request); - - } - - /// - /// This call inserts a new process attachment - /// - /// Thrown when fails to make API call - /// Process Attachment information to insert - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ProcessAttachmentsInsertTaskAttachmentAsyncWithHttpInfo (ProcessAttachmentInsertDto request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling ProcessAttachmentsApi->ProcessAttachmentsInsertTaskAttachment"); - - var localVarPath = "/api/ProcessAttachments"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessAttachmentsInsertTaskAttachment", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ProcessDocumentApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ProcessDocumentApi.cs deleted file mode 100644 index f633e77..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ProcessDocumentApi.cs +++ /dev/null @@ -1,310 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IProcessDocumentApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call frees a document from workflow constraint - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - void ProcessDocumentFreeWorkflowConstraint (int? docnumber); - - /// - /// This call frees a document from workflow constraint - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of Object(void) - ApiResponse ProcessDocumentFreeWorkflowConstraintWithHttpInfo (int? docnumber); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call frees a document from workflow constraint - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of void - System.Threading.Tasks.Task ProcessDocumentFreeWorkflowConstraintAsync (int? docnumber); - - /// - /// This call frees a document from workflow constraint - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> ProcessDocumentFreeWorkflowConstraintAsyncWithHttpInfo (int? docnumber); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ProcessDocumentApi : IProcessDocumentApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ProcessDocumentApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ProcessDocumentApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call frees a document from workflow constraint - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - public void ProcessDocumentFreeWorkflowConstraint (int? docnumber) - { - ProcessDocumentFreeWorkflowConstraintWithHttpInfo(docnumber); - } - - /// - /// This call frees a document from workflow constraint - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of Object(void) - public ApiResponse ProcessDocumentFreeWorkflowConstraintWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling ProcessDocumentApi->ProcessDocumentFreeWorkflowConstraint"); - - var localVarPath = "/api/ProcessDocument"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "docnumber", docnumber)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessDocumentFreeWorkflowConstraint", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call frees a document from workflow constraint - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of void - public async System.Threading.Tasks.Task ProcessDocumentFreeWorkflowConstraintAsync (int? docnumber) - { - await ProcessDocumentFreeWorkflowConstraintAsyncWithHttpInfo(docnumber); - - } - - /// - /// This call frees a document from workflow constraint - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ProcessDocumentFreeWorkflowConstraintAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling ProcessDocumentApi->ProcessDocumentFreeWorkflowConstraint"); - - var localVarPath = "/api/ProcessDocument"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "docnumber", docnumber)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessDocumentFreeWorkflowConstraint", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ProcessInfoApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ProcessInfoApi.cs deleted file mode 100644 index 78ac48a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ProcessInfoApi.cs +++ /dev/null @@ -1,1849 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IProcessInfoApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the attachments of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<AttachmentWorkInfoDTO> - List ProcessInfoGetAttachmentInfoByProcess (int? processId); - - /// - /// This call returns the attachments of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<AttachmentWorkInfoDTO> - ApiResponse> ProcessInfoGetAttachmentInfoByProcessWithHttpInfo (int? processId); - /// - /// This call returns the chrono information of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<ChronoInfoDTO> - List ProcessInfoGetChronoInfoByProcess (int? processId); - - /// - /// This call returns the chrono information of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<ChronoInfoDTO> - ApiResponse> ProcessInfoGetChronoInfoByProcessWithHttpInfo (int? processId); - /// - /// This call returns the document information associated with the process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<DocumentWorkInfoDTO> - List ProcessInfoGetDocumentInfoByProcess (int? processId); - - /// - /// This call returns the document information associated with the process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<DocumentWorkInfoDTO> - ApiResponse> ProcessInfoGetDocumentInfoByProcessWithHttpInfo (int? processId); - /// - /// This call returns the note associated with process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<NoteWorkInfoDTO> - List ProcessInfoGetNoteInfoByProcess (int? processId); - - /// - /// This call returns the note associated with process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<NoteWorkInfoDTO> - ApiResponse> ProcessInfoGetNoteInfoByProcessWithHttpInfo (int? processId); - /// - /// This call returns the process information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ProcessInfoDTO - ProcessInfoDTO ProcessInfoGetProcessInfo (int? processId); - - /// - /// This call returns the process information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of ProcessInfoDTO - ApiResponse ProcessInfoGetProcessInfoWithHttpInfo (int? processId); - /// - /// This call returns the professional roles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<ProfessionalRoleInfoDTO> - List ProcessInfoGetProfessionalRoleInfoByProcess (int? processId); - - /// - /// This call returns the professional roles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<ProfessionalRoleInfoDTO> - ApiResponse> ProcessInfoGetProfessionalRoleInfoByProcessWithHttpInfo (int? processId); - /// - /// This call returns all task associated with the process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<TaskInfoDTO> - List ProcessInfoGetTaskInfoByProcess (int? processId); - - /// - /// This call returns all task associated with the process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<TaskInfoDTO> - ApiResponse> ProcessInfoGetTaskInfoByProcessWithHttpInfo (int? processId); - /// - /// This call returns the process variable information of a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ProcessInfoVariableDTO - ProcessInfoVariableDTO ProcessInfoGetVariableInfoByProcess (int? processId); - - /// - /// This call returns the process variable information of a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of ProcessInfoVariableDTO - ApiResponse ProcessInfoGetVariableInfoByProcessWithHttpInfo (int? processId); - /// - /// This call checks if the user connected is supervisor of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// bool? - bool? ProcessInfoIsSupervisor (int? processId); - - /// - /// This call checks if the user connected is supervisor of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of bool? - ApiResponse ProcessInfoIsSupervisorWithHttpInfo (int? processId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the attachments of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<AttachmentWorkInfoDTO> - System.Threading.Tasks.Task> ProcessInfoGetAttachmentInfoByProcessAsync (int? processId); - - /// - /// This call returns the attachments of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<AttachmentWorkInfoDTO>) - System.Threading.Tasks.Task>> ProcessInfoGetAttachmentInfoByProcessAsyncWithHttpInfo (int? processId); - /// - /// This call returns the chrono information of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<ChronoInfoDTO> - System.Threading.Tasks.Task> ProcessInfoGetChronoInfoByProcessAsync (int? processId); - - /// - /// This call returns the chrono information of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<ChronoInfoDTO>) - System.Threading.Tasks.Task>> ProcessInfoGetChronoInfoByProcessAsyncWithHttpInfo (int? processId); - /// - /// This call returns the document information associated with the process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<DocumentWorkInfoDTO> - System.Threading.Tasks.Task> ProcessInfoGetDocumentInfoByProcessAsync (int? processId); - - /// - /// This call returns the document information associated with the process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<DocumentWorkInfoDTO>) - System.Threading.Tasks.Task>> ProcessInfoGetDocumentInfoByProcessAsyncWithHttpInfo (int? processId); - /// - /// This call returns the note associated with process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<NoteWorkInfoDTO> - System.Threading.Tasks.Task> ProcessInfoGetNoteInfoByProcessAsync (int? processId); - - /// - /// This call returns the note associated with process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<NoteWorkInfoDTO>) - System.Threading.Tasks.Task>> ProcessInfoGetNoteInfoByProcessAsyncWithHttpInfo (int? processId); - /// - /// This call returns the process information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ProcessInfoDTO - System.Threading.Tasks.Task ProcessInfoGetProcessInfoAsync (int? processId); - - /// - /// This call returns the process information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (ProcessInfoDTO) - System.Threading.Tasks.Task> ProcessInfoGetProcessInfoAsyncWithHttpInfo (int? processId); - /// - /// This call returns the professional roles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<ProfessionalRoleInfoDTO> - System.Threading.Tasks.Task> ProcessInfoGetProfessionalRoleInfoByProcessAsync (int? processId); - - /// - /// This call returns the professional roles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<ProfessionalRoleInfoDTO>) - System.Threading.Tasks.Task>> ProcessInfoGetProfessionalRoleInfoByProcessAsyncWithHttpInfo (int? processId); - /// - /// This call returns all task associated with the process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<TaskInfoDTO> - System.Threading.Tasks.Task> ProcessInfoGetTaskInfoByProcessAsync (int? processId); - - /// - /// This call returns all task associated with the process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<TaskInfoDTO>) - System.Threading.Tasks.Task>> ProcessInfoGetTaskInfoByProcessAsyncWithHttpInfo (int? processId); - /// - /// This call returns the process variable information of a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ProcessInfoVariableDTO - System.Threading.Tasks.Task ProcessInfoGetVariableInfoByProcessAsync (int? processId); - - /// - /// This call returns the process variable information of a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (ProcessInfoVariableDTO) - System.Threading.Tasks.Task> ProcessInfoGetVariableInfoByProcessAsyncWithHttpInfo (int? processId); - /// - /// This call checks if the user connected is supervisor of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of bool? - System.Threading.Tasks.Task ProcessInfoIsSupervisorAsync (int? processId); - - /// - /// This call checks if the user connected is supervisor of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> ProcessInfoIsSupervisorAsyncWithHttpInfo (int? processId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ProcessInfoApi : IProcessInfoApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ProcessInfoApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ProcessInfoApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the attachments of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<AttachmentWorkInfoDTO> - public List ProcessInfoGetAttachmentInfoByProcess (int? processId) - { - ApiResponse> localVarResponse = ProcessInfoGetAttachmentInfoByProcessWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// This call returns the attachments of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<AttachmentWorkInfoDTO> - public ApiResponse< List > ProcessInfoGetAttachmentInfoByProcessWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetAttachmentInfoByProcess"); - - var localVarPath = "/api/ProcessInfo/{processId}/Attachment"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetAttachmentInfoByProcess", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the attachments of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<AttachmentWorkInfoDTO> - public async System.Threading.Tasks.Task> ProcessInfoGetAttachmentInfoByProcessAsync (int? processId) - { - ApiResponse> localVarResponse = await ProcessInfoGetAttachmentInfoByProcessAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// This call returns the attachments of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<AttachmentWorkInfoDTO>) - public async System.Threading.Tasks.Task>> ProcessInfoGetAttachmentInfoByProcessAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetAttachmentInfoByProcess"); - - var localVarPath = "/api/ProcessInfo/{processId}/Attachment"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetAttachmentInfoByProcess", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the chrono information of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<ChronoInfoDTO> - public List ProcessInfoGetChronoInfoByProcess (int? processId) - { - ApiResponse> localVarResponse = ProcessInfoGetChronoInfoByProcessWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// This call returns the chrono information of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<ChronoInfoDTO> - public ApiResponse< List > ProcessInfoGetChronoInfoByProcessWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetChronoInfoByProcess"); - - var localVarPath = "/api/ProcessInfo/{processId}/Chrono"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetChronoInfoByProcess", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the chrono information of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<ChronoInfoDTO> - public async System.Threading.Tasks.Task> ProcessInfoGetChronoInfoByProcessAsync (int? processId) - { - ApiResponse> localVarResponse = await ProcessInfoGetChronoInfoByProcessAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// This call returns the chrono information of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<ChronoInfoDTO>) - public async System.Threading.Tasks.Task>> ProcessInfoGetChronoInfoByProcessAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetChronoInfoByProcess"); - - var localVarPath = "/api/ProcessInfo/{processId}/Chrono"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetChronoInfoByProcess", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the document information associated with the process - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<DocumentWorkInfoDTO> - public List ProcessInfoGetDocumentInfoByProcess (int? processId) - { - ApiResponse> localVarResponse = ProcessInfoGetDocumentInfoByProcessWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// This call returns the document information associated with the process - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<DocumentWorkInfoDTO> - public ApiResponse< List > ProcessInfoGetDocumentInfoByProcessWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetDocumentInfoByProcess"); - - var localVarPath = "/api/ProcessInfo/{processId}/Document"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetDocumentInfoByProcess", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the document information associated with the process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<DocumentWorkInfoDTO> - public async System.Threading.Tasks.Task> ProcessInfoGetDocumentInfoByProcessAsync (int? processId) - { - ApiResponse> localVarResponse = await ProcessInfoGetDocumentInfoByProcessAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// This call returns the document information associated with the process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<DocumentWorkInfoDTO>) - public async System.Threading.Tasks.Task>> ProcessInfoGetDocumentInfoByProcessAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetDocumentInfoByProcess"); - - var localVarPath = "/api/ProcessInfo/{processId}/Document"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetDocumentInfoByProcess", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the note associated with process - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<NoteWorkInfoDTO> - public List ProcessInfoGetNoteInfoByProcess (int? processId) - { - ApiResponse> localVarResponse = ProcessInfoGetNoteInfoByProcessWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// This call returns the note associated with process - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<NoteWorkInfoDTO> - public ApiResponse< List > ProcessInfoGetNoteInfoByProcessWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetNoteInfoByProcess"); - - var localVarPath = "/api/ProcessInfo/{processId}/Note"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetNoteInfoByProcess", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the note associated with process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<NoteWorkInfoDTO> - public async System.Threading.Tasks.Task> ProcessInfoGetNoteInfoByProcessAsync (int? processId) - { - ApiResponse> localVarResponse = await ProcessInfoGetNoteInfoByProcessAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// This call returns the note associated with process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<NoteWorkInfoDTO>) - public async System.Threading.Tasks.Task>> ProcessInfoGetNoteInfoByProcessAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetNoteInfoByProcess"); - - var localVarPath = "/api/ProcessInfo/{processId}/Note"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetNoteInfoByProcess", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the process information - /// - /// Thrown when fails to make API call - /// Process identifier - /// ProcessInfoDTO - public ProcessInfoDTO ProcessInfoGetProcessInfo (int? processId) - { - ApiResponse localVarResponse = ProcessInfoGetProcessInfoWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// This call returns the process information - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of ProcessInfoDTO - public ApiResponse< ProcessInfoDTO > ProcessInfoGetProcessInfoWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetProcessInfo"); - - var localVarPath = "/api/ProcessInfo/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetProcessInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProcessInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessInfoDTO))); - } - - /// - /// This call returns the process information - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ProcessInfoDTO - public async System.Threading.Tasks.Task ProcessInfoGetProcessInfoAsync (int? processId) - { - ApiResponse localVarResponse = await ProcessInfoGetProcessInfoAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// This call returns the process information - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (ProcessInfoDTO) - public async System.Threading.Tasks.Task> ProcessInfoGetProcessInfoAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetProcessInfo"); - - var localVarPath = "/api/ProcessInfo/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetProcessInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProcessInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessInfoDTO))); - } - - /// - /// This call returns the professional roles - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<ProfessionalRoleInfoDTO> - public List ProcessInfoGetProfessionalRoleInfoByProcess (int? processId) - { - ApiResponse> localVarResponse = ProcessInfoGetProfessionalRoleInfoByProcessWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// This call returns the professional roles - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<ProfessionalRoleInfoDTO> - public ApiResponse< List > ProcessInfoGetProfessionalRoleInfoByProcessWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetProfessionalRoleInfoByProcess"); - - var localVarPath = "/api/ProcessInfo/{processId}/ProfessionalRole"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetProfessionalRoleInfoByProcess", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the professional roles - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<ProfessionalRoleInfoDTO> - public async System.Threading.Tasks.Task> ProcessInfoGetProfessionalRoleInfoByProcessAsync (int? processId) - { - ApiResponse> localVarResponse = await ProcessInfoGetProfessionalRoleInfoByProcessAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// This call returns the professional roles - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<ProfessionalRoleInfoDTO>) - public async System.Threading.Tasks.Task>> ProcessInfoGetProfessionalRoleInfoByProcessAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetProfessionalRoleInfoByProcess"); - - var localVarPath = "/api/ProcessInfo/{processId}/ProfessionalRole"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetProfessionalRoleInfoByProcess", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all task associated with the process - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<TaskInfoDTO> - public List ProcessInfoGetTaskInfoByProcess (int? processId) - { - ApiResponse> localVarResponse = ProcessInfoGetTaskInfoByProcessWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// This call returns all task associated with the process - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<TaskInfoDTO> - public ApiResponse< List > ProcessInfoGetTaskInfoByProcessWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetTaskInfoByProcess"); - - var localVarPath = "/api/ProcessInfo/{processId}/Task"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetTaskInfoByProcess", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all task associated with the process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<TaskInfoDTO> - public async System.Threading.Tasks.Task> ProcessInfoGetTaskInfoByProcessAsync (int? processId) - { - ApiResponse> localVarResponse = await ProcessInfoGetTaskInfoByProcessAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// This call returns all task associated with the process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<TaskInfoDTO>) - public async System.Threading.Tasks.Task>> ProcessInfoGetTaskInfoByProcessAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetTaskInfoByProcess"); - - var localVarPath = "/api/ProcessInfo/{processId}/Task"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetTaskInfoByProcess", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the process variable information of a process - /// - /// Thrown when fails to make API call - /// Process identifier - /// ProcessInfoVariableDTO - public ProcessInfoVariableDTO ProcessInfoGetVariableInfoByProcess (int? processId) - { - ApiResponse localVarResponse = ProcessInfoGetVariableInfoByProcessWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// This call returns the process variable information of a process - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of ProcessInfoVariableDTO - public ApiResponse< ProcessInfoVariableDTO > ProcessInfoGetVariableInfoByProcessWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetVariableInfoByProcess"); - - var localVarPath = "/api/ProcessInfo/{processId}/Variable"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetVariableInfoByProcess", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProcessInfoVariableDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessInfoVariableDTO))); - } - - /// - /// This call returns the process variable information of a process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ProcessInfoVariableDTO - public async System.Threading.Tasks.Task ProcessInfoGetVariableInfoByProcessAsync (int? processId) - { - ApiResponse localVarResponse = await ProcessInfoGetVariableInfoByProcessAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// This call returns the process variable information of a process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (ProcessInfoVariableDTO) - public async System.Threading.Tasks.Task> ProcessInfoGetVariableInfoByProcessAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoGetVariableInfoByProcess"); - - var localVarPath = "/api/ProcessInfo/{processId}/Variable"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoGetVariableInfoByProcess", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProcessInfoVariableDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessInfoVariableDTO))); - } - - /// - /// This call checks if the user connected is supervisor of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// bool? - public bool? ProcessInfoIsSupervisor (int? processId) - { - ApiResponse localVarResponse = ProcessInfoIsSupervisorWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// This call checks if the user connected is supervisor of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of bool? - public ApiResponse< bool? > ProcessInfoIsSupervisorWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoIsSupervisor"); - - var localVarPath = "/api/ProcessInfo/{processId}/IsSupervisor"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoIsSupervisor", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call checks if the user connected is supervisor of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of bool? - public async System.Threading.Tasks.Task ProcessInfoIsSupervisorAsync (int? processId) - { - ApiResponse localVarResponse = await ProcessInfoIsSupervisorAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// This call checks if the user connected is supervisor of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> ProcessInfoIsSupervisorAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessInfoApi->ProcessInfoIsSupervisor"); - - var localVarPath = "/api/ProcessInfo/{processId}/IsSupervisor"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessInfoIsSupervisor", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ProcessNotesApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ProcessNotesApi.cs deleted file mode 100644 index cd0f74b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ProcessNotesApi.cs +++ /dev/null @@ -1,741 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IProcessNotesApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process note idenfier - /// - void ProcessNotesDelete (int? noteworkid); - - /// - /// This call deletes a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process note idenfier - /// ApiResponse of Object(void) - ApiResponse ProcessNotesDeleteWithHttpInfo (int? noteworkid); - /// - /// This call inserts a new note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note information to insert - /// ProcessNoteDTO - ProcessNoteDTO ProcessNotesInsert (ProcessNoteDTO note); - - /// - /// This call inserts a new note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note information to insert - /// ApiResponse of ProcessNoteDTO - ApiResponse ProcessNotesInsertWithHttpInfo (ProcessNoteDTO note); - /// - /// This call updates a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note information to update - /// ProcessNoteDTO - ProcessNoteDTO ProcessNotesUpdate (ProcessNoteDTO note); - - /// - /// This call updates a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note information to update - /// ApiResponse of ProcessNoteDTO - ApiResponse ProcessNotesUpdateWithHttpInfo (ProcessNoteDTO note); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process note idenfier - /// Task of void - System.Threading.Tasks.Task ProcessNotesDeleteAsync (int? noteworkid); - - /// - /// This call deletes a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process note idenfier - /// Task of ApiResponse - System.Threading.Tasks.Task> ProcessNotesDeleteAsyncWithHttpInfo (int? noteworkid); - /// - /// This call inserts a new note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note information to insert - /// Task of ProcessNoteDTO - System.Threading.Tasks.Task ProcessNotesInsertAsync (ProcessNoteDTO note); - - /// - /// This call inserts a new note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note information to insert - /// Task of ApiResponse (ProcessNoteDTO) - System.Threading.Tasks.Task> ProcessNotesInsertAsyncWithHttpInfo (ProcessNoteDTO note); - /// - /// This call updates a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note information to update - /// Task of ProcessNoteDTO - System.Threading.Tasks.Task ProcessNotesUpdateAsync (ProcessNoteDTO note); - - /// - /// This call updates a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note information to update - /// Task of ApiResponse (ProcessNoteDTO) - System.Threading.Tasks.Task> ProcessNotesUpdateAsyncWithHttpInfo (ProcessNoteDTO note); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ProcessNotesApi : IProcessNotesApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ProcessNotesApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ProcessNotesApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes a process note - /// - /// Thrown when fails to make API call - /// Process note idenfier - /// - public void ProcessNotesDelete (int? noteworkid) - { - ProcessNotesDeleteWithHttpInfo(noteworkid); - } - - /// - /// This call deletes a process note - /// - /// Thrown when fails to make API call - /// Process note idenfier - /// ApiResponse of Object(void) - public ApiResponse ProcessNotesDeleteWithHttpInfo (int? noteworkid) - { - // verify the required parameter 'noteworkid' is set - if (noteworkid == null) - throw new ApiException(400, "Missing required parameter 'noteworkid' when calling ProcessNotesApi->ProcessNotesDelete"); - - var localVarPath = "/api/ProcessNotes/{noteworkid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (noteworkid != null) localVarPathParams.Add("noteworkid", this.Configuration.ApiClient.ParameterToString(noteworkid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessNotesDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a process note - /// - /// Thrown when fails to make API call - /// Process note idenfier - /// Task of void - public async System.Threading.Tasks.Task ProcessNotesDeleteAsync (int? noteworkid) - { - await ProcessNotesDeleteAsyncWithHttpInfo(noteworkid); - - } - - /// - /// This call deletes a process note - /// - /// Thrown when fails to make API call - /// Process note idenfier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ProcessNotesDeleteAsyncWithHttpInfo (int? noteworkid) - { - // verify the required parameter 'noteworkid' is set - if (noteworkid == null) - throw new ApiException(400, "Missing required parameter 'noteworkid' when calling ProcessNotesApi->ProcessNotesDelete"); - - var localVarPath = "/api/ProcessNotes/{noteworkid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (noteworkid != null) localVarPathParams.Add("noteworkid", this.Configuration.ApiClient.ParameterToString(noteworkid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessNotesDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts a new note - /// - /// Thrown when fails to make API call - /// Note information to insert - /// ProcessNoteDTO - public ProcessNoteDTO ProcessNotesInsert (ProcessNoteDTO note) - { - ApiResponse localVarResponse = ProcessNotesInsertWithHttpInfo(note); - return localVarResponse.Data; - } - - /// - /// This call inserts a new note - /// - /// Thrown when fails to make API call - /// Note information to insert - /// ApiResponse of ProcessNoteDTO - public ApiResponse< ProcessNoteDTO > ProcessNotesInsertWithHttpInfo (ProcessNoteDTO note) - { - // verify the required parameter 'note' is set - if (note == null) - throw new ApiException(400, "Missing required parameter 'note' when calling ProcessNotesApi->ProcessNotesInsert"); - - var localVarPath = "/api/ProcessNotes/insert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (note != null && note.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(note); // http body (model) parameter - } - else - { - localVarPostBody = note; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessNotesInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProcessNoteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessNoteDTO))); - } - - /// - /// This call inserts a new note - /// - /// Thrown when fails to make API call - /// Note information to insert - /// Task of ProcessNoteDTO - public async System.Threading.Tasks.Task ProcessNotesInsertAsync (ProcessNoteDTO note) - { - ApiResponse localVarResponse = await ProcessNotesInsertAsyncWithHttpInfo(note); - return localVarResponse.Data; - - } - - /// - /// This call inserts a new note - /// - /// Thrown when fails to make API call - /// Note information to insert - /// Task of ApiResponse (ProcessNoteDTO) - public async System.Threading.Tasks.Task> ProcessNotesInsertAsyncWithHttpInfo (ProcessNoteDTO note) - { - // verify the required parameter 'note' is set - if (note == null) - throw new ApiException(400, "Missing required parameter 'note' when calling ProcessNotesApi->ProcessNotesInsert"); - - var localVarPath = "/api/ProcessNotes/insert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (note != null && note.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(note); // http body (model) parameter - } - else - { - localVarPostBody = note; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessNotesInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProcessNoteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessNoteDTO))); - } - - /// - /// This call updates a process note - /// - /// Thrown when fails to make API call - /// Note information to update - /// ProcessNoteDTO - public ProcessNoteDTO ProcessNotesUpdate (ProcessNoteDTO note) - { - ApiResponse localVarResponse = ProcessNotesUpdateWithHttpInfo(note); - return localVarResponse.Data; - } - - /// - /// This call updates a process note - /// - /// Thrown when fails to make API call - /// Note information to update - /// ApiResponse of ProcessNoteDTO - public ApiResponse< ProcessNoteDTO > ProcessNotesUpdateWithHttpInfo (ProcessNoteDTO note) - { - // verify the required parameter 'note' is set - if (note == null) - throw new ApiException(400, "Missing required parameter 'note' when calling ProcessNotesApi->ProcessNotesUpdate"); - - var localVarPath = "/api/ProcessNotes/update"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (note != null && note.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(note); // http body (model) parameter - } - else - { - localVarPostBody = note; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessNotesUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProcessNoteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessNoteDTO))); - } - - /// - /// This call updates a process note - /// - /// Thrown when fails to make API call - /// Note information to update - /// Task of ProcessNoteDTO - public async System.Threading.Tasks.Task ProcessNotesUpdateAsync (ProcessNoteDTO note) - { - ApiResponse localVarResponse = await ProcessNotesUpdateAsyncWithHttpInfo(note); - return localVarResponse.Data; - - } - - /// - /// This call updates a process note - /// - /// Thrown when fails to make API call - /// Note information to update - /// Task of ApiResponse (ProcessNoteDTO) - public async System.Threading.Tasks.Task> ProcessNotesUpdateAsyncWithHttpInfo (ProcessNoteDTO note) - { - // verify the required parameter 'note' is set - if (note == null) - throw new ApiException(400, "Missing required parameter 'note' when calling ProcessNotesApi->ProcessNotesUpdate"); - - var localVarPath = "/api/ProcessNotes/update"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (note != null && note.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(note); // http body (model) parameter - } - else - { - localVarPostBody = note; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessNotesUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProcessNoteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessNoteDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ProcessProfessionalRoleApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ProcessProfessionalRoleApi.cs deleted file mode 100644 index e487401..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ProcessProfessionalRoleApi.cs +++ /dev/null @@ -1,550 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IProcessProfessionalRoleApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the users associated with a professional role of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Professional Role Idenfier - /// List<UserCompleteDTO> - List ProcessProfessionalRoleGetUsersForProfessionalRoleSelection (int? processId, int? professionalRoleId); - - /// - /// This call returns the users associated with a professional role of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Professional Role Idenfier - /// ApiResponse of List<UserCompleteDTO> - ApiResponse> ProcessProfessionalRoleGetUsersForProfessionalRoleSelectionWithHttpInfo (int? processId, int? professionalRoleId); - /// - /// This call inserts a new professional role associated with a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Porfessional Role Idenfier - /// User Identifier - /// - void ProcessProfessionalRoleSetUsersForProfessionalRole (int? processId, int? professionalRoleId, int? userId); - - /// - /// This call inserts a new professional role associated with a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Porfessional Role Idenfier - /// User Identifier - /// ApiResponse of Object(void) - ApiResponse ProcessProfessionalRoleSetUsersForProfessionalRoleWithHttpInfo (int? processId, int? professionalRoleId, int? userId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the users associated with a professional role of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Professional Role Idenfier - /// Task of List<UserCompleteDTO> - System.Threading.Tasks.Task> ProcessProfessionalRoleGetUsersForProfessionalRoleSelectionAsync (int? processId, int? professionalRoleId); - - /// - /// This call returns the users associated with a professional role of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Professional Role Idenfier - /// Task of ApiResponse (List<UserCompleteDTO>) - System.Threading.Tasks.Task>> ProcessProfessionalRoleGetUsersForProfessionalRoleSelectionAsyncWithHttpInfo (int? processId, int? professionalRoleId); - /// - /// This call inserts a new professional role associated with a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Porfessional Role Idenfier - /// User Identifier - /// Task of void - System.Threading.Tasks.Task ProcessProfessionalRoleSetUsersForProfessionalRoleAsync (int? processId, int? professionalRoleId, int? userId); - - /// - /// This call inserts a new professional role associated with a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Porfessional Role Idenfier - /// User Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> ProcessProfessionalRoleSetUsersForProfessionalRoleAsyncWithHttpInfo (int? processId, int? professionalRoleId, int? userId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ProcessProfessionalRoleApi : IProcessProfessionalRoleApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ProcessProfessionalRoleApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ProcessProfessionalRoleApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the users associated with a professional role of process - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Professional Role Idenfier - /// List<UserCompleteDTO> - public List ProcessProfessionalRoleGetUsersForProfessionalRoleSelection (int? processId, int? professionalRoleId) - { - ApiResponse> localVarResponse = ProcessProfessionalRoleGetUsersForProfessionalRoleSelectionWithHttpInfo(processId, professionalRoleId); - return localVarResponse.Data; - } - - /// - /// This call returns the users associated with a professional role of process - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Professional Role Idenfier - /// ApiResponse of List<UserCompleteDTO> - public ApiResponse< List > ProcessProfessionalRoleGetUsersForProfessionalRoleSelectionWithHttpInfo (int? processId, int? professionalRoleId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessProfessionalRoleApi->ProcessProfessionalRoleGetUsersForProfessionalRoleSelection"); - // verify the required parameter 'professionalRoleId' is set - if (professionalRoleId == null) - throw new ApiException(400, "Missing required parameter 'professionalRoleId' when calling ProcessProfessionalRoleApi->ProcessProfessionalRoleGetUsersForProfessionalRoleSelection"); - - var localVarPath = "/api/ProcessProfessionalRoleInfo/{professionalRoleId}/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (professionalRoleId != null) localVarPathParams.Add("professionalRoleId", this.Configuration.ApiClient.ParameterToString(professionalRoleId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessProfessionalRoleGetUsersForProfessionalRoleSelection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the users associated with a professional role of process - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Professional Role Idenfier - /// Task of List<UserCompleteDTO> - public async System.Threading.Tasks.Task> ProcessProfessionalRoleGetUsersForProfessionalRoleSelectionAsync (int? processId, int? professionalRoleId) - { - ApiResponse> localVarResponse = await ProcessProfessionalRoleGetUsersForProfessionalRoleSelectionAsyncWithHttpInfo(processId, professionalRoleId); - return localVarResponse.Data; - - } - - /// - /// This call returns the users associated with a professional role of process - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Professional Role Idenfier - /// Task of ApiResponse (List<UserCompleteDTO>) - public async System.Threading.Tasks.Task>> ProcessProfessionalRoleGetUsersForProfessionalRoleSelectionAsyncWithHttpInfo (int? processId, int? professionalRoleId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessProfessionalRoleApi->ProcessProfessionalRoleGetUsersForProfessionalRoleSelection"); - // verify the required parameter 'professionalRoleId' is set - if (professionalRoleId == null) - throw new ApiException(400, "Missing required parameter 'professionalRoleId' when calling ProcessProfessionalRoleApi->ProcessProfessionalRoleGetUsersForProfessionalRoleSelection"); - - var localVarPath = "/api/ProcessProfessionalRoleInfo/{professionalRoleId}/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (professionalRoleId != null) localVarPathParams.Add("professionalRoleId", this.Configuration.ApiClient.ParameterToString(professionalRoleId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessProfessionalRoleGetUsersForProfessionalRoleSelection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts a new professional role associated with a process - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Porfessional Role Idenfier - /// User Identifier - /// - public void ProcessProfessionalRoleSetUsersForProfessionalRole (int? processId, int? professionalRoleId, int? userId) - { - ProcessProfessionalRoleSetUsersForProfessionalRoleWithHttpInfo(processId, professionalRoleId, userId); - } - - /// - /// This call inserts a new professional role associated with a process - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Porfessional Role Idenfier - /// User Identifier - /// ApiResponse of Object(void) - public ApiResponse ProcessProfessionalRoleSetUsersForProfessionalRoleWithHttpInfo (int? processId, int? professionalRoleId, int? userId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessProfessionalRoleApi->ProcessProfessionalRoleSetUsersForProfessionalRole"); - // verify the required parameter 'professionalRoleId' is set - if (professionalRoleId == null) - throw new ApiException(400, "Missing required parameter 'professionalRoleId' when calling ProcessProfessionalRoleApi->ProcessProfessionalRoleSetUsersForProfessionalRole"); - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling ProcessProfessionalRoleApi->ProcessProfessionalRoleSetUsersForProfessionalRole"); - - var localVarPath = "/api/ProcessProfessionalRoleInfo/{professionalRoleId}/{processId}/{userId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (professionalRoleId != null) localVarPathParams.Add("professionalRoleId", this.Configuration.ApiClient.ParameterToString(professionalRoleId)); // path parameter - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessProfessionalRoleSetUsersForProfessionalRole", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts a new professional role associated with a process - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Porfessional Role Idenfier - /// User Identifier - /// Task of void - public async System.Threading.Tasks.Task ProcessProfessionalRoleSetUsersForProfessionalRoleAsync (int? processId, int? professionalRoleId, int? userId) - { - await ProcessProfessionalRoleSetUsersForProfessionalRoleAsyncWithHttpInfo(processId, professionalRoleId, userId); - - } - - /// - /// This call inserts a new professional role associated with a process - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Porfessional Role Idenfier - /// User Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ProcessProfessionalRoleSetUsersForProfessionalRoleAsyncWithHttpInfo (int? processId, int? professionalRoleId, int? userId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessProfessionalRoleApi->ProcessProfessionalRoleSetUsersForProfessionalRole"); - // verify the required parameter 'professionalRoleId' is set - if (professionalRoleId == null) - throw new ApiException(400, "Missing required parameter 'professionalRoleId' when calling ProcessProfessionalRoleApi->ProcessProfessionalRoleSetUsersForProfessionalRole"); - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling ProcessProfessionalRoleApi->ProcessProfessionalRoleSetUsersForProfessionalRole"); - - var localVarPath = "/api/ProcessProfessionalRoleInfo/{professionalRoleId}/{processId}/{userId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (professionalRoleId != null) localVarPathParams.Add("professionalRoleId", this.Configuration.ApiClient.ParameterToString(professionalRoleId)); // path parameter - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessProfessionalRoleSetUsersForProfessionalRole", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ProcessVariablesApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ProcessVariablesApi.cs deleted file mode 100644 index 758581c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ProcessVariablesApi.cs +++ /dev/null @@ -1,1044 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IProcessVariablesApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the possibile values for a process variable in format list or table. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Actual values of the process variables (for value dependant query) - /// FieldValuesDTO - FieldValuesDTO ProcessVariablesGetFieldValuesByProcessVariable (int? processVariableId, VariablesValuesCriteriaDTO processVariables); - - /// - /// This call returns the possibile values for a process variable in format list or table. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Actual values of the process variables (for value dependant query) - /// ApiResponse of FieldValuesDTO - ApiResponse ProcessVariablesGetFieldValuesByProcessVariableWithHttpInfo (int? processVariableId, VariablesValuesCriteriaDTO processVariables); - /// - /// This call returns the filter field associated woth a process variable - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Variable fields information - /// FieldFilterConcreteDTO - FieldFilterConcreteDTO ProcessVariablesGetFiltersByProcessVariables (int? processVariableId, ProcessVariablesFieldsDTO processVariables); - - /// - /// This call returns the filter field associated woth a process variable - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Variable fields information - /// ApiResponse of FieldFilterConcreteDTO - ApiResponse ProcessVariablesGetFiltersByProcessVariablesWithHttpInfo (int? processVariableId, ProcessVariablesFieldsDTO processVariables); - /// - /// This call inserts the variables associated with the process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Variables information - /// - void ProcessVariablesSetProcessVariableValue (int? processId, ProcessVariablesFieldsDTO processVariables); - - /// - /// This call inserts the variables associated with the process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Variables information - /// ApiResponse of Object(void) - ApiResponse ProcessVariablesSetProcessVariableValueWithHttpInfo (int? processId, ProcessVariablesFieldsDTO processVariables); - /// - /// Validate the variable data update of a specific variable - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process instance id - /// The validation data - /// ValidationFieldResultDTO - ValidationFieldResultDTO ProcessVariablesValidateVariabile (int? processId, ProcessVariableValidationDTO validationData); - - /// - /// Validate the variable data update of a specific variable - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process instance id - /// The validation data - /// ApiResponse of ValidationFieldResultDTO - ApiResponse ProcessVariablesValidateVariabileWithHttpInfo (int? processId, ProcessVariableValidationDTO validationData); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the possibile values for a process variable in format list or table. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Actual values of the process variables (for value dependant query) - /// Task of FieldValuesDTO - System.Threading.Tasks.Task ProcessVariablesGetFieldValuesByProcessVariableAsync (int? processVariableId, VariablesValuesCriteriaDTO processVariables); - - /// - /// This call returns the possibile values for a process variable in format list or table. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Actual values of the process variables (for value dependant query) - /// Task of ApiResponse (FieldValuesDTO) - System.Threading.Tasks.Task> ProcessVariablesGetFieldValuesByProcessVariableAsyncWithHttpInfo (int? processVariableId, VariablesValuesCriteriaDTO processVariables); - /// - /// This call returns the filter field associated woth a process variable - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Variable fields information - /// Task of FieldFilterConcreteDTO - System.Threading.Tasks.Task ProcessVariablesGetFiltersByProcessVariablesAsync (int? processVariableId, ProcessVariablesFieldsDTO processVariables); - - /// - /// This call returns the filter field associated woth a process variable - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Variable fields information - /// Task of ApiResponse (FieldFilterConcreteDTO) - System.Threading.Tasks.Task> ProcessVariablesGetFiltersByProcessVariablesAsyncWithHttpInfo (int? processVariableId, ProcessVariablesFieldsDTO processVariables); - /// - /// This call inserts the variables associated with the process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Variables information - /// Task of void - System.Threading.Tasks.Task ProcessVariablesSetProcessVariableValueAsync (int? processId, ProcessVariablesFieldsDTO processVariables); - - /// - /// This call inserts the variables associated with the process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Variables information - /// Task of ApiResponse - System.Threading.Tasks.Task> ProcessVariablesSetProcessVariableValueAsyncWithHttpInfo (int? processId, ProcessVariablesFieldsDTO processVariables); - /// - /// Validate the variable data update of a specific variable - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process instance id - /// The validation data - /// Task of ValidationFieldResultDTO - System.Threading.Tasks.Task ProcessVariablesValidateVariabileAsync (int? processId, ProcessVariableValidationDTO validationData); - - /// - /// Validate the variable data update of a specific variable - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The process instance id - /// The validation data - /// Task of ApiResponse (ValidationFieldResultDTO) - System.Threading.Tasks.Task> ProcessVariablesValidateVariabileAsyncWithHttpInfo (int? processId, ProcessVariableValidationDTO validationData); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ProcessVariablesApi : IProcessVariablesApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ProcessVariablesApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ProcessVariablesApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the possibile values for a process variable in format list or table. - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Actual values of the process variables (for value dependant query) - /// FieldValuesDTO - public FieldValuesDTO ProcessVariablesGetFieldValuesByProcessVariable (int? processVariableId, VariablesValuesCriteriaDTO processVariables) - { - ApiResponse localVarResponse = ProcessVariablesGetFieldValuesByProcessVariableWithHttpInfo(processVariableId, processVariables); - return localVarResponse.Data; - } - - /// - /// This call returns the possibile values for a process variable in format list or table. - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Actual values of the process variables (for value dependant query) - /// ApiResponse of FieldValuesDTO - public ApiResponse< FieldValuesDTO > ProcessVariablesGetFieldValuesByProcessVariableWithHttpInfo (int? processVariableId, VariablesValuesCriteriaDTO processVariables) - { - // verify the required parameter 'processVariableId' is set - if (processVariableId == null) - throw new ApiException(400, "Missing required parameter 'processVariableId' when calling ProcessVariablesApi->ProcessVariablesGetFieldValuesByProcessVariable"); - // verify the required parameter 'processVariables' is set - if (processVariables == null) - throw new ApiException(400, "Missing required parameter 'processVariables' when calling ProcessVariablesApi->ProcessVariablesGetFieldValuesByProcessVariable"); - - var localVarPath = "/api/ProcessVariables/{processVariableId}/getDatasourceValues"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processVariableId != null) localVarPathParams.Add("processVariableId", this.Configuration.ApiClient.ParameterToString(processVariableId)); // path parameter - if (processVariables != null && processVariables.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(processVariables); // http body (model) parameter - } - else - { - localVarPostBody = processVariables; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessVariablesGetFieldValuesByProcessVariable", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldValuesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldValuesDTO))); - } - - /// - /// This call returns the possibile values for a process variable in format list or table. - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Actual values of the process variables (for value dependant query) - /// Task of FieldValuesDTO - public async System.Threading.Tasks.Task ProcessVariablesGetFieldValuesByProcessVariableAsync (int? processVariableId, VariablesValuesCriteriaDTO processVariables) - { - ApiResponse localVarResponse = await ProcessVariablesGetFieldValuesByProcessVariableAsyncWithHttpInfo(processVariableId, processVariables); - return localVarResponse.Data; - - } - - /// - /// This call returns the possibile values for a process variable in format list or table. - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Actual values of the process variables (for value dependant query) - /// Task of ApiResponse (FieldValuesDTO) - public async System.Threading.Tasks.Task> ProcessVariablesGetFieldValuesByProcessVariableAsyncWithHttpInfo (int? processVariableId, VariablesValuesCriteriaDTO processVariables) - { - // verify the required parameter 'processVariableId' is set - if (processVariableId == null) - throw new ApiException(400, "Missing required parameter 'processVariableId' when calling ProcessVariablesApi->ProcessVariablesGetFieldValuesByProcessVariable"); - // verify the required parameter 'processVariables' is set - if (processVariables == null) - throw new ApiException(400, "Missing required parameter 'processVariables' when calling ProcessVariablesApi->ProcessVariablesGetFieldValuesByProcessVariable"); - - var localVarPath = "/api/ProcessVariables/{processVariableId}/getDatasourceValues"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processVariableId != null) localVarPathParams.Add("processVariableId", this.Configuration.ApiClient.ParameterToString(processVariableId)); // path parameter - if (processVariables != null && processVariables.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(processVariables); // http body (model) parameter - } - else - { - localVarPostBody = processVariables; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessVariablesGetFieldValuesByProcessVariable", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldValuesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldValuesDTO))); - } - - /// - /// This call returns the filter field associated woth a process variable - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Variable fields information - /// FieldFilterConcreteDTO - public FieldFilterConcreteDTO ProcessVariablesGetFiltersByProcessVariables (int? processVariableId, ProcessVariablesFieldsDTO processVariables) - { - ApiResponse localVarResponse = ProcessVariablesGetFiltersByProcessVariablesWithHttpInfo(processVariableId, processVariables); - return localVarResponse.Data; - } - - /// - /// This call returns the filter field associated woth a process variable - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Variable fields information - /// ApiResponse of FieldFilterConcreteDTO - public ApiResponse< FieldFilterConcreteDTO > ProcessVariablesGetFiltersByProcessVariablesWithHttpInfo (int? processVariableId, ProcessVariablesFieldsDTO processVariables) - { - // verify the required parameter 'processVariableId' is set - if (processVariableId == null) - throw new ApiException(400, "Missing required parameter 'processVariableId' when calling ProcessVariablesApi->ProcessVariablesGetFiltersByProcessVariables"); - // verify the required parameter 'processVariables' is set - if (processVariables == null) - throw new ApiException(400, "Missing required parameter 'processVariables' when calling ProcessVariablesApi->ProcessVariablesGetFiltersByProcessVariables"); - - var localVarPath = "/api/ProcessVariables/{processVariableId}/getFilters"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processVariableId != null) localVarPathParams.Add("processVariableId", this.Configuration.ApiClient.ParameterToString(processVariableId)); // path parameter - if (processVariables != null && processVariables.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(processVariables); // http body (model) parameter - } - else - { - localVarPostBody = processVariables; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessVariablesGetFiltersByProcessVariables", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldFilterConcreteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldFilterConcreteDTO))); - } - - /// - /// This call returns the filter field associated woth a process variable - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Variable fields information - /// Task of FieldFilterConcreteDTO - public async System.Threading.Tasks.Task ProcessVariablesGetFiltersByProcessVariablesAsync (int? processVariableId, ProcessVariablesFieldsDTO processVariables) - { - ApiResponse localVarResponse = await ProcessVariablesGetFiltersByProcessVariablesAsyncWithHttpInfo(processVariableId, processVariables); - return localVarResponse.Data; - - } - - /// - /// This call returns the filter field associated woth a process variable - /// - /// Thrown when fails to make API call - /// Process variable identifier - /// Variable fields information - /// Task of ApiResponse (FieldFilterConcreteDTO) - public async System.Threading.Tasks.Task> ProcessVariablesGetFiltersByProcessVariablesAsyncWithHttpInfo (int? processVariableId, ProcessVariablesFieldsDTO processVariables) - { - // verify the required parameter 'processVariableId' is set - if (processVariableId == null) - throw new ApiException(400, "Missing required parameter 'processVariableId' when calling ProcessVariablesApi->ProcessVariablesGetFiltersByProcessVariables"); - // verify the required parameter 'processVariables' is set - if (processVariables == null) - throw new ApiException(400, "Missing required parameter 'processVariables' when calling ProcessVariablesApi->ProcessVariablesGetFiltersByProcessVariables"); - - var localVarPath = "/api/ProcessVariables/{processVariableId}/getFilters"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processVariableId != null) localVarPathParams.Add("processVariableId", this.Configuration.ApiClient.ParameterToString(processVariableId)); // path parameter - if (processVariables != null && processVariables.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(processVariables); // http body (model) parameter - } - else - { - localVarPostBody = processVariables; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessVariablesGetFiltersByProcessVariables", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldFilterConcreteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldFilterConcreteDTO))); - } - - /// - /// This call inserts the variables associated with the process - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Variables information - /// - public void ProcessVariablesSetProcessVariableValue (int? processId, ProcessVariablesFieldsDTO processVariables) - { - ProcessVariablesSetProcessVariableValueWithHttpInfo(processId, processVariables); - } - - /// - /// This call inserts the variables associated with the process - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Variables information - /// ApiResponse of Object(void) - public ApiResponse ProcessVariablesSetProcessVariableValueWithHttpInfo (int? processId, ProcessVariablesFieldsDTO processVariables) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessVariablesApi->ProcessVariablesSetProcessVariableValue"); - // verify the required parameter 'processVariables' is set - if (processVariables == null) - throw new ApiException(400, "Missing required parameter 'processVariables' when calling ProcessVariablesApi->ProcessVariablesSetProcessVariableValue"); - - var localVarPath = "/api/ProcessVariables/{processId}/setValues"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (processVariables != null && processVariables.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(processVariables); // http body (model) parameter - } - else - { - localVarPostBody = processVariables; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessVariablesSetProcessVariableValue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts the variables associated with the process - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Variables information - /// Task of void - public async System.Threading.Tasks.Task ProcessVariablesSetProcessVariableValueAsync (int? processId, ProcessVariablesFieldsDTO processVariables) - { - await ProcessVariablesSetProcessVariableValueAsyncWithHttpInfo(processId, processVariables); - - } - - /// - /// This call inserts the variables associated with the process - /// - /// Thrown when fails to make API call - /// Process Identifier - /// Variables information - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ProcessVariablesSetProcessVariableValueAsyncWithHttpInfo (int? processId, ProcessVariablesFieldsDTO processVariables) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessVariablesApi->ProcessVariablesSetProcessVariableValue"); - // verify the required parameter 'processVariables' is set - if (processVariables == null) - throw new ApiException(400, "Missing required parameter 'processVariables' when calling ProcessVariablesApi->ProcessVariablesSetProcessVariableValue"); - - var localVarPath = "/api/ProcessVariables/{processId}/setValues"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (processVariables != null && processVariables.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(processVariables); // http body (model) parameter - } - else - { - localVarPostBody = processVariables; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessVariablesSetProcessVariableValue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Validate the variable data update of a specific variable - /// - /// Thrown when fails to make API call - /// The process instance id - /// The validation data - /// ValidationFieldResultDTO - public ValidationFieldResultDTO ProcessVariablesValidateVariabile (int? processId, ProcessVariableValidationDTO validationData) - { - ApiResponse localVarResponse = ProcessVariablesValidateVariabileWithHttpInfo(processId, validationData); - return localVarResponse.Data; - } - - /// - /// Validate the variable data update of a specific variable - /// - /// Thrown when fails to make API call - /// The process instance id - /// The validation data - /// ApiResponse of ValidationFieldResultDTO - public ApiResponse< ValidationFieldResultDTO > ProcessVariablesValidateVariabileWithHttpInfo (int? processId, ProcessVariableValidationDTO validationData) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessVariablesApi->ProcessVariablesValidateVariabile"); - // verify the required parameter 'validationData' is set - if (validationData == null) - throw new ApiException(400, "Missing required parameter 'validationData' when calling ProcessVariablesApi->ProcessVariablesValidateVariabile"); - - var localVarPath = "/api/ProcessVariables/process/{processId}/validation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (validationData != null && validationData.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(validationData); // http body (model) parameter - } - else - { - localVarPostBody = validationData; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessVariablesValidateVariabile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ValidationFieldResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ValidationFieldResultDTO))); - } - - /// - /// Validate the variable data update of a specific variable - /// - /// Thrown when fails to make API call - /// The process instance id - /// The validation data - /// Task of ValidationFieldResultDTO - public async System.Threading.Tasks.Task ProcessVariablesValidateVariabileAsync (int? processId, ProcessVariableValidationDTO validationData) - { - ApiResponse localVarResponse = await ProcessVariablesValidateVariabileAsyncWithHttpInfo(processId, validationData); - return localVarResponse.Data; - - } - - /// - /// Validate the variable data update of a specific variable - /// - /// Thrown when fails to make API call - /// The process instance id - /// The validation data - /// Task of ApiResponse (ValidationFieldResultDTO) - public async System.Threading.Tasks.Task> ProcessVariablesValidateVariabileAsyncWithHttpInfo (int? processId, ProcessVariableValidationDTO validationData) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling ProcessVariablesApi->ProcessVariablesValidateVariabile"); - // verify the required parameter 'validationData' is set - if (validationData == null) - throw new ApiException(400, "Missing required parameter 'validationData' when calling ProcessVariablesApi->ProcessVariablesValidateVariabile"); - - var localVarPath = "/api/ProcessVariables/process/{processId}/validation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (validationData != null && validationData.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(validationData); // http body (model) parameter - } - else - { - localVarPostBody = validationData; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProcessVariablesValidateVariabile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ValidationFieldResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ValidationFieldResultDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ProfilePermissionsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ProfilePermissionsApi.cs deleted file mode 100644 index 38ac409..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ProfilePermissionsApi.cs +++ /dev/null @@ -1,542 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IProfilePermissionsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all additional or exclusive permissions by document identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// SingleProfilePermissionsDTO - SingleProfilePermissionsDTO ProfilePermissionsGetPermissionByDocNumber (int? docnumber); - - /// - /// This call returns all additional or exclusive permissions by document identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of SingleProfilePermissionsDTO - ApiResponse ProfilePermissionsGetPermissionByDocNumberWithHttpInfo (int? docnumber); - /// - /// This call save all additional or exclusive permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Permissions to save - /// - void ProfilePermissionsSetPermission (int? docnumber, SingleProfilePermissionsDTO permissions); - - /// - /// This call save all additional or exclusive permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Permissions to save - /// ApiResponse of Object(void) - ApiResponse ProfilePermissionsSetPermissionWithHttpInfo (int? docnumber, SingleProfilePermissionsDTO permissions); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all additional or exclusive permissions by document identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of SingleProfilePermissionsDTO - System.Threading.Tasks.Task ProfilePermissionsGetPermissionByDocNumberAsync (int? docnumber); - - /// - /// This call returns all additional or exclusive permissions by document identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (SingleProfilePermissionsDTO) - System.Threading.Tasks.Task> ProfilePermissionsGetPermissionByDocNumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call save all additional or exclusive permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Permissions to save - /// Task of void - System.Threading.Tasks.Task ProfilePermissionsSetPermissionAsync (int? docnumber, SingleProfilePermissionsDTO permissions); - - /// - /// This call save all additional or exclusive permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Permissions to save - /// Task of ApiResponse - System.Threading.Tasks.Task> ProfilePermissionsSetPermissionAsyncWithHttpInfo (int? docnumber, SingleProfilePermissionsDTO permissions); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ProfilePermissionsApi : IProfilePermissionsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ProfilePermissionsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ProfilePermissionsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all additional or exclusive permissions by document identifier - /// - /// Thrown when fails to make API call - /// Document Identifier - /// SingleProfilePermissionsDTO - public SingleProfilePermissionsDTO ProfilePermissionsGetPermissionByDocNumber (int? docnumber) - { - ApiResponse localVarResponse = ProfilePermissionsGetPermissionByDocNumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns all additional or exclusive permissions by document identifier - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of SingleProfilePermissionsDTO - public ApiResponse< SingleProfilePermissionsDTO > ProfilePermissionsGetPermissionByDocNumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling ProfilePermissionsApi->ProfilePermissionsGetPermissionByDocNumber"); - - var localVarPath = "/api/ProfilePermissions/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilePermissionsGetPermissionByDocNumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SingleProfilePermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SingleProfilePermissionsDTO))); - } - - /// - /// This call returns all additional or exclusive permissions by document identifier - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of SingleProfilePermissionsDTO - public async System.Threading.Tasks.Task ProfilePermissionsGetPermissionByDocNumberAsync (int? docnumber) - { - ApiResponse localVarResponse = await ProfilePermissionsGetPermissionByDocNumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns all additional or exclusive permissions by document identifier - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (SingleProfilePermissionsDTO) - public async System.Threading.Tasks.Task> ProfilePermissionsGetPermissionByDocNumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling ProfilePermissionsApi->ProfilePermissionsGetPermissionByDocNumber"); - - var localVarPath = "/api/ProfilePermissions/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilePermissionsGetPermissionByDocNumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SingleProfilePermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SingleProfilePermissionsDTO))); - } - - /// - /// This call save all additional or exclusive permissions - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Permissions to save - /// - public void ProfilePermissionsSetPermission (int? docnumber, SingleProfilePermissionsDTO permissions) - { - ProfilePermissionsSetPermissionWithHttpInfo(docnumber, permissions); - } - - /// - /// This call save all additional or exclusive permissions - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Permissions to save - /// ApiResponse of Object(void) - public ApiResponse ProfilePermissionsSetPermissionWithHttpInfo (int? docnumber, SingleProfilePermissionsDTO permissions) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling ProfilePermissionsApi->ProfilePermissionsSetPermission"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling ProfilePermissionsApi->ProfilePermissionsSetPermission"); - - var localVarPath = "/api/ProfilePermissions/{docnumber}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilePermissionsSetPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call save all additional or exclusive permissions - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Permissions to save - /// Task of void - public async System.Threading.Tasks.Task ProfilePermissionsSetPermissionAsync (int? docnumber, SingleProfilePermissionsDTO permissions) - { - await ProfilePermissionsSetPermissionAsyncWithHttpInfo(docnumber, permissions); - - } - - /// - /// This call save all additional or exclusive permissions - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Permissions to save - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ProfilePermissionsSetPermissionAsyncWithHttpInfo (int? docnumber, SingleProfilePermissionsDTO permissions) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling ProfilePermissionsApi->ProfilePermissionsSetPermission"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling ProfilePermissionsApi->ProfilePermissionsSetPermission"); - - var localVarPath = "/api/ProfilePermissions/{docnumber}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilePermissionsSetPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ProfilesApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ProfilesApi.cs deleted file mode 100644 index 588cb27..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ProfilesApi.cs +++ /dev/null @@ -1,7342 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IProfilesApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call insert new profile from automatic monitored folder file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// File from monitored folder in buffer - /// - void ProfilesArchiveMonitoredFolderFileFromBufferAutomatic (string bufferId); - - /// - /// This call insert new profile from automatic monitored folder file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// File from monitored folder in buffer - /// ApiResponse of Object(void) - ApiResponse ProfilesArchiveMonitoredFolderFileFromBufferAutomaticWithHttpInfo (string bufferId); - /// - /// This call deletes association between Docnumber and IdErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Association id for External Id and profile to delete - /// - void ProfilesDeleteIdErpById (int? id); - - /// - /// This call deletes association between Docnumber and IdErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Association id for External Id and profile to delete - /// ApiResponse of Object(void) - ApiResponse ProfilesDeleteIdErpByIdWithHttpInfo (int? id); - /// - /// This call deletes a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identfier to delete - /// - void ProfilesDeleteProfile (int? docNumber); - - /// - /// This call deletes a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identfier to delete - /// ApiResponse of Object(void) - ApiResponse ProfilesDeleteProfileWithHttpInfo (int? docNumber); - /// - /// This call returns the mask schema of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// EditProfileSchemaDTO - EditProfileSchemaDTO ProfilesGet (int? docNumber); - - /// - /// This call returns the mask schema of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of EditProfileSchemaDTO - ApiResponse ProfilesGetWithHttpInfo (int? docNumber); - /// - /// This call returns the list of the additional field for archiving cross all classes and business units - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<FieldBaseDTO> - List ProfilesGetAdditionalAll (); - - /// - /// This call returns the list of the additional field for archiving cross all classes and business units - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<FieldBaseDTO> - ApiResponse> ProfilesGetAdditionalAllWithHttpInfo (); - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code (optional) - /// List<FieldBaseDTO> - List ProfilesGetAdditionalByClasse (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code (optional) - /// ApiResponse of List<FieldBaseDTO> - ApiResponse> ProfilesGetAdditionalByClasseWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) - /// - /// - /// This method is deprecated. Use /api/Profiles/Additional/{tipoUno}/{tipoDue}/{tipoTre}?aoo={aoo} - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code - /// List<FieldBaseDTO> - List ProfilesGetAdditionalByClasseOld (int? tipoUno, int? tipoDue, int? tipoTre, string aoo); - - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) - /// - /// - /// This method is deprecated. Use /api/Profiles/Additional/{tipoUno}/{tipoDue}/{tipoTre}?aoo={aoo} - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code - /// ApiResponse of List<FieldBaseDTO> - ApiResponse> ProfilesGetAdditionalByClasseOldWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo); - /// - /// This call allows the retrieval of the default profile for archiving by given document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type code - /// MaskProfileSchemaDTO - MaskProfileSchemaDTO ProfilesGetByDocumentType (GetByDocumentTypeRequestDTO documenttypecode); - - /// - /// This call allows the retrieval of the default profile for archiving by given document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type code - /// ApiResponse of MaskProfileSchemaDTO - ApiResponse ProfilesGetByDocumentTypeWithHttpInfo (GetByDocumentTypeRequestDTO documenttypecode); - /// - /// This call returns the mask schema of documents by idErp - /// - /// - /// Use detail/byIdErp - /// - /// Thrown when fails to make API call - /// Document external Identifier - /// List<EditProfileSchemaDTO> - List ProfilesGetByIdErp (string iderp); - - /// - /// This call returns the mask schema of documents by idErp - /// - /// - /// Use detail/byIdErp - /// - /// Thrown when fails to make API call - /// Document external Identifier - /// ApiResponse of List<EditProfileSchemaDTO> - ApiResponse> ProfilesGetByIdErpWithHttpInfo (string iderp); - /// - /// This call returns the mask schema of documents by idErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<EditProfileSchemaDTO> - List ProfilesGetByIdErp_0 (ByIdErpDto idErpDto); - - /// - /// This call returns the mask schema of documents by idErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<EditProfileSchemaDTO> - ApiResponse> ProfilesGetByIdErp_0WithHttpInfo (ByIdErpDto idErpDto); - /// - /// This call returns the default document writing settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// DocumentsWritingSettingsDTO - DocumentsWritingSettingsDTO ProfilesGetDefaultWritingSettings (); - - /// - /// This call returns the default document writing settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of DocumentsWritingSettingsDTO - ApiResponse ProfilesGetDefaultWritingSettingsWithHttpInfo (); - /// - /// this call returns all association with idErps for a specific docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber to search - /// List<DocnumberIdErpAssociationDTO> - List ProfilesGetDocnumberIdErpAssociationByDocnumber (int? docnumber); - - /// - /// this call returns all association with idErps for a specific docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber to search - /// ApiResponse of List<DocnumberIdErpAssociationDTO> - ApiResponse> ProfilesGetDocnumberIdErpAssociationByDocnumberWithHttpInfo (int? docnumber); - /// - /// this call returns all association with docnumbers for a specific idErp - /// - /// - /// Use iderp/byIdErp - /// - /// Thrown when fails to make API call - /// IdErp to search - /// List<DocnumberIdErpAssociationDTO> - List ProfilesGetDocnumberIdErpAssociationByIdErp (string idErp); - - /// - /// this call returns all association with docnumbers for a specific idErp - /// - /// - /// Use iderp/byIdErp - /// - /// Thrown when fails to make API call - /// IdErp to search - /// ApiResponse of List<DocnumberIdErpAssociationDTO> - ApiResponse> ProfilesGetDocnumberIdErpAssociationByIdErpWithHttpInfo (string idErp); - /// - /// this call returns all association with docnumbers for a specific idErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<DocnumberIdErpAssociationDTO> - List ProfilesGetDocnumberIdErpAssociationByIdErp_0 (ByIdErpDto idErpDto); - - /// - /// this call returns all association with docnumbers for a specific idErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<DocnumberIdErpAssociationDTO> - ApiResponse> ProfilesGetDocnumberIdErpAssociationByIdErp_0WithHttpInfo (ByIdErpDto idErpDto); - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldFilterDTO - FieldFilterDTO ProfilesGetFiltersForArchive (FieldValuesArchiveCriteriaDto fieldcriteria = null); - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldFilterDTO - ApiResponse ProfilesGetFiltersForArchiveWithHttpInfo (FieldValuesArchiveCriteriaDto fieldcriteria = null); - /// - /// This call allows the retrieval of the default profile for archiving barcode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// MaskProfileSchemaDTO - MaskProfileSchemaDTO ProfilesGetForBarcode (); - - /// - /// This call allows the retrieval of the default profile for archiving barcode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of MaskProfileSchemaDTO - ApiResponse ProfilesGetForBarcodeWithHttpInfo (); - /// - /// This call clones a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Specify if the clone operation must include file - /// MaskProfileSchemaDTO - MaskProfileSchemaDTO ProfilesGetForClone (int? docNumber, bool? includefile); - - /// - /// This call clones a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Specify if the clone operation must include file - /// ApiResponse of MaskProfileSchemaDTO - ApiResponse ProfilesGetForCloneWithHttpInfo (int? docNumber, bool? includefile); - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// EditProfileSchemaDTO - EditProfileSchemaDTO ProfilesGetForTask (int? docNumber, int? taskId); - - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// ApiResponse of EditProfileSchemaDTO - ApiResponse ProfilesGetForTaskWithHttpInfo (int? docNumber, int? taskId); - /// - /// This call return the mask schema of a document in a task V2 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// EditProfileSchemaDTO - EditProfileSchemaDTO ProfilesGetForTaskV2 (TaskV2SchemaRequestDTO request); - - /// - /// This call return the mask schema of a document in a task V2 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of EditProfileSchemaDTO - ApiResponse ProfilesGetForTaskV2WithHttpInfo (TaskV2SchemaRequestDTO request); - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// - /// EditProfileSchemaDTO - EditProfileSchemaDTO ProfilesGetForTask_0 (int? docNumber, int? taskId, bool? switched); - - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// - /// ApiResponse of EditProfileSchemaDTO - ApiResponse ProfilesGetForTask_0WithHttpInfo (int? docNumber, int? taskId, bool? switched); - /// - /// This call returns the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// string - string ProfilesGetFormulaForArchive (FieldFormulaCalculateArchiveCriteriaDto fieldcriteria = null); - - /// - /// This call returns the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of string - ApiResponse ProfilesGetFormulaForArchiveWithHttpInfo (FieldFormulaCalculateArchiveCriteriaDto fieldcriteria = null); - /// - /// This call returns the edit schema of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - /// EditProfileSchemaDTO - EditProfileSchemaDTO ProfilesGetSchema (int? docNumber, bool? switched); - - /// - /// This call returns the edit schema of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - /// ApiResponse of EditProfileSchemaDTO - ApiResponse ProfilesGetSchemaWithHttpInfo (int? docNumber, bool? switched); - /// - /// This call returns the edit schema of a document from a file for a monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// buffer Identifier - /// MaskProfileSchemaDTO - MaskProfileSchemaDTO ProfilesGetSchema_0 (string bufferId); - - /// - /// This call returns the edit schema of a document from a file for a monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// buffer Identifier - /// ApiResponse of MaskProfileSchemaDTO - ApiResponse ProfilesGetSchema_0WithHttpInfo (string bufferId); - /// - /// This call returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldValuesDTO - FieldValuesDTO ProfilesGetValuesForArchive (FieldValuesArchiveCriteriaDto fieldcriteria = null); - - /// - /// This call returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldValuesDTO - ApiResponse ProfilesGetValuesForArchiveWithHttpInfo (FieldValuesArchiveCriteriaDto fieldcriteria = null); - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// - /// - /// - /// Thrown when fails to make API call - /// MaskProfileSchemaDTO - MaskProfileSchemaDTO ProfilesGet_0 (); - - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of MaskProfileSchemaDTO - ApiResponse ProfilesGet_0WithHttpInfo (); - /// - /// This call insert new association between Docnumber and IdErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Association DTO between Docnumber and External Id - /// - void ProfilesInsertIdErp (DocnumberIdErpAssociationDTO docnumberIdErpAssociation); - - /// - /// This call insert new association between Docnumber and IdErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Association DTO between Docnumber and External Id - /// ApiResponse of Object(void) - ApiResponse ProfilesInsertIdErpWithHttpInfo (DocnumberIdErpAssociationDTO docnumberIdErpAssociation); - /// - /// This call checks if a profile is lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// bool? - bool? ProfilesLockProfile (int? docNumber); - - /// - /// This call checks if a profile is lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of bool? - ApiResponse ProfilesLockProfileWithHttpInfo (int? docNumber); - /// - /// This call checks if a profile is lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of task work - /// bool? - bool? ProfilesLockProfile_0 (int? docNumber, int? taskId); - - /// - /// This call checks if a profile is lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of task work - /// ApiResponse of bool? - ApiResponse ProfilesLockProfile_0WithHttpInfo (int? docNumber, int? taskId); - /// - /// This call inserts a new profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ProfileResultDTO - ProfileResultDTO ProfilesPost (ProfileDTO profile = null); - - /// - /// This call inserts a new profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ProfileResultDTO - ApiResponse ProfilesPostWithHttpInfo (ProfileDTO profile = null); - /// - /// This call allows the insertion of new profile for barcode purpose - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ProfileResultDTO - ProfileResultDTO ProfilesPostForBarcode (ProfileDTO profile = null); - - /// - /// This call allows the insertion of new profile for barcode purpose - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ProfileResultDTO - ApiResponse ProfilesPostForBarcodeWithHttpInfo (ProfileDTO profile = null); - /// - /// This call performs the insertion of new profile for mail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ProfileMailResponseDTO - ProfileMailResponseDTO ProfilesPostForMail (MailDTO mail); - - /// - /// This call performs the insertion of new profile for mail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ProfileMailResponseDTO - ApiResponse ProfilesPostForMailWithHttpInfo (MailDTO mail); - /// - /// This call updates an existent profile - /// - /// - /// This method is deprecated. Use /api/Profiles/{docnumber}/mask/{maskId} - /// - /// Thrown when fails to make API call - /// Document Identifier to update - /// (optional) - /// - void ProfilesPut (int? docnumber, ProfileDTO profile = null); - - /// - /// This call updates an existent profile - /// - /// - /// This method is deprecated. Use /api/Profiles/{docnumber}/mask/{maskId} - /// - /// Thrown when fails to make API call - /// Document Identifier to update - /// (optional) - /// ApiResponse of Object(void) - ApiResponse ProfilesPutWithHttpInfo (int? docnumber, ProfileDTO profile = null); - /// - /// This call executes a profile update using a specific mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Document identifier - /// (optional) - /// ProfileResultDTO - ProfileResultDTO ProfilesPutWithMask (string maskId, int? docnumber, ProfileDTO profile = null); - - /// - /// This call executes a profile update using a specific mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Document identifier - /// (optional) - /// ApiResponse of ProfileResultDTO - ApiResponse ProfilesPutWithMaskWithHttpInfo (string maskId, int? docnumber, ProfileDTO profile = null); - /// - /// This call checks if a profile is not lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// bool? - bool? ProfilesUnLockProfile (int? docNumber); - - /// - /// This call checks if a profile is not lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of bool? - ApiResponse ProfilesUnLockProfileWithHttpInfo (int? docNumber); - /// - /// This call checks if a profile is not lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of the task work - /// bool? - bool? ProfilesUnLockProfile_0 (int? docNumber, int? taskid); - - /// - /// This call checks if a profile is not lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of the task work - /// ApiResponse of bool? - ApiResponse ProfilesUnLockProfile_0WithHttpInfo (int? docNumber, int? taskid); - /// - /// This call returns the result of a validation given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ValidationFieldResultDTO - ValidationFieldResultDTO ProfilesValidateForArchive (FieldValidationCalculateArchiveCriteriaDto fieldcriteria = null); - - /// - /// This call returns the result of a validation given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ValidationFieldResultDTO - ApiResponse ProfilesValidateForArchiveWithHttpInfo (FieldValidationCalculateArchiveCriteriaDto fieldcriteria = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call insert new profile from automatic monitored folder file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// File from monitored folder in buffer - /// Task of void - System.Threading.Tasks.Task ProfilesArchiveMonitoredFolderFileFromBufferAutomaticAsync (string bufferId); - - /// - /// This call insert new profile from automatic monitored folder file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// File from monitored folder in buffer - /// Task of ApiResponse - System.Threading.Tasks.Task> ProfilesArchiveMonitoredFolderFileFromBufferAutomaticAsyncWithHttpInfo (string bufferId); - /// - /// This call deletes association between Docnumber and IdErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Association id for External Id and profile to delete - /// Task of void - System.Threading.Tasks.Task ProfilesDeleteIdErpByIdAsync (int? id); - - /// - /// This call deletes association between Docnumber and IdErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Association id for External Id and profile to delete - /// Task of ApiResponse - System.Threading.Tasks.Task> ProfilesDeleteIdErpByIdAsyncWithHttpInfo (int? id); - /// - /// This call deletes a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identfier to delete - /// Task of void - System.Threading.Tasks.Task ProfilesDeleteProfileAsync (int? docNumber); - - /// - /// This call deletes a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identfier to delete - /// Task of ApiResponse - System.Threading.Tasks.Task> ProfilesDeleteProfileAsyncWithHttpInfo (int? docNumber); - /// - /// This call returns the mask schema of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of EditProfileSchemaDTO - System.Threading.Tasks.Task ProfilesGetAsync (int? docNumber); - - /// - /// This call returns the mask schema of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (EditProfileSchemaDTO) - System.Threading.Tasks.Task> ProfilesGetAsyncWithHttpInfo (int? docNumber); - /// - /// This call returns the list of the additional field for archiving cross all classes and business units - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<FieldBaseDTO> - System.Threading.Tasks.Task> ProfilesGetAdditionalAllAsync (); - - /// - /// This call returns the list of the additional field for archiving cross all classes and business units - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<FieldBaseDTO>) - System.Threading.Tasks.Task>> ProfilesGetAdditionalAllAsyncWithHttpInfo (); - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code (optional) - /// Task of List<FieldBaseDTO> - System.Threading.Tasks.Task> ProfilesGetAdditionalByClasseAsync (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code (optional) - /// Task of ApiResponse (List<FieldBaseDTO>) - System.Threading.Tasks.Task>> ProfilesGetAdditionalByClasseAsyncWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) - /// - /// - /// This method is deprecated. Use /api/Profiles/Additional/{tipoUno}/{tipoDue}/{tipoTre}?aoo={aoo} - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code - /// Task of List<FieldBaseDTO> - System.Threading.Tasks.Task> ProfilesGetAdditionalByClasseOldAsync (int? tipoUno, int? tipoDue, int? tipoTre, string aoo); - - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) - /// - /// - /// This method is deprecated. Use /api/Profiles/Additional/{tipoUno}/{tipoDue}/{tipoTre}?aoo={aoo} - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code - /// Task of ApiResponse (List<FieldBaseDTO>) - System.Threading.Tasks.Task>> ProfilesGetAdditionalByClasseOldAsyncWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo); - /// - /// This call allows the retrieval of the default profile for archiving by given document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type code - /// Task of MaskProfileSchemaDTO - System.Threading.Tasks.Task ProfilesGetByDocumentTypeAsync (GetByDocumentTypeRequestDTO documenttypecode); - - /// - /// This call allows the retrieval of the default profile for archiving by given document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type code - /// Task of ApiResponse (MaskProfileSchemaDTO) - System.Threading.Tasks.Task> ProfilesGetByDocumentTypeAsyncWithHttpInfo (GetByDocumentTypeRequestDTO documenttypecode); - /// - /// This call returns the mask schema of documents by idErp - /// - /// - /// Use detail/byIdErp - /// - /// Thrown when fails to make API call - /// Document external Identifier - /// Task of List<EditProfileSchemaDTO> - System.Threading.Tasks.Task> ProfilesGetByIdErpAsync (string iderp); - - /// - /// This call returns the mask schema of documents by idErp - /// - /// - /// Use detail/byIdErp - /// - /// Thrown when fails to make API call - /// Document external Identifier - /// Task of ApiResponse (List<EditProfileSchemaDTO>) - System.Threading.Tasks.Task>> ProfilesGetByIdErpAsyncWithHttpInfo (string iderp); - /// - /// This call returns the mask schema of documents by idErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<EditProfileSchemaDTO> - System.Threading.Tasks.Task> ProfilesGetByIdErp_0Async (ByIdErpDto idErpDto); - - /// - /// This call returns the mask schema of documents by idErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<EditProfileSchemaDTO>) - System.Threading.Tasks.Task>> ProfilesGetByIdErp_0AsyncWithHttpInfo (ByIdErpDto idErpDto); - /// - /// This call returns the default document writing settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of DocumentsWritingSettingsDTO - System.Threading.Tasks.Task ProfilesGetDefaultWritingSettingsAsync (); - - /// - /// This call returns the default document writing settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DocumentsWritingSettingsDTO) - System.Threading.Tasks.Task> ProfilesGetDefaultWritingSettingsAsyncWithHttpInfo (); - /// - /// this call returns all association with idErps for a specific docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber to search - /// Task of List<DocnumberIdErpAssociationDTO> - System.Threading.Tasks.Task> ProfilesGetDocnumberIdErpAssociationByDocnumberAsync (int? docnumber); - - /// - /// this call returns all association with idErps for a specific docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Docnumber to search - /// Task of ApiResponse (List<DocnumberIdErpAssociationDTO>) - System.Threading.Tasks.Task>> ProfilesGetDocnumberIdErpAssociationByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// this call returns all association with docnumbers for a specific idErp - /// - /// - /// Use iderp/byIdErp - /// - /// Thrown when fails to make API call - /// IdErp to search - /// Task of List<DocnumberIdErpAssociationDTO> - System.Threading.Tasks.Task> ProfilesGetDocnumberIdErpAssociationByIdErpAsync (string idErp); - - /// - /// this call returns all association with docnumbers for a specific idErp - /// - /// - /// Use iderp/byIdErp - /// - /// Thrown when fails to make API call - /// IdErp to search - /// Task of ApiResponse (List<DocnumberIdErpAssociationDTO>) - System.Threading.Tasks.Task>> ProfilesGetDocnumberIdErpAssociationByIdErpAsyncWithHttpInfo (string idErp); - /// - /// this call returns all association with docnumbers for a specific idErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<DocnumberIdErpAssociationDTO> - System.Threading.Tasks.Task> ProfilesGetDocnumberIdErpAssociationByIdErp_0Async (ByIdErpDto idErpDto); - - /// - /// this call returns all association with docnumbers for a specific idErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<DocnumberIdErpAssociationDTO>) - System.Threading.Tasks.Task>> ProfilesGetDocnumberIdErpAssociationByIdErp_0AsyncWithHttpInfo (ByIdErpDto idErpDto); - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldFilterDTO - System.Threading.Tasks.Task ProfilesGetFiltersForArchiveAsync (FieldValuesArchiveCriteriaDto fieldcriteria = null); - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldFilterDTO) - System.Threading.Tasks.Task> ProfilesGetFiltersForArchiveAsyncWithHttpInfo (FieldValuesArchiveCriteriaDto fieldcriteria = null); - /// - /// This call allows the retrieval of the default profile for archiving barcode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of MaskProfileSchemaDTO - System.Threading.Tasks.Task ProfilesGetForBarcodeAsync (); - - /// - /// This call allows the retrieval of the default profile for archiving barcode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (MaskProfileSchemaDTO) - System.Threading.Tasks.Task> ProfilesGetForBarcodeAsyncWithHttpInfo (); - /// - /// This call clones a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Specify if the clone operation must include file - /// Task of MaskProfileSchemaDTO - System.Threading.Tasks.Task ProfilesGetForCloneAsync (int? docNumber, bool? includefile); - - /// - /// This call clones a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Specify if the clone operation must include file - /// Task of ApiResponse (MaskProfileSchemaDTO) - System.Threading.Tasks.Task> ProfilesGetForCloneAsyncWithHttpInfo (int? docNumber, bool? includefile); - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// Task of EditProfileSchemaDTO - System.Threading.Tasks.Task ProfilesGetForTaskAsync (int? docNumber, int? taskId); - - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// Task of ApiResponse (EditProfileSchemaDTO) - System.Threading.Tasks.Task> ProfilesGetForTaskAsyncWithHttpInfo (int? docNumber, int? taskId); - /// - /// This call return the mask schema of a document in a task V2 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of EditProfileSchemaDTO - System.Threading.Tasks.Task ProfilesGetForTaskV2Async (TaskV2SchemaRequestDTO request); - - /// - /// This call return the mask schema of a document in a task V2 - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (EditProfileSchemaDTO) - System.Threading.Tasks.Task> ProfilesGetForTaskV2AsyncWithHttpInfo (TaskV2SchemaRequestDTO request); - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// - /// Task of EditProfileSchemaDTO - System.Threading.Tasks.Task ProfilesGetForTask_0Async (int? docNumber, int? taskId, bool? switched); - - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// - /// Task of ApiResponse (EditProfileSchemaDTO) - System.Threading.Tasks.Task> ProfilesGetForTask_0AsyncWithHttpInfo (int? docNumber, int? taskId, bool? switched); - /// - /// This call returns the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of string - System.Threading.Tasks.Task ProfilesGetFormulaForArchiveAsync (FieldFormulaCalculateArchiveCriteriaDto fieldcriteria = null); - - /// - /// This call returns the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> ProfilesGetFormulaForArchiveAsyncWithHttpInfo (FieldFormulaCalculateArchiveCriteriaDto fieldcriteria = null); - /// - /// This call returns the edit schema of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - /// Task of EditProfileSchemaDTO - System.Threading.Tasks.Task ProfilesGetSchemaAsync (int? docNumber, bool? switched); - - /// - /// This call returns the edit schema of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - /// Task of ApiResponse (EditProfileSchemaDTO) - System.Threading.Tasks.Task> ProfilesGetSchemaAsyncWithHttpInfo (int? docNumber, bool? switched); - /// - /// This call returns the edit schema of a document from a file for a monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// buffer Identifier - /// Task of MaskProfileSchemaDTO - System.Threading.Tasks.Task ProfilesGetSchema_0Async (string bufferId); - - /// - /// This call returns the edit schema of a document from a file for a monitored folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// buffer Identifier - /// Task of ApiResponse (MaskProfileSchemaDTO) - System.Threading.Tasks.Task> ProfilesGetSchema_0AsyncWithHttpInfo (string bufferId); - /// - /// This call returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldValuesDTO - System.Threading.Tasks.Task ProfilesGetValuesForArchiveAsync (FieldValuesArchiveCriteriaDto fieldcriteria = null); - - /// - /// This call returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldValuesDTO) - System.Threading.Tasks.Task> ProfilesGetValuesForArchiveAsyncWithHttpInfo (FieldValuesArchiveCriteriaDto fieldcriteria = null); - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of MaskProfileSchemaDTO - System.Threading.Tasks.Task ProfilesGet_0Async (); - - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (MaskProfileSchemaDTO) - System.Threading.Tasks.Task> ProfilesGet_0AsyncWithHttpInfo (); - /// - /// This call insert new association between Docnumber and IdErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Association DTO between Docnumber and External Id - /// Task of void - System.Threading.Tasks.Task ProfilesInsertIdErpAsync (DocnumberIdErpAssociationDTO docnumberIdErpAssociation); - - /// - /// This call insert new association between Docnumber and IdErp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Association DTO between Docnumber and External Id - /// Task of ApiResponse - System.Threading.Tasks.Task> ProfilesInsertIdErpAsyncWithHttpInfo (DocnumberIdErpAssociationDTO docnumberIdErpAssociation); - /// - /// This call checks if a profile is lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of bool? - System.Threading.Tasks.Task ProfilesLockProfileAsync (int? docNumber); - - /// - /// This call checks if a profile is lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> ProfilesLockProfileAsyncWithHttpInfo (int? docNumber); - /// - /// This call checks if a profile is lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of task work - /// Task of bool? - System.Threading.Tasks.Task ProfilesLockProfile_0Async (int? docNumber, int? taskId); - - /// - /// This call checks if a profile is lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of task work - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> ProfilesLockProfile_0AsyncWithHttpInfo (int? docNumber, int? taskId); - /// - /// This call inserts a new profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ProfileResultDTO - System.Threading.Tasks.Task ProfilesPostAsync (ProfileDTO profile = null); - - /// - /// This call inserts a new profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - System.Threading.Tasks.Task> ProfilesPostAsyncWithHttpInfo (ProfileDTO profile = null); - /// - /// This call allows the insertion of new profile for barcode purpose - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ProfileResultDTO - System.Threading.Tasks.Task ProfilesPostForBarcodeAsync (ProfileDTO profile = null); - - /// - /// This call allows the insertion of new profile for barcode purpose - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - System.Threading.Tasks.Task> ProfilesPostForBarcodeAsyncWithHttpInfo (ProfileDTO profile = null); - /// - /// This call performs the insertion of new profile for mail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ProfileMailResponseDTO - System.Threading.Tasks.Task ProfilesPostForMailAsync (MailDTO mail); - - /// - /// This call performs the insertion of new profile for mail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ProfileMailResponseDTO) - System.Threading.Tasks.Task> ProfilesPostForMailAsyncWithHttpInfo (MailDTO mail); - /// - /// This call updates an existent profile - /// - /// - /// This method is deprecated. Use /api/Profiles/{docnumber}/mask/{maskId} - /// - /// Thrown when fails to make API call - /// Document Identifier to update - /// (optional) - /// Task of void - System.Threading.Tasks.Task ProfilesPutAsync (int? docnumber, ProfileDTO profile = null); - - /// - /// This call updates an existent profile - /// - /// - /// This method is deprecated. Use /api/Profiles/{docnumber}/mask/{maskId} - /// - /// Thrown when fails to make API call - /// Document Identifier to update - /// (optional) - /// Task of ApiResponse - System.Threading.Tasks.Task> ProfilesPutAsyncWithHttpInfo (int? docnumber, ProfileDTO profile = null); - /// - /// This call executes a profile update using a specific mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Document identifier - /// (optional) - /// Task of ProfileResultDTO - System.Threading.Tasks.Task ProfilesPutWithMaskAsync (string maskId, int? docnumber, ProfileDTO profile = null); - - /// - /// This call executes a profile update using a specific mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Document identifier - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - System.Threading.Tasks.Task> ProfilesPutWithMaskAsyncWithHttpInfo (string maskId, int? docnumber, ProfileDTO profile = null); - /// - /// This call checks if a profile is not lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of bool? - System.Threading.Tasks.Task ProfilesUnLockProfileAsync (int? docNumber); - - /// - /// This call checks if a profile is not lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> ProfilesUnLockProfileAsyncWithHttpInfo (int? docNumber); - /// - /// This call checks if a profile is not lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of the task work - /// Task of bool? - System.Threading.Tasks.Task ProfilesUnLockProfile_0Async (int? docNumber, int? taskid); - - /// - /// This call checks if a profile is not lock - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of the task work - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> ProfilesUnLockProfile_0AsyncWithHttpInfo (int? docNumber, int? taskid); - /// - /// This call returns the result of a validation given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ValidationFieldResultDTO - System.Threading.Tasks.Task ProfilesValidateForArchiveAsync (FieldValidationCalculateArchiveCriteriaDto fieldcriteria = null); - - /// - /// This call returns the result of a validation given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ValidationFieldResultDTO) - System.Threading.Tasks.Task> ProfilesValidateForArchiveAsyncWithHttpInfo (FieldValidationCalculateArchiveCriteriaDto fieldcriteria = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ProfilesApi : IProfilesApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ProfilesApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ProfilesApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call insert new profile from automatic monitored folder file - /// - /// Thrown when fails to make API call - /// File from monitored folder in buffer - /// - public void ProfilesArchiveMonitoredFolderFileFromBufferAutomatic (string bufferId) - { - ProfilesArchiveMonitoredFolderFileFromBufferAutomaticWithHttpInfo(bufferId); - } - - /// - /// This call insert new profile from automatic monitored folder file - /// - /// Thrown when fails to make API call - /// File from monitored folder in buffer - /// ApiResponse of Object(void) - public ApiResponse ProfilesArchiveMonitoredFolderFileFromBufferAutomaticWithHttpInfo (string bufferId) - { - // verify the required parameter 'bufferId' is set - if (bufferId == null) - throw new ApiException(400, "Missing required parameter 'bufferId' when calling ProfilesApi->ProfilesArchiveMonitoredFolderFileFromBufferAutomatic"); - - var localVarPath = "/api/Profiles/formonitoredfolder/{bufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bufferId != null) localVarPathParams.Add("bufferId", this.Configuration.ApiClient.ParameterToString(bufferId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesArchiveMonitoredFolderFileFromBufferAutomatic", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call insert new profile from automatic monitored folder file - /// - /// Thrown when fails to make API call - /// File from monitored folder in buffer - /// Task of void - public async System.Threading.Tasks.Task ProfilesArchiveMonitoredFolderFileFromBufferAutomaticAsync (string bufferId) - { - await ProfilesArchiveMonitoredFolderFileFromBufferAutomaticAsyncWithHttpInfo(bufferId); - - } - - /// - /// This call insert new profile from automatic monitored folder file - /// - /// Thrown when fails to make API call - /// File from monitored folder in buffer - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ProfilesArchiveMonitoredFolderFileFromBufferAutomaticAsyncWithHttpInfo (string bufferId) - { - // verify the required parameter 'bufferId' is set - if (bufferId == null) - throw new ApiException(400, "Missing required parameter 'bufferId' when calling ProfilesApi->ProfilesArchiveMonitoredFolderFileFromBufferAutomatic"); - - var localVarPath = "/api/Profiles/formonitoredfolder/{bufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bufferId != null) localVarPathParams.Add("bufferId", this.Configuration.ApiClient.ParameterToString(bufferId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesArchiveMonitoredFolderFileFromBufferAutomatic", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes association between Docnumber and IdErp - /// - /// Thrown when fails to make API call - /// Association id for External Id and profile to delete - /// - public void ProfilesDeleteIdErpById (int? id) - { - ProfilesDeleteIdErpByIdWithHttpInfo(id); - } - - /// - /// This call deletes association between Docnumber and IdErp - /// - /// Thrown when fails to make API call - /// Association id for External Id and profile to delete - /// ApiResponse of Object(void) - public ApiResponse ProfilesDeleteIdErpByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ProfilesApi->ProfilesDeleteIdErpById"); - - var localVarPath = "/api/Profiles/iderp/byId/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesDeleteIdErpById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes association between Docnumber and IdErp - /// - /// Thrown when fails to make API call - /// Association id for External Id and profile to delete - /// Task of void - public async System.Threading.Tasks.Task ProfilesDeleteIdErpByIdAsync (int? id) - { - await ProfilesDeleteIdErpByIdAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes association between Docnumber and IdErp - /// - /// Thrown when fails to make API call - /// Association id for External Id and profile to delete - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ProfilesDeleteIdErpByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ProfilesApi->ProfilesDeleteIdErpById"); - - var localVarPath = "/api/Profiles/iderp/byId/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesDeleteIdErpById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a document - /// - /// Thrown when fails to make API call - /// Document Identfier to delete - /// - public void ProfilesDeleteProfile (int? docNumber) - { - ProfilesDeleteProfileWithHttpInfo(docNumber); - } - - /// - /// This call deletes a document - /// - /// Thrown when fails to make API call - /// Document Identfier to delete - /// ApiResponse of Object(void) - public ApiResponse ProfilesDeleteProfileWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesDeleteProfile"); - - var localVarPath = "/api/Profiles/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesDeleteProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a document - /// - /// Thrown when fails to make API call - /// Document Identfier to delete - /// Task of void - public async System.Threading.Tasks.Task ProfilesDeleteProfileAsync (int? docNumber) - { - await ProfilesDeleteProfileAsyncWithHttpInfo(docNumber); - - } - - /// - /// This call deletes a document - /// - /// Thrown when fails to make API call - /// Document Identfier to delete - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ProfilesDeleteProfileAsyncWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesDeleteProfile"); - - var localVarPath = "/api/Profiles/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesDeleteProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the mask schema of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// EditProfileSchemaDTO - public EditProfileSchemaDTO ProfilesGet (int? docNumber) - { - ApiResponse localVarResponse = ProfilesGetWithHttpInfo(docNumber); - return localVarResponse.Data; - } - - /// - /// This call returns the mask schema of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of EditProfileSchemaDTO - public ApiResponse< EditProfileSchemaDTO > ProfilesGetWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesGet"); - - var localVarPath = "/api/Profiles/detail/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (EditProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EditProfileSchemaDTO))); - } - - /// - /// This call returns the mask schema of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of EditProfileSchemaDTO - public async System.Threading.Tasks.Task ProfilesGetAsync (int? docNumber) - { - ApiResponse localVarResponse = await ProfilesGetAsyncWithHttpInfo(docNumber); - return localVarResponse.Data; - - } - - /// - /// This call returns the mask schema of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (EditProfileSchemaDTO) - public async System.Threading.Tasks.Task> ProfilesGetAsyncWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesGet"); - - var localVarPath = "/api/Profiles/detail/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (EditProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EditProfileSchemaDTO))); - } - - /// - /// This call returns the list of the additional field for archiving cross all classes and business units - /// - /// Thrown when fails to make API call - /// List<FieldBaseDTO> - public List ProfilesGetAdditionalAll () - { - ApiResponse> localVarResponse = ProfilesGetAdditionalAllWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the list of the additional field for archiving cross all classes and business units - /// - /// Thrown when fails to make API call - /// ApiResponse of List<FieldBaseDTO> - public ApiResponse< List > ProfilesGetAdditionalAllWithHttpInfo () - { - - var localVarPath = "/api/Profiles/Additional/All"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetAdditionalAll", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the list of the additional field for archiving cross all classes and business units - /// - /// Thrown when fails to make API call - /// Task of List<FieldBaseDTO> - public async System.Threading.Tasks.Task> ProfilesGetAdditionalAllAsync () - { - ApiResponse> localVarResponse = await ProfilesGetAdditionalAllAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the list of the additional field for archiving cross all classes and business units - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<FieldBaseDTO>) - public async System.Threading.Tasks.Task>> ProfilesGetAdditionalAllAsyncWithHttpInfo () - { - - var localVarPath = "/api/Profiles/Additional/All"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetAdditionalAll", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code (optional) - /// List<FieldBaseDTO> - public List ProfilesGetAdditionalByClasse (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - ApiResponse> localVarResponse = ProfilesGetAdditionalByClasseWithHttpInfo(tipoUno, tipoDue, tipoTre, aoo); - return localVarResponse.Data; - } - - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code (optional) - /// ApiResponse of List<FieldBaseDTO> - public ApiResponse< List > ProfilesGetAdditionalByClasseWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - // verify the required parameter 'tipoUno' is set - if (tipoUno == null) - throw new ApiException(400, "Missing required parameter 'tipoUno' when calling ProfilesApi->ProfilesGetAdditionalByClasse"); - // verify the required parameter 'tipoDue' is set - if (tipoDue == null) - throw new ApiException(400, "Missing required parameter 'tipoDue' when calling ProfilesApi->ProfilesGetAdditionalByClasse"); - // verify the required parameter 'tipoTre' is set - if (tipoTre == null) - throw new ApiException(400, "Missing required parameter 'tipoTre' when calling ProfilesApi->ProfilesGetAdditionalByClasse"); - - var localVarPath = "/api/Profiles/Additional/{tipoUno}/{tipoDue}/{tipoTre}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tipoUno != null) localVarPathParams.Add("tipoUno", this.Configuration.ApiClient.ParameterToString(tipoUno)); // path parameter - if (tipoDue != null) localVarPathParams.Add("tipoDue", this.Configuration.ApiClient.ParameterToString(tipoDue)); // path parameter - if (tipoTre != null) localVarPathParams.Add("tipoTre", this.Configuration.ApiClient.ParameterToString(tipoTre)); // path parameter - if (aoo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "aoo", aoo)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetAdditionalByClasse", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code (optional) - /// Task of List<FieldBaseDTO> - public async System.Threading.Tasks.Task> ProfilesGetAdditionalByClasseAsync (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - ApiResponse> localVarResponse = await ProfilesGetAdditionalByClasseAsyncWithHttpInfo(tipoUno, tipoDue, tipoTre, aoo); - return localVarResponse.Data; - - } - - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code (optional) - /// Task of ApiResponse (List<FieldBaseDTO>) - public async System.Threading.Tasks.Task>> ProfilesGetAdditionalByClasseAsyncWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - // verify the required parameter 'tipoUno' is set - if (tipoUno == null) - throw new ApiException(400, "Missing required parameter 'tipoUno' when calling ProfilesApi->ProfilesGetAdditionalByClasse"); - // verify the required parameter 'tipoDue' is set - if (tipoDue == null) - throw new ApiException(400, "Missing required parameter 'tipoDue' when calling ProfilesApi->ProfilesGetAdditionalByClasse"); - // verify the required parameter 'tipoTre' is set - if (tipoTre == null) - throw new ApiException(400, "Missing required parameter 'tipoTre' when calling ProfilesApi->ProfilesGetAdditionalByClasse"); - - var localVarPath = "/api/Profiles/Additional/{tipoUno}/{tipoDue}/{tipoTre}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tipoUno != null) localVarPathParams.Add("tipoUno", this.Configuration.ApiClient.ParameterToString(tipoUno)); // path parameter - if (tipoDue != null) localVarPathParams.Add("tipoDue", this.Configuration.ApiClient.ParameterToString(tipoDue)); // path parameter - if (tipoTre != null) localVarPathParams.Add("tipoTre", this.Configuration.ApiClient.ParameterToString(tipoTre)); // path parameter - if (aoo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "aoo", aoo)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetAdditionalByClasse", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) This method is deprecated. Use /api/Profiles/Additional/{tipoUno}/{tipoDue}/{tipoTre}?aoo={aoo} - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code - /// List<FieldBaseDTO> - public List ProfilesGetAdditionalByClasseOld (int? tipoUno, int? tipoDue, int? tipoTre, string aoo) - { - ApiResponse> localVarResponse = ProfilesGetAdditionalByClasseOldWithHttpInfo(tipoUno, tipoDue, tipoTre, aoo); - return localVarResponse.Data; - } - - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) This method is deprecated. Use /api/Profiles/Additional/{tipoUno}/{tipoDue}/{tipoTre}?aoo={aoo} - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code - /// ApiResponse of List<FieldBaseDTO> - public ApiResponse< List > ProfilesGetAdditionalByClasseOldWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo) - { - // verify the required parameter 'tipoUno' is set - if (tipoUno == null) - throw new ApiException(400, "Missing required parameter 'tipoUno' when calling ProfilesApi->ProfilesGetAdditionalByClasseOld"); - // verify the required parameter 'tipoDue' is set - if (tipoDue == null) - throw new ApiException(400, "Missing required parameter 'tipoDue' when calling ProfilesApi->ProfilesGetAdditionalByClasseOld"); - // verify the required parameter 'tipoTre' is set - if (tipoTre == null) - throw new ApiException(400, "Missing required parameter 'tipoTre' when calling ProfilesApi->ProfilesGetAdditionalByClasseOld"); - // verify the required parameter 'aoo' is set - if (aoo == null) - throw new ApiException(400, "Missing required parameter 'aoo' when calling ProfilesApi->ProfilesGetAdditionalByClasseOld"); - - var localVarPath = "/api/Profiles/Additional/{tipoUno}/{tipoDue}/{tipoTre}/{aoo}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tipoUno != null) localVarPathParams.Add("tipoUno", this.Configuration.ApiClient.ParameterToString(tipoUno)); // path parameter - if (tipoDue != null) localVarPathParams.Add("tipoDue", this.Configuration.ApiClient.ParameterToString(tipoDue)); // path parameter - if (tipoTre != null) localVarPathParams.Add("tipoTre", this.Configuration.ApiClient.ParameterToString(tipoTre)); // path parameter - if (aoo != null) localVarPathParams.Add("aoo", this.Configuration.ApiClient.ParameterToString(aoo)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetAdditionalByClasseOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) This method is deprecated. Use /api/Profiles/Additional/{tipoUno}/{tipoDue}/{tipoTre}?aoo={aoo} - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code - /// Task of List<FieldBaseDTO> - public async System.Threading.Tasks.Task> ProfilesGetAdditionalByClasseOldAsync (int? tipoUno, int? tipoDue, int? tipoTre, string aoo) - { - ApiResponse> localVarResponse = await ProfilesGetAdditionalByClasseOldAsyncWithHttpInfo(tipoUno, tipoDue, tipoTre, aoo); - return localVarResponse.Data; - - } - - /// - /// This call returns the list of the additional field for archiving by the given business unit and document class (including groups) This method is deprecated. Use /api/Profiles/Additional/{tipoUno}/{tipoDue}/{tipoTre}?aoo={aoo} - /// - /// Thrown when fails to make API call - /// Document Type Identifier of first level - /// DocumentType Identifier of second level - /// DocumentType Identifier of third level - /// Business unit code - /// Task of ApiResponse (List<FieldBaseDTO>) - public async System.Threading.Tasks.Task>> ProfilesGetAdditionalByClasseOldAsyncWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo) - { - // verify the required parameter 'tipoUno' is set - if (tipoUno == null) - throw new ApiException(400, "Missing required parameter 'tipoUno' when calling ProfilesApi->ProfilesGetAdditionalByClasseOld"); - // verify the required parameter 'tipoDue' is set - if (tipoDue == null) - throw new ApiException(400, "Missing required parameter 'tipoDue' when calling ProfilesApi->ProfilesGetAdditionalByClasseOld"); - // verify the required parameter 'tipoTre' is set - if (tipoTre == null) - throw new ApiException(400, "Missing required parameter 'tipoTre' when calling ProfilesApi->ProfilesGetAdditionalByClasseOld"); - // verify the required parameter 'aoo' is set - if (aoo == null) - throw new ApiException(400, "Missing required parameter 'aoo' when calling ProfilesApi->ProfilesGetAdditionalByClasseOld"); - - var localVarPath = "/api/Profiles/Additional/{tipoUno}/{tipoDue}/{tipoTre}/{aoo}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tipoUno != null) localVarPathParams.Add("tipoUno", this.Configuration.ApiClient.ParameterToString(tipoUno)); // path parameter - if (tipoDue != null) localVarPathParams.Add("tipoDue", this.Configuration.ApiClient.ParameterToString(tipoDue)); // path parameter - if (tipoTre != null) localVarPathParams.Add("tipoTre", this.Configuration.ApiClient.ParameterToString(tipoTre)); // path parameter - if (aoo != null) localVarPathParams.Add("aoo", this.Configuration.ApiClient.ParameterToString(aoo)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetAdditionalByClasseOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows the retrieval of the default profile for archiving by given document type - /// - /// Thrown when fails to make API call - /// Document type code - /// MaskProfileSchemaDTO - public MaskProfileSchemaDTO ProfilesGetByDocumentType (GetByDocumentTypeRequestDTO documenttypecode) - { - ApiResponse localVarResponse = ProfilesGetByDocumentTypeWithHttpInfo(documenttypecode); - return localVarResponse.Data; - } - - /// - /// This call allows the retrieval of the default profile for archiving by given document type - /// - /// Thrown when fails to make API call - /// Document type code - /// ApiResponse of MaskProfileSchemaDTO - public ApiResponse< MaskProfileSchemaDTO > ProfilesGetByDocumentTypeWithHttpInfo (GetByDocumentTypeRequestDTO documenttypecode) - { - // verify the required parameter 'documenttypecode' is set - if (documenttypecode == null) - throw new ApiException(400, "Missing required parameter 'documenttypecode' when calling ProfilesApi->ProfilesGetByDocumentType"); - - var localVarPath = "/api/Profiles/bydocumenttype"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documenttypecode != null && documenttypecode.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(documenttypecode); // http body (model) parameter - } - else - { - localVarPostBody = documenttypecode; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetByDocumentType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call allows the retrieval of the default profile for archiving by given document type - /// - /// Thrown when fails to make API call - /// Document type code - /// Task of MaskProfileSchemaDTO - public async System.Threading.Tasks.Task ProfilesGetByDocumentTypeAsync (GetByDocumentTypeRequestDTO documenttypecode) - { - ApiResponse localVarResponse = await ProfilesGetByDocumentTypeAsyncWithHttpInfo(documenttypecode); - return localVarResponse.Data; - - } - - /// - /// This call allows the retrieval of the default profile for archiving by given document type - /// - /// Thrown when fails to make API call - /// Document type code - /// Task of ApiResponse (MaskProfileSchemaDTO) - public async System.Threading.Tasks.Task> ProfilesGetByDocumentTypeAsyncWithHttpInfo (GetByDocumentTypeRequestDTO documenttypecode) - { - // verify the required parameter 'documenttypecode' is set - if (documenttypecode == null) - throw new ApiException(400, "Missing required parameter 'documenttypecode' when calling ProfilesApi->ProfilesGetByDocumentType"); - - var localVarPath = "/api/Profiles/bydocumenttype"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documenttypecode != null && documenttypecode.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(documenttypecode); // http body (model) parameter - } - else - { - localVarPostBody = documenttypecode; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetByDocumentType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns the mask schema of documents by idErp Use detail/byIdErp - /// - /// Thrown when fails to make API call - /// Document external Identifier - /// List<EditProfileSchemaDTO> - public List ProfilesGetByIdErp (string iderp) - { - ApiResponse> localVarResponse = ProfilesGetByIdErpWithHttpInfo(iderp); - return localVarResponse.Data; - } - - /// - /// This call returns the mask schema of documents by idErp Use detail/byIdErp - /// - /// Thrown when fails to make API call - /// Document external Identifier - /// ApiResponse of List<EditProfileSchemaDTO> - public ApiResponse< List > ProfilesGetByIdErpWithHttpInfo (string iderp) - { - // verify the required parameter 'iderp' is set - if (iderp == null) - throw new ApiException(400, "Missing required parameter 'iderp' when calling ProfilesApi->ProfilesGetByIdErp"); - - var localVarPath = "/api/Profiles/detail/byIdErp/{iderp}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (iderp != null) localVarPathParams.Add("iderp", this.Configuration.ApiClient.ParameterToString(iderp)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetByIdErp", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the mask schema of documents by idErp Use detail/byIdErp - /// - /// Thrown when fails to make API call - /// Document external Identifier - /// Task of List<EditProfileSchemaDTO> - public async System.Threading.Tasks.Task> ProfilesGetByIdErpAsync (string iderp) - { - ApiResponse> localVarResponse = await ProfilesGetByIdErpAsyncWithHttpInfo(iderp); - return localVarResponse.Data; - - } - - /// - /// This call returns the mask schema of documents by idErp Use detail/byIdErp - /// - /// Thrown when fails to make API call - /// Document external Identifier - /// Task of ApiResponse (List<EditProfileSchemaDTO>) - public async System.Threading.Tasks.Task>> ProfilesGetByIdErpAsyncWithHttpInfo (string iderp) - { - // verify the required parameter 'iderp' is set - if (iderp == null) - throw new ApiException(400, "Missing required parameter 'iderp' when calling ProfilesApi->ProfilesGetByIdErp"); - - var localVarPath = "/api/Profiles/detail/byIdErp/{iderp}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (iderp != null) localVarPathParams.Add("iderp", this.Configuration.ApiClient.ParameterToString(iderp)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetByIdErp", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the mask schema of documents by idErp - /// - /// Thrown when fails to make API call - /// - /// List<EditProfileSchemaDTO> - public List ProfilesGetByIdErp_0 (ByIdErpDto idErpDto) - { - ApiResponse> localVarResponse = ProfilesGetByIdErp_0WithHttpInfo(idErpDto); - return localVarResponse.Data; - } - - /// - /// This call returns the mask schema of documents by idErp - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<EditProfileSchemaDTO> - public ApiResponse< List > ProfilesGetByIdErp_0WithHttpInfo (ByIdErpDto idErpDto) - { - // verify the required parameter 'idErpDto' is set - if (idErpDto == null) - throw new ApiException(400, "Missing required parameter 'idErpDto' when calling ProfilesApi->ProfilesGetByIdErp_0"); - - var localVarPath = "/api/Profiles/detail/byIdErp"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (idErpDto != null && idErpDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(idErpDto); // http body (model) parameter - } - else - { - localVarPostBody = idErpDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetByIdErp_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the mask schema of documents by idErp - /// - /// Thrown when fails to make API call - /// - /// Task of List<EditProfileSchemaDTO> - public async System.Threading.Tasks.Task> ProfilesGetByIdErp_0Async (ByIdErpDto idErpDto) - { - ApiResponse> localVarResponse = await ProfilesGetByIdErp_0AsyncWithHttpInfo(idErpDto); - return localVarResponse.Data; - - } - - /// - /// This call returns the mask schema of documents by idErp - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<EditProfileSchemaDTO>) - public async System.Threading.Tasks.Task>> ProfilesGetByIdErp_0AsyncWithHttpInfo (ByIdErpDto idErpDto) - { - // verify the required parameter 'idErpDto' is set - if (idErpDto == null) - throw new ApiException(400, "Missing required parameter 'idErpDto' when calling ProfilesApi->ProfilesGetByIdErp_0"); - - var localVarPath = "/api/Profiles/detail/byIdErp"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (idErpDto != null && idErpDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(idErpDto); // http body (model) parameter - } - else - { - localVarPostBody = idErpDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetByIdErp_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the default document writing settings - /// - /// Thrown when fails to make API call - /// DocumentsWritingSettingsDTO - public DocumentsWritingSettingsDTO ProfilesGetDefaultWritingSettings () - { - ApiResponse localVarResponse = ProfilesGetDefaultWritingSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the default document writing settings - /// - /// Thrown when fails to make API call - /// ApiResponse of DocumentsWritingSettingsDTO - public ApiResponse< DocumentsWritingSettingsDTO > ProfilesGetDefaultWritingSettingsWithHttpInfo () - { - - var localVarPath = "/api/Profiles/DefaultWritingSettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetDefaultWritingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentsWritingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentsWritingSettingsDTO))); - } - - /// - /// This call returns the default document writing settings - /// - /// Thrown when fails to make API call - /// Task of DocumentsWritingSettingsDTO - public async System.Threading.Tasks.Task ProfilesGetDefaultWritingSettingsAsync () - { - ApiResponse localVarResponse = await ProfilesGetDefaultWritingSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the default document writing settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DocumentsWritingSettingsDTO) - public async System.Threading.Tasks.Task> ProfilesGetDefaultWritingSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/Profiles/DefaultWritingSettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetDefaultWritingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentsWritingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentsWritingSettingsDTO))); - } - - /// - /// this call returns all association with idErps for a specific docnumber - /// - /// Thrown when fails to make API call - /// Docnumber to search - /// List<DocnumberIdErpAssociationDTO> - public List ProfilesGetDocnumberIdErpAssociationByDocnumber (int? docnumber) - { - ApiResponse> localVarResponse = ProfilesGetDocnumberIdErpAssociationByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// this call returns all association with idErps for a specific docnumber - /// - /// Thrown when fails to make API call - /// Docnumber to search - /// ApiResponse of List<DocnumberIdErpAssociationDTO> - public ApiResponse< List > ProfilesGetDocnumberIdErpAssociationByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling ProfilesApi->ProfilesGetDocnumberIdErpAssociationByDocnumber"); - - var localVarPath = "/api/Profiles/iderp/byDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetDocnumberIdErpAssociationByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// this call returns all association with idErps for a specific docnumber - /// - /// Thrown when fails to make API call - /// Docnumber to search - /// Task of List<DocnumberIdErpAssociationDTO> - public async System.Threading.Tasks.Task> ProfilesGetDocnumberIdErpAssociationByDocnumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await ProfilesGetDocnumberIdErpAssociationByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// this call returns all association with idErps for a specific docnumber - /// - /// Thrown when fails to make API call - /// Docnumber to search - /// Task of ApiResponse (List<DocnumberIdErpAssociationDTO>) - public async System.Threading.Tasks.Task>> ProfilesGetDocnumberIdErpAssociationByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling ProfilesApi->ProfilesGetDocnumberIdErpAssociationByDocnumber"); - - var localVarPath = "/api/Profiles/iderp/byDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetDocnumberIdErpAssociationByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// this call returns all association with docnumbers for a specific idErp Use iderp/byIdErp - /// - /// Thrown when fails to make API call - /// IdErp to search - /// List<DocnumberIdErpAssociationDTO> - public List ProfilesGetDocnumberIdErpAssociationByIdErp (string idErp) - { - ApiResponse> localVarResponse = ProfilesGetDocnumberIdErpAssociationByIdErpWithHttpInfo(idErp); - return localVarResponse.Data; - } - - /// - /// this call returns all association with docnumbers for a specific idErp Use iderp/byIdErp - /// - /// Thrown when fails to make API call - /// IdErp to search - /// ApiResponse of List<DocnumberIdErpAssociationDTO> - public ApiResponse< List > ProfilesGetDocnumberIdErpAssociationByIdErpWithHttpInfo (string idErp) - { - // verify the required parameter 'idErp' is set - if (idErp == null) - throw new ApiException(400, "Missing required parameter 'idErp' when calling ProfilesApi->ProfilesGetDocnumberIdErpAssociationByIdErp"); - - var localVarPath = "/api/Profiles/iderp/byIdErp/{idErp}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (idErp != null) localVarPathParams.Add("idErp", this.Configuration.ApiClient.ParameterToString(idErp)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetDocnumberIdErpAssociationByIdErp", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// this call returns all association with docnumbers for a specific idErp Use iderp/byIdErp - /// - /// Thrown when fails to make API call - /// IdErp to search - /// Task of List<DocnumberIdErpAssociationDTO> - public async System.Threading.Tasks.Task> ProfilesGetDocnumberIdErpAssociationByIdErpAsync (string idErp) - { - ApiResponse> localVarResponse = await ProfilesGetDocnumberIdErpAssociationByIdErpAsyncWithHttpInfo(idErp); - return localVarResponse.Data; - - } - - /// - /// this call returns all association with docnumbers for a specific idErp Use iderp/byIdErp - /// - /// Thrown when fails to make API call - /// IdErp to search - /// Task of ApiResponse (List<DocnumberIdErpAssociationDTO>) - public async System.Threading.Tasks.Task>> ProfilesGetDocnumberIdErpAssociationByIdErpAsyncWithHttpInfo (string idErp) - { - // verify the required parameter 'idErp' is set - if (idErp == null) - throw new ApiException(400, "Missing required parameter 'idErp' when calling ProfilesApi->ProfilesGetDocnumberIdErpAssociationByIdErp"); - - var localVarPath = "/api/Profiles/iderp/byIdErp/{idErp}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (idErp != null) localVarPathParams.Add("idErp", this.Configuration.ApiClient.ParameterToString(idErp)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetDocnumberIdErpAssociationByIdErp", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// this call returns all association with docnumbers for a specific idErp - /// - /// Thrown when fails to make API call - /// - /// List<DocnumberIdErpAssociationDTO> - public List ProfilesGetDocnumberIdErpAssociationByIdErp_0 (ByIdErpDto idErpDto) - { - ApiResponse> localVarResponse = ProfilesGetDocnumberIdErpAssociationByIdErp_0WithHttpInfo(idErpDto); - return localVarResponse.Data; - } - - /// - /// this call returns all association with docnumbers for a specific idErp - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<DocnumberIdErpAssociationDTO> - public ApiResponse< List > ProfilesGetDocnumberIdErpAssociationByIdErp_0WithHttpInfo (ByIdErpDto idErpDto) - { - // verify the required parameter 'idErpDto' is set - if (idErpDto == null) - throw new ApiException(400, "Missing required parameter 'idErpDto' when calling ProfilesApi->ProfilesGetDocnumberIdErpAssociationByIdErp_0"); - - var localVarPath = "/api/Profiles/iderp/byIdErp"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (idErpDto != null && idErpDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(idErpDto); // http body (model) parameter - } - else - { - localVarPostBody = idErpDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetDocnumberIdErpAssociationByIdErp_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// this call returns all association with docnumbers for a specific idErp - /// - /// Thrown when fails to make API call - /// - /// Task of List<DocnumberIdErpAssociationDTO> - public async System.Threading.Tasks.Task> ProfilesGetDocnumberIdErpAssociationByIdErp_0Async (ByIdErpDto idErpDto) - { - ApiResponse> localVarResponse = await ProfilesGetDocnumberIdErpAssociationByIdErp_0AsyncWithHttpInfo(idErpDto); - return localVarResponse.Data; - - } - - /// - /// this call returns all association with docnumbers for a specific idErp - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<DocnumberIdErpAssociationDTO>) - public async System.Threading.Tasks.Task>> ProfilesGetDocnumberIdErpAssociationByIdErp_0AsyncWithHttpInfo (ByIdErpDto idErpDto) - { - // verify the required parameter 'idErpDto' is set - if (idErpDto == null) - throw new ApiException(400, "Missing required parameter 'idErpDto' when calling ProfilesApi->ProfilesGetDocnumberIdErpAssociationByIdErp_0"); - - var localVarPath = "/api/Profiles/iderp/byIdErp"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (idErpDto != null && idErpDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(idErpDto); // http body (model) parameter - } - else - { - localVarPostBody = idErpDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetDocnumberIdErpAssociationByIdErp_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldFilterDTO - public FieldFilterDTO ProfilesGetFiltersForArchive (FieldValuesArchiveCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = ProfilesGetFiltersForArchiveWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldFilterDTO - public ApiResponse< FieldFilterDTO > ProfilesGetFiltersForArchiveWithHttpInfo (FieldValuesArchiveCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/Profiles/Filters"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetFiltersForArchive", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldFilterDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldFilterDTO))); - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldFilterDTO - public async System.Threading.Tasks.Task ProfilesGetFiltersForArchiveAsync (FieldValuesArchiveCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = await ProfilesGetFiltersForArchiveAsyncWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldFilterDTO) - public async System.Threading.Tasks.Task> ProfilesGetFiltersForArchiveAsyncWithHttpInfo (FieldValuesArchiveCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/Profiles/Filters"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetFiltersForArchive", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldFilterDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldFilterDTO))); - } - - /// - /// This call allows the retrieval of the default profile for archiving barcode - /// - /// Thrown when fails to make API call - /// MaskProfileSchemaDTO - public MaskProfileSchemaDTO ProfilesGetForBarcode () - { - ApiResponse localVarResponse = ProfilesGetForBarcodeWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call allows the retrieval of the default profile for archiving barcode - /// - /// Thrown when fails to make API call - /// ApiResponse of MaskProfileSchemaDTO - public ApiResponse< MaskProfileSchemaDTO > ProfilesGetForBarcodeWithHttpInfo () - { - - var localVarPath = "/api/Profiles/forbarcode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetForBarcode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call allows the retrieval of the default profile for archiving barcode - /// - /// Thrown when fails to make API call - /// Task of MaskProfileSchemaDTO - public async System.Threading.Tasks.Task ProfilesGetForBarcodeAsync () - { - ApiResponse localVarResponse = await ProfilesGetForBarcodeAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call allows the retrieval of the default profile for archiving barcode - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (MaskProfileSchemaDTO) - public async System.Threading.Tasks.Task> ProfilesGetForBarcodeAsyncWithHttpInfo () - { - - var localVarPath = "/api/Profiles/forbarcode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetForBarcode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call clones a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Specify if the clone operation must include file - /// MaskProfileSchemaDTO - public MaskProfileSchemaDTO ProfilesGetForClone (int? docNumber, bool? includefile) - { - ApiResponse localVarResponse = ProfilesGetForCloneWithHttpInfo(docNumber, includefile); - return localVarResponse.Data; - } - - /// - /// This call clones a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Specify if the clone operation must include file - /// ApiResponse of MaskProfileSchemaDTO - public ApiResponse< MaskProfileSchemaDTO > ProfilesGetForCloneWithHttpInfo (int? docNumber, bool? includefile) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesGetForClone"); - // verify the required parameter 'includefile' is set - if (includefile == null) - throw new ApiException(400, "Missing required parameter 'includefile' when calling ProfilesApi->ProfilesGetForClone"); - - var localVarPath = "/api/Profiles/clone/{docNumber}/{includefile}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (includefile != null) localVarPathParams.Add("includefile", this.Configuration.ApiClient.ParameterToString(includefile)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetForClone", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call clones a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Specify if the clone operation must include file - /// Task of MaskProfileSchemaDTO - public async System.Threading.Tasks.Task ProfilesGetForCloneAsync (int? docNumber, bool? includefile) - { - ApiResponse localVarResponse = await ProfilesGetForCloneAsyncWithHttpInfo(docNumber, includefile); - return localVarResponse.Data; - - } - - /// - /// This call clones a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Specify if the clone operation must include file - /// Task of ApiResponse (MaskProfileSchemaDTO) - public async System.Threading.Tasks.Task> ProfilesGetForCloneAsyncWithHttpInfo (int? docNumber, bool? includefile) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesGetForClone"); - // verify the required parameter 'includefile' is set - if (includefile == null) - throw new ApiException(400, "Missing required parameter 'includefile' when calling ProfilesApi->ProfilesGetForClone"); - - var localVarPath = "/api/Profiles/clone/{docNumber}/{includefile}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (includefile != null) localVarPathParams.Add("includefile", this.Configuration.ApiClient.ParameterToString(includefile)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetForClone", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// EditProfileSchemaDTO - public EditProfileSchemaDTO ProfilesGetForTask (int? docNumber, int? taskId) - { - ApiResponse localVarResponse = ProfilesGetForTaskWithHttpInfo(docNumber, taskId); - return localVarResponse.Data; - } - - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// ApiResponse of EditProfileSchemaDTO - public ApiResponse< EditProfileSchemaDTO > ProfilesGetForTaskWithHttpInfo (int? docNumber, int? taskId) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesGetForTask"); - // verify the required parameter 'taskId' is set - if (taskId == null) - throw new ApiException(400, "Missing required parameter 'taskId' when calling ProfilesApi->ProfilesGetForTask"); - - var localVarPath = "/api/Profiles/detail/{docNumber}/task/{taskId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (taskId != null) localVarPathParams.Add("taskId", this.Configuration.ApiClient.ParameterToString(taskId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (EditProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EditProfileSchemaDTO))); - } - - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// Task of EditProfileSchemaDTO - public async System.Threading.Tasks.Task ProfilesGetForTaskAsync (int? docNumber, int? taskId) - { - ApiResponse localVarResponse = await ProfilesGetForTaskAsyncWithHttpInfo(docNumber, taskId); - return localVarResponse.Data; - - } - - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// Task of ApiResponse (EditProfileSchemaDTO) - public async System.Threading.Tasks.Task> ProfilesGetForTaskAsyncWithHttpInfo (int? docNumber, int? taskId) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesGetForTask"); - // verify the required parameter 'taskId' is set - if (taskId == null) - throw new ApiException(400, "Missing required parameter 'taskId' when calling ProfilesApi->ProfilesGetForTask"); - - var localVarPath = "/api/Profiles/detail/{docNumber}/task/{taskId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (taskId != null) localVarPathParams.Add("taskId", this.Configuration.ApiClient.ParameterToString(taskId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (EditProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EditProfileSchemaDTO))); - } - - /// - /// This call return the mask schema of a document in a task V2 - /// - /// Thrown when fails to make API call - /// - /// EditProfileSchemaDTO - public EditProfileSchemaDTO ProfilesGetForTaskV2 (TaskV2SchemaRequestDTO request) - { - ApiResponse localVarResponse = ProfilesGetForTaskV2WithHttpInfo(request); - return localVarResponse.Data; - } - - /// - /// This call return the mask schema of a document in a task V2 - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of EditProfileSchemaDTO - public ApiResponse< EditProfileSchemaDTO > ProfilesGetForTaskV2WithHttpInfo (TaskV2SchemaRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling ProfilesApi->ProfilesGetForTaskV2"); - - var localVarPath = "/api/Profiles/getProfileForTaskV2"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetForTaskV2", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (EditProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EditProfileSchemaDTO))); - } - - /// - /// This call return the mask schema of a document in a task V2 - /// - /// Thrown when fails to make API call - /// - /// Task of EditProfileSchemaDTO - public async System.Threading.Tasks.Task ProfilesGetForTaskV2Async (TaskV2SchemaRequestDTO request) - { - ApiResponse localVarResponse = await ProfilesGetForTaskV2AsyncWithHttpInfo(request); - return localVarResponse.Data; - - } - - /// - /// This call return the mask schema of a document in a task V2 - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (EditProfileSchemaDTO) - public async System.Threading.Tasks.Task> ProfilesGetForTaskV2AsyncWithHttpInfo (TaskV2SchemaRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling ProfilesApi->ProfilesGetForTaskV2"); - - var localVarPath = "/api/Profiles/getProfileForTaskV2"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetForTaskV2", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (EditProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EditProfileSchemaDTO))); - } - - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// - /// EditProfileSchemaDTO - public EditProfileSchemaDTO ProfilesGetForTask_0 (int? docNumber, int? taskId, bool? switched) - { - ApiResponse localVarResponse = ProfilesGetForTask_0WithHttpInfo(docNumber, taskId, switched); - return localVarResponse.Data; - } - - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// - /// ApiResponse of EditProfileSchemaDTO - public ApiResponse< EditProfileSchemaDTO > ProfilesGetForTask_0WithHttpInfo (int? docNumber, int? taskId, bool? switched) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesGetForTask_0"); - // verify the required parameter 'taskId' is set - if (taskId == null) - throw new ApiException(400, "Missing required parameter 'taskId' when calling ProfilesApi->ProfilesGetForTask_0"); - // verify the required parameter 'switched' is set - if (switched == null) - throw new ApiException(400, "Missing required parameter 'switched' when calling ProfilesApi->ProfilesGetForTask_0"); - - var localVarPath = "/api/Profiles/detail/{docNumber}/task/{taskId}/{switched}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (taskId != null) localVarPathParams.Add("taskId", this.Configuration.ApiClient.ParameterToString(taskId)); // path parameter - if (switched != null) localVarPathParams.Add("switched", this.Configuration.ApiClient.ParameterToString(switched)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetForTask_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (EditProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EditProfileSchemaDTO))); - } - - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// - /// Task of EditProfileSchemaDTO - public async System.Threading.Tasks.Task ProfilesGetForTask_0Async (int? docNumber, int? taskId, bool? switched) - { - ApiResponse localVarResponse = await ProfilesGetForTask_0AsyncWithHttpInfo(docNumber, taskId, switched); - return localVarResponse.Data; - - } - - /// - /// This call returns the mask schema of a document in a taskwork - /// - /// Thrown when fails to make API call - /// Document Identifier - /// TaskWork Identifier - /// - /// Task of ApiResponse (EditProfileSchemaDTO) - public async System.Threading.Tasks.Task> ProfilesGetForTask_0AsyncWithHttpInfo (int? docNumber, int? taskId, bool? switched) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesGetForTask_0"); - // verify the required parameter 'taskId' is set - if (taskId == null) - throw new ApiException(400, "Missing required parameter 'taskId' when calling ProfilesApi->ProfilesGetForTask_0"); - // verify the required parameter 'switched' is set - if (switched == null) - throw new ApiException(400, "Missing required parameter 'switched' when calling ProfilesApi->ProfilesGetForTask_0"); - - var localVarPath = "/api/Profiles/detail/{docNumber}/task/{taskId}/{switched}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (taskId != null) localVarPathParams.Add("taskId", this.Configuration.ApiClient.ParameterToString(taskId)); // path parameter - if (switched != null) localVarPathParams.Add("switched", this.Configuration.ApiClient.ParameterToString(switched)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetForTask_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (EditProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EditProfileSchemaDTO))); - } - - /// - /// This call returns the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// string - public string ProfilesGetFormulaForArchive (FieldFormulaCalculateArchiveCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = ProfilesGetFormulaForArchiveWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - } - - /// - /// This call returns the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of string - public ApiResponse< string > ProfilesGetFormulaForArchiveWithHttpInfo (FieldFormulaCalculateArchiveCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/Profiles/Formula"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetFormulaForArchive", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call returns the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of string - public async System.Threading.Tasks.Task ProfilesGetFormulaForArchiveAsync (FieldFormulaCalculateArchiveCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = await ProfilesGetFormulaForArchiveAsyncWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - - } - - /// - /// This call returns the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> ProfilesGetFormulaForArchiveAsyncWithHttpInfo (FieldFormulaCalculateArchiveCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/Profiles/Formula"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetFormulaForArchive", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call returns the edit schema of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - /// EditProfileSchemaDTO - public EditProfileSchemaDTO ProfilesGetSchema (int? docNumber, bool? switched) - { - ApiResponse localVarResponse = ProfilesGetSchemaWithHttpInfo(docNumber, switched); - return localVarResponse.Data; - } - - /// - /// This call returns the edit schema of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - /// ApiResponse of EditProfileSchemaDTO - public ApiResponse< EditProfileSchemaDTO > ProfilesGetSchemaWithHttpInfo (int? docNumber, bool? switched) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesGetSchema"); - // verify the required parameter 'switched' is set - if (switched == null) - throw new ApiException(400, "Missing required parameter 'switched' when calling ProfilesApi->ProfilesGetSchema"); - - var localVarPath = "/api/Profiles/{docNumber}/schema/{switched}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (switched != null) localVarPathParams.Add("switched", this.Configuration.ApiClient.ParameterToString(switched)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetSchema", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (EditProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EditProfileSchemaDTO))); - } - - /// - /// This call returns the edit schema of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - /// Task of EditProfileSchemaDTO - public async System.Threading.Tasks.Task ProfilesGetSchemaAsync (int? docNumber, bool? switched) - { - ApiResponse localVarResponse = await ProfilesGetSchemaAsyncWithHttpInfo(docNumber, switched); - return localVarResponse.Data; - - } - - /// - /// This call returns the edit schema of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// - /// Task of ApiResponse (EditProfileSchemaDTO) - public async System.Threading.Tasks.Task> ProfilesGetSchemaAsyncWithHttpInfo (int? docNumber, bool? switched) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesGetSchema"); - // verify the required parameter 'switched' is set - if (switched == null) - throw new ApiException(400, "Missing required parameter 'switched' when calling ProfilesApi->ProfilesGetSchema"); - - var localVarPath = "/api/Profiles/{docNumber}/schema/{switched}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (switched != null) localVarPathParams.Add("switched", this.Configuration.ApiClient.ParameterToString(switched)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetSchema", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (EditProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EditProfileSchemaDTO))); - } - - /// - /// This call returns the edit schema of a document from a file for a monitored folder - /// - /// Thrown when fails to make API call - /// buffer Identifier - /// MaskProfileSchemaDTO - public MaskProfileSchemaDTO ProfilesGetSchema_0 (string bufferId) - { - ApiResponse localVarResponse = ProfilesGetSchema_0WithHttpInfo(bufferId); - return localVarResponse.Data; - } - - /// - /// This call returns the edit schema of a document from a file for a monitored folder - /// - /// Thrown when fails to make API call - /// buffer Identifier - /// ApiResponse of MaskProfileSchemaDTO - public ApiResponse< MaskProfileSchemaDTO > ProfilesGetSchema_0WithHttpInfo (string bufferId) - { - // verify the required parameter 'bufferId' is set - if (bufferId == null) - throw new ApiException(400, "Missing required parameter 'bufferId' when calling ProfilesApi->ProfilesGetSchema_0"); - - var localVarPath = "/api/Profiles/formonitoredfolder/{bufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bufferId != null) localVarPathParams.Add("bufferId", this.Configuration.ApiClient.ParameterToString(bufferId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetSchema_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns the edit schema of a document from a file for a monitored folder - /// - /// Thrown when fails to make API call - /// buffer Identifier - /// Task of MaskProfileSchemaDTO - public async System.Threading.Tasks.Task ProfilesGetSchema_0Async (string bufferId) - { - ApiResponse localVarResponse = await ProfilesGetSchema_0AsyncWithHttpInfo(bufferId); - return localVarResponse.Data; - - } - - /// - /// This call returns the edit schema of a document from a file for a monitored folder - /// - /// Thrown when fails to make API call - /// buffer Identifier - /// Task of ApiResponse (MaskProfileSchemaDTO) - public async System.Threading.Tasks.Task> ProfilesGetSchema_0AsyncWithHttpInfo (string bufferId) - { - // verify the required parameter 'bufferId' is set - if (bufferId == null) - throw new ApiException(400, "Missing required parameter 'bufferId' when calling ProfilesApi->ProfilesGetSchema_0"); - - var localVarPath = "/api/Profiles/formonitoredfolder/{bufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bufferId != null) localVarPathParams.Add("bufferId", this.Configuration.ApiClient.ParameterToString(bufferId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetSchema_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldValuesDTO - public FieldValuesDTO ProfilesGetValuesForArchive (FieldValuesArchiveCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = ProfilesGetValuesForArchiveWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - } - - /// - /// This call returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldValuesDTO - public ApiResponse< FieldValuesDTO > ProfilesGetValuesForArchiveWithHttpInfo (FieldValuesArchiveCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/Profiles/Values"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetValuesForArchive", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldValuesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldValuesDTO))); - } - - /// - /// This call returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldValuesDTO - public async System.Threading.Tasks.Task ProfilesGetValuesForArchiveAsync (FieldValuesArchiveCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = await ProfilesGetValuesForArchiveAsyncWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - - } - - /// - /// This call returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldValuesDTO) - public async System.Threading.Tasks.Task> ProfilesGetValuesForArchiveAsyncWithHttpInfo (FieldValuesArchiveCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/Profiles/Values"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGetValuesForArchive", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldValuesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldValuesDTO))); - } - - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// Thrown when fails to make API call - /// MaskProfileSchemaDTO - public MaskProfileSchemaDTO ProfilesGet_0 () - { - ApiResponse localVarResponse = ProfilesGet_0WithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// Thrown when fails to make API call - /// ApiResponse of MaskProfileSchemaDTO - public ApiResponse< MaskProfileSchemaDTO > ProfilesGet_0WithHttpInfo () - { - - var localVarPath = "/api/Profiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGet_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// Thrown when fails to make API call - /// Task of MaskProfileSchemaDTO - public async System.Threading.Tasks.Task ProfilesGet_0Async () - { - ApiResponse localVarResponse = await ProfilesGet_0AsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call allows the retrieval of the default profile for archiving - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (MaskProfileSchemaDTO) - public async System.Threading.Tasks.Task> ProfilesGet_0AsyncWithHttpInfo () - { - - var localVarPath = "/api/Profiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesGet_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call insert new association between Docnumber and IdErp - /// - /// Thrown when fails to make API call - /// Association DTO between Docnumber and External Id - /// - public void ProfilesInsertIdErp (DocnumberIdErpAssociationDTO docnumberIdErpAssociation) - { - ProfilesInsertIdErpWithHttpInfo(docnumberIdErpAssociation); - } - - /// - /// This call insert new association between Docnumber and IdErp - /// - /// Thrown when fails to make API call - /// Association DTO between Docnumber and External Id - /// ApiResponse of Object(void) - public ApiResponse ProfilesInsertIdErpWithHttpInfo (DocnumberIdErpAssociationDTO docnumberIdErpAssociation) - { - // verify the required parameter 'docnumberIdErpAssociation' is set - if (docnumberIdErpAssociation == null) - throw new ApiException(400, "Missing required parameter 'docnumberIdErpAssociation' when calling ProfilesApi->ProfilesInsertIdErp"); - - var localVarPath = "/api/Profiles/iderp"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumberIdErpAssociation != null && docnumberIdErpAssociation.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumberIdErpAssociation); // http body (model) parameter - } - else - { - localVarPostBody = docnumberIdErpAssociation; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesInsertIdErp", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call insert new association between Docnumber and IdErp - /// - /// Thrown when fails to make API call - /// Association DTO between Docnumber and External Id - /// Task of void - public async System.Threading.Tasks.Task ProfilesInsertIdErpAsync (DocnumberIdErpAssociationDTO docnumberIdErpAssociation) - { - await ProfilesInsertIdErpAsyncWithHttpInfo(docnumberIdErpAssociation); - - } - - /// - /// This call insert new association between Docnumber and IdErp - /// - /// Thrown when fails to make API call - /// Association DTO between Docnumber and External Id - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ProfilesInsertIdErpAsyncWithHttpInfo (DocnumberIdErpAssociationDTO docnumberIdErpAssociation) - { - // verify the required parameter 'docnumberIdErpAssociation' is set - if (docnumberIdErpAssociation == null) - throw new ApiException(400, "Missing required parameter 'docnumberIdErpAssociation' when calling ProfilesApi->ProfilesInsertIdErp"); - - var localVarPath = "/api/Profiles/iderp"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumberIdErpAssociation != null && docnumberIdErpAssociation.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumberIdErpAssociation); // http body (model) parameter - } - else - { - localVarPostBody = docnumberIdErpAssociation; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesInsertIdErp", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call checks if a profile is lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// bool? - public bool? ProfilesLockProfile (int? docNumber) - { - ApiResponse localVarResponse = ProfilesLockProfileWithHttpInfo(docNumber); - return localVarResponse.Data; - } - - /// - /// This call checks if a profile is lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of bool? - public ApiResponse< bool? > ProfilesLockProfileWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesLockProfile"); - - var localVarPath = "/api/Profiles/lock/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesLockProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call checks if a profile is lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of bool? - public async System.Threading.Tasks.Task ProfilesLockProfileAsync (int? docNumber) - { - ApiResponse localVarResponse = await ProfilesLockProfileAsyncWithHttpInfo(docNumber); - return localVarResponse.Data; - - } - - /// - /// This call checks if a profile is lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> ProfilesLockProfileAsyncWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesLockProfile"); - - var localVarPath = "/api/Profiles/lock/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesLockProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call checks if a profile is lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of task work - /// bool? - public bool? ProfilesLockProfile_0 (int? docNumber, int? taskId) - { - ApiResponse localVarResponse = ProfilesLockProfile_0WithHttpInfo(docNumber, taskId); - return localVarResponse.Data; - } - - /// - /// This call checks if a profile is lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of task work - /// ApiResponse of bool? - public ApiResponse< bool? > ProfilesLockProfile_0WithHttpInfo (int? docNumber, int? taskId) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesLockProfile_0"); - // verify the required parameter 'taskId' is set - if (taskId == null) - throw new ApiException(400, "Missing required parameter 'taskId' when calling ProfilesApi->ProfilesLockProfile_0"); - - var localVarPath = "/api/Profiles/lock/{docNumber}/taskid/{taskId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (taskId != null) localVarPathParams.Add("taskId", this.Configuration.ApiClient.ParameterToString(taskId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesLockProfile_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call checks if a profile is lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of task work - /// Task of bool? - public async System.Threading.Tasks.Task ProfilesLockProfile_0Async (int? docNumber, int? taskId) - { - ApiResponse localVarResponse = await ProfilesLockProfile_0AsyncWithHttpInfo(docNumber, taskId); - return localVarResponse.Data; - - } - - /// - /// This call checks if a profile is lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of task work - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> ProfilesLockProfile_0AsyncWithHttpInfo (int? docNumber, int? taskId) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesLockProfile_0"); - // verify the required parameter 'taskId' is set - if (taskId == null) - throw new ApiException(400, "Missing required parameter 'taskId' when calling ProfilesApi->ProfilesLockProfile_0"); - - var localVarPath = "/api/Profiles/lock/{docNumber}/taskid/{taskId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (taskId != null) localVarPathParams.Add("taskId", this.Configuration.ApiClient.ParameterToString(taskId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesLockProfile_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call inserts a new profile - /// - /// Thrown when fails to make API call - /// (optional) - /// ProfileResultDTO - public ProfileResultDTO ProfilesPost (ProfileDTO profile = null) - { - ApiResponse localVarResponse = ProfilesPostWithHttpInfo(profile); - return localVarResponse.Data; - } - - /// - /// This call inserts a new profile - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ProfileResultDTO - public ApiResponse< ProfileResultDTO > ProfilesPostWithHttpInfo (ProfileDTO profile = null) - { - - var localVarPath = "/api/Profiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call inserts a new profile - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ProfileResultDTO - public async System.Threading.Tasks.Task ProfilesPostAsync (ProfileDTO profile = null) - { - ApiResponse localVarResponse = await ProfilesPostAsyncWithHttpInfo(profile); - return localVarResponse.Data; - - } - - /// - /// This call inserts a new profile - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - public async System.Threading.Tasks.Task> ProfilesPostAsyncWithHttpInfo (ProfileDTO profile = null) - { - - var localVarPath = "/api/Profiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call allows the insertion of new profile for barcode purpose - /// - /// Thrown when fails to make API call - /// (optional) - /// ProfileResultDTO - public ProfileResultDTO ProfilesPostForBarcode (ProfileDTO profile = null) - { - ApiResponse localVarResponse = ProfilesPostForBarcodeWithHttpInfo(profile); - return localVarResponse.Data; - } - - /// - /// This call allows the insertion of new profile for barcode purpose - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ProfileResultDTO - public ApiResponse< ProfileResultDTO > ProfilesPostForBarcodeWithHttpInfo (ProfileDTO profile = null) - { - - var localVarPath = "/api/Profiles/forbarcode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesPostForBarcode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call allows the insertion of new profile for barcode purpose - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ProfileResultDTO - public async System.Threading.Tasks.Task ProfilesPostForBarcodeAsync (ProfileDTO profile = null) - { - ApiResponse localVarResponse = await ProfilesPostForBarcodeAsyncWithHttpInfo(profile); - return localVarResponse.Data; - - } - - /// - /// This call allows the insertion of new profile for barcode purpose - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - public async System.Threading.Tasks.Task> ProfilesPostForBarcodeAsyncWithHttpInfo (ProfileDTO profile = null) - { - - var localVarPath = "/api/Profiles/forbarcode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesPostForBarcode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call performs the insertion of new profile for mail - /// - /// Thrown when fails to make API call - /// - /// ProfileMailResponseDTO - public ProfileMailResponseDTO ProfilesPostForMail (MailDTO mail) - { - ApiResponse localVarResponse = ProfilesPostForMailWithHttpInfo(mail); - return localVarResponse.Data; - } - - /// - /// This call performs the insertion of new profile for mail - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ProfileMailResponseDTO - public ApiResponse< ProfileMailResponseDTO > ProfilesPostForMailWithHttpInfo (MailDTO mail) - { - // verify the required parameter 'mail' is set - if (mail == null) - throw new ApiException(400, "Missing required parameter 'mail' when calling ProfilesApi->ProfilesPostForMail"); - - var localVarPath = "/api/Profiles/formail"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mail != null && mail.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mail); // http body (model) parameter - } - else - { - localVarPostBody = mail; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesPostForMail", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileMailResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileMailResponseDTO))); - } - - /// - /// This call performs the insertion of new profile for mail - /// - /// Thrown when fails to make API call - /// - /// Task of ProfileMailResponseDTO - public async System.Threading.Tasks.Task ProfilesPostForMailAsync (MailDTO mail) - { - ApiResponse localVarResponse = await ProfilesPostForMailAsyncWithHttpInfo(mail); - return localVarResponse.Data; - - } - - /// - /// This call performs the insertion of new profile for mail - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ProfileMailResponseDTO) - public async System.Threading.Tasks.Task> ProfilesPostForMailAsyncWithHttpInfo (MailDTO mail) - { - // verify the required parameter 'mail' is set - if (mail == null) - throw new ApiException(400, "Missing required parameter 'mail' when calling ProfilesApi->ProfilesPostForMail"); - - var localVarPath = "/api/Profiles/formail"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mail != null && mail.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mail); // http body (model) parameter - } - else - { - localVarPostBody = mail; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesPostForMail", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileMailResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileMailResponseDTO))); - } - - /// - /// This call updates an existent profile This method is deprecated. Use /api/Profiles/{docnumber}/mask/{maskId} - /// - /// Thrown when fails to make API call - /// Document Identifier to update - /// (optional) - /// - public void ProfilesPut (int? docnumber, ProfileDTO profile = null) - { - ProfilesPutWithHttpInfo(docnumber, profile); - } - - /// - /// This call updates an existent profile This method is deprecated. Use /api/Profiles/{docnumber}/mask/{maskId} - /// - /// Thrown when fails to make API call - /// Document Identifier to update - /// (optional) - /// ApiResponse of Object(void) - public ApiResponse ProfilesPutWithHttpInfo (int? docnumber, ProfileDTO profile = null) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling ProfilesApi->ProfilesPut"); - - var localVarPath = "/api/Profiles/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesPut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates an existent profile This method is deprecated. Use /api/Profiles/{docnumber}/mask/{maskId} - /// - /// Thrown when fails to make API call - /// Document Identifier to update - /// (optional) - /// Task of void - public async System.Threading.Tasks.Task ProfilesPutAsync (int? docnumber, ProfileDTO profile = null) - { - await ProfilesPutAsyncWithHttpInfo(docnumber, profile); - - } - - /// - /// This call updates an existent profile This method is deprecated. Use /api/Profiles/{docnumber}/mask/{maskId} - /// - /// Thrown when fails to make API call - /// Document Identifier to update - /// (optional) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ProfilesPutAsyncWithHttpInfo (int? docnumber, ProfileDTO profile = null) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling ProfilesApi->ProfilesPut"); - - var localVarPath = "/api/Profiles/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesPut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call executes a profile update using a specific mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Document identifier - /// (optional) - /// ProfileResultDTO - public ProfileResultDTO ProfilesPutWithMask (string maskId, int? docnumber, ProfileDTO profile = null) - { - ApiResponse localVarResponse = ProfilesPutWithMaskWithHttpInfo(maskId, docnumber, profile); - return localVarResponse.Data; - } - - /// - /// This call executes a profile update using a specific mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Document identifier - /// (optional) - /// ApiResponse of ProfileResultDTO - public ApiResponse< ProfileResultDTO > ProfilesPutWithMaskWithHttpInfo (string maskId, int? docnumber, ProfileDTO profile = null) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling ProfilesApi->ProfilesPutWithMask"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling ProfilesApi->ProfilesPutWithMask"); - - var localVarPath = "/api/Profiles/{docnumber}/mask/{maskId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesPutWithMask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call executes a profile update using a specific mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Document identifier - /// (optional) - /// Task of ProfileResultDTO - public async System.Threading.Tasks.Task ProfilesPutWithMaskAsync (string maskId, int? docnumber, ProfileDTO profile = null) - { - ApiResponse localVarResponse = await ProfilesPutWithMaskAsyncWithHttpInfo(maskId, docnumber, profile); - return localVarResponse.Data; - - } - - /// - /// This call executes a profile update using a specific mask - /// - /// Thrown when fails to make API call - /// Identifier of the mask - /// Document identifier - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - public async System.Threading.Tasks.Task> ProfilesPutWithMaskAsyncWithHttpInfo (string maskId, int? docnumber, ProfileDTO profile = null) - { - // verify the required parameter 'maskId' is set - if (maskId == null) - throw new ApiException(400, "Missing required parameter 'maskId' when calling ProfilesApi->ProfilesPutWithMask"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling ProfilesApi->ProfilesPutWithMask"); - - var localVarPath = "/api/Profiles/{docnumber}/mask/{maskId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maskId != null) localVarPathParams.Add("maskId", this.Configuration.ApiClient.ParameterToString(maskId)); // path parameter - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesPutWithMask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call checks if a profile is not lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// bool? - public bool? ProfilesUnLockProfile (int? docNumber) - { - ApiResponse localVarResponse = ProfilesUnLockProfileWithHttpInfo(docNumber); - return localVarResponse.Data; - } - - /// - /// This call checks if a profile is not lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of bool? - public ApiResponse< bool? > ProfilesUnLockProfileWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesUnLockProfile"); - - var localVarPath = "/api/Profiles/unlock/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesUnLockProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call checks if a profile is not lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of bool? - public async System.Threading.Tasks.Task ProfilesUnLockProfileAsync (int? docNumber) - { - ApiResponse localVarResponse = await ProfilesUnLockProfileAsyncWithHttpInfo(docNumber); - return localVarResponse.Data; - - } - - /// - /// This call checks if a profile is not lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> ProfilesUnLockProfileAsyncWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesUnLockProfile"); - - var localVarPath = "/api/Profiles/unlock/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesUnLockProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call checks if a profile is not lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of the task work - /// bool? - public bool? ProfilesUnLockProfile_0 (int? docNumber, int? taskid) - { - ApiResponse localVarResponse = ProfilesUnLockProfile_0WithHttpInfo(docNumber, taskid); - return localVarResponse.Data; - } - - /// - /// This call checks if a profile is not lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of the task work - /// ApiResponse of bool? - public ApiResponse< bool? > ProfilesUnLockProfile_0WithHttpInfo (int? docNumber, int? taskid) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesUnLockProfile_0"); - // verify the required parameter 'taskid' is set - if (taskid == null) - throw new ApiException(400, "Missing required parameter 'taskid' when calling ProfilesApi->ProfilesUnLockProfile_0"); - - var localVarPath = "/api/Profiles/unlock/{docNumber}/taskid/{taskid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (taskid != null) localVarPathParams.Add("taskid", this.Configuration.ApiClient.ParameterToString(taskid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesUnLockProfile_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call checks if a profile is not lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of the task work - /// Task of bool? - public async System.Threading.Tasks.Task ProfilesUnLockProfile_0Async (int? docNumber, int? taskid) - { - ApiResponse localVarResponse = await ProfilesUnLockProfile_0AsyncWithHttpInfo(docNumber, taskid); - return localVarResponse.Data; - - } - - /// - /// This call checks if a profile is not lock - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Id of the task work - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> ProfilesUnLockProfile_0AsyncWithHttpInfo (int? docNumber, int? taskid) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling ProfilesApi->ProfilesUnLockProfile_0"); - // verify the required parameter 'taskid' is set - if (taskid == null) - throw new ApiException(400, "Missing required parameter 'taskid' when calling ProfilesApi->ProfilesUnLockProfile_0"); - - var localVarPath = "/api/Profiles/unlock/{docNumber}/taskid/{taskid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (taskid != null) localVarPathParams.Add("taskid", this.Configuration.ApiClient.ParameterToString(taskid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesUnLockProfile_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns the result of a validation given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// ValidationFieldResultDTO - public ValidationFieldResultDTO ProfilesValidateForArchive (FieldValidationCalculateArchiveCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = ProfilesValidateForArchiveWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - } - - /// - /// This call returns the result of a validation given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ValidationFieldResultDTO - public ApiResponse< ValidationFieldResultDTO > ProfilesValidateForArchiveWithHttpInfo (FieldValidationCalculateArchiveCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/Profiles/Validation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesValidateForArchive", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ValidationFieldResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ValidationFieldResultDTO))); - } - - /// - /// This call returns the result of a validation given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ValidationFieldResultDTO - public async System.Threading.Tasks.Task ProfilesValidateForArchiveAsync (FieldValidationCalculateArchiveCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = await ProfilesValidateForArchiveAsyncWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - - } - - /// - /// This call returns the result of a validation given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ValidationFieldResultDTO) - public async System.Threading.Tasks.Task> ProfilesValidateForArchiveAsyncWithHttpInfo (FieldValidationCalculateArchiveCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/Profiles/Validation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesValidateForArchive", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ValidationFieldResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ValidationFieldResultDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/PushNotificationsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/PushNotificationsApi.cs deleted file mode 100644 index 17bed71..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/PushNotificationsApi.cs +++ /dev/null @@ -1,1698 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IPushNotificationsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// Delete a user push notification device by token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// int? - int? PushNotificationsPnDeviceDelete (string token); - - /// - /// Delete a user push notification device by token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of int? - ApiResponse PushNotificationsPnDeviceDeleteWithHttpInfo (string token); - /// - /// Delete any push notification device. Admin user required - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// int? - int? PushNotificationsPnDeviceDeleteAdmin (int? id); - - /// - /// Delete any push notification device. Admin user required - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of int? - ApiResponse PushNotificationsPnDeviceDeleteAdminWithHttpInfo (int? id); - /// - /// Get a push notification device by token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// PnDeviceDTO - PnDeviceDTO PushNotificationsPnDeviceGetByToken (string token); - - /// - /// Get a push notification device by token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of PnDeviceDTO - ApiResponse PushNotificationsPnDeviceGetByTokenWithHttpInfo (string token); - /// - /// Get the user push notification device list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<PnDeviceDTO> - List PushNotificationsPnDeviceGetList (); - - /// - /// Get the user push notification device list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<PnDeviceDTO> - ApiResponse> PushNotificationsPnDeviceGetListWithHttpInfo (); - /// - /// Get the whole push notification device list. Admin user required - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<PnDeviceDTO> - List PushNotificationsPnDeviceGetListAdmin (); - - /// - /// Get the whole push notification device list. Admin user required - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<PnDeviceDTO> - ApiResponse> PushNotificationsPnDeviceGetListAdminWithHttpInfo (); - /// - /// Insert a new push notification device - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// PnDeviceDTO - PnDeviceDTO PushNotificationsPnDeviceInsert (PnDeviceDTO pnDevice); - - /// - /// Insert a new push notification device - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of PnDeviceDTO - ApiResponse PushNotificationsPnDeviceInsertWithHttpInfo (PnDeviceDTO pnDevice); - /// - /// Insert or update a push notification device - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// PnDeviceDTO - PnDeviceDTO PushNotificationsPnDeviceRegisterOrUpdate (PnDeviceDTO pnDevice); - - /// - /// Insert or update a push notification device - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of PnDeviceDTO - ApiResponse PushNotificationsPnDeviceRegisterOrUpdateWithHttpInfo (PnDeviceDTO pnDevice); - /// - /// Update an existing push notification device - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// PnDeviceDTO - PnDeviceDTO PushNotificationsPnDeviceUpdate (PnDeviceDTO pnDevice); - - /// - /// Update an existing push notification device - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of PnDeviceDTO - ApiResponse PushNotificationsPnDeviceUpdateWithHttpInfo (PnDeviceDTO pnDevice); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// Delete a user push notification device by token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of int? - System.Threading.Tasks.Task PushNotificationsPnDeviceDeleteAsync (string token); - - /// - /// Delete a user push notification device by token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (int?) - System.Threading.Tasks.Task> PushNotificationsPnDeviceDeleteAsyncWithHttpInfo (string token); - /// - /// Delete any push notification device. Admin user required - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of int? - System.Threading.Tasks.Task PushNotificationsPnDeviceDeleteAdminAsync (int? id); - - /// - /// Delete any push notification device. Admin user required - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (int?) - System.Threading.Tasks.Task> PushNotificationsPnDeviceDeleteAdminAsyncWithHttpInfo (int? id); - /// - /// Get a push notification device by token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of PnDeviceDTO - System.Threading.Tasks.Task PushNotificationsPnDeviceGetByTokenAsync (string token); - - /// - /// Get a push notification device by token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (PnDeviceDTO) - System.Threading.Tasks.Task> PushNotificationsPnDeviceGetByTokenAsyncWithHttpInfo (string token); - /// - /// Get the user push notification device list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<PnDeviceDTO> - System.Threading.Tasks.Task> PushNotificationsPnDeviceGetListAsync (); - - /// - /// Get the user push notification device list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<PnDeviceDTO>) - System.Threading.Tasks.Task>> PushNotificationsPnDeviceGetListAsyncWithHttpInfo (); - /// - /// Get the whole push notification device list. Admin user required - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<PnDeviceDTO> - System.Threading.Tasks.Task> PushNotificationsPnDeviceGetListAdminAsync (); - - /// - /// Get the whole push notification device list. Admin user required - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<PnDeviceDTO>) - System.Threading.Tasks.Task>> PushNotificationsPnDeviceGetListAdminAsyncWithHttpInfo (); - /// - /// Insert a new push notification device - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of PnDeviceDTO - System.Threading.Tasks.Task PushNotificationsPnDeviceInsertAsync (PnDeviceDTO pnDevice); - - /// - /// Insert a new push notification device - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (PnDeviceDTO) - System.Threading.Tasks.Task> PushNotificationsPnDeviceInsertAsyncWithHttpInfo (PnDeviceDTO pnDevice); - /// - /// Insert or update a push notification device - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of PnDeviceDTO - System.Threading.Tasks.Task PushNotificationsPnDeviceRegisterOrUpdateAsync (PnDeviceDTO pnDevice); - - /// - /// Insert or update a push notification device - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (PnDeviceDTO) - System.Threading.Tasks.Task> PushNotificationsPnDeviceRegisterOrUpdateAsyncWithHttpInfo (PnDeviceDTO pnDevice); - /// - /// Update an existing push notification device - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of PnDeviceDTO - System.Threading.Tasks.Task PushNotificationsPnDeviceUpdateAsync (PnDeviceDTO pnDevice); - - /// - /// Update an existing push notification device - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (PnDeviceDTO) - System.Threading.Tasks.Task> PushNotificationsPnDeviceUpdateAsyncWithHttpInfo (PnDeviceDTO pnDevice); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class PushNotificationsApi : IPushNotificationsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public PushNotificationsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public PushNotificationsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// Delete a user push notification device by token - /// - /// Thrown when fails to make API call - /// - /// int? - public int? PushNotificationsPnDeviceDelete (string token) - { - ApiResponse localVarResponse = PushNotificationsPnDeviceDeleteWithHttpInfo(token); - return localVarResponse.Data; - } - - /// - /// Delete a user push notification device by token - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of int? - public ApiResponse< int? > PushNotificationsPnDeviceDeleteWithHttpInfo (string token) - { - // verify the required parameter 'token' is set - if (token == null) - throw new ApiException(400, "Missing required parameter 'token' when calling PushNotificationsApi->PushNotificationsPnDeviceDelete"); - - var localVarPath = "/api/pushNotifications/device"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (token != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", token)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// Delete a user push notification device by token - /// - /// Thrown when fails to make API call - /// - /// Task of int? - public async System.Threading.Tasks.Task PushNotificationsPnDeviceDeleteAsync (string token) - { - ApiResponse localVarResponse = await PushNotificationsPnDeviceDeleteAsyncWithHttpInfo(token); - return localVarResponse.Data; - - } - - /// - /// Delete a user push notification device by token - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (int?) - public async System.Threading.Tasks.Task> PushNotificationsPnDeviceDeleteAsyncWithHttpInfo (string token) - { - // verify the required parameter 'token' is set - if (token == null) - throw new ApiException(400, "Missing required parameter 'token' when calling PushNotificationsApi->PushNotificationsPnDeviceDelete"); - - var localVarPath = "/api/pushNotifications/device"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (token != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", token)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// Delete any push notification device. Admin user required - /// - /// Thrown when fails to make API call - /// - /// int? - public int? PushNotificationsPnDeviceDeleteAdmin (int? id) - { - ApiResponse localVarResponse = PushNotificationsPnDeviceDeleteAdminWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Delete any push notification device. Admin user required - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of int? - public ApiResponse< int? > PushNotificationsPnDeviceDeleteAdminWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling PushNotificationsApi->PushNotificationsPnDeviceDeleteAdmin"); - - var localVarPath = "/api/pushNotifications/deviceAdmin"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceDeleteAdmin", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// Delete any push notification device. Admin user required - /// - /// Thrown when fails to make API call - /// - /// Task of int? - public async System.Threading.Tasks.Task PushNotificationsPnDeviceDeleteAdminAsync (int? id) - { - ApiResponse localVarResponse = await PushNotificationsPnDeviceDeleteAdminAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// Delete any push notification device. Admin user required - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (int?) - public async System.Threading.Tasks.Task> PushNotificationsPnDeviceDeleteAdminAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling PushNotificationsApi->PushNotificationsPnDeviceDeleteAdmin"); - - var localVarPath = "/api/pushNotifications/deviceAdmin"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceDeleteAdmin", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// Get a push notification device by token - /// - /// Thrown when fails to make API call - /// - /// PnDeviceDTO - public PnDeviceDTO PushNotificationsPnDeviceGetByToken (string token) - { - ApiResponse localVarResponse = PushNotificationsPnDeviceGetByTokenWithHttpInfo(token); - return localVarResponse.Data; - } - - /// - /// Get a push notification device by token - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of PnDeviceDTO - public ApiResponse< PnDeviceDTO > PushNotificationsPnDeviceGetByTokenWithHttpInfo (string token) - { - // verify the required parameter 'token' is set - if (token == null) - throw new ApiException(400, "Missing required parameter 'token' when calling PushNotificationsApi->PushNotificationsPnDeviceGetByToken"); - - var localVarPath = "/api/pushNotifications/device"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (token != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", token)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceGetByToken", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PnDeviceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PnDeviceDTO))); - } - - /// - /// Get a push notification device by token - /// - /// Thrown when fails to make API call - /// - /// Task of PnDeviceDTO - public async System.Threading.Tasks.Task PushNotificationsPnDeviceGetByTokenAsync (string token) - { - ApiResponse localVarResponse = await PushNotificationsPnDeviceGetByTokenAsyncWithHttpInfo(token); - return localVarResponse.Data; - - } - - /// - /// Get a push notification device by token - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (PnDeviceDTO) - public async System.Threading.Tasks.Task> PushNotificationsPnDeviceGetByTokenAsyncWithHttpInfo (string token) - { - // verify the required parameter 'token' is set - if (token == null) - throw new ApiException(400, "Missing required parameter 'token' when calling PushNotificationsApi->PushNotificationsPnDeviceGetByToken"); - - var localVarPath = "/api/pushNotifications/device"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (token != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", token)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceGetByToken", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PnDeviceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PnDeviceDTO))); - } - - /// - /// Get the user push notification device list - /// - /// Thrown when fails to make API call - /// List<PnDeviceDTO> - public List PushNotificationsPnDeviceGetList () - { - ApiResponse> localVarResponse = PushNotificationsPnDeviceGetListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Get the user push notification device list - /// - /// Thrown when fails to make API call - /// ApiResponse of List<PnDeviceDTO> - public ApiResponse< List > PushNotificationsPnDeviceGetListWithHttpInfo () - { - - var localVarPath = "/api/pushNotifications/deviceList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceGetList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Get the user push notification device list - /// - /// Thrown when fails to make API call - /// Task of List<PnDeviceDTO> - public async System.Threading.Tasks.Task> PushNotificationsPnDeviceGetListAsync () - { - ApiResponse> localVarResponse = await PushNotificationsPnDeviceGetListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// Get the user push notification device list - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<PnDeviceDTO>) - public async System.Threading.Tasks.Task>> PushNotificationsPnDeviceGetListAsyncWithHttpInfo () - { - - var localVarPath = "/api/pushNotifications/deviceList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceGetList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Get the whole push notification device list. Admin user required - /// - /// Thrown when fails to make API call - /// List<PnDeviceDTO> - public List PushNotificationsPnDeviceGetListAdmin () - { - ApiResponse> localVarResponse = PushNotificationsPnDeviceGetListAdminWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Get the whole push notification device list. Admin user required - /// - /// Thrown when fails to make API call - /// ApiResponse of List<PnDeviceDTO> - public ApiResponse< List > PushNotificationsPnDeviceGetListAdminWithHttpInfo () - { - - var localVarPath = "/api/pushNotifications/deviceListAdmin"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceGetListAdmin", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Get the whole push notification device list. Admin user required - /// - /// Thrown when fails to make API call - /// Task of List<PnDeviceDTO> - public async System.Threading.Tasks.Task> PushNotificationsPnDeviceGetListAdminAsync () - { - ApiResponse> localVarResponse = await PushNotificationsPnDeviceGetListAdminAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// Get the whole push notification device list. Admin user required - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<PnDeviceDTO>) - public async System.Threading.Tasks.Task>> PushNotificationsPnDeviceGetListAdminAsyncWithHttpInfo () - { - - var localVarPath = "/api/pushNotifications/deviceListAdmin"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceGetListAdmin", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Insert a new push notification device - /// - /// Thrown when fails to make API call - /// - /// PnDeviceDTO - public PnDeviceDTO PushNotificationsPnDeviceInsert (PnDeviceDTO pnDevice) - { - ApiResponse localVarResponse = PushNotificationsPnDeviceInsertWithHttpInfo(pnDevice); - return localVarResponse.Data; - } - - /// - /// Insert a new push notification device - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of PnDeviceDTO - public ApiResponse< PnDeviceDTO > PushNotificationsPnDeviceInsertWithHttpInfo (PnDeviceDTO pnDevice) - { - // verify the required parameter 'pnDevice' is set - if (pnDevice == null) - throw new ApiException(400, "Missing required parameter 'pnDevice' when calling PushNotificationsApi->PushNotificationsPnDeviceInsert"); - - var localVarPath = "/api/pushNotifications/device"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pnDevice != null && pnDevice.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pnDevice); // http body (model) parameter - } - else - { - localVarPostBody = pnDevice; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PnDeviceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PnDeviceDTO))); - } - - /// - /// Insert a new push notification device - /// - /// Thrown when fails to make API call - /// - /// Task of PnDeviceDTO - public async System.Threading.Tasks.Task PushNotificationsPnDeviceInsertAsync (PnDeviceDTO pnDevice) - { - ApiResponse localVarResponse = await PushNotificationsPnDeviceInsertAsyncWithHttpInfo(pnDevice); - return localVarResponse.Data; - - } - - /// - /// Insert a new push notification device - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (PnDeviceDTO) - public async System.Threading.Tasks.Task> PushNotificationsPnDeviceInsertAsyncWithHttpInfo (PnDeviceDTO pnDevice) - { - // verify the required parameter 'pnDevice' is set - if (pnDevice == null) - throw new ApiException(400, "Missing required parameter 'pnDevice' when calling PushNotificationsApi->PushNotificationsPnDeviceInsert"); - - var localVarPath = "/api/pushNotifications/device"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pnDevice != null && pnDevice.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pnDevice); // http body (model) parameter - } - else - { - localVarPostBody = pnDevice; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PnDeviceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PnDeviceDTO))); - } - - /// - /// Insert or update a push notification device - /// - /// Thrown when fails to make API call - /// - /// PnDeviceDTO - public PnDeviceDTO PushNotificationsPnDeviceRegisterOrUpdate (PnDeviceDTO pnDevice) - { - ApiResponse localVarResponse = PushNotificationsPnDeviceRegisterOrUpdateWithHttpInfo(pnDevice); - return localVarResponse.Data; - } - - /// - /// Insert or update a push notification device - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of PnDeviceDTO - public ApiResponse< PnDeviceDTO > PushNotificationsPnDeviceRegisterOrUpdateWithHttpInfo (PnDeviceDTO pnDevice) - { - // verify the required parameter 'pnDevice' is set - if (pnDevice == null) - throw new ApiException(400, "Missing required parameter 'pnDevice' when calling PushNotificationsApi->PushNotificationsPnDeviceRegisterOrUpdate"); - - var localVarPath = "/api/pushNotifications/device/registerOrUpdate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pnDevice != null && pnDevice.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pnDevice); // http body (model) parameter - } - else - { - localVarPostBody = pnDevice; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceRegisterOrUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PnDeviceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PnDeviceDTO))); - } - - /// - /// Insert or update a push notification device - /// - /// Thrown when fails to make API call - /// - /// Task of PnDeviceDTO - public async System.Threading.Tasks.Task PushNotificationsPnDeviceRegisterOrUpdateAsync (PnDeviceDTO pnDevice) - { - ApiResponse localVarResponse = await PushNotificationsPnDeviceRegisterOrUpdateAsyncWithHttpInfo(pnDevice); - return localVarResponse.Data; - - } - - /// - /// Insert or update a push notification device - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (PnDeviceDTO) - public async System.Threading.Tasks.Task> PushNotificationsPnDeviceRegisterOrUpdateAsyncWithHttpInfo (PnDeviceDTO pnDevice) - { - // verify the required parameter 'pnDevice' is set - if (pnDevice == null) - throw new ApiException(400, "Missing required parameter 'pnDevice' when calling PushNotificationsApi->PushNotificationsPnDeviceRegisterOrUpdate"); - - var localVarPath = "/api/pushNotifications/device/registerOrUpdate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pnDevice != null && pnDevice.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pnDevice); // http body (model) parameter - } - else - { - localVarPostBody = pnDevice; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceRegisterOrUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PnDeviceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PnDeviceDTO))); - } - - /// - /// Update an existing push notification device - /// - /// Thrown when fails to make API call - /// - /// PnDeviceDTO - public PnDeviceDTO PushNotificationsPnDeviceUpdate (PnDeviceDTO pnDevice) - { - ApiResponse localVarResponse = PushNotificationsPnDeviceUpdateWithHttpInfo(pnDevice); - return localVarResponse.Data; - } - - /// - /// Update an existing push notification device - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of PnDeviceDTO - public ApiResponse< PnDeviceDTO > PushNotificationsPnDeviceUpdateWithHttpInfo (PnDeviceDTO pnDevice) - { - // verify the required parameter 'pnDevice' is set - if (pnDevice == null) - throw new ApiException(400, "Missing required parameter 'pnDevice' when calling PushNotificationsApi->PushNotificationsPnDeviceUpdate"); - - var localVarPath = "/api/pushNotifications/device"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pnDevice != null && pnDevice.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pnDevice); // http body (model) parameter - } - else - { - localVarPostBody = pnDevice; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PnDeviceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PnDeviceDTO))); - } - - /// - /// Update an existing push notification device - /// - /// Thrown when fails to make API call - /// - /// Task of PnDeviceDTO - public async System.Threading.Tasks.Task PushNotificationsPnDeviceUpdateAsync (PnDeviceDTO pnDevice) - { - ApiResponse localVarResponse = await PushNotificationsPnDeviceUpdateAsyncWithHttpInfo(pnDevice); - return localVarResponse.Data; - - } - - /// - /// Update an existing push notification device - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (PnDeviceDTO) - public async System.Threading.Tasks.Task> PushNotificationsPnDeviceUpdateAsyncWithHttpInfo (PnDeviceDTO pnDevice) - { - // verify the required parameter 'pnDevice' is set - if (pnDevice == null) - throw new ApiException(400, "Missing required parameter 'pnDevice' when calling PushNotificationsApi->PushNotificationsPnDeviceUpdate"); - - var localVarPath = "/api/pushNotifications/device"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pnDevice != null && pnDevice.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pnDevice); // http body (model) parameter - } - else - { - localVarPostBody = pnDevice; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PushNotificationsPnDeviceUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PnDeviceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PnDeviceDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/QueueApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/QueueApi.cs deleted file mode 100644 index 399288a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/QueueApi.cs +++ /dev/null @@ -1,4357 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IQueueApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call checks if to delete a queue (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// bool? - bool? QueueAdminDeleteQueue (string queueId); - - /// - /// This call checks if to delete a queue (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of bool? - ApiResponse QueueAdminDeleteQueueWithHttpInfo (string queueId); - /// - /// This call returns the queue aggregated information list (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// List<QueueAggregationInfoDto> - List QueueAdminGetQueueAggregationList (GetQueueInfoDto getQueueInfo); - - /// - /// This call returns the queue aggregated information list (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// ApiResponse of List<QueueAggregationInfoDto> - ApiResponse> QueueAdminGetQueueAggregationListWithHttpInfo (GetQueueInfoDto getQueueInfo); - /// - /// This call returns the specific queue aggregated information (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// QueueAggregationInfoDto - QueueAggregationInfoDto QueueAdminGetQueueAggregationList_0 (string queueId); - - /// - /// This call returns the specific queue aggregated information (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of QueueAggregationInfoDto - ApiResponse QueueAdminGetQueueAggregationList_0WithHttpInfo (string queueId); - /// - /// This call returns the end job information (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// QueueJobInfoDto - QueueJobInfoDto QueueAdminGetQueueEndJobInfo (string queueId); - - /// - /// This call returns the end job information (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of QueueJobInfoDto - ApiResponse QueueAdminGetQueueEndJobInfoWithHttpInfo (string queueId); - /// - /// This call returns the job information list (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// List<QueueJobInfoDto> - List QueueAdminGetQueueJobInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo); - - /// - /// This call returns the job information list (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// ApiResponse of List<QueueJobInfoDto> - ApiResponse> QueueAdminGetQueueJobInfoWithHttpInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo); - /// - /// This call returns all queue (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// List<QueueJobInfoDto> - List QueueAdminGetQueueList (GetQueueInfoDto getQueueInfo); - - /// - /// This call returns all queue (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// ApiResponse of List<QueueJobInfoDto> - ApiResponse> QueueAdminGetQueueListWithHttpInfo (GetQueueInfoDto getQueueInfo); - /// - /// This call returns a work job information (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// QueueJobInfoDto - QueueJobInfoDto QueueAdminGetQueueWorkJobInfo (string queueId); - - /// - /// This call returns a work job information (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of QueueJobInfoDto - ApiResponse QueueAdminGetQueueWorkJobInfoWithHttpInfo (string queueId); - /// - /// This call checks if to delete a queue job - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Job Identifier - /// bool? - bool? QueueDeleteJob (string jobId); - - /// - /// This call checks if to delete a queue job - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Job Identifier - /// ApiResponse of bool? - ApiResponse QueueDeleteJobWithHttpInfo (string jobId); - /// - /// This call checks if to delete a queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// bool? - bool? QueueDeleteQueue (string queueId); - - /// - /// This call checks if to delete a queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of bool? - ApiResponse QueueDeleteQueueWithHttpInfo (string queueId); - /// - /// This call checks if to equeue a job is in state Scheduled or Failed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Job Identifier - /// bool? - bool? QueueEnqueuedJob (string jobId); - - /// - /// This call checks if to equeue a job is in state Scheduled or Failed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Job Identifier - /// ApiResponse of bool? - ApiResponse QueueEnqueuedJobWithHttpInfo (string jobId); - /// - /// This call returns a job info - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Job Identifier - /// QueueJobInfoDto - QueueJobInfoDto QueueGetJobInfo (string jobId); - - /// - /// This call returns a job info - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Job Identifier - /// ApiResponse of QueueJobInfoDto - ApiResponse QueueGetJobInfoWithHttpInfo (string jobId); - /// - /// This call returns the queue aggregated information list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// List<QueueAggregationInfoDto> - List QueueGetQueueAggregationList (GetQueueInfoDto getQueueInfo); - - /// - /// This call returns the queue aggregated information list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// ApiResponse of List<QueueAggregationInfoDto> - ApiResponse> QueueGetQueueAggregationListWithHttpInfo (GetQueueInfoDto getQueueInfo); - /// - /// This call returns the specific queue aggregated information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// QueueAggregationInfoDto - QueueAggregationInfoDto QueueGetQueueAggregationList_0 (string queueId); - - /// - /// This call returns the specific queue aggregated information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of QueueAggregationInfoDto - ApiResponse QueueGetQueueAggregationList_0WithHttpInfo (string queueId); - /// - /// This call returns the specific queue aggregated status - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// QueueAggregationStatusInfoDto - QueueAggregationStatusInfoDto QueueGetQueueAggregationStatusInfo (string queueId); - - /// - /// This call returns the specific queue aggregated status - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of QueueAggregationStatusInfoDto - ApiResponse QueueGetQueueAggregationStatusInfoWithHttpInfo (string queueId); - /// - /// This call returns the end job information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// QueueJobInfoDto - QueueJobInfoDto QueueGetQueueEndJobInfo (string queueId); - - /// - /// This call returns the end job information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of QueueJobInfoDto - ApiResponse QueueGetQueueEndJobInfoWithHttpInfo (string queueId); - /// - /// This call returns the job info information list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// List<QueueJobInfoDto> - List QueueGetQueueJobInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo); - - /// - /// This call returns the job info information list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// ApiResponse of List<QueueJobInfoDto> - ApiResponse> QueueGetQueueJobInfoWithHttpInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo); - /// - /// Gets the job result of specific queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// List<JobResultDto> - List QueueGetQueueJobSucceededResultList (string queueId, GetQueueJobInfoDto getQueueJobInfo); - - /// - /// Gets the job result of specific queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of List<JobResultDto> - ApiResponse> QueueGetQueueJobSucceededResultListWithHttpInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo); - /// - /// This call returns all jobs of queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// List<QueueJobInfoDto> - List QueueGetQueueList (GetQueueInfoDto getQueueInfo); - - /// - /// This call returns all jobs of queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// ApiResponse of List<QueueJobInfoDto> - ApiResponse> QueueGetQueueListWithHttpInfo (GetQueueInfoDto getQueueInfo); - /// - /// This call returns the counts of work item for a queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// int? - int? QueueGetQueueWorkItemCount (string queueId); - - /// - /// This call returns the counts of work item for a queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of int? - ApiResponse QueueGetQueueWorkItemCountWithHttpInfo (string queueId); - /// - /// This call returns the counts how many work item jobs left - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// long? - long? QueueGetQueueWorkItemLeftCount (string queueId); - - /// - /// This call returns the counts how many work item jobs left - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of long? - ApiResponse QueueGetQueueWorkItemLeftCountWithHttpInfo (string queueId); - /// - /// This call returns a work job information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// QueueJobInfoDto - QueueJobInfoDto QueueGetQueueWorkJobInfo (string queueId); - - /// - /// This call returns a work job information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of QueueJobInfoDto - ApiResponse QueueGetQueueWorkJobInfoWithHttpInfo (string queueId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call checks if to delete a queue (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of bool? - System.Threading.Tasks.Task QueueAdminDeleteQueueAsync (string queueId); - - /// - /// This call checks if to delete a queue (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> QueueAdminDeleteQueueAsyncWithHttpInfo (string queueId); - /// - /// This call returns the queue aggregated information list (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of List<QueueAggregationInfoDto> - System.Threading.Tasks.Task> QueueAdminGetQueueAggregationListAsync (GetQueueInfoDto getQueueInfo); - - /// - /// This call returns the queue aggregated information list (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of ApiResponse (List<QueueAggregationInfoDto>) - System.Threading.Tasks.Task>> QueueAdminGetQueueAggregationListAsyncWithHttpInfo (GetQueueInfoDto getQueueInfo); - /// - /// This call returns the specific queue aggregated information (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of QueueAggregationInfoDto - System.Threading.Tasks.Task QueueAdminGetQueueAggregationList_0Async (string queueId); - - /// - /// This call returns the specific queue aggregated information (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (QueueAggregationInfoDto) - System.Threading.Tasks.Task> QueueAdminGetQueueAggregationList_0AsyncWithHttpInfo (string queueId); - /// - /// This call returns the end job information (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of QueueJobInfoDto - System.Threading.Tasks.Task QueueAdminGetQueueEndJobInfoAsync (string queueId); - - /// - /// This call returns the end job information (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (QueueJobInfoDto) - System.Threading.Tasks.Task> QueueAdminGetQueueEndJobInfoAsyncWithHttpInfo (string queueId); - /// - /// This call returns the job information list (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// Task of List<QueueJobInfoDto> - System.Threading.Tasks.Task> QueueAdminGetQueueJobInfoAsync (string queueId, GetQueueJobInfoDto getQueueJobInfo); - - /// - /// This call returns the job information list (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// Task of ApiResponse (List<QueueJobInfoDto>) - System.Threading.Tasks.Task>> QueueAdminGetQueueJobInfoAsyncWithHttpInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo); - /// - /// This call returns all queue (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of List<QueueJobInfoDto> - System.Threading.Tasks.Task> QueueAdminGetQueueListAsync (GetQueueInfoDto getQueueInfo); - - /// - /// This call returns all queue (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of ApiResponse (List<QueueJobInfoDto>) - System.Threading.Tasks.Task>> QueueAdminGetQueueListAsyncWithHttpInfo (GetQueueInfoDto getQueueInfo); - /// - /// This call returns a work job information (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of QueueJobInfoDto - System.Threading.Tasks.Task QueueAdminGetQueueWorkJobInfoAsync (string queueId); - - /// - /// This call returns a work job information (administrator required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (QueueJobInfoDto) - System.Threading.Tasks.Task> QueueAdminGetQueueWorkJobInfoAsyncWithHttpInfo (string queueId); - /// - /// This call checks if to delete a queue job - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Job Identifier - /// Task of bool? - System.Threading.Tasks.Task QueueDeleteJobAsync (string jobId); - - /// - /// This call checks if to delete a queue job - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Job Identifier - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> QueueDeleteJobAsyncWithHttpInfo (string jobId); - /// - /// This call checks if to delete a queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of bool? - System.Threading.Tasks.Task QueueDeleteQueueAsync (string queueId); - - /// - /// This call checks if to delete a queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> QueueDeleteQueueAsyncWithHttpInfo (string queueId); - /// - /// This call checks if to equeue a job is in state Scheduled or Failed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Job Identifier - /// Task of bool? - System.Threading.Tasks.Task QueueEnqueuedJobAsync (string jobId); - - /// - /// This call checks if to equeue a job is in state Scheduled or Failed - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Job Identifier - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> QueueEnqueuedJobAsyncWithHttpInfo (string jobId); - /// - /// This call returns a job info - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Job Identifier - /// Task of QueueJobInfoDto - System.Threading.Tasks.Task QueueGetJobInfoAsync (string jobId); - - /// - /// This call returns a job info - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Job Identifier - /// Task of ApiResponse (QueueJobInfoDto) - System.Threading.Tasks.Task> QueueGetJobInfoAsyncWithHttpInfo (string jobId); - /// - /// This call returns the queue aggregated information list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of List<QueueAggregationInfoDto> - System.Threading.Tasks.Task> QueueGetQueueAggregationListAsync (GetQueueInfoDto getQueueInfo); - - /// - /// This call returns the queue aggregated information list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of ApiResponse (List<QueueAggregationInfoDto>) - System.Threading.Tasks.Task>> QueueGetQueueAggregationListAsyncWithHttpInfo (GetQueueInfoDto getQueueInfo); - /// - /// This call returns the specific queue aggregated information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of QueueAggregationInfoDto - System.Threading.Tasks.Task QueueGetQueueAggregationList_0Async (string queueId); - - /// - /// This call returns the specific queue aggregated information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (QueueAggregationInfoDto) - System.Threading.Tasks.Task> QueueGetQueueAggregationList_0AsyncWithHttpInfo (string queueId); - /// - /// This call returns the specific queue aggregated status - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of QueueAggregationStatusInfoDto - System.Threading.Tasks.Task QueueGetQueueAggregationStatusInfoAsync (string queueId); - - /// - /// This call returns the specific queue aggregated status - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (QueueAggregationStatusInfoDto) - System.Threading.Tasks.Task> QueueGetQueueAggregationStatusInfoAsyncWithHttpInfo (string queueId); - /// - /// This call returns the end job information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of QueueJobInfoDto - System.Threading.Tasks.Task QueueGetQueueEndJobInfoAsync (string queueId); - - /// - /// This call returns the end job information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (QueueJobInfoDto) - System.Threading.Tasks.Task> QueueGetQueueEndJobInfoAsyncWithHttpInfo (string queueId); - /// - /// This call returns the job info information list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// Task of List<QueueJobInfoDto> - System.Threading.Tasks.Task> QueueGetQueueJobInfoAsync (string queueId, GetQueueJobInfoDto getQueueJobInfo); - - /// - /// This call returns the job info information list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// Task of ApiResponse (List<QueueJobInfoDto>) - System.Threading.Tasks.Task>> QueueGetQueueJobInfoAsyncWithHttpInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo); - /// - /// Gets the job result of specific queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of List<JobResultDto> - System.Threading.Tasks.Task> QueueGetQueueJobSucceededResultListAsync (string queueId, GetQueueJobInfoDto getQueueJobInfo); - - /// - /// Gets the job result of specific queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (List<JobResultDto>) - System.Threading.Tasks.Task>> QueueGetQueueJobSucceededResultListAsyncWithHttpInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo); - /// - /// This call returns all jobs of queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of List<QueueJobInfoDto> - System.Threading.Tasks.Task> QueueGetQueueListAsync (GetQueueInfoDto getQueueInfo); - - /// - /// This call returns all jobs of queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of ApiResponse (List<QueueJobInfoDto>) - System.Threading.Tasks.Task>> QueueGetQueueListAsyncWithHttpInfo (GetQueueInfoDto getQueueInfo); - /// - /// This call returns the counts of work item for a queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of int? - System.Threading.Tasks.Task QueueGetQueueWorkItemCountAsync (string queueId); - - /// - /// This call returns the counts of work item for a queue - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (int?) - System.Threading.Tasks.Task> QueueGetQueueWorkItemCountAsyncWithHttpInfo (string queueId); - /// - /// This call returns the counts how many work item jobs left - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of long? - System.Threading.Tasks.Task QueueGetQueueWorkItemLeftCountAsync (string queueId); - - /// - /// This call returns the counts how many work item jobs left - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (long?) - System.Threading.Tasks.Task> QueueGetQueueWorkItemLeftCountAsyncWithHttpInfo (string queueId); - /// - /// This call returns a work job information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of QueueJobInfoDto - System.Threading.Tasks.Task QueueGetQueueWorkJobInfoAsync (string queueId); - - /// - /// This call returns a work job information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (QueueJobInfoDto) - System.Threading.Tasks.Task> QueueGetQueueWorkJobInfoAsyncWithHttpInfo (string queueId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class QueueApi : IQueueApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public QueueApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public QueueApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call checks if to delete a queue (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// bool? - public bool? QueueAdminDeleteQueue (string queueId) - { - ApiResponse localVarResponse = QueueAdminDeleteQueueWithHttpInfo(queueId); - return localVarResponse.Data; - } - - /// - /// This call checks if to delete a queue (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of bool? - public ApiResponse< bool? > QueueAdminDeleteQueueWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueAdminDeleteQueue"); - - var localVarPath = "/api/Queue/AdminQueue/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueAdminDeleteQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call checks if to delete a queue (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of bool? - public async System.Threading.Tasks.Task QueueAdminDeleteQueueAsync (string queueId) - { - ApiResponse localVarResponse = await QueueAdminDeleteQueueAsyncWithHttpInfo(queueId); - return localVarResponse.Data; - - } - - /// - /// This call checks if to delete a queue (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> QueueAdminDeleteQueueAsyncWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueAdminDeleteQueue"); - - var localVarPath = "/api/Queue/AdminQueue/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueAdminDeleteQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns the queue aggregated information list (administrator required) - /// - /// Thrown when fails to make API call - /// Queue information - /// List<QueueAggregationInfoDto> - public List QueueAdminGetQueueAggregationList (GetQueueInfoDto getQueueInfo) - { - ApiResponse> localVarResponse = QueueAdminGetQueueAggregationListWithHttpInfo(getQueueInfo); - return localVarResponse.Data; - } - - /// - /// This call returns the queue aggregated information list (administrator required) - /// - /// Thrown when fails to make API call - /// Queue information - /// ApiResponse of List<QueueAggregationInfoDto> - public ApiResponse< List > QueueAdminGetQueueAggregationListWithHttpInfo (GetQueueInfoDto getQueueInfo) - { - // verify the required parameter 'getQueueInfo' is set - if (getQueueInfo == null) - throw new ApiException(400, "Missing required parameter 'getQueueInfo' when calling QueueApi->QueueAdminGetQueueAggregationList"); - - var localVarPath = "/api/Queue/AdminGetQueueAggregatedList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (getQueueInfo != null && getQueueInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(getQueueInfo); // http body (model) parameter - } - else - { - localVarPostBody = getQueueInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueAdminGetQueueAggregationList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the queue aggregated information list (administrator required) - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of List<QueueAggregationInfoDto> - public async System.Threading.Tasks.Task> QueueAdminGetQueueAggregationListAsync (GetQueueInfoDto getQueueInfo) - { - ApiResponse> localVarResponse = await QueueAdminGetQueueAggregationListAsyncWithHttpInfo(getQueueInfo); - return localVarResponse.Data; - - } - - /// - /// This call returns the queue aggregated information list (administrator required) - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of ApiResponse (List<QueueAggregationInfoDto>) - public async System.Threading.Tasks.Task>> QueueAdminGetQueueAggregationListAsyncWithHttpInfo (GetQueueInfoDto getQueueInfo) - { - // verify the required parameter 'getQueueInfo' is set - if (getQueueInfo == null) - throw new ApiException(400, "Missing required parameter 'getQueueInfo' when calling QueueApi->QueueAdminGetQueueAggregationList"); - - var localVarPath = "/api/Queue/AdminGetQueueAggregatedList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (getQueueInfo != null && getQueueInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(getQueueInfo); // http body (model) parameter - } - else - { - localVarPostBody = getQueueInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueAdminGetQueueAggregationList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the specific queue aggregated information (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// QueueAggregationInfoDto - public QueueAggregationInfoDto QueueAdminGetQueueAggregationList_0 (string queueId) - { - ApiResponse localVarResponse = QueueAdminGetQueueAggregationList_0WithHttpInfo(queueId); - return localVarResponse.Data; - } - - /// - /// This call returns the specific queue aggregated information (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of QueueAggregationInfoDto - public ApiResponse< QueueAggregationInfoDto > QueueAdminGetQueueAggregationList_0WithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueAdminGetQueueAggregationList_0"); - - var localVarPath = "/api/Queue/AdminQueueAggregated/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueAdminGetQueueAggregationList_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueAggregationInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueAggregationInfoDto))); - } - - /// - /// This call returns the specific queue aggregated information (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of QueueAggregationInfoDto - public async System.Threading.Tasks.Task QueueAdminGetQueueAggregationList_0Async (string queueId) - { - ApiResponse localVarResponse = await QueueAdminGetQueueAggregationList_0AsyncWithHttpInfo(queueId); - return localVarResponse.Data; - - } - - /// - /// This call returns the specific queue aggregated information (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (QueueAggregationInfoDto) - public async System.Threading.Tasks.Task> QueueAdminGetQueueAggregationList_0AsyncWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueAdminGetQueueAggregationList_0"); - - var localVarPath = "/api/Queue/AdminQueueAggregated/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueAdminGetQueueAggregationList_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueAggregationInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueAggregationInfoDto))); - } - - /// - /// This call returns the end job information (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// QueueJobInfoDto - public QueueJobInfoDto QueueAdminGetQueueEndJobInfo (string queueId) - { - ApiResponse localVarResponse = QueueAdminGetQueueEndJobInfoWithHttpInfo(queueId); - return localVarResponse.Data; - } - - /// - /// This call returns the end job information (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of QueueJobInfoDto - public ApiResponse< QueueJobInfoDto > QueueAdminGetQueueEndJobInfoWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueAdminGetQueueEndJobInfo"); - - var localVarPath = "/api/Queue/AdminEndJobInfo/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueAdminGetQueueEndJobInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueJobInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueJobInfoDto))); - } - - /// - /// This call returns the end job information (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of QueueJobInfoDto - public async System.Threading.Tasks.Task QueueAdminGetQueueEndJobInfoAsync (string queueId) - { - ApiResponse localVarResponse = await QueueAdminGetQueueEndJobInfoAsyncWithHttpInfo(queueId); - return localVarResponse.Data; - - } - - /// - /// This call returns the end job information (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (QueueJobInfoDto) - public async System.Threading.Tasks.Task> QueueAdminGetQueueEndJobInfoAsyncWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueAdminGetQueueEndJobInfo"); - - var localVarPath = "/api/Queue/AdminEndJobInfo/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueAdminGetQueueEndJobInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueJobInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueJobInfoDto))); - } - - /// - /// This call returns the job information list (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// List<QueueJobInfoDto> - public List QueueAdminGetQueueJobInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo) - { - ApiResponse> localVarResponse = QueueAdminGetQueueJobInfoWithHttpInfo(queueId, getQueueJobInfo); - return localVarResponse.Data; - } - - /// - /// This call returns the job information list (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// ApiResponse of List<QueueJobInfoDto> - public ApiResponse< List > QueueAdminGetQueueJobInfoWithHttpInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueAdminGetQueueJobInfo"); - // verify the required parameter 'getQueueJobInfo' is set - if (getQueueJobInfo == null) - throw new ApiException(400, "Missing required parameter 'getQueueJobInfo' when calling QueueApi->QueueAdminGetQueueJobInfo"); - - var localVarPath = "/api/Queue/AdminGetQueueJobInfoList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "queueId", queueId)); // query parameter - if (getQueueJobInfo != null && getQueueJobInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(getQueueJobInfo); // http body (model) parameter - } - else - { - localVarPostBody = getQueueJobInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueAdminGetQueueJobInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the job information list (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// Task of List<QueueJobInfoDto> - public async System.Threading.Tasks.Task> QueueAdminGetQueueJobInfoAsync (string queueId, GetQueueJobInfoDto getQueueJobInfo) - { - ApiResponse> localVarResponse = await QueueAdminGetQueueJobInfoAsyncWithHttpInfo(queueId, getQueueJobInfo); - return localVarResponse.Data; - - } - - /// - /// This call returns the job information list (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// Task of ApiResponse (List<QueueJobInfoDto>) - public async System.Threading.Tasks.Task>> QueueAdminGetQueueJobInfoAsyncWithHttpInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueAdminGetQueueJobInfo"); - // verify the required parameter 'getQueueJobInfo' is set - if (getQueueJobInfo == null) - throw new ApiException(400, "Missing required parameter 'getQueueJobInfo' when calling QueueApi->QueueAdminGetQueueJobInfo"); - - var localVarPath = "/api/Queue/AdminGetQueueJobInfoList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "queueId", queueId)); // query parameter - if (getQueueJobInfo != null && getQueueJobInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(getQueueJobInfo); // http body (model) parameter - } - else - { - localVarPostBody = getQueueJobInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueAdminGetQueueJobInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all queue (administrator required) - /// - /// Thrown when fails to make API call - /// Queue information - /// List<QueueJobInfoDto> - public List QueueAdminGetQueueList (GetQueueInfoDto getQueueInfo) - { - ApiResponse> localVarResponse = QueueAdminGetQueueListWithHttpInfo(getQueueInfo); - return localVarResponse.Data; - } - - /// - /// This call returns all queue (administrator required) - /// - /// Thrown when fails to make API call - /// Queue information - /// ApiResponse of List<QueueJobInfoDto> - public ApiResponse< List > QueueAdminGetQueueListWithHttpInfo (GetQueueInfoDto getQueueInfo) - { - // verify the required parameter 'getQueueInfo' is set - if (getQueueInfo == null) - throw new ApiException(400, "Missing required parameter 'getQueueInfo' when calling QueueApi->QueueAdminGetQueueList"); - - var localVarPath = "/api/Queue/AdminGetQueueList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (getQueueInfo != null && getQueueInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(getQueueInfo); // http body (model) parameter - } - else - { - localVarPostBody = getQueueInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueAdminGetQueueList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all queue (administrator required) - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of List<QueueJobInfoDto> - public async System.Threading.Tasks.Task> QueueAdminGetQueueListAsync (GetQueueInfoDto getQueueInfo) - { - ApiResponse> localVarResponse = await QueueAdminGetQueueListAsyncWithHttpInfo(getQueueInfo); - return localVarResponse.Data; - - } - - /// - /// This call returns all queue (administrator required) - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of ApiResponse (List<QueueJobInfoDto>) - public async System.Threading.Tasks.Task>> QueueAdminGetQueueListAsyncWithHttpInfo (GetQueueInfoDto getQueueInfo) - { - // verify the required parameter 'getQueueInfo' is set - if (getQueueInfo == null) - throw new ApiException(400, "Missing required parameter 'getQueueInfo' when calling QueueApi->QueueAdminGetQueueList"); - - var localVarPath = "/api/Queue/AdminGetQueueList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (getQueueInfo != null && getQueueInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(getQueueInfo); // http body (model) parameter - } - else - { - localVarPostBody = getQueueInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueAdminGetQueueList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a work job information (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// QueueJobInfoDto - public QueueJobInfoDto QueueAdminGetQueueWorkJobInfo (string queueId) - { - ApiResponse localVarResponse = QueueAdminGetQueueWorkJobInfoWithHttpInfo(queueId); - return localVarResponse.Data; - } - - /// - /// This call returns a work job information (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of QueueJobInfoDto - public ApiResponse< QueueJobInfoDto > QueueAdminGetQueueWorkJobInfoWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueAdminGetQueueWorkJobInfo"); - - var localVarPath = "/api/Queue/AdminWorkJobInfo/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueAdminGetQueueWorkJobInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueJobInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueJobInfoDto))); - } - - /// - /// This call returns a work job information (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of QueueJobInfoDto - public async System.Threading.Tasks.Task QueueAdminGetQueueWorkJobInfoAsync (string queueId) - { - ApiResponse localVarResponse = await QueueAdminGetQueueWorkJobInfoAsyncWithHttpInfo(queueId); - return localVarResponse.Data; - - } - - /// - /// This call returns a work job information (administrator required) - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (QueueJobInfoDto) - public async System.Threading.Tasks.Task> QueueAdminGetQueueWorkJobInfoAsyncWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueAdminGetQueueWorkJobInfo"); - - var localVarPath = "/api/Queue/AdminWorkJobInfo/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueAdminGetQueueWorkJobInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueJobInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueJobInfoDto))); - } - - /// - /// This call checks if to delete a queue job - /// - /// Thrown when fails to make API call - /// Job Identifier - /// bool? - public bool? QueueDeleteJob (string jobId) - { - ApiResponse localVarResponse = QueueDeleteJobWithHttpInfo(jobId); - return localVarResponse.Data; - } - - /// - /// This call checks if to delete a queue job - /// - /// Thrown when fails to make API call - /// Job Identifier - /// ApiResponse of bool? - public ApiResponse< bool? > QueueDeleteJobWithHttpInfo (string jobId) - { - // verify the required parameter 'jobId' is set - if (jobId == null) - throw new ApiException(400, "Missing required parameter 'jobId' when calling QueueApi->QueueDeleteJob"); - - var localVarPath = "/api/Queue/Job/{jobId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (jobId != null) localVarPathParams.Add("jobId", this.Configuration.ApiClient.ParameterToString(jobId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueDeleteJob", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call checks if to delete a queue job - /// - /// Thrown when fails to make API call - /// Job Identifier - /// Task of bool? - public async System.Threading.Tasks.Task QueueDeleteJobAsync (string jobId) - { - ApiResponse localVarResponse = await QueueDeleteJobAsyncWithHttpInfo(jobId); - return localVarResponse.Data; - - } - - /// - /// This call checks if to delete a queue job - /// - /// Thrown when fails to make API call - /// Job Identifier - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> QueueDeleteJobAsyncWithHttpInfo (string jobId) - { - // verify the required parameter 'jobId' is set - if (jobId == null) - throw new ApiException(400, "Missing required parameter 'jobId' when calling QueueApi->QueueDeleteJob"); - - var localVarPath = "/api/Queue/Job/{jobId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (jobId != null) localVarPathParams.Add("jobId", this.Configuration.ApiClient.ParameterToString(jobId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueDeleteJob", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call checks if to delete a queue - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// bool? - public bool? QueueDeleteQueue (string queueId) - { - ApiResponse localVarResponse = QueueDeleteQueueWithHttpInfo(queueId); - return localVarResponse.Data; - } - - /// - /// This call checks if to delete a queue - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of bool? - public ApiResponse< bool? > QueueDeleteQueueWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueDeleteQueue"); - - var localVarPath = "/api/Queue/Queue/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueDeleteQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call checks if to delete a queue - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of bool? - public async System.Threading.Tasks.Task QueueDeleteQueueAsync (string queueId) - { - ApiResponse localVarResponse = await QueueDeleteQueueAsyncWithHttpInfo(queueId); - return localVarResponse.Data; - - } - - /// - /// This call checks if to delete a queue - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> QueueDeleteQueueAsyncWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueDeleteQueue"); - - var localVarPath = "/api/Queue/Queue/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueDeleteQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call checks if to equeue a job is in state Scheduled or Failed - /// - /// Thrown when fails to make API call - /// Job Identifier - /// bool? - public bool? QueueEnqueuedJob (string jobId) - { - ApiResponse localVarResponse = QueueEnqueuedJobWithHttpInfo(jobId); - return localVarResponse.Data; - } - - /// - /// This call checks if to equeue a job is in state Scheduled or Failed - /// - /// Thrown when fails to make API call - /// Job Identifier - /// ApiResponse of bool? - public ApiResponse< bool? > QueueEnqueuedJobWithHttpInfo (string jobId) - { - // verify the required parameter 'jobId' is set - if (jobId == null) - throw new ApiException(400, "Missing required parameter 'jobId' when calling QueueApi->QueueEnqueuedJob"); - - var localVarPath = "/api/Queue/Enqueue/{jobId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (jobId != null) localVarPathParams.Add("jobId", this.Configuration.ApiClient.ParameterToString(jobId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueEnqueuedJob", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call checks if to equeue a job is in state Scheduled or Failed - /// - /// Thrown when fails to make API call - /// Job Identifier - /// Task of bool? - public async System.Threading.Tasks.Task QueueEnqueuedJobAsync (string jobId) - { - ApiResponse localVarResponse = await QueueEnqueuedJobAsyncWithHttpInfo(jobId); - return localVarResponse.Data; - - } - - /// - /// This call checks if to equeue a job is in state Scheduled or Failed - /// - /// Thrown when fails to make API call - /// Job Identifier - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> QueueEnqueuedJobAsyncWithHttpInfo (string jobId) - { - // verify the required parameter 'jobId' is set - if (jobId == null) - throw new ApiException(400, "Missing required parameter 'jobId' when calling QueueApi->QueueEnqueuedJob"); - - var localVarPath = "/api/Queue/Enqueue/{jobId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (jobId != null) localVarPathParams.Add("jobId", this.Configuration.ApiClient.ParameterToString(jobId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueEnqueuedJob", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns a job info - /// - /// Thrown when fails to make API call - /// Job Identifier - /// QueueJobInfoDto - public QueueJobInfoDto QueueGetJobInfo (string jobId) - { - ApiResponse localVarResponse = QueueGetJobInfoWithHttpInfo(jobId); - return localVarResponse.Data; - } - - /// - /// This call returns a job info - /// - /// Thrown when fails to make API call - /// Job Identifier - /// ApiResponse of QueueJobInfoDto - public ApiResponse< QueueJobInfoDto > QueueGetJobInfoWithHttpInfo (string jobId) - { - // verify the required parameter 'jobId' is set - if (jobId == null) - throw new ApiException(400, "Missing required parameter 'jobId' when calling QueueApi->QueueGetJobInfo"); - - var localVarPath = "/api/Queue/JobInfo/{jobId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (jobId != null) localVarPathParams.Add("jobId", this.Configuration.ApiClient.ParameterToString(jobId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetJobInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueJobInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueJobInfoDto))); - } - - /// - /// This call returns a job info - /// - /// Thrown when fails to make API call - /// Job Identifier - /// Task of QueueJobInfoDto - public async System.Threading.Tasks.Task QueueGetJobInfoAsync (string jobId) - { - ApiResponse localVarResponse = await QueueGetJobInfoAsyncWithHttpInfo(jobId); - return localVarResponse.Data; - - } - - /// - /// This call returns a job info - /// - /// Thrown when fails to make API call - /// Job Identifier - /// Task of ApiResponse (QueueJobInfoDto) - public async System.Threading.Tasks.Task> QueueGetJobInfoAsyncWithHttpInfo (string jobId) - { - // verify the required parameter 'jobId' is set - if (jobId == null) - throw new ApiException(400, "Missing required parameter 'jobId' when calling QueueApi->QueueGetJobInfo"); - - var localVarPath = "/api/Queue/JobInfo/{jobId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (jobId != null) localVarPathParams.Add("jobId", this.Configuration.ApiClient.ParameterToString(jobId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetJobInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueJobInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueJobInfoDto))); - } - - /// - /// This call returns the queue aggregated information list - /// - /// Thrown when fails to make API call - /// Queue information - /// List<QueueAggregationInfoDto> - public List QueueGetQueueAggregationList (GetQueueInfoDto getQueueInfo) - { - ApiResponse> localVarResponse = QueueGetQueueAggregationListWithHttpInfo(getQueueInfo); - return localVarResponse.Data; - } - - /// - /// This call returns the queue aggregated information list - /// - /// Thrown when fails to make API call - /// Queue information - /// ApiResponse of List<QueueAggregationInfoDto> - public ApiResponse< List > QueueGetQueueAggregationListWithHttpInfo (GetQueueInfoDto getQueueInfo) - { - // verify the required parameter 'getQueueInfo' is set - if (getQueueInfo == null) - throw new ApiException(400, "Missing required parameter 'getQueueInfo' when calling QueueApi->QueueGetQueueAggregationList"); - - var localVarPath = "/api/Queue/GetQueueAggregatedList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (getQueueInfo != null && getQueueInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(getQueueInfo); // http body (model) parameter - } - else - { - localVarPostBody = getQueueInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueAggregationList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the queue aggregated information list - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of List<QueueAggregationInfoDto> - public async System.Threading.Tasks.Task> QueueGetQueueAggregationListAsync (GetQueueInfoDto getQueueInfo) - { - ApiResponse> localVarResponse = await QueueGetQueueAggregationListAsyncWithHttpInfo(getQueueInfo); - return localVarResponse.Data; - - } - - /// - /// This call returns the queue aggregated information list - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of ApiResponse (List<QueueAggregationInfoDto>) - public async System.Threading.Tasks.Task>> QueueGetQueueAggregationListAsyncWithHttpInfo (GetQueueInfoDto getQueueInfo) - { - // verify the required parameter 'getQueueInfo' is set - if (getQueueInfo == null) - throw new ApiException(400, "Missing required parameter 'getQueueInfo' when calling QueueApi->QueueGetQueueAggregationList"); - - var localVarPath = "/api/Queue/GetQueueAggregatedList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (getQueueInfo != null && getQueueInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(getQueueInfo); // http body (model) parameter - } - else - { - localVarPostBody = getQueueInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueAggregationList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the specific queue aggregated information - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// QueueAggregationInfoDto - public QueueAggregationInfoDto QueueGetQueueAggregationList_0 (string queueId) - { - ApiResponse localVarResponse = QueueGetQueueAggregationList_0WithHttpInfo(queueId); - return localVarResponse.Data; - } - - /// - /// This call returns the specific queue aggregated information - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of QueueAggregationInfoDto - public ApiResponse< QueueAggregationInfoDto > QueueGetQueueAggregationList_0WithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueAggregationList_0"); - - var localVarPath = "/api/Queue/QueueAggregated/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueAggregationList_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueAggregationInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueAggregationInfoDto))); - } - - /// - /// This call returns the specific queue aggregated information - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of QueueAggregationInfoDto - public async System.Threading.Tasks.Task QueueGetQueueAggregationList_0Async (string queueId) - { - ApiResponse localVarResponse = await QueueGetQueueAggregationList_0AsyncWithHttpInfo(queueId); - return localVarResponse.Data; - - } - - /// - /// This call returns the specific queue aggregated information - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (QueueAggregationInfoDto) - public async System.Threading.Tasks.Task> QueueGetQueueAggregationList_0AsyncWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueAggregationList_0"); - - var localVarPath = "/api/Queue/QueueAggregated/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueAggregationList_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueAggregationInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueAggregationInfoDto))); - } - - /// - /// This call returns the specific queue aggregated status - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// QueueAggregationStatusInfoDto - public QueueAggregationStatusInfoDto QueueGetQueueAggregationStatusInfo (string queueId) - { - ApiResponse localVarResponse = QueueGetQueueAggregationStatusInfoWithHttpInfo(queueId); - return localVarResponse.Data; - } - - /// - /// This call returns the specific queue aggregated status - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of QueueAggregationStatusInfoDto - public ApiResponse< QueueAggregationStatusInfoDto > QueueGetQueueAggregationStatusInfoWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueAggregationStatusInfo"); - - var localVarPath = "/api/Queue/QueueAggregationStatusInfo/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueAggregationStatusInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueAggregationStatusInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueAggregationStatusInfoDto))); - } - - /// - /// This call returns the specific queue aggregated status - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of QueueAggregationStatusInfoDto - public async System.Threading.Tasks.Task QueueGetQueueAggregationStatusInfoAsync (string queueId) - { - ApiResponse localVarResponse = await QueueGetQueueAggregationStatusInfoAsyncWithHttpInfo(queueId); - return localVarResponse.Data; - - } - - /// - /// This call returns the specific queue aggregated status - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (QueueAggregationStatusInfoDto) - public async System.Threading.Tasks.Task> QueueGetQueueAggregationStatusInfoAsyncWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueAggregationStatusInfo"); - - var localVarPath = "/api/Queue/QueueAggregationStatusInfo/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueAggregationStatusInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueAggregationStatusInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueAggregationStatusInfoDto))); - } - - /// - /// This call returns the end job information - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// QueueJobInfoDto - public QueueJobInfoDto QueueGetQueueEndJobInfo (string queueId) - { - ApiResponse localVarResponse = QueueGetQueueEndJobInfoWithHttpInfo(queueId); - return localVarResponse.Data; - } - - /// - /// This call returns the end job information - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of QueueJobInfoDto - public ApiResponse< QueueJobInfoDto > QueueGetQueueEndJobInfoWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueEndJobInfo"); - - var localVarPath = "/api/Queue/EndJobInfo/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueEndJobInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueJobInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueJobInfoDto))); - } - - /// - /// This call returns the end job information - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of QueueJobInfoDto - public async System.Threading.Tasks.Task QueueGetQueueEndJobInfoAsync (string queueId) - { - ApiResponse localVarResponse = await QueueGetQueueEndJobInfoAsyncWithHttpInfo(queueId); - return localVarResponse.Data; - - } - - /// - /// This call returns the end job information - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (QueueJobInfoDto) - public async System.Threading.Tasks.Task> QueueGetQueueEndJobInfoAsyncWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueEndJobInfo"); - - var localVarPath = "/api/Queue/EndJobInfo/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueEndJobInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueJobInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueJobInfoDto))); - } - - /// - /// This call returns the job info information list - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// List<QueueJobInfoDto> - public List QueueGetQueueJobInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo) - { - ApiResponse> localVarResponse = QueueGetQueueJobInfoWithHttpInfo(queueId, getQueueJobInfo); - return localVarResponse.Data; - } - - /// - /// This call returns the job info information list - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// ApiResponse of List<QueueJobInfoDto> - public ApiResponse< List > QueueGetQueueJobInfoWithHttpInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueJobInfo"); - // verify the required parameter 'getQueueJobInfo' is set - if (getQueueJobInfo == null) - throw new ApiException(400, "Missing required parameter 'getQueueJobInfo' when calling QueueApi->QueueGetQueueJobInfo"); - - var localVarPath = "/api/Queue/GetQueueJobInfoList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "queueId", queueId)); // query parameter - if (getQueueJobInfo != null && getQueueJobInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(getQueueJobInfo); // http body (model) parameter - } - else - { - localVarPostBody = getQueueJobInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueJobInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the job info information list - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// Task of List<QueueJobInfoDto> - public async System.Threading.Tasks.Task> QueueGetQueueJobInfoAsync (string queueId, GetQueueJobInfoDto getQueueJobInfo) - { - ApiResponse> localVarResponse = await QueueGetQueueJobInfoAsyncWithHttpInfo(queueId, getQueueJobInfo); - return localVarResponse.Data; - - } - - /// - /// This call returns the job info information list - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Job Information - /// Task of ApiResponse (List<QueueJobInfoDto>) - public async System.Threading.Tasks.Task>> QueueGetQueueJobInfoAsyncWithHttpInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueJobInfo"); - // verify the required parameter 'getQueueJobInfo' is set - if (getQueueJobInfo == null) - throw new ApiException(400, "Missing required parameter 'getQueueJobInfo' when calling QueueApi->QueueGetQueueJobInfo"); - - var localVarPath = "/api/Queue/GetQueueJobInfoList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "queueId", queueId)); // query parameter - if (getQueueJobInfo != null && getQueueJobInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(getQueueJobInfo); // http body (model) parameter - } - else - { - localVarPostBody = getQueueJobInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueJobInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Gets the job result of specific queue - /// - /// Thrown when fails to make API call - /// - /// - /// List<JobResultDto> - public List QueueGetQueueJobSucceededResultList (string queueId, GetQueueJobInfoDto getQueueJobInfo) - { - ApiResponse> localVarResponse = QueueGetQueueJobSucceededResultListWithHttpInfo(queueId, getQueueJobInfo); - return localVarResponse.Data; - } - - /// - /// Gets the job result of specific queue - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of List<JobResultDto> - public ApiResponse< List > QueueGetQueueJobSucceededResultListWithHttpInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueJobSucceededResultList"); - // verify the required parameter 'getQueueJobInfo' is set - if (getQueueJobInfo == null) - throw new ApiException(400, "Missing required parameter 'getQueueJobInfo' when calling QueueApi->QueueGetQueueJobSucceededResultList"); - - var localVarPath = "/api/Queue/GetQueueJobSucceededResultList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "queueId", queueId)); // query parameter - if (getQueueJobInfo != null && getQueueJobInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(getQueueJobInfo); // http body (model) parameter - } - else - { - localVarPostBody = getQueueJobInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueJobSucceededResultList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Gets the job result of specific queue - /// - /// Thrown when fails to make API call - /// - /// - /// Task of List<JobResultDto> - public async System.Threading.Tasks.Task> QueueGetQueueJobSucceededResultListAsync (string queueId, GetQueueJobInfoDto getQueueJobInfo) - { - ApiResponse> localVarResponse = await QueueGetQueueJobSucceededResultListAsyncWithHttpInfo(queueId, getQueueJobInfo); - return localVarResponse.Data; - - } - - /// - /// Gets the job result of specific queue - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (List<JobResultDto>) - public async System.Threading.Tasks.Task>> QueueGetQueueJobSucceededResultListAsyncWithHttpInfo (string queueId, GetQueueJobInfoDto getQueueJobInfo) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueJobSucceededResultList"); - // verify the required parameter 'getQueueJobInfo' is set - if (getQueueJobInfo == null) - throw new ApiException(400, "Missing required parameter 'getQueueJobInfo' when calling QueueApi->QueueGetQueueJobSucceededResultList"); - - var localVarPath = "/api/Queue/GetQueueJobSucceededResultList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "queueId", queueId)); // query parameter - if (getQueueJobInfo != null && getQueueJobInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(getQueueJobInfo); // http body (model) parameter - } - else - { - localVarPostBody = getQueueJobInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueJobSucceededResultList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all jobs of queue - /// - /// Thrown when fails to make API call - /// Queue information - /// List<QueueJobInfoDto> - public List QueueGetQueueList (GetQueueInfoDto getQueueInfo) - { - ApiResponse> localVarResponse = QueueGetQueueListWithHttpInfo(getQueueInfo); - return localVarResponse.Data; - } - - /// - /// This call returns all jobs of queue - /// - /// Thrown when fails to make API call - /// Queue information - /// ApiResponse of List<QueueJobInfoDto> - public ApiResponse< List > QueueGetQueueListWithHttpInfo (GetQueueInfoDto getQueueInfo) - { - // verify the required parameter 'getQueueInfo' is set - if (getQueueInfo == null) - throw new ApiException(400, "Missing required parameter 'getQueueInfo' when calling QueueApi->QueueGetQueueList"); - - var localVarPath = "/api/Queue/GetQueueList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (getQueueInfo != null && getQueueInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(getQueueInfo); // http body (model) parameter - } - else - { - localVarPostBody = getQueueInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all jobs of queue - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of List<QueueJobInfoDto> - public async System.Threading.Tasks.Task> QueueGetQueueListAsync (GetQueueInfoDto getQueueInfo) - { - ApiResponse> localVarResponse = await QueueGetQueueListAsyncWithHttpInfo(getQueueInfo); - return localVarResponse.Data; - - } - - /// - /// This call returns all jobs of queue - /// - /// Thrown when fails to make API call - /// Queue information - /// Task of ApiResponse (List<QueueJobInfoDto>) - public async System.Threading.Tasks.Task>> QueueGetQueueListAsyncWithHttpInfo (GetQueueInfoDto getQueueInfo) - { - // verify the required parameter 'getQueueInfo' is set - if (getQueueInfo == null) - throw new ApiException(400, "Missing required parameter 'getQueueInfo' when calling QueueApi->QueueGetQueueList"); - - var localVarPath = "/api/Queue/GetQueueList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (getQueueInfo != null && getQueueInfo.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(getQueueInfo); // http body (model) parameter - } - else - { - localVarPostBody = getQueueInfo; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the counts of work item for a queue - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// int? - public int? QueueGetQueueWorkItemCount (string queueId) - { - ApiResponse localVarResponse = QueueGetQueueWorkItemCountWithHttpInfo(queueId); - return localVarResponse.Data; - } - - /// - /// This call returns the counts of work item for a queue - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of int? - public ApiResponse< int? > QueueGetQueueWorkItemCountWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueWorkItemCount"); - - var localVarPath = "/api/Queue/WorkItemCount/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueWorkItemCount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call returns the counts of work item for a queue - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of int? - public async System.Threading.Tasks.Task QueueGetQueueWorkItemCountAsync (string queueId) - { - ApiResponse localVarResponse = await QueueGetQueueWorkItemCountAsyncWithHttpInfo(queueId); - return localVarResponse.Data; - - } - - /// - /// This call returns the counts of work item for a queue - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (int?) - public async System.Threading.Tasks.Task> QueueGetQueueWorkItemCountAsyncWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueWorkItemCount"); - - var localVarPath = "/api/Queue/WorkItemCount/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueWorkItemCount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call returns the counts how many work item jobs left - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// long? - public long? QueueGetQueueWorkItemLeftCount (string queueId) - { - ApiResponse localVarResponse = QueueGetQueueWorkItemLeftCountWithHttpInfo(queueId); - return localVarResponse.Data; - } - - /// - /// This call returns the counts how many work item jobs left - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of long? - public ApiResponse< long? > QueueGetQueueWorkItemLeftCountWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueWorkItemLeftCount"); - - var localVarPath = "/api/Queue/WorkItemLeftCount/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueWorkItemLeftCount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); - } - - /// - /// This call returns the counts how many work item jobs left - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of long? - public async System.Threading.Tasks.Task QueueGetQueueWorkItemLeftCountAsync (string queueId) - { - ApiResponse localVarResponse = await QueueGetQueueWorkItemLeftCountAsyncWithHttpInfo(queueId); - return localVarResponse.Data; - - } - - /// - /// This call returns the counts how many work item jobs left - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (long?) - public async System.Threading.Tasks.Task> QueueGetQueueWorkItemLeftCountAsyncWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueWorkItemLeftCount"); - - var localVarPath = "/api/Queue/WorkItemLeftCount/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueWorkItemLeftCount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); - } - - /// - /// This call returns a work job information - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// QueueJobInfoDto - public QueueJobInfoDto QueueGetQueueWorkJobInfo (string queueId) - { - ApiResponse localVarResponse = QueueGetQueueWorkJobInfoWithHttpInfo(queueId); - return localVarResponse.Data; - } - - /// - /// This call returns a work job information - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// ApiResponse of QueueJobInfoDto - public ApiResponse< QueueJobInfoDto > QueueGetQueueWorkJobInfoWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueWorkJobInfo"); - - var localVarPath = "/api/Queue/WorkJobInfo/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueWorkJobInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueJobInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueJobInfoDto))); - } - - /// - /// This call returns a work job information - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of QueueJobInfoDto - public async System.Threading.Tasks.Task QueueGetQueueWorkJobInfoAsync (string queueId) - { - ApiResponse localVarResponse = await QueueGetQueueWorkJobInfoAsyncWithHttpInfo(queueId); - return localVarResponse.Data; - - } - - /// - /// This call returns a work job information - /// - /// Thrown when fails to make API call - /// Queue Identifier - /// Task of ApiResponse (QueueJobInfoDto) - public async System.Threading.Tasks.Task> QueueGetQueueWorkJobInfoAsyncWithHttpInfo (string queueId) - { - // verify the required parameter 'queueId' is set - if (queueId == null) - throw new ApiException(400, "Missing required parameter 'queueId' when calling QueueApi->QueueGetQueueWorkJobInfo"); - - var localVarPath = "/api/Queue/WorkJobInfo/{queueId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queueId != null) localVarPathParams.Add("queueId", this.Configuration.ApiClient.ParameterToString(queueId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QueueGetQueueWorkJobInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QueueJobInfoDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QueueJobInfoDto))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/QuickSearchesApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/QuickSearchesApi.cs deleted file mode 100644 index d4d62ff..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/QuickSearchesApi.cs +++ /dev/null @@ -1,1493 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IQuickSearchesApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call changes the flag that enable show of the search fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// - void QuickSearchesChangeShowFields (string quickSearchId, bool? showFields); - - /// - /// This call changes the flag that enable show of the search fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// ApiResponse of Object(void) - ApiResponse QuickSearchesChangeShowFieldsWithHttpInfo (string quickSearchId, bool? showFields); - /// - /// This call deletes a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// - void QuickSearchesDeleteQuickSearchById (string quickSearchId); - - /// - /// This call deletes a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// ApiResponse of Object(void) - ApiResponse QuickSearchesDeleteQuickSearchByIdWithHttpInfo (string quickSearchId); - /// - /// This call returns all quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<FindDTO> - List QuickSearchesGetQuickSearch (); - - /// - /// This call returns all quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<FindDTO> - ApiResponse> QuickSearchesGetQuickSearchWithHttpInfo (); - /// - /// Thi call returns a quick search by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// SimpleQuickSearchDto - SimpleQuickSearchDto QuickSearchesGetQuickSearchById (string quickSearchId); - - /// - /// Thi call returns a quick search by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// ApiResponse of SimpleQuickSearchDto - ApiResponse QuickSearchesGetQuickSearchByIdWithHttpInfo (string quickSearchId); - /// - /// This call adds a new quinck search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// string - string QuickSearchesPost (SimpleQuickSearchDto criteria = null); - - /// - /// This call adds a new quinck search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of string - ApiResponse QuickSearchesPostWithHttpInfo (SimpleQuickSearchDto criteria = null); - /// - /// This call updates a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// string - string QuickSearchesPut (string quickSearchId, SimpleQuickSearchDto criteria = null); - - /// - /// This call updates a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// ApiResponse of string - ApiResponse QuickSearchesPutWithHttpInfo (string quickSearchId, SimpleQuickSearchDto criteria = null); - /// - /// This call renames a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Information to update - /// - void QuickSearchesRename (RenamedQuickSearchDto quickSearchRenamed); - - /// - /// This call renames a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Information to update - /// ApiResponse of Object(void) - ApiResponse QuickSearchesRenameWithHttpInfo (RenamedQuickSearchDto quickSearchRenamed); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call changes the flag that enable show of the search fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// Task of void - System.Threading.Tasks.Task QuickSearchesChangeShowFieldsAsync (string quickSearchId, bool? showFields); - - /// - /// This call changes the flag that enable show of the search fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// Task of ApiResponse - System.Threading.Tasks.Task> QuickSearchesChangeShowFieldsAsyncWithHttpInfo (string quickSearchId, bool? showFields); - /// - /// This call deletes a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of void - System.Threading.Tasks.Task QuickSearchesDeleteQuickSearchByIdAsync (string quickSearchId); - - /// - /// This call deletes a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> QuickSearchesDeleteQuickSearchByIdAsyncWithHttpInfo (string quickSearchId); - /// - /// This call returns all quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<FindDTO> - System.Threading.Tasks.Task> QuickSearchesGetQuickSearchAsync (); - - /// - /// This call returns all quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<FindDTO>) - System.Threading.Tasks.Task>> QuickSearchesGetQuickSearchAsyncWithHttpInfo (); - /// - /// Thi call returns a quick search by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of SimpleQuickSearchDto - System.Threading.Tasks.Task QuickSearchesGetQuickSearchByIdAsync (string quickSearchId); - - /// - /// Thi call returns a quick search by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of ApiResponse (SimpleQuickSearchDto) - System.Threading.Tasks.Task> QuickSearchesGetQuickSearchByIdAsyncWithHttpInfo (string quickSearchId); - /// - /// This call adds a new quinck search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of string - System.Threading.Tasks.Task QuickSearchesPostAsync (SimpleQuickSearchDto criteria = null); - - /// - /// This call adds a new quinck search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> QuickSearchesPostAsyncWithHttpInfo (SimpleQuickSearchDto criteria = null); - /// - /// This call updates a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// Task of string - System.Threading.Tasks.Task QuickSearchesPutAsync (string quickSearchId, SimpleQuickSearchDto criteria = null); - - /// - /// This call updates a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> QuickSearchesPutAsyncWithHttpInfo (string quickSearchId, SimpleQuickSearchDto criteria = null); - /// - /// This call renames a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Information to update - /// Task of void - System.Threading.Tasks.Task QuickSearchesRenameAsync (RenamedQuickSearchDto quickSearchRenamed); - - /// - /// This call renames a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Information to update - /// Task of ApiResponse - System.Threading.Tasks.Task> QuickSearchesRenameAsyncWithHttpInfo (RenamedQuickSearchDto quickSearchRenamed); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class QuickSearchesApi : IQuickSearchesApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public QuickSearchesApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public QuickSearchesApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call changes the flag that enable show of the search fields - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// - public void QuickSearchesChangeShowFields (string quickSearchId, bool? showFields) - { - QuickSearchesChangeShowFieldsWithHttpInfo(quickSearchId, showFields); - } - - /// - /// This call changes the flag that enable show of the search fields - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// ApiResponse of Object(void) - public ApiResponse QuickSearchesChangeShowFieldsWithHttpInfo (string quickSearchId, bool? showFields) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesApi->QuickSearchesChangeShowFields"); - // verify the required parameter 'showFields' is set - if (showFields == null) - throw new ApiException(400, "Missing required parameter 'showFields' when calling QuickSearchesApi->QuickSearchesChangeShowFields"); - - var localVarPath = "/api/QuickSearches/showFields/{quickSearchId}/{showFields}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - if (showFields != null) localVarPathParams.Add("showFields", this.Configuration.ApiClient.ParameterToString(showFields)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesChangeShowFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call changes the flag that enable show of the search fields - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// Task of void - public async System.Threading.Tasks.Task QuickSearchesChangeShowFieldsAsync (string quickSearchId, bool? showFields) - { - await QuickSearchesChangeShowFieldsAsyncWithHttpInfo(quickSearchId, showFields); - - } - - /// - /// This call changes the flag that enable show of the search fields - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// Task of ApiResponse - public async System.Threading.Tasks.Task> QuickSearchesChangeShowFieldsAsyncWithHttpInfo (string quickSearchId, bool? showFields) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesApi->QuickSearchesChangeShowFields"); - // verify the required parameter 'showFields' is set - if (showFields == null) - throw new ApiException(400, "Missing required parameter 'showFields' when calling QuickSearchesApi->QuickSearchesChangeShowFields"); - - var localVarPath = "/api/QuickSearches/showFields/{quickSearchId}/{showFields}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - if (showFields != null) localVarPathParams.Add("showFields", this.Configuration.ApiClient.ParameterToString(showFields)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesChangeShowFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// - public void QuickSearchesDeleteQuickSearchById (string quickSearchId) - { - QuickSearchesDeleteQuickSearchByIdWithHttpInfo(quickSearchId); - } - - /// - /// This call deletes a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// ApiResponse of Object(void) - public ApiResponse QuickSearchesDeleteQuickSearchByIdWithHttpInfo (string quickSearchId) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesApi->QuickSearchesDeleteQuickSearchById"); - - var localVarPath = "/api/QuickSearches/{quickSearchId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesDeleteQuickSearchById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of void - public async System.Threading.Tasks.Task QuickSearchesDeleteQuickSearchByIdAsync (string quickSearchId) - { - await QuickSearchesDeleteQuickSearchByIdAsyncWithHttpInfo(quickSearchId); - - } - - /// - /// This call deletes a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> QuickSearchesDeleteQuickSearchByIdAsyncWithHttpInfo (string quickSearchId) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesApi->QuickSearchesDeleteQuickSearchById"); - - var localVarPath = "/api/QuickSearches/{quickSearchId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesDeleteQuickSearchById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all quick search - /// - /// Thrown when fails to make API call - /// List<FindDTO> - public List QuickSearchesGetQuickSearch () - { - ApiResponse> localVarResponse = QuickSearchesGetQuickSearchWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all quick search - /// - /// Thrown when fails to make API call - /// ApiResponse of List<FindDTO> - public ApiResponse< List > QuickSearchesGetQuickSearchWithHttpInfo () - { - - var localVarPath = "/api/QuickSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesGetQuickSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all quick search - /// - /// Thrown when fails to make API call - /// Task of List<FindDTO> - public async System.Threading.Tasks.Task> QuickSearchesGetQuickSearchAsync () - { - ApiResponse> localVarResponse = await QuickSearchesGetQuickSearchAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all quick search - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<FindDTO>) - public async System.Threading.Tasks.Task>> QuickSearchesGetQuickSearchAsyncWithHttpInfo () - { - - var localVarPath = "/api/QuickSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesGetQuickSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Thi call returns a quick search by its id - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// SimpleQuickSearchDto - public SimpleQuickSearchDto QuickSearchesGetQuickSearchById (string quickSearchId) - { - ApiResponse localVarResponse = QuickSearchesGetQuickSearchByIdWithHttpInfo(quickSearchId); - return localVarResponse.Data; - } - - /// - /// Thi call returns a quick search by its id - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// ApiResponse of SimpleQuickSearchDto - public ApiResponse< SimpleQuickSearchDto > QuickSearchesGetQuickSearchByIdWithHttpInfo (string quickSearchId) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesApi->QuickSearchesGetQuickSearchById"); - - var localVarPath = "/api/QuickSearches/{quickSearchId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesGetQuickSearchById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SimpleQuickSearchDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SimpleQuickSearchDto))); - } - - /// - /// Thi call returns a quick search by its id - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of SimpleQuickSearchDto - public async System.Threading.Tasks.Task QuickSearchesGetQuickSearchByIdAsync (string quickSearchId) - { - ApiResponse localVarResponse = await QuickSearchesGetQuickSearchByIdAsyncWithHttpInfo(quickSearchId); - return localVarResponse.Data; - - } - - /// - /// Thi call returns a quick search by its id - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of ApiResponse (SimpleQuickSearchDto) - public async System.Threading.Tasks.Task> QuickSearchesGetQuickSearchByIdAsyncWithHttpInfo (string quickSearchId) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesApi->QuickSearchesGetQuickSearchById"); - - var localVarPath = "/api/QuickSearches/{quickSearchId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesGetQuickSearchById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SimpleQuickSearchDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SimpleQuickSearchDto))); - } - - /// - /// This call adds a new quinck search - /// - /// Thrown when fails to make API call - /// (optional) - /// string - public string QuickSearchesPost (SimpleQuickSearchDto criteria = null) - { - ApiResponse localVarResponse = QuickSearchesPostWithHttpInfo(criteria); - return localVarResponse.Data; - } - - /// - /// This call adds a new quinck search - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of string - public ApiResponse< string > QuickSearchesPostWithHttpInfo (SimpleQuickSearchDto criteria = null) - { - - var localVarPath = "/api/QuickSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call adds a new quinck search - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of string - public async System.Threading.Tasks.Task QuickSearchesPostAsync (SimpleQuickSearchDto criteria = null) - { - ApiResponse localVarResponse = await QuickSearchesPostAsyncWithHttpInfo(criteria); - return localVarResponse.Data; - - } - - /// - /// This call adds a new quinck search - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> QuickSearchesPostAsyncWithHttpInfo (SimpleQuickSearchDto criteria = null) - { - - var localVarPath = "/api/QuickSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesPost", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call updates a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// string - public string QuickSearchesPut (string quickSearchId, SimpleQuickSearchDto criteria = null) - { - ApiResponse localVarResponse = QuickSearchesPutWithHttpInfo(quickSearchId, criteria); - return localVarResponse.Data; - } - - /// - /// This call updates a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// ApiResponse of string - public ApiResponse< string > QuickSearchesPutWithHttpInfo (string quickSearchId, SimpleQuickSearchDto criteria = null) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesApi->QuickSearchesPut"); - - var localVarPath = "/api/QuickSearches/{quickSearchId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesPut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call updates a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// Task of string - public async System.Threading.Tasks.Task QuickSearchesPutAsync (string quickSearchId, SimpleQuickSearchDto criteria = null) - { - ApiResponse localVarResponse = await QuickSearchesPutAsyncWithHttpInfo(quickSearchId, criteria); - return localVarResponse.Data; - - } - - /// - /// This call updates a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> QuickSearchesPutAsyncWithHttpInfo (string quickSearchId, SimpleQuickSearchDto criteria = null) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesApi->QuickSearchesPut"); - - var localVarPath = "/api/QuickSearches/{quickSearchId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesPut", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call renames a quick search - /// - /// Thrown when fails to make API call - /// Information to update - /// - public void QuickSearchesRename (RenamedQuickSearchDto quickSearchRenamed) - { - QuickSearchesRenameWithHttpInfo(quickSearchRenamed); - } - - /// - /// This call renames a quick search - /// - /// Thrown when fails to make API call - /// Information to update - /// ApiResponse of Object(void) - public ApiResponse QuickSearchesRenameWithHttpInfo (RenamedQuickSearchDto quickSearchRenamed) - { - // verify the required parameter 'quickSearchRenamed' is set - if (quickSearchRenamed == null) - throw new ApiException(400, "Missing required parameter 'quickSearchRenamed' when calling QuickSearchesApi->QuickSearchesRename"); - - var localVarPath = "/api/QuickSearches/rename"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchRenamed != null && quickSearchRenamed.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(quickSearchRenamed); // http body (model) parameter - } - else - { - localVarPostBody = quickSearchRenamed; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesRename", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call renames a quick search - /// - /// Thrown when fails to make API call - /// Information to update - /// Task of void - public async System.Threading.Tasks.Task QuickSearchesRenameAsync (RenamedQuickSearchDto quickSearchRenamed) - { - await QuickSearchesRenameAsyncWithHttpInfo(quickSearchRenamed); - - } - - /// - /// This call renames a quick search - /// - /// Thrown when fails to make API call - /// Information to update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> QuickSearchesRenameAsyncWithHttpInfo (RenamedQuickSearchDto quickSearchRenamed) - { - // verify the required parameter 'quickSearchRenamed' is set - if (quickSearchRenamed == null) - throw new ApiException(400, "Missing required parameter 'quickSearchRenamed' when calling QuickSearchesApi->QuickSearchesRename"); - - var localVarPath = "/api/QuickSearches/rename"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchRenamed != null && quickSearchRenamed.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(quickSearchRenamed); // http body (model) parameter - } - else - { - localVarPostBody = quickSearchRenamed; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesRename", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/QuickSearchesV2Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/QuickSearchesV2Api.cs deleted file mode 100644 index c4b1c14..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/QuickSearchesV2Api.cs +++ /dev/null @@ -1,1493 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IQuickSearchesV2Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call changes the flag that enable show of the search fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// - void QuickSearchesV2ChangeShowFields (string quickSearchId, bool? showFields); - - /// - /// This call changes the flag that enable show of the search fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// ApiResponse of Object(void) - ApiResponse QuickSearchesV2ChangeShowFieldsWithHttpInfo (string quickSearchId, bool? showFields); - /// - /// This call deletes a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// - void QuickSearchesV2DeleteQuickSearchById (string quickSearchId); - - /// - /// This call deletes a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// ApiResponse of Object(void) - ApiResponse QuickSearchesV2DeleteQuickSearchByIdWithHttpInfo (string quickSearchId); - /// - /// This call returns all quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<FindDTO> - List QuickSearchesV2GetQuickSearch (); - - /// - /// This call returns all quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<FindDTO> - ApiResponse> QuickSearchesV2GetQuickSearchWithHttpInfo (); - /// - /// Thi call returns a quick search by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// QuickSearchDto - QuickSearchDto QuickSearchesV2GetQuickSearchById (string quickSearchId); - - /// - /// Thi call returns a quick search by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// ApiResponse of QuickSearchDto - ApiResponse QuickSearchesV2GetQuickSearchByIdWithHttpInfo (string quickSearchId); - /// - /// This call adds a new quinck search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// string - string QuickSearchesV2Post (QuickSearchDto criteria = null); - - /// - /// This call adds a new quinck search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of string - ApiResponse QuickSearchesV2PostWithHttpInfo (QuickSearchDto criteria = null); - /// - /// This call updates a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// string - string QuickSearchesV2Put (string quickSearchId, QuickSearchDto criteria = null); - - /// - /// This call updates a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// ApiResponse of string - ApiResponse QuickSearchesV2PutWithHttpInfo (string quickSearchId, QuickSearchDto criteria = null); - /// - /// This call renames a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Information to update - /// - void QuickSearchesV2Rename (RenamedQuickSearchDto quickSearchRenamed); - - /// - /// This call renames a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Information to update - /// ApiResponse of Object(void) - ApiResponse QuickSearchesV2RenameWithHttpInfo (RenamedQuickSearchDto quickSearchRenamed); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call changes the flag that enable show of the search fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// Task of void - System.Threading.Tasks.Task QuickSearchesV2ChangeShowFieldsAsync (string quickSearchId, bool? showFields); - - /// - /// This call changes the flag that enable show of the search fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// Task of ApiResponse - System.Threading.Tasks.Task> QuickSearchesV2ChangeShowFieldsAsyncWithHttpInfo (string quickSearchId, bool? showFields); - /// - /// This call deletes a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of void - System.Threading.Tasks.Task QuickSearchesV2DeleteQuickSearchByIdAsync (string quickSearchId); - - /// - /// This call deletes a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> QuickSearchesV2DeleteQuickSearchByIdAsyncWithHttpInfo (string quickSearchId); - /// - /// This call returns all quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<FindDTO> - System.Threading.Tasks.Task> QuickSearchesV2GetQuickSearchAsync (); - - /// - /// This call returns all quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<FindDTO>) - System.Threading.Tasks.Task>> QuickSearchesV2GetQuickSearchAsyncWithHttpInfo (); - /// - /// Thi call returns a quick search by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of QuickSearchDto - System.Threading.Tasks.Task QuickSearchesV2GetQuickSearchByIdAsync (string quickSearchId); - - /// - /// Thi call returns a quick search by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of ApiResponse (QuickSearchDto) - System.Threading.Tasks.Task> QuickSearchesV2GetQuickSearchByIdAsyncWithHttpInfo (string quickSearchId); - /// - /// This call adds a new quinck search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of string - System.Threading.Tasks.Task QuickSearchesV2PostAsync (QuickSearchDto criteria = null); - - /// - /// This call adds a new quinck search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> QuickSearchesV2PostAsyncWithHttpInfo (QuickSearchDto criteria = null); - /// - /// This call updates a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// Task of string - System.Threading.Tasks.Task QuickSearchesV2PutAsync (string quickSearchId, QuickSearchDto criteria = null); - - /// - /// This call updates a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> QuickSearchesV2PutAsyncWithHttpInfo (string quickSearchId, QuickSearchDto criteria = null); - /// - /// This call renames a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Information to update - /// Task of void - System.Threading.Tasks.Task QuickSearchesV2RenameAsync (RenamedQuickSearchDto quickSearchRenamed); - - /// - /// This call renames a quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Information to update - /// Task of ApiResponse - System.Threading.Tasks.Task> QuickSearchesV2RenameAsyncWithHttpInfo (RenamedQuickSearchDto quickSearchRenamed); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class QuickSearchesV2Api : IQuickSearchesV2Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public QuickSearchesV2Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public QuickSearchesV2Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call changes the flag that enable show of the search fields - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// - public void QuickSearchesV2ChangeShowFields (string quickSearchId, bool? showFields) - { - QuickSearchesV2ChangeShowFieldsWithHttpInfo(quickSearchId, showFields); - } - - /// - /// This call changes the flag that enable show of the search fields - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// ApiResponse of Object(void) - public ApiResponse QuickSearchesV2ChangeShowFieldsWithHttpInfo (string quickSearchId, bool? showFields) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesV2Api->QuickSearchesV2ChangeShowFields"); - // verify the required parameter 'showFields' is set - if (showFields == null) - throw new ApiException(400, "Missing required parameter 'showFields' when calling QuickSearchesV2Api->QuickSearchesV2ChangeShowFields"); - - var localVarPath = "/api/v2/QuickSearches/showFields/{quickSearchId}/{showFields}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - if (showFields != null) localVarPathParams.Add("showFields", this.Configuration.ApiClient.ParameterToString(showFields)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesV2ChangeShowFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call changes the flag that enable show of the search fields - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// Task of void - public async System.Threading.Tasks.Task QuickSearchesV2ChangeShowFieldsAsync (string quickSearchId, bool? showFields) - { - await QuickSearchesV2ChangeShowFieldsAsyncWithHttpInfo(quickSearchId, showFields); - - } - - /// - /// This call changes the flag that enable show of the search fields - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Value for the flag - /// Task of ApiResponse - public async System.Threading.Tasks.Task> QuickSearchesV2ChangeShowFieldsAsyncWithHttpInfo (string quickSearchId, bool? showFields) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesV2Api->QuickSearchesV2ChangeShowFields"); - // verify the required parameter 'showFields' is set - if (showFields == null) - throw new ApiException(400, "Missing required parameter 'showFields' when calling QuickSearchesV2Api->QuickSearchesV2ChangeShowFields"); - - var localVarPath = "/api/v2/QuickSearches/showFields/{quickSearchId}/{showFields}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - if (showFields != null) localVarPathParams.Add("showFields", this.Configuration.ApiClient.ParameterToString(showFields)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesV2ChangeShowFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// - public void QuickSearchesV2DeleteQuickSearchById (string quickSearchId) - { - QuickSearchesV2DeleteQuickSearchByIdWithHttpInfo(quickSearchId); - } - - /// - /// This call deletes a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// ApiResponse of Object(void) - public ApiResponse QuickSearchesV2DeleteQuickSearchByIdWithHttpInfo (string quickSearchId) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesV2Api->QuickSearchesV2DeleteQuickSearchById"); - - var localVarPath = "/api/v2/QuickSearches/{quickSearchId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesV2DeleteQuickSearchById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of void - public async System.Threading.Tasks.Task QuickSearchesV2DeleteQuickSearchByIdAsync (string quickSearchId) - { - await QuickSearchesV2DeleteQuickSearchByIdAsyncWithHttpInfo(quickSearchId); - - } - - /// - /// This call deletes a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> QuickSearchesV2DeleteQuickSearchByIdAsyncWithHttpInfo (string quickSearchId) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesV2Api->QuickSearchesV2DeleteQuickSearchById"); - - var localVarPath = "/api/v2/QuickSearches/{quickSearchId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesV2DeleteQuickSearchById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all quick search - /// - /// Thrown when fails to make API call - /// List<FindDTO> - public List QuickSearchesV2GetQuickSearch () - { - ApiResponse> localVarResponse = QuickSearchesV2GetQuickSearchWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all quick search - /// - /// Thrown when fails to make API call - /// ApiResponse of List<FindDTO> - public ApiResponse< List > QuickSearchesV2GetQuickSearchWithHttpInfo () - { - - var localVarPath = "/api/v2/QuickSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesV2GetQuickSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all quick search - /// - /// Thrown when fails to make API call - /// Task of List<FindDTO> - public async System.Threading.Tasks.Task> QuickSearchesV2GetQuickSearchAsync () - { - ApiResponse> localVarResponse = await QuickSearchesV2GetQuickSearchAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all quick search - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<FindDTO>) - public async System.Threading.Tasks.Task>> QuickSearchesV2GetQuickSearchAsyncWithHttpInfo () - { - - var localVarPath = "/api/v2/QuickSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesV2GetQuickSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Thi call returns a quick search by its id - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// QuickSearchDto - public QuickSearchDto QuickSearchesV2GetQuickSearchById (string quickSearchId) - { - ApiResponse localVarResponse = QuickSearchesV2GetQuickSearchByIdWithHttpInfo(quickSearchId); - return localVarResponse.Data; - } - - /// - /// Thi call returns a quick search by its id - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// ApiResponse of QuickSearchDto - public ApiResponse< QuickSearchDto > QuickSearchesV2GetQuickSearchByIdWithHttpInfo (string quickSearchId) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesV2Api->QuickSearchesV2GetQuickSearchById"); - - var localVarPath = "/api/v2/QuickSearches/{quickSearchId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesV2GetQuickSearchById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QuickSearchDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QuickSearchDto))); - } - - /// - /// Thi call returns a quick search by its id - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of QuickSearchDto - public async System.Threading.Tasks.Task QuickSearchesV2GetQuickSearchByIdAsync (string quickSearchId) - { - ApiResponse localVarResponse = await QuickSearchesV2GetQuickSearchByIdAsyncWithHttpInfo(quickSearchId); - return localVarResponse.Data; - - } - - /// - /// Thi call returns a quick search by its id - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// Task of ApiResponse (QuickSearchDto) - public async System.Threading.Tasks.Task> QuickSearchesV2GetQuickSearchByIdAsyncWithHttpInfo (string quickSearchId) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesV2Api->QuickSearchesV2GetQuickSearchById"); - - var localVarPath = "/api/v2/QuickSearches/{quickSearchId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesV2GetQuickSearchById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (QuickSearchDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(QuickSearchDto))); - } - - /// - /// This call adds a new quinck search - /// - /// Thrown when fails to make API call - /// (optional) - /// string - public string QuickSearchesV2Post (QuickSearchDto criteria = null) - { - ApiResponse localVarResponse = QuickSearchesV2PostWithHttpInfo(criteria); - return localVarResponse.Data; - } - - /// - /// This call adds a new quinck search - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of string - public ApiResponse< string > QuickSearchesV2PostWithHttpInfo (QuickSearchDto criteria = null) - { - - var localVarPath = "/api/v2/QuickSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesV2Post", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call adds a new quinck search - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of string - public async System.Threading.Tasks.Task QuickSearchesV2PostAsync (QuickSearchDto criteria = null) - { - ApiResponse localVarResponse = await QuickSearchesV2PostAsyncWithHttpInfo(criteria); - return localVarResponse.Data; - - } - - /// - /// This call adds a new quinck search - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> QuickSearchesV2PostAsyncWithHttpInfo (QuickSearchDto criteria = null) - { - - var localVarPath = "/api/v2/QuickSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesV2Post", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call updates a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// string - public string QuickSearchesV2Put (string quickSearchId, QuickSearchDto criteria = null) - { - ApiResponse localVarResponse = QuickSearchesV2PutWithHttpInfo(quickSearchId, criteria); - return localVarResponse.Data; - } - - /// - /// This call updates a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// ApiResponse of string - public ApiResponse< string > QuickSearchesV2PutWithHttpInfo (string quickSearchId, QuickSearchDto criteria = null) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesV2Api->QuickSearchesV2Put"); - - var localVarPath = "/api/v2/QuickSearches/{quickSearchId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesV2Put", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call updates a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// Task of string - public async System.Threading.Tasks.Task QuickSearchesV2PutAsync (string quickSearchId, QuickSearchDto criteria = null) - { - ApiResponse localVarResponse = await QuickSearchesV2PutAsyncWithHttpInfo(quickSearchId, criteria); - return localVarResponse.Data; - - } - - /// - /// This call updates a quick search - /// - /// Thrown when fails to make API call - /// Quick search identifier - /// (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> QuickSearchesV2PutAsyncWithHttpInfo (string quickSearchId, QuickSearchDto criteria = null) - { - // verify the required parameter 'quickSearchId' is set - if (quickSearchId == null) - throw new ApiException(400, "Missing required parameter 'quickSearchId' when calling QuickSearchesV2Api->QuickSearchesV2Put"); - - var localVarPath = "/api/v2/QuickSearches/{quickSearchId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchId != null) localVarPathParams.Add("quickSearchId", this.Configuration.ApiClient.ParameterToString(quickSearchId)); // path parameter - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesV2Put", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call renames a quick search - /// - /// Thrown when fails to make API call - /// Information to update - /// - public void QuickSearchesV2Rename (RenamedQuickSearchDto quickSearchRenamed) - { - QuickSearchesV2RenameWithHttpInfo(quickSearchRenamed); - } - - /// - /// This call renames a quick search - /// - /// Thrown when fails to make API call - /// Information to update - /// ApiResponse of Object(void) - public ApiResponse QuickSearchesV2RenameWithHttpInfo (RenamedQuickSearchDto quickSearchRenamed) - { - // verify the required parameter 'quickSearchRenamed' is set - if (quickSearchRenamed == null) - throw new ApiException(400, "Missing required parameter 'quickSearchRenamed' when calling QuickSearchesV2Api->QuickSearchesV2Rename"); - - var localVarPath = "/api/v2/QuickSearches/rename"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchRenamed != null && quickSearchRenamed.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(quickSearchRenamed); // http body (model) parameter - } - else - { - localVarPostBody = quickSearchRenamed; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesV2Rename", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call renames a quick search - /// - /// Thrown when fails to make API call - /// Information to update - /// Task of void - public async System.Threading.Tasks.Task QuickSearchesV2RenameAsync (RenamedQuickSearchDto quickSearchRenamed) - { - await QuickSearchesV2RenameAsyncWithHttpInfo(quickSearchRenamed); - - } - - /// - /// This call renames a quick search - /// - /// Thrown when fails to make API call - /// Information to update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> QuickSearchesV2RenameAsyncWithHttpInfo (RenamedQuickSearchDto quickSearchRenamed) - { - // verify the required parameter 'quickSearchRenamed' is set - if (quickSearchRenamed == null) - throw new ApiException(400, "Missing required parameter 'quickSearchRenamed' when calling QuickSearchesV2Api->QuickSearchesV2Rename"); - - var localVarPath = "/api/v2/QuickSearches/rename"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (quickSearchRenamed != null && quickSearchRenamed.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(quickSearchRenamed); // http body (model) parameter - } - else - { - localVarPostBody = quickSearchRenamed; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("QuickSearchesV2Rename", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/RelationsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/RelationsApi.cs deleted file mode 100644 index d996926..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/RelationsApi.cs +++ /dev/null @@ -1,928 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IRelationsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes a criteria by from and to profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier of the \"from\" profile - /// Document identifier of the \"to\" profile - /// - void RelationsDeleteByDocNumberFromDocNumberTo (int? fromDocnumber, int? toDocnumber); - - /// - /// This call deletes a criteria by from and to profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier of the \"from\" profile - /// Document identifier of the \"to\" profile - /// ApiResponse of Object(void) - ApiResponse RelationsDeleteByDocNumberFromDocNumberToWithHttpInfo (int? fromDocnumber, int? toDocnumber); - /// - /// This call returns a relation by docnumber relation by exploring method - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Relation search criteria - /// RelationExploredDTO - RelationExploredDTO RelationsGetById (RelationCriteriaDTO criteria); - - /// - /// This call returns a relation by docnumber relation by exploring method - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Relation search criteria - /// ApiResponse of RelationExploredDTO - ApiResponse RelationsGetByIdWithHttpInfo (RelationCriteriaDTO criteria); - /// - /// This call adds a new Relation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Relation to insert - /// - void RelationsInsertNewRelation (RelationInsertDTO relationInsertDto); - - /// - /// This call adds a new Relation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Relation to insert - /// ApiResponse of Object(void) - ApiResponse RelationsInsertNewRelationWithHttpInfo (RelationInsertDTO relationInsertDto); - /// - /// This call recalculate the relations of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// - void RelationsRecalculateRelation (int? docnumber); - - /// - /// This call recalculate the relations of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of Object(void) - ApiResponse RelationsRecalculateRelationWithHttpInfo (int? docnumber); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes a criteria by from and to profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier of the \"from\" profile - /// Document identifier of the \"to\" profile - /// Task of void - System.Threading.Tasks.Task RelationsDeleteByDocNumberFromDocNumberToAsync (int? fromDocnumber, int? toDocnumber); - - /// - /// This call deletes a criteria by from and to profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier of the \"from\" profile - /// Document identifier of the \"to\" profile - /// Task of ApiResponse - System.Threading.Tasks.Task> RelationsDeleteByDocNumberFromDocNumberToAsyncWithHttpInfo (int? fromDocnumber, int? toDocnumber); - /// - /// This call returns a relation by docnumber relation by exploring method - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Relation search criteria - /// Task of RelationExploredDTO - System.Threading.Tasks.Task RelationsGetByIdAsync (RelationCriteriaDTO criteria); - - /// - /// This call returns a relation by docnumber relation by exploring method - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Relation search criteria - /// Task of ApiResponse (RelationExploredDTO) - System.Threading.Tasks.Task> RelationsGetByIdAsyncWithHttpInfo (RelationCriteriaDTO criteria); - /// - /// This call adds a new Relation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Relation to insert - /// Task of void - System.Threading.Tasks.Task RelationsInsertNewRelationAsync (RelationInsertDTO relationInsertDto); - - /// - /// This call adds a new Relation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Relation to insert - /// Task of ApiResponse - System.Threading.Tasks.Task> RelationsInsertNewRelationAsyncWithHttpInfo (RelationInsertDTO relationInsertDto); - /// - /// This call recalculate the relations of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of void - System.Threading.Tasks.Task RelationsRecalculateRelationAsync (int? docnumber); - - /// - /// This call recalculate the relations of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> RelationsRecalculateRelationAsyncWithHttpInfo (int? docnumber); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class RelationsApi : IRelationsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public RelationsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public RelationsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes a criteria by from and to profiles - /// - /// Thrown when fails to make API call - /// Document identifier of the \"from\" profile - /// Document identifier of the \"to\" profile - /// - public void RelationsDeleteByDocNumberFromDocNumberTo (int? fromDocnumber, int? toDocnumber) - { - RelationsDeleteByDocNumberFromDocNumberToWithHttpInfo(fromDocnumber, toDocnumber); - } - - /// - /// This call deletes a criteria by from and to profiles - /// - /// Thrown when fails to make API call - /// Document identifier of the \"from\" profile - /// Document identifier of the \"to\" profile - /// ApiResponse of Object(void) - public ApiResponse RelationsDeleteByDocNumberFromDocNumberToWithHttpInfo (int? fromDocnumber, int? toDocnumber) - { - // verify the required parameter 'fromDocnumber' is set - if (fromDocnumber == null) - throw new ApiException(400, "Missing required parameter 'fromDocnumber' when calling RelationsApi->RelationsDeleteByDocNumberFromDocNumberTo"); - // verify the required parameter 'toDocnumber' is set - if (toDocnumber == null) - throw new ApiException(400, "Missing required parameter 'toDocnumber' when calling RelationsApi->RelationsDeleteByDocNumberFromDocNumberTo"); - - var localVarPath = "/api/Relations/{fromDocnumber}/{toDocnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fromDocnumber != null) localVarPathParams.Add("fromDocnumber", this.Configuration.ApiClient.ParameterToString(fromDocnumber)); // path parameter - if (toDocnumber != null) localVarPathParams.Add("toDocnumber", this.Configuration.ApiClient.ParameterToString(toDocnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RelationsDeleteByDocNumberFromDocNumberTo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a criteria by from and to profiles - /// - /// Thrown when fails to make API call - /// Document identifier of the \"from\" profile - /// Document identifier of the \"to\" profile - /// Task of void - public async System.Threading.Tasks.Task RelationsDeleteByDocNumberFromDocNumberToAsync (int? fromDocnumber, int? toDocnumber) - { - await RelationsDeleteByDocNumberFromDocNumberToAsyncWithHttpInfo(fromDocnumber, toDocnumber); - - } - - /// - /// This call deletes a criteria by from and to profiles - /// - /// Thrown when fails to make API call - /// Document identifier of the \"from\" profile - /// Document identifier of the \"to\" profile - /// Task of ApiResponse - public async System.Threading.Tasks.Task> RelationsDeleteByDocNumberFromDocNumberToAsyncWithHttpInfo (int? fromDocnumber, int? toDocnumber) - { - // verify the required parameter 'fromDocnumber' is set - if (fromDocnumber == null) - throw new ApiException(400, "Missing required parameter 'fromDocnumber' when calling RelationsApi->RelationsDeleteByDocNumberFromDocNumberTo"); - // verify the required parameter 'toDocnumber' is set - if (toDocnumber == null) - throw new ApiException(400, "Missing required parameter 'toDocnumber' when calling RelationsApi->RelationsDeleteByDocNumberFromDocNumberTo"); - - var localVarPath = "/api/Relations/{fromDocnumber}/{toDocnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fromDocnumber != null) localVarPathParams.Add("fromDocnumber", this.Configuration.ApiClient.ParameterToString(fromDocnumber)); // path parameter - if (toDocnumber != null) localVarPathParams.Add("toDocnumber", this.Configuration.ApiClient.ParameterToString(toDocnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RelationsDeleteByDocNumberFromDocNumberTo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns a relation by docnumber relation by exploring method - /// - /// Thrown when fails to make API call - /// Relation search criteria - /// RelationExploredDTO - public RelationExploredDTO RelationsGetById (RelationCriteriaDTO criteria) - { - ApiResponse localVarResponse = RelationsGetByIdWithHttpInfo(criteria); - return localVarResponse.Data; - } - - /// - /// This call returns a relation by docnumber relation by exploring method - /// - /// Thrown when fails to make API call - /// Relation search criteria - /// ApiResponse of RelationExploredDTO - public ApiResponse< RelationExploredDTO > RelationsGetByIdWithHttpInfo (RelationCriteriaDTO criteria) - { - // verify the required parameter 'criteria' is set - if (criteria == null) - throw new ApiException(400, "Missing required parameter 'criteria' when calling RelationsApi->RelationsGetById"); - - var localVarPath = "/api/Relations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RelationsGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RelationExploredDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RelationExploredDTO))); - } - - /// - /// This call returns a relation by docnumber relation by exploring method - /// - /// Thrown when fails to make API call - /// Relation search criteria - /// Task of RelationExploredDTO - public async System.Threading.Tasks.Task RelationsGetByIdAsync (RelationCriteriaDTO criteria) - { - ApiResponse localVarResponse = await RelationsGetByIdAsyncWithHttpInfo(criteria); - return localVarResponse.Data; - - } - - /// - /// This call returns a relation by docnumber relation by exploring method - /// - /// Thrown when fails to make API call - /// Relation search criteria - /// Task of ApiResponse (RelationExploredDTO) - public async System.Threading.Tasks.Task> RelationsGetByIdAsyncWithHttpInfo (RelationCriteriaDTO criteria) - { - // verify the required parameter 'criteria' is set - if (criteria == null) - throw new ApiException(400, "Missing required parameter 'criteria' when calling RelationsApi->RelationsGetById"); - - var localVarPath = "/api/Relations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RelationsGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RelationExploredDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RelationExploredDTO))); - } - - /// - /// This call adds a new Relation - /// - /// Thrown when fails to make API call - /// Relation to insert - /// - public void RelationsInsertNewRelation (RelationInsertDTO relationInsertDto) - { - RelationsInsertNewRelationWithHttpInfo(relationInsertDto); - } - - /// - /// This call adds a new Relation - /// - /// Thrown when fails to make API call - /// Relation to insert - /// ApiResponse of Object(void) - public ApiResponse RelationsInsertNewRelationWithHttpInfo (RelationInsertDTO relationInsertDto) - { - // verify the required parameter 'relationInsertDto' is set - if (relationInsertDto == null) - throw new ApiException(400, "Missing required parameter 'relationInsertDto' when calling RelationsApi->RelationsInsertNewRelation"); - - var localVarPath = "/api/Relations/Insert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (relationInsertDto != null && relationInsertDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(relationInsertDto); // http body (model) parameter - } - else - { - localVarPostBody = relationInsertDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RelationsInsertNewRelation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds a new Relation - /// - /// Thrown when fails to make API call - /// Relation to insert - /// Task of void - public async System.Threading.Tasks.Task RelationsInsertNewRelationAsync (RelationInsertDTO relationInsertDto) - { - await RelationsInsertNewRelationAsyncWithHttpInfo(relationInsertDto); - - } - - /// - /// This call adds a new Relation - /// - /// Thrown when fails to make API call - /// Relation to insert - /// Task of ApiResponse - public async System.Threading.Tasks.Task> RelationsInsertNewRelationAsyncWithHttpInfo (RelationInsertDTO relationInsertDto) - { - // verify the required parameter 'relationInsertDto' is set - if (relationInsertDto == null) - throw new ApiException(400, "Missing required parameter 'relationInsertDto' when calling RelationsApi->RelationsInsertNewRelation"); - - var localVarPath = "/api/Relations/Insert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (relationInsertDto != null && relationInsertDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(relationInsertDto); // http body (model) parameter - } - else - { - localVarPostBody = relationInsertDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RelationsInsertNewRelation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call recalculate the relations of a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// - public void RelationsRecalculateRelation (int? docnumber) - { - RelationsRecalculateRelationWithHttpInfo(docnumber); - } - - /// - /// This call recalculate the relations of a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of Object(void) - public ApiResponse RelationsRecalculateRelationWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling RelationsApi->RelationsRecalculateRelation"); - - var localVarPath = "/api/Relations/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RelationsRecalculateRelation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call recalculate the relations of a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of void - public async System.Threading.Tasks.Task RelationsRecalculateRelationAsync (int? docnumber) - { - await RelationsRecalculateRelationAsyncWithHttpInfo(docnumber); - - } - - /// - /// This call recalculate the relations of a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> RelationsRecalculateRelationAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling RelationsApi->RelationsRecalculateRelation"); - - var localVarPath = "/api/Relations/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RelationsRecalculateRelation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ReportApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ReportApi.cs deleted file mode 100644 index 9b9cdc4..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ReportApi.cs +++ /dev/null @@ -1,3650 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IReportApi : IApiAccessor - { - #region Synchronous Operations - /// - /// Deletes a report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the report - /// Object - Object ReportDelete (string id); - - /// - /// Deletes a report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the report - /// ApiResponse of Object - ApiResponse ReportDeleteWithHttpInfo (string id); - /// - /// Deletes the template file of the report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report id - /// - void ReportDeleteReportTemplate (string id); - - /// - /// Deletes the template file of the report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report id - /// ApiResponse of Object(void) - ApiResponse ReportDeleteReportTemplateWithHttpInfo (string id); - /// - /// Executes a report by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// System.IO.Stream - System.IO.Stream ReportExecuteById (ReportExecuteRequestDTO executerequest = null); - - /// - /// Executes a report by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of System.IO.Stream - ApiResponse ReportExecuteByIdWithHttpInfo (ReportExecuteRequestDTO executerequest = null); - /// - /// Executes a report with one or more output formats by id. The operation is async - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ReportExecuteAsyncResponseDTO - ReportExecuteAsyncResponseDTO ReportExecuteMultpileAsyncById (ReportExecuteMultipleRequestDTO executerequest = null); - - /// - /// Executes a report with one or more output formats by id. The operation is async - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ReportExecuteAsyncResponseDTO - ApiResponse ReportExecuteMultpileAsyncByIdWithHttpInfo (ReportExecuteMultipleRequestDTO executerequest = null); - /// - /// Returns the report specified by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void ReportGetById (string id); - - /// - /// Returns the report specified by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse ReportGetByIdWithHttpInfo (string id); - /// - /// Get Find Group by Id considering report permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// FindGroupDTO - FindGroupDTO ReportGetFindGroupById (string findGroupId, string reportId); - - /// - /// Get Find Group by Id considering report permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of FindGroupDTO - ApiResponse ReportGetFindGroupByIdWithHttpInfo (string findGroupId, string reportId); - /// - /// List of Find Group considering report permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<FindGroupDTO> - List ReportGetFindGroupList (string reportId); - - /// - /// List of Find Group considering report permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<FindGroupDTO> - ApiResponse> ReportGetFindGroupListWithHttpInfo (string reportId); - /// - /// Returns the list of all the report available for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - void ReportGetList (); - - /// - /// Returns the list of all the report available for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - ApiResponse ReportGetListWithHttpInfo (); - /// - /// Returns permissions of report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// PermissionsDTO - PermissionsDTO ReportGetPermission (string id); - - /// - /// Returns permissions of report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of PermissionsDTO - ApiResponse ReportGetPermissionWithHttpInfo (string id); - /// - /// Gets report data source - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Object - Object ReportGetReportDataSource (string findGroupId, string reportId); - - /// - /// Gets report data source - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object - ApiResponse ReportGetReportDataSourceWithHttpInfo (string findGroupId, string reportId); - /// - /// Gets report parameters datasource - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// List<ReportParamDataSourceDTO> - List ReportGetReportParamDataSourceByFindGroupId (string findGroupId, string reportId); - - /// - /// Gets report parameters datasource - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of List<ReportParamDataSourceDTO> - ApiResponse> ReportGetReportParamDataSourceByFindGroupIdWithHttpInfo (string findGroupId, string reportId); - /// - /// Gets the report template file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report id - /// Determine if report references are visible (optional) - /// string - string ReportGetReportTemplate (string id, bool? editMode = null); - - /// - /// Gets the report template file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report id - /// Determine if report references are visible (optional) - /// ApiResponse of string - ApiResponse ReportGetReportTemplateWithHttpInfo (string id, bool? editMode = null); - /// - /// Executes a query for internal data source in edit mode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object - Object ReportHandlerEditMode (); - - /// - /// Executes a query for internal data source in edit mode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of Object - ApiResponse ReportHandlerEditModeWithHttpInfo (); - /// - /// Executes a query for internal data source in running mode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object - Object ReportHandlerRunningMode (); - - /// - /// Executes a query for internal data source in running mode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of Object - ApiResponse ReportHandlerRunningModeWithHttpInfo (); - /// - /// Inserts a new report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ReportDTO - ReportDTO ReportInsertReport (ReportDTO reportdto = null); - - /// - /// Inserts a new report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ReportDTO - ApiResponse ReportInsertReportWithHttpInfo (ReportDTO reportdto = null); - /// - /// Sets report permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report Identifier - /// Permissions data - /// - void ReportSetPermission (string id, PermissionsDTO permissions); - - /// - /// Sets report permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report Identifier - /// Permissions data - /// ApiResponse of Object(void) - ApiResponse ReportSetPermissionWithHttpInfo (string id, PermissionsDTO permissions); - /// - /// Updates the report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ReportDTO - ReportDTO ReportUpdateReport (ReportDTO reportdto = null); - - /// - /// Updates the report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ReportDTO - ApiResponse ReportUpdateReportWithHttpInfo (ReportDTO reportdto = null); - /// - /// Updates the template file of the report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report id - /// Report template - /// - void ReportUpdateReportTemplate (string id, string reportTemplate); - - /// - /// Updates the template file of the report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report id - /// Report template - /// ApiResponse of Object(void) - ApiResponse ReportUpdateReportTemplateWithHttpInfo (string id, string reportTemplate); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// Deletes a report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the report - /// Task of Object - System.Threading.Tasks.Task ReportDeleteAsync (string id); - - /// - /// Deletes a report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the report - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ReportDeleteAsyncWithHttpInfo (string id); - /// - /// Deletes the template file of the report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report id - /// Task of void - System.Threading.Tasks.Task ReportDeleteReportTemplateAsync (string id); - - /// - /// Deletes the template file of the report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report id - /// Task of ApiResponse - System.Threading.Tasks.Task> ReportDeleteReportTemplateAsyncWithHttpInfo (string id); - /// - /// Executes a report by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of System.IO.Stream - System.Threading.Tasks.Task ReportExecuteByIdAsync (ReportExecuteRequestDTO executerequest = null); - - /// - /// Executes a report by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> ReportExecuteByIdAsyncWithHttpInfo (ReportExecuteRequestDTO executerequest = null); - /// - /// Executes a report with one or more output formats by id. The operation is async - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ReportExecuteAsyncResponseDTO - System.Threading.Tasks.Task ReportExecuteMultpileAsyncByIdAsync (ReportExecuteMultipleRequestDTO executerequest = null); - - /// - /// Executes a report with one or more output formats by id. The operation is async - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ReportExecuteAsyncResponseDTO) - System.Threading.Tasks.Task> ReportExecuteMultpileAsyncByIdAsyncWithHttpInfo (ReportExecuteMultipleRequestDTO executerequest = null); - /// - /// Returns the report specified by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task ReportGetByIdAsync (string id); - - /// - /// Returns the report specified by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> ReportGetByIdAsyncWithHttpInfo (string id); - /// - /// Get Find Group by Id considering report permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of FindGroupDTO - System.Threading.Tasks.Task ReportGetFindGroupByIdAsync (string findGroupId, string reportId); - - /// - /// Get Find Group by Id considering report permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (FindGroupDTO) - System.Threading.Tasks.Task> ReportGetFindGroupByIdAsyncWithHttpInfo (string findGroupId, string reportId); - /// - /// List of Find Group considering report permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<FindGroupDTO> - System.Threading.Tasks.Task> ReportGetFindGroupListAsync (string reportId); - - /// - /// List of Find Group considering report permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<FindGroupDTO>) - System.Threading.Tasks.Task>> ReportGetFindGroupListAsyncWithHttpInfo (string reportId); - /// - /// Returns the list of all the report available for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of void - System.Threading.Tasks.Task ReportGetListAsync (); - - /// - /// Returns the list of all the report available for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - System.Threading.Tasks.Task> ReportGetListAsyncWithHttpInfo (); - /// - /// Returns permissions of report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of PermissionsDTO - System.Threading.Tasks.Task ReportGetPermissionAsync (string id); - - /// - /// Returns permissions of report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (PermissionsDTO) - System.Threading.Tasks.Task> ReportGetPermissionAsyncWithHttpInfo (string id); - /// - /// Gets report data source - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of Object - System.Threading.Tasks.Task ReportGetReportDataSourceAsync (string findGroupId, string reportId); - - /// - /// Gets report data source - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ReportGetReportDataSourceAsyncWithHttpInfo (string findGroupId, string reportId); - /// - /// Gets report parameters datasource - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of List<ReportParamDataSourceDTO> - System.Threading.Tasks.Task> ReportGetReportParamDataSourceByFindGroupIdAsync (string findGroupId, string reportId); - - /// - /// Gets report parameters datasource - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (List<ReportParamDataSourceDTO>) - System.Threading.Tasks.Task>> ReportGetReportParamDataSourceByFindGroupIdAsyncWithHttpInfo (string findGroupId, string reportId); - /// - /// Gets the report template file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report id - /// Determine if report references are visible (optional) - /// Task of string - System.Threading.Tasks.Task ReportGetReportTemplateAsync (string id, bool? editMode = null); - - /// - /// Gets the report template file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report id - /// Determine if report references are visible (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> ReportGetReportTemplateAsyncWithHttpInfo (string id, bool? editMode = null); - /// - /// Executes a query for internal data source in edit mode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of Object - System.Threading.Tasks.Task ReportHandlerEditModeAsync (); - - /// - /// Executes a query for internal data source in edit mode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ReportHandlerEditModeAsyncWithHttpInfo (); - /// - /// Executes a query for internal data source in running mode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of Object - System.Threading.Tasks.Task ReportHandlerRunningModeAsync (); - - /// - /// Executes a query for internal data source in running mode - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ReportHandlerRunningModeAsyncWithHttpInfo (); - /// - /// Inserts a new report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ReportDTO - System.Threading.Tasks.Task ReportInsertReportAsync (ReportDTO reportdto = null); - - /// - /// Inserts a new report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ReportDTO) - System.Threading.Tasks.Task> ReportInsertReportAsyncWithHttpInfo (ReportDTO reportdto = null); - /// - /// Sets report permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report Identifier - /// Permissions data - /// Task of void - System.Threading.Tasks.Task ReportSetPermissionAsync (string id, PermissionsDTO permissions); - - /// - /// Sets report permissions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report Identifier - /// Permissions data - /// Task of ApiResponse - System.Threading.Tasks.Task> ReportSetPermissionAsyncWithHttpInfo (string id, PermissionsDTO permissions); - /// - /// Updates the report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ReportDTO - System.Threading.Tasks.Task ReportUpdateReportAsync (ReportDTO reportdto = null); - - /// - /// Updates the report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ReportDTO) - System.Threading.Tasks.Task> ReportUpdateReportAsyncWithHttpInfo (ReportDTO reportdto = null); - /// - /// Updates the template file of the report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report id - /// Report template - /// Task of void - System.Threading.Tasks.Task ReportUpdateReportTemplateAsync (string id, string reportTemplate); - - /// - /// Updates the template file of the report - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Report id - /// Report template - /// Task of ApiResponse - System.Threading.Tasks.Task> ReportUpdateReportTemplateAsyncWithHttpInfo (string id, string reportTemplate); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ReportApi : IReportApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ReportApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ReportApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// Deletes a report - /// - /// Thrown when fails to make API call - /// Identifier of the report - /// Object - public Object ReportDelete (string id) - { - ApiResponse localVarResponse = ReportDeleteWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Deletes a report - /// - /// Thrown when fails to make API call - /// Identifier of the report - /// ApiResponse of Object - public ApiResponse< Object > ReportDeleteWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ReportApi->ReportDelete"); - - var localVarPath = "/api/Report/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// Deletes a report - /// - /// Thrown when fails to make API call - /// Identifier of the report - /// Task of Object - public async System.Threading.Tasks.Task ReportDeleteAsync (string id) - { - ApiResponse localVarResponse = await ReportDeleteAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// Deletes a report - /// - /// Thrown when fails to make API call - /// Identifier of the report - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ReportDeleteAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ReportApi->ReportDelete"); - - var localVarPath = "/api/Report/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// Deletes the template file of the report - /// - /// Thrown when fails to make API call - /// Report id - /// - public void ReportDeleteReportTemplate (string id) - { - ReportDeleteReportTemplateWithHttpInfo(id); - } - - /// - /// Deletes the template file of the report - /// - /// Thrown when fails to make API call - /// Report id - /// ApiResponse of Object(void) - public ApiResponse ReportDeleteReportTemplateWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ReportApi->ReportDeleteReportTemplate"); - - var localVarPath = "/api/Report/{id}/DeleteTemplate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportDeleteReportTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Deletes the template file of the report - /// - /// Thrown when fails to make API call - /// Report id - /// Task of void - public async System.Threading.Tasks.Task ReportDeleteReportTemplateAsync (string id) - { - await ReportDeleteReportTemplateAsyncWithHttpInfo(id); - - } - - /// - /// Deletes the template file of the report - /// - /// Thrown when fails to make API call - /// Report id - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ReportDeleteReportTemplateAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ReportApi->ReportDeleteReportTemplate"); - - var localVarPath = "/api/Report/{id}/DeleteTemplate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportDeleteReportTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Executes a report by id - /// - /// Thrown when fails to make API call - /// (optional) - /// System.IO.Stream - public System.IO.Stream ReportExecuteById (ReportExecuteRequestDTO executerequest = null) - { - ApiResponse localVarResponse = ReportExecuteByIdWithHttpInfo(executerequest); - return localVarResponse.Data; - } - - /// - /// Executes a report by id - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > ReportExecuteByIdWithHttpInfo (ReportExecuteRequestDTO executerequest = null) - { - - var localVarPath = "/api/Report/Execute"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (executerequest != null && executerequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(executerequest); // http body (model) parameter - } - else - { - localVarPostBody = executerequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportExecuteById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// Executes a report by id - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task ReportExecuteByIdAsync (ReportExecuteRequestDTO executerequest = null) - { - ApiResponse localVarResponse = await ReportExecuteByIdAsyncWithHttpInfo(executerequest); - return localVarResponse.Data; - - } - - /// - /// Executes a report by id - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> ReportExecuteByIdAsyncWithHttpInfo (ReportExecuteRequestDTO executerequest = null) - { - - var localVarPath = "/api/Report/Execute"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (executerequest != null && executerequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(executerequest); // http body (model) parameter - } - else - { - localVarPostBody = executerequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportExecuteById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// Executes a report with one or more output formats by id. The operation is async - /// - /// Thrown when fails to make API call - /// (optional) - /// ReportExecuteAsyncResponseDTO - public ReportExecuteAsyncResponseDTO ReportExecuteMultpileAsyncById (ReportExecuteMultipleRequestDTO executerequest = null) - { - ApiResponse localVarResponse = ReportExecuteMultpileAsyncByIdWithHttpInfo(executerequest); - return localVarResponse.Data; - } - - /// - /// Executes a report with one or more output formats by id. The operation is async - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ReportExecuteAsyncResponseDTO - public ApiResponse< ReportExecuteAsyncResponseDTO > ReportExecuteMultpileAsyncByIdWithHttpInfo (ReportExecuteMultipleRequestDTO executerequest = null) - { - - var localVarPath = "/api/Report/Execute/Async"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (executerequest != null && executerequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(executerequest); // http body (model) parameter - } - else - { - localVarPostBody = executerequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportExecuteMultpileAsyncById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ReportExecuteAsyncResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportExecuteAsyncResponseDTO))); - } - - /// - /// Executes a report with one or more output formats by id. The operation is async - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ReportExecuteAsyncResponseDTO - public async System.Threading.Tasks.Task ReportExecuteMultpileAsyncByIdAsync (ReportExecuteMultipleRequestDTO executerequest = null) - { - ApiResponse localVarResponse = await ReportExecuteMultpileAsyncByIdAsyncWithHttpInfo(executerequest); - return localVarResponse.Data; - - } - - /// - /// Executes a report with one or more output formats by id. The operation is async - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ReportExecuteAsyncResponseDTO) - public async System.Threading.Tasks.Task> ReportExecuteMultpileAsyncByIdAsyncWithHttpInfo (ReportExecuteMultipleRequestDTO executerequest = null) - { - - var localVarPath = "/api/Report/Execute/Async"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (executerequest != null && executerequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(executerequest); // http body (model) parameter - } - else - { - localVarPostBody = executerequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportExecuteMultpileAsyncById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ReportExecuteAsyncResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportExecuteAsyncResponseDTO))); - } - - /// - /// Returns the report specified by id - /// - /// Thrown when fails to make API call - /// - /// - public void ReportGetById (string id) - { - ReportGetByIdWithHttpInfo(id); - } - - /// - /// Returns the report specified by id - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse ReportGetByIdWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ReportApi->ReportGetById"); - - var localVarPath = "/api/Report/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Returns the report specified by id - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task ReportGetByIdAsync (string id) - { - await ReportGetByIdAsyncWithHttpInfo(id); - - } - - /// - /// Returns the report specified by id - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ReportGetByIdAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ReportApi->ReportGetById"); - - var localVarPath = "/api/Report/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Get Find Group by Id considering report permissions - /// - /// Thrown when fails to make API call - /// - /// - /// FindGroupDTO - public FindGroupDTO ReportGetFindGroupById (string findGroupId, string reportId) - { - ApiResponse localVarResponse = ReportGetFindGroupByIdWithHttpInfo(findGroupId, reportId); - return localVarResponse.Data; - } - - /// - /// Get Find Group by Id considering report permissions - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of FindGroupDTO - public ApiResponse< FindGroupDTO > ReportGetFindGroupByIdWithHttpInfo (string findGroupId, string reportId) - { - // verify the required parameter 'findGroupId' is set - if (findGroupId == null) - throw new ApiException(400, "Missing required parameter 'findGroupId' when calling ReportApi->ReportGetFindGroupById"); - // verify the required parameter 'reportId' is set - if (reportId == null) - throw new ApiException(400, "Missing required parameter 'reportId' when calling ReportApi->ReportGetFindGroupById"); - - var localVarPath = "/api/Report/FindGroup/{findGroupId}/{reportId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (findGroupId != null) localVarPathParams.Add("findGroupId", this.Configuration.ApiClient.ParameterToString(findGroupId)); // path parameter - if (reportId != null) localVarPathParams.Add("reportId", this.Configuration.ApiClient.ParameterToString(reportId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetFindGroupById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FindGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FindGroupDTO))); - } - - /// - /// Get Find Group by Id considering report permissions - /// - /// Thrown when fails to make API call - /// - /// - /// Task of FindGroupDTO - public async System.Threading.Tasks.Task ReportGetFindGroupByIdAsync (string findGroupId, string reportId) - { - ApiResponse localVarResponse = await ReportGetFindGroupByIdAsyncWithHttpInfo(findGroupId, reportId); - return localVarResponse.Data; - - } - - /// - /// Get Find Group by Id considering report permissions - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (FindGroupDTO) - public async System.Threading.Tasks.Task> ReportGetFindGroupByIdAsyncWithHttpInfo (string findGroupId, string reportId) - { - // verify the required parameter 'findGroupId' is set - if (findGroupId == null) - throw new ApiException(400, "Missing required parameter 'findGroupId' when calling ReportApi->ReportGetFindGroupById"); - // verify the required parameter 'reportId' is set - if (reportId == null) - throw new ApiException(400, "Missing required parameter 'reportId' when calling ReportApi->ReportGetFindGroupById"); - - var localVarPath = "/api/Report/FindGroup/{findGroupId}/{reportId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (findGroupId != null) localVarPathParams.Add("findGroupId", this.Configuration.ApiClient.ParameterToString(findGroupId)); // path parameter - if (reportId != null) localVarPathParams.Add("reportId", this.Configuration.ApiClient.ParameterToString(reportId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetFindGroupById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FindGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FindGroupDTO))); - } - - /// - /// List of Find Group considering report permissions - /// - /// Thrown when fails to make API call - /// - /// List<FindGroupDTO> - public List ReportGetFindGroupList (string reportId) - { - ApiResponse> localVarResponse = ReportGetFindGroupListWithHttpInfo(reportId); - return localVarResponse.Data; - } - - /// - /// List of Find Group considering report permissions - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<FindGroupDTO> - public ApiResponse< List > ReportGetFindGroupListWithHttpInfo (string reportId) - { - // verify the required parameter 'reportId' is set - if (reportId == null) - throw new ApiException(400, "Missing required parameter 'reportId' when calling ReportApi->ReportGetFindGroupList"); - - var localVarPath = "/api/Report/FindGroupList/{reportId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (reportId != null) localVarPathParams.Add("reportId", this.Configuration.ApiClient.ParameterToString(reportId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetFindGroupList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// List of Find Group considering report permissions - /// - /// Thrown when fails to make API call - /// - /// Task of List<FindGroupDTO> - public async System.Threading.Tasks.Task> ReportGetFindGroupListAsync (string reportId) - { - ApiResponse> localVarResponse = await ReportGetFindGroupListAsyncWithHttpInfo(reportId); - return localVarResponse.Data; - - } - - /// - /// List of Find Group considering report permissions - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<FindGroupDTO>) - public async System.Threading.Tasks.Task>> ReportGetFindGroupListAsyncWithHttpInfo (string reportId) - { - // verify the required parameter 'reportId' is set - if (reportId == null) - throw new ApiException(400, "Missing required parameter 'reportId' when calling ReportApi->ReportGetFindGroupList"); - - var localVarPath = "/api/Report/FindGroupList/{reportId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (reportId != null) localVarPathParams.Add("reportId", this.Configuration.ApiClient.ParameterToString(reportId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetFindGroupList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Returns the list of all the report available for the user - /// - /// Thrown when fails to make API call - /// - public void ReportGetList () - { - ReportGetListWithHttpInfo(); - } - - /// - /// Returns the list of all the report available for the user - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - public ApiResponse ReportGetListWithHttpInfo () - { - - var localVarPath = "/api/Report"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Returns the list of all the report available for the user - /// - /// Thrown when fails to make API call - /// Task of void - public async System.Threading.Tasks.Task ReportGetListAsync () - { - await ReportGetListAsyncWithHttpInfo(); - - } - - /// - /// Returns the list of all the report available for the user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ReportGetListAsyncWithHttpInfo () - { - - var localVarPath = "/api/Report"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Returns permissions of report - /// - /// Thrown when fails to make API call - /// - /// PermissionsDTO - public PermissionsDTO ReportGetPermission (string id) - { - ApiResponse localVarResponse = ReportGetPermissionWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Returns permissions of report - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of PermissionsDTO - public ApiResponse< PermissionsDTO > ReportGetPermissionWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ReportApi->ReportGetPermission"); - - var localVarPath = "/api/Report/{id}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// Returns permissions of report - /// - /// Thrown when fails to make API call - /// - /// Task of PermissionsDTO - public async System.Threading.Tasks.Task ReportGetPermissionAsync (string id) - { - ApiResponse localVarResponse = await ReportGetPermissionAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// Returns permissions of report - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (PermissionsDTO) - public async System.Threading.Tasks.Task> ReportGetPermissionAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ReportApi->ReportGetPermission"); - - var localVarPath = "/api/Report/{id}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// Gets report data source - /// - /// Thrown when fails to make API call - /// - /// - /// Object - public Object ReportGetReportDataSource (string findGroupId, string reportId) - { - ApiResponse localVarResponse = ReportGetReportDataSourceWithHttpInfo(findGroupId, reportId); - return localVarResponse.Data; - } - - /// - /// Gets report data source - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object - public ApiResponse< Object > ReportGetReportDataSourceWithHttpInfo (string findGroupId, string reportId) - { - // verify the required parameter 'findGroupId' is set - if (findGroupId == null) - throw new ApiException(400, "Missing required parameter 'findGroupId' when calling ReportApi->ReportGetReportDataSource"); - // verify the required parameter 'reportId' is set - if (reportId == null) - throw new ApiException(400, "Missing required parameter 'reportId' when calling ReportApi->ReportGetReportDataSource"); - - var localVarPath = "/api/Report/DataSource/{findGroupId}/{reportId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (findGroupId != null) localVarPathParams.Add("findGroupId", this.Configuration.ApiClient.ParameterToString(findGroupId)); // path parameter - if (reportId != null) localVarPathParams.Add("reportId", this.Configuration.ApiClient.ParameterToString(reportId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetReportDataSource", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// Gets report data source - /// - /// Thrown when fails to make API call - /// - /// - /// Task of Object - public async System.Threading.Tasks.Task ReportGetReportDataSourceAsync (string findGroupId, string reportId) - { - ApiResponse localVarResponse = await ReportGetReportDataSourceAsyncWithHttpInfo(findGroupId, reportId); - return localVarResponse.Data; - - } - - /// - /// Gets report data source - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ReportGetReportDataSourceAsyncWithHttpInfo (string findGroupId, string reportId) - { - // verify the required parameter 'findGroupId' is set - if (findGroupId == null) - throw new ApiException(400, "Missing required parameter 'findGroupId' when calling ReportApi->ReportGetReportDataSource"); - // verify the required parameter 'reportId' is set - if (reportId == null) - throw new ApiException(400, "Missing required parameter 'reportId' when calling ReportApi->ReportGetReportDataSource"); - - var localVarPath = "/api/Report/DataSource/{findGroupId}/{reportId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (findGroupId != null) localVarPathParams.Add("findGroupId", this.Configuration.ApiClient.ParameterToString(findGroupId)); // path parameter - if (reportId != null) localVarPathParams.Add("reportId", this.Configuration.ApiClient.ParameterToString(reportId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetReportDataSource", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// Gets report parameters datasource - /// - /// Thrown when fails to make API call - /// - /// - /// List<ReportParamDataSourceDTO> - public List ReportGetReportParamDataSourceByFindGroupId (string findGroupId, string reportId) - { - ApiResponse> localVarResponse = ReportGetReportParamDataSourceByFindGroupIdWithHttpInfo(findGroupId, reportId); - return localVarResponse.Data; - } - - /// - /// Gets report parameters datasource - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of List<ReportParamDataSourceDTO> - public ApiResponse< List > ReportGetReportParamDataSourceByFindGroupIdWithHttpInfo (string findGroupId, string reportId) - { - // verify the required parameter 'findGroupId' is set - if (findGroupId == null) - throw new ApiException(400, "Missing required parameter 'findGroupId' when calling ReportApi->ReportGetReportParamDataSourceByFindGroupId"); - // verify the required parameter 'reportId' is set - if (reportId == null) - throw new ApiException(400, "Missing required parameter 'reportId' when calling ReportApi->ReportGetReportParamDataSourceByFindGroupId"); - - var localVarPath = "/api/Report/ParamDataSource/{findGroupId}/{reportId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (findGroupId != null) localVarPathParams.Add("findGroupId", this.Configuration.ApiClient.ParameterToString(findGroupId)); // path parameter - if (reportId != null) localVarPathParams.Add("reportId", this.Configuration.ApiClient.ParameterToString(reportId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetReportParamDataSourceByFindGroupId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Gets report parameters datasource - /// - /// Thrown when fails to make API call - /// - /// - /// Task of List<ReportParamDataSourceDTO> - public async System.Threading.Tasks.Task> ReportGetReportParamDataSourceByFindGroupIdAsync (string findGroupId, string reportId) - { - ApiResponse> localVarResponse = await ReportGetReportParamDataSourceByFindGroupIdAsyncWithHttpInfo(findGroupId, reportId); - return localVarResponse.Data; - - } - - /// - /// Gets report parameters datasource - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (List<ReportParamDataSourceDTO>) - public async System.Threading.Tasks.Task>> ReportGetReportParamDataSourceByFindGroupIdAsyncWithHttpInfo (string findGroupId, string reportId) - { - // verify the required parameter 'findGroupId' is set - if (findGroupId == null) - throw new ApiException(400, "Missing required parameter 'findGroupId' when calling ReportApi->ReportGetReportParamDataSourceByFindGroupId"); - // verify the required parameter 'reportId' is set - if (reportId == null) - throw new ApiException(400, "Missing required parameter 'reportId' when calling ReportApi->ReportGetReportParamDataSourceByFindGroupId"); - - var localVarPath = "/api/Report/ParamDataSource/{findGroupId}/{reportId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (findGroupId != null) localVarPathParams.Add("findGroupId", this.Configuration.ApiClient.ParameterToString(findGroupId)); // path parameter - if (reportId != null) localVarPathParams.Add("reportId", this.Configuration.ApiClient.ParameterToString(reportId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetReportParamDataSourceByFindGroupId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// Gets the report template file - /// - /// Thrown when fails to make API call - /// Report id - /// Determine if report references are visible (optional) - /// string - public string ReportGetReportTemplate (string id, bool? editMode = null) - { - ApiResponse localVarResponse = ReportGetReportTemplateWithHttpInfo(id, editMode); - return localVarResponse.Data; - } - - /// - /// Gets the report template file - /// - /// Thrown when fails to make API call - /// Report id - /// Determine if report references are visible (optional) - /// ApiResponse of string - public ApiResponse< string > ReportGetReportTemplateWithHttpInfo (string id, bool? editMode = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ReportApi->ReportGetReportTemplate"); - - var localVarPath = "/api/Report/{id}/Template"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (editMode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "editMode", editMode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetReportTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// Gets the report template file - /// - /// Thrown when fails to make API call - /// Report id - /// Determine if report references are visible (optional) - /// Task of string - public async System.Threading.Tasks.Task ReportGetReportTemplateAsync (string id, bool? editMode = null) - { - ApiResponse localVarResponse = await ReportGetReportTemplateAsyncWithHttpInfo(id, editMode); - return localVarResponse.Data; - - } - - /// - /// Gets the report template file - /// - /// Thrown when fails to make API call - /// Report id - /// Determine if report references are visible (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> ReportGetReportTemplateAsyncWithHttpInfo (string id, bool? editMode = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ReportApi->ReportGetReportTemplate"); - - var localVarPath = "/api/Report/{id}/Template"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (editMode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "editMode", editMode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportGetReportTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// Executes a query for internal data source in edit mode - /// - /// Thrown when fails to make API call - /// Object - public Object ReportHandlerEditMode () - { - ApiResponse localVarResponse = ReportHandlerEditModeWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Executes a query for internal data source in edit mode - /// - /// Thrown when fails to make API call - /// ApiResponse of Object - public ApiResponse< Object > ReportHandlerEditModeWithHttpInfo () - { - - var localVarPath = "/api/Report/DataSourceHandlerForEdit"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportHandlerEditMode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// Executes a query for internal data source in edit mode - /// - /// Thrown when fails to make API call - /// Task of Object - public async System.Threading.Tasks.Task ReportHandlerEditModeAsync () - { - ApiResponse localVarResponse = await ReportHandlerEditModeAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// Executes a query for internal data source in edit mode - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ReportHandlerEditModeAsyncWithHttpInfo () - { - - var localVarPath = "/api/Report/DataSourceHandlerForEdit"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportHandlerEditMode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// Executes a query for internal data source in running mode - /// - /// Thrown when fails to make API call - /// Object - public Object ReportHandlerRunningMode () - { - ApiResponse localVarResponse = ReportHandlerRunningModeWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Executes a query for internal data source in running mode - /// - /// Thrown when fails to make API call - /// ApiResponse of Object - public ApiResponse< Object > ReportHandlerRunningModeWithHttpInfo () - { - - var localVarPath = "/api/Report/DataSourceHandlerForRun"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportHandlerRunningMode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// Executes a query for internal data source in running mode - /// - /// Thrown when fails to make API call - /// Task of Object - public async System.Threading.Tasks.Task ReportHandlerRunningModeAsync () - { - ApiResponse localVarResponse = await ReportHandlerRunningModeAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// Executes a query for internal data source in running mode - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ReportHandlerRunningModeAsyncWithHttpInfo () - { - - var localVarPath = "/api/Report/DataSourceHandlerForRun"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportHandlerRunningMode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// Inserts a new report - /// - /// Thrown when fails to make API call - /// (optional) - /// ReportDTO - public ReportDTO ReportInsertReport (ReportDTO reportdto = null) - { - ApiResponse localVarResponse = ReportInsertReportWithHttpInfo(reportdto); - return localVarResponse.Data; - } - - /// - /// Inserts a new report - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ReportDTO - public ApiResponse< ReportDTO > ReportInsertReportWithHttpInfo (ReportDTO reportdto = null) - { - - var localVarPath = "/api/Report/Insert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (reportdto != null && reportdto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(reportdto); // http body (model) parameter - } - else - { - localVarPostBody = reportdto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportInsertReport", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ReportDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportDTO))); - } - - /// - /// Inserts a new report - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ReportDTO - public async System.Threading.Tasks.Task ReportInsertReportAsync (ReportDTO reportdto = null) - { - ApiResponse localVarResponse = await ReportInsertReportAsyncWithHttpInfo(reportdto); - return localVarResponse.Data; - - } - - /// - /// Inserts a new report - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ReportDTO) - public async System.Threading.Tasks.Task> ReportInsertReportAsyncWithHttpInfo (ReportDTO reportdto = null) - { - - var localVarPath = "/api/Report/Insert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (reportdto != null && reportdto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(reportdto); // http body (model) parameter - } - else - { - localVarPostBody = reportdto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportInsertReport", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ReportDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportDTO))); - } - - /// - /// Sets report permissions - /// - /// Thrown when fails to make API call - /// Report Identifier - /// Permissions data - /// - public void ReportSetPermission (string id, PermissionsDTO permissions) - { - ReportSetPermissionWithHttpInfo(id, permissions); - } - - /// - /// Sets report permissions - /// - /// Thrown when fails to make API call - /// Report Identifier - /// Permissions data - /// ApiResponse of Object(void) - public ApiResponse ReportSetPermissionWithHttpInfo (string id, PermissionsDTO permissions) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ReportApi->ReportSetPermission"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling ReportApi->ReportSetPermission"); - - var localVarPath = "/api/Report/{id}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportSetPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Sets report permissions - /// - /// Thrown when fails to make API call - /// Report Identifier - /// Permissions data - /// Task of void - public async System.Threading.Tasks.Task ReportSetPermissionAsync (string id, PermissionsDTO permissions) - { - await ReportSetPermissionAsyncWithHttpInfo(id, permissions); - - } - - /// - /// Sets report permissions - /// - /// Thrown when fails to make API call - /// Report Identifier - /// Permissions data - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ReportSetPermissionAsyncWithHttpInfo (string id, PermissionsDTO permissions) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ReportApi->ReportSetPermission"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling ReportApi->ReportSetPermission"); - - var localVarPath = "/api/Report/{id}/Permissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportSetPermission", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Updates the report - /// - /// Thrown when fails to make API call - /// (optional) - /// ReportDTO - public ReportDTO ReportUpdateReport (ReportDTO reportdto = null) - { - ApiResponse localVarResponse = ReportUpdateReportWithHttpInfo(reportdto); - return localVarResponse.Data; - } - - /// - /// Updates the report - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ReportDTO - public ApiResponse< ReportDTO > ReportUpdateReportWithHttpInfo (ReportDTO reportdto = null) - { - - var localVarPath = "/api/Report/Update"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (reportdto != null && reportdto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(reportdto); // http body (model) parameter - } - else - { - localVarPostBody = reportdto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportUpdateReport", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ReportDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportDTO))); - } - - /// - /// Updates the report - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ReportDTO - public async System.Threading.Tasks.Task ReportUpdateReportAsync (ReportDTO reportdto = null) - { - ApiResponse localVarResponse = await ReportUpdateReportAsyncWithHttpInfo(reportdto); - return localVarResponse.Data; - - } - - /// - /// Updates the report - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ReportDTO) - public async System.Threading.Tasks.Task> ReportUpdateReportAsyncWithHttpInfo (ReportDTO reportdto = null) - { - - var localVarPath = "/api/Report/Update"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (reportdto != null && reportdto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(reportdto); // http body (model) parameter - } - else - { - localVarPostBody = reportdto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportUpdateReport", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ReportDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportDTO))); - } - - /// - /// Updates the template file of the report - /// - /// Thrown when fails to make API call - /// Report id - /// Report template - /// - public void ReportUpdateReportTemplate (string id, string reportTemplate) - { - ReportUpdateReportTemplateWithHttpInfo(id, reportTemplate); - } - - /// - /// Updates the template file of the report - /// - /// Thrown when fails to make API call - /// Report id - /// Report template - /// ApiResponse of Object(void) - public ApiResponse ReportUpdateReportTemplateWithHttpInfo (string id, string reportTemplate) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ReportApi->ReportUpdateReportTemplate"); - // verify the required parameter 'reportTemplate' is set - if (reportTemplate == null) - throw new ApiException(400, "Missing required parameter 'reportTemplate' when calling ReportApi->ReportUpdateReportTemplate"); - - var localVarPath = "/api/Report/{id}/UpdateTemplate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (reportTemplate != null && reportTemplate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(reportTemplate); // http body (model) parameter - } - else - { - localVarPostBody = reportTemplate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportUpdateReportTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Updates the template file of the report - /// - /// Thrown when fails to make API call - /// Report id - /// Report template - /// Task of void - public async System.Threading.Tasks.Task ReportUpdateReportTemplateAsync (string id, string reportTemplate) - { - await ReportUpdateReportTemplateAsyncWithHttpInfo(id, reportTemplate); - - } - - /// - /// Updates the template file of the report - /// - /// Thrown when fails to make API call - /// Report id - /// Report template - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ReportUpdateReportTemplateAsyncWithHttpInfo (string id, string reportTemplate) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ReportApi->ReportUpdateReportTemplate"); - // verify the required parameter 'reportTemplate' is set - if (reportTemplate == null) - throw new ApiException(400, "Missing required parameter 'reportTemplate' when calling ReportApi->ReportUpdateReportTemplate"); - - var localVarPath = "/api/Report/{id}/UpdateTemplate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (reportTemplate != null && reportTemplate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(reportTemplate); // http body (model) parameter - } - else - { - localVarPostBody = reportTemplate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ReportUpdateReportTemplate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/RevisionsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/RevisionsApi.cs deleted file mode 100644 index 8fad948..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/RevisionsApi.cs +++ /dev/null @@ -1,944 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IRevisionsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes a revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Revision Identifier - /// - void RevisionsDelete (int? revisionId); - - /// - /// This call deletes a revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Revision Identifier - /// ApiResponse of Object(void) - ApiResponse RevisionsDeleteWithHttpInfo (int? revisionId); - /// - /// This call returns all revisions of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// List<RevisionDTO> - List RevisionsGetByDocnumber (int? docnumber); - - /// - /// This call returns all revisions of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of List<RevisionDTO> - ApiResponse> RevisionsGetByDocnumberWithHttpInfo (int? docnumber); - /// - /// This call adds a revision from an existent revision of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Revision number to start - /// Advanced options - /// - void RevisionsRevisionByRevision (int? docNumber, int? revision, int? option); - - /// - /// This call adds a revision from an existent revision of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Revision number to start - /// Advanced options - /// ApiResponse of Object(void) - ApiResponse RevisionsRevisionByRevisionWithHttpInfo (int? docNumber, int? revision, int? option); - /// - /// This call adds a revision from an existent revision of a profile in a task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// Process Document Identifier - /// Revision number to start - /// Advanced options - /// - void RevisionsRevisionByRevision_0 (int? taskWorkId, int? processDocId, int? revision, int? option); - - /// - /// This call adds a revision from an existent revision of a profile in a task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// Process Document Identifier - /// Revision number to start - /// Advanced options - /// ApiResponse of Object(void) - ApiResponse RevisionsRevisionByRevision_0WithHttpInfo (int? taskWorkId, int? processDocId, int? revision, int? option); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes a revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Revision Identifier - /// Task of void - System.Threading.Tasks.Task RevisionsDeleteAsync (int? revisionId); - - /// - /// This call deletes a revision - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Revision Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> RevisionsDeleteAsyncWithHttpInfo (int? revisionId); - /// - /// This call returns all revisions of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of List<RevisionDTO> - System.Threading.Tasks.Task> RevisionsGetByDocnumberAsync (int? docnumber); - - /// - /// This call returns all revisions of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (List<RevisionDTO>) - System.Threading.Tasks.Task>> RevisionsGetByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call adds a revision from an existent revision of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Revision number to start - /// Advanced options - /// Task of void - System.Threading.Tasks.Task RevisionsRevisionByRevisionAsync (int? docNumber, int? revision, int? option); - - /// - /// This call adds a revision from an existent revision of a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Revision number to start - /// Advanced options - /// Task of ApiResponse - System.Threading.Tasks.Task> RevisionsRevisionByRevisionAsyncWithHttpInfo (int? docNumber, int? revision, int? option); - /// - /// This call adds a revision from an existent revision of a profile in a task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// Process Document Identifier - /// Revision number to start - /// Advanced options - /// Task of void - System.Threading.Tasks.Task RevisionsRevisionByRevision_0Async (int? taskWorkId, int? processDocId, int? revision, int? option); - - /// - /// This call adds a revision from an existent revision of a profile in a task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// Process Document Identifier - /// Revision number to start - /// Advanced options - /// Task of ApiResponse - System.Threading.Tasks.Task> RevisionsRevisionByRevision_0AsyncWithHttpInfo (int? taskWorkId, int? processDocId, int? revision, int? option); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class RevisionsApi : IRevisionsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public RevisionsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public RevisionsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes a revision - /// - /// Thrown when fails to make API call - /// Revision Identifier - /// - public void RevisionsDelete (int? revisionId) - { - RevisionsDeleteWithHttpInfo(revisionId); - } - - /// - /// This call deletes a revision - /// - /// Thrown when fails to make API call - /// Revision Identifier - /// ApiResponse of Object(void) - public ApiResponse RevisionsDeleteWithHttpInfo (int? revisionId) - { - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling RevisionsApi->RevisionsDelete"); - - var localVarPath = "/api/Revisions/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RevisionsDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a revision - /// - /// Thrown when fails to make API call - /// Revision Identifier - /// Task of void - public async System.Threading.Tasks.Task RevisionsDeleteAsync (int? revisionId) - { - await RevisionsDeleteAsyncWithHttpInfo(revisionId); - - } - - /// - /// This call deletes a revision - /// - /// Thrown when fails to make API call - /// Revision Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> RevisionsDeleteAsyncWithHttpInfo (int? revisionId) - { - // verify the required parameter 'revisionId' is set - if (revisionId == null) - throw new ApiException(400, "Missing required parameter 'revisionId' when calling RevisionsApi->RevisionsDelete"); - - var localVarPath = "/api/Revisions/{revisionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (revisionId != null) localVarPathParams.Add("revisionId", this.Configuration.ApiClient.ParameterToString(revisionId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RevisionsDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all revisions of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// List<RevisionDTO> - public List RevisionsGetByDocnumber (int? docnumber) - { - ApiResponse> localVarResponse = RevisionsGetByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns all revisions of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of List<RevisionDTO> - public ApiResponse< List > RevisionsGetByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling RevisionsApi->RevisionsGetByDocnumber"); - - var localVarPath = "/api/Revisions/byDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RevisionsGetByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all revisions of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of List<RevisionDTO> - public async System.Threading.Tasks.Task> RevisionsGetByDocnumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await RevisionsGetByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns all revisions of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (List<RevisionDTO>) - public async System.Threading.Tasks.Task>> RevisionsGetByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling RevisionsApi->RevisionsGetByDocnumber"); - - var localVarPath = "/api/Revisions/byDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RevisionsGetByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds a revision from an existent revision of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Revision number to start - /// Advanced options - /// - public void RevisionsRevisionByRevision (int? docNumber, int? revision, int? option) - { - RevisionsRevisionByRevisionWithHttpInfo(docNumber, revision, option); - } - - /// - /// This call adds a revision from an existent revision of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Revision number to start - /// Advanced options - /// ApiResponse of Object(void) - public ApiResponse RevisionsRevisionByRevisionWithHttpInfo (int? docNumber, int? revision, int? option) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling RevisionsApi->RevisionsRevisionByRevision"); - // verify the required parameter 'revision' is set - if (revision == null) - throw new ApiException(400, "Missing required parameter 'revision' when calling RevisionsApi->RevisionsRevisionByRevision"); - // verify the required parameter 'option' is set - if (option == null) - throw new ApiException(400, "Missing required parameter 'option' when calling RevisionsApi->RevisionsRevisionByRevision"); - - var localVarPath = "/api/Revisions/{docNumber}/{revision}/{option}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (revision != null) localVarPathParams.Add("revision", this.Configuration.ApiClient.ParameterToString(revision)); // path parameter - if (option != null) localVarPathParams.Add("option", this.Configuration.ApiClient.ParameterToString(option)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RevisionsRevisionByRevision", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds a revision from an existent revision of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Revision number to start - /// Advanced options - /// Task of void - public async System.Threading.Tasks.Task RevisionsRevisionByRevisionAsync (int? docNumber, int? revision, int? option) - { - await RevisionsRevisionByRevisionAsyncWithHttpInfo(docNumber, revision, option); - - } - - /// - /// This call adds a revision from an existent revision of a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Revision number to start - /// Advanced options - /// Task of ApiResponse - public async System.Threading.Tasks.Task> RevisionsRevisionByRevisionAsyncWithHttpInfo (int? docNumber, int? revision, int? option) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling RevisionsApi->RevisionsRevisionByRevision"); - // verify the required parameter 'revision' is set - if (revision == null) - throw new ApiException(400, "Missing required parameter 'revision' when calling RevisionsApi->RevisionsRevisionByRevision"); - // verify the required parameter 'option' is set - if (option == null) - throw new ApiException(400, "Missing required parameter 'option' when calling RevisionsApi->RevisionsRevisionByRevision"); - - var localVarPath = "/api/Revisions/{docNumber}/{revision}/{option}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - if (revision != null) localVarPathParams.Add("revision", this.Configuration.ApiClient.ParameterToString(revision)); // path parameter - if (option != null) localVarPathParams.Add("option", this.Configuration.ApiClient.ParameterToString(option)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RevisionsRevisionByRevision", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds a revision from an existent revision of a profile in a task - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// Process Document Identifier - /// Revision number to start - /// Advanced options - /// - public void RevisionsRevisionByRevision_0 (int? taskWorkId, int? processDocId, int? revision, int? option) - { - RevisionsRevisionByRevision_0WithHttpInfo(taskWorkId, processDocId, revision, option); - } - - /// - /// This call adds a revision from an existent revision of a profile in a task - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// Process Document Identifier - /// Revision number to start - /// Advanced options - /// ApiResponse of Object(void) - public ApiResponse RevisionsRevisionByRevision_0WithHttpInfo (int? taskWorkId, int? processDocId, int? revision, int? option) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling RevisionsApi->RevisionsRevisionByRevision_0"); - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling RevisionsApi->RevisionsRevisionByRevision_0"); - // verify the required parameter 'revision' is set - if (revision == null) - throw new ApiException(400, "Missing required parameter 'revision' when calling RevisionsApi->RevisionsRevisionByRevision_0"); - // verify the required parameter 'option' is set - if (option == null) - throw new ApiException(400, "Missing required parameter 'option' when calling RevisionsApi->RevisionsRevisionByRevision_0"); - - var localVarPath = "/api/Revisions/task/{taskWorkId}/{processDocId}/{revision}/{option}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (revision != null) localVarPathParams.Add("revision", this.Configuration.ApiClient.ParameterToString(revision)); // path parameter - if (option != null) localVarPathParams.Add("option", this.Configuration.ApiClient.ParameterToString(option)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RevisionsRevisionByRevision_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds a revision from an existent revision of a profile in a task - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// Process Document Identifier - /// Revision number to start - /// Advanced options - /// Task of void - public async System.Threading.Tasks.Task RevisionsRevisionByRevision_0Async (int? taskWorkId, int? processDocId, int? revision, int? option) - { - await RevisionsRevisionByRevision_0AsyncWithHttpInfo(taskWorkId, processDocId, revision, option); - - } - - /// - /// This call adds a revision from an existent revision of a profile in a task - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// Process Document Identifier - /// Revision number to start - /// Advanced options - /// Task of ApiResponse - public async System.Threading.Tasks.Task> RevisionsRevisionByRevision_0AsyncWithHttpInfo (int? taskWorkId, int? processDocId, int? revision, int? option) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling RevisionsApi->RevisionsRevisionByRevision_0"); - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling RevisionsApi->RevisionsRevisionByRevision_0"); - // verify the required parameter 'revision' is set - if (revision == null) - throw new ApiException(400, "Missing required parameter 'revision' when calling RevisionsApi->RevisionsRevisionByRevision_0"); - // verify the required parameter 'option' is set - if (option == null) - throw new ApiException(400, "Missing required parameter 'option' when calling RevisionsApi->RevisionsRevisionByRevision_0"); - - var localVarPath = "/api/Revisions/task/{taskWorkId}/{processDocId}/{revision}/{option}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (revision != null) localVarPathParams.Add("revision", this.Configuration.ApiClient.ParameterToString(revision)); // path parameter - if (option != null) localVarPathParams.Add("option", this.Configuration.ApiClient.ParameterToString(option)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RevisionsRevisionByRevision_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/SearchesApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/SearchesApi.cs deleted file mode 100644 index a1559fa..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/SearchesApi.cs +++ /dev/null @@ -1,3696 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ISearchesApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call delete the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - void SearchesDelete (); - - /// - /// This call delete the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - ApiResponse SearchesDeleteWithHttpInfo (); - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// SearchDTO - SearchDTO SearchesGet (); - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// ApiResponse of SearchDTO - ApiResponse SearchesGetWithHttpInfo (); - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// List<FieldBaseForSearchDTO> - List SearchesGetAdditionalByClasse (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// ApiResponse of List<FieldBaseForSearchDTO> - ApiResponse> SearchesGetAdditionalByClasseWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code - /// List<FieldBaseForSearchDTO> - List SearchesGetAdditionalByClasseOld (int? tipoUno, int? tipoDue, int? tipoTre, string aoo); - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code - /// ApiResponse of List<FieldBaseForSearchDTO> - ApiResponse> SearchesGetAdditionalByClasseOldWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo); - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldFilterDTO - FieldFilterDTO SearchesGetFiltersForSearch (FieldValuesSearchCriteriaDto fieldcriteria = null); - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldFilterDTO - ApiResponse SearchesGetFiltersForSearchWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null); - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// string - string SearchesGetFormulaForSearch (FieldFormulaCalculateCriteriaDto fieldcriteria = null); - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of string - ApiResponse SearchesGetFormulaForSearchWithHttpInfo (FieldFormulaCalculateCriteriaDto fieldcriteria = null); - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// SearchDTO - SearchDTO SearchesGetLastSearch (); - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// ApiResponse of SearchDTO - ApiResponse SearchesGetLastSearchWithHttpInfo (); - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// SearchDTO - SearchDTO SearchesGetSearchForClasseBox (string additionalFieldName, ProfileDTO profile = null); - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// ApiResponse of SearchDTO - ApiResponse SearchesGetSearchForClasseBoxWithHttpInfo (string additionalFieldName, ProfileDTO profile = null); - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SelectDTO - SelectDTO SearchesGetSelect (); - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - ApiResponse SearchesGetSelectWithHttpInfo (); - /// - /// This call returns a new select dto by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// SelectDTO - SelectDTO SearchesGetSelect_0 (int? documentType); - - /// - /// This call returns a new select dto by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// ApiResponse of SelectDTO - ApiResponse SearchesGetSelect_0WithHttpInfo (int? documentType); - /// - /// This call returns a new select dto by document type levels - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// SelectDTO - SelectDTO SearchesGetSelect_1 (int? documentType, int? tipo2, int? tipo3); - - /// - /// This call returns a new select dto by document type levels - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// ApiResponse of SelectDTO - ApiResponse SearchesGetSelect_1WithHttpInfo (int? documentType, int? tipo2, int? tipo3); - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldValuesDTO - FieldValuesDTO SearchesGetValuesForSearch (FieldValuesSearchCriteriaDto fieldcriteria = null); - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldValuesDTO - ApiResponse SearchesGetValuesForSearchWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null); - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use api/v3/Searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// List<RowSearchResult> - List SearchesLastDocuments (int? maxRows, SelectDTO selectDto); - - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use api/v3/Searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// ApiResponse of List<RowSearchResult> - ApiResponse> SearchesLastDocumentsWithHttpInfo (int? maxRows, SelectDTO selectDto); - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// (optional) - /// List<RowSearchResult> - List SearchesPostSearch (SearchCriteriaDto searchwebapidto = null); - - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of List<RowSearchResult> - ApiResponse> SearchesPostSearchWithHttpInfo (SearchCriteriaDto searchwebapidto = null); - /// - /// This call saves the default select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object representing the select - /// - void SearchesPostSelect (SelectDTO selectDto); - - /// - /// This call saves the default select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object representing the select - /// ApiResponse of Object(void) - ApiResponse SearchesPostSelectWithHttpInfo (SelectDTO selectDto); - /// - /// This call deletes a possible custom select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - void SearchesResetSelect (); - - /// - /// This call deletes a possible custom select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - ApiResponse SearchesResetSelectWithHttpInfo (); - /// - /// This call saves the default search for the user - /// - /// - /// This method is deprecated. Use /api/v3/Searches/defaultsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// - void SearchesSetDefaultSearch (SearchCriteriaDto searchwebapidto = null); - - /// - /// This call saves the default search for the user - /// - /// - /// This method is deprecated. Use /api/v3/Searches/defaultsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - ApiResponse SearchesSetDefaultSearchWithHttpInfo (SearchCriteriaDto searchwebapidto = null); - /// - /// This call saves the last search for the user - /// - /// - /// This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// - void SearchesSetLastSearch (SearchCriteriaDto searchwebapidto = null); - - /// - /// This call saves the last search for the user - /// - /// - /// This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - ApiResponse SearchesSetLastSearchWithHttpInfo (SearchCriteriaDto searchwebapidto = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call delete the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of void - System.Threading.Tasks.Task SearchesDeleteAsync (); - - /// - /// This call delete the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - System.Threading.Tasks.Task> SearchesDeleteAsyncWithHttpInfo (); - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// Task of SearchDTO - System.Threading.Tasks.Task SearchesGetAsync (); - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SearchDTO) - System.Threading.Tasks.Task> SearchesGetAsyncWithHttpInfo (); - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// Task of List<FieldBaseForSearchDTO> - System.Threading.Tasks.Task> SearchesGetAdditionalByClasseAsync (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// Task of ApiResponse (List<FieldBaseForSearchDTO>) - System.Threading.Tasks.Task>> SearchesGetAdditionalByClasseAsyncWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code - /// Task of List<FieldBaseForSearchDTO> - System.Threading.Tasks.Task> SearchesGetAdditionalByClasseOldAsync (int? tipoUno, int? tipoDue, int? tipoTre, string aoo); - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code - /// Task of ApiResponse (List<FieldBaseForSearchDTO>) - System.Threading.Tasks.Task>> SearchesGetAdditionalByClasseOldAsyncWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo); - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldFilterDTO - System.Threading.Tasks.Task SearchesGetFiltersForSearchAsync (FieldValuesSearchCriteriaDto fieldcriteria = null); - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldFilterDTO) - System.Threading.Tasks.Task> SearchesGetFiltersForSearchAsyncWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null); - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of string - System.Threading.Tasks.Task SearchesGetFormulaForSearchAsync (FieldFormulaCalculateCriteriaDto fieldcriteria = null); - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> SearchesGetFormulaForSearchAsyncWithHttpInfo (FieldFormulaCalculateCriteriaDto fieldcriteria = null); - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// Task of SearchDTO - System.Threading.Tasks.Task SearchesGetLastSearchAsync (); - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SearchDTO) - System.Threading.Tasks.Task> SearchesGetLastSearchAsyncWithHttpInfo (); - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// Task of SearchDTO - System.Threading.Tasks.Task SearchesGetSearchForClasseBoxAsync (string additionalFieldName, ProfileDTO profile = null); - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// Task of ApiResponse (SearchDTO) - System.Threading.Tasks.Task> SearchesGetSearchForClasseBoxAsyncWithHttpInfo (string additionalFieldName, ProfileDTO profile = null); - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - System.Threading.Tasks.Task SearchesGetSelectAsync (); - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> SearchesGetSelectAsyncWithHttpInfo (); - /// - /// This call returns a new select dto by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of SelectDTO - System.Threading.Tasks.Task SearchesGetSelect_0Async (int? documentType); - - /// - /// This call returns a new select dto by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> SearchesGetSelect_0AsyncWithHttpInfo (int? documentType); - /// - /// This call returns a new select dto by document type levels - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Task of SelectDTO - System.Threading.Tasks.Task SearchesGetSelect_1Async (int? documentType, int? tipo2, int? tipo3); - - /// - /// This call returns a new select dto by document type levels - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> SearchesGetSelect_1AsyncWithHttpInfo (int? documentType, int? tipo2, int? tipo3); - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldValuesDTO - System.Threading.Tasks.Task SearchesGetValuesForSearchAsync (FieldValuesSearchCriteriaDto fieldcriteria = null); - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldValuesDTO) - System.Threading.Tasks.Task> SearchesGetValuesForSearchAsyncWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null); - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use api/v3/Searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> SearchesLastDocumentsAsync (int? maxRows, SelectDTO selectDto); - - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use api/v3/Searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> SearchesLastDocumentsAsyncWithHttpInfo (int? maxRows, SelectDTO selectDto); - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> SearchesPostSearchAsync (SearchCriteriaDto searchwebapidto = null); - - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> SearchesPostSearchAsyncWithHttpInfo (SearchCriteriaDto searchwebapidto = null); - /// - /// This call saves the default select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object representing the select - /// Task of void - System.Threading.Tasks.Task SearchesPostSelectAsync (SelectDTO selectDto); - - /// - /// This call saves the default select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object representing the select - /// Task of ApiResponse - System.Threading.Tasks.Task> SearchesPostSelectAsyncWithHttpInfo (SelectDTO selectDto); - /// - /// This call deletes a possible custom select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of void - System.Threading.Tasks.Task SearchesResetSelectAsync (); - - /// - /// This call deletes a possible custom select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - System.Threading.Tasks.Task> SearchesResetSelectAsyncWithHttpInfo (); - /// - /// This call saves the default search for the user - /// - /// - /// This method is deprecated. Use /api/v3/Searches/defaultsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - System.Threading.Tasks.Task SearchesSetDefaultSearchAsync (SearchCriteriaDto searchwebapidto = null); - - /// - /// This call saves the default search for the user - /// - /// - /// This method is deprecated. Use /api/v3/Searches/defaultsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - System.Threading.Tasks.Task> SearchesSetDefaultSearchAsyncWithHttpInfo (SearchCriteriaDto searchwebapidto = null); - /// - /// This call saves the last search for the user - /// - /// - /// This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - System.Threading.Tasks.Task SearchesSetLastSearchAsync (SearchCriteriaDto searchwebapidto = null); - - /// - /// This call saves the last search for the user - /// - /// - /// This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - System.Threading.Tasks.Task> SearchesSetLastSearchAsyncWithHttpInfo (SearchCriteriaDto searchwebapidto = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class SearchesApi : ISearchesApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public SearchesApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public SearchesApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call delete the default search for the user - /// - /// Thrown when fails to make API call - /// - public void SearchesDelete () - { - SearchesDeleteWithHttpInfo(); - } - - /// - /// This call delete the default search for the user - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - public ApiResponse SearchesDeleteWithHttpInfo () - { - - var localVarPath = "/api/Searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call delete the default search for the user - /// - /// Thrown when fails to make API call - /// Task of void - public async System.Threading.Tasks.Task SearchesDeleteAsync () - { - await SearchesDeleteAsyncWithHttpInfo(); - - } - - /// - /// This call delete the default search for the user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SearchesDeleteAsyncWithHttpInfo () - { - - var localVarPath = "/api/Searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns a default search according to the Arxivar system settings This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// SearchDTO - public SearchDTO SearchesGet () - { - ApiResponse localVarResponse = SearchesGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a default search according to the Arxivar system settings This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// ApiResponse of SearchDTO - public ApiResponse< SearchDTO > SearchesGetWithHttpInfo () - { - - var localVarPath = "/api/Searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns a default search according to the Arxivar system settings This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// Task of SearchDTO - public async System.Threading.Tasks.Task SearchesGetAsync () - { - ApiResponse localVarResponse = await SearchesGetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a default search according to the Arxivar system settings This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SearchDTO) - public async System.Threading.Tasks.Task> SearchesGetAsyncWithHttpInfo () - { - - var localVarPath = "/api/Searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// List<FieldBaseForSearchDTO> - public List SearchesGetAdditionalByClasse (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - ApiResponse> localVarResponse = SearchesGetAdditionalByClasseWithHttpInfo(tipoUno, tipoDue, tipoTre, aoo); - return localVarResponse.Data; - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// ApiResponse of List<FieldBaseForSearchDTO> - public ApiResponse< List > SearchesGetAdditionalByClasseWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - // verify the required parameter 'tipoUno' is set - if (tipoUno == null) - throw new ApiException(400, "Missing required parameter 'tipoUno' when calling SearchesApi->SearchesGetAdditionalByClasse"); - // verify the required parameter 'tipoDue' is set - if (tipoDue == null) - throw new ApiException(400, "Missing required parameter 'tipoDue' when calling SearchesApi->SearchesGetAdditionalByClasse"); - // verify the required parameter 'tipoTre' is set - if (tipoTre == null) - throw new ApiException(400, "Missing required parameter 'tipoTre' when calling SearchesApi->SearchesGetAdditionalByClasse"); - - var localVarPath = "/api/Searches/Additional/{tipoUno}/{tipoDue}/{tipoTre}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tipoUno != null) localVarPathParams.Add("tipoUno", this.Configuration.ApiClient.ParameterToString(tipoUno)); // path parameter - if (tipoDue != null) localVarPathParams.Add("tipoDue", this.Configuration.ApiClient.ParameterToString(tipoDue)); // path parameter - if (tipoTre != null) localVarPathParams.Add("tipoTre", this.Configuration.ApiClient.ParameterToString(tipoTre)); // path parameter - if (aoo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "aoo", aoo)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetAdditionalByClasse", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// Task of List<FieldBaseForSearchDTO> - public async System.Threading.Tasks.Task> SearchesGetAdditionalByClasseAsync (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - ApiResponse> localVarResponse = await SearchesGetAdditionalByClasseAsyncWithHttpInfo(tipoUno, tipoDue, tipoTre, aoo); - return localVarResponse.Data; - - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// Task of ApiResponse (List<FieldBaseForSearchDTO>) - public async System.Threading.Tasks.Task>> SearchesGetAdditionalByClasseAsyncWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - // verify the required parameter 'tipoUno' is set - if (tipoUno == null) - throw new ApiException(400, "Missing required parameter 'tipoUno' when calling SearchesApi->SearchesGetAdditionalByClasse"); - // verify the required parameter 'tipoDue' is set - if (tipoDue == null) - throw new ApiException(400, "Missing required parameter 'tipoDue' when calling SearchesApi->SearchesGetAdditionalByClasse"); - // verify the required parameter 'tipoTre' is set - if (tipoTre == null) - throw new ApiException(400, "Missing required parameter 'tipoTre' when calling SearchesApi->SearchesGetAdditionalByClasse"); - - var localVarPath = "/api/Searches/Additional/{tipoUno}/{tipoDue}/{tipoTre}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tipoUno != null) localVarPathParams.Add("tipoUno", this.Configuration.ApiClient.ParameterToString(tipoUno)); // path parameter - if (tipoDue != null) localVarPathParams.Add("tipoDue", this.Configuration.ApiClient.ParameterToString(tipoDue)); // path parameter - if (tipoTre != null) localVarPathParams.Add("tipoTre", this.Configuration.ApiClient.ParameterToString(tipoTre)); // path parameter - if (aoo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "aoo", aoo)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetAdditionalByClasse", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code - /// List<FieldBaseForSearchDTO> - public List SearchesGetAdditionalByClasseOld (int? tipoUno, int? tipoDue, int? tipoTre, string aoo) - { - ApiResponse> localVarResponse = SearchesGetAdditionalByClasseOldWithHttpInfo(tipoUno, tipoDue, tipoTre, aoo); - return localVarResponse.Data; - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code - /// ApiResponse of List<FieldBaseForSearchDTO> - public ApiResponse< List > SearchesGetAdditionalByClasseOldWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo) - { - // verify the required parameter 'tipoUno' is set - if (tipoUno == null) - throw new ApiException(400, "Missing required parameter 'tipoUno' when calling SearchesApi->SearchesGetAdditionalByClasseOld"); - // verify the required parameter 'tipoDue' is set - if (tipoDue == null) - throw new ApiException(400, "Missing required parameter 'tipoDue' when calling SearchesApi->SearchesGetAdditionalByClasseOld"); - // verify the required parameter 'tipoTre' is set - if (tipoTre == null) - throw new ApiException(400, "Missing required parameter 'tipoTre' when calling SearchesApi->SearchesGetAdditionalByClasseOld"); - // verify the required parameter 'aoo' is set - if (aoo == null) - throw new ApiException(400, "Missing required parameter 'aoo' when calling SearchesApi->SearchesGetAdditionalByClasseOld"); - - var localVarPath = "/api/Searches/Additional/{tipoUno}/{tipoDue}/{tipoTre}/{aoo}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tipoUno != null) localVarPathParams.Add("tipoUno", this.Configuration.ApiClient.ParameterToString(tipoUno)); // path parameter - if (tipoDue != null) localVarPathParams.Add("tipoDue", this.Configuration.ApiClient.ParameterToString(tipoDue)); // path parameter - if (tipoTre != null) localVarPathParams.Add("tipoTre", this.Configuration.ApiClient.ParameterToString(tipoTre)); // path parameter - if (aoo != null) localVarPathParams.Add("aoo", this.Configuration.ApiClient.ParameterToString(aoo)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetAdditionalByClasseOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code - /// Task of List<FieldBaseForSearchDTO> - public async System.Threading.Tasks.Task> SearchesGetAdditionalByClasseOldAsync (int? tipoUno, int? tipoDue, int? tipoTre, string aoo) - { - ApiResponse> localVarResponse = await SearchesGetAdditionalByClasseOldAsyncWithHttpInfo(tipoUno, tipoDue, tipoTre, aoo); - return localVarResponse.Data; - - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code - /// Task of ApiResponse (List<FieldBaseForSearchDTO>) - public async System.Threading.Tasks.Task>> SearchesGetAdditionalByClasseOldAsyncWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo) - { - // verify the required parameter 'tipoUno' is set - if (tipoUno == null) - throw new ApiException(400, "Missing required parameter 'tipoUno' when calling SearchesApi->SearchesGetAdditionalByClasseOld"); - // verify the required parameter 'tipoDue' is set - if (tipoDue == null) - throw new ApiException(400, "Missing required parameter 'tipoDue' when calling SearchesApi->SearchesGetAdditionalByClasseOld"); - // verify the required parameter 'tipoTre' is set - if (tipoTre == null) - throw new ApiException(400, "Missing required parameter 'tipoTre' when calling SearchesApi->SearchesGetAdditionalByClasseOld"); - // verify the required parameter 'aoo' is set - if (aoo == null) - throw new ApiException(400, "Missing required parameter 'aoo' when calling SearchesApi->SearchesGetAdditionalByClasseOld"); - - var localVarPath = "/api/Searches/Additional/{tipoUno}/{tipoDue}/{tipoTre}/{aoo}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tipoUno != null) localVarPathParams.Add("tipoUno", this.Configuration.ApiClient.ParameterToString(tipoUno)); // path parameter - if (tipoDue != null) localVarPathParams.Add("tipoDue", this.Configuration.ApiClient.ParameterToString(tipoDue)); // path parameter - if (tipoTre != null) localVarPathParams.Add("tipoTre", this.Configuration.ApiClient.ParameterToString(tipoTre)); // path parameter - if (aoo != null) localVarPathParams.Add("aoo", this.Configuration.ApiClient.ParameterToString(aoo)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetAdditionalByClasseOld", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldFilterDTO - public FieldFilterDTO SearchesGetFiltersForSearch (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = SearchesGetFiltersForSearchWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldFilterDTO - public ApiResponse< FieldFilterDTO > SearchesGetFiltersForSearchWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/Searches/Filters"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetFiltersForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldFilterDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldFilterDTO))); - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldFilterDTO - public async System.Threading.Tasks.Task SearchesGetFiltersForSearchAsync (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = await SearchesGetFiltersForSearchAsyncWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldFilterDTO) - public async System.Threading.Tasks.Task> SearchesGetFiltersForSearchAsyncWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/Searches/Filters"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetFiltersForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldFilterDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldFilterDTO))); - } - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// string - public string SearchesGetFormulaForSearch (FieldFormulaCalculateCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = SearchesGetFormulaForSearchWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - } - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of string - public ApiResponse< string > SearchesGetFormulaForSearchWithHttpInfo (FieldFormulaCalculateCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/Searches/Formula"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetFormulaForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of string - public async System.Threading.Tasks.Task SearchesGetFormulaForSearchAsync (FieldFormulaCalculateCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = await SearchesGetFormulaForSearchAsyncWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - - } - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> SearchesGetFormulaForSearchAsyncWithHttpInfo (FieldFormulaCalculateCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/Searches/Formula"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetFormulaForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call returns a default search according to the Arxivar system settings This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// SearchDTO - public SearchDTO SearchesGetLastSearch () - { - ApiResponse localVarResponse = SearchesGetLastSearchWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a default search according to the Arxivar system settings This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// ApiResponse of SearchDTO - public ApiResponse< SearchDTO > SearchesGetLastSearchWithHttpInfo () - { - - var localVarPath = "/api/Searches/lastsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetLastSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns a default search according to the Arxivar system settings This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// Task of SearchDTO - public async System.Threading.Tasks.Task SearchesGetLastSearchAsync () - { - ApiResponse localVarResponse = await SearchesGetLastSearchAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a default search according to the Arxivar system settings This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SearchDTO) - public async System.Threading.Tasks.Task> SearchesGetLastSearchAsyncWithHttpInfo () - { - - var localVarPath = "/api/Searches/lastsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetLastSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// SearchDTO - public SearchDTO SearchesGetSearchForClasseBox (string additionalFieldName, ProfileDTO profile = null) - { - ApiResponse localVarResponse = SearchesGetSearchForClasseBoxWithHttpInfo(additionalFieldName, profile); - return localVarResponse.Data; - } - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// ApiResponse of SearchDTO - public ApiResponse< SearchDTO > SearchesGetSearchForClasseBoxWithHttpInfo (string additionalFieldName, ProfileDTO profile = null) - { - // verify the required parameter 'additionalFieldName' is set - if (additionalFieldName == null) - throw new ApiException(400, "Missing required parameter 'additionalFieldName' when calling SearchesApi->SearchesGetSearchForClasseBox"); - - var localVarPath = "/api/Searches/byclassadditionalfield/{additionalFieldName}/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (additionalFieldName != null) localVarPathParams.Add("additionalFieldName", this.Configuration.ApiClient.ParameterToString(additionalFieldName)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetSearchForClasseBox", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// Task of SearchDTO - public async System.Threading.Tasks.Task SearchesGetSearchForClasseBoxAsync (string additionalFieldName, ProfileDTO profile = null) - { - ApiResponse localVarResponse = await SearchesGetSearchForClasseBoxAsyncWithHttpInfo(additionalFieldName, profile); - return localVarResponse.Data; - - } - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// Task of ApiResponse (SearchDTO) - public async System.Threading.Tasks.Task> SearchesGetSearchForClasseBoxAsyncWithHttpInfo (string additionalFieldName, ProfileDTO profile = null) - { - // verify the required parameter 'additionalFieldName' is set - if (additionalFieldName == null) - throw new ApiException(400, "Missing required parameter 'additionalFieldName' when calling SearchesApi->SearchesGetSearchForClasseBox"); - - var localVarPath = "/api/Searches/byclassadditionalfield/{additionalFieldName}/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (additionalFieldName != null) localVarPathParams.Add("additionalFieldName", this.Configuration.ApiClient.ParameterToString(additionalFieldName)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetSearchForClasseBox", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// SelectDTO - public SelectDTO SearchesGetSelect () - { - ApiResponse localVarResponse = SearchesGetSelectWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > SearchesGetSelectWithHttpInfo () - { - - var localVarPath = "/api/Searches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - public async System.Threading.Tasks.Task SearchesGetSelectAsync () - { - ApiResponse localVarResponse = await SearchesGetSelectAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> SearchesGetSelectAsyncWithHttpInfo () - { - - var localVarPath = "/api/Searches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a new select dto by document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// SelectDTO - public SelectDTO SearchesGetSelect_0 (int? documentType) - { - ApiResponse localVarResponse = SearchesGetSelect_0WithHttpInfo(documentType); - return localVarResponse.Data; - } - - /// - /// This call returns a new select dto by document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > SearchesGetSelect_0WithHttpInfo (int? documentType) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling SearchesApi->SearchesGetSelect_0"); - - var localVarPath = "/api/Searches/Select/{documentType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetSelect_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a new select dto by document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of SelectDTO - public async System.Threading.Tasks.Task SearchesGetSelect_0Async (int? documentType) - { - ApiResponse localVarResponse = await SearchesGetSelect_0AsyncWithHttpInfo(documentType); - return localVarResponse.Data; - - } - - /// - /// This call returns a new select dto by document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> SearchesGetSelect_0AsyncWithHttpInfo (int? documentType) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling SearchesApi->SearchesGetSelect_0"); - - var localVarPath = "/api/Searches/Select/{documentType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetSelect_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a new select dto by document type levels - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// SelectDTO - public SelectDTO SearchesGetSelect_1 (int? documentType, int? tipo2, int? tipo3) - { - ApiResponse localVarResponse = SearchesGetSelect_1WithHttpInfo(documentType, tipo2, tipo3); - return localVarResponse.Data; - } - - /// - /// This call returns a new select dto by document type levels - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > SearchesGetSelect_1WithHttpInfo (int? documentType, int? tipo2, int? tipo3) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling SearchesApi->SearchesGetSelect_1"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling SearchesApi->SearchesGetSelect_1"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling SearchesApi->SearchesGetSelect_1"); - - var localVarPath = "/api/Searches/Select/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetSelect_1", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a new select dto by document type levels - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Task of SelectDTO - public async System.Threading.Tasks.Task SearchesGetSelect_1Async (int? documentType, int? tipo2, int? tipo3) - { - ApiResponse localVarResponse = await SearchesGetSelect_1AsyncWithHttpInfo(documentType, tipo2, tipo3); - return localVarResponse.Data; - - } - - /// - /// This call returns a new select dto by document type levels - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> SearchesGetSelect_1AsyncWithHttpInfo (int? documentType, int? tipo2, int? tipo3) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling SearchesApi->SearchesGetSelect_1"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling SearchesApi->SearchesGetSelect_1"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling SearchesApi->SearchesGetSelect_1"); - - var localVarPath = "/api/Searches/Select/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetSelect_1", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldValuesDTO - public FieldValuesDTO SearchesGetValuesForSearch (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = SearchesGetValuesForSearchWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - } - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldValuesDTO - public ApiResponse< FieldValuesDTO > SearchesGetValuesForSearchWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/Searches/Values"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetValuesForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldValuesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldValuesDTO))); - } - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldValuesDTO - public async System.Threading.Tasks.Task SearchesGetValuesForSearchAsync (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = await SearchesGetValuesForSearchAsyncWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - - } - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldValuesDTO) - public async System.Threading.Tasks.Task> SearchesGetValuesForSearchAsyncWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/Searches/Values"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesGetValuesForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldValuesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldValuesDTO))); - } - - /// - /// This call searches documents This method is deprecated. Use api/v3/Searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// List<RowSearchResult> - public List SearchesLastDocuments (int? maxRows, SelectDTO selectDto) - { - ApiResponse> localVarResponse = SearchesLastDocumentsWithHttpInfo(maxRows, selectDto); - return localVarResponse.Data; - } - - /// - /// This call searches documents This method is deprecated. Use api/v3/Searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > SearchesLastDocumentsWithHttpInfo (int? maxRows, SelectDTO selectDto) - { - // verify the required parameter 'maxRows' is set - if (maxRows == null) - throw new ApiException(400, "Missing required parameter 'maxRows' when calling SearchesApi->SearchesLastDocuments"); - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling SearchesApi->SearchesLastDocuments"); - - var localVarPath = "/api/Searches/lastdocuments/{maxRows}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maxRows != null) localVarPathParams.Add("maxRows", this.Configuration.ApiClient.ParameterToString(maxRows)); // path parameter - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesLastDocuments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call searches documents This method is deprecated. Use api/v3/Searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> SearchesLastDocumentsAsync (int? maxRows, SelectDTO selectDto) - { - ApiResponse> localVarResponse = await SearchesLastDocumentsAsyncWithHttpInfo(maxRows, selectDto); - return localVarResponse.Data; - - } - - /// - /// This call searches documents This method is deprecated. Use api/v3/Searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> SearchesLastDocumentsAsyncWithHttpInfo (int? maxRows, SelectDTO selectDto) - { - // verify the required parameter 'maxRows' is set - if (maxRows == null) - throw new ApiException(400, "Missing required parameter 'maxRows' when calling SearchesApi->SearchesLastDocuments"); - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling SearchesApi->SearchesLastDocuments"); - - var localVarPath = "/api/Searches/lastdocuments/{maxRows}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maxRows != null) localVarPathParams.Add("maxRows", this.Configuration.ApiClient.ParameterToString(maxRows)); // path parameter - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesLastDocuments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call searches documents This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// (optional) - /// List<RowSearchResult> - public List SearchesPostSearch (SearchCriteriaDto searchwebapidto = null) - { - ApiResponse> localVarResponse = SearchesPostSearchWithHttpInfo(searchwebapidto); - return localVarResponse.Data; - } - - /// - /// This call searches documents This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > SearchesPostSearchWithHttpInfo (SearchCriteriaDto searchwebapidto = null) - { - - var localVarPath = "/api/Searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapidto != null && searchwebapidto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapidto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapidto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesPostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call searches documents This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> SearchesPostSearchAsync (SearchCriteriaDto searchwebapidto = null) - { - ApiResponse> localVarResponse = await SearchesPostSearchAsyncWithHttpInfo(searchwebapidto); - return localVarResponse.Data; - - } - - /// - /// This call searches documents This method is deprecated. Use /api/v3/Searches - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> SearchesPostSearchAsyncWithHttpInfo (SearchCriteriaDto searchwebapidto = null) - { - - var localVarPath = "/api/Searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapidto != null && searchwebapidto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapidto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapidto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesPostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call saves the default select for the user - /// - /// Thrown when fails to make API call - /// Object representing the select - /// - public void SearchesPostSelect (SelectDTO selectDto) - { - SearchesPostSelectWithHttpInfo(selectDto); - } - - /// - /// This call saves the default select for the user - /// - /// Thrown when fails to make API call - /// Object representing the select - /// ApiResponse of Object(void) - public ApiResponse SearchesPostSelectWithHttpInfo (SelectDTO selectDto) - { - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling SearchesApi->SearchesPostSelect"); - - var localVarPath = "/api/Searches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesPostSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the default select for the user - /// - /// Thrown when fails to make API call - /// Object representing the select - /// Task of void - public async System.Threading.Tasks.Task SearchesPostSelectAsync (SelectDTO selectDto) - { - await SearchesPostSelectAsyncWithHttpInfo(selectDto); - - } - - /// - /// This call saves the default select for the user - /// - /// Thrown when fails to make API call - /// Object representing the select - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SearchesPostSelectAsyncWithHttpInfo (SelectDTO selectDto) - { - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling SearchesApi->SearchesPostSelect"); - - var localVarPath = "/api/Searches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesPostSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a possible custom select for the user - /// - /// Thrown when fails to make API call - /// - public void SearchesResetSelect () - { - SearchesResetSelectWithHttpInfo(); - } - - /// - /// This call deletes a possible custom select for the user - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - public ApiResponse SearchesResetSelectWithHttpInfo () - { - - var localVarPath = "/api/Searches/Reset"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesResetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a possible custom select for the user - /// - /// Thrown when fails to make API call - /// Task of void - public async System.Threading.Tasks.Task SearchesResetSelectAsync () - { - await SearchesResetSelectAsyncWithHttpInfo(); - - } - - /// - /// This call deletes a possible custom select for the user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SearchesResetSelectAsyncWithHttpInfo () - { - - var localVarPath = "/api/Searches/Reset"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesResetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the default search for the user This method is deprecated. Use /api/v3/Searches/defaultsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// - public void SearchesSetDefaultSearch (SearchCriteriaDto searchwebapidto = null) - { - SearchesSetDefaultSearchWithHttpInfo(searchwebapidto); - } - - /// - /// This call saves the default search for the user This method is deprecated. Use /api/v3/Searches/defaultsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - public ApiResponse SearchesSetDefaultSearchWithHttpInfo (SearchCriteriaDto searchwebapidto = null) - { - - var localVarPath = "/api/Searches/defaultsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapidto != null && searchwebapidto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapidto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapidto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesSetDefaultSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the default search for the user This method is deprecated. Use /api/v3/Searches/defaultsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - public async System.Threading.Tasks.Task SearchesSetDefaultSearchAsync (SearchCriteriaDto searchwebapidto = null) - { - await SearchesSetDefaultSearchAsyncWithHttpInfo(searchwebapidto); - - } - - /// - /// This call saves the default search for the user This method is deprecated. Use /api/v3/Searches/defaultsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SearchesSetDefaultSearchAsyncWithHttpInfo (SearchCriteriaDto searchwebapidto = null) - { - - var localVarPath = "/api/Searches/defaultsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapidto != null && searchwebapidto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapidto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapidto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesSetDefaultSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the last search for the user This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// - public void SearchesSetLastSearch (SearchCriteriaDto searchwebapidto = null) - { - SearchesSetLastSearchWithHttpInfo(searchwebapidto); - } - - /// - /// This call saves the last search for the user This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - public ApiResponse SearchesSetLastSearchWithHttpInfo (SearchCriteriaDto searchwebapidto = null) - { - - var localVarPath = "/api/Searches/lastsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapidto != null && searchwebapidto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapidto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapidto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesSetLastSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the last search for the user This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - public async System.Threading.Tasks.Task SearchesSetLastSearchAsync (SearchCriteriaDto searchwebapidto = null) - { - await SearchesSetLastSearchAsyncWithHttpInfo(searchwebapidto); - - } - - /// - /// This call saves the last search for the user This method is deprecated. Use /api/v3/Searches/lastsearch - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SearchesSetLastSearchAsyncWithHttpInfo (SearchCriteriaDto searchwebapidto = null) - { - - var localVarPath = "/api/Searches/lastsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapidto != null && searchwebapidto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapidto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapidto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesSetLastSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/SearchesV2Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/SearchesV2Api.cs deleted file mode 100644 index 0819be9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/SearchesV2Api.cs +++ /dev/null @@ -1,3632 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ISearchesV2Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call delete the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - void SearchesV2Delete (); - - /// - /// This call delete the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - ApiResponse SearchesV2DeleteWithHttpInfo (); - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<SearchDTO> - List SearchesV2Get (); - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SearchDTO> - ApiResponse> SearchesV2GetWithHttpInfo (); - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// List<FieldBaseForSearchDTO> - List SearchesV2GetAdditionalByClasse (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// ApiResponse of List<FieldBaseForSearchDTO> - ApiResponse> SearchesV2GetAdditionalByClasseWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SearchDTO - SearchDTO SearchesV2GetEmpty (); - - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SearchDTO - ApiResponse SearchesV2GetEmptyWithHttpInfo (); - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldFilterDTO - FieldFilterDTO SearchesV2GetFiltersForSearch (FieldValuesSearchCriteriaDto fieldcriteria = null); - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldFilterDTO - ApiResponse SearchesV2GetFiltersForSearchWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null); - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// string - string SearchesV2GetFormulaForSearch (FieldFormulaCalculateCriteriaDto fieldcriteria = null); - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of string - ApiResponse SearchesV2GetFormulaForSearchWithHttpInfo (FieldFormulaCalculateCriteriaDto fieldcriteria = null); - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<SearchDTO> - List SearchesV2GetLastSearch (); - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SearchDTO> - ApiResponse> SearchesV2GetLastSearchWithHttpInfo (); - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// SearchDTO - SearchDTO SearchesV2GetSearchForClasseBox (string additionalFieldName, ProfileDTO profile = null); - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// ApiResponse of SearchDTO - ApiResponse SearchesV2GetSearchForClasseBoxWithHttpInfo (string additionalFieldName, ProfileDTO profile = null); - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SelectDTO - SelectDTO SearchesV2GetSelect (); - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - ApiResponse SearchesV2GetSelectWithHttpInfo (); - /// - /// This call returns a new select dto by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// SelectDTO - SelectDTO SearchesV2GetSelect_0 (int? documentType); - - /// - /// This call returns a new select dto by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// ApiResponse of SelectDTO - ApiResponse SearchesV2GetSelect_0WithHttpInfo (int? documentType); - /// - /// This call returns a new select dto by document type levels - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// SelectDTO - SelectDTO SearchesV2GetSelect_1 (int? documentType, int? tipo2, int? tipo3); - - /// - /// This call returns a new select dto by document type levels - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// ApiResponse of SelectDTO - ApiResponse SearchesV2GetSelect_1WithHttpInfo (int? documentType, int? tipo2, int? tipo3); - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldValuesDTO - FieldValuesDTO SearchesV2GetValuesForSearch (FieldValuesSearchCriteriaDto fieldcriteria = null); - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldValuesDTO - ApiResponse SearchesV2GetValuesForSearchWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null); - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use api/v3/searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// List<RowSearchResult> - List SearchesV2LastDocuments (int? maxRows, SelectDTO selectDto); - - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use api/v3/searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// ApiResponse of List<RowSearchResult> - ApiResponse> SearchesV2LastDocumentsWithHttpInfo (int? maxRows, SelectDTO selectDto); - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use api/v3/searches - /// - /// Thrown when fails to make API call - /// (optional) - /// List<RowSearchResult> - List SearchesV2PostSearchMultiple (SearchCriteriaMultipleDto searchwebapimultipledto = null); - - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use api/v3/searches - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of List<RowSearchResult> - ApiResponse> SearchesV2PostSearchMultipleWithHttpInfo (SearchCriteriaMultipleDto searchwebapimultipledto = null); - /// - /// This call saves the default select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object representing the select - /// - void SearchesV2PostSelect (SelectDTO selectDto); - - /// - /// This call saves the default select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object representing the select - /// ApiResponse of Object(void) - ApiResponse SearchesV2PostSelectWithHttpInfo (SelectDTO selectDto); - /// - /// This call deletes a possible custom select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - void SearchesV2ResetSelect (); - - /// - /// This call deletes a possible custom select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - ApiResponse SearchesV2ResetSelectWithHttpInfo (); - /// - /// This call saves the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// - void SearchesV2SetDefaultSearch (SearchCriteriaMultipleDto searchwebapidto = null); - - /// - /// This call saves the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - ApiResponse SearchesV2SetDefaultSearchWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null); - /// - /// This call saves the last search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// - void SearchesV2SetLastSearch (SearchCriteriaMultipleDto searchwebapidto = null); - - /// - /// This call saves the last search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - ApiResponse SearchesV2SetLastSearchWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call delete the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of void - System.Threading.Tasks.Task SearchesV2DeleteAsync (); - - /// - /// This call delete the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - System.Threading.Tasks.Task> SearchesV2DeleteAsyncWithHttpInfo (); - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<SearchDTO> - System.Threading.Tasks.Task> SearchesV2GetAsync (); - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SearchDTO>) - System.Threading.Tasks.Task>> SearchesV2GetAsyncWithHttpInfo (); - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// Task of List<FieldBaseForSearchDTO> - System.Threading.Tasks.Task> SearchesV2GetAdditionalByClasseAsync (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// Task of ApiResponse (List<FieldBaseForSearchDTO>) - System.Threading.Tasks.Task>> SearchesV2GetAdditionalByClasseAsyncWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SearchDTO - System.Threading.Tasks.Task SearchesV2GetEmptyAsync (); - - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SearchDTO) - System.Threading.Tasks.Task> SearchesV2GetEmptyAsyncWithHttpInfo (); - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldFilterDTO - System.Threading.Tasks.Task SearchesV2GetFiltersForSearchAsync (FieldValuesSearchCriteriaDto fieldcriteria = null); - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldFilterDTO) - System.Threading.Tasks.Task> SearchesV2GetFiltersForSearchAsyncWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null); - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of string - System.Threading.Tasks.Task SearchesV2GetFormulaForSearchAsync (FieldFormulaCalculateCriteriaDto fieldcriteria = null); - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> SearchesV2GetFormulaForSearchAsyncWithHttpInfo (FieldFormulaCalculateCriteriaDto fieldcriteria = null); - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<SearchDTO> - System.Threading.Tasks.Task> SearchesV2GetLastSearchAsync (); - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SearchDTO>) - System.Threading.Tasks.Task>> SearchesV2GetLastSearchAsyncWithHttpInfo (); - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// Task of SearchDTO - System.Threading.Tasks.Task SearchesV2GetSearchForClasseBoxAsync (string additionalFieldName, ProfileDTO profile = null); - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// Task of ApiResponse (SearchDTO) - System.Threading.Tasks.Task> SearchesV2GetSearchForClasseBoxAsyncWithHttpInfo (string additionalFieldName, ProfileDTO profile = null); - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - System.Threading.Tasks.Task SearchesV2GetSelectAsync (); - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> SearchesV2GetSelectAsyncWithHttpInfo (); - /// - /// This call returns a new select dto by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of SelectDTO - System.Threading.Tasks.Task SearchesV2GetSelect_0Async (int? documentType); - - /// - /// This call returns a new select dto by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> SearchesV2GetSelect_0AsyncWithHttpInfo (int? documentType); - /// - /// This call returns a new select dto by document type levels - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Task of SelectDTO - System.Threading.Tasks.Task SearchesV2GetSelect_1Async (int? documentType, int? tipo2, int? tipo3); - - /// - /// This call returns a new select dto by document type levels - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> SearchesV2GetSelect_1AsyncWithHttpInfo (int? documentType, int? tipo2, int? tipo3); - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldValuesDTO - System.Threading.Tasks.Task SearchesV2GetValuesForSearchAsync (FieldValuesSearchCriteriaDto fieldcriteria = null); - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldValuesDTO) - System.Threading.Tasks.Task> SearchesV2GetValuesForSearchAsyncWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null); - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use api/v3/searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> SearchesV2LastDocumentsAsync (int? maxRows, SelectDTO selectDto); - - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use api/v3/searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> SearchesV2LastDocumentsAsyncWithHttpInfo (int? maxRows, SelectDTO selectDto); - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use api/v3/searches - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> SearchesV2PostSearchMultipleAsync (SearchCriteriaMultipleDto searchwebapimultipledto = null); - - /// - /// This call searches documents - /// - /// - /// This method is deprecated. Use api/v3/searches - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> SearchesV2PostSearchMultipleAsyncWithHttpInfo (SearchCriteriaMultipleDto searchwebapimultipledto = null); - /// - /// This call saves the default select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object representing the select - /// Task of void - System.Threading.Tasks.Task SearchesV2PostSelectAsync (SelectDTO selectDto); - - /// - /// This call saves the default select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object representing the select - /// Task of ApiResponse - System.Threading.Tasks.Task> SearchesV2PostSelectAsyncWithHttpInfo (SelectDTO selectDto); - /// - /// This call deletes a possible custom select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of void - System.Threading.Tasks.Task SearchesV2ResetSelectAsync (); - - /// - /// This call deletes a possible custom select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - System.Threading.Tasks.Task> SearchesV2ResetSelectAsyncWithHttpInfo (); - /// - /// This call saves the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - System.Threading.Tasks.Task SearchesV2SetDefaultSearchAsync (SearchCriteriaMultipleDto searchwebapidto = null); - - /// - /// This call saves the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - System.Threading.Tasks.Task> SearchesV2SetDefaultSearchAsyncWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null); - /// - /// This call saves the last search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - System.Threading.Tasks.Task SearchesV2SetLastSearchAsync (SearchCriteriaMultipleDto searchwebapidto = null); - - /// - /// This call saves the last search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - System.Threading.Tasks.Task> SearchesV2SetLastSearchAsyncWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class SearchesV2Api : ISearchesV2Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public SearchesV2Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public SearchesV2Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call delete the default search for the user - /// - /// Thrown when fails to make API call - /// - public void SearchesV2Delete () - { - SearchesV2DeleteWithHttpInfo(); - } - - /// - /// This call delete the default search for the user - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - public ApiResponse SearchesV2DeleteWithHttpInfo () - { - - var localVarPath = "/api/v2/searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2Delete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call delete the default search for the user - /// - /// Thrown when fails to make API call - /// Task of void - public async System.Threading.Tasks.Task SearchesV2DeleteAsync () - { - await SearchesV2DeleteAsyncWithHttpInfo(); - - } - - /// - /// This call delete the default search for the user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SearchesV2DeleteAsyncWithHttpInfo () - { - - var localVarPath = "/api/v2/searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2Delete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// List<SearchDTO> - public List SearchesV2Get () - { - ApiResponse> localVarResponse = SearchesV2GetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SearchDTO> - public ApiResponse< List > SearchesV2GetWithHttpInfo () - { - - var localVarPath = "/api/v2/searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2Get", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of List<SearchDTO> - public async System.Threading.Tasks.Task> SearchesV2GetAsync () - { - ApiResponse> localVarResponse = await SearchesV2GetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SearchDTO>) - public async System.Threading.Tasks.Task>> SearchesV2GetAsyncWithHttpInfo () - { - - var localVarPath = "/api/v2/searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2Get", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// List<FieldBaseForSearchDTO> - public List SearchesV2GetAdditionalByClasse (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - ApiResponse> localVarResponse = SearchesV2GetAdditionalByClasseWithHttpInfo(tipoUno, tipoDue, tipoTre, aoo); - return localVarResponse.Data; - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// ApiResponse of List<FieldBaseForSearchDTO> - public ApiResponse< List > SearchesV2GetAdditionalByClasseWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - // verify the required parameter 'tipoUno' is set - if (tipoUno == null) - throw new ApiException(400, "Missing required parameter 'tipoUno' when calling SearchesV2Api->SearchesV2GetAdditionalByClasse"); - // verify the required parameter 'tipoDue' is set - if (tipoDue == null) - throw new ApiException(400, "Missing required parameter 'tipoDue' when calling SearchesV2Api->SearchesV2GetAdditionalByClasse"); - // verify the required parameter 'tipoTre' is set - if (tipoTre == null) - throw new ApiException(400, "Missing required parameter 'tipoTre' when calling SearchesV2Api->SearchesV2GetAdditionalByClasse"); - - var localVarPath = "/api/v2/searches/Additional/{tipoUno}/{tipoDue}/{tipoTre}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tipoUno != null) localVarPathParams.Add("tipoUno", this.Configuration.ApiClient.ParameterToString(tipoUno)); // path parameter - if (tipoDue != null) localVarPathParams.Add("tipoDue", this.Configuration.ApiClient.ParameterToString(tipoDue)); // path parameter - if (tipoTre != null) localVarPathParams.Add("tipoTre", this.Configuration.ApiClient.ParameterToString(tipoTre)); // path parameter - if (aoo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "aoo", aoo)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetAdditionalByClasse", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// Task of List<FieldBaseForSearchDTO> - public async System.Threading.Tasks.Task> SearchesV2GetAdditionalByClasseAsync (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - ApiResponse> localVarResponse = await SearchesV2GetAdditionalByClasseAsyncWithHttpInfo(tipoUno, tipoDue, tipoTre, aoo); - return localVarResponse.Data; - - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// Task of ApiResponse (List<FieldBaseForSearchDTO>) - public async System.Threading.Tasks.Task>> SearchesV2GetAdditionalByClasseAsyncWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - // verify the required parameter 'tipoUno' is set - if (tipoUno == null) - throw new ApiException(400, "Missing required parameter 'tipoUno' when calling SearchesV2Api->SearchesV2GetAdditionalByClasse"); - // verify the required parameter 'tipoDue' is set - if (tipoDue == null) - throw new ApiException(400, "Missing required parameter 'tipoDue' when calling SearchesV2Api->SearchesV2GetAdditionalByClasse"); - // verify the required parameter 'tipoTre' is set - if (tipoTre == null) - throw new ApiException(400, "Missing required parameter 'tipoTre' when calling SearchesV2Api->SearchesV2GetAdditionalByClasse"); - - var localVarPath = "/api/v2/searches/Additional/{tipoUno}/{tipoDue}/{tipoTre}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tipoUno != null) localVarPathParams.Add("tipoUno", this.Configuration.ApiClient.ParameterToString(tipoUno)); // path parameter - if (tipoDue != null) localVarPathParams.Add("tipoDue", this.Configuration.ApiClient.ParameterToString(tipoDue)); // path parameter - if (tipoTre != null) localVarPathParams.Add("tipoTre", this.Configuration.ApiClient.ParameterToString(tipoTre)); // path parameter - if (aoo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "aoo", aoo)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetAdditionalByClasse", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// SearchDTO - public SearchDTO SearchesV2GetEmpty () - { - ApiResponse localVarResponse = SearchesV2GetEmptyWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// ApiResponse of SearchDTO - public ApiResponse< SearchDTO > SearchesV2GetEmptyWithHttpInfo () - { - - var localVarPath = "/api/v2/searches/empty"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetEmpty", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of SearchDTO - public async System.Threading.Tasks.Task SearchesV2GetEmptyAsync () - { - ApiResponse localVarResponse = await SearchesV2GetEmptyAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SearchDTO) - public async System.Threading.Tasks.Task> SearchesV2GetEmptyAsyncWithHttpInfo () - { - - var localVarPath = "/api/v2/searches/empty"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetEmpty", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldFilterDTO - public FieldFilterDTO SearchesV2GetFiltersForSearch (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = SearchesV2GetFiltersForSearchWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldFilterDTO - public ApiResponse< FieldFilterDTO > SearchesV2GetFiltersForSearchWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/v2/searches/Filters"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetFiltersForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldFilterDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldFilterDTO))); - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldFilterDTO - public async System.Threading.Tasks.Task SearchesV2GetFiltersForSearchAsync (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = await SearchesV2GetFiltersForSearchAsyncWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldFilterDTO) - public async System.Threading.Tasks.Task> SearchesV2GetFiltersForSearchAsyncWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/v2/searches/Filters"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetFiltersForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldFilterDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldFilterDTO))); - } - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// string - public string SearchesV2GetFormulaForSearch (FieldFormulaCalculateCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = SearchesV2GetFormulaForSearchWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - } - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of string - public ApiResponse< string > SearchesV2GetFormulaForSearchWithHttpInfo (FieldFormulaCalculateCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/v2/searches/Formula"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetFormulaForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of string - public async System.Threading.Tasks.Task SearchesV2GetFormulaForSearchAsync (FieldFormulaCalculateCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = await SearchesV2GetFormulaForSearchAsyncWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - - } - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> SearchesV2GetFormulaForSearchAsyncWithHttpInfo (FieldFormulaCalculateCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/v2/searches/Formula"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetFormulaForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// List<SearchDTO> - public List SearchesV2GetLastSearch () - { - ApiResponse> localVarResponse = SearchesV2GetLastSearchWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SearchDTO> - public ApiResponse< List > SearchesV2GetLastSearchWithHttpInfo () - { - - var localVarPath = "/api/v2/searches/lastsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetLastSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of List<SearchDTO> - public async System.Threading.Tasks.Task> SearchesV2GetLastSearchAsync () - { - ApiResponse> localVarResponse = await SearchesV2GetLastSearchAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SearchDTO>) - public async System.Threading.Tasks.Task>> SearchesV2GetLastSearchAsyncWithHttpInfo () - { - - var localVarPath = "/api/v2/searches/lastsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetLastSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// SearchDTO - public SearchDTO SearchesV2GetSearchForClasseBox (string additionalFieldName, ProfileDTO profile = null) - { - ApiResponse localVarResponse = SearchesV2GetSearchForClasseBoxWithHttpInfo(additionalFieldName, profile); - return localVarResponse.Data; - } - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// ApiResponse of SearchDTO - public ApiResponse< SearchDTO > SearchesV2GetSearchForClasseBoxWithHttpInfo (string additionalFieldName, ProfileDTO profile = null) - { - // verify the required parameter 'additionalFieldName' is set - if (additionalFieldName == null) - throw new ApiException(400, "Missing required parameter 'additionalFieldName' when calling SearchesV2Api->SearchesV2GetSearchForClasseBox"); - - var localVarPath = "/api/v2/searches/byclassadditionalfield/{additionalFieldName}/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (additionalFieldName != null) localVarPathParams.Add("additionalFieldName", this.Configuration.ApiClient.ParameterToString(additionalFieldName)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetSearchForClasseBox", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// Task of SearchDTO - public async System.Threading.Tasks.Task SearchesV2GetSearchForClasseBoxAsync (string additionalFieldName, ProfileDTO profile = null) - { - ApiResponse localVarResponse = await SearchesV2GetSearchForClasseBoxAsyncWithHttpInfo(additionalFieldName, profile); - return localVarResponse.Data; - - } - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// Task of ApiResponse (SearchDTO) - public async System.Threading.Tasks.Task> SearchesV2GetSearchForClasseBoxAsyncWithHttpInfo (string additionalFieldName, ProfileDTO profile = null) - { - // verify the required parameter 'additionalFieldName' is set - if (additionalFieldName == null) - throw new ApiException(400, "Missing required parameter 'additionalFieldName' when calling SearchesV2Api->SearchesV2GetSearchForClasseBox"); - - var localVarPath = "/api/v2/searches/byclassadditionalfield/{additionalFieldName}/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (additionalFieldName != null) localVarPathParams.Add("additionalFieldName", this.Configuration.ApiClient.ParameterToString(additionalFieldName)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetSearchForClasseBox", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// SelectDTO - public SelectDTO SearchesV2GetSelect () - { - ApiResponse localVarResponse = SearchesV2GetSelectWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > SearchesV2GetSelectWithHttpInfo () - { - - var localVarPath = "/api/v2/searches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - public async System.Threading.Tasks.Task SearchesV2GetSelectAsync () - { - ApiResponse localVarResponse = await SearchesV2GetSelectAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> SearchesV2GetSelectAsyncWithHttpInfo () - { - - var localVarPath = "/api/v2/searches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a new select dto by document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// SelectDTO - public SelectDTO SearchesV2GetSelect_0 (int? documentType) - { - ApiResponse localVarResponse = SearchesV2GetSelect_0WithHttpInfo(documentType); - return localVarResponse.Data; - } - - /// - /// This call returns a new select dto by document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > SearchesV2GetSelect_0WithHttpInfo (int? documentType) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling SearchesV2Api->SearchesV2GetSelect_0"); - - var localVarPath = "/api/v2/searches/Select/{documentType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetSelect_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a new select dto by document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of SelectDTO - public async System.Threading.Tasks.Task SearchesV2GetSelect_0Async (int? documentType) - { - ApiResponse localVarResponse = await SearchesV2GetSelect_0AsyncWithHttpInfo(documentType); - return localVarResponse.Data; - - } - - /// - /// This call returns a new select dto by document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> SearchesV2GetSelect_0AsyncWithHttpInfo (int? documentType) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling SearchesV2Api->SearchesV2GetSelect_0"); - - var localVarPath = "/api/v2/searches/Select/{documentType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetSelect_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a new select dto by document type levels - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// SelectDTO - public SelectDTO SearchesV2GetSelect_1 (int? documentType, int? tipo2, int? tipo3) - { - ApiResponse localVarResponse = SearchesV2GetSelect_1WithHttpInfo(documentType, tipo2, tipo3); - return localVarResponse.Data; - } - - /// - /// This call returns a new select dto by document type levels - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > SearchesV2GetSelect_1WithHttpInfo (int? documentType, int? tipo2, int? tipo3) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling SearchesV2Api->SearchesV2GetSelect_1"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling SearchesV2Api->SearchesV2GetSelect_1"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling SearchesV2Api->SearchesV2GetSelect_1"); - - var localVarPath = "/api/v2/searches/Select/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetSelect_1", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a new select dto by document type levels - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Task of SelectDTO - public async System.Threading.Tasks.Task SearchesV2GetSelect_1Async (int? documentType, int? tipo2, int? tipo3) - { - ApiResponse localVarResponse = await SearchesV2GetSelect_1AsyncWithHttpInfo(documentType, tipo2, tipo3); - return localVarResponse.Data; - - } - - /// - /// This call returns a new select dto by document type levels - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> SearchesV2GetSelect_1AsyncWithHttpInfo (int? documentType, int? tipo2, int? tipo3) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling SearchesV2Api->SearchesV2GetSelect_1"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling SearchesV2Api->SearchesV2GetSelect_1"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling SearchesV2Api->SearchesV2GetSelect_1"); - - var localVarPath = "/api/v2/searches/Select/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetSelect_1", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldValuesDTO - public FieldValuesDTO SearchesV2GetValuesForSearch (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = SearchesV2GetValuesForSearchWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - } - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldValuesDTO - public ApiResponse< FieldValuesDTO > SearchesV2GetValuesForSearchWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/v2/searches/Values"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetValuesForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldValuesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldValuesDTO))); - } - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldValuesDTO - public async System.Threading.Tasks.Task SearchesV2GetValuesForSearchAsync (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = await SearchesV2GetValuesForSearchAsyncWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - - } - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldValuesDTO) - public async System.Threading.Tasks.Task> SearchesV2GetValuesForSearchAsyncWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/v2/searches/Values"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2GetValuesForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldValuesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldValuesDTO))); - } - - /// - /// This call searches documents This method is deprecated. Use api/v3/searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// List<RowSearchResult> - public List SearchesV2LastDocuments (int? maxRows, SelectDTO selectDto) - { - ApiResponse> localVarResponse = SearchesV2LastDocumentsWithHttpInfo(maxRows, selectDto); - return localVarResponse.Data; - } - - /// - /// This call searches documents This method is deprecated. Use api/v3/searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > SearchesV2LastDocumentsWithHttpInfo (int? maxRows, SelectDTO selectDto) - { - // verify the required parameter 'maxRows' is set - if (maxRows == null) - throw new ApiException(400, "Missing required parameter 'maxRows' when calling SearchesV2Api->SearchesV2LastDocuments"); - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling SearchesV2Api->SearchesV2LastDocuments"); - - var localVarPath = "/api/v2/searches/lastdocuments/{maxRows}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maxRows != null) localVarPathParams.Add("maxRows", this.Configuration.ApiClient.ParameterToString(maxRows)); // path parameter - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2LastDocuments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call searches documents This method is deprecated. Use api/v3/searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> SearchesV2LastDocumentsAsync (int? maxRows, SelectDTO selectDto) - { - ApiResponse> localVarResponse = await SearchesV2LastDocumentsAsyncWithHttpInfo(maxRows, selectDto); - return localVarResponse.Data; - - } - - /// - /// This call searches documents This method is deprecated. Use api/v3/searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> SearchesV2LastDocumentsAsyncWithHttpInfo (int? maxRows, SelectDTO selectDto) - { - // verify the required parameter 'maxRows' is set - if (maxRows == null) - throw new ApiException(400, "Missing required parameter 'maxRows' when calling SearchesV2Api->SearchesV2LastDocuments"); - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling SearchesV2Api->SearchesV2LastDocuments"); - - var localVarPath = "/api/v2/searches/lastdocuments/{maxRows}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maxRows != null) localVarPathParams.Add("maxRows", this.Configuration.ApiClient.ParameterToString(maxRows)); // path parameter - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2LastDocuments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call searches documents This method is deprecated. Use api/v3/searches - /// - /// Thrown when fails to make API call - /// (optional) - /// List<RowSearchResult> - public List SearchesV2PostSearchMultiple (SearchCriteriaMultipleDto searchwebapimultipledto = null) - { - ApiResponse> localVarResponse = SearchesV2PostSearchMultipleWithHttpInfo(searchwebapimultipledto); - return localVarResponse.Data; - } - - /// - /// This call searches documents This method is deprecated. Use api/v3/searches - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > SearchesV2PostSearchMultipleWithHttpInfo (SearchCriteriaMultipleDto searchwebapimultipledto = null) - { - - var localVarPath = "/api/v2/searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapimultipledto != null && searchwebapimultipledto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapimultipledto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapimultipledto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2PostSearchMultiple", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call searches documents This method is deprecated. Use api/v3/searches - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> SearchesV2PostSearchMultipleAsync (SearchCriteriaMultipleDto searchwebapimultipledto = null) - { - ApiResponse> localVarResponse = await SearchesV2PostSearchMultipleAsyncWithHttpInfo(searchwebapimultipledto); - return localVarResponse.Data; - - } - - /// - /// This call searches documents This method is deprecated. Use api/v3/searches - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> SearchesV2PostSearchMultipleAsyncWithHttpInfo (SearchCriteriaMultipleDto searchwebapimultipledto = null) - { - - var localVarPath = "/api/v2/searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapimultipledto != null && searchwebapimultipledto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapimultipledto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapimultipledto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2PostSearchMultiple", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call saves the default select for the user - /// - /// Thrown when fails to make API call - /// Object representing the select - /// - public void SearchesV2PostSelect (SelectDTO selectDto) - { - SearchesV2PostSelectWithHttpInfo(selectDto); - } - - /// - /// This call saves the default select for the user - /// - /// Thrown when fails to make API call - /// Object representing the select - /// ApiResponse of Object(void) - public ApiResponse SearchesV2PostSelectWithHttpInfo (SelectDTO selectDto) - { - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling SearchesV2Api->SearchesV2PostSelect"); - - var localVarPath = "/api/v2/searches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2PostSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the default select for the user - /// - /// Thrown when fails to make API call - /// Object representing the select - /// Task of void - public async System.Threading.Tasks.Task SearchesV2PostSelectAsync (SelectDTO selectDto) - { - await SearchesV2PostSelectAsyncWithHttpInfo(selectDto); - - } - - /// - /// This call saves the default select for the user - /// - /// Thrown when fails to make API call - /// Object representing the select - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SearchesV2PostSelectAsyncWithHttpInfo (SelectDTO selectDto) - { - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling SearchesV2Api->SearchesV2PostSelect"); - - var localVarPath = "/api/v2/searches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2PostSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a possible custom select for the user - /// - /// Thrown when fails to make API call - /// - public void SearchesV2ResetSelect () - { - SearchesV2ResetSelectWithHttpInfo(); - } - - /// - /// This call deletes a possible custom select for the user - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - public ApiResponse SearchesV2ResetSelectWithHttpInfo () - { - - var localVarPath = "/api/v2/searches/Reset"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2ResetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a possible custom select for the user - /// - /// Thrown when fails to make API call - /// Task of void - public async System.Threading.Tasks.Task SearchesV2ResetSelectAsync () - { - await SearchesV2ResetSelectAsyncWithHttpInfo(); - - } - - /// - /// This call deletes a possible custom select for the user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SearchesV2ResetSelectAsyncWithHttpInfo () - { - - var localVarPath = "/api/v2/searches/Reset"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2ResetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the default search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// - public void SearchesV2SetDefaultSearch (SearchCriteriaMultipleDto searchwebapidto = null) - { - SearchesV2SetDefaultSearchWithHttpInfo(searchwebapidto); - } - - /// - /// This call saves the default search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - public ApiResponse SearchesV2SetDefaultSearchWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null) - { - - var localVarPath = "/api/v2/searches/defaultsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapidto != null && searchwebapidto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapidto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapidto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2SetDefaultSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the default search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - public async System.Threading.Tasks.Task SearchesV2SetDefaultSearchAsync (SearchCriteriaMultipleDto searchwebapidto = null) - { - await SearchesV2SetDefaultSearchAsyncWithHttpInfo(searchwebapidto); - - } - - /// - /// This call saves the default search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SearchesV2SetDefaultSearchAsyncWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null) - { - - var localVarPath = "/api/v2/searches/defaultsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapidto != null && searchwebapidto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapidto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapidto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2SetDefaultSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the last search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// - public void SearchesV2SetLastSearch (SearchCriteriaMultipleDto searchwebapidto = null) - { - SearchesV2SetLastSearchWithHttpInfo(searchwebapidto); - } - - /// - /// This call saves the last search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - public ApiResponse SearchesV2SetLastSearchWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null) - { - - var localVarPath = "/api/v2/searches/lastsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapidto != null && searchwebapidto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapidto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapidto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2SetLastSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the last search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - public async System.Threading.Tasks.Task SearchesV2SetLastSearchAsync (SearchCriteriaMultipleDto searchwebapidto = null) - { - await SearchesV2SetLastSearchAsyncWithHttpInfo(searchwebapidto); - - } - - /// - /// This call saves the last search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SearchesV2SetLastSearchAsyncWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null) - { - - var localVarPath = "/api/v2/searches/lastsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapidto != null && searchwebapidto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapidto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapidto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV2SetLastSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/SearchesV3Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/SearchesV3Api.cs deleted file mode 100644 index ab45da4..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/SearchesV3Api.cs +++ /dev/null @@ -1,3632 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ISearchesV3Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call delete the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - void SearchesV3Delete (); - - /// - /// This call delete the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - ApiResponse SearchesV3DeleteWithHttpInfo (); - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<SearchDTO> - List SearchesV3Get (); - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SearchDTO> - ApiResponse> SearchesV3GetWithHttpInfo (); - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// List<FieldBaseForSearchDTO> - List SearchesV3GetAdditionalByClasse (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// ApiResponse of List<FieldBaseForSearchDTO> - ApiResponse> SearchesV3GetAdditionalByClasseWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SearchDTO - SearchDTO SearchesV3GetEmpty (); - - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SearchDTO - ApiResponse SearchesV3GetEmptyWithHttpInfo (); - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldFilterDTO - FieldFilterDTO SearchesV3GetFiltersForSearch (FieldValuesSearchCriteriaDto fieldcriteria = null); - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldFilterDTO - ApiResponse SearchesV3GetFiltersForSearchWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null); - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// string - string SearchesV3GetFormulaForSearch (FieldFormulaCalculateCriteriaDto fieldcriteria = null); - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of string - ApiResponse SearchesV3GetFormulaForSearchWithHttpInfo (FieldFormulaCalculateCriteriaDto fieldcriteria = null); - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<SearchDTO> - List SearchesV3GetLastSearch (); - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SearchDTO> - ApiResponse> SearchesV3GetLastSearchWithHttpInfo (); - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// SearchDTO - SearchDTO SearchesV3GetSearchForClasseBox (string additionalFieldName, ProfileDTO profile = null); - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// ApiResponse of SearchDTO - ApiResponse SearchesV3GetSearchForClasseBoxWithHttpInfo (string additionalFieldName, ProfileDTO profile = null); - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SelectDTO - SelectDTO SearchesV3GetSelect (); - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - ApiResponse SearchesV3GetSelectWithHttpInfo (); - /// - /// This call returns a new select dto by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// SelectDTO - SelectDTO SearchesV3GetSelect_0 (int? documentType); - - /// - /// This call returns a new select dto by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// ApiResponse of SelectDTO - ApiResponse SearchesV3GetSelect_0WithHttpInfo (int? documentType); - /// - /// This call returns a new select dto by document type levels - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// SelectDTO - SelectDTO SearchesV3GetSelect_1 (int? documentType, int? tipo2, int? tipo3); - - /// - /// This call returns a new select dto by document type levels - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// ApiResponse of SelectDTO - ApiResponse SearchesV3GetSelect_1WithHttpInfo (int? documentType, int? tipo2, int? tipo3); - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldValuesDTO - FieldValuesDTO SearchesV3GetValuesForSearch (FieldValuesSearchCriteriaDto fieldcriteria = null); - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldValuesDTO - ApiResponse SearchesV3GetValuesForSearchWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null); - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches/lastdocuments/{maxRows} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// Object - Object SearchesV3LastDocuments (int? maxRows, SelectDTO selectDto); - - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches/lastdocuments/{maxRows} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// ApiResponse of Object - ApiResponse SearchesV3LastDocumentsWithHttpInfo (int? maxRows, SelectDTO selectDto); - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Object - Object SearchesV3PostSearchMultiple (SearchCriteriaMultipleDto searchwebapimultipledto = null); - - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object - ApiResponse SearchesV3PostSearchMultipleWithHttpInfo (SearchCriteriaMultipleDto searchwebapimultipledto = null); - /// - /// This call saves the default select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object representing the select - /// - void SearchesV3PostSelect (SelectDTO selectDto); - - /// - /// This call saves the default select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object representing the select - /// ApiResponse of Object(void) - ApiResponse SearchesV3PostSelectWithHttpInfo (SelectDTO selectDto); - /// - /// This call deletes a possible custom select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - void SearchesV3ResetSelect (); - - /// - /// This call deletes a possible custom select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - ApiResponse SearchesV3ResetSelectWithHttpInfo (); - /// - /// This call saves the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// - void SearchesV3SetDefaultSearch (SearchCriteriaMultipleDto searchwebapidto = null); - - /// - /// This call saves the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - ApiResponse SearchesV3SetDefaultSearchWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null); - /// - /// This call saves the last search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// - void SearchesV3SetLastSearch (SearchCriteriaMultipleDto searchwebapidto = null); - - /// - /// This call saves the last search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - ApiResponse SearchesV3SetLastSearchWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call delete the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of void - System.Threading.Tasks.Task SearchesV3DeleteAsync (); - - /// - /// This call delete the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - System.Threading.Tasks.Task> SearchesV3DeleteAsyncWithHttpInfo (); - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<SearchDTO> - System.Threading.Tasks.Task> SearchesV3GetAsync (); - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SearchDTO>) - System.Threading.Tasks.Task>> SearchesV3GetAsyncWithHttpInfo (); - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// Task of List<FieldBaseForSearchDTO> - System.Threading.Tasks.Task> SearchesV3GetAdditionalByClasseAsync (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// Task of ApiResponse (List<FieldBaseForSearchDTO>) - System.Threading.Tasks.Task>> SearchesV3GetAdditionalByClasseAsyncWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null); - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SearchDTO - System.Threading.Tasks.Task SearchesV3GetEmptyAsync (); - - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SearchDTO) - System.Threading.Tasks.Task> SearchesV3GetEmptyAsyncWithHttpInfo (); - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldFilterDTO - System.Threading.Tasks.Task SearchesV3GetFiltersForSearchAsync (FieldValuesSearchCriteriaDto fieldcriteria = null); - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldFilterDTO) - System.Threading.Tasks.Task> SearchesV3GetFiltersForSearchAsyncWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null); - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of string - System.Threading.Tasks.Task SearchesV3GetFormulaForSearchAsync (FieldFormulaCalculateCriteriaDto fieldcriteria = null); - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> SearchesV3GetFormulaForSearchAsyncWithHttpInfo (FieldFormulaCalculateCriteriaDto fieldcriteria = null); - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<SearchDTO> - System.Threading.Tasks.Task> SearchesV3GetLastSearchAsync (); - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SearchDTO>) - System.Threading.Tasks.Task>> SearchesV3GetLastSearchAsyncWithHttpInfo (); - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// Task of SearchDTO - System.Threading.Tasks.Task SearchesV3GetSearchForClasseBoxAsync (string additionalFieldName, ProfileDTO profile = null); - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// Task of ApiResponse (SearchDTO) - System.Threading.Tasks.Task> SearchesV3GetSearchForClasseBoxAsyncWithHttpInfo (string additionalFieldName, ProfileDTO profile = null); - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - System.Threading.Tasks.Task SearchesV3GetSelectAsync (); - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> SearchesV3GetSelectAsyncWithHttpInfo (); - /// - /// This call returns a new select dto by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of SelectDTO - System.Threading.Tasks.Task SearchesV3GetSelect_0Async (int? documentType); - - /// - /// This call returns a new select dto by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> SearchesV3GetSelect_0AsyncWithHttpInfo (int? documentType); - /// - /// This call returns a new select dto by document type levels - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Task of SelectDTO - System.Threading.Tasks.Task SearchesV3GetSelect_1Async (int? documentType, int? tipo2, int? tipo3); - - /// - /// This call returns a new select dto by document type levels - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> SearchesV3GetSelect_1AsyncWithHttpInfo (int? documentType, int? tipo2, int? tipo3); - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldValuesDTO - System.Threading.Tasks.Task SearchesV3GetValuesForSearchAsync (FieldValuesSearchCriteriaDto fieldcriteria = null); - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldValuesDTO) - System.Threading.Tasks.Task> SearchesV3GetValuesForSearchAsyncWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null); - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches/lastdocuments/{maxRows} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// Task of Object - System.Threading.Tasks.Task SearchesV3LastDocumentsAsync (int? maxRows, SelectDTO selectDto); - - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches/lastdocuments/{maxRows} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> SearchesV3LastDocumentsAsyncWithHttpInfo (int? maxRows, SelectDTO selectDto); - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of Object - System.Threading.Tasks.Task SearchesV3PostSearchMultipleAsync (SearchCriteriaMultipleDto searchwebapimultipledto = null); - - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> SearchesV3PostSearchMultipleAsyncWithHttpInfo (SearchCriteriaMultipleDto searchwebapimultipledto = null); - /// - /// This call saves the default select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object representing the select - /// Task of void - System.Threading.Tasks.Task SearchesV3PostSelectAsync (SelectDTO selectDto); - - /// - /// This call saves the default select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Object representing the select - /// Task of ApiResponse - System.Threading.Tasks.Task> SearchesV3PostSelectAsyncWithHttpInfo (SelectDTO selectDto); - /// - /// This call deletes a possible custom select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of void - System.Threading.Tasks.Task SearchesV3ResetSelectAsync (); - - /// - /// This call deletes a possible custom select for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - System.Threading.Tasks.Task> SearchesV3ResetSelectAsyncWithHttpInfo (); - /// - /// This call saves the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - System.Threading.Tasks.Task SearchesV3SetDefaultSearchAsync (SearchCriteriaMultipleDto searchwebapidto = null); - - /// - /// This call saves the default search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - System.Threading.Tasks.Task> SearchesV3SetDefaultSearchAsyncWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null); - /// - /// This call saves the last search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - System.Threading.Tasks.Task SearchesV3SetLastSearchAsync (SearchCriteriaMultipleDto searchwebapidto = null); - - /// - /// This call saves the last search for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - System.Threading.Tasks.Task> SearchesV3SetLastSearchAsyncWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class SearchesV3Api : ISearchesV3Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public SearchesV3Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public SearchesV3Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call delete the default search for the user - /// - /// Thrown when fails to make API call - /// - public void SearchesV3Delete () - { - SearchesV3DeleteWithHttpInfo(); - } - - /// - /// This call delete the default search for the user - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - public ApiResponse SearchesV3DeleteWithHttpInfo () - { - - var localVarPath = "/api/v3/searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3Delete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call delete the default search for the user - /// - /// Thrown when fails to make API call - /// Task of void - public async System.Threading.Tasks.Task SearchesV3DeleteAsync () - { - await SearchesV3DeleteAsyncWithHttpInfo(); - - } - - /// - /// This call delete the default search for the user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SearchesV3DeleteAsyncWithHttpInfo () - { - - var localVarPath = "/api/v3/searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3Delete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// List<SearchDTO> - public List SearchesV3Get () - { - ApiResponse> localVarResponse = SearchesV3GetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SearchDTO> - public ApiResponse< List > SearchesV3GetWithHttpInfo () - { - - var localVarPath = "/api/v3/searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3Get", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of List<SearchDTO> - public async System.Threading.Tasks.Task> SearchesV3GetAsync () - { - ApiResponse> localVarResponse = await SearchesV3GetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SearchDTO>) - public async System.Threading.Tasks.Task>> SearchesV3GetAsyncWithHttpInfo () - { - - var localVarPath = "/api/v3/searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3Get", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// List<FieldBaseForSearchDTO> - public List SearchesV3GetAdditionalByClasse (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - ApiResponse> localVarResponse = SearchesV3GetAdditionalByClasseWithHttpInfo(tipoUno, tipoDue, tipoTre, aoo); - return localVarResponse.Data; - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// ApiResponse of List<FieldBaseForSearchDTO> - public ApiResponse< List > SearchesV3GetAdditionalByClasseWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - // verify the required parameter 'tipoUno' is set - if (tipoUno == null) - throw new ApiException(400, "Missing required parameter 'tipoUno' when calling SearchesV3Api->SearchesV3GetAdditionalByClasse"); - // verify the required parameter 'tipoDue' is set - if (tipoDue == null) - throw new ApiException(400, "Missing required parameter 'tipoDue' when calling SearchesV3Api->SearchesV3GetAdditionalByClasse"); - // verify the required parameter 'tipoTre' is set - if (tipoTre == null) - throw new ApiException(400, "Missing required parameter 'tipoTre' when calling SearchesV3Api->SearchesV3GetAdditionalByClasse"); - - var localVarPath = "/api/v3/searches/Additional/{tipoUno}/{tipoDue}/{tipoTre}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tipoUno != null) localVarPathParams.Add("tipoUno", this.Configuration.ApiClient.ParameterToString(tipoUno)); // path parameter - if (tipoDue != null) localVarPathParams.Add("tipoDue", this.Configuration.ApiClient.ParameterToString(tipoDue)); // path parameter - if (tipoTre != null) localVarPathParams.Add("tipoTre", this.Configuration.ApiClient.ParameterToString(tipoTre)); // path parameter - if (aoo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "aoo", aoo)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetAdditionalByClasse", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// Task of List<FieldBaseForSearchDTO> - public async System.Threading.Tasks.Task> SearchesV3GetAdditionalByClasseAsync (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - ApiResponse> localVarResponse = await SearchesV3GetAdditionalByClasseAsyncWithHttpInfo(tipoUno, tipoDue, tipoTre, aoo); - return localVarResponse.Data; - - } - - /// - /// This call returns the additional fields for search by the given document class and business unit - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Business unit code (optional) - /// Task of ApiResponse (List<FieldBaseForSearchDTO>) - public async System.Threading.Tasks.Task>> SearchesV3GetAdditionalByClasseAsyncWithHttpInfo (int? tipoUno, int? tipoDue, int? tipoTre, string aoo = null) - { - // verify the required parameter 'tipoUno' is set - if (tipoUno == null) - throw new ApiException(400, "Missing required parameter 'tipoUno' when calling SearchesV3Api->SearchesV3GetAdditionalByClasse"); - // verify the required parameter 'tipoDue' is set - if (tipoDue == null) - throw new ApiException(400, "Missing required parameter 'tipoDue' when calling SearchesV3Api->SearchesV3GetAdditionalByClasse"); - // verify the required parameter 'tipoTre' is set - if (tipoTre == null) - throw new ApiException(400, "Missing required parameter 'tipoTre' when calling SearchesV3Api->SearchesV3GetAdditionalByClasse"); - - var localVarPath = "/api/v3/searches/Additional/{tipoUno}/{tipoDue}/{tipoTre}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tipoUno != null) localVarPathParams.Add("tipoUno", this.Configuration.ApiClient.ParameterToString(tipoUno)); // path parameter - if (tipoDue != null) localVarPathParams.Add("tipoDue", this.Configuration.ApiClient.ParameterToString(tipoDue)); // path parameter - if (tipoTre != null) localVarPathParams.Add("tipoTre", this.Configuration.ApiClient.ParameterToString(tipoTre)); // path parameter - if (aoo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "aoo", aoo)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetAdditionalByClasse", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// SearchDTO - public SearchDTO SearchesV3GetEmpty () - { - ApiResponse localVarResponse = SearchesV3GetEmptyWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// ApiResponse of SearchDTO - public ApiResponse< SearchDTO > SearchesV3GetEmptyWithHttpInfo () - { - - var localVarPath = "/api/v3/searches/empty"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetEmpty", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of SearchDTO - public async System.Threading.Tasks.Task SearchesV3GetEmptyAsync () - { - ApiResponse localVarResponse = await SearchesV3GetEmptyAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns an empty search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SearchDTO) - public async System.Threading.Tasks.Task> SearchesV3GetEmptyAsyncWithHttpInfo () - { - - var localVarPath = "/api/v3/searches/empty"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetEmpty", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldFilterDTO - public FieldFilterDTO SearchesV3GetFiltersForSearch (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = SearchesV3GetFiltersForSearchWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldFilterDTO - public ApiResponse< FieldFilterDTO > SearchesV3GetFiltersForSearchWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/v3/searches/Filters"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetFiltersForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldFilterDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldFilterDTO))); - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldFilterDTO - public async System.Threading.Tasks.Task SearchesV3GetFiltersForSearchAsync (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = await SearchesV3GetFiltersForSearchAsyncWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - - } - - /// - /// This call returns the list of filter avaible for a specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldFilterDTO) - public async System.Threading.Tasks.Task> SearchesV3GetFiltersForSearchAsyncWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/v3/searches/Filters"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetFiltersForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldFilterDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldFilterDTO))); - } - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// string - public string SearchesV3GetFormulaForSearch (FieldFormulaCalculateCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = SearchesV3GetFormulaForSearchWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - } - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of string - public ApiResponse< string > SearchesV3GetFormulaForSearchWithHttpInfo (FieldFormulaCalculateCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/v3/searches/Formula"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetFormulaForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of string - public async System.Threading.Tasks.Task SearchesV3GetFormulaForSearchAsync (FieldFormulaCalculateCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = await SearchesV3GetFormulaForSearchAsyncWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - - } - - /// - /// this method return the result of a formula given the array of fields of profile and their value - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> SearchesV3GetFormulaForSearchAsyncWithHttpInfo (FieldFormulaCalculateCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/v3/searches/Formula"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetFormulaForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// List<SearchDTO> - public List SearchesV3GetLastSearch () - { - ApiResponse> localVarResponse = SearchesV3GetLastSearchWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SearchDTO> - public ApiResponse< List > SearchesV3GetLastSearchWithHttpInfo () - { - - var localVarPath = "/api/v3/searches/lastsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetLastSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of List<SearchDTO> - public async System.Threading.Tasks.Task> SearchesV3GetLastSearchAsync () - { - ApiResponse> localVarResponse = await SearchesV3GetLastSearchAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a default search according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SearchDTO>) - public async System.Threading.Tasks.Task>> SearchesV3GetLastSearchAsyncWithHttpInfo () - { - - var localVarPath = "/api/v3/searches/lastsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetLastSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// SearchDTO - public SearchDTO SearchesV3GetSearchForClasseBox (string additionalFieldName, ProfileDTO profile = null) - { - ApiResponse localVarResponse = SearchesV3GetSearchForClasseBoxWithHttpInfo(additionalFieldName, profile); - return localVarResponse.Data; - } - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// ApiResponse of SearchDTO - public ApiResponse< SearchDTO > SearchesV3GetSearchForClasseBoxWithHttpInfo (string additionalFieldName, ProfileDTO profile = null) - { - // verify the required parameter 'additionalFieldName' is set - if (additionalFieldName == null) - throw new ApiException(400, "Missing required parameter 'additionalFieldName' when calling SearchesV3Api->SearchesV3GetSearchForClasseBox"); - - var localVarPath = "/api/v3/searches/byclassadditionalfield/{additionalFieldName}/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (additionalFieldName != null) localVarPathParams.Add("additionalFieldName", this.Configuration.ApiClient.ParameterToString(additionalFieldName)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetSearchForClasseBox", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// Task of SearchDTO - public async System.Threading.Tasks.Task SearchesV3GetSearchForClasseBoxAsync (string additionalFieldName, ProfileDTO profile = null) - { - ApiResponse localVarResponse = await SearchesV3GetSearchForClasseBoxAsyncWithHttpInfo(additionalFieldName, profile); - return localVarResponse.Data; - - } - - /// - /// This call returns a complete search object for search a profile for a additional field - /// - /// Thrown when fails to make API call - /// Additional field name - /// (optional) - /// Task of ApiResponse (SearchDTO) - public async System.Threading.Tasks.Task> SearchesV3GetSearchForClasseBoxAsyncWithHttpInfo (string additionalFieldName, ProfileDTO profile = null) - { - // verify the required parameter 'additionalFieldName' is set - if (additionalFieldName == null) - throw new ApiException(400, "Missing required parameter 'additionalFieldName' when calling SearchesV3Api->SearchesV3GetSearchForClasseBox"); - - var localVarPath = "/api/v3/searches/byclassadditionalfield/{additionalFieldName}/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (additionalFieldName != null) localVarPathParams.Add("additionalFieldName", this.Configuration.ApiClient.ParameterToString(additionalFieldName)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetSearchForClasseBox", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// SelectDTO - public SelectDTO SearchesV3GetSelect () - { - ApiResponse localVarResponse = SearchesV3GetSelectWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > SearchesV3GetSelectWithHttpInfo () - { - - var localVarPath = "/api/v3/searches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - public async System.Threading.Tasks.Task SearchesV3GetSelectAsync () - { - ApiResponse localVarResponse = await SearchesV3GetSelectAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a default select according to the Arxivar system settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> SearchesV3GetSelectAsyncWithHttpInfo () - { - - var localVarPath = "/api/v3/searches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a new select dto by document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// SelectDTO - public SelectDTO SearchesV3GetSelect_0 (int? documentType) - { - ApiResponse localVarResponse = SearchesV3GetSelect_0WithHttpInfo(documentType); - return localVarResponse.Data; - } - - /// - /// This call returns a new select dto by document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > SearchesV3GetSelect_0WithHttpInfo (int? documentType) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling SearchesV3Api->SearchesV3GetSelect_0"); - - var localVarPath = "/api/v3/searches/Select/{documentType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetSelect_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a new select dto by document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of SelectDTO - public async System.Threading.Tasks.Task SearchesV3GetSelect_0Async (int? documentType) - { - ApiResponse localVarResponse = await SearchesV3GetSelect_0AsyncWithHttpInfo(documentType); - return localVarResponse.Data; - - } - - /// - /// This call returns a new select dto by document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> SearchesV3GetSelect_0AsyncWithHttpInfo (int? documentType) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling SearchesV3Api->SearchesV3GetSelect_0"); - - var localVarPath = "/api/v3/searches/Select/{documentType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetSelect_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a new select dto by document type levels - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// SelectDTO - public SelectDTO SearchesV3GetSelect_1 (int? documentType, int? tipo2, int? tipo3) - { - ApiResponse localVarResponse = SearchesV3GetSelect_1WithHttpInfo(documentType, tipo2, tipo3); - return localVarResponse.Data; - } - - /// - /// This call returns a new select dto by document type levels - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > SearchesV3GetSelect_1WithHttpInfo (int? documentType, int? tipo2, int? tipo3) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling SearchesV3Api->SearchesV3GetSelect_1"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling SearchesV3Api->SearchesV3GetSelect_1"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling SearchesV3Api->SearchesV3GetSelect_1"); - - var localVarPath = "/api/v3/searches/Select/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetSelect_1", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a new select dto by document type levels - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Task of SelectDTO - public async System.Threading.Tasks.Task SearchesV3GetSelect_1Async (int? documentType, int? tipo2, int? tipo3) - { - ApiResponse localVarResponse = await SearchesV3GetSelect_1AsyncWithHttpInfo(documentType, tipo2, tipo3); - return localVarResponse.Data; - - } - - /// - /// This call returns a new select dto by document type levels - /// - /// Thrown when fails to make API call - /// Document type identifier of first level - /// Document type identifier of second level - /// Document type identifier of third level - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> SearchesV3GetSelect_1AsyncWithHttpInfo (int? documentType, int? tipo2, int? tipo3) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling SearchesV3Api->SearchesV3GetSelect_1"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling SearchesV3Api->SearchesV3GetSelect_1"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling SearchesV3Api->SearchesV3GetSelect_1"); - - var localVarPath = "/api/v3/searches/Select/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetSelect_1", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// FieldValuesDTO - public FieldValuesDTO SearchesV3GetValuesForSearch (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = SearchesV3GetValuesForSearchWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - } - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of FieldValuesDTO - public ApiResponse< FieldValuesDTO > SearchesV3GetValuesForSearchWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/v3/searches/Values"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetValuesForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldValuesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldValuesDTO))); - } - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of FieldValuesDTO - public async System.Threading.Tasks.Task SearchesV3GetValuesForSearchAsync (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - ApiResponse localVarResponse = await SearchesV3GetValuesForSearchAsyncWithHttpInfo(fieldcriteria); - return localVarResponse.Data; - - } - - /// - /// This method returns the possible values ​​for an external data source given the additional field code and the value of all other fields in profile - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (FieldValuesDTO) - public async System.Threading.Tasks.Task> SearchesV3GetValuesForSearchAsyncWithHttpInfo (FieldValuesSearchCriteriaDto fieldcriteria = null) - { - - var localVarPath = "/api/v3/searches/Values"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldcriteria != null && fieldcriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldcriteria); // http body (model) parameter - } - else - { - localVarPostBody = fieldcriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3GetValuesForSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldValuesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldValuesDTO))); - } - - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// Object - public Object SearchesV3LastDocuments (int? maxRows, SelectDTO selectDto) - { - ApiResponse localVarResponse = SearchesV3LastDocumentsWithHttpInfo(maxRows, selectDto); - return localVarResponse.Data; - } - - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// ApiResponse of Object - public ApiResponse< Object > SearchesV3LastDocumentsWithHttpInfo (int? maxRows, SelectDTO selectDto) - { - // verify the required parameter 'maxRows' is set - if (maxRows == null) - throw new ApiException(400, "Missing required parameter 'maxRows' when calling SearchesV3Api->SearchesV3LastDocuments"); - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling SearchesV3Api->SearchesV3LastDocuments"); - - var localVarPath = "/api/v3/searches/lastdocuments/{maxRows}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maxRows != null) localVarPathParams.Add("maxRows", this.Configuration.ApiClient.ParameterToString(maxRows)); // path parameter - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3LastDocuments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// Task of Object - public async System.Threading.Tasks.Task SearchesV3LastDocumentsAsync (int? maxRows, SelectDTO selectDto) - { - ApiResponse localVarResponse = await SearchesV3LastDocumentsAsyncWithHttpInfo(maxRows, selectDto); - return localVarResponse.Data; - - } - - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches/lastdocuments/{maxRows} - /// - /// Thrown when fails to make API call - /// Maximun items to search - /// Object representing the select - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> SearchesV3LastDocumentsAsyncWithHttpInfo (int? maxRows, SelectDTO selectDto) - { - // verify the required parameter 'maxRows' is set - if (maxRows == null) - throw new ApiException(400, "Missing required parameter 'maxRows' when calling SearchesV3Api->SearchesV3LastDocuments"); - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling SearchesV3Api->SearchesV3LastDocuments"); - - var localVarPath = "/api/v3/searches/lastdocuments/{maxRows}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (maxRows != null) localVarPathParams.Add("maxRows", this.Configuration.ApiClient.ParameterToString(maxRows)); // path parameter - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3LastDocuments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches - /// - /// Thrown when fails to make API call - /// (optional) - /// Object - public Object SearchesV3PostSearchMultiple (SearchCriteriaMultipleDto searchwebapimultipledto = null) - { - ApiResponse localVarResponse = SearchesV3PostSearchMultipleWithHttpInfo(searchwebapimultipledto); - return localVarResponse.Data; - } - - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object - public ApiResponse< Object > SearchesV3PostSearchMultipleWithHttpInfo (SearchCriteriaMultipleDto searchwebapimultipledto = null) - { - - var localVarPath = "/api/v3/searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapimultipledto != null && searchwebapimultipledto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapimultipledto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapimultipledto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3PostSearchMultiple", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of Object - public async System.Threading.Tasks.Task SearchesV3PostSearchMultipleAsync (SearchCriteriaMultipleDto searchwebapimultipledto = null) - { - ApiResponse localVarResponse = await SearchesV3PostSearchMultipleAsyncWithHttpInfo(searchwebapimultipledto); - return localVarResponse.Data; - - } - - /// - /// This call searches documents. This call could not be compatible with some programming language, in this case use the call api/searches - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> SearchesV3PostSearchMultipleAsyncWithHttpInfo (SearchCriteriaMultipleDto searchwebapimultipledto = null) - { - - var localVarPath = "/api/v3/searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapimultipledto != null && searchwebapimultipledto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapimultipledto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapimultipledto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3PostSearchMultiple", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call saves the default select for the user - /// - /// Thrown when fails to make API call - /// Object representing the select - /// - public void SearchesV3PostSelect (SelectDTO selectDto) - { - SearchesV3PostSelectWithHttpInfo(selectDto); - } - - /// - /// This call saves the default select for the user - /// - /// Thrown when fails to make API call - /// Object representing the select - /// ApiResponse of Object(void) - public ApiResponse SearchesV3PostSelectWithHttpInfo (SelectDTO selectDto) - { - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling SearchesV3Api->SearchesV3PostSelect"); - - var localVarPath = "/api/v3/searches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3PostSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the default select for the user - /// - /// Thrown when fails to make API call - /// Object representing the select - /// Task of void - public async System.Threading.Tasks.Task SearchesV3PostSelectAsync (SelectDTO selectDto) - { - await SearchesV3PostSelectAsyncWithHttpInfo(selectDto); - - } - - /// - /// This call saves the default select for the user - /// - /// Thrown when fails to make API call - /// Object representing the select - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SearchesV3PostSelectAsyncWithHttpInfo (SelectDTO selectDto) - { - // verify the required parameter 'selectDto' is set - if (selectDto == null) - throw new ApiException(400, "Missing required parameter 'selectDto' when calling SearchesV3Api->SearchesV3PostSelect"); - - var localVarPath = "/api/v3/searches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (selectDto != null && selectDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(selectDto); // http body (model) parameter - } - else - { - localVarPostBody = selectDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3PostSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a possible custom select for the user - /// - /// Thrown when fails to make API call - /// - public void SearchesV3ResetSelect () - { - SearchesV3ResetSelectWithHttpInfo(); - } - - /// - /// This call deletes a possible custom select for the user - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - public ApiResponse SearchesV3ResetSelectWithHttpInfo () - { - - var localVarPath = "/api/v3/searches/Reset"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3ResetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a possible custom select for the user - /// - /// Thrown when fails to make API call - /// Task of void - public async System.Threading.Tasks.Task SearchesV3ResetSelectAsync () - { - await SearchesV3ResetSelectAsyncWithHttpInfo(); - - } - - /// - /// This call deletes a possible custom select for the user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SearchesV3ResetSelectAsyncWithHttpInfo () - { - - var localVarPath = "/api/v3/searches/Reset"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3ResetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the default search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// - public void SearchesV3SetDefaultSearch (SearchCriteriaMultipleDto searchwebapidto = null) - { - SearchesV3SetDefaultSearchWithHttpInfo(searchwebapidto); - } - - /// - /// This call saves the default search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - public ApiResponse SearchesV3SetDefaultSearchWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null) - { - - var localVarPath = "/api/v3/searches/defaultsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapidto != null && searchwebapidto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapidto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapidto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3SetDefaultSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the default search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - public async System.Threading.Tasks.Task SearchesV3SetDefaultSearchAsync (SearchCriteriaMultipleDto searchwebapidto = null) - { - await SearchesV3SetDefaultSearchAsyncWithHttpInfo(searchwebapidto); - - } - - /// - /// This call saves the default search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SearchesV3SetDefaultSearchAsyncWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null) - { - - var localVarPath = "/api/v3/searches/defaultsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapidto != null && searchwebapidto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapidto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapidto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3SetDefaultSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the last search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// - public void SearchesV3SetLastSearch (SearchCriteriaMultipleDto searchwebapidto = null) - { - SearchesV3SetLastSearchWithHttpInfo(searchwebapidto); - } - - /// - /// This call saves the last search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object(void) - public ApiResponse SearchesV3SetLastSearchWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null) - { - - var localVarPath = "/api/v3/searches/lastsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapidto != null && searchwebapidto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapidto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapidto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3SetLastSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the last search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of void - public async System.Threading.Tasks.Task SearchesV3SetLastSearchAsync (SearchCriteriaMultipleDto searchwebapidto = null) - { - await SearchesV3SetLastSearchAsyncWithHttpInfo(searchwebapidto); - - } - - /// - /// This call saves the last search for the user - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SearchesV3SetLastSearchAsyncWithHttpInfo (SearchCriteriaMultipleDto searchwebapidto = null) - { - - var localVarPath = "/api/v3/searches/lastsearch"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchwebapidto != null && searchwebapidto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchwebapidto); // http body (model) parameter - } - else - { - localVarPostBody = searchwebapidto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchesV3SetLastSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/SharingApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/SharingApi.cs deleted file mode 100644 index 452663e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/SharingApi.cs +++ /dev/null @@ -1,2436 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ISharingApi : IApiAccessor - { - #region Synchronous Operations - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void SharingDeleteSharing (string sharingId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse SharingDeleteSharingWithHttpInfo (string sharingId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<SharingOperationDTO> - List SharingGetOperations (string sharingId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<SharingOperationDTO> - ApiResponse> SharingGetOperationsWithHttpInfo (string sharingId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDTO - SharingDTO SharingGetSharing (string sharingId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDTO - ApiResponse SharingGetSharingWithHttpInfo (string sharingId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDTO - SharingDTO SharingGetSharingForShow (string sharingId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDTO - ApiResponse SharingGetSharingForShowWithHttpInfo (string sharingId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<SharingDTO> - List SharingGetSharings (); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SharingDTO> - ApiResponse> SharingGetSharingsWithHttpInfo (); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<SharingDTO> - List SharingGetSharingsByDocnumber (int? docnumber); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<SharingDTO> - ApiResponse> SharingGetSharingsByDocnumberWithHttpInfo (int? docnumber); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDTO - SharingDTO SharingInsertSharing (SharingDTO sharing); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDTO - ApiResponse SharingInsertSharingWithHttpInfo (SharingDTO sharing); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDTO - SharingDTO SharingNewByBusinessUnitAndDocumentTypeId (GetNewSharingRequestDTO sharingRequest); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDTO - ApiResponse SharingNewByBusinessUnitAndDocumentTypeIdWithHttpInfo (GetNewSharingRequestDTO sharingRequest); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDTO - SharingDTO SharingReprocessSharing (string sharingId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDTO - ApiResponse SharingReprocessSharingWithHttpInfo (string sharingId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDTO - SharingDTO SharingUpdateSharing (SharingDTO sharing); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDTO - ApiResponse SharingUpdateSharingWithHttpInfo (SharingDTO sharing); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// bool? - bool? SharingUserConnectedIsConfigurationRole (); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - ApiResponse SharingUserConnectedIsConfigurationRoleWithHttpInfo (); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// bool? - bool? SharingUserConnectedIsSharingManager (); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - ApiResponse SharingUserConnectedIsSharingManagerWithHttpInfo (); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task SharingDeleteSharingAsync (string sharingId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> SharingDeleteSharingAsyncWithHttpInfo (string sharingId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<SharingOperationDTO> - System.Threading.Tasks.Task> SharingGetOperationsAsync (string sharingId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<SharingOperationDTO>) - System.Threading.Tasks.Task>> SharingGetOperationsAsyncWithHttpInfo (string sharingId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDTO - System.Threading.Tasks.Task SharingGetSharingAsync (string sharingId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDTO) - System.Threading.Tasks.Task> SharingGetSharingAsyncWithHttpInfo (string sharingId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDTO - System.Threading.Tasks.Task SharingGetSharingForShowAsync (string sharingId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDTO) - System.Threading.Tasks.Task> SharingGetSharingForShowAsyncWithHttpInfo (string sharingId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<SharingDTO> - System.Threading.Tasks.Task> SharingGetSharingsAsync (); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SharingDTO>) - System.Threading.Tasks.Task>> SharingGetSharingsAsyncWithHttpInfo (); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<SharingDTO> - System.Threading.Tasks.Task> SharingGetSharingsByDocnumberAsync (int? docnumber); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<SharingDTO>) - System.Threading.Tasks.Task>> SharingGetSharingsByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDTO - System.Threading.Tasks.Task SharingInsertSharingAsync (SharingDTO sharing); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDTO) - System.Threading.Tasks.Task> SharingInsertSharingAsyncWithHttpInfo (SharingDTO sharing); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDTO - System.Threading.Tasks.Task SharingNewByBusinessUnitAndDocumentTypeIdAsync (GetNewSharingRequestDTO sharingRequest); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDTO) - System.Threading.Tasks.Task> SharingNewByBusinessUnitAndDocumentTypeIdAsyncWithHttpInfo (GetNewSharingRequestDTO sharingRequest); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDTO - System.Threading.Tasks.Task SharingReprocessSharingAsync (string sharingId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDTO) - System.Threading.Tasks.Task> SharingReprocessSharingAsyncWithHttpInfo (string sharingId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDTO - System.Threading.Tasks.Task SharingUpdateSharingAsync (SharingDTO sharing); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDTO) - System.Threading.Tasks.Task> SharingUpdateSharingAsyncWithHttpInfo (SharingDTO sharing); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of bool? - System.Threading.Tasks.Task SharingUserConnectedIsConfigurationRoleAsync (); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> SharingUserConnectedIsConfigurationRoleAsyncWithHttpInfo (); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of bool? - System.Threading.Tasks.Task SharingUserConnectedIsSharingManagerAsync (); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> SharingUserConnectedIsSharingManagerAsyncWithHttpInfo (); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class SharingApi : ISharingApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public SharingApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public SharingApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - public void SharingDeleteSharing (string sharingId) - { - SharingDeleteSharingWithHttpInfo(sharingId); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse SharingDeleteSharingWithHttpInfo (string sharingId) - { - // verify the required parameter 'sharingId' is set - if (sharingId == null) - throw new ApiException(400, "Missing required parameter 'sharingId' when calling SharingApi->SharingDeleteSharing"); - - var localVarPath = "/api/Sharing/{sharingId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingId != null) localVarPathParams.Add("sharingId", this.Configuration.ApiClient.ParameterToString(sharingId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDeleteSharing", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task SharingDeleteSharingAsync (string sharingId) - { - await SharingDeleteSharingAsyncWithHttpInfo(sharingId); - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SharingDeleteSharingAsyncWithHttpInfo (string sharingId) - { - // verify the required parameter 'sharingId' is set - if (sharingId == null) - throw new ApiException(400, "Missing required parameter 'sharingId' when calling SharingApi->SharingDeleteSharing"); - - var localVarPath = "/api/Sharing/{sharingId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingId != null) localVarPathParams.Add("sharingId", this.Configuration.ApiClient.ParameterToString(sharingId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDeleteSharing", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<SharingOperationDTO> - public List SharingGetOperations (string sharingId) - { - ApiResponse> localVarResponse = SharingGetOperationsWithHttpInfo(sharingId); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<SharingOperationDTO> - public ApiResponse< List > SharingGetOperationsWithHttpInfo (string sharingId) - { - // verify the required parameter 'sharingId' is set - if (sharingId == null) - throw new ApiException(400, "Missing required parameter 'sharingId' when calling SharingApi->SharingGetOperations"); - - var localVarPath = "/api/Sharing/Operations/{sharingId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingId != null) localVarPathParams.Add("sharingId", this.Configuration.ApiClient.ParameterToString(sharingId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingGetOperations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<SharingOperationDTO> - public async System.Threading.Tasks.Task> SharingGetOperationsAsync (string sharingId) - { - ApiResponse> localVarResponse = await SharingGetOperationsAsyncWithHttpInfo(sharingId); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<SharingOperationDTO>) - public async System.Threading.Tasks.Task>> SharingGetOperationsAsyncWithHttpInfo (string sharingId) - { - // verify the required parameter 'sharingId' is set - if (sharingId == null) - throw new ApiException(400, "Missing required parameter 'sharingId' when calling SharingApi->SharingGetOperations"); - - var localVarPath = "/api/Sharing/Operations/{sharingId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingId != null) localVarPathParams.Add("sharingId", this.Configuration.ApiClient.ParameterToString(sharingId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingGetOperations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDTO - public SharingDTO SharingGetSharing (string sharingId) - { - ApiResponse localVarResponse = SharingGetSharingWithHttpInfo(sharingId); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDTO - public ApiResponse< SharingDTO > SharingGetSharingWithHttpInfo (string sharingId) - { - // verify the required parameter 'sharingId' is set - if (sharingId == null) - throw new ApiException(400, "Missing required parameter 'sharingId' when calling SharingApi->SharingGetSharing"); - - var localVarPath = "/api/Sharing/ForUpdate/{sharingId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingId != null) localVarPathParams.Add("sharingId", this.Configuration.ApiClient.ParameterToString(sharingId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingGetSharing", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDTO - public async System.Threading.Tasks.Task SharingGetSharingAsync (string sharingId) - { - ApiResponse localVarResponse = await SharingGetSharingAsyncWithHttpInfo(sharingId); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDTO) - public async System.Threading.Tasks.Task> SharingGetSharingAsyncWithHttpInfo (string sharingId) - { - // verify the required parameter 'sharingId' is set - if (sharingId == null) - throw new ApiException(400, "Missing required parameter 'sharingId' when calling SharingApi->SharingGetSharing"); - - var localVarPath = "/api/Sharing/ForUpdate/{sharingId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingId != null) localVarPathParams.Add("sharingId", this.Configuration.ApiClient.ParameterToString(sharingId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingGetSharing", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDTO - public SharingDTO SharingGetSharingForShow (string sharingId) - { - ApiResponse localVarResponse = SharingGetSharingForShowWithHttpInfo(sharingId); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDTO - public ApiResponse< SharingDTO > SharingGetSharingForShowWithHttpInfo (string sharingId) - { - // verify the required parameter 'sharingId' is set - if (sharingId == null) - throw new ApiException(400, "Missing required parameter 'sharingId' when calling SharingApi->SharingGetSharingForShow"); - - var localVarPath = "/api/Sharing/{sharingId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingId != null) localVarPathParams.Add("sharingId", this.Configuration.ApiClient.ParameterToString(sharingId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingGetSharingForShow", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDTO - public async System.Threading.Tasks.Task SharingGetSharingForShowAsync (string sharingId) - { - ApiResponse localVarResponse = await SharingGetSharingForShowAsyncWithHttpInfo(sharingId); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDTO) - public async System.Threading.Tasks.Task> SharingGetSharingForShowAsyncWithHttpInfo (string sharingId) - { - // verify the required parameter 'sharingId' is set - if (sharingId == null) - throw new ApiException(400, "Missing required parameter 'sharingId' when calling SharingApi->SharingGetSharingForShow"); - - var localVarPath = "/api/Sharing/{sharingId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingId != null) localVarPathParams.Add("sharingId", this.Configuration.ApiClient.ParameterToString(sharingId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingGetSharingForShow", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// List<SharingDTO> - public List SharingGetSharings () - { - ApiResponse> localVarResponse = SharingGetSharingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SharingDTO> - public ApiResponse< List > SharingGetSharingsWithHttpInfo () - { - - var localVarPath = "/api/Sharing"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingGetSharings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<SharingDTO> - public async System.Threading.Tasks.Task> SharingGetSharingsAsync () - { - ApiResponse> localVarResponse = await SharingGetSharingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SharingDTO>) - public async System.Threading.Tasks.Task>> SharingGetSharingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/Sharing"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingGetSharings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<SharingDTO> - public List SharingGetSharingsByDocnumber (int? docnumber) - { - ApiResponse> localVarResponse = SharingGetSharingsByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<SharingDTO> - public ApiResponse< List > SharingGetSharingsByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling SharingApi->SharingGetSharingsByDocnumber"); - - var localVarPath = "/api/Sharing/ByDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingGetSharingsByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<SharingDTO> - public async System.Threading.Tasks.Task> SharingGetSharingsByDocnumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await SharingGetSharingsByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<SharingDTO>) - public async System.Threading.Tasks.Task>> SharingGetSharingsByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling SharingApi->SharingGetSharingsByDocnumber"); - - var localVarPath = "/api/Sharing/ByDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingGetSharingsByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDTO - public SharingDTO SharingInsertSharing (SharingDTO sharing) - { - ApiResponse localVarResponse = SharingInsertSharingWithHttpInfo(sharing); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDTO - public ApiResponse< SharingDTO > SharingInsertSharingWithHttpInfo (SharingDTO sharing) - { - // verify the required parameter 'sharing' is set - if (sharing == null) - throw new ApiException(400, "Missing required parameter 'sharing' when calling SharingApi->SharingInsertSharing"); - - var localVarPath = "/api/Sharing"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharing != null && sharing.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sharing); // http body (model) parameter - } - else - { - localVarPostBody = sharing; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingInsertSharing", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDTO - public async System.Threading.Tasks.Task SharingInsertSharingAsync (SharingDTO sharing) - { - ApiResponse localVarResponse = await SharingInsertSharingAsyncWithHttpInfo(sharing); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDTO) - public async System.Threading.Tasks.Task> SharingInsertSharingAsyncWithHttpInfo (SharingDTO sharing) - { - // verify the required parameter 'sharing' is set - if (sharing == null) - throw new ApiException(400, "Missing required parameter 'sharing' when calling SharingApi->SharingInsertSharing"); - - var localVarPath = "/api/Sharing"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharing != null && sharing.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sharing); // http body (model) parameter - } - else - { - localVarPostBody = sharing; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingInsertSharing", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDTO - public SharingDTO SharingNewByBusinessUnitAndDocumentTypeId (GetNewSharingRequestDTO sharingRequest) - { - ApiResponse localVarResponse = SharingNewByBusinessUnitAndDocumentTypeIdWithHttpInfo(sharingRequest); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDTO - public ApiResponse< SharingDTO > SharingNewByBusinessUnitAndDocumentTypeIdWithHttpInfo (GetNewSharingRequestDTO sharingRequest) - { - // verify the required parameter 'sharingRequest' is set - if (sharingRequest == null) - throw new ApiException(400, "Missing required parameter 'sharingRequest' when calling SharingApi->SharingNewByBusinessUnitAndDocumentTypeId"); - - var localVarPath = "/api/Sharing/NewByBusinessUnitAndDocumentType"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingRequest != null && sharingRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sharingRequest); // http body (model) parameter - } - else - { - localVarPostBody = sharingRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingNewByBusinessUnitAndDocumentTypeId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDTO - public async System.Threading.Tasks.Task SharingNewByBusinessUnitAndDocumentTypeIdAsync (GetNewSharingRequestDTO sharingRequest) - { - ApiResponse localVarResponse = await SharingNewByBusinessUnitAndDocumentTypeIdAsyncWithHttpInfo(sharingRequest); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDTO) - public async System.Threading.Tasks.Task> SharingNewByBusinessUnitAndDocumentTypeIdAsyncWithHttpInfo (GetNewSharingRequestDTO sharingRequest) - { - // verify the required parameter 'sharingRequest' is set - if (sharingRequest == null) - throw new ApiException(400, "Missing required parameter 'sharingRequest' when calling SharingApi->SharingNewByBusinessUnitAndDocumentTypeId"); - - var localVarPath = "/api/Sharing/NewByBusinessUnitAndDocumentType"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingRequest != null && sharingRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sharingRequest); // http body (model) parameter - } - else - { - localVarPostBody = sharingRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingNewByBusinessUnitAndDocumentTypeId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDTO - public SharingDTO SharingReprocessSharing (string sharingId) - { - ApiResponse localVarResponse = SharingReprocessSharingWithHttpInfo(sharingId); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDTO - public ApiResponse< SharingDTO > SharingReprocessSharingWithHttpInfo (string sharingId) - { - // verify the required parameter 'sharingId' is set - if (sharingId == null) - throw new ApiException(400, "Missing required parameter 'sharingId' when calling SharingApi->SharingReprocessSharing"); - - var localVarPath = "/api/Sharing/Reprocess/{sharingId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingId != null) localVarPathParams.Add("sharingId", this.Configuration.ApiClient.ParameterToString(sharingId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingReprocessSharing", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDTO - public async System.Threading.Tasks.Task SharingReprocessSharingAsync (string sharingId) - { - ApiResponse localVarResponse = await SharingReprocessSharingAsyncWithHttpInfo(sharingId); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDTO) - public async System.Threading.Tasks.Task> SharingReprocessSharingAsyncWithHttpInfo (string sharingId) - { - // verify the required parameter 'sharingId' is set - if (sharingId == null) - throw new ApiException(400, "Missing required parameter 'sharingId' when calling SharingApi->SharingReprocessSharing"); - - var localVarPath = "/api/Sharing/Reprocess/{sharingId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingId != null) localVarPathParams.Add("sharingId", this.Configuration.ApiClient.ParameterToString(sharingId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingReprocessSharing", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDTO - public SharingDTO SharingUpdateSharing (SharingDTO sharing) - { - ApiResponse localVarResponse = SharingUpdateSharingWithHttpInfo(sharing); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDTO - public ApiResponse< SharingDTO > SharingUpdateSharingWithHttpInfo (SharingDTO sharing) - { - // verify the required parameter 'sharing' is set - if (sharing == null) - throw new ApiException(400, "Missing required parameter 'sharing' when calling SharingApi->SharingUpdateSharing"); - - var localVarPath = "/api/Sharing"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharing != null && sharing.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sharing); // http body (model) parameter - } - else - { - localVarPostBody = sharing; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingUpdateSharing", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDTO - public async System.Threading.Tasks.Task SharingUpdateSharingAsync (SharingDTO sharing) - { - ApiResponse localVarResponse = await SharingUpdateSharingAsyncWithHttpInfo(sharing); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDTO) - public async System.Threading.Tasks.Task> SharingUpdateSharingAsyncWithHttpInfo (SharingDTO sharing) - { - // verify the required parameter 'sharing' is set - if (sharing == null) - throw new ApiException(400, "Missing required parameter 'sharing' when calling SharingApi->SharingUpdateSharing"); - - var localVarPath = "/api/Sharing"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharing != null && sharing.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sharing); // http body (model) parameter - } - else - { - localVarPostBody = sharing; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingUpdateSharing", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// bool? - public bool? SharingUserConnectedIsConfigurationRole () - { - ApiResponse localVarResponse = SharingUserConnectedIsConfigurationRoleWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - public ApiResponse< bool? > SharingUserConnectedIsConfigurationRoleWithHttpInfo () - { - - var localVarPath = "/api/Sharing/Permissions/IsConfigurationRole"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingUserConnectedIsConfigurationRole", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// Task of bool? - public async System.Threading.Tasks.Task SharingUserConnectedIsConfigurationRoleAsync () - { - ApiResponse localVarResponse = await SharingUserConnectedIsConfigurationRoleAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> SharingUserConnectedIsConfigurationRoleAsyncWithHttpInfo () - { - - var localVarPath = "/api/Sharing/Permissions/IsConfigurationRole"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingUserConnectedIsConfigurationRole", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// bool? - public bool? SharingUserConnectedIsSharingManager () - { - ApiResponse localVarResponse = SharingUserConnectedIsSharingManagerWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - public ApiResponse< bool? > SharingUserConnectedIsSharingManagerWithHttpInfo () - { - - var localVarPath = "/api/Sharing/Permissions/IsSharingManager"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingUserConnectedIsSharingManager", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// Task of bool? - public async System.Threading.Tasks.Task SharingUserConnectedIsSharingManagerAsync () - { - ApiResponse localVarResponse = await SharingUserConnectedIsSharingManagerAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> SharingUserConnectedIsSharingManagerAsyncWithHttpInfo () - { - - var localVarPath = "/api/Sharing/Permissions/IsSharingManager"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingUserConnectedIsSharingManager", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/SharingDefinitionsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/SharingDefinitionsApi.cs deleted file mode 100644 index dcbc890..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/SharingDefinitionsApi.cs +++ /dev/null @@ -1,1672 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ISharingDefinitionsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SharingDefinitionDTO - SharingDefinitionDTO SharingDefinitionsGetNewSharingDefinition (); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SharingDefinitionDTO - ApiResponse SharingDefinitionsGetNewSharingDefinitionWithHttpInfo (); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<SharingDefinitionDTO> - List SharingDefinitionsGetSharingDefinitions (); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SharingDefinitionDTO> - ApiResponse> SharingDefinitionsGetSharingDefinitionsWithHttpInfo (); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDefinitionDTO - SharingDefinitionDTO SharingDefinitionsGetSharingDefinitionsByDocumentTypeIdAndAooCode (GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO request); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDefinitionDTO - ApiResponse SharingDefinitionsGetSharingDefinitionsByDocumentTypeIdAndAooCodeWithHttpInfo (GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO request); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDefinitionDTO - SharingDefinitionDTO SharingDefinitionsGetSharingDefinitionsById (string sharingId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDefinitionDTO - ApiResponse SharingDefinitionsGetSharingDefinitionsByIdWithHttpInfo (string sharingId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDefinitionInsertResult - SharingDefinitionInsertResult SharingDefinitionsInsertSharingDefinition (SharingDefinitionDTO sharingDefinition); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDefinitionInsertResult - ApiResponse SharingDefinitionsInsertSharingDefinitionWithHttpInfo (SharingDefinitionDTO sharingDefinition); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// bool? - bool? SharingDefinitionsIsArxLinkConfigured (); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - ApiResponse SharingDefinitionsIsArxLinkConfiguredWithHttpInfo (); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void SharingDefinitionsSharingDefinitionDeleteById (string sharingDefinitionId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse SharingDefinitionsSharingDefinitionDeleteByIdWithHttpInfo (string sharingDefinitionId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDefinitionInsertResult - SharingDefinitionInsertResult SharingDefinitionsUpdateSharingDefinition (SharingDefinitionDTO sharingDefinition); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDefinitionInsertResult - ApiResponse SharingDefinitionsUpdateSharingDefinitionWithHttpInfo (SharingDefinitionDTO sharingDefinition); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SharingDefinitionDTO - System.Threading.Tasks.Task SharingDefinitionsGetNewSharingDefinitionAsync (); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SharingDefinitionDTO) - System.Threading.Tasks.Task> SharingDefinitionsGetNewSharingDefinitionAsyncWithHttpInfo (); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<SharingDefinitionDTO> - System.Threading.Tasks.Task> SharingDefinitionsGetSharingDefinitionsAsync (); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SharingDefinitionDTO>) - System.Threading.Tasks.Task>> SharingDefinitionsGetSharingDefinitionsAsyncWithHttpInfo (); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDefinitionDTO - System.Threading.Tasks.Task SharingDefinitionsGetSharingDefinitionsByDocumentTypeIdAndAooCodeAsync (GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO request); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDefinitionDTO) - System.Threading.Tasks.Task> SharingDefinitionsGetSharingDefinitionsByDocumentTypeIdAndAooCodeAsyncWithHttpInfo (GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO request); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDefinitionDTO - System.Threading.Tasks.Task SharingDefinitionsGetSharingDefinitionsByIdAsync (string sharingId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDefinitionDTO) - System.Threading.Tasks.Task> SharingDefinitionsGetSharingDefinitionsByIdAsyncWithHttpInfo (string sharingId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDefinitionInsertResult - System.Threading.Tasks.Task SharingDefinitionsInsertSharingDefinitionAsync (SharingDefinitionDTO sharingDefinition); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDefinitionInsertResult) - System.Threading.Tasks.Task> SharingDefinitionsInsertSharingDefinitionAsyncWithHttpInfo (SharingDefinitionDTO sharingDefinition); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of bool? - System.Threading.Tasks.Task SharingDefinitionsIsArxLinkConfiguredAsync (); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> SharingDefinitionsIsArxLinkConfiguredAsyncWithHttpInfo (); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task SharingDefinitionsSharingDefinitionDeleteByIdAsync (string sharingDefinitionId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> SharingDefinitionsSharingDefinitionDeleteByIdAsyncWithHttpInfo (string sharingDefinitionId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDefinitionInsertResult - System.Threading.Tasks.Task SharingDefinitionsUpdateSharingDefinitionAsync (SharingDefinitionDTO sharingDefinition); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDefinitionInsertResult) - System.Threading.Tasks.Task> SharingDefinitionsUpdateSharingDefinitionAsyncWithHttpInfo (SharingDefinitionDTO sharingDefinition); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class SharingDefinitionsApi : ISharingDefinitionsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public SharingDefinitionsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public SharingDefinitionsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// SharingDefinitionDTO - public SharingDefinitionDTO SharingDefinitionsGetNewSharingDefinition () - { - ApiResponse localVarResponse = SharingDefinitionsGetNewSharingDefinitionWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SharingDefinitionDTO - public ApiResponse< SharingDefinitionDTO > SharingDefinitionsGetNewSharingDefinitionWithHttpInfo () - { - - var localVarPath = "/api/SharingDefinitions/New"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsGetNewSharingDefinition", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDefinitionDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDefinitionDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SharingDefinitionDTO - public async System.Threading.Tasks.Task SharingDefinitionsGetNewSharingDefinitionAsync () - { - ApiResponse localVarResponse = await SharingDefinitionsGetNewSharingDefinitionAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SharingDefinitionDTO) - public async System.Threading.Tasks.Task> SharingDefinitionsGetNewSharingDefinitionAsyncWithHttpInfo () - { - - var localVarPath = "/api/SharingDefinitions/New"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsGetNewSharingDefinition", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDefinitionDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDefinitionDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// List<SharingDefinitionDTO> - public List SharingDefinitionsGetSharingDefinitions () - { - ApiResponse> localVarResponse = SharingDefinitionsGetSharingDefinitionsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SharingDefinitionDTO> - public ApiResponse< List > SharingDefinitionsGetSharingDefinitionsWithHttpInfo () - { - - var localVarPath = "/api/SharingDefinitions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsGetSharingDefinitions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<SharingDefinitionDTO> - public async System.Threading.Tasks.Task> SharingDefinitionsGetSharingDefinitionsAsync () - { - ApiResponse> localVarResponse = await SharingDefinitionsGetSharingDefinitionsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SharingDefinitionDTO>) - public async System.Threading.Tasks.Task>> SharingDefinitionsGetSharingDefinitionsAsyncWithHttpInfo () - { - - var localVarPath = "/api/SharingDefinitions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsGetSharingDefinitions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDefinitionDTO - public SharingDefinitionDTO SharingDefinitionsGetSharingDefinitionsByDocumentTypeIdAndAooCode (GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO request) - { - ApiResponse localVarResponse = SharingDefinitionsGetSharingDefinitionsByDocumentTypeIdAndAooCodeWithHttpInfo(request); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDefinitionDTO - public ApiResponse< SharingDefinitionDTO > SharingDefinitionsGetSharingDefinitionsByDocumentTypeIdAndAooCodeWithHttpInfo (GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling SharingDefinitionsApi->SharingDefinitionsGetSharingDefinitionsByDocumentTypeIdAndAooCode"); - - var localVarPath = "/api/SharingDefinitions/GetByAooAndDocumentType"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsGetSharingDefinitionsByDocumentTypeIdAndAooCode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDefinitionDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDefinitionDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDefinitionDTO - public async System.Threading.Tasks.Task SharingDefinitionsGetSharingDefinitionsByDocumentTypeIdAndAooCodeAsync (GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO request) - { - ApiResponse localVarResponse = await SharingDefinitionsGetSharingDefinitionsByDocumentTypeIdAndAooCodeAsyncWithHttpInfo(request); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDefinitionDTO) - public async System.Threading.Tasks.Task> SharingDefinitionsGetSharingDefinitionsByDocumentTypeIdAndAooCodeAsyncWithHttpInfo (GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling SharingDefinitionsApi->SharingDefinitionsGetSharingDefinitionsByDocumentTypeIdAndAooCode"); - - var localVarPath = "/api/SharingDefinitions/GetByAooAndDocumentType"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsGetSharingDefinitionsByDocumentTypeIdAndAooCode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDefinitionDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDefinitionDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDefinitionDTO - public SharingDefinitionDTO SharingDefinitionsGetSharingDefinitionsById (string sharingId) - { - ApiResponse localVarResponse = SharingDefinitionsGetSharingDefinitionsByIdWithHttpInfo(sharingId); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDefinitionDTO - public ApiResponse< SharingDefinitionDTO > SharingDefinitionsGetSharingDefinitionsByIdWithHttpInfo (string sharingId) - { - // verify the required parameter 'sharingId' is set - if (sharingId == null) - throw new ApiException(400, "Missing required parameter 'sharingId' when calling SharingDefinitionsApi->SharingDefinitionsGetSharingDefinitionsById"); - - var localVarPath = "/api/SharingDefinitions/ById/{sharingId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingId != null) localVarPathParams.Add("sharingId", this.Configuration.ApiClient.ParameterToString(sharingId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsGetSharingDefinitionsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDefinitionDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDefinitionDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDefinitionDTO - public async System.Threading.Tasks.Task SharingDefinitionsGetSharingDefinitionsByIdAsync (string sharingId) - { - ApiResponse localVarResponse = await SharingDefinitionsGetSharingDefinitionsByIdAsyncWithHttpInfo(sharingId); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDefinitionDTO) - public async System.Threading.Tasks.Task> SharingDefinitionsGetSharingDefinitionsByIdAsyncWithHttpInfo (string sharingId) - { - // verify the required parameter 'sharingId' is set - if (sharingId == null) - throw new ApiException(400, "Missing required parameter 'sharingId' when calling SharingDefinitionsApi->SharingDefinitionsGetSharingDefinitionsById"); - - var localVarPath = "/api/SharingDefinitions/ById/{sharingId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingId != null) localVarPathParams.Add("sharingId", this.Configuration.ApiClient.ParameterToString(sharingId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsGetSharingDefinitionsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDefinitionDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDefinitionDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDefinitionInsertResult - public SharingDefinitionInsertResult SharingDefinitionsInsertSharingDefinition (SharingDefinitionDTO sharingDefinition) - { - ApiResponse localVarResponse = SharingDefinitionsInsertSharingDefinitionWithHttpInfo(sharingDefinition); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDefinitionInsertResult - public ApiResponse< SharingDefinitionInsertResult > SharingDefinitionsInsertSharingDefinitionWithHttpInfo (SharingDefinitionDTO sharingDefinition) - { - // verify the required parameter 'sharingDefinition' is set - if (sharingDefinition == null) - throw new ApiException(400, "Missing required parameter 'sharingDefinition' when calling SharingDefinitionsApi->SharingDefinitionsInsertSharingDefinition"); - - var localVarPath = "/api/SharingDefinitions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingDefinition != null && sharingDefinition.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sharingDefinition); // http body (model) parameter - } - else - { - localVarPostBody = sharingDefinition; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsInsertSharingDefinition", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDefinitionInsertResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDefinitionInsertResult))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDefinitionInsertResult - public async System.Threading.Tasks.Task SharingDefinitionsInsertSharingDefinitionAsync (SharingDefinitionDTO sharingDefinition) - { - ApiResponse localVarResponse = await SharingDefinitionsInsertSharingDefinitionAsyncWithHttpInfo(sharingDefinition); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDefinitionInsertResult) - public async System.Threading.Tasks.Task> SharingDefinitionsInsertSharingDefinitionAsyncWithHttpInfo (SharingDefinitionDTO sharingDefinition) - { - // verify the required parameter 'sharingDefinition' is set - if (sharingDefinition == null) - throw new ApiException(400, "Missing required parameter 'sharingDefinition' when calling SharingDefinitionsApi->SharingDefinitionsInsertSharingDefinition"); - - var localVarPath = "/api/SharingDefinitions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingDefinition != null && sharingDefinition.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sharingDefinition); // http body (model) parameter - } - else - { - localVarPostBody = sharingDefinition; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsInsertSharingDefinition", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDefinitionInsertResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDefinitionInsertResult))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// bool? - public bool? SharingDefinitionsIsArxLinkConfigured () - { - ApiResponse localVarResponse = SharingDefinitionsIsArxLinkConfiguredWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - public ApiResponse< bool? > SharingDefinitionsIsArxLinkConfiguredWithHttpInfo () - { - - var localVarPath = "/api/SharingDefinitions/IsConfigured"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsIsArxLinkConfigured", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// Task of bool? - public async System.Threading.Tasks.Task SharingDefinitionsIsArxLinkConfiguredAsync () - { - ApiResponse localVarResponse = await SharingDefinitionsIsArxLinkConfiguredAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> SharingDefinitionsIsArxLinkConfiguredAsyncWithHttpInfo () - { - - var localVarPath = "/api/SharingDefinitions/IsConfigured"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsIsArxLinkConfigured", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - public void SharingDefinitionsSharingDefinitionDeleteById (string sharingDefinitionId) - { - SharingDefinitionsSharingDefinitionDeleteByIdWithHttpInfo(sharingDefinitionId); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse SharingDefinitionsSharingDefinitionDeleteByIdWithHttpInfo (string sharingDefinitionId) - { - // verify the required parameter 'sharingDefinitionId' is set - if (sharingDefinitionId == null) - throw new ApiException(400, "Missing required parameter 'sharingDefinitionId' when calling SharingDefinitionsApi->SharingDefinitionsSharingDefinitionDeleteById"); - - var localVarPath = "/api/SharingDefinitions/{sharingDefinitionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingDefinitionId != null) localVarPathParams.Add("sharingDefinitionId", this.Configuration.ApiClient.ParameterToString(sharingDefinitionId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsSharingDefinitionDeleteById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task SharingDefinitionsSharingDefinitionDeleteByIdAsync (string sharingDefinitionId) - { - await SharingDefinitionsSharingDefinitionDeleteByIdAsyncWithHttpInfo(sharingDefinitionId); - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SharingDefinitionsSharingDefinitionDeleteByIdAsyncWithHttpInfo (string sharingDefinitionId) - { - // verify the required parameter 'sharingDefinitionId' is set - if (sharingDefinitionId == null) - throw new ApiException(400, "Missing required parameter 'sharingDefinitionId' when calling SharingDefinitionsApi->SharingDefinitionsSharingDefinitionDeleteById"); - - var localVarPath = "/api/SharingDefinitions/{sharingDefinitionId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingDefinitionId != null) localVarPathParams.Add("sharingDefinitionId", this.Configuration.ApiClient.ParameterToString(sharingDefinitionId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsSharingDefinitionDeleteById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SharingDefinitionInsertResult - public SharingDefinitionInsertResult SharingDefinitionsUpdateSharingDefinition (SharingDefinitionDTO sharingDefinition) - { - ApiResponse localVarResponse = SharingDefinitionsUpdateSharingDefinitionWithHttpInfo(sharingDefinition); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SharingDefinitionInsertResult - public ApiResponse< SharingDefinitionInsertResult > SharingDefinitionsUpdateSharingDefinitionWithHttpInfo (SharingDefinitionDTO sharingDefinition) - { - // verify the required parameter 'sharingDefinition' is set - if (sharingDefinition == null) - throw new ApiException(400, "Missing required parameter 'sharingDefinition' when calling SharingDefinitionsApi->SharingDefinitionsUpdateSharingDefinition"); - - var localVarPath = "/api/SharingDefinitions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingDefinition != null && sharingDefinition.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sharingDefinition); // http body (model) parameter - } - else - { - localVarPostBody = sharingDefinition; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsUpdateSharingDefinition", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDefinitionInsertResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDefinitionInsertResult))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SharingDefinitionInsertResult - public async System.Threading.Tasks.Task SharingDefinitionsUpdateSharingDefinitionAsync (SharingDefinitionDTO sharingDefinition) - { - ApiResponse localVarResponse = await SharingDefinitionsUpdateSharingDefinitionAsyncWithHttpInfo(sharingDefinition); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SharingDefinitionInsertResult) - public async System.Threading.Tasks.Task> SharingDefinitionsUpdateSharingDefinitionAsyncWithHttpInfo (SharingDefinitionDTO sharingDefinition) - { - // verify the required parameter 'sharingDefinition' is set - if (sharingDefinition == null) - throw new ApiException(400, "Missing required parameter 'sharingDefinition' when calling SharingDefinitionsApi->SharingDefinitionsUpdateSharingDefinition"); - - var localVarPath = "/api/SharingDefinitions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sharingDefinition != null && sharingDefinition.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sharingDefinition); // http body (model) parameter - } - else - { - localVarPostBody = sharingDefinition; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SharingDefinitionsUpdateSharingDefinition", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SharingDefinitionInsertResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SharingDefinitionInsertResult))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ShippingApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ShippingApi.cs deleted file mode 100644 index 671a760..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ShippingApi.cs +++ /dev/null @@ -1,305 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IShippingApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all shippings stored in ARXivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<ShippingDTO> - List ShippingGetShippings (); - - /// - /// This call returns all shippings stored in ARXivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ShippingDTO> - ApiResponse> ShippingGetShippingsWithHttpInfo (); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all shippings stored in ARXivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<ShippingDTO> - System.Threading.Tasks.Task> ShippingGetShippingsAsync (); - - /// - /// This call returns all shippings stored in ARXivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ShippingDTO>) - System.Threading.Tasks.Task>> ShippingGetShippingsAsyncWithHttpInfo (); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ShippingApi : IShippingApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ShippingApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ShippingApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all shippings stored in ARXivar - /// - /// Thrown when fails to make API call - /// List<ShippingDTO> - public List ShippingGetShippings () - { - ApiResponse> localVarResponse = ShippingGetShippingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all shippings stored in ARXivar - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ShippingDTO> - public ApiResponse< List > ShippingGetShippingsWithHttpInfo () - { - - var localVarPath = "/api/Shippings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ShippingGetShippings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all shippings stored in ARXivar - /// - /// Thrown when fails to make API call - /// Task of List<ShippingDTO> - public async System.Threading.Tasks.Task> ShippingGetShippingsAsync () - { - ApiResponse> localVarResponse = await ShippingGetShippingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all shippings stored in ARXivar - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ShippingDTO>) - public async System.Threading.Tasks.Task>> ShippingGetShippingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/Shippings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ShippingGetShippings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/SignApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/SignApi.cs deleted file mode 100644 index dd181fd..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/SignApi.cs +++ /dev/null @@ -1,2777 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ISignApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes a signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// - void SignDeleteSignCert (int? id); - - /// - /// This call deletes a signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of Object(void) - ApiResponse SignDeleteSignCertWithHttpInfo (int? id); - /// - /// This call returns the related certificates of a given Sign certificate (es: Telecom Remote Provider) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// List<SignCertRelatedDTO> - List SignGetRelatedSignCertList (int? signCertId); - - /// - /// This call returns the related certificates of a given Sign certificate (es: Telecom Remote Provider) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// ApiResponse of List<SignCertRelatedDTO> - ApiResponse> SignGetRelatedSignCertListWithHttpInfo (int? signCertId); - /// - /// This call returs a specific signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// SignCertDTO - SignCertDTO SignGetSignCert (int? id); - - /// - /// This call returs a specific signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of SignCertDTO - ApiResponse SignGetSignCertWithHttpInfo (int? id); - /// - /// This call returs all signature certificates of user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<SignCertDTO> - List SignGetSignCertList (); - - /// - /// This call returs all signature certificates of user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SignCertDTO> - ApiResponse> SignGetSignCertListWithHttpInfo (); - /// - /// This call returs all signature certificates - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<SignCertTypeDTO> - List SignGetSignCertTypeList (); - - /// - /// This call returs all signature certificates - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SignCertTypeDTO> - ApiResponse> SignGetSignCertTypeListWithHttpInfo (); - /// - /// This call returns the automatic use of a given Sign certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// SignCertUseGetDTO - SignCertUseGetDTO SignGetSignCertUseList (int? signCertId); - - /// - /// This call returns the automatic use of a given Sign certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// ApiResponse of SignCertUseGetDTO - ApiResponse SignGetSignCertUseListWithHttpInfo (int? signCertId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// VerifyInfoDTO - VerifyInfoDTO SignGetVerifyInfo (VerifyInfoRequestDTO verifyInfoRequestDto); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of VerifyInfoDTO - ApiResponse SignGetVerifyInfoWithHttpInfo (VerifyInfoRequestDTO verifyInfoRequestDto); - /// - /// This call inserts a signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SignCertDTO - SignCertDTO SignInsertSignCert (SignCertInsertDTO certInsert); - - /// - /// This call inserts a signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SignCertDTO - ApiResponse SignInsertSignCertWithHttpInfo (SignCertInsertDTO certInsert); - /// - /// This call executes a remote signature operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of documents to sign - /// RemoteSignResponseDTO - RemoteSignResponseDTO SignRemoteSign (RemoteSignRequestDTO remoteSignRequest); - - /// - /// This call executes a remote signature operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of documents to sign - /// ApiResponse of RemoteSignResponseDTO - ApiResponse SignRemoteSignWithHttpInfo (RemoteSignRequestDTO remoteSignRequest); - /// - /// This call executes a remote signature operation on a TaskWork list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskWorks to sign - /// RemoteSignResponseDTO - RemoteSignResponseDTO SignRemoteSignTaskWork (RemoteSignTaskWorkRequestDTO remoteSignTaskWorkRequest); - - /// - /// This call executes a remote signature operation on a TaskWork list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskWorks to sign - /// ApiResponse of RemoteSignResponseDTO - ApiResponse SignRemoteSignTaskWorkWithHttpInfo (RemoteSignTaskWorkRequestDTO remoteSignTaskWorkRequest); - /// - /// This call tests a Sign certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Information of test password - /// - void SignTestSignCert (int? signCertId, SignCertPasswordTestDTO certPasswordTest); - - /// - /// This call tests a Sign certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Information of test password - /// ApiResponse of Object(void) - ApiResponse SignTestSignCertWithHttpInfo (int? signCertId, SignCertPasswordTestDTO certPasswordTest); - /// - /// This call updates a signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Information to update - /// SignCertDTO - SignCertDTO SignUpdateSignCert (int? id, SignCertUpdateDTO certUpdate); - - /// - /// This call updates a signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Information to update - /// ApiResponse of SignCertDTO - ApiResponse SignUpdateSignCertWithHttpInfo (int? id, SignCertUpdateDTO certUpdate); - /// - /// This call updates the automatic use for a given Sign certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Setting of certificate use - /// SignCertUseGetDTO - SignCertUseGetDTO SignUpdateSignCertUseList (int? signCertId, SignCertUseSetDTO certUseSet); - - /// - /// This call updates the automatic use for a given Sign certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Setting of certificate use - /// ApiResponse of SignCertUseGetDTO - ApiResponse SignUpdateSignCertUseListWithHttpInfo (int? signCertId, SignCertUseSetDTO certUseSet); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes a signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of void - System.Threading.Tasks.Task SignDeleteSignCertAsync (int? id); - - /// - /// This call deletes a signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> SignDeleteSignCertAsyncWithHttpInfo (int? id); - /// - /// This call returns the related certificates of a given Sign certificate (es: Telecom Remote Provider) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Task of List<SignCertRelatedDTO> - System.Threading.Tasks.Task> SignGetRelatedSignCertListAsync (int? signCertId); - - /// - /// This call returns the related certificates of a given Sign certificate (es: Telecom Remote Provider) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Task of ApiResponse (List<SignCertRelatedDTO>) - System.Threading.Tasks.Task>> SignGetRelatedSignCertListAsyncWithHttpInfo (int? signCertId); - /// - /// This call returs a specific signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of SignCertDTO - System.Threading.Tasks.Task SignGetSignCertAsync (int? id); - - /// - /// This call returs a specific signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse (SignCertDTO) - System.Threading.Tasks.Task> SignGetSignCertAsyncWithHttpInfo (int? id); - /// - /// This call returs all signature certificates of user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<SignCertDTO> - System.Threading.Tasks.Task> SignGetSignCertListAsync (); - - /// - /// This call returs all signature certificates of user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SignCertDTO>) - System.Threading.Tasks.Task>> SignGetSignCertListAsyncWithHttpInfo (); - /// - /// This call returs all signature certificates - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<SignCertTypeDTO> - System.Threading.Tasks.Task> SignGetSignCertTypeListAsync (); - - /// - /// This call returs all signature certificates - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SignCertTypeDTO>) - System.Threading.Tasks.Task>> SignGetSignCertTypeListAsyncWithHttpInfo (); - /// - /// This call returns the automatic use of a given Sign certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Task of SignCertUseGetDTO - System.Threading.Tasks.Task SignGetSignCertUseListAsync (int? signCertId); - - /// - /// This call returns the automatic use of a given Sign certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Task of ApiResponse (SignCertUseGetDTO) - System.Threading.Tasks.Task> SignGetSignCertUseListAsyncWithHttpInfo (int? signCertId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of VerifyInfoDTO - System.Threading.Tasks.Task SignGetVerifyInfoAsync (VerifyInfoRequestDTO verifyInfoRequestDto); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (VerifyInfoDTO) - System.Threading.Tasks.Task> SignGetVerifyInfoAsyncWithHttpInfo (VerifyInfoRequestDTO verifyInfoRequestDto); - /// - /// This call inserts a signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SignCertDTO - System.Threading.Tasks.Task SignInsertSignCertAsync (SignCertInsertDTO certInsert); - - /// - /// This call inserts a signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SignCertDTO) - System.Threading.Tasks.Task> SignInsertSignCertAsyncWithHttpInfo (SignCertInsertDTO certInsert); - /// - /// This call executes a remote signature operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of documents to sign - /// Task of RemoteSignResponseDTO - System.Threading.Tasks.Task SignRemoteSignAsync (RemoteSignRequestDTO remoteSignRequest); - - /// - /// This call executes a remote signature operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of documents to sign - /// Task of ApiResponse (RemoteSignResponseDTO) - System.Threading.Tasks.Task> SignRemoteSignAsyncWithHttpInfo (RemoteSignRequestDTO remoteSignRequest); - /// - /// This call executes a remote signature operation on a TaskWork list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskWorks to sign - /// Task of RemoteSignResponseDTO - System.Threading.Tasks.Task SignRemoteSignTaskWorkAsync (RemoteSignTaskWorkRequestDTO remoteSignTaskWorkRequest); - - /// - /// This call executes a remote signature operation on a TaskWork list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskWorks to sign - /// Task of ApiResponse (RemoteSignResponseDTO) - System.Threading.Tasks.Task> SignRemoteSignTaskWorkAsyncWithHttpInfo (RemoteSignTaskWorkRequestDTO remoteSignTaskWorkRequest); - /// - /// This call tests a Sign certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Information of test password - /// Task of void - System.Threading.Tasks.Task SignTestSignCertAsync (int? signCertId, SignCertPasswordTestDTO certPasswordTest); - - /// - /// This call tests a Sign certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Information of test password - /// Task of ApiResponse - System.Threading.Tasks.Task> SignTestSignCertAsyncWithHttpInfo (int? signCertId, SignCertPasswordTestDTO certPasswordTest); - /// - /// This call updates a signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Information to update - /// Task of SignCertDTO - System.Threading.Tasks.Task SignUpdateSignCertAsync (int? id, SignCertUpdateDTO certUpdate); - - /// - /// This call updates a signature certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Information to update - /// Task of ApiResponse (SignCertDTO) - System.Threading.Tasks.Task> SignUpdateSignCertAsyncWithHttpInfo (int? id, SignCertUpdateDTO certUpdate); - /// - /// This call updates the automatic use for a given Sign certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Setting of certificate use - /// Task of SignCertUseGetDTO - System.Threading.Tasks.Task SignUpdateSignCertUseListAsync (int? signCertId, SignCertUseSetDTO certUseSet); - - /// - /// This call updates the automatic use for a given Sign certificate - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Setting of certificate use - /// Task of ApiResponse (SignCertUseGetDTO) - System.Threading.Tasks.Task> SignUpdateSignCertUseListAsyncWithHttpInfo (int? signCertId, SignCertUseSetDTO certUseSet); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class SignApi : ISignApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public SignApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public SignApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes a signature certificate - /// - /// Thrown when fails to make API call - /// Identifier - /// - public void SignDeleteSignCert (int? id) - { - SignDeleteSignCertWithHttpInfo(id); - } - - /// - /// This call deletes a signature certificate - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of Object(void) - public ApiResponse SignDeleteSignCertWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SignApi->SignDeleteSignCert"); - - var localVarPath = "/api/Sign/SignCert/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignDeleteSignCert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a signature certificate - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of void - public async System.Threading.Tasks.Task SignDeleteSignCertAsync (int? id) - { - await SignDeleteSignCertAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes a signature certificate - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SignDeleteSignCertAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SignApi->SignDeleteSignCert"); - - var localVarPath = "/api/Sign/SignCert/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignDeleteSignCert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the related certificates of a given Sign certificate (es: Telecom Remote Provider) - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// List<SignCertRelatedDTO> - public List SignGetRelatedSignCertList (int? signCertId) - { - ApiResponse> localVarResponse = SignGetRelatedSignCertListWithHttpInfo(signCertId); - return localVarResponse.Data; - } - - /// - /// This call returns the related certificates of a given Sign certificate (es: Telecom Remote Provider) - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// ApiResponse of List<SignCertRelatedDTO> - public ApiResponse< List > SignGetRelatedSignCertListWithHttpInfo (int? signCertId) - { - // verify the required parameter 'signCertId' is set - if (signCertId == null) - throw new ApiException(400, "Missing required parameter 'signCertId' when calling SignApi->SignGetRelatedSignCertList"); - - var localVarPath = "/api/Sign/RelatedSignCertList/{signCertId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (signCertId != null) localVarPathParams.Add("signCertId", this.Configuration.ApiClient.ParameterToString(signCertId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignGetRelatedSignCertList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the related certificates of a given Sign certificate (es: Telecom Remote Provider) - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Task of List<SignCertRelatedDTO> - public async System.Threading.Tasks.Task> SignGetRelatedSignCertListAsync (int? signCertId) - { - ApiResponse> localVarResponse = await SignGetRelatedSignCertListAsyncWithHttpInfo(signCertId); - return localVarResponse.Data; - - } - - /// - /// This call returns the related certificates of a given Sign certificate (es: Telecom Remote Provider) - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Task of ApiResponse (List<SignCertRelatedDTO>) - public async System.Threading.Tasks.Task>> SignGetRelatedSignCertListAsyncWithHttpInfo (int? signCertId) - { - // verify the required parameter 'signCertId' is set - if (signCertId == null) - throw new ApiException(400, "Missing required parameter 'signCertId' when calling SignApi->SignGetRelatedSignCertList"); - - var localVarPath = "/api/Sign/RelatedSignCertList/{signCertId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (signCertId != null) localVarPathParams.Add("signCertId", this.Configuration.ApiClient.ParameterToString(signCertId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignGetRelatedSignCertList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returs a specific signature certificate - /// - /// Thrown when fails to make API call - /// Identifier - /// SignCertDTO - public SignCertDTO SignGetSignCert (int? id) - { - ApiResponse localVarResponse = SignGetSignCertWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returs a specific signature certificate - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of SignCertDTO - public ApiResponse< SignCertDTO > SignGetSignCertWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SignApi->SignGetSignCert"); - - var localVarPath = "/api/Sign/SignCert/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignGetSignCert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SignCertDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SignCertDTO))); - } - - /// - /// This call returs a specific signature certificate - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of SignCertDTO - public async System.Threading.Tasks.Task SignGetSignCertAsync (int? id) - { - ApiResponse localVarResponse = await SignGetSignCertAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returs a specific signature certificate - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse (SignCertDTO) - public async System.Threading.Tasks.Task> SignGetSignCertAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SignApi->SignGetSignCert"); - - var localVarPath = "/api/Sign/SignCert/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignGetSignCert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SignCertDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SignCertDTO))); - } - - /// - /// This call returs all signature certificates of user - /// - /// Thrown when fails to make API call - /// List<SignCertDTO> - public List SignGetSignCertList () - { - ApiResponse> localVarResponse = SignGetSignCertListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returs all signature certificates of user - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SignCertDTO> - public ApiResponse< List > SignGetSignCertListWithHttpInfo () - { - - var localVarPath = "/api/Sign/SignCertList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignGetSignCertList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returs all signature certificates of user - /// - /// Thrown when fails to make API call - /// Task of List<SignCertDTO> - public async System.Threading.Tasks.Task> SignGetSignCertListAsync () - { - ApiResponse> localVarResponse = await SignGetSignCertListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returs all signature certificates of user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SignCertDTO>) - public async System.Threading.Tasks.Task>> SignGetSignCertListAsyncWithHttpInfo () - { - - var localVarPath = "/api/Sign/SignCertList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignGetSignCertList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returs all signature certificates - /// - /// Thrown when fails to make API call - /// List<SignCertTypeDTO> - public List SignGetSignCertTypeList () - { - ApiResponse> localVarResponse = SignGetSignCertTypeListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returs all signature certificates - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SignCertTypeDTO> - public ApiResponse< List > SignGetSignCertTypeListWithHttpInfo () - { - - var localVarPath = "/api/Sign/SignCertTypeList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignGetSignCertTypeList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returs all signature certificates - /// - /// Thrown when fails to make API call - /// Task of List<SignCertTypeDTO> - public async System.Threading.Tasks.Task> SignGetSignCertTypeListAsync () - { - ApiResponse> localVarResponse = await SignGetSignCertTypeListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returs all signature certificates - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SignCertTypeDTO>) - public async System.Threading.Tasks.Task>> SignGetSignCertTypeListAsyncWithHttpInfo () - { - - var localVarPath = "/api/Sign/SignCertTypeList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignGetSignCertTypeList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the automatic use of a given Sign certificate - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// SignCertUseGetDTO - public SignCertUseGetDTO SignGetSignCertUseList (int? signCertId) - { - ApiResponse localVarResponse = SignGetSignCertUseListWithHttpInfo(signCertId); - return localVarResponse.Data; - } - - /// - /// This call returns the automatic use of a given Sign certificate - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// ApiResponse of SignCertUseGetDTO - public ApiResponse< SignCertUseGetDTO > SignGetSignCertUseListWithHttpInfo (int? signCertId) - { - // verify the required parameter 'signCertId' is set - if (signCertId == null) - throw new ApiException(400, "Missing required parameter 'signCertId' when calling SignApi->SignGetSignCertUseList"); - - var localVarPath = "/api/Sign/SignCertUse/{signCertId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (signCertId != null) localVarPathParams.Add("signCertId", this.Configuration.ApiClient.ParameterToString(signCertId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignGetSignCertUseList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SignCertUseGetDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SignCertUseGetDTO))); - } - - /// - /// This call returns the automatic use of a given Sign certificate - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Task of SignCertUseGetDTO - public async System.Threading.Tasks.Task SignGetSignCertUseListAsync (int? signCertId) - { - ApiResponse localVarResponse = await SignGetSignCertUseListAsyncWithHttpInfo(signCertId); - return localVarResponse.Data; - - } - - /// - /// This call returns the automatic use of a given Sign certificate - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Task of ApiResponse (SignCertUseGetDTO) - public async System.Threading.Tasks.Task> SignGetSignCertUseListAsyncWithHttpInfo (int? signCertId) - { - // verify the required parameter 'signCertId' is set - if (signCertId == null) - throw new ApiException(400, "Missing required parameter 'signCertId' when calling SignApi->SignGetSignCertUseList"); - - var localVarPath = "/api/Sign/SignCertUse/{signCertId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (signCertId != null) localVarPathParams.Add("signCertId", this.Configuration.ApiClient.ParameterToString(signCertId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignGetSignCertUseList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SignCertUseGetDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SignCertUseGetDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// VerifyInfoDTO - public VerifyInfoDTO SignGetVerifyInfo (VerifyInfoRequestDTO verifyInfoRequestDto) - { - ApiResponse localVarResponse = SignGetVerifyInfoWithHttpInfo(verifyInfoRequestDto); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of VerifyInfoDTO - public ApiResponse< VerifyInfoDTO > SignGetVerifyInfoWithHttpInfo (VerifyInfoRequestDTO verifyInfoRequestDto) - { - // verify the required parameter 'verifyInfoRequestDto' is set - if (verifyInfoRequestDto == null) - throw new ApiException(400, "Missing required parameter 'verifyInfoRequestDto' when calling SignApi->SignGetVerifyInfo"); - - var localVarPath = "/api/Sign/GetVerifyInfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (verifyInfoRequestDto != null && verifyInfoRequestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(verifyInfoRequestDto); // http body (model) parameter - } - else - { - localVarPostBody = verifyInfoRequestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignGetVerifyInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (VerifyInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VerifyInfoDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of VerifyInfoDTO - public async System.Threading.Tasks.Task SignGetVerifyInfoAsync (VerifyInfoRequestDTO verifyInfoRequestDto) - { - ApiResponse localVarResponse = await SignGetVerifyInfoAsyncWithHttpInfo(verifyInfoRequestDto); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (VerifyInfoDTO) - public async System.Threading.Tasks.Task> SignGetVerifyInfoAsyncWithHttpInfo (VerifyInfoRequestDTO verifyInfoRequestDto) - { - // verify the required parameter 'verifyInfoRequestDto' is set - if (verifyInfoRequestDto == null) - throw new ApiException(400, "Missing required parameter 'verifyInfoRequestDto' when calling SignApi->SignGetVerifyInfo"); - - var localVarPath = "/api/Sign/GetVerifyInfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (verifyInfoRequestDto != null && verifyInfoRequestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(verifyInfoRequestDto); // http body (model) parameter - } - else - { - localVarPostBody = verifyInfoRequestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignGetVerifyInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (VerifyInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VerifyInfoDTO))); - } - - /// - /// This call inserts a signature certificate - /// - /// Thrown when fails to make API call - /// - /// SignCertDTO - public SignCertDTO SignInsertSignCert (SignCertInsertDTO certInsert) - { - ApiResponse localVarResponse = SignInsertSignCertWithHttpInfo(certInsert); - return localVarResponse.Data; - } - - /// - /// This call inserts a signature certificate - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SignCertDTO - public ApiResponse< SignCertDTO > SignInsertSignCertWithHttpInfo (SignCertInsertDTO certInsert) - { - // verify the required parameter 'certInsert' is set - if (certInsert == null) - throw new ApiException(400, "Missing required parameter 'certInsert' when calling SignApi->SignInsertSignCert"); - - var localVarPath = "/api/Sign/InsertSignCert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (certInsert != null && certInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(certInsert); // http body (model) parameter - } - else - { - localVarPostBody = certInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignInsertSignCert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SignCertDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SignCertDTO))); - } - - /// - /// This call inserts a signature certificate - /// - /// Thrown when fails to make API call - /// - /// Task of SignCertDTO - public async System.Threading.Tasks.Task SignInsertSignCertAsync (SignCertInsertDTO certInsert) - { - ApiResponse localVarResponse = await SignInsertSignCertAsyncWithHttpInfo(certInsert); - return localVarResponse.Data; - - } - - /// - /// This call inserts a signature certificate - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SignCertDTO) - public async System.Threading.Tasks.Task> SignInsertSignCertAsyncWithHttpInfo (SignCertInsertDTO certInsert) - { - // verify the required parameter 'certInsert' is set - if (certInsert == null) - throw new ApiException(400, "Missing required parameter 'certInsert' when calling SignApi->SignInsertSignCert"); - - var localVarPath = "/api/Sign/InsertSignCert"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (certInsert != null && certInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(certInsert); // http body (model) parameter - } - else - { - localVarPostBody = certInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignInsertSignCert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SignCertDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SignCertDTO))); - } - - /// - /// This call executes a remote signature operation - /// - /// Thrown when fails to make API call - /// List of documents to sign - /// RemoteSignResponseDTO - public RemoteSignResponseDTO SignRemoteSign (RemoteSignRequestDTO remoteSignRequest) - { - ApiResponse localVarResponse = SignRemoteSignWithHttpInfo(remoteSignRequest); - return localVarResponse.Data; - } - - /// - /// This call executes a remote signature operation - /// - /// Thrown when fails to make API call - /// List of documents to sign - /// ApiResponse of RemoteSignResponseDTO - public ApiResponse< RemoteSignResponseDTO > SignRemoteSignWithHttpInfo (RemoteSignRequestDTO remoteSignRequest) - { - // verify the required parameter 'remoteSignRequest' is set - if (remoteSignRequest == null) - throw new ApiException(400, "Missing required parameter 'remoteSignRequest' when calling SignApi->SignRemoteSign"); - - var localVarPath = "/api/Sign/RemoteSign"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (remoteSignRequest != null && remoteSignRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(remoteSignRequest); // http body (model) parameter - } - else - { - localVarPostBody = remoteSignRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignRemoteSign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RemoteSignResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteSignResponseDTO))); - } - - /// - /// This call executes a remote signature operation - /// - /// Thrown when fails to make API call - /// List of documents to sign - /// Task of RemoteSignResponseDTO - public async System.Threading.Tasks.Task SignRemoteSignAsync (RemoteSignRequestDTO remoteSignRequest) - { - ApiResponse localVarResponse = await SignRemoteSignAsyncWithHttpInfo(remoteSignRequest); - return localVarResponse.Data; - - } - - /// - /// This call executes a remote signature operation - /// - /// Thrown when fails to make API call - /// List of documents to sign - /// Task of ApiResponse (RemoteSignResponseDTO) - public async System.Threading.Tasks.Task> SignRemoteSignAsyncWithHttpInfo (RemoteSignRequestDTO remoteSignRequest) - { - // verify the required parameter 'remoteSignRequest' is set - if (remoteSignRequest == null) - throw new ApiException(400, "Missing required parameter 'remoteSignRequest' when calling SignApi->SignRemoteSign"); - - var localVarPath = "/api/Sign/RemoteSign"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (remoteSignRequest != null && remoteSignRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(remoteSignRequest); // http body (model) parameter - } - else - { - localVarPostBody = remoteSignRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignRemoteSign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RemoteSignResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteSignResponseDTO))); - } - - /// - /// This call executes a remote signature operation on a TaskWork list - /// - /// Thrown when fails to make API call - /// List of taskWorks to sign - /// RemoteSignResponseDTO - public RemoteSignResponseDTO SignRemoteSignTaskWork (RemoteSignTaskWorkRequestDTO remoteSignTaskWorkRequest) - { - ApiResponse localVarResponse = SignRemoteSignTaskWorkWithHttpInfo(remoteSignTaskWorkRequest); - return localVarResponse.Data; - } - - /// - /// This call executes a remote signature operation on a TaskWork list - /// - /// Thrown when fails to make API call - /// List of taskWorks to sign - /// ApiResponse of RemoteSignResponseDTO - public ApiResponse< RemoteSignResponseDTO > SignRemoteSignTaskWorkWithHttpInfo (RemoteSignTaskWorkRequestDTO remoteSignTaskWorkRequest) - { - // verify the required parameter 'remoteSignTaskWorkRequest' is set - if (remoteSignTaskWorkRequest == null) - throw new ApiException(400, "Missing required parameter 'remoteSignTaskWorkRequest' when calling SignApi->SignRemoteSignTaskWork"); - - var localVarPath = "/api/Sign/RemoteSignTaskWork"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (remoteSignTaskWorkRequest != null && remoteSignTaskWorkRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(remoteSignTaskWorkRequest); // http body (model) parameter - } - else - { - localVarPostBody = remoteSignTaskWorkRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignRemoteSignTaskWork", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RemoteSignResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteSignResponseDTO))); - } - - /// - /// This call executes a remote signature operation on a TaskWork list - /// - /// Thrown when fails to make API call - /// List of taskWorks to sign - /// Task of RemoteSignResponseDTO - public async System.Threading.Tasks.Task SignRemoteSignTaskWorkAsync (RemoteSignTaskWorkRequestDTO remoteSignTaskWorkRequest) - { - ApiResponse localVarResponse = await SignRemoteSignTaskWorkAsyncWithHttpInfo(remoteSignTaskWorkRequest); - return localVarResponse.Data; - - } - - /// - /// This call executes a remote signature operation on a TaskWork list - /// - /// Thrown when fails to make API call - /// List of taskWorks to sign - /// Task of ApiResponse (RemoteSignResponseDTO) - public async System.Threading.Tasks.Task> SignRemoteSignTaskWorkAsyncWithHttpInfo (RemoteSignTaskWorkRequestDTO remoteSignTaskWorkRequest) - { - // verify the required parameter 'remoteSignTaskWorkRequest' is set - if (remoteSignTaskWorkRequest == null) - throw new ApiException(400, "Missing required parameter 'remoteSignTaskWorkRequest' when calling SignApi->SignRemoteSignTaskWork"); - - var localVarPath = "/api/Sign/RemoteSignTaskWork"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (remoteSignTaskWorkRequest != null && remoteSignTaskWorkRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(remoteSignTaskWorkRequest); // http body (model) parameter - } - else - { - localVarPostBody = remoteSignTaskWorkRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignRemoteSignTaskWork", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RemoteSignResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteSignResponseDTO))); - } - - /// - /// This call tests a Sign certificate - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Information of test password - /// - public void SignTestSignCert (int? signCertId, SignCertPasswordTestDTO certPasswordTest) - { - SignTestSignCertWithHttpInfo(signCertId, certPasswordTest); - } - - /// - /// This call tests a Sign certificate - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Information of test password - /// ApiResponse of Object(void) - public ApiResponse SignTestSignCertWithHttpInfo (int? signCertId, SignCertPasswordTestDTO certPasswordTest) - { - // verify the required parameter 'signCertId' is set - if (signCertId == null) - throw new ApiException(400, "Missing required parameter 'signCertId' when calling SignApi->SignTestSignCert"); - // verify the required parameter 'certPasswordTest' is set - if (certPasswordTest == null) - throw new ApiException(400, "Missing required parameter 'certPasswordTest' when calling SignApi->SignTestSignCert"); - - var localVarPath = "/api/Sign/TestSignCert/{signCertId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (signCertId != null) localVarPathParams.Add("signCertId", this.Configuration.ApiClient.ParameterToString(signCertId)); // path parameter - if (certPasswordTest != null && certPasswordTest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(certPasswordTest); // http body (model) parameter - } - else - { - localVarPostBody = certPasswordTest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignTestSignCert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call tests a Sign certificate - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Information of test password - /// Task of void - public async System.Threading.Tasks.Task SignTestSignCertAsync (int? signCertId, SignCertPasswordTestDTO certPasswordTest) - { - await SignTestSignCertAsyncWithHttpInfo(signCertId, certPasswordTest); - - } - - /// - /// This call tests a Sign certificate - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Information of test password - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SignTestSignCertAsyncWithHttpInfo (int? signCertId, SignCertPasswordTestDTO certPasswordTest) - { - // verify the required parameter 'signCertId' is set - if (signCertId == null) - throw new ApiException(400, "Missing required parameter 'signCertId' when calling SignApi->SignTestSignCert"); - // verify the required parameter 'certPasswordTest' is set - if (certPasswordTest == null) - throw new ApiException(400, "Missing required parameter 'certPasswordTest' when calling SignApi->SignTestSignCert"); - - var localVarPath = "/api/Sign/TestSignCert/{signCertId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (signCertId != null) localVarPathParams.Add("signCertId", this.Configuration.ApiClient.ParameterToString(signCertId)); // path parameter - if (certPasswordTest != null && certPasswordTest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(certPasswordTest); // http body (model) parameter - } - else - { - localVarPostBody = certPasswordTest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignTestSignCert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates a signature certificate - /// - /// Thrown when fails to make API call - /// Identifier - /// Information to update - /// SignCertDTO - public SignCertDTO SignUpdateSignCert (int? id, SignCertUpdateDTO certUpdate) - { - ApiResponse localVarResponse = SignUpdateSignCertWithHttpInfo(id, certUpdate); - return localVarResponse.Data; - } - - /// - /// This call updates a signature certificate - /// - /// Thrown when fails to make API call - /// Identifier - /// Information to update - /// ApiResponse of SignCertDTO - public ApiResponse< SignCertDTO > SignUpdateSignCertWithHttpInfo (int? id, SignCertUpdateDTO certUpdate) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SignApi->SignUpdateSignCert"); - // verify the required parameter 'certUpdate' is set - if (certUpdate == null) - throw new ApiException(400, "Missing required parameter 'certUpdate' when calling SignApi->SignUpdateSignCert"); - - var localVarPath = "/api/Sign/UpdateSignCert/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (certUpdate != null && certUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(certUpdate); // http body (model) parameter - } - else - { - localVarPostBody = certUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignUpdateSignCert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SignCertDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SignCertDTO))); - } - - /// - /// This call updates a signature certificate - /// - /// Thrown when fails to make API call - /// Identifier - /// Information to update - /// Task of SignCertDTO - public async System.Threading.Tasks.Task SignUpdateSignCertAsync (int? id, SignCertUpdateDTO certUpdate) - { - ApiResponse localVarResponse = await SignUpdateSignCertAsyncWithHttpInfo(id, certUpdate); - return localVarResponse.Data; - - } - - /// - /// This call updates a signature certificate - /// - /// Thrown when fails to make API call - /// Identifier - /// Information to update - /// Task of ApiResponse (SignCertDTO) - public async System.Threading.Tasks.Task> SignUpdateSignCertAsyncWithHttpInfo (int? id, SignCertUpdateDTO certUpdate) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SignApi->SignUpdateSignCert"); - // verify the required parameter 'certUpdate' is set - if (certUpdate == null) - throw new ApiException(400, "Missing required parameter 'certUpdate' when calling SignApi->SignUpdateSignCert"); - - var localVarPath = "/api/Sign/UpdateSignCert/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (certUpdate != null && certUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(certUpdate); // http body (model) parameter - } - else - { - localVarPostBody = certUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignUpdateSignCert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SignCertDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SignCertDTO))); - } - - /// - /// This call updates the automatic use for a given Sign certificate - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Setting of certificate use - /// SignCertUseGetDTO - public SignCertUseGetDTO SignUpdateSignCertUseList (int? signCertId, SignCertUseSetDTO certUseSet) - { - ApiResponse localVarResponse = SignUpdateSignCertUseListWithHttpInfo(signCertId, certUseSet); - return localVarResponse.Data; - } - - /// - /// This call updates the automatic use for a given Sign certificate - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Setting of certificate use - /// ApiResponse of SignCertUseGetDTO - public ApiResponse< SignCertUseGetDTO > SignUpdateSignCertUseListWithHttpInfo (int? signCertId, SignCertUseSetDTO certUseSet) - { - // verify the required parameter 'signCertId' is set - if (signCertId == null) - throw new ApiException(400, "Missing required parameter 'signCertId' when calling SignApi->SignUpdateSignCertUseList"); - // verify the required parameter 'certUseSet' is set - if (certUseSet == null) - throw new ApiException(400, "Missing required parameter 'certUseSet' when calling SignApi->SignUpdateSignCertUseList"); - - var localVarPath = "/api/Sign/UpdateSignCertUse/{signCertId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (signCertId != null) localVarPathParams.Add("signCertId", this.Configuration.ApiClient.ParameterToString(signCertId)); // path parameter - if (certUseSet != null && certUseSet.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(certUseSet); // http body (model) parameter - } - else - { - localVarPostBody = certUseSet; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignUpdateSignCertUseList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SignCertUseGetDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SignCertUseGetDTO))); - } - - /// - /// This call updates the automatic use for a given Sign certificate - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Setting of certificate use - /// Task of SignCertUseGetDTO - public async System.Threading.Tasks.Task SignUpdateSignCertUseListAsync (int? signCertId, SignCertUseSetDTO certUseSet) - { - ApiResponse localVarResponse = await SignUpdateSignCertUseListAsyncWithHttpInfo(signCertId, certUseSet); - return localVarResponse.Data; - - } - - /// - /// This call updates the automatic use for a given Sign certificate - /// - /// Thrown when fails to make API call - /// Identifier of certificate - /// Setting of certificate use - /// Task of ApiResponse (SignCertUseGetDTO) - public async System.Threading.Tasks.Task> SignUpdateSignCertUseListAsyncWithHttpInfo (int? signCertId, SignCertUseSetDTO certUseSet) - { - // verify the required parameter 'signCertId' is set - if (signCertId == null) - throw new ApiException(400, "Missing required parameter 'signCertId' when calling SignApi->SignUpdateSignCertUseList"); - // verify the required parameter 'certUseSet' is set - if (certUseSet == null) - throw new ApiException(400, "Missing required parameter 'certUseSet' when calling SignApi->SignUpdateSignCertUseList"); - - var localVarPath = "/api/Sign/UpdateSignCertUse/{signCertId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (signCertId != null) localVarPathParams.Add("signCertId", this.Configuration.ApiClient.ParameterToString(signCertId)); // path parameter - if (certUseSet != null && certUseSet.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(certUseSet); // http body (model) parameter - } - else - { - localVarPostBody = certUseSet; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SignUpdateSignCertUseList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SignCertUseGetDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SignCertUseGetDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/StampsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/StampsApi.cs deleted file mode 100644 index 3bb5046..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/StampsApi.cs +++ /dev/null @@ -1,4341 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IStampsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call apply stampinstances in document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void StampsApplyStampInstanceFromDocnumber (int? docnumber); - - /// - /// This call apply stampinstances in document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse StampsApplyStampInstanceFromDocnumberWithHttpInfo (int? docnumber); - /// - /// This call apply stampinstances in process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void StampsApplyStampInstanceFromProcessDoc (int? processDocId); - - /// - /// This call apply stampinstances in process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse StampsApplyStampInstanceFromProcessDocWithHttpInfo (int? processDocId); - /// - /// This call returns if user can add virtual stamps - /// - /// - /// - /// - /// Thrown when fails to make API call - /// bool? - bool? StampsCanAddVirtualStamp (); - - /// - /// This call returns if user can add virtual stamps - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - ApiResponse StampsCanAddVirtualStampWithHttpInfo (); - /// - /// This call returns if user can apply stamps - /// - /// - /// - /// - /// Thrown when fails to make API call - /// bool? - bool? StampsCanApplyStamp (); - - /// - /// This call returns if user can apply stamps - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - ApiResponse StampsCanApplyStampWithHttpInfo (); - /// - /// This call returns the png file results on convertion from pdf file of profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Page index - /// System.IO.Stream - System.IO.Stream StampsConvertToPngByDocnumberAndPageIndex (int? docnumber, int? pageIndex); - - /// - /// This call returns the png file results on convertion from pdf file of profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Page index - /// ApiResponse of System.IO.Stream - ApiResponse StampsConvertToPngByDocnumberAndPageIndexWithHttpInfo (int? docnumber, int? pageIndex); - /// - /// This call returns the png file results on convertion from pdf file of task profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process document Identifier - /// Page index - /// System.IO.Stream - System.IO.Stream StampsConvertToPngByProcessDocAndPageIndex (int? processDocId, int? pageIndex); - - /// - /// This call returns the png file results on convertion from pdf file of task profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process document Identifier - /// Page index - /// ApiResponse of System.IO.Stream - ApiResponse StampsConvertToPngByProcessDocAndPageIndexWithHttpInfo (int? processDocId, int? pageIndex); - /// - /// This call deletes stampinstances from docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// - void StampsDeleteStampInstanceFromDocnumber (int? docnumber, List toRemove); - - /// - /// This call deletes stampinstances from docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object(void) - ApiResponse StampsDeleteStampInstanceFromDocnumberWithHttpInfo (int? docnumber, List toRemove); - /// - /// This call deletes stampinstances from docnumber for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// - void StampsDeleteStampInstanceFromProcessDoc (int? processDocId, List toRemove); - - /// - /// This call deletes stampinstances from docnumber for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object(void) - ApiResponse StampsDeleteStampInstanceFromProcessDocWithHttpInfo (int? processDocId, List toRemove); - /// - /// This call returns all the type of stamp defined in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<StampDefinitionDTO> - List StampsGet (); - - /// - /// This call returns all the type of stamp defined in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<StampDefinitionDTO> - ApiResponse> StampsGetWithHttpInfo (); - /// - /// This call returns the number of pages for pdf document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// int? - int? StampsGetPdfPageNumber (int? docnumber); - - /// - /// This call returns the number of pages for pdf document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of int? - ApiResponse StampsGetPdfPageNumberWithHttpInfo (int? docnumber); - /// - /// This call returns the number of pages for pdf document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// int? - int? StampsGetPdfPageNumberForProcessDoc (int? processDocId); - - /// - /// This call returns the number of pages for pdf document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of int? - ApiResponse StampsGetPdfPageNumberForProcessDocWithHttpInfo (int? processDocId); - /// - /// This call returns all the stamp definition virtual by a docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<StampDefinitionDTO> - List StampsGetStampsDefinitionByDocnumber (int? docnumber); - - /// - /// This call returns all the stamp definition virtual by a docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<StampDefinitionDTO> - ApiResponse> StampsGetStampsDefinitionByDocnumberWithHttpInfo (int? docnumber); - /// - /// This call returns all the stamp definition virtual by a process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<StampDefinitionDTO> - List StampsGetStampsDefinitionByProcessDoc (int? processDocId); - - /// - /// This call returns all the stamp definition virtual by a process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<StampDefinitionDTO> - ApiResponse> StampsGetStampsDefinitionByProcessDocWithHttpInfo (int? processDocId); - /// - /// This call returns all the stamp applied virtual on a docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<StampsInstanceDTO> - List StampsGetStampsInstanceByDocnumber (int? docnumber); - - /// - /// This call returns all the stamp applied virtual on a docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<StampsInstanceDTO> - ApiResponse> StampsGetStampsInstanceByDocnumberWithHttpInfo (int? docnumber); - /// - /// This call returns all the stamp applied virtual on a process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<StampsInstanceDTO> - List StampsGetStampsInstanceByProcessDoc (int? processDocId); - - /// - /// This call returns all the stamp applied virtual on a process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<StampsInstanceDTO> - ApiResponse> StampsGetStampsInstanceByProcessDocWithHttpInfo (int? processDocId); - /// - /// This call inserts new stampinstances for docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// - void StampsInsertStampInstanceFromDocnumber (int? docnumber, List toInsert); - - /// - /// This call inserts new stampinstances for docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object(void) - ApiResponse StampsInsertStampInstanceFromDocnumberWithHttpInfo (int? docnumber, List toInsert); - /// - /// This call inserts new stampinstances for process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// - void StampsInsertStampInstanceFromProcessDoc (int? processDocId, List toInsert); - - /// - /// This call inserts new stampinstances for process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object(void) - ApiResponse StampsInsertStampInstanceFromProcessDocWithHttpInfo (int? processDocId, List toInsert); - /// - /// This call returns the generated image for a stamp definition and a docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Stamp definition object - /// System.IO.Stream - System.IO.Stream StampsRenderStampDefinitionForDocnumber (int? docnumber, StampDefinitionDTO stampDefinition); - - /// - /// This call returns the generated image for a stamp definition and a docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Stamp definition object - /// ApiResponse of System.IO.Stream - ApiResponse StampsRenderStampDefinitionForDocnumberWithHttpInfo (int? docnumber, StampDefinitionDTO stampDefinition); - /// - /// This call returns the generated image for a stamp definition and a processDocId - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Workflow Document Identifier - /// Stamp definition object - /// System.IO.Stream - System.IO.Stream StampsRenderStampDefinitionForProcessDoc (int? processDocId, StampDefinitionDTO stampDefinition); - - /// - /// This call returns the generated image for a stamp definition and a processDocId - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Workflow Document Identifier - /// Stamp definition object - /// ApiResponse of System.IO.Stream - ApiResponse StampsRenderStampDefinitionForProcessDocWithHttpInfo (int? processDocId, StampDefinitionDTO stampDefinition); - /// - /// This call updates new stampinstances for docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// - void StampsUpdateStampInstanceFromDocnumber (int? docnumber, List toUpdate); - - /// - /// This call updates new stampinstances for docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object(void) - ApiResponse StampsUpdateStampInstanceFromDocnumberWithHttpInfo (int? docnumber, List toUpdate); - /// - /// This call updates stampinstances for process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// - void StampsUpdateStampInstanceFromProcessDoc (int? processDocId, List toUpdate); - - /// - /// This call updates stampinstances for process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object(void) - ApiResponse StampsUpdateStampInstanceFromProcessDocWithHttpInfo (int? processDocId, List toUpdate); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call apply stampinstances in document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task StampsApplyStampInstanceFromDocnumberAsync (int? docnumber); - - /// - /// This call apply stampinstances in document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> StampsApplyStampInstanceFromDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call apply stampinstances in process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task StampsApplyStampInstanceFromProcessDocAsync (int? processDocId); - - /// - /// This call apply stampinstances in process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> StampsApplyStampInstanceFromProcessDocAsyncWithHttpInfo (int? processDocId); - /// - /// This call returns if user can add virtual stamps - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of bool? - System.Threading.Tasks.Task StampsCanAddVirtualStampAsync (); - - /// - /// This call returns if user can add virtual stamps - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> StampsCanAddVirtualStampAsyncWithHttpInfo (); - /// - /// This call returns if user can apply stamps - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of bool? - System.Threading.Tasks.Task StampsCanApplyStampAsync (); - - /// - /// This call returns if user can apply stamps - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> StampsCanApplyStampAsyncWithHttpInfo (); - /// - /// This call returns the png file results on convertion from pdf file of profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Page index - /// Task of System.IO.Stream - System.Threading.Tasks.Task StampsConvertToPngByDocnumberAndPageIndexAsync (int? docnumber, int? pageIndex); - - /// - /// This call returns the png file results on convertion from pdf file of profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Page index - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> StampsConvertToPngByDocnumberAndPageIndexAsyncWithHttpInfo (int? docnumber, int? pageIndex); - /// - /// This call returns the png file results on convertion from pdf file of task profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process document Identifier - /// Page index - /// Task of System.IO.Stream - System.Threading.Tasks.Task StampsConvertToPngByProcessDocAndPageIndexAsync (int? processDocId, int? pageIndex); - - /// - /// This call returns the png file results on convertion from pdf file of task profile - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process document Identifier - /// Page index - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> StampsConvertToPngByProcessDocAndPageIndexAsyncWithHttpInfo (int? processDocId, int? pageIndex); - /// - /// This call deletes stampinstances from docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of void - System.Threading.Tasks.Task StampsDeleteStampInstanceFromDocnumberAsync (int? docnumber, List toRemove); - - /// - /// This call deletes stampinstances from docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> StampsDeleteStampInstanceFromDocnumberAsyncWithHttpInfo (int? docnumber, List toRemove); - /// - /// This call deletes stampinstances from docnumber for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of void - System.Threading.Tasks.Task StampsDeleteStampInstanceFromProcessDocAsync (int? processDocId, List toRemove); - - /// - /// This call deletes stampinstances from docnumber for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> StampsDeleteStampInstanceFromProcessDocAsyncWithHttpInfo (int? processDocId, List toRemove); - /// - /// This call returns all the type of stamp defined in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<StampDefinitionDTO> - System.Threading.Tasks.Task> StampsGetAsync (); - - /// - /// This call returns all the type of stamp defined in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<StampDefinitionDTO>) - System.Threading.Tasks.Task>> StampsGetAsyncWithHttpInfo (); - /// - /// This call returns the number of pages for pdf document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of int? - System.Threading.Tasks.Task StampsGetPdfPageNumberAsync (int? docnumber); - - /// - /// This call returns the number of pages for pdf document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (int?) - System.Threading.Tasks.Task> StampsGetPdfPageNumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call returns the number of pages for pdf document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of int? - System.Threading.Tasks.Task StampsGetPdfPageNumberForProcessDocAsync (int? processDocId); - - /// - /// This call returns the number of pages for pdf document for task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (int?) - System.Threading.Tasks.Task> StampsGetPdfPageNumberForProcessDocAsyncWithHttpInfo (int? processDocId); - /// - /// This call returns all the stamp definition virtual by a docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<StampDefinitionDTO> - System.Threading.Tasks.Task> StampsGetStampsDefinitionByDocnumberAsync (int? docnumber); - - /// - /// This call returns all the stamp definition virtual by a docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<StampDefinitionDTO>) - System.Threading.Tasks.Task>> StampsGetStampsDefinitionByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call returns all the stamp definition virtual by a process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<StampDefinitionDTO> - System.Threading.Tasks.Task> StampsGetStampsDefinitionByProcessDocAsync (int? processDocId); - - /// - /// This call returns all the stamp definition virtual by a process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<StampDefinitionDTO>) - System.Threading.Tasks.Task>> StampsGetStampsDefinitionByProcessDocAsyncWithHttpInfo (int? processDocId); - /// - /// This call returns all the stamp applied virtual on a docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<StampsInstanceDTO> - System.Threading.Tasks.Task> StampsGetStampsInstanceByDocnumberAsync (int? docnumber); - - /// - /// This call returns all the stamp applied virtual on a docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<StampsInstanceDTO>) - System.Threading.Tasks.Task>> StampsGetStampsInstanceByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call returns all the stamp applied virtual on a process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<StampsInstanceDTO> - System.Threading.Tasks.Task> StampsGetStampsInstanceByProcessDocAsync (int? processDocId); - - /// - /// This call returns all the stamp applied virtual on a process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<StampsInstanceDTO>) - System.Threading.Tasks.Task>> StampsGetStampsInstanceByProcessDocAsyncWithHttpInfo (int? processDocId); - /// - /// This call inserts new stampinstances for docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of void - System.Threading.Tasks.Task StampsInsertStampInstanceFromDocnumberAsync (int? docnumber, List toInsert); - - /// - /// This call inserts new stampinstances for docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> StampsInsertStampInstanceFromDocnumberAsyncWithHttpInfo (int? docnumber, List toInsert); - /// - /// This call inserts new stampinstances for process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of void - System.Threading.Tasks.Task StampsInsertStampInstanceFromProcessDocAsync (int? processDocId, List toInsert); - - /// - /// This call inserts new stampinstances for process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> StampsInsertStampInstanceFromProcessDocAsyncWithHttpInfo (int? processDocId, List toInsert); - /// - /// This call returns the generated image for a stamp definition and a docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Stamp definition object - /// Task of System.IO.Stream - System.Threading.Tasks.Task StampsRenderStampDefinitionForDocnumberAsync (int? docnumber, StampDefinitionDTO stampDefinition); - - /// - /// This call returns the generated image for a stamp definition and a docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Stamp definition object - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> StampsRenderStampDefinitionForDocnumberAsyncWithHttpInfo (int? docnumber, StampDefinitionDTO stampDefinition); - /// - /// This call returns the generated image for a stamp definition and a processDocId - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Workflow Document Identifier - /// Stamp definition object - /// Task of System.IO.Stream - System.Threading.Tasks.Task StampsRenderStampDefinitionForProcessDocAsync (int? processDocId, StampDefinitionDTO stampDefinition); - - /// - /// This call returns the generated image for a stamp definition and a processDocId - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Workflow Document Identifier - /// Stamp definition object - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> StampsRenderStampDefinitionForProcessDocAsyncWithHttpInfo (int? processDocId, StampDefinitionDTO stampDefinition); - /// - /// This call updates new stampinstances for docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of void - System.Threading.Tasks.Task StampsUpdateStampInstanceFromDocnumberAsync (int? docnumber, List toUpdate); - - /// - /// This call updates new stampinstances for docnumber - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> StampsUpdateStampInstanceFromDocnumberAsyncWithHttpInfo (int? docnumber, List toUpdate); - /// - /// This call updates stampinstances for process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of void - System.Threading.Tasks.Task StampsUpdateStampInstanceFromProcessDocAsync (int? processDocId, List toUpdate); - - /// - /// This call updates stampinstances for process document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> StampsUpdateStampInstanceFromProcessDocAsyncWithHttpInfo (int? processDocId, List toUpdate); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class StampsApi : IStampsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public StampsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public StampsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call apply stampinstances in document - /// - /// Thrown when fails to make API call - /// - /// - public void StampsApplyStampInstanceFromDocnumber (int? docnumber) - { - StampsApplyStampInstanceFromDocnumberWithHttpInfo(docnumber); - } - - /// - /// This call apply stampinstances in document - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse StampsApplyStampInstanceFromDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsApplyStampInstanceFromDocnumber"); - - var localVarPath = "/api/Stamps/applyStampInstanceFromDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsApplyStampInstanceFromDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call apply stampinstances in document - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task StampsApplyStampInstanceFromDocnumberAsync (int? docnumber) - { - await StampsApplyStampInstanceFromDocnumberAsyncWithHttpInfo(docnumber); - - } - - /// - /// This call apply stampinstances in document - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> StampsApplyStampInstanceFromDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsApplyStampInstanceFromDocnumber"); - - var localVarPath = "/api/Stamps/applyStampInstanceFromDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsApplyStampInstanceFromDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call apply stampinstances in process document - /// - /// Thrown when fails to make API call - /// - /// - public void StampsApplyStampInstanceFromProcessDoc (int? processDocId) - { - StampsApplyStampInstanceFromProcessDocWithHttpInfo(processDocId); - } - - /// - /// This call apply stampinstances in process document - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse StampsApplyStampInstanceFromProcessDocWithHttpInfo (int? processDocId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsApplyStampInstanceFromProcessDoc"); - - var localVarPath = "/api/Stamps/applyStampInstanceFromProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsApplyStampInstanceFromProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call apply stampinstances in process document - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task StampsApplyStampInstanceFromProcessDocAsync (int? processDocId) - { - await StampsApplyStampInstanceFromProcessDocAsyncWithHttpInfo(processDocId); - - } - - /// - /// This call apply stampinstances in process document - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> StampsApplyStampInstanceFromProcessDocAsyncWithHttpInfo (int? processDocId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsApplyStampInstanceFromProcessDoc"); - - var localVarPath = "/api/Stamps/applyStampInstanceFromProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsApplyStampInstanceFromProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns if user can add virtual stamps - /// - /// Thrown when fails to make API call - /// bool? - public bool? StampsCanAddVirtualStamp () - { - ApiResponse localVarResponse = StampsCanAddVirtualStampWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns if user can add virtual stamps - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - public ApiResponse< bool? > StampsCanAddVirtualStampWithHttpInfo () - { - - var localVarPath = "/api/Stamps/canAddVirtualStamps"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsCanAddVirtualStamp", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns if user can add virtual stamps - /// - /// Thrown when fails to make API call - /// Task of bool? - public async System.Threading.Tasks.Task StampsCanAddVirtualStampAsync () - { - ApiResponse localVarResponse = await StampsCanAddVirtualStampAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns if user can add virtual stamps - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> StampsCanAddVirtualStampAsyncWithHttpInfo () - { - - var localVarPath = "/api/Stamps/canAddVirtualStamps"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsCanAddVirtualStamp", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns if user can apply stamps - /// - /// Thrown when fails to make API call - /// bool? - public bool? StampsCanApplyStamp () - { - ApiResponse localVarResponse = StampsCanApplyStampWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns if user can apply stamps - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - public ApiResponse< bool? > StampsCanApplyStampWithHttpInfo () - { - - var localVarPath = "/api/Stamps/canApplyStamps"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsCanApplyStamp", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns if user can apply stamps - /// - /// Thrown when fails to make API call - /// Task of bool? - public async System.Threading.Tasks.Task StampsCanApplyStampAsync () - { - ApiResponse localVarResponse = await StampsCanApplyStampAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns if user can apply stamps - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> StampsCanApplyStampAsyncWithHttpInfo () - { - - var localVarPath = "/api/Stamps/canApplyStamps"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsCanApplyStamp", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns the png file results on convertion from pdf file of profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Page index - /// System.IO.Stream - public System.IO.Stream StampsConvertToPngByDocnumberAndPageIndex (int? docnumber, int? pageIndex) - { - ApiResponse localVarResponse = StampsConvertToPngByDocnumberAndPageIndexWithHttpInfo(docnumber, pageIndex); - return localVarResponse.Data; - } - - /// - /// This call returns the png file results on convertion from pdf file of profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Page index - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > StampsConvertToPngByDocnumberAndPageIndexWithHttpInfo (int? docnumber, int? pageIndex) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsConvertToPngByDocnumberAndPageIndex"); - // verify the required parameter 'pageIndex' is set - if (pageIndex == null) - throw new ApiException(400, "Missing required parameter 'pageIndex' when calling StampsApi->StampsConvertToPngByDocnumberAndPageIndex"); - - var localVarPath = "/api/Stamps/convertToPng/{docnumber}/{pageIndex}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (pageIndex != null) localVarPathParams.Add("pageIndex", this.Configuration.ApiClient.ParameterToString(pageIndex)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsConvertToPngByDocnumberAndPageIndex", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the png file results on convertion from pdf file of profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Page index - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task StampsConvertToPngByDocnumberAndPageIndexAsync (int? docnumber, int? pageIndex) - { - ApiResponse localVarResponse = await StampsConvertToPngByDocnumberAndPageIndexAsyncWithHttpInfo(docnumber, pageIndex); - return localVarResponse.Data; - - } - - /// - /// This call returns the png file results on convertion from pdf file of profile - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Page index - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> StampsConvertToPngByDocnumberAndPageIndexAsyncWithHttpInfo (int? docnumber, int? pageIndex) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsConvertToPngByDocnumberAndPageIndex"); - // verify the required parameter 'pageIndex' is set - if (pageIndex == null) - throw new ApiException(400, "Missing required parameter 'pageIndex' when calling StampsApi->StampsConvertToPngByDocnumberAndPageIndex"); - - var localVarPath = "/api/Stamps/convertToPng/{docnumber}/{pageIndex}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (pageIndex != null) localVarPathParams.Add("pageIndex", this.Configuration.ApiClient.ParameterToString(pageIndex)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsConvertToPngByDocnumberAndPageIndex", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the png file results on convertion from pdf file of task profile - /// - /// Thrown when fails to make API call - /// Process document Identifier - /// Page index - /// System.IO.Stream - public System.IO.Stream StampsConvertToPngByProcessDocAndPageIndex (int? processDocId, int? pageIndex) - { - ApiResponse localVarResponse = StampsConvertToPngByProcessDocAndPageIndexWithHttpInfo(processDocId, pageIndex); - return localVarResponse.Data; - } - - /// - /// This call returns the png file results on convertion from pdf file of task profile - /// - /// Thrown when fails to make API call - /// Process document Identifier - /// Page index - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > StampsConvertToPngByProcessDocAndPageIndexWithHttpInfo (int? processDocId, int? pageIndex) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsConvertToPngByProcessDocAndPageIndex"); - // verify the required parameter 'pageIndex' is set - if (pageIndex == null) - throw new ApiException(400, "Missing required parameter 'pageIndex' when calling StampsApi->StampsConvertToPngByProcessDocAndPageIndex"); - - var localVarPath = "/api/Stamps/convertToPngForTask/{processDocId}/{pageIndex}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (pageIndex != null) localVarPathParams.Add("pageIndex", this.Configuration.ApiClient.ParameterToString(pageIndex)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsConvertToPngByProcessDocAndPageIndex", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the png file results on convertion from pdf file of task profile - /// - /// Thrown when fails to make API call - /// Process document Identifier - /// Page index - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task StampsConvertToPngByProcessDocAndPageIndexAsync (int? processDocId, int? pageIndex) - { - ApiResponse localVarResponse = await StampsConvertToPngByProcessDocAndPageIndexAsyncWithHttpInfo(processDocId, pageIndex); - return localVarResponse.Data; - - } - - /// - /// This call returns the png file results on convertion from pdf file of task profile - /// - /// Thrown when fails to make API call - /// Process document Identifier - /// Page index - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> StampsConvertToPngByProcessDocAndPageIndexAsyncWithHttpInfo (int? processDocId, int? pageIndex) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsConvertToPngByProcessDocAndPageIndex"); - // verify the required parameter 'pageIndex' is set - if (pageIndex == null) - throw new ApiException(400, "Missing required parameter 'pageIndex' when calling StampsApi->StampsConvertToPngByProcessDocAndPageIndex"); - - var localVarPath = "/api/Stamps/convertToPngForTask/{processDocId}/{pageIndex}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (pageIndex != null) localVarPathParams.Add("pageIndex", this.Configuration.ApiClient.ParameterToString(pageIndex)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsConvertToPngByProcessDocAndPageIndex", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call deletes stampinstances from docnumber - /// - /// Thrown when fails to make API call - /// - /// - /// - public void StampsDeleteStampInstanceFromDocnumber (int? docnumber, List toRemove) - { - StampsDeleteStampInstanceFromDocnumberWithHttpInfo(docnumber, toRemove); - } - - /// - /// This call deletes stampinstances from docnumber - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object(void) - public ApiResponse StampsDeleteStampInstanceFromDocnumberWithHttpInfo (int? docnumber, List toRemove) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsDeleteStampInstanceFromDocnumber"); - // verify the required parameter 'toRemove' is set - if (toRemove == null) - throw new ApiException(400, "Missing required parameter 'toRemove' when calling StampsApi->StampsDeleteStampInstanceFromDocnumber"); - - var localVarPath = "/api/Stamps/stampInstanceFromDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (toRemove != null && toRemove.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(toRemove); // http body (model) parameter - } - else - { - localVarPostBody = toRemove; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsDeleteStampInstanceFromDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes stampinstances from docnumber - /// - /// Thrown when fails to make API call - /// - /// - /// Task of void - public async System.Threading.Tasks.Task StampsDeleteStampInstanceFromDocnumberAsync (int? docnumber, List toRemove) - { - await StampsDeleteStampInstanceFromDocnumberAsyncWithHttpInfo(docnumber, toRemove); - - } - - /// - /// This call deletes stampinstances from docnumber - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> StampsDeleteStampInstanceFromDocnumberAsyncWithHttpInfo (int? docnumber, List toRemove) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsDeleteStampInstanceFromDocnumber"); - // verify the required parameter 'toRemove' is set - if (toRemove == null) - throw new ApiException(400, "Missing required parameter 'toRemove' when calling StampsApi->StampsDeleteStampInstanceFromDocnumber"); - - var localVarPath = "/api/Stamps/stampInstanceFromDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (toRemove != null && toRemove.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(toRemove); // http body (model) parameter - } - else - { - localVarPostBody = toRemove; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsDeleteStampInstanceFromDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes stampinstances from docnumber for task - /// - /// Thrown when fails to make API call - /// - /// - /// - public void StampsDeleteStampInstanceFromProcessDoc (int? processDocId, List toRemove) - { - StampsDeleteStampInstanceFromProcessDocWithHttpInfo(processDocId, toRemove); - } - - /// - /// This call deletes stampinstances from docnumber for task - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object(void) - public ApiResponse StampsDeleteStampInstanceFromProcessDocWithHttpInfo (int? processDocId, List toRemove) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsDeleteStampInstanceFromProcessDoc"); - // verify the required parameter 'toRemove' is set - if (toRemove == null) - throw new ApiException(400, "Missing required parameter 'toRemove' when calling StampsApi->StampsDeleteStampInstanceFromProcessDoc"); - - var localVarPath = "/api/Stamps/stampInstanceFromProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (toRemove != null && toRemove.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(toRemove); // http body (model) parameter - } - else - { - localVarPostBody = toRemove; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsDeleteStampInstanceFromProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes stampinstances from docnumber for task - /// - /// Thrown when fails to make API call - /// - /// - /// Task of void - public async System.Threading.Tasks.Task StampsDeleteStampInstanceFromProcessDocAsync (int? processDocId, List toRemove) - { - await StampsDeleteStampInstanceFromProcessDocAsyncWithHttpInfo(processDocId, toRemove); - - } - - /// - /// This call deletes stampinstances from docnumber for task - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> StampsDeleteStampInstanceFromProcessDocAsyncWithHttpInfo (int? processDocId, List toRemove) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsDeleteStampInstanceFromProcessDoc"); - // verify the required parameter 'toRemove' is set - if (toRemove == null) - throw new ApiException(400, "Missing required parameter 'toRemove' when calling StampsApi->StampsDeleteStampInstanceFromProcessDoc"); - - var localVarPath = "/api/Stamps/stampInstanceFromProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (toRemove != null && toRemove.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(toRemove); // http body (model) parameter - } - else - { - localVarPostBody = toRemove; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsDeleteStampInstanceFromProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all the type of stamp defined in Arxivar - /// - /// Thrown when fails to make API call - /// List<StampDefinitionDTO> - public List StampsGet () - { - ApiResponse> localVarResponse = StampsGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all the type of stamp defined in Arxivar - /// - /// Thrown when fails to make API call - /// ApiResponse of List<StampDefinitionDTO> - public ApiResponse< List > StampsGetWithHttpInfo () - { - - var localVarPath = "/api/Stamps"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the type of stamp defined in Arxivar - /// - /// Thrown when fails to make API call - /// Task of List<StampDefinitionDTO> - public async System.Threading.Tasks.Task> StampsGetAsync () - { - ApiResponse> localVarResponse = await StampsGetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all the type of stamp defined in Arxivar - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<StampDefinitionDTO>) - public async System.Threading.Tasks.Task>> StampsGetAsyncWithHttpInfo () - { - - var localVarPath = "/api/Stamps"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the number of pages for pdf document - /// - /// Thrown when fails to make API call - /// - /// int? - public int? StampsGetPdfPageNumber (int? docnumber) - { - ApiResponse localVarResponse = StampsGetPdfPageNumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns the number of pages for pdf document - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of int? - public ApiResponse< int? > StampsGetPdfPageNumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsGetPdfPageNumber"); - - var localVarPath = "/api/Stamps/getPdfPageNumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsGetPdfPageNumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call returns the number of pages for pdf document - /// - /// Thrown when fails to make API call - /// - /// Task of int? - public async System.Threading.Tasks.Task StampsGetPdfPageNumberAsync (int? docnumber) - { - ApiResponse localVarResponse = await StampsGetPdfPageNumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns the number of pages for pdf document - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (int?) - public async System.Threading.Tasks.Task> StampsGetPdfPageNumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsGetPdfPageNumber"); - - var localVarPath = "/api/Stamps/getPdfPageNumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsGetPdfPageNumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call returns the number of pages for pdf document for task - /// - /// Thrown when fails to make API call - /// - /// int? - public int? StampsGetPdfPageNumberForProcessDoc (int? processDocId) - { - ApiResponse localVarResponse = StampsGetPdfPageNumberForProcessDocWithHttpInfo(processDocId); - return localVarResponse.Data; - } - - /// - /// This call returns the number of pages for pdf document for task - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of int? - public ApiResponse< int? > StampsGetPdfPageNumberForProcessDocWithHttpInfo (int? processDocId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsGetPdfPageNumberForProcessDoc"); - - var localVarPath = "/api/Stamps/getPdfPageNumberForProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsGetPdfPageNumberForProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call returns the number of pages for pdf document for task - /// - /// Thrown when fails to make API call - /// - /// Task of int? - public async System.Threading.Tasks.Task StampsGetPdfPageNumberForProcessDocAsync (int? processDocId) - { - ApiResponse localVarResponse = await StampsGetPdfPageNumberForProcessDocAsyncWithHttpInfo(processDocId); - return localVarResponse.Data; - - } - - /// - /// This call returns the number of pages for pdf document for task - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (int?) - public async System.Threading.Tasks.Task> StampsGetPdfPageNumberForProcessDocAsyncWithHttpInfo (int? processDocId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsGetPdfPageNumberForProcessDoc"); - - var localVarPath = "/api/Stamps/getPdfPageNumberForProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsGetPdfPageNumberForProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call returns all the stamp definition virtual by a docnumber - /// - /// Thrown when fails to make API call - /// - /// List<StampDefinitionDTO> - public List StampsGetStampsDefinitionByDocnumber (int? docnumber) - { - ApiResponse> localVarResponse = StampsGetStampsDefinitionByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns all the stamp definition virtual by a docnumber - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<StampDefinitionDTO> - public ApiResponse< List > StampsGetStampsDefinitionByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsGetStampsDefinitionByDocnumber"); - - var localVarPath = "/api/Stamps/stampDefinitionByDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsGetStampsDefinitionByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the stamp definition virtual by a docnumber - /// - /// Thrown when fails to make API call - /// - /// Task of List<StampDefinitionDTO> - public async System.Threading.Tasks.Task> StampsGetStampsDefinitionByDocnumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await StampsGetStampsDefinitionByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns all the stamp definition virtual by a docnumber - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<StampDefinitionDTO>) - public async System.Threading.Tasks.Task>> StampsGetStampsDefinitionByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsGetStampsDefinitionByDocnumber"); - - var localVarPath = "/api/Stamps/stampDefinitionByDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsGetStampsDefinitionByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the stamp definition virtual by a process document - /// - /// Thrown when fails to make API call - /// - /// List<StampDefinitionDTO> - public List StampsGetStampsDefinitionByProcessDoc (int? processDocId) - { - ApiResponse> localVarResponse = StampsGetStampsDefinitionByProcessDocWithHttpInfo(processDocId); - return localVarResponse.Data; - } - - /// - /// This call returns all the stamp definition virtual by a process document - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<StampDefinitionDTO> - public ApiResponse< List > StampsGetStampsDefinitionByProcessDocWithHttpInfo (int? processDocId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsGetStampsDefinitionByProcessDoc"); - - var localVarPath = "/api/Stamps/stampDefinitionByProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsGetStampsDefinitionByProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the stamp definition virtual by a process document - /// - /// Thrown when fails to make API call - /// - /// Task of List<StampDefinitionDTO> - public async System.Threading.Tasks.Task> StampsGetStampsDefinitionByProcessDocAsync (int? processDocId) - { - ApiResponse> localVarResponse = await StampsGetStampsDefinitionByProcessDocAsyncWithHttpInfo(processDocId); - return localVarResponse.Data; - - } - - /// - /// This call returns all the stamp definition virtual by a process document - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<StampDefinitionDTO>) - public async System.Threading.Tasks.Task>> StampsGetStampsDefinitionByProcessDocAsyncWithHttpInfo (int? processDocId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsGetStampsDefinitionByProcessDoc"); - - var localVarPath = "/api/Stamps/stampDefinitionByProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsGetStampsDefinitionByProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the stamp applied virtual on a docnumber - /// - /// Thrown when fails to make API call - /// - /// List<StampsInstanceDTO> - public List StampsGetStampsInstanceByDocnumber (int? docnumber) - { - ApiResponse> localVarResponse = StampsGetStampsInstanceByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns all the stamp applied virtual on a docnumber - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<StampsInstanceDTO> - public ApiResponse< List > StampsGetStampsInstanceByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsGetStampsInstanceByDocnumber"); - - var localVarPath = "/api/Stamps/stampInstanceByDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsGetStampsInstanceByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the stamp applied virtual on a docnumber - /// - /// Thrown when fails to make API call - /// - /// Task of List<StampsInstanceDTO> - public async System.Threading.Tasks.Task> StampsGetStampsInstanceByDocnumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await StampsGetStampsInstanceByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns all the stamp applied virtual on a docnumber - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<StampsInstanceDTO>) - public async System.Threading.Tasks.Task>> StampsGetStampsInstanceByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsGetStampsInstanceByDocnumber"); - - var localVarPath = "/api/Stamps/stampInstanceByDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsGetStampsInstanceByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the stamp applied virtual on a process document - /// - /// Thrown when fails to make API call - /// - /// List<StampsInstanceDTO> - public List StampsGetStampsInstanceByProcessDoc (int? processDocId) - { - ApiResponse> localVarResponse = StampsGetStampsInstanceByProcessDocWithHttpInfo(processDocId); - return localVarResponse.Data; - } - - /// - /// This call returns all the stamp applied virtual on a process document - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<StampsInstanceDTO> - public ApiResponse< List > StampsGetStampsInstanceByProcessDocWithHttpInfo (int? processDocId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsGetStampsInstanceByProcessDoc"); - - var localVarPath = "/api/Stamps/stampInstanceByProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsGetStampsInstanceByProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the stamp applied virtual on a process document - /// - /// Thrown when fails to make API call - /// - /// Task of List<StampsInstanceDTO> - public async System.Threading.Tasks.Task> StampsGetStampsInstanceByProcessDocAsync (int? processDocId) - { - ApiResponse> localVarResponse = await StampsGetStampsInstanceByProcessDocAsyncWithHttpInfo(processDocId); - return localVarResponse.Data; - - } - - /// - /// This call returns all the stamp applied virtual on a process document - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<StampsInstanceDTO>) - public async System.Threading.Tasks.Task>> StampsGetStampsInstanceByProcessDocAsyncWithHttpInfo (int? processDocId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsGetStampsInstanceByProcessDoc"); - - var localVarPath = "/api/Stamps/stampInstanceByProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsGetStampsInstanceByProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts new stampinstances for docnumber - /// - /// Thrown when fails to make API call - /// - /// - /// - public void StampsInsertStampInstanceFromDocnumber (int? docnumber, List toInsert) - { - StampsInsertStampInstanceFromDocnumberWithHttpInfo(docnumber, toInsert); - } - - /// - /// This call inserts new stampinstances for docnumber - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object(void) - public ApiResponse StampsInsertStampInstanceFromDocnumberWithHttpInfo (int? docnumber, List toInsert) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsInsertStampInstanceFromDocnumber"); - // verify the required parameter 'toInsert' is set - if (toInsert == null) - throw new ApiException(400, "Missing required parameter 'toInsert' when calling StampsApi->StampsInsertStampInstanceFromDocnumber"); - - var localVarPath = "/api/Stamps/stampInstanceFromDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (toInsert != null && toInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(toInsert); // http body (model) parameter - } - else - { - localVarPostBody = toInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsInsertStampInstanceFromDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts new stampinstances for docnumber - /// - /// Thrown when fails to make API call - /// - /// - /// Task of void - public async System.Threading.Tasks.Task StampsInsertStampInstanceFromDocnumberAsync (int? docnumber, List toInsert) - { - await StampsInsertStampInstanceFromDocnumberAsyncWithHttpInfo(docnumber, toInsert); - - } - - /// - /// This call inserts new stampinstances for docnumber - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> StampsInsertStampInstanceFromDocnumberAsyncWithHttpInfo (int? docnumber, List toInsert) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsInsertStampInstanceFromDocnumber"); - // verify the required parameter 'toInsert' is set - if (toInsert == null) - throw new ApiException(400, "Missing required parameter 'toInsert' when calling StampsApi->StampsInsertStampInstanceFromDocnumber"); - - var localVarPath = "/api/Stamps/stampInstanceFromDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (toInsert != null && toInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(toInsert); // http body (model) parameter - } - else - { - localVarPostBody = toInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsInsertStampInstanceFromDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts new stampinstances for process document - /// - /// Thrown when fails to make API call - /// - /// - /// - public void StampsInsertStampInstanceFromProcessDoc (int? processDocId, List toInsert) - { - StampsInsertStampInstanceFromProcessDocWithHttpInfo(processDocId, toInsert); - } - - /// - /// This call inserts new stampinstances for process document - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object(void) - public ApiResponse StampsInsertStampInstanceFromProcessDocWithHttpInfo (int? processDocId, List toInsert) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsInsertStampInstanceFromProcessDoc"); - // verify the required parameter 'toInsert' is set - if (toInsert == null) - throw new ApiException(400, "Missing required parameter 'toInsert' when calling StampsApi->StampsInsertStampInstanceFromProcessDoc"); - - var localVarPath = "/api/Stamps/stampInstanceFromProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (toInsert != null && toInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(toInsert); // http body (model) parameter - } - else - { - localVarPostBody = toInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsInsertStampInstanceFromProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts new stampinstances for process document - /// - /// Thrown when fails to make API call - /// - /// - /// Task of void - public async System.Threading.Tasks.Task StampsInsertStampInstanceFromProcessDocAsync (int? processDocId, List toInsert) - { - await StampsInsertStampInstanceFromProcessDocAsyncWithHttpInfo(processDocId, toInsert); - - } - - /// - /// This call inserts new stampinstances for process document - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> StampsInsertStampInstanceFromProcessDocAsyncWithHttpInfo (int? processDocId, List toInsert) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsInsertStampInstanceFromProcessDoc"); - // verify the required parameter 'toInsert' is set - if (toInsert == null) - throw new ApiException(400, "Missing required parameter 'toInsert' when calling StampsApi->StampsInsertStampInstanceFromProcessDoc"); - - var localVarPath = "/api/Stamps/stampInstanceFromProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (toInsert != null && toInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(toInsert); // http body (model) parameter - } - else - { - localVarPostBody = toInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsInsertStampInstanceFromProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the generated image for a stamp definition and a docnumber - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Stamp definition object - /// System.IO.Stream - public System.IO.Stream StampsRenderStampDefinitionForDocnumber (int? docnumber, StampDefinitionDTO stampDefinition) - { - ApiResponse localVarResponse = StampsRenderStampDefinitionForDocnumberWithHttpInfo(docnumber, stampDefinition); - return localVarResponse.Data; - } - - /// - /// This call returns the generated image for a stamp definition and a docnumber - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Stamp definition object - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > StampsRenderStampDefinitionForDocnumberWithHttpInfo (int? docnumber, StampDefinitionDTO stampDefinition) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsRenderStampDefinitionForDocnumber"); - // verify the required parameter 'stampDefinition' is set - if (stampDefinition == null) - throw new ApiException(400, "Missing required parameter 'stampDefinition' when calling StampsApi->StampsRenderStampDefinitionForDocnumber"); - - var localVarPath = "/api/Stamps/renderStampDefinitionForDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (stampDefinition != null && stampDefinition.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(stampDefinition); // http body (model) parameter - } - else - { - localVarPostBody = stampDefinition; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsRenderStampDefinitionForDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the generated image for a stamp definition and a docnumber - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Stamp definition object - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task StampsRenderStampDefinitionForDocnumberAsync (int? docnumber, StampDefinitionDTO stampDefinition) - { - ApiResponse localVarResponse = await StampsRenderStampDefinitionForDocnumberAsyncWithHttpInfo(docnumber, stampDefinition); - return localVarResponse.Data; - - } - - /// - /// This call returns the generated image for a stamp definition and a docnumber - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Stamp definition object - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> StampsRenderStampDefinitionForDocnumberAsyncWithHttpInfo (int? docnumber, StampDefinitionDTO stampDefinition) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsRenderStampDefinitionForDocnumber"); - // verify the required parameter 'stampDefinition' is set - if (stampDefinition == null) - throw new ApiException(400, "Missing required parameter 'stampDefinition' when calling StampsApi->StampsRenderStampDefinitionForDocnumber"); - - var localVarPath = "/api/Stamps/renderStampDefinitionForDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (stampDefinition != null && stampDefinition.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(stampDefinition); // http body (model) parameter - } - else - { - localVarPostBody = stampDefinition; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsRenderStampDefinitionForDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the generated image for a stamp definition and a processDocId - /// - /// Thrown when fails to make API call - /// Workflow Document Identifier - /// Stamp definition object - /// System.IO.Stream - public System.IO.Stream StampsRenderStampDefinitionForProcessDoc (int? processDocId, StampDefinitionDTO stampDefinition) - { - ApiResponse localVarResponse = StampsRenderStampDefinitionForProcessDocWithHttpInfo(processDocId, stampDefinition); - return localVarResponse.Data; - } - - /// - /// This call returns the generated image for a stamp definition and a processDocId - /// - /// Thrown when fails to make API call - /// Workflow Document Identifier - /// Stamp definition object - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > StampsRenderStampDefinitionForProcessDocWithHttpInfo (int? processDocId, StampDefinitionDTO stampDefinition) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsRenderStampDefinitionForProcessDoc"); - // verify the required parameter 'stampDefinition' is set - if (stampDefinition == null) - throw new ApiException(400, "Missing required parameter 'stampDefinition' when calling StampsApi->StampsRenderStampDefinitionForProcessDoc"); - - var localVarPath = "/api/Stamps/renderStampDefinitionForProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (stampDefinition != null && stampDefinition.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(stampDefinition); // http body (model) parameter - } - else - { - localVarPostBody = stampDefinition; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsRenderStampDefinitionForProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the generated image for a stamp definition and a processDocId - /// - /// Thrown when fails to make API call - /// Workflow Document Identifier - /// Stamp definition object - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task StampsRenderStampDefinitionForProcessDocAsync (int? processDocId, StampDefinitionDTO stampDefinition) - { - ApiResponse localVarResponse = await StampsRenderStampDefinitionForProcessDocAsyncWithHttpInfo(processDocId, stampDefinition); - return localVarResponse.Data; - - } - - /// - /// This call returns the generated image for a stamp definition and a processDocId - /// - /// Thrown when fails to make API call - /// Workflow Document Identifier - /// Stamp definition object - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> StampsRenderStampDefinitionForProcessDocAsyncWithHttpInfo (int? processDocId, StampDefinitionDTO stampDefinition) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsRenderStampDefinitionForProcessDoc"); - // verify the required parameter 'stampDefinition' is set - if (stampDefinition == null) - throw new ApiException(400, "Missing required parameter 'stampDefinition' when calling StampsApi->StampsRenderStampDefinitionForProcessDoc"); - - var localVarPath = "/api/Stamps/renderStampDefinitionForProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (stampDefinition != null && stampDefinition.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(stampDefinition); // http body (model) parameter - } - else - { - localVarPostBody = stampDefinition; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsRenderStampDefinitionForProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call updates new stampinstances for docnumber - /// - /// Thrown when fails to make API call - /// - /// - /// - public void StampsUpdateStampInstanceFromDocnumber (int? docnumber, List toUpdate) - { - StampsUpdateStampInstanceFromDocnumberWithHttpInfo(docnumber, toUpdate); - } - - /// - /// This call updates new stampinstances for docnumber - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object(void) - public ApiResponse StampsUpdateStampInstanceFromDocnumberWithHttpInfo (int? docnumber, List toUpdate) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsUpdateStampInstanceFromDocnumber"); - // verify the required parameter 'toUpdate' is set - if (toUpdate == null) - throw new ApiException(400, "Missing required parameter 'toUpdate' when calling StampsApi->StampsUpdateStampInstanceFromDocnumber"); - - var localVarPath = "/api/Stamps/stampInstanceFromDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (toUpdate != null && toUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(toUpdate); // http body (model) parameter - } - else - { - localVarPostBody = toUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsUpdateStampInstanceFromDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates new stampinstances for docnumber - /// - /// Thrown when fails to make API call - /// - /// - /// Task of void - public async System.Threading.Tasks.Task StampsUpdateStampInstanceFromDocnumberAsync (int? docnumber, List toUpdate) - { - await StampsUpdateStampInstanceFromDocnumberAsyncWithHttpInfo(docnumber, toUpdate); - - } - - /// - /// This call updates new stampinstances for docnumber - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> StampsUpdateStampInstanceFromDocnumberAsyncWithHttpInfo (int? docnumber, List toUpdate) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StampsApi->StampsUpdateStampInstanceFromDocnumber"); - // verify the required parameter 'toUpdate' is set - if (toUpdate == null) - throw new ApiException(400, "Missing required parameter 'toUpdate' when calling StampsApi->StampsUpdateStampInstanceFromDocnumber"); - - var localVarPath = "/api/Stamps/stampInstanceFromDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (toUpdate != null && toUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(toUpdate); // http body (model) parameter - } - else - { - localVarPostBody = toUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsUpdateStampInstanceFromDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates stampinstances for process document - /// - /// Thrown when fails to make API call - /// - /// - /// - public void StampsUpdateStampInstanceFromProcessDoc (int? processDocId, List toUpdate) - { - StampsUpdateStampInstanceFromProcessDocWithHttpInfo(processDocId, toUpdate); - } - - /// - /// This call updates stampinstances for process document - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of Object(void) - public ApiResponse StampsUpdateStampInstanceFromProcessDocWithHttpInfo (int? processDocId, List toUpdate) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsUpdateStampInstanceFromProcessDoc"); - // verify the required parameter 'toUpdate' is set - if (toUpdate == null) - throw new ApiException(400, "Missing required parameter 'toUpdate' when calling StampsApi->StampsUpdateStampInstanceFromProcessDoc"); - - var localVarPath = "/api/Stamps/stampInstanceFromProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (toUpdate != null && toUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(toUpdate); // http body (model) parameter - } - else - { - localVarPostBody = toUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsUpdateStampInstanceFromProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates stampinstances for process document - /// - /// Thrown when fails to make API call - /// - /// - /// Task of void - public async System.Threading.Tasks.Task StampsUpdateStampInstanceFromProcessDocAsync (int? processDocId, List toUpdate) - { - await StampsUpdateStampInstanceFromProcessDocAsyncWithHttpInfo(processDocId, toUpdate); - - } - - /// - /// This call updates stampinstances for process document - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> StampsUpdateStampInstanceFromProcessDocAsyncWithHttpInfo (int? processDocId, List toUpdate) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling StampsApi->StampsUpdateStampInstanceFromProcessDoc"); - // verify the required parameter 'toUpdate' is set - if (toUpdate == null) - throw new ApiException(400, "Missing required parameter 'toUpdate' when calling StampsApi->StampsUpdateStampInstanceFromProcessDoc"); - - var localVarPath = "/api/Stamps/stampInstanceFromProcessDoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - if (toUpdate != null && toUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(toUpdate); // http body (model) parameter - } - else - { - localVarPostBody = toUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StampsUpdateStampInstanceFromProcessDoc", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/StatesApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/StatesApi.cs deleted file mode 100644 index 3f1f8b0..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/StatesApi.cs +++ /dev/null @@ -1,687 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IStatesApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all the states defined in Arxivar by the given document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// List<StateBaseDto> - List StatesGet (int? documentTypeId); - - /// - /// This call returns all the states defined in Arxivar by the given document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// ApiResponse of List<StateBaseDto> - ApiResponse> StatesGetWithHttpInfo (int? documentTypeId); - /// - /// This call returns the document states for a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// StateBaseDto - StateBaseDto StatesGetByDocNumber (int? docnumber); - - /// - /// This call returns the document states for a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of StateBaseDto - ApiResponse StatesGetByDocNumberWithHttpInfo (int? docnumber); - /// - /// This call returns all the document states in ARXivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<StateBaseDto> - List StatesGet_0 (); - - /// - /// This call returns all the document states in ARXivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<StateBaseDto> - ApiResponse> StatesGet_0WithHttpInfo (); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all the states defined in Arxivar by the given document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of List<StateBaseDto> - System.Threading.Tasks.Task> StatesGetAsync (int? documentTypeId); - - /// - /// This call returns all the states defined in Arxivar by the given document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of ApiResponse (List<StateBaseDto>) - System.Threading.Tasks.Task>> StatesGetAsyncWithHttpInfo (int? documentTypeId); - /// - /// This call returns the document states for a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of StateBaseDto - System.Threading.Tasks.Task StatesGetByDocNumberAsync (int? docnumber); - - /// - /// This call returns the document states for a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (StateBaseDto) - System.Threading.Tasks.Task> StatesGetByDocNumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call returns all the document states in ARXivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<StateBaseDto> - System.Threading.Tasks.Task> StatesGet_0Async (); - - /// - /// This call returns all the document states in ARXivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<StateBaseDto>) - System.Threading.Tasks.Task>> StatesGet_0AsyncWithHttpInfo (); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class StatesApi : IStatesApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public StatesApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public StatesApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all the states defined in Arxivar by the given document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// List<StateBaseDto> - public List StatesGet (int? documentTypeId) - { - ApiResponse> localVarResponse = StatesGetWithHttpInfo(documentTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns all the states defined in Arxivar by the given document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// ApiResponse of List<StateBaseDto> - public ApiResponse< List > StatesGetWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling StatesApi->StatesGet"); - - var localVarPath = "/api/States/{documentTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the states defined in Arxivar by the given document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of List<StateBaseDto> - public async System.Threading.Tasks.Task> StatesGetAsync (int? documentTypeId) - { - ApiResponse> localVarResponse = await StatesGetAsyncWithHttpInfo(documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns all the states defined in Arxivar by the given document type - /// - /// Thrown when fails to make API call - /// Document Type Identifier - /// Task of ApiResponse (List<StateBaseDto>) - public async System.Threading.Tasks.Task>> StatesGetAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling StatesApi->StatesGet"); - - var localVarPath = "/api/States/{documentTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the document states for a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// StateBaseDto - public StateBaseDto StatesGetByDocNumber (int? docnumber) - { - ApiResponse localVarResponse = StatesGetByDocNumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns the document states for a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// ApiResponse of StateBaseDto - public ApiResponse< StateBaseDto > StatesGetByDocNumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StatesApi->StatesGetByDocNumber"); - - var localVarPath = "/api/States/bydocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesGetByDocNumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (StateBaseDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StateBaseDto))); - } - - /// - /// This call returns the document states for a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of StateBaseDto - public async System.Threading.Tasks.Task StatesGetByDocNumberAsync (int? docnumber) - { - ApiResponse localVarResponse = await StatesGetByDocNumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns the document states for a document - /// - /// Thrown when fails to make API call - /// Document Identifier - /// Task of ApiResponse (StateBaseDto) - public async System.Threading.Tasks.Task> StatesGetByDocNumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling StatesApi->StatesGetByDocNumber"); - - var localVarPath = "/api/States/bydocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesGetByDocNumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (StateBaseDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StateBaseDto))); - } - - /// - /// This call returns all the document states in ARXivar - /// - /// Thrown when fails to make API call - /// List<StateBaseDto> - public List StatesGet_0 () - { - ApiResponse> localVarResponse = StatesGet_0WithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all the document states in ARXivar - /// - /// Thrown when fails to make API call - /// ApiResponse of List<StateBaseDto> - public ApiResponse< List > StatesGet_0WithHttpInfo () - { - - var localVarPath = "/api/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesGet_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the document states in ARXivar - /// - /// Thrown when fails to make API call - /// Task of List<StateBaseDto> - public async System.Threading.Tasks.Task> StatesGet_0Async () - { - ApiResponse> localVarResponse = await StatesGet_0AsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all the document states in ARXivar - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<StateBaseDto>) - public async System.Threading.Tasks.Task>> StatesGet_0AsyncWithHttpInfo () - { - - var localVarPath = "/api/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesGet_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/TaskLayoutApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/TaskLayoutApi.cs deleted file mode 100644 index d18c6ce..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/TaskLayoutApi.cs +++ /dev/null @@ -1,1885 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITaskLayoutApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes a task layout by the id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// - void TaskLayoutDeleteTaskLayout (int? tasklayoutid); - - /// - /// This call deletes a task layout by the id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// ApiResponse of Object(void) - ApiResponse TaskLayoutDeleteTaskLayoutWithHttpInfo (int? tasklayoutid); - /// - /// This call returns the task layout by the task layout id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task Layout Identifier - /// TaskLayoutDTO - TaskLayoutDTO TaskLayoutGetTaskLayoutById (int? tasklayoutid); - - /// - /// This call returns the task layout by the task layout id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task Layout Identifier - /// ApiResponse of TaskLayoutDTO - ApiResponse TaskLayoutGetTaskLayoutByIdWithHttpInfo (int? tasklayoutid); - /// - /// This call returns the task layout by the taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// TaskLayoutDTO - TaskLayoutDTO TaskLayoutGetTaskLayoutByTaskWorkId (int? taskWorkId); - - /// - /// This call returns the task layout by the taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// ApiResponse of TaskLayoutDTO - ApiResponse TaskLayoutGetTaskLayoutByTaskWorkIdWithHttpInfo (int? taskWorkId); - /// - /// This call returns the task layout for user default if exist - /// - /// - /// - /// - /// Thrown when fails to make API call - /// TaskLayoutDTO - TaskLayoutDTO TaskLayoutGetTaskLayoutForUser (); - - /// - /// This call returns the task layout for user default if exist - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of TaskLayoutDTO - ApiResponse TaskLayoutGetTaskLayoutForUserWithHttpInfo (); - /// - /// This call returns all task layouts configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<TaskLayoutDTO> - List TaskLayoutGetTaskLayouts (); - - /// - /// This call returns all task layouts configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<TaskLayoutDTO> - ApiResponse> TaskLayoutGetTaskLayoutsWithHttpInfo (); - /// - /// This call inserts a new task layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout information to insert - /// TaskLayoutDTO - TaskLayoutDTO TaskLayoutNewTaskLayout (TaskLayoutDTO taskLayout); - - /// - /// This call inserts a new task layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout information to insert - /// ApiResponse of TaskLayoutDTO - ApiResponse TaskLayoutNewTaskLayoutWithHttpInfo (TaskLayoutDTO taskLayout); - /// - /// This call updates a task layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout information to edit - /// TaskLayoutDTO - TaskLayoutDTO TaskLayoutUpdateTaskLayout (TaskLayoutDTO taskLayout); - - /// - /// This call updates a task layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout information to edit - /// ApiResponse of TaskLayoutDTO - ApiResponse TaskLayoutUpdateTaskLayoutWithHttpInfo (TaskLayoutDTO taskLayout); - /// - /// This call updates the priority of a task layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// Priority to set - /// - void TaskLayoutUpdateTaskLayoutPriority (int? tasklayoutid, int? priority); - - /// - /// This call updates the priority of a task layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// Priority to set - /// ApiResponse of Object(void) - ApiResponse TaskLayoutUpdateTaskLayoutPriorityWithHttpInfo (int? tasklayoutid, int? priority); - /// - /// This call inserts or updates personal task layout for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout information to write - /// TaskLayoutDTO - TaskLayoutDTO TaskLayoutWriteTaskLayoutForUser (TaskLayoutDTO taskLayout); - - /// - /// This call inserts or updates personal task layout for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout information to write - /// ApiResponse of TaskLayoutDTO - ApiResponse TaskLayoutWriteTaskLayoutForUserWithHttpInfo (TaskLayoutDTO taskLayout); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes a task layout by the id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// Task of void - System.Threading.Tasks.Task TaskLayoutDeleteTaskLayoutAsync (int? tasklayoutid); - - /// - /// This call deletes a task layout by the id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskLayoutDeleteTaskLayoutAsyncWithHttpInfo (int? tasklayoutid); - /// - /// This call returns the task layout by the task layout id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task Layout Identifier - /// Task of TaskLayoutDTO - System.Threading.Tasks.Task TaskLayoutGetTaskLayoutByIdAsync (int? tasklayoutid); - - /// - /// This call returns the task layout by the task layout id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task Layout Identifier - /// Task of ApiResponse (TaskLayoutDTO) - System.Threading.Tasks.Task> TaskLayoutGetTaskLayoutByIdAsyncWithHttpInfo (int? tasklayoutid); - /// - /// This call returns the task layout by the taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// Task of TaskLayoutDTO - System.Threading.Tasks.Task TaskLayoutGetTaskLayoutByTaskWorkIdAsync (int? taskWorkId); - - /// - /// This call returns the task layout by the taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// Task of ApiResponse (TaskLayoutDTO) - System.Threading.Tasks.Task> TaskLayoutGetTaskLayoutByTaskWorkIdAsyncWithHttpInfo (int? taskWorkId); - /// - /// This call returns the task layout for user default if exist - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of TaskLayoutDTO - System.Threading.Tasks.Task TaskLayoutGetTaskLayoutForUserAsync (); - - /// - /// This call returns the task layout for user default if exist - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (TaskLayoutDTO) - System.Threading.Tasks.Task> TaskLayoutGetTaskLayoutForUserAsyncWithHttpInfo (); - /// - /// This call returns all task layouts configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<TaskLayoutDTO> - System.Threading.Tasks.Task> TaskLayoutGetTaskLayoutsAsync (); - - /// - /// This call returns all task layouts configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<TaskLayoutDTO>) - System.Threading.Tasks.Task>> TaskLayoutGetTaskLayoutsAsyncWithHttpInfo (); - /// - /// This call inserts a new task layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout information to insert - /// Task of TaskLayoutDTO - System.Threading.Tasks.Task TaskLayoutNewTaskLayoutAsync (TaskLayoutDTO taskLayout); - - /// - /// This call inserts a new task layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout information to insert - /// Task of ApiResponse (TaskLayoutDTO) - System.Threading.Tasks.Task> TaskLayoutNewTaskLayoutAsyncWithHttpInfo (TaskLayoutDTO taskLayout); - /// - /// This call updates a task layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout information to edit - /// Task of TaskLayoutDTO - System.Threading.Tasks.Task TaskLayoutUpdateTaskLayoutAsync (TaskLayoutDTO taskLayout); - - /// - /// This call updates a task layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout information to edit - /// Task of ApiResponse (TaskLayoutDTO) - System.Threading.Tasks.Task> TaskLayoutUpdateTaskLayoutAsyncWithHttpInfo (TaskLayoutDTO taskLayout); - /// - /// This call updates the priority of a task layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// Priority to set - /// Task of void - System.Threading.Tasks.Task TaskLayoutUpdateTaskLayoutPriorityAsync (int? tasklayoutid, int? priority); - - /// - /// This call updates the priority of a task layout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// Priority to set - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskLayoutUpdateTaskLayoutPriorityAsyncWithHttpInfo (int? tasklayoutid, int? priority); - /// - /// This call inserts or updates personal task layout for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout information to write - /// Task of TaskLayoutDTO - System.Threading.Tasks.Task TaskLayoutWriteTaskLayoutForUserAsync (TaskLayoutDTO taskLayout); - - /// - /// This call inserts or updates personal task layout for user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task layout information to write - /// Task of ApiResponse (TaskLayoutDTO) - System.Threading.Tasks.Task> TaskLayoutWriteTaskLayoutForUserAsyncWithHttpInfo (TaskLayoutDTO taskLayout); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TaskLayoutApi : ITaskLayoutApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TaskLayoutApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TaskLayoutApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes a task layout by the id - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// - public void TaskLayoutDeleteTaskLayout (int? tasklayoutid) - { - TaskLayoutDeleteTaskLayoutWithHttpInfo(tasklayoutid); - } - - /// - /// This call deletes a task layout by the id - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// ApiResponse of Object(void) - public ApiResponse TaskLayoutDeleteTaskLayoutWithHttpInfo (int? tasklayoutid) - { - // verify the required parameter 'tasklayoutid' is set - if (tasklayoutid == null) - throw new ApiException(400, "Missing required parameter 'tasklayoutid' when calling TaskLayoutApi->TaskLayoutDeleteTaskLayout"); - - var localVarPath = "/api/TaskLayout/{tasklayoutid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tasklayoutid != null) localVarPathParams.Add("tasklayoutid", this.Configuration.ApiClient.ParameterToString(tasklayoutid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutDeleteTaskLayout", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a task layout by the id - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// Task of void - public async System.Threading.Tasks.Task TaskLayoutDeleteTaskLayoutAsync (int? tasklayoutid) - { - await TaskLayoutDeleteTaskLayoutAsyncWithHttpInfo(tasklayoutid); - - } - - /// - /// This call deletes a task layout by the id - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskLayoutDeleteTaskLayoutAsyncWithHttpInfo (int? tasklayoutid) - { - // verify the required parameter 'tasklayoutid' is set - if (tasklayoutid == null) - throw new ApiException(400, "Missing required parameter 'tasklayoutid' when calling TaskLayoutApi->TaskLayoutDeleteTaskLayout"); - - var localVarPath = "/api/TaskLayout/{tasklayoutid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tasklayoutid != null) localVarPathParams.Add("tasklayoutid", this.Configuration.ApiClient.ParameterToString(tasklayoutid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutDeleteTaskLayout", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the task layout by the task layout id - /// - /// Thrown when fails to make API call - /// Task Layout Identifier - /// TaskLayoutDTO - public TaskLayoutDTO TaskLayoutGetTaskLayoutById (int? tasklayoutid) - { - ApiResponse localVarResponse = TaskLayoutGetTaskLayoutByIdWithHttpInfo(tasklayoutid); - return localVarResponse.Data; - } - - /// - /// This call returns the task layout by the task layout id - /// - /// Thrown when fails to make API call - /// Task Layout Identifier - /// ApiResponse of TaskLayoutDTO - public ApiResponse< TaskLayoutDTO > TaskLayoutGetTaskLayoutByIdWithHttpInfo (int? tasklayoutid) - { - // verify the required parameter 'tasklayoutid' is set - if (tasklayoutid == null) - throw new ApiException(400, "Missing required parameter 'tasklayoutid' when calling TaskLayoutApi->TaskLayoutGetTaskLayoutById"); - - var localVarPath = "/api/TaskLayout/{tasklayoutid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tasklayoutid != null) localVarPathParams.Add("tasklayoutid", this.Configuration.ApiClient.ParameterToString(tasklayoutid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutGetTaskLayoutById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskLayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskLayoutDTO))); - } - - /// - /// This call returns the task layout by the task layout id - /// - /// Thrown when fails to make API call - /// Task Layout Identifier - /// Task of TaskLayoutDTO - public async System.Threading.Tasks.Task TaskLayoutGetTaskLayoutByIdAsync (int? tasklayoutid) - { - ApiResponse localVarResponse = await TaskLayoutGetTaskLayoutByIdAsyncWithHttpInfo(tasklayoutid); - return localVarResponse.Data; - - } - - /// - /// This call returns the task layout by the task layout id - /// - /// Thrown when fails to make API call - /// Task Layout Identifier - /// Task of ApiResponse (TaskLayoutDTO) - public async System.Threading.Tasks.Task> TaskLayoutGetTaskLayoutByIdAsyncWithHttpInfo (int? tasklayoutid) - { - // verify the required parameter 'tasklayoutid' is set - if (tasklayoutid == null) - throw new ApiException(400, "Missing required parameter 'tasklayoutid' when calling TaskLayoutApi->TaskLayoutGetTaskLayoutById"); - - var localVarPath = "/api/TaskLayout/{tasklayoutid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tasklayoutid != null) localVarPathParams.Add("tasklayoutid", this.Configuration.ApiClient.ParameterToString(tasklayoutid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutGetTaskLayoutById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskLayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskLayoutDTO))); - } - - /// - /// This call returns the task layout by the taskwork - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// TaskLayoutDTO - public TaskLayoutDTO TaskLayoutGetTaskLayoutByTaskWorkId (int? taskWorkId) - { - ApiResponse localVarResponse = TaskLayoutGetTaskLayoutByTaskWorkIdWithHttpInfo(taskWorkId); - return localVarResponse.Data; - } - - /// - /// This call returns the task layout by the taskwork - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// ApiResponse of TaskLayoutDTO - public ApiResponse< TaskLayoutDTO > TaskLayoutGetTaskLayoutByTaskWorkIdWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskLayoutApi->TaskLayoutGetTaskLayoutByTaskWorkId"); - - var localVarPath = "/api/TaskLayout/taskwork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutGetTaskLayoutByTaskWorkId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskLayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskLayoutDTO))); - } - - /// - /// This call returns the task layout by the taskwork - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// Task of TaskLayoutDTO - public async System.Threading.Tasks.Task TaskLayoutGetTaskLayoutByTaskWorkIdAsync (int? taskWorkId) - { - ApiResponse localVarResponse = await TaskLayoutGetTaskLayoutByTaskWorkIdAsyncWithHttpInfo(taskWorkId); - return localVarResponse.Data; - - } - - /// - /// This call returns the task layout by the taskwork - /// - /// Thrown when fails to make API call - /// Taskwork Identifier - /// Task of ApiResponse (TaskLayoutDTO) - public async System.Threading.Tasks.Task> TaskLayoutGetTaskLayoutByTaskWorkIdAsyncWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskLayoutApi->TaskLayoutGetTaskLayoutByTaskWorkId"); - - var localVarPath = "/api/TaskLayout/taskwork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutGetTaskLayoutByTaskWorkId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskLayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskLayoutDTO))); - } - - /// - /// This call returns the task layout for user default if exist - /// - /// Thrown when fails to make API call - /// TaskLayoutDTO - public TaskLayoutDTO TaskLayoutGetTaskLayoutForUser () - { - ApiResponse localVarResponse = TaskLayoutGetTaskLayoutForUserWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the task layout for user default if exist - /// - /// Thrown when fails to make API call - /// ApiResponse of TaskLayoutDTO - public ApiResponse< TaskLayoutDTO > TaskLayoutGetTaskLayoutForUserWithHttpInfo () - { - - var localVarPath = "/api/TaskLayout/foruser"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutGetTaskLayoutForUser", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskLayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskLayoutDTO))); - } - - /// - /// This call returns the task layout for user default if exist - /// - /// Thrown when fails to make API call - /// Task of TaskLayoutDTO - public async System.Threading.Tasks.Task TaskLayoutGetTaskLayoutForUserAsync () - { - ApiResponse localVarResponse = await TaskLayoutGetTaskLayoutForUserAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the task layout for user default if exist - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (TaskLayoutDTO) - public async System.Threading.Tasks.Task> TaskLayoutGetTaskLayoutForUserAsyncWithHttpInfo () - { - - var localVarPath = "/api/TaskLayout/foruser"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutGetTaskLayoutForUser", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskLayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskLayoutDTO))); - } - - /// - /// This call returns all task layouts configured - /// - /// Thrown when fails to make API call - /// List<TaskLayoutDTO> - public List TaskLayoutGetTaskLayouts () - { - ApiResponse> localVarResponse = TaskLayoutGetTaskLayoutsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all task layouts configured - /// - /// Thrown when fails to make API call - /// ApiResponse of List<TaskLayoutDTO> - public ApiResponse< List > TaskLayoutGetTaskLayoutsWithHttpInfo () - { - - var localVarPath = "/api/TaskLayout"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutGetTaskLayouts", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all task layouts configured - /// - /// Thrown when fails to make API call - /// Task of List<TaskLayoutDTO> - public async System.Threading.Tasks.Task> TaskLayoutGetTaskLayoutsAsync () - { - ApiResponse> localVarResponse = await TaskLayoutGetTaskLayoutsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all task layouts configured - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<TaskLayoutDTO>) - public async System.Threading.Tasks.Task>> TaskLayoutGetTaskLayoutsAsyncWithHttpInfo () - { - - var localVarPath = "/api/TaskLayout"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutGetTaskLayouts", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts a new task layout - /// - /// Thrown when fails to make API call - /// Task layout information to insert - /// TaskLayoutDTO - public TaskLayoutDTO TaskLayoutNewTaskLayout (TaskLayoutDTO taskLayout) - { - ApiResponse localVarResponse = TaskLayoutNewTaskLayoutWithHttpInfo(taskLayout); - return localVarResponse.Data; - } - - /// - /// This call inserts a new task layout - /// - /// Thrown when fails to make API call - /// Task layout information to insert - /// ApiResponse of TaskLayoutDTO - public ApiResponse< TaskLayoutDTO > TaskLayoutNewTaskLayoutWithHttpInfo (TaskLayoutDTO taskLayout) - { - // verify the required parameter 'taskLayout' is set - if (taskLayout == null) - throw new ApiException(400, "Missing required parameter 'taskLayout' when calling TaskLayoutApi->TaskLayoutNewTaskLayout"); - - var localVarPath = "/api/TaskLayout"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskLayout != null && taskLayout.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskLayout); // http body (model) parameter - } - else - { - localVarPostBody = taskLayout; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutNewTaskLayout", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskLayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskLayoutDTO))); - } - - /// - /// This call inserts a new task layout - /// - /// Thrown when fails to make API call - /// Task layout information to insert - /// Task of TaskLayoutDTO - public async System.Threading.Tasks.Task TaskLayoutNewTaskLayoutAsync (TaskLayoutDTO taskLayout) - { - ApiResponse localVarResponse = await TaskLayoutNewTaskLayoutAsyncWithHttpInfo(taskLayout); - return localVarResponse.Data; - - } - - /// - /// This call inserts a new task layout - /// - /// Thrown when fails to make API call - /// Task layout information to insert - /// Task of ApiResponse (TaskLayoutDTO) - public async System.Threading.Tasks.Task> TaskLayoutNewTaskLayoutAsyncWithHttpInfo (TaskLayoutDTO taskLayout) - { - // verify the required parameter 'taskLayout' is set - if (taskLayout == null) - throw new ApiException(400, "Missing required parameter 'taskLayout' when calling TaskLayoutApi->TaskLayoutNewTaskLayout"); - - var localVarPath = "/api/TaskLayout"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskLayout != null && taskLayout.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskLayout); // http body (model) parameter - } - else - { - localVarPostBody = taskLayout; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutNewTaskLayout", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskLayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskLayoutDTO))); - } - - /// - /// This call updates a task layout - /// - /// Thrown when fails to make API call - /// Task layout information to edit - /// TaskLayoutDTO - public TaskLayoutDTO TaskLayoutUpdateTaskLayout (TaskLayoutDTO taskLayout) - { - ApiResponse localVarResponse = TaskLayoutUpdateTaskLayoutWithHttpInfo(taskLayout); - return localVarResponse.Data; - } - - /// - /// This call updates a task layout - /// - /// Thrown when fails to make API call - /// Task layout information to edit - /// ApiResponse of TaskLayoutDTO - public ApiResponse< TaskLayoutDTO > TaskLayoutUpdateTaskLayoutWithHttpInfo (TaskLayoutDTO taskLayout) - { - // verify the required parameter 'taskLayout' is set - if (taskLayout == null) - throw new ApiException(400, "Missing required parameter 'taskLayout' when calling TaskLayoutApi->TaskLayoutUpdateTaskLayout"); - - var localVarPath = "/api/TaskLayout"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskLayout != null && taskLayout.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskLayout); // http body (model) parameter - } - else - { - localVarPostBody = taskLayout; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutUpdateTaskLayout", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskLayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskLayoutDTO))); - } - - /// - /// This call updates a task layout - /// - /// Thrown when fails to make API call - /// Task layout information to edit - /// Task of TaskLayoutDTO - public async System.Threading.Tasks.Task TaskLayoutUpdateTaskLayoutAsync (TaskLayoutDTO taskLayout) - { - ApiResponse localVarResponse = await TaskLayoutUpdateTaskLayoutAsyncWithHttpInfo(taskLayout); - return localVarResponse.Data; - - } - - /// - /// This call updates a task layout - /// - /// Thrown when fails to make API call - /// Task layout information to edit - /// Task of ApiResponse (TaskLayoutDTO) - public async System.Threading.Tasks.Task> TaskLayoutUpdateTaskLayoutAsyncWithHttpInfo (TaskLayoutDTO taskLayout) - { - // verify the required parameter 'taskLayout' is set - if (taskLayout == null) - throw new ApiException(400, "Missing required parameter 'taskLayout' when calling TaskLayoutApi->TaskLayoutUpdateTaskLayout"); - - var localVarPath = "/api/TaskLayout"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskLayout != null && taskLayout.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskLayout); // http body (model) parameter - } - else - { - localVarPostBody = taskLayout; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutUpdateTaskLayout", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskLayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskLayoutDTO))); - } - - /// - /// This call updates the priority of a task layout - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// Priority to set - /// - public void TaskLayoutUpdateTaskLayoutPriority (int? tasklayoutid, int? priority) - { - TaskLayoutUpdateTaskLayoutPriorityWithHttpInfo(tasklayoutid, priority); - } - - /// - /// This call updates the priority of a task layout - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// Priority to set - /// ApiResponse of Object(void) - public ApiResponse TaskLayoutUpdateTaskLayoutPriorityWithHttpInfo (int? tasklayoutid, int? priority) - { - // verify the required parameter 'tasklayoutid' is set - if (tasklayoutid == null) - throw new ApiException(400, "Missing required parameter 'tasklayoutid' when calling TaskLayoutApi->TaskLayoutUpdateTaskLayoutPriority"); - // verify the required parameter 'priority' is set - if (priority == null) - throw new ApiException(400, "Missing required parameter 'priority' when calling TaskLayoutApi->TaskLayoutUpdateTaskLayoutPriority"); - - var localVarPath = "/api/TaskLayout/changepriority/{tasklayoutid}/{priority}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tasklayoutid != null) localVarPathParams.Add("tasklayoutid", this.Configuration.ApiClient.ParameterToString(tasklayoutid)); // path parameter - if (priority != null) localVarPathParams.Add("priority", this.Configuration.ApiClient.ParameterToString(priority)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutUpdateTaskLayoutPriority", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates the priority of a task layout - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// Priority to set - /// Task of void - public async System.Threading.Tasks.Task TaskLayoutUpdateTaskLayoutPriorityAsync (int? tasklayoutid, int? priority) - { - await TaskLayoutUpdateTaskLayoutPriorityAsyncWithHttpInfo(tasklayoutid, priority); - - } - - /// - /// This call updates the priority of a task layout - /// - /// Thrown when fails to make API call - /// Task layout identifier - /// Priority to set - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskLayoutUpdateTaskLayoutPriorityAsyncWithHttpInfo (int? tasklayoutid, int? priority) - { - // verify the required parameter 'tasklayoutid' is set - if (tasklayoutid == null) - throw new ApiException(400, "Missing required parameter 'tasklayoutid' when calling TaskLayoutApi->TaskLayoutUpdateTaskLayoutPriority"); - // verify the required parameter 'priority' is set - if (priority == null) - throw new ApiException(400, "Missing required parameter 'priority' when calling TaskLayoutApi->TaskLayoutUpdateTaskLayoutPriority"); - - var localVarPath = "/api/TaskLayout/changepriority/{tasklayoutid}/{priority}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tasklayoutid != null) localVarPathParams.Add("tasklayoutid", this.Configuration.ApiClient.ParameterToString(tasklayoutid)); // path parameter - if (priority != null) localVarPathParams.Add("priority", this.Configuration.ApiClient.ParameterToString(priority)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutUpdateTaskLayoutPriority", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts or updates personal task layout for user - /// - /// Thrown when fails to make API call - /// Task layout information to write - /// TaskLayoutDTO - public TaskLayoutDTO TaskLayoutWriteTaskLayoutForUser (TaskLayoutDTO taskLayout) - { - ApiResponse localVarResponse = TaskLayoutWriteTaskLayoutForUserWithHttpInfo(taskLayout); - return localVarResponse.Data; - } - - /// - /// This call inserts or updates personal task layout for user - /// - /// Thrown when fails to make API call - /// Task layout information to write - /// ApiResponse of TaskLayoutDTO - public ApiResponse< TaskLayoutDTO > TaskLayoutWriteTaskLayoutForUserWithHttpInfo (TaskLayoutDTO taskLayout) - { - // verify the required parameter 'taskLayout' is set - if (taskLayout == null) - throw new ApiException(400, "Missing required parameter 'taskLayout' when calling TaskLayoutApi->TaskLayoutWriteTaskLayoutForUser"); - - var localVarPath = "/api/TaskLayout/foruser"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskLayout != null && taskLayout.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskLayout); // http body (model) parameter - } - else - { - localVarPostBody = taskLayout; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutWriteTaskLayoutForUser", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskLayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskLayoutDTO))); - } - - /// - /// This call inserts or updates personal task layout for user - /// - /// Thrown when fails to make API call - /// Task layout information to write - /// Task of TaskLayoutDTO - public async System.Threading.Tasks.Task TaskLayoutWriteTaskLayoutForUserAsync (TaskLayoutDTO taskLayout) - { - ApiResponse localVarResponse = await TaskLayoutWriteTaskLayoutForUserAsyncWithHttpInfo(taskLayout); - return localVarResponse.Data; - - } - - /// - /// This call inserts or updates personal task layout for user - /// - /// Thrown when fails to make API call - /// Task layout information to write - /// Task of ApiResponse (TaskLayoutDTO) - public async System.Threading.Tasks.Task> TaskLayoutWriteTaskLayoutForUserAsyncWithHttpInfo (TaskLayoutDTO taskLayout) - { - // verify the required parameter 'taskLayout' is set - if (taskLayout == null) - throw new ApiException(400, "Missing required parameter 'taskLayout' when calling TaskLayoutApi->TaskLayoutWriteTaskLayoutForUser"); - - var localVarPath = "/api/TaskLayout/foruser"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskLayout != null && taskLayout.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskLayout); // http body (model) parameter - } - else - { - localVarPostBody = taskLayout; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskLayoutWriteTaskLayoutForUser", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskLayoutDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskLayoutDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/TaskV2Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/TaskV2Api.cs deleted file mode 100644 index 2af9522..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/TaskV2Api.cs +++ /dev/null @@ -1,1038 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITaskV2Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the calculated names from a docnumber list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<KeyValueElementDto> - List TaskV2GetDocumentsFilenameByIds (List docnumbers); - - /// - /// This call returns the calculated names from a docnumber list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<KeyValueElementDto> - ApiResponse> TaskV2GetDocumentsFilenameByIdsWithHttpInfo (List docnumbers); - /// - /// This call returns a profile schema for a mask insert document task V2 operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// MaskProfileSchemaDTO - MaskProfileSchemaDTO TaskV2GetProfileSchemaForTaskV2MaskDocumentOperation (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null); - - /// - /// This call returns a profile schema for a mask insert document task V2 operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// ApiResponse of MaskProfileSchemaDTO - ApiResponse TaskV2GetProfileSchemaForTaskV2MaskDocumentOperationWithHttpInfo (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null); - /// - /// This call returns a profile schema for a model insert document task V2 operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// ModelProfileSchemaDTO - ModelProfileSchemaDTO TaskV2GetProfileSchemaForTaskV2ModelDocumentOperation (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null); - - /// - /// This call returns a profile schema for a model insert document task V2 operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// ApiResponse of ModelProfileSchemaDTO - ApiResponse TaskV2GetProfileSchemaForTaskV2ModelDocumentOperationWithHttpInfo (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null); - /// - /// This call returns a profile schema for a standard insert document task V2 operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// MaskProfileSchemaDTO - MaskProfileSchemaDTO TaskV2GetProfileSchemaForTaskV2StandardDocumentOperation (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null); - - /// - /// This call returns a profile schema for a standard insert document task V2 operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// ApiResponse of MaskProfileSchemaDTO - ApiResponse TaskV2GetProfileSchemaForTaskV2StandardDocumentOperationWithHttpInfo (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the calculated names from a docnumber list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<KeyValueElementDto> - System.Threading.Tasks.Task> TaskV2GetDocumentsFilenameByIdsAsync (List docnumbers); - - /// - /// This call returns the calculated names from a docnumber list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<KeyValueElementDto>) - System.Threading.Tasks.Task>> TaskV2GetDocumentsFilenameByIdsAsyncWithHttpInfo (List docnumbers); - /// - /// This call returns a profile schema for a mask insert document task V2 operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of MaskProfileSchemaDTO - System.Threading.Tasks.Task TaskV2GetProfileSchemaForTaskV2MaskDocumentOperationAsync (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null); - - /// - /// This call returns a profile schema for a mask insert document task V2 operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of ApiResponse (MaskProfileSchemaDTO) - System.Threading.Tasks.Task> TaskV2GetProfileSchemaForTaskV2MaskDocumentOperationAsyncWithHttpInfo (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null); - /// - /// This call returns a profile schema for a model insert document task V2 operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of ModelProfileSchemaDTO - System.Threading.Tasks.Task TaskV2GetProfileSchemaForTaskV2ModelDocumentOperationAsync (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null); - - /// - /// This call returns a profile schema for a model insert document task V2 operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of ApiResponse (ModelProfileSchemaDTO) - System.Threading.Tasks.Task> TaskV2GetProfileSchemaForTaskV2ModelDocumentOperationAsyncWithHttpInfo (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null); - /// - /// This call returns a profile schema for a standard insert document task V2 operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of MaskProfileSchemaDTO - System.Threading.Tasks.Task TaskV2GetProfileSchemaForTaskV2StandardDocumentOperationAsync (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null); - - /// - /// This call returns a profile schema for a standard insert document task V2 operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of ApiResponse (MaskProfileSchemaDTO) - System.Threading.Tasks.Task> TaskV2GetProfileSchemaForTaskV2StandardDocumentOperationAsyncWithHttpInfo (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TaskV2Api : ITaskV2Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TaskV2Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TaskV2Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the calculated names from a docnumber list - /// - /// Thrown when fails to make API call - /// - /// List<KeyValueElementDto> - public List TaskV2GetDocumentsFilenameByIds (List docnumbers) - { - ApiResponse> localVarResponse = TaskV2GetDocumentsFilenameByIdsWithHttpInfo(docnumbers); - return localVarResponse.Data; - } - - /// - /// This call returns the calculated names from a docnumber list - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<KeyValueElementDto> - public ApiResponse< List > TaskV2GetDocumentsFilenameByIdsWithHttpInfo (List docnumbers) - { - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling TaskV2Api->TaskV2GetDocumentsFilenameByIds"); - - var localVarPath = "/api/TaskV2/documents/filenames"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskV2GetDocumentsFilenameByIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the calculated names from a docnumber list - /// - /// Thrown when fails to make API call - /// - /// Task of List<KeyValueElementDto> - public async System.Threading.Tasks.Task> TaskV2GetDocumentsFilenameByIdsAsync (List docnumbers) - { - ApiResponse> localVarResponse = await TaskV2GetDocumentsFilenameByIdsAsyncWithHttpInfo(docnumbers); - return localVarResponse.Data; - - } - - /// - /// This call returns the calculated names from a docnumber list - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<KeyValueElementDto>) - public async System.Threading.Tasks.Task>> TaskV2GetDocumentsFilenameByIdsAsyncWithHttpInfo (List docnumbers) - { - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling TaskV2Api->TaskV2GetDocumentsFilenameByIds"); - - var localVarPath = "/api/TaskV2/documents/filenames"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskV2GetDocumentsFilenameByIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a profile schema for a mask insert document task V2 operation - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// MaskProfileSchemaDTO - public MaskProfileSchemaDTO TaskV2GetProfileSchemaForTaskV2MaskDocumentOperation (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null) - { - ApiResponse localVarResponse = TaskV2GetProfileSchemaForTaskV2MaskDocumentOperationWithHttpInfo(processObjectId, operationId, mapping); - return localVarResponse.Data; - } - - /// - /// This call returns a profile schema for a mask insert document task V2 operation - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// ApiResponse of MaskProfileSchemaDTO - public ApiResponse< MaskProfileSchemaDTO > TaskV2GetProfileSchemaForTaskV2MaskDocumentOperationWithHttpInfo (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null) - { - // verify the required parameter 'processObjectId' is set - if (processObjectId == null) - throw new ApiException(400, "Missing required parameter 'processObjectId' when calling TaskV2Api->TaskV2GetProfileSchemaForTaskV2MaskDocumentOperation"); - // verify the required parameter 'operationId' is set - if (operationId == null) - throw new ApiException(400, "Missing required parameter 'operationId' when calling TaskV2Api->TaskV2GetProfileSchemaForTaskV2MaskDocumentOperation"); - - var localVarPath = "/api/TaskV2/{processObjectId}/documentsoperations/{operationId}/maskprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processObjectId != null) localVarPathParams.Add("processObjectId", this.Configuration.ApiClient.ParameterToString(processObjectId)); // path parameter - if (operationId != null) localVarPathParams.Add("operationId", this.Configuration.ApiClient.ParameterToString(operationId)); // path parameter - if (mapping != null && mapping.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mapping); // http body (model) parameter - } - else - { - localVarPostBody = mapping; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskV2GetProfileSchemaForTaskV2MaskDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns a profile schema for a mask insert document task V2 operation - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of MaskProfileSchemaDTO - public async System.Threading.Tasks.Task TaskV2GetProfileSchemaForTaskV2MaskDocumentOperationAsync (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null) - { - ApiResponse localVarResponse = await TaskV2GetProfileSchemaForTaskV2MaskDocumentOperationAsyncWithHttpInfo(processObjectId, operationId, mapping); - return localVarResponse.Data; - - } - - /// - /// This call returns a profile schema for a mask insert document task V2 operation - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of ApiResponse (MaskProfileSchemaDTO) - public async System.Threading.Tasks.Task> TaskV2GetProfileSchemaForTaskV2MaskDocumentOperationAsyncWithHttpInfo (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null) - { - // verify the required parameter 'processObjectId' is set - if (processObjectId == null) - throw new ApiException(400, "Missing required parameter 'processObjectId' when calling TaskV2Api->TaskV2GetProfileSchemaForTaskV2MaskDocumentOperation"); - // verify the required parameter 'operationId' is set - if (operationId == null) - throw new ApiException(400, "Missing required parameter 'operationId' when calling TaskV2Api->TaskV2GetProfileSchemaForTaskV2MaskDocumentOperation"); - - var localVarPath = "/api/TaskV2/{processObjectId}/documentsoperations/{operationId}/maskprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processObjectId != null) localVarPathParams.Add("processObjectId", this.Configuration.ApiClient.ParameterToString(processObjectId)); // path parameter - if (operationId != null) localVarPathParams.Add("operationId", this.Configuration.ApiClient.ParameterToString(operationId)); // path parameter - if (mapping != null && mapping.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mapping); // http body (model) parameter - } - else - { - localVarPostBody = mapping; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskV2GetProfileSchemaForTaskV2MaskDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns a profile schema for a model insert document task V2 operation - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// ModelProfileSchemaDTO - public ModelProfileSchemaDTO TaskV2GetProfileSchemaForTaskV2ModelDocumentOperation (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null) - { - ApiResponse localVarResponse = TaskV2GetProfileSchemaForTaskV2ModelDocumentOperationWithHttpInfo(processObjectId, operationId, mapping); - return localVarResponse.Data; - } - - /// - /// This call returns a profile schema for a model insert document task V2 operation - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// ApiResponse of ModelProfileSchemaDTO - public ApiResponse< ModelProfileSchemaDTO > TaskV2GetProfileSchemaForTaskV2ModelDocumentOperationWithHttpInfo (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null) - { - // verify the required parameter 'processObjectId' is set - if (processObjectId == null) - throw new ApiException(400, "Missing required parameter 'processObjectId' when calling TaskV2Api->TaskV2GetProfileSchemaForTaskV2ModelDocumentOperation"); - // verify the required parameter 'operationId' is set - if (operationId == null) - throw new ApiException(400, "Missing required parameter 'operationId' when calling TaskV2Api->TaskV2GetProfileSchemaForTaskV2ModelDocumentOperation"); - - var localVarPath = "/api/TaskV2/{processObjectId}/documentsoperations/{operationId}/modelprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processObjectId != null) localVarPathParams.Add("processObjectId", this.Configuration.ApiClient.ParameterToString(processObjectId)); // path parameter - if (operationId != null) localVarPathParams.Add("operationId", this.Configuration.ApiClient.ParameterToString(operationId)); // path parameter - if (mapping != null && mapping.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mapping); // http body (model) parameter - } - else - { - localVarPostBody = mapping; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskV2GetProfileSchemaForTaskV2ModelDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ModelProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelProfileSchemaDTO))); - } - - /// - /// This call returns a profile schema for a model insert document task V2 operation - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of ModelProfileSchemaDTO - public async System.Threading.Tasks.Task TaskV2GetProfileSchemaForTaskV2ModelDocumentOperationAsync (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null) - { - ApiResponse localVarResponse = await TaskV2GetProfileSchemaForTaskV2ModelDocumentOperationAsyncWithHttpInfo(processObjectId, operationId, mapping); - return localVarResponse.Data; - - } - - /// - /// This call returns a profile schema for a model insert document task V2 operation - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of ApiResponse (ModelProfileSchemaDTO) - public async System.Threading.Tasks.Task> TaskV2GetProfileSchemaForTaskV2ModelDocumentOperationAsyncWithHttpInfo (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null) - { - // verify the required parameter 'processObjectId' is set - if (processObjectId == null) - throw new ApiException(400, "Missing required parameter 'processObjectId' when calling TaskV2Api->TaskV2GetProfileSchemaForTaskV2ModelDocumentOperation"); - // verify the required parameter 'operationId' is set - if (operationId == null) - throw new ApiException(400, "Missing required parameter 'operationId' when calling TaskV2Api->TaskV2GetProfileSchemaForTaskV2ModelDocumentOperation"); - - var localVarPath = "/api/TaskV2/{processObjectId}/documentsoperations/{operationId}/modelprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processObjectId != null) localVarPathParams.Add("processObjectId", this.Configuration.ApiClient.ParameterToString(processObjectId)); // path parameter - if (operationId != null) localVarPathParams.Add("operationId", this.Configuration.ApiClient.ParameterToString(operationId)); // path parameter - if (mapping != null && mapping.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mapping); // http body (model) parameter - } - else - { - localVarPostBody = mapping; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskV2GetProfileSchemaForTaskV2ModelDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ModelProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelProfileSchemaDTO))); - } - - /// - /// This call returns a profile schema for a standard insert document task V2 operation - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// MaskProfileSchemaDTO - public MaskProfileSchemaDTO TaskV2GetProfileSchemaForTaskV2StandardDocumentOperation (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null) - { - ApiResponse localVarResponse = TaskV2GetProfileSchemaForTaskV2StandardDocumentOperationWithHttpInfo(processObjectId, operationId, mapping); - return localVarResponse.Data; - } - - /// - /// This call returns a profile schema for a standard insert document task V2 operation - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// ApiResponse of MaskProfileSchemaDTO - public ApiResponse< MaskProfileSchemaDTO > TaskV2GetProfileSchemaForTaskV2StandardDocumentOperationWithHttpInfo (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null) - { - // verify the required parameter 'processObjectId' is set - if (processObjectId == null) - throw new ApiException(400, "Missing required parameter 'processObjectId' when calling TaskV2Api->TaskV2GetProfileSchemaForTaskV2StandardDocumentOperation"); - // verify the required parameter 'operationId' is set - if (operationId == null) - throw new ApiException(400, "Missing required parameter 'operationId' when calling TaskV2Api->TaskV2GetProfileSchemaForTaskV2StandardDocumentOperation"); - - var localVarPath = "/api/TaskV2/{processObjectId}/documentsoperations/{operationId}/standardprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processObjectId != null) localVarPathParams.Add("processObjectId", this.Configuration.ApiClient.ParameterToString(processObjectId)); // path parameter - if (operationId != null) localVarPathParams.Add("operationId", this.Configuration.ApiClient.ParameterToString(operationId)); // path parameter - if (mapping != null && mapping.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mapping); // http body (model) parameter - } - else - { - localVarPostBody = mapping; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskV2GetProfileSchemaForTaskV2StandardDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns a profile schema for a standard insert document task V2 operation - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of MaskProfileSchemaDTO - public async System.Threading.Tasks.Task TaskV2GetProfileSchemaForTaskV2StandardDocumentOperationAsync (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null) - { - ApiResponse localVarResponse = await TaskV2GetProfileSchemaForTaskV2StandardDocumentOperationAsyncWithHttpInfo(processObjectId, operationId, mapping); - return localVarResponse.Data; - - } - - /// - /// This call returns a profile schema for a standard insert document task V2 operation - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of ApiResponse (MaskProfileSchemaDTO) - public async System.Threading.Tasks.Task> TaskV2GetProfileSchemaForTaskV2StandardDocumentOperationAsyncWithHttpInfo (Guid? processObjectId, Guid? operationId, ProcessVariablesMappingDTO mapping = null) - { - // verify the required parameter 'processObjectId' is set - if (processObjectId == null) - throw new ApiException(400, "Missing required parameter 'processObjectId' when calling TaskV2Api->TaskV2GetProfileSchemaForTaskV2StandardDocumentOperation"); - // verify the required parameter 'operationId' is set - if (operationId == null) - throw new ApiException(400, "Missing required parameter 'operationId' when calling TaskV2Api->TaskV2GetProfileSchemaForTaskV2StandardDocumentOperation"); - - var localVarPath = "/api/TaskV2/{processObjectId}/documentsoperations/{operationId}/standardprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processObjectId != null) localVarPathParams.Add("processObjectId", this.Configuration.ApiClient.ParameterToString(processObjectId)); // path parameter - if (operationId != null) localVarPathParams.Add("operationId", this.Configuration.ApiClient.ParameterToString(operationId)); // path parameter - if (mapping != null && mapping.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mapping); // http body (model) parameter - } - else - { - localVarPostBody = mapping; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskV2GetProfileSchemaForTaskV2StandardDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkApi.cs deleted file mode 100644 index 5f157e4..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkApi.cs +++ /dev/null @@ -1,5763 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITaskWorkApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns a taskwork if active - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// TaskWorkDTO - TaskWorkDTO TaskWorkActivateTaskwork (int? taskWorkId); - - /// - /// This call returns a taskwork if active - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of TaskWorkDTO - ApiResponse TaskWorkActivateTaskworkWithHttpInfo (int? taskWorkId); - /// - /// This call autoassigns the taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// - void TaskWorkAutoAssign (int? taskworkId); - - /// - /// This call autoassigns the taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of Object(void) - ApiResponse TaskWorkAutoAssignWithHttpInfo (int? taskworkId); - /// - /// This call returns if is possible to close task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// List<CloseEligibleResult> - List TaskWorkCanFinalizeTaskByIds (List taskworkids); - - /// - /// This call returns if is possible to close task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// ApiResponse of List<CloseEligibleResult> - ApiResponse> TaskWorkCanFinalizeTaskByIdsWithHttpInfo (List taskworkids); - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// List<CloseEligibleResult> - List TaskWorkCanFinalizeTaskByIdsAndExitCodeAndPassword (TaskWorkCloseRequest closeRequest); - - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// ApiResponse of List<CloseEligibleResult> - ApiResponse> TaskWorkCanFinalizeTaskByIdsAndExitCodeAndPasswordWithHttpInfo (TaskWorkCloseRequest closeRequest); - /// - /// This call deletes the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// - void TaskWorkDeleteTaskWorkById (int? taskWorkId); - - /// - /// This call deletes the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of Object(void) - ApiResponse TaskWorkDeleteTaskWorkByIdWithHttpInfo (int? taskWorkId); - /// - /// This call closes a task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// - void TaskWorkFinalizeTaskByIdsAndExitCodeAndPassword (TaskWorkCloseRequest closeRequest); - - /// - /// This call closes a task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// ApiResponse of Object(void) - ApiResponse TaskWorkFinalizeTaskByIdsAndExitCodeAndPasswordWithHttpInfo (TaskWorkCloseRequest closeRequest); - /// - /// This call executes a task search and return taskwork active for the user on a specific document - /// - /// - /// Use the resource on api/v2/TaskWork/actives/{docnumber} - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// List<RowSearchResult> - List TaskWorkGetActiveTaskWork (SelectDTO select, int? docnumber); - - /// - /// This call executes a task search and return taskwork active for the user on a specific document - /// - /// - /// Use the resource on api/v2/TaskWork/actives/{docnumber} - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// ApiResponse of List<RowSearchResult> - ApiResponse> TaskWorkGetActiveTaskWorkWithHttpInfo (SelectDTO select, int? docnumber); - /// - /// This call provides default select for tasklist search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SelectDTO - SelectDTO TaskWorkGetDefaultSelect (); - - /// - /// This call provides default select for tasklist search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - ApiResponse TaskWorkGetDefaultSelectWithHttpInfo (); - /// - /// This call returns the task documents - /// - /// - /// Use the resource on api/v2/TaskWork/documents/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// List<RowSearchResult> - List TaskWorkGetDocumentsByProcessId (int? processId, SelectDTO select); - - /// - /// This call returns the task documents - /// - /// - /// Use the resource on api/v2/TaskWork/documents/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// ApiResponse of List<RowSearchResult> - ApiResponse> TaskWorkGetDocumentsByProcessIdWithHttpInfo (int? processId, SelectDTO select); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<KeyValueElementDto> - List TaskWorkGetDocumentsFilenameByProcessId (int? processId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<KeyValueElementDto> - ApiResponse> TaskWorkGetDocumentsFilenameByProcessIdWithHttpInfo (int? processId); - /// - /// This call returns all possible exit code for taskWorks list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// List<TaskExitCodeDTO> - List TaskWorkGetExitCodesByTaskWorkIds (List taskWorkIds); - - /// - /// This call returns all possible exit code for taskWorks list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// ApiResponse of List<TaskExitCodeDTO> - ApiResponse> TaskWorkGetExitCodesByTaskWorkIdsWithHttpInfo (List taskWorkIds); - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// MaskProfileSchemaDTO - MaskProfileSchemaDTO TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId); - - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ApiResponse of MaskProfileSchemaDTO - ApiResponse TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId); - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ModelProfileSchemaDTO - ModelProfileSchemaDTO TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId); - - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ApiResponse of ModelProfileSchemaDTO - ApiResponse TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId); - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// MaskProfileSchemaDTO - MaskProfileSchemaDTO TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId); - - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ApiResponse of MaskProfileSchemaDTO - ApiResponse TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId); - /// - /// This call returns the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// TaskWorkDTO - TaskWorkDTO TaskWorkGetTaskWorkById (int? taskWorkId); - - /// - /// This call returns the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of TaskWorkDTO - ApiResponse TaskWorkGetTaskWorkByIdWithHttpInfo (int? taskWorkId); - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// List<TaskWorkDTO> - List TaskWorkGetTaskWorkForAutoAssign (int? docnumber); - - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of List<TaskWorkDTO> - ApiResponse> TaskWorkGetTaskWorkForAutoAssignWithHttpInfo (int? docnumber); - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions) - /// - /// - /// Use the resource on api/v2/TaskWork - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// List<RowSearchResult> - List TaskWorkGetTasks (TaskWorkRequestDTO request); - - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions) - /// - /// - /// Use the resource on api/v2/TaskWork - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// ApiResponse of List<RowSearchResult> - ApiResponse> TaskWorkGetTasksWithHttpInfo (TaskWorkRequestDTO request); - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// - void TaskWorkReassignTaskById (int? taskworkid, TaskWorkReassignRequest reassignRequest); - - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// ApiResponse of Object(void) - ApiResponse TaskWorkReassignTaskByIdWithHttpInfo (int? taskworkid, TaskWorkReassignRequest reassignRequest); - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// List<UserCompleteDTO> - List TaskWorkReassignUsersTaskById (int? taskworkid); - - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of List<UserCompleteDTO> - ApiResponse> TaskWorkReassignUsersTaskByIdWithHttpInfo (int? taskworkid); - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// - void TaskWorkSetProfileForTaskWorkBySelectionDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers); - - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// ApiResponse of Object(void) - ApiResponse TaskWorkSetProfileForTaskWorkBySelectionDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers); - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ProfileResultDTO - ProfileResultDTO TaskWorkSetProfileForTaskWorkMaskDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ApiResponse of ProfileResultDTO - ApiResponse TaskWorkSetProfileForTaskWorkMaskDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ProfileResultDTO - ProfileResultDTO TaskWorkSetProfileForTaskWorkModelDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ApiResponse of ProfileResultDTO - ApiResponse TaskWorkSetProfileForTaskWorkModelDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ProfileResultDTO - ProfileResultDTO TaskWorkSetProfileForTaskWorkStandardDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ApiResponse of ProfileResultDTO - ApiResponse TaskWorkSetProfileForTaskWorkStandardDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - /// - /// This call sets the tasks priority - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// int? - int? TaskWorkSetTaskPriority (List taskIds, int? priority); - - /// - /// This call sets the tasks priority - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// ApiResponse of int? - ApiResponse TaskWorkSetTaskPriorityWithHttpInfo (List taskIds, int? priority); - /// - /// This call sets the task as read - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task Identifier - /// int? - int? TaskWorkSetTaskRead (List taskid); - - /// - /// This call sets the task as read - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task Identifier - /// ApiResponse of int? - ApiResponse TaskWorkSetTaskReadWithHttpInfo (List taskid); - /// - /// This call sets the tasks as unread - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// int? - int? TaskWorkSetTaskUnRead (List taskIds); - - /// - /// This call sets the tasks as unread - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// ApiResponse of int? - ApiResponse TaskWorkSetTaskUnReadWithHttpInfo (List taskIds); - /// - /// This call takes charge of a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// - void TaskWorkTaskWorkTakeCharge (int? taskWorkId); - - /// - /// This call takes charge of a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of Object(void) - ApiResponse TaskWorkTaskWorkTakeChargeWithHttpInfo (int? taskWorkId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns a taskwork if active - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of TaskWorkDTO - System.Threading.Tasks.Task TaskWorkActivateTaskworkAsync (int? taskWorkId); - - /// - /// This call returns a taskwork if active - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (TaskWorkDTO) - System.Threading.Tasks.Task> TaskWorkActivateTaskworkAsyncWithHttpInfo (int? taskWorkId); - /// - /// This call autoassigns the taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of void - System.Threading.Tasks.Task TaskWorkAutoAssignAsync (int? taskworkId); - - /// - /// This call autoassigns the taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkAutoAssignAsyncWithHttpInfo (int? taskworkId); - /// - /// This call returns if is possible to close task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of List<CloseEligibleResult> - System.Threading.Tasks.Task> TaskWorkCanFinalizeTaskByIdsAsync (List taskworkids); - - /// - /// This call returns if is possible to close task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of ApiResponse (List<CloseEligibleResult>) - System.Threading.Tasks.Task>> TaskWorkCanFinalizeTaskByIdsAsyncWithHttpInfo (List taskworkids); - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of List<CloseEligibleResult> - System.Threading.Tasks.Task> TaskWorkCanFinalizeTaskByIdsAndExitCodeAndPasswordAsync (TaskWorkCloseRequest closeRequest); - - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of ApiResponse (List<CloseEligibleResult>) - System.Threading.Tasks.Task>> TaskWorkCanFinalizeTaskByIdsAndExitCodeAndPasswordAsyncWithHttpInfo (TaskWorkCloseRequest closeRequest); - /// - /// This call deletes the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of void - System.Threading.Tasks.Task TaskWorkDeleteTaskWorkByIdAsync (int? taskWorkId); - - /// - /// This call deletes the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkDeleteTaskWorkByIdAsyncWithHttpInfo (int? taskWorkId); - /// - /// This call closes a task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of void - System.Threading.Tasks.Task TaskWorkFinalizeTaskByIdsAndExitCodeAndPasswordAsync (TaskWorkCloseRequest closeRequest); - - /// - /// This call closes a task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkFinalizeTaskByIdsAndExitCodeAndPasswordAsyncWithHttpInfo (TaskWorkCloseRequest closeRequest); - /// - /// This call executes a task search and return taskwork active for the user on a specific document - /// - /// - /// Use the resource on api/v2/TaskWork/actives/{docnumber} - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> TaskWorkGetActiveTaskWorkAsync (SelectDTO select, int? docnumber); - - /// - /// This call executes a task search and return taskwork active for the user on a specific document - /// - /// - /// Use the resource on api/v2/TaskWork/actives/{docnumber} - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> TaskWorkGetActiveTaskWorkAsyncWithHttpInfo (SelectDTO select, int? docnumber); - /// - /// This call provides default select for tasklist search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - System.Threading.Tasks.Task TaskWorkGetDefaultSelectAsync (); - - /// - /// This call provides default select for tasklist search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> TaskWorkGetDefaultSelectAsyncWithHttpInfo (); - /// - /// This call returns the task documents - /// - /// - /// Use the resource on api/v2/TaskWork/documents/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> TaskWorkGetDocumentsByProcessIdAsync (int? processId, SelectDTO select); - - /// - /// This call returns the task documents - /// - /// - /// Use the resource on api/v2/TaskWork/documents/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> TaskWorkGetDocumentsByProcessIdAsyncWithHttpInfo (int? processId, SelectDTO select); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<KeyValueElementDto> - System.Threading.Tasks.Task> TaskWorkGetDocumentsFilenameByProcessIdAsync (int? processId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<KeyValueElementDto>) - System.Threading.Tasks.Task>> TaskWorkGetDocumentsFilenameByProcessIdAsyncWithHttpInfo (int? processId); - /// - /// This call returns all possible exit code for taskWorks list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of List<TaskExitCodeDTO> - System.Threading.Tasks.Task> TaskWorkGetExitCodesByTaskWorkIdsAsync (List taskWorkIds); - - /// - /// This call returns all possible exit code for taskWorks list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of ApiResponse (List<TaskExitCodeDTO>) - System.Threading.Tasks.Task>> TaskWorkGetExitCodesByTaskWorkIdsAsyncWithHttpInfo (List taskWorkIds); - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of MaskProfileSchemaDTO - System.Threading.Tasks.Task TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId); - - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ApiResponse (MaskProfileSchemaDTO) - System.Threading.Tasks.Task> TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId); - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ModelProfileSchemaDTO - System.Threading.Tasks.Task TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId); - - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ApiResponse (ModelProfileSchemaDTO) - System.Threading.Tasks.Task> TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId); - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of MaskProfileSchemaDTO - System.Threading.Tasks.Task TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId); - - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ApiResponse (MaskProfileSchemaDTO) - System.Threading.Tasks.Task> TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId); - /// - /// This call returns the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of TaskWorkDTO - System.Threading.Tasks.Task TaskWorkGetTaskWorkByIdAsync (int? taskWorkId); - - /// - /// This call returns the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (TaskWorkDTO) - System.Threading.Tasks.Task> TaskWorkGetTaskWorkByIdAsyncWithHttpInfo (int? taskWorkId); - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of List<TaskWorkDTO> - System.Threading.Tasks.Task> TaskWorkGetTaskWorkForAutoAssignAsync (int? docnumber); - - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (List<TaskWorkDTO>) - System.Threading.Tasks.Task>> TaskWorkGetTaskWorkForAutoAssignAsyncWithHttpInfo (int? docnumber); - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions) - /// - /// - /// Use the resource on api/v2/TaskWork - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> TaskWorkGetTasksAsync (TaskWorkRequestDTO request); - - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions) - /// - /// - /// Use the resource on api/v2/TaskWork - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> TaskWorkGetTasksAsyncWithHttpInfo (TaskWorkRequestDTO request); - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// Task of void - System.Threading.Tasks.Task TaskWorkReassignTaskByIdAsync (int? taskworkid, TaskWorkReassignRequest reassignRequest); - - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkReassignTaskByIdAsyncWithHttpInfo (int? taskworkid, TaskWorkReassignRequest reassignRequest); - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of List<UserCompleteDTO> - System.Threading.Tasks.Task> TaskWorkReassignUsersTaskByIdAsync (int? taskworkid); - - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (List<UserCompleteDTO>) - System.Threading.Tasks.Task>> TaskWorkReassignUsersTaskByIdAsyncWithHttpInfo (int? taskworkid); - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// Task of void - System.Threading.Tasks.Task TaskWorkSetProfileForTaskWorkBySelectionDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers); - - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkSetProfileForTaskWorkBySelectionDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers); - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ProfileResultDTO - System.Threading.Tasks.Task TaskWorkSetProfileForTaskWorkMaskDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - System.Threading.Tasks.Task> TaskWorkSetProfileForTaskWorkMaskDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ProfileResultDTO - System.Threading.Tasks.Task TaskWorkSetProfileForTaskWorkModelDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - System.Threading.Tasks.Task> TaskWorkSetProfileForTaskWorkModelDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ProfileResultDTO - System.Threading.Tasks.Task TaskWorkSetProfileForTaskWorkStandardDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - System.Threading.Tasks.Task> TaskWorkSetProfileForTaskWorkStandardDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - /// - /// This call sets the tasks priority - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// Task of int? - System.Threading.Tasks.Task TaskWorkSetTaskPriorityAsync (List taskIds, int? priority); - - /// - /// This call sets the tasks priority - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// Task of ApiResponse (int?) - System.Threading.Tasks.Task> TaskWorkSetTaskPriorityAsyncWithHttpInfo (List taskIds, int? priority); - /// - /// This call sets the task as read - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task Identifier - /// Task of int? - System.Threading.Tasks.Task TaskWorkSetTaskReadAsync (List taskid); - - /// - /// This call sets the task as read - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task Identifier - /// Task of ApiResponse (int?) - System.Threading.Tasks.Task> TaskWorkSetTaskReadAsyncWithHttpInfo (List taskid); - /// - /// This call sets the tasks as unread - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Task of int? - System.Threading.Tasks.Task TaskWorkSetTaskUnReadAsync (List taskIds); - - /// - /// This call sets the tasks as unread - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Task of ApiResponse (int?) - System.Threading.Tasks.Task> TaskWorkSetTaskUnReadAsyncWithHttpInfo (List taskIds); - /// - /// This call takes charge of a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of void - System.Threading.Tasks.Task TaskWorkTaskWorkTakeChargeAsync (int? taskWorkId); - - /// - /// This call takes charge of a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkTaskWorkTakeChargeAsyncWithHttpInfo (int? taskWorkId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TaskWorkApi : ITaskWorkApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TaskWorkApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TaskWorkApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns a taskwork if active - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// TaskWorkDTO - public TaskWorkDTO TaskWorkActivateTaskwork (int? taskWorkId) - { - ApiResponse localVarResponse = TaskWorkActivateTaskworkWithHttpInfo(taskWorkId); - return localVarResponse.Data; - } - - /// - /// This call returns a taskwork if active - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of TaskWorkDTO - public ApiResponse< TaskWorkDTO > TaskWorkActivateTaskworkWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkActivateTaskwork"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/Activate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkActivateTaskwork", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkDTO))); - } - - /// - /// This call returns a taskwork if active - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of TaskWorkDTO - public async System.Threading.Tasks.Task TaskWorkActivateTaskworkAsync (int? taskWorkId) - { - ApiResponse localVarResponse = await TaskWorkActivateTaskworkAsyncWithHttpInfo(taskWorkId); - return localVarResponse.Data; - - } - - /// - /// This call returns a taskwork if active - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (TaskWorkDTO) - public async System.Threading.Tasks.Task> TaskWorkActivateTaskworkAsyncWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkActivateTaskwork"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/Activate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkActivateTaskwork", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkDTO))); - } - - /// - /// This call autoassigns the taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// - public void TaskWorkAutoAssign (int? taskworkId) - { - TaskWorkAutoAssignWithHttpInfo(taskworkId); - } - - /// - /// This call autoassigns the taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of Object(void) - public ApiResponse TaskWorkAutoAssignWithHttpInfo (int? taskworkId) - { - // verify the required parameter 'taskworkId' is set - if (taskworkId == null) - throw new ApiException(400, "Missing required parameter 'taskworkId' when calling TaskWorkApi->TaskWorkAutoAssign"); - - var localVarPath = "/api/TaskWork/autoassign/{taskworkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkId != null) localVarPathParams.Add("taskworkId", this.Configuration.ApiClient.ParameterToString(taskworkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAutoAssign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call autoassigns the taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of void - public async System.Threading.Tasks.Task TaskWorkAutoAssignAsync (int? taskworkId) - { - await TaskWorkAutoAssignAsyncWithHttpInfo(taskworkId); - - } - - /// - /// This call autoassigns the taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkAutoAssignAsyncWithHttpInfo (int? taskworkId) - { - // verify the required parameter 'taskworkId' is set - if (taskworkId == null) - throw new ApiException(400, "Missing required parameter 'taskworkId' when calling TaskWorkApi->TaskWorkAutoAssign"); - - var localVarPath = "/api/TaskWork/autoassign/{taskworkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkId != null) localVarPathParams.Add("taskworkId", this.Configuration.ApiClient.ParameterToString(taskworkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAutoAssign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns if is possible to close task work list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// List<CloseEligibleResult> - public List TaskWorkCanFinalizeTaskByIds (List taskworkids) - { - ApiResponse> localVarResponse = TaskWorkCanFinalizeTaskByIdsWithHttpInfo(taskworkids); - return localVarResponse.Data; - } - - /// - /// This call returns if is possible to close task work list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// ApiResponse of List<CloseEligibleResult> - public ApiResponse< List > TaskWorkCanFinalizeTaskByIdsWithHttpInfo (List taskworkids) - { - // verify the required parameter 'taskworkids' is set - if (taskworkids == null) - throw new ApiException(400, "Missing required parameter 'taskworkids' when calling TaskWorkApi->TaskWorkCanFinalizeTaskByIds"); - - var localVarPath = "/api/TaskWork/canfinalize"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkids != null && taskworkids.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskworkids); // http body (model) parameter - } - else - { - localVarPostBody = taskworkids; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkCanFinalizeTaskByIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns if is possible to close task work list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of List<CloseEligibleResult> - public async System.Threading.Tasks.Task> TaskWorkCanFinalizeTaskByIdsAsync (List taskworkids) - { - ApiResponse> localVarResponse = await TaskWorkCanFinalizeTaskByIdsAsyncWithHttpInfo(taskworkids); - return localVarResponse.Data; - - } - - /// - /// This call returns if is possible to close task work list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of ApiResponse (List<CloseEligibleResult>) - public async System.Threading.Tasks.Task>> TaskWorkCanFinalizeTaskByIdsAsyncWithHttpInfo (List taskworkids) - { - // verify the required parameter 'taskworkids' is set - if (taskworkids == null) - throw new ApiException(400, "Missing required parameter 'taskworkids' when calling TaskWorkApi->TaskWorkCanFinalizeTaskByIds"); - - var localVarPath = "/api/TaskWork/canfinalize"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkids != null && taskworkids.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskworkids); // http body (model) parameter - } - else - { - localVarPostBody = taskworkids; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkCanFinalizeTaskByIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// Thrown when fails to make API call - /// Taskwork information - /// List<CloseEligibleResult> - public List TaskWorkCanFinalizeTaskByIdsAndExitCodeAndPassword (TaskWorkCloseRequest closeRequest) - { - ApiResponse> localVarResponse = TaskWorkCanFinalizeTaskByIdsAndExitCodeAndPasswordWithHttpInfo(closeRequest); - return localVarResponse.Data; - } - - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// Thrown when fails to make API call - /// Taskwork information - /// ApiResponse of List<CloseEligibleResult> - public ApiResponse< List > TaskWorkCanFinalizeTaskByIdsAndExitCodeAndPasswordWithHttpInfo (TaskWorkCloseRequest closeRequest) - { - // verify the required parameter 'closeRequest' is set - if (closeRequest == null) - throw new ApiException(400, "Missing required parameter 'closeRequest' when calling TaskWorkApi->TaskWorkCanFinalizeTaskByIdsAndExitCodeAndPassword"); - - var localVarPath = "/api/TaskWork/canfinalizebyexitcodeandpassword"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (closeRequest != null && closeRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(closeRequest); // http body (model) parameter - } - else - { - localVarPostBody = closeRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkCanFinalizeTaskByIdsAndExitCodeAndPassword", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of List<CloseEligibleResult> - public async System.Threading.Tasks.Task> TaskWorkCanFinalizeTaskByIdsAndExitCodeAndPasswordAsync (TaskWorkCloseRequest closeRequest) - { - ApiResponse> localVarResponse = await TaskWorkCanFinalizeTaskByIdsAndExitCodeAndPasswordAsyncWithHttpInfo(closeRequest); - return localVarResponse.Data; - - } - - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of ApiResponse (List<CloseEligibleResult>) - public async System.Threading.Tasks.Task>> TaskWorkCanFinalizeTaskByIdsAndExitCodeAndPasswordAsyncWithHttpInfo (TaskWorkCloseRequest closeRequest) - { - // verify the required parameter 'closeRequest' is set - if (closeRequest == null) - throw new ApiException(400, "Missing required parameter 'closeRequest' when calling TaskWorkApi->TaskWorkCanFinalizeTaskByIdsAndExitCodeAndPassword"); - - var localVarPath = "/api/TaskWork/canfinalizebyexitcodeandpassword"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (closeRequest != null && closeRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(closeRequest); // http body (model) parameter - } - else - { - localVarPostBody = closeRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkCanFinalizeTaskByIdsAndExitCodeAndPassword", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call deletes the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// - public void TaskWorkDeleteTaskWorkById (int? taskWorkId) - { - TaskWorkDeleteTaskWorkByIdWithHttpInfo(taskWorkId); - } - - /// - /// This call deletes the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of Object(void) - public ApiResponse TaskWorkDeleteTaskWorkByIdWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkDeleteTaskWorkById"); - - var localVarPath = "/api/TaskWork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkDeleteTaskWorkById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of void - public async System.Threading.Tasks.Task TaskWorkDeleteTaskWorkByIdAsync (int? taskWorkId) - { - await TaskWorkDeleteTaskWorkByIdAsyncWithHttpInfo(taskWorkId); - - } - - /// - /// This call deletes the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkDeleteTaskWorkByIdAsyncWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkDeleteTaskWorkById"); - - var localVarPath = "/api/TaskWork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkDeleteTaskWorkById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call closes a task work list - /// - /// Thrown when fails to make API call - /// Taskwork information - /// - public void TaskWorkFinalizeTaskByIdsAndExitCodeAndPassword (TaskWorkCloseRequest closeRequest) - { - TaskWorkFinalizeTaskByIdsAndExitCodeAndPasswordWithHttpInfo(closeRequest); - } - - /// - /// This call closes a task work list - /// - /// Thrown when fails to make API call - /// Taskwork information - /// ApiResponse of Object(void) - public ApiResponse TaskWorkFinalizeTaskByIdsAndExitCodeAndPasswordWithHttpInfo (TaskWorkCloseRequest closeRequest) - { - // verify the required parameter 'closeRequest' is set - if (closeRequest == null) - throw new ApiException(400, "Missing required parameter 'closeRequest' when calling TaskWorkApi->TaskWorkFinalizeTaskByIdsAndExitCodeAndPassword"); - - var localVarPath = "/api/TaskWork/finalize"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (closeRequest != null && closeRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(closeRequest); // http body (model) parameter - } - else - { - localVarPostBody = closeRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkFinalizeTaskByIdsAndExitCodeAndPassword", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call closes a task work list - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of void - public async System.Threading.Tasks.Task TaskWorkFinalizeTaskByIdsAndExitCodeAndPasswordAsync (TaskWorkCloseRequest closeRequest) - { - await TaskWorkFinalizeTaskByIdsAndExitCodeAndPasswordAsyncWithHttpInfo(closeRequest); - - } - - /// - /// This call closes a task work list - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkFinalizeTaskByIdsAndExitCodeAndPasswordAsyncWithHttpInfo (TaskWorkCloseRequest closeRequest) - { - // verify the required parameter 'closeRequest' is set - if (closeRequest == null) - throw new ApiException(400, "Missing required parameter 'closeRequest' when calling TaskWorkApi->TaskWorkFinalizeTaskByIdsAndExitCodeAndPassword"); - - var localVarPath = "/api/TaskWork/finalize"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (closeRequest != null && closeRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(closeRequest); // http body (model) parameter - } - else - { - localVarPostBody = closeRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkFinalizeTaskByIdsAndExitCodeAndPassword", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call executes a task search and return taskwork active for the user on a specific document Use the resource on api/v2/TaskWork/actives/{docnumber} - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// List<RowSearchResult> - public List TaskWorkGetActiveTaskWork (SelectDTO select, int? docnumber) - { - ApiResponse> localVarResponse = TaskWorkGetActiveTaskWorkWithHttpInfo(select, docnumber); - return localVarResponse.Data; - } - - /// - /// This call executes a task search and return taskwork active for the user on a specific document Use the resource on api/v2/TaskWork/actives/{docnumber} - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > TaskWorkGetActiveTaskWorkWithHttpInfo (SelectDTO select, int? docnumber) - { - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling TaskWorkApi->TaskWorkGetActiveTaskWork"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling TaskWorkApi->TaskWorkGetActiveTaskWork"); - - var localVarPath = "/api/TaskWork/actives/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetActiveTaskWork", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call executes a task search and return taskwork active for the user on a specific document Use the resource on api/v2/TaskWork/actives/{docnumber} - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> TaskWorkGetActiveTaskWorkAsync (SelectDTO select, int? docnumber) - { - ApiResponse> localVarResponse = await TaskWorkGetActiveTaskWorkAsyncWithHttpInfo(select, docnumber); - return localVarResponse.Data; - - } - - /// - /// This call executes a task search and return taskwork active for the user on a specific document Use the resource on api/v2/TaskWork/actives/{docnumber} - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> TaskWorkGetActiveTaskWorkAsyncWithHttpInfo (SelectDTO select, int? docnumber) - { - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling TaskWorkApi->TaskWorkGetActiveTaskWork"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling TaskWorkApi->TaskWorkGetActiveTaskWork"); - - var localVarPath = "/api/TaskWork/actives/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetActiveTaskWork", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call provides default select for tasklist search - /// - /// Thrown when fails to make API call - /// SelectDTO - public SelectDTO TaskWorkGetDefaultSelect () - { - ApiResponse localVarResponse = TaskWorkGetDefaultSelectWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call provides default select for tasklist search - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > TaskWorkGetDefaultSelectWithHttpInfo () - { - - var localVarPath = "/api/TaskWork/defaultselect"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetDefaultSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call provides default select for tasklist search - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - public async System.Threading.Tasks.Task TaskWorkGetDefaultSelectAsync () - { - ApiResponse localVarResponse = await TaskWorkGetDefaultSelectAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call provides default select for tasklist search - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> TaskWorkGetDefaultSelectAsyncWithHttpInfo () - { - - var localVarPath = "/api/TaskWork/defaultselect"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetDefaultSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns the task documents Use the resource on api/v2/TaskWork/documents/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// List<RowSearchResult> - public List TaskWorkGetDocumentsByProcessId (int? processId, SelectDTO select) - { - ApiResponse> localVarResponse = TaskWorkGetDocumentsByProcessIdWithHttpInfo(processId, select); - return localVarResponse.Data; - } - - /// - /// This call returns the task documents Use the resource on api/v2/TaskWork/documents/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > TaskWorkGetDocumentsByProcessIdWithHttpInfo (int? processId, SelectDTO select) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkApi->TaskWorkGetDocumentsByProcessId"); - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling TaskWorkApi->TaskWorkGetDocumentsByProcessId"); - - var localVarPath = "/api/TaskWork/documents/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetDocumentsByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the task documents Use the resource on api/v2/TaskWork/documents/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> TaskWorkGetDocumentsByProcessIdAsync (int? processId, SelectDTO select) - { - ApiResponse> localVarResponse = await TaskWorkGetDocumentsByProcessIdAsyncWithHttpInfo(processId, select); - return localVarResponse.Data; - - } - - /// - /// This call returns the task documents Use the resource on api/v2/TaskWork/documents/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> TaskWorkGetDocumentsByProcessIdAsyncWithHttpInfo (int? processId, SelectDTO select) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkApi->TaskWorkGetDocumentsByProcessId"); - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling TaskWorkApi->TaskWorkGetDocumentsByProcessId"); - - var localVarPath = "/api/TaskWork/documents/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetDocumentsByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<KeyValueElementDto> - public List TaskWorkGetDocumentsFilenameByProcessId (int? processId) - { - ApiResponse> localVarResponse = TaskWorkGetDocumentsFilenameByProcessIdWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<KeyValueElementDto> - public ApiResponse< List > TaskWorkGetDocumentsFilenameByProcessIdWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkApi->TaskWorkGetDocumentsFilenameByProcessId"); - - var localVarPath = "/api/TaskWork/documents/filenames/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetDocumentsFilenameByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<KeyValueElementDto> - public async System.Threading.Tasks.Task> TaskWorkGetDocumentsFilenameByProcessIdAsync (int? processId) - { - ApiResponse> localVarResponse = await TaskWorkGetDocumentsFilenameByProcessIdAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<KeyValueElementDto>) - public async System.Threading.Tasks.Task>> TaskWorkGetDocumentsFilenameByProcessIdAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkApi->TaskWorkGetDocumentsFilenameByProcessId"); - - var localVarPath = "/api/TaskWork/documents/filenames/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetDocumentsFilenameByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all possible exit code for taskWorks list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// List<TaskExitCodeDTO> - public List TaskWorkGetExitCodesByTaskWorkIds (List taskWorkIds) - { - ApiResponse> localVarResponse = TaskWorkGetExitCodesByTaskWorkIdsWithHttpInfo(taskWorkIds); - return localVarResponse.Data; - } - - /// - /// This call returns all possible exit code for taskWorks list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// ApiResponse of List<TaskExitCodeDTO> - public ApiResponse< List > TaskWorkGetExitCodesByTaskWorkIdsWithHttpInfo (List taskWorkIds) - { - // verify the required parameter 'taskWorkIds' is set - if (taskWorkIds == null) - throw new ApiException(400, "Missing required parameter 'taskWorkIds' when calling TaskWorkApi->TaskWorkGetExitCodesByTaskWorkIds"); - - var localVarPath = "/api/TaskWork/exitcodes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkIds != null && taskWorkIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskWorkIds); // http body (model) parameter - } - else - { - localVarPostBody = taskWorkIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetExitCodesByTaskWorkIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all possible exit code for taskWorks list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of List<TaskExitCodeDTO> - public async System.Threading.Tasks.Task> TaskWorkGetExitCodesByTaskWorkIdsAsync (List taskWorkIds) - { - ApiResponse> localVarResponse = await TaskWorkGetExitCodesByTaskWorkIdsAsyncWithHttpInfo(taskWorkIds); - return localVarResponse.Data; - - } - - /// - /// This call returns all possible exit code for taskWorks list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of ApiResponse (List<TaskExitCodeDTO>) - public async System.Threading.Tasks.Task>> TaskWorkGetExitCodesByTaskWorkIdsAsyncWithHttpInfo (List taskWorkIds) - { - // verify the required parameter 'taskWorkIds' is set - if (taskWorkIds == null) - throw new ApiException(400, "Missing required parameter 'taskWorkIds' when calling TaskWorkApi->TaskWorkGetExitCodesByTaskWorkIds"); - - var localVarPath = "/api/TaskWork/exitcodes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkIds != null && taskWorkIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskWorkIds); // http body (model) parameter - } - else - { - localVarPostBody = taskWorkIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetExitCodesByTaskWorkIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// MaskProfileSchemaDTO - public MaskProfileSchemaDTO TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId) - { - ApiResponse localVarResponse = TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperationWithHttpInfo(taskWorkId, taskWorkDocumentOperationId); - return localVarResponse.Data; - } - - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ApiResponse of MaskProfileSchemaDTO - public ApiResponse< MaskProfileSchemaDTO > TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkApi->TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperation"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/maskprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of MaskProfileSchemaDTO - public async System.Threading.Tasks.Task TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId) - { - ApiResponse localVarResponse = await TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperationAsyncWithHttpInfo(taskWorkId, taskWorkDocumentOperationId); - return localVarResponse.Data; - - } - - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ApiResponse (MaskProfileSchemaDTO) - public async System.Threading.Tasks.Task> TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkApi->TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperation"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/maskprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetProfileSchemaForTaskWorkMaskDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ModelProfileSchemaDTO - public ModelProfileSchemaDTO TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId) - { - ApiResponse localVarResponse = TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperationWithHttpInfo(taskWorkId, taskWorkDocumentOperationId); - return localVarResponse.Data; - } - - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ApiResponse of ModelProfileSchemaDTO - public ApiResponse< ModelProfileSchemaDTO > TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkApi->TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperation"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/modelprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ModelProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelProfileSchemaDTO))); - } - - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ModelProfileSchemaDTO - public async System.Threading.Tasks.Task TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId) - { - ApiResponse localVarResponse = await TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperationAsyncWithHttpInfo(taskWorkId, taskWorkDocumentOperationId); - return localVarResponse.Data; - - } - - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ApiResponse (ModelProfileSchemaDTO) - public async System.Threading.Tasks.Task> TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkApi->TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperation"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/modelprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetProfileSchemaForTaskWorkModelDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ModelProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelProfileSchemaDTO))); - } - - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// MaskProfileSchemaDTO - public MaskProfileSchemaDTO TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId) - { - ApiResponse localVarResponse = TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperationWithHttpInfo(taskWorkId, taskWorkDocumentOperationId); - return localVarResponse.Data; - } - - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ApiResponse of MaskProfileSchemaDTO - public ApiResponse< MaskProfileSchemaDTO > TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkApi->TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperation"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/standardprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of MaskProfileSchemaDTO - public async System.Threading.Tasks.Task TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId) - { - ApiResponse localVarResponse = await TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperationAsyncWithHttpInfo(taskWorkId, taskWorkDocumentOperationId); - return localVarResponse.Data; - - } - - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ApiResponse (MaskProfileSchemaDTO) - public async System.Threading.Tasks.Task> TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkApi->TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperation"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/standardprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetProfileSchemaForTaskWorkStandardDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// TaskWorkDTO - public TaskWorkDTO TaskWorkGetTaskWorkById (int? taskWorkId) - { - ApiResponse localVarResponse = TaskWorkGetTaskWorkByIdWithHttpInfo(taskWorkId); - return localVarResponse.Data; - } - - /// - /// This call returns the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of TaskWorkDTO - public ApiResponse< TaskWorkDTO > TaskWorkGetTaskWorkByIdWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkGetTaskWorkById"); - - var localVarPath = "/api/TaskWork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetTaskWorkById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkDTO))); - } - - /// - /// This call returns the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of TaskWorkDTO - public async System.Threading.Tasks.Task TaskWorkGetTaskWorkByIdAsync (int? taskWorkId) - { - ApiResponse localVarResponse = await TaskWorkGetTaskWorkByIdAsyncWithHttpInfo(taskWorkId); - return localVarResponse.Data; - - } - - /// - /// This call returns the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (TaskWorkDTO) - public async System.Threading.Tasks.Task> TaskWorkGetTaskWorkByIdAsyncWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkGetTaskWorkById"); - - var localVarPath = "/api/TaskWork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetTaskWorkById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkDTO))); - } - - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// List<TaskWorkDTO> - public List TaskWorkGetTaskWorkForAutoAssign (int? docnumber) - { - ApiResponse> localVarResponse = TaskWorkGetTaskWorkForAutoAssignWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of List<TaskWorkDTO> - public ApiResponse< List > TaskWorkGetTaskWorkForAutoAssignWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling TaskWorkApi->TaskWorkGetTaskWorkForAutoAssign"); - - var localVarPath = "/api/TaskWork/autoassignlist/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetTaskWorkForAutoAssign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of List<TaskWorkDTO> - public async System.Threading.Tasks.Task> TaskWorkGetTaskWorkForAutoAssignAsync (int? docnumber) - { - ApiResponse> localVarResponse = await TaskWorkGetTaskWorkForAutoAssignAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (List<TaskWorkDTO>) - public async System.Threading.Tasks.Task>> TaskWorkGetTaskWorkForAutoAssignAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling TaskWorkApi->TaskWorkGetTaskWorkForAutoAssign"); - - var localVarPath = "/api/TaskWork/autoassignlist/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetTaskWorkForAutoAssign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions) Use the resource on api/v2/TaskWork - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// List<RowSearchResult> - public List TaskWorkGetTasks (TaskWorkRequestDTO request) - { - ApiResponse> localVarResponse = TaskWorkGetTasksWithHttpInfo(request); - return localVarResponse.Data; - } - - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions) Use the resource on api/v2/TaskWork - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > TaskWorkGetTasksWithHttpInfo (TaskWorkRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling TaskWorkApi->TaskWorkGetTasks"); - - var localVarPath = "/api/TaskWork"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetTasks", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions) Use the resource on api/v2/TaskWork - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> TaskWorkGetTasksAsync (TaskWorkRequestDTO request) - { - ApiResponse> localVarResponse = await TaskWorkGetTasksAsyncWithHttpInfo(request); - return localVarResponse.Data; - - } - - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions) Use the resource on api/v2/TaskWork - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> TaskWorkGetTasksAsyncWithHttpInfo (TaskWorkRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling TaskWorkApi->TaskWorkGetTasks"); - - var localVarPath = "/api/TaskWork"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkGetTasks", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// - public void TaskWorkReassignTaskById (int? taskworkid, TaskWorkReassignRequest reassignRequest) - { - TaskWorkReassignTaskByIdWithHttpInfo(taskworkid, reassignRequest); - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// ApiResponse of Object(void) - public ApiResponse TaskWorkReassignTaskByIdWithHttpInfo (int? taskworkid, TaskWorkReassignRequest reassignRequest) - { - // verify the required parameter 'taskworkid' is set - if (taskworkid == null) - throw new ApiException(400, "Missing required parameter 'taskworkid' when calling TaskWorkApi->TaskWorkReassignTaskById"); - // verify the required parameter 'reassignRequest' is set - if (reassignRequest == null) - throw new ApiException(400, "Missing required parameter 'reassignRequest' when calling TaskWorkApi->TaskWorkReassignTaskById"); - - var localVarPath = "/api/TaskWork/reassign/{taskworkid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkid != null) localVarPathParams.Add("taskworkid", this.Configuration.ApiClient.ParameterToString(taskworkid)); // path parameter - if (reassignRequest != null && reassignRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(reassignRequest); // http body (model) parameter - } - else - { - localVarPostBody = reassignRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkReassignTaskById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// Task of void - public async System.Threading.Tasks.Task TaskWorkReassignTaskByIdAsync (int? taskworkid, TaskWorkReassignRequest reassignRequest) - { - await TaskWorkReassignTaskByIdAsyncWithHttpInfo(taskworkid, reassignRequest); - - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkReassignTaskByIdAsyncWithHttpInfo (int? taskworkid, TaskWorkReassignRequest reassignRequest) - { - // verify the required parameter 'taskworkid' is set - if (taskworkid == null) - throw new ApiException(400, "Missing required parameter 'taskworkid' when calling TaskWorkApi->TaskWorkReassignTaskById"); - // verify the required parameter 'reassignRequest' is set - if (reassignRequest == null) - throw new ApiException(400, "Missing required parameter 'reassignRequest' when calling TaskWorkApi->TaskWorkReassignTaskById"); - - var localVarPath = "/api/TaskWork/reassign/{taskworkid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkid != null) localVarPathParams.Add("taskworkid", this.Configuration.ApiClient.ParameterToString(taskworkid)); // path parameter - if (reassignRequest != null && reassignRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(reassignRequest); // http body (model) parameter - } - else - { - localVarPostBody = reassignRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkReassignTaskById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// List<UserCompleteDTO> - public List TaskWorkReassignUsersTaskById (int? taskworkid) - { - ApiResponse> localVarResponse = TaskWorkReassignUsersTaskByIdWithHttpInfo(taskworkid); - return localVarResponse.Data; - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of List<UserCompleteDTO> - public ApiResponse< List > TaskWorkReassignUsersTaskByIdWithHttpInfo (int? taskworkid) - { - // verify the required parameter 'taskworkid' is set - if (taskworkid == null) - throw new ApiException(400, "Missing required parameter 'taskworkid' when calling TaskWorkApi->TaskWorkReassignUsersTaskById"); - - var localVarPath = "/api/TaskWork/reassignusers/{taskworkid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkid != null) localVarPathParams.Add("taskworkid", this.Configuration.ApiClient.ParameterToString(taskworkid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkReassignUsersTaskById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of List<UserCompleteDTO> - public async System.Threading.Tasks.Task> TaskWorkReassignUsersTaskByIdAsync (int? taskworkid) - { - ApiResponse> localVarResponse = await TaskWorkReassignUsersTaskByIdAsyncWithHttpInfo(taskworkid); - return localVarResponse.Data; - - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (List<UserCompleteDTO>) - public async System.Threading.Tasks.Task>> TaskWorkReassignUsersTaskByIdAsyncWithHttpInfo (int? taskworkid) - { - // verify the required parameter 'taskworkid' is set - if (taskworkid == null) - throw new ApiException(400, "Missing required parameter 'taskworkid' when calling TaskWorkApi->TaskWorkReassignUsersTaskById"); - - var localVarPath = "/api/TaskWork/reassignusers/{taskworkid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkid != null) localVarPathParams.Add("taskworkid", this.Configuration.ApiClient.ParameterToString(taskworkid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkReassignUsersTaskById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// - public void TaskWorkSetProfileForTaskWorkBySelectionDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers) - { - TaskWorkSetProfileForTaskWorkBySelectionDocumentOperationWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, docnumbers); - } - - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// ApiResponse of Object(void) - public ApiResponse TaskWorkSetProfileForTaskWorkBySelectionDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkBySelectionDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkBySelectionDocumentOperation"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkBySelectionDocumentOperation"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/byselection"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkSetProfileForTaskWorkBySelectionDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// Task of void - public async System.Threading.Tasks.Task TaskWorkSetProfileForTaskWorkBySelectionDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers) - { - await TaskWorkSetProfileForTaskWorkBySelectionDocumentOperationAsyncWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, docnumbers); - - } - - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkSetProfileForTaskWorkBySelectionDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkBySelectionDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkBySelectionDocumentOperation"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkBySelectionDocumentOperation"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/byselection"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkSetProfileForTaskWorkBySelectionDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ProfileResultDTO - public ProfileResultDTO TaskWorkSetProfileForTaskWorkMaskDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = TaskWorkSetProfileForTaskWorkMaskDocumentOperationWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, profile); - return localVarResponse.Data; - } - - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ApiResponse of ProfileResultDTO - public ApiResponse< ProfileResultDTO > TaskWorkSetProfileForTaskWorkMaskDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkMaskDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkMaskDocumentOperation"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/bymask"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkSetProfileForTaskWorkMaskDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ProfileResultDTO - public async System.Threading.Tasks.Task TaskWorkSetProfileForTaskWorkMaskDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = await TaskWorkSetProfileForTaskWorkMaskDocumentOperationAsyncWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, profile); - return localVarResponse.Data; - - } - - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - public async System.Threading.Tasks.Task> TaskWorkSetProfileForTaskWorkMaskDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkMaskDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkMaskDocumentOperation"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/bymask"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkSetProfileForTaskWorkMaskDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ProfileResultDTO - public ProfileResultDTO TaskWorkSetProfileForTaskWorkModelDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = TaskWorkSetProfileForTaskWorkModelDocumentOperationWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, profile); - return localVarResponse.Data; - } - - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ApiResponse of ProfileResultDTO - public ApiResponse< ProfileResultDTO > TaskWorkSetProfileForTaskWorkModelDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkModelDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkModelDocumentOperation"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/bymodel"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkSetProfileForTaskWorkModelDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ProfileResultDTO - public async System.Threading.Tasks.Task TaskWorkSetProfileForTaskWorkModelDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = await TaskWorkSetProfileForTaskWorkModelDocumentOperationAsyncWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, profile); - return localVarResponse.Data; - - } - - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - public async System.Threading.Tasks.Task> TaskWorkSetProfileForTaskWorkModelDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkModelDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkModelDocumentOperation"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/bymodel"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkSetProfileForTaskWorkModelDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ProfileResultDTO - public ProfileResultDTO TaskWorkSetProfileForTaskWorkStandardDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = TaskWorkSetProfileForTaskWorkStandardDocumentOperationWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, profile); - return localVarResponse.Data; - } - - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ApiResponse of ProfileResultDTO - public ApiResponse< ProfileResultDTO > TaskWorkSetProfileForTaskWorkStandardDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkStandardDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkStandardDocumentOperation"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/bystandard"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkSetProfileForTaskWorkStandardDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ProfileResultDTO - public async System.Threading.Tasks.Task TaskWorkSetProfileForTaskWorkStandardDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = await TaskWorkSetProfileForTaskWorkStandardDocumentOperationAsyncWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, profile); - return localVarResponse.Data; - - } - - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - public async System.Threading.Tasks.Task> TaskWorkSetProfileForTaskWorkStandardDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkStandardDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkApi->TaskWorkSetProfileForTaskWorkStandardDocumentOperation"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/bystandard"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkSetProfileForTaskWorkStandardDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call sets the tasks priority - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// int? - public int? TaskWorkSetTaskPriority (List taskIds, int? priority) - { - ApiResponse localVarResponse = TaskWorkSetTaskPriorityWithHttpInfo(taskIds, priority); - return localVarResponse.Data; - } - - /// - /// This call sets the tasks priority - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// ApiResponse of int? - public ApiResponse< int? > TaskWorkSetTaskPriorityWithHttpInfo (List taskIds, int? priority) - { - // verify the required parameter 'taskIds' is set - if (taskIds == null) - throw new ApiException(400, "Missing required parameter 'taskIds' when calling TaskWorkApi->TaskWorkSetTaskPriority"); - // verify the required parameter 'priority' is set - if (priority == null) - throw new ApiException(400, "Missing required parameter 'priority' when calling TaskWorkApi->TaskWorkSetTaskPriority"); - - var localVarPath = "/api/TaskWork/priority/{priority}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (priority != null) localVarPathParams.Add("priority", this.Configuration.ApiClient.ParameterToString(priority)); // path parameter - if (taskIds != null && taskIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskIds); // http body (model) parameter - } - else - { - localVarPostBody = taskIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkSetTaskPriority", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call sets the tasks priority - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// Task of int? - public async System.Threading.Tasks.Task TaskWorkSetTaskPriorityAsync (List taskIds, int? priority) - { - ApiResponse localVarResponse = await TaskWorkSetTaskPriorityAsyncWithHttpInfo(taskIds, priority); - return localVarResponse.Data; - - } - - /// - /// This call sets the tasks priority - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// Task of ApiResponse (int?) - public async System.Threading.Tasks.Task> TaskWorkSetTaskPriorityAsyncWithHttpInfo (List taskIds, int? priority) - { - // verify the required parameter 'taskIds' is set - if (taskIds == null) - throw new ApiException(400, "Missing required parameter 'taskIds' when calling TaskWorkApi->TaskWorkSetTaskPriority"); - // verify the required parameter 'priority' is set - if (priority == null) - throw new ApiException(400, "Missing required parameter 'priority' when calling TaskWorkApi->TaskWorkSetTaskPriority"); - - var localVarPath = "/api/TaskWork/priority/{priority}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (priority != null) localVarPathParams.Add("priority", this.Configuration.ApiClient.ParameterToString(priority)); // path parameter - if (taskIds != null && taskIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskIds); // http body (model) parameter - } - else - { - localVarPostBody = taskIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkSetTaskPriority", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call sets the task as read - /// - /// Thrown when fails to make API call - /// Task Identifier - /// int? - public int? TaskWorkSetTaskRead (List taskid) - { - ApiResponse localVarResponse = TaskWorkSetTaskReadWithHttpInfo(taskid); - return localVarResponse.Data; - } - - /// - /// This call sets the task as read - /// - /// Thrown when fails to make API call - /// Task Identifier - /// ApiResponse of int? - public ApiResponse< int? > TaskWorkSetTaskReadWithHttpInfo (List taskid) - { - // verify the required parameter 'taskid' is set - if (taskid == null) - throw new ApiException(400, "Missing required parameter 'taskid' when calling TaskWorkApi->TaskWorkSetTaskRead"); - - var localVarPath = "/api/TaskWork/read"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskid != null && taskid.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskid); // http body (model) parameter - } - else - { - localVarPostBody = taskid; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkSetTaskRead", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call sets the task as read - /// - /// Thrown when fails to make API call - /// Task Identifier - /// Task of int? - public async System.Threading.Tasks.Task TaskWorkSetTaskReadAsync (List taskid) - { - ApiResponse localVarResponse = await TaskWorkSetTaskReadAsyncWithHttpInfo(taskid); - return localVarResponse.Data; - - } - - /// - /// This call sets the task as read - /// - /// Thrown when fails to make API call - /// Task Identifier - /// Task of ApiResponse (int?) - public async System.Threading.Tasks.Task> TaskWorkSetTaskReadAsyncWithHttpInfo (List taskid) - { - // verify the required parameter 'taskid' is set - if (taskid == null) - throw new ApiException(400, "Missing required parameter 'taskid' when calling TaskWorkApi->TaskWorkSetTaskRead"); - - var localVarPath = "/api/TaskWork/read"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskid != null && taskid.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskid); // http body (model) parameter - } - else - { - localVarPostBody = taskid; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkSetTaskRead", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call sets the tasks as unread - /// - /// Thrown when fails to make API call - /// List of task identifier - /// int? - public int? TaskWorkSetTaskUnRead (List taskIds) - { - ApiResponse localVarResponse = TaskWorkSetTaskUnReadWithHttpInfo(taskIds); - return localVarResponse.Data; - } - - /// - /// This call sets the tasks as unread - /// - /// Thrown when fails to make API call - /// List of task identifier - /// ApiResponse of int? - public ApiResponse< int? > TaskWorkSetTaskUnReadWithHttpInfo (List taskIds) - { - // verify the required parameter 'taskIds' is set - if (taskIds == null) - throw new ApiException(400, "Missing required parameter 'taskIds' when calling TaskWorkApi->TaskWorkSetTaskUnRead"); - - var localVarPath = "/api/TaskWork/unread"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskIds != null && taskIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskIds); // http body (model) parameter - } - else - { - localVarPostBody = taskIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkSetTaskUnRead", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call sets the tasks as unread - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Task of int? - public async System.Threading.Tasks.Task TaskWorkSetTaskUnReadAsync (List taskIds) - { - ApiResponse localVarResponse = await TaskWorkSetTaskUnReadAsyncWithHttpInfo(taskIds); - return localVarResponse.Data; - - } - - /// - /// This call sets the tasks as unread - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Task of ApiResponse (int?) - public async System.Threading.Tasks.Task> TaskWorkSetTaskUnReadAsyncWithHttpInfo (List taskIds) - { - // verify the required parameter 'taskIds' is set - if (taskIds == null) - throw new ApiException(400, "Missing required parameter 'taskIds' when calling TaskWorkApi->TaskWorkSetTaskUnRead"); - - var localVarPath = "/api/TaskWork/unread"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskIds != null && taskIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskIds); // http body (model) parameter - } - else - { - localVarPostBody = taskIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkSetTaskUnRead", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call takes charge of a taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// - public void TaskWorkTaskWorkTakeCharge (int? taskWorkId) - { - TaskWorkTaskWorkTakeChargeWithHttpInfo(taskWorkId); - } - - /// - /// This call takes charge of a taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of Object(void) - public ApiResponse TaskWorkTaskWorkTakeChargeWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkTaskWorkTakeCharge"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/TakeCharge"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkTaskWorkTakeCharge", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call takes charge of a taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of void - public async System.Threading.Tasks.Task TaskWorkTaskWorkTakeChargeAsync (int? taskWorkId) - { - await TaskWorkTaskWorkTakeChargeAsyncWithHttpInfo(taskWorkId); - - } - - /// - /// This call takes charge of a taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkTaskWorkTakeChargeAsyncWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkApi->TaskWorkTaskWorkTakeCharge"); - - var localVarPath = "/api/TaskWork/{taskWorkId}/TakeCharge"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkTaskWorkTakeCharge", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkAttachmentsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkAttachmentsApi.cs deleted file mode 100644 index bc30038..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkAttachmentsApi.cs +++ /dev/null @@ -1,1093 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITaskWorkAttachmentsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call adds a new external attachment to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// - void TaskWorkAttachmentsAddNewExternalAttachments (string bufferId, int? taskWorkId); - - /// - /// This call adds a new external attachment to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// ApiResponse of Object(void) - ApiResponse TaskWorkAttachmentsAddNewExternalAttachmentsWithHttpInfo (string bufferId, int? taskWorkId); - /// - /// This call adds a new internal attachments to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// - void TaskWorkAttachmentsAddNewInternalAttachments (int? docnumber, int? taskWorkId); - - /// - /// This call adds a new internal attachments to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// ApiResponse of Object(void) - ApiResponse TaskWorkAttachmentsAddNewInternalAttachmentsWithHttpInfo (int? docnumber, int? taskWorkId); - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// - void TaskWorkAttachmentsChangeToSendForTaskAttachments (int? attachmentId, bool? tosend); - - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// ApiResponse of Object(void) - ApiResponse TaskWorkAttachmentsChangeToSendForTaskAttachmentsWithHttpInfo (int? attachmentId, bool? tosend); - /// - /// This call deletes a process attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// - void TaskWorkAttachmentsDeleteTaskAttachementById (int? attachmentId); - - /// - /// This call deletes a process attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// ApiResponse of Object(void) - ApiResponse TaskWorkAttachmentsDeleteTaskAttachementByIdWithHttpInfo (int? attachmentId); - /// - /// This call returns all attachments of a process - /// - /// - /// This method is deprecated. Use api/v2/TaskAttachments/byprocessid/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<RowSearchResult> - List TaskWorkAttachmentsGetAttachmentsByProcessId (int? processId); - - /// - /// This call returns all attachments of a process - /// - /// - /// This method is deprecated. Use api/v2/TaskAttachments/byprocessid/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<RowSearchResult> - ApiResponse> TaskWorkAttachmentsGetAttachmentsByProcessIdWithHttpInfo (int? processId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call adds a new external attachment to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// Task of void - System.Threading.Tasks.Task TaskWorkAttachmentsAddNewExternalAttachmentsAsync (string bufferId, int? taskWorkId); - - /// - /// This call adds a new external attachment to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkAttachmentsAddNewExternalAttachmentsAsyncWithHttpInfo (string bufferId, int? taskWorkId); - /// - /// This call adds a new internal attachments to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// Task of void - System.Threading.Tasks.Task TaskWorkAttachmentsAddNewInternalAttachmentsAsync (int? docnumber, int? taskWorkId); - - /// - /// This call adds a new internal attachments to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkAttachmentsAddNewInternalAttachmentsAsyncWithHttpInfo (int? docnumber, int? taskWorkId); - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// Task of void - System.Threading.Tasks.Task TaskWorkAttachmentsChangeToSendForTaskAttachmentsAsync (int? attachmentId, bool? tosend); - - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkAttachmentsChangeToSendForTaskAttachmentsAsyncWithHttpInfo (int? attachmentId, bool? tosend); - /// - /// This call deletes a process attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Task of void - System.Threading.Tasks.Task TaskWorkAttachmentsDeleteTaskAttachementByIdAsync (int? attachmentId); - - /// - /// This call deletes a process attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkAttachmentsDeleteTaskAttachementByIdAsyncWithHttpInfo (int? attachmentId); - /// - /// This call returns all attachments of a process - /// - /// - /// This method is deprecated. Use api/v2/TaskAttachments/byprocessid/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> TaskWorkAttachmentsGetAttachmentsByProcessIdAsync (int? processId); - - /// - /// This call returns all attachments of a process - /// - /// - /// This method is deprecated. Use api/v2/TaskAttachments/byprocessid/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> TaskWorkAttachmentsGetAttachmentsByProcessIdAsyncWithHttpInfo (int? processId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TaskWorkAttachmentsApi : ITaskWorkAttachmentsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TaskWorkAttachmentsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TaskWorkAttachmentsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call adds a new external attachment to a process - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// - public void TaskWorkAttachmentsAddNewExternalAttachments (string bufferId, int? taskWorkId) - { - TaskWorkAttachmentsAddNewExternalAttachmentsWithHttpInfo(bufferId, taskWorkId); - } - - /// - /// This call adds a new external attachment to a process - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// ApiResponse of Object(void) - public ApiResponse TaskWorkAttachmentsAddNewExternalAttachmentsWithHttpInfo (string bufferId, int? taskWorkId) - { - // verify the required parameter 'bufferId' is set - if (bufferId == null) - throw new ApiException(400, "Missing required parameter 'bufferId' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsAddNewExternalAttachments"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsAddNewExternalAttachments"); - - var localVarPath = "/api/TaskAttachments/bytaskwork/{taskWorkId}/external/{bufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bufferId != null) localVarPathParams.Add("bufferId", this.Configuration.ApiClient.ParameterToString(bufferId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsAddNewExternalAttachments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds a new external attachment to a process - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// Task of void - public async System.Threading.Tasks.Task TaskWorkAttachmentsAddNewExternalAttachmentsAsync (string bufferId, int? taskWorkId) - { - await TaskWorkAttachmentsAddNewExternalAttachmentsAsyncWithHttpInfo(bufferId, taskWorkId); - - } - - /// - /// This call adds a new external attachment to a process - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkAttachmentsAddNewExternalAttachmentsAsyncWithHttpInfo (string bufferId, int? taskWorkId) - { - // verify the required parameter 'bufferId' is set - if (bufferId == null) - throw new ApiException(400, "Missing required parameter 'bufferId' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsAddNewExternalAttachments"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsAddNewExternalAttachments"); - - var localVarPath = "/api/TaskAttachments/bytaskwork/{taskWorkId}/external/{bufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bufferId != null) localVarPathParams.Add("bufferId", this.Configuration.ApiClient.ParameterToString(bufferId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsAddNewExternalAttachments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds a new internal attachments to a process - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// - public void TaskWorkAttachmentsAddNewInternalAttachments (int? docnumber, int? taskWorkId) - { - TaskWorkAttachmentsAddNewInternalAttachmentsWithHttpInfo(docnumber, taskWorkId); - } - - /// - /// This call adds a new internal attachments to a process - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// ApiResponse of Object(void) - public ApiResponse TaskWorkAttachmentsAddNewInternalAttachmentsWithHttpInfo (int? docnumber, int? taskWorkId) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsAddNewInternalAttachments"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsAddNewInternalAttachments"); - - var localVarPath = "/api/TaskAttachments/bytaskwork/{taskWorkId}/internal/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsAddNewInternalAttachments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds a new internal attachments to a process - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// Task of void - public async System.Threading.Tasks.Task TaskWorkAttachmentsAddNewInternalAttachmentsAsync (int? docnumber, int? taskWorkId) - { - await TaskWorkAttachmentsAddNewInternalAttachmentsAsyncWithHttpInfo(docnumber, taskWorkId); - - } - - /// - /// This call adds a new internal attachments to a process - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkAttachmentsAddNewInternalAttachmentsAsyncWithHttpInfo (int? docnumber, int? taskWorkId) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsAddNewInternalAttachments"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsAddNewInternalAttachments"); - - var localVarPath = "/api/TaskAttachments/bytaskwork/{taskWorkId}/internal/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsAddNewInternalAttachments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// - public void TaskWorkAttachmentsChangeToSendForTaskAttachments (int? attachmentId, bool? tosend) - { - TaskWorkAttachmentsChangeToSendForTaskAttachmentsWithHttpInfo(attachmentId, tosend); - } - - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// ApiResponse of Object(void) - public ApiResponse TaskWorkAttachmentsChangeToSendForTaskAttachmentsWithHttpInfo (int? attachmentId, bool? tosend) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsChangeToSendForTaskAttachments"); - // verify the required parameter 'tosend' is set - if (tosend == null) - throw new ApiException(400, "Missing required parameter 'tosend' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsChangeToSendForTaskAttachments"); - - var localVarPath = "/api/TaskAttachments/{attachmentId}/tosend/{tosend}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - if (tosend != null) localVarPathParams.Add("tosend", this.Configuration.ApiClient.ParameterToString(tosend)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsChangeToSendForTaskAttachments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// Task of void - public async System.Threading.Tasks.Task TaskWorkAttachmentsChangeToSendForTaskAttachmentsAsync (int? attachmentId, bool? tosend) - { - await TaskWorkAttachmentsChangeToSendForTaskAttachmentsAsyncWithHttpInfo(attachmentId, tosend); - - } - - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkAttachmentsChangeToSendForTaskAttachmentsAsyncWithHttpInfo (int? attachmentId, bool? tosend) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsChangeToSendForTaskAttachments"); - // verify the required parameter 'tosend' is set - if (tosend == null) - throw new ApiException(400, "Missing required parameter 'tosend' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsChangeToSendForTaskAttachments"); - - var localVarPath = "/api/TaskAttachments/{attachmentId}/tosend/{tosend}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - if (tosend != null) localVarPathParams.Add("tosend", this.Configuration.ApiClient.ParameterToString(tosend)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsChangeToSendForTaskAttachments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a process attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// - public void TaskWorkAttachmentsDeleteTaskAttachementById (int? attachmentId) - { - TaskWorkAttachmentsDeleteTaskAttachementByIdWithHttpInfo(attachmentId); - } - - /// - /// This call deletes a process attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// ApiResponse of Object(void) - public ApiResponse TaskWorkAttachmentsDeleteTaskAttachementByIdWithHttpInfo (int? attachmentId) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsDeleteTaskAttachementById"); - - var localVarPath = "/api/TaskAttachments/{attachmentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsDeleteTaskAttachementById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a process attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Task of void - public async System.Threading.Tasks.Task TaskWorkAttachmentsDeleteTaskAttachementByIdAsync (int? attachmentId) - { - await TaskWorkAttachmentsDeleteTaskAttachementByIdAsyncWithHttpInfo(attachmentId); - - } - - /// - /// This call deletes a process attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkAttachmentsDeleteTaskAttachementByIdAsyncWithHttpInfo (int? attachmentId) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsDeleteTaskAttachementById"); - - var localVarPath = "/api/TaskAttachments/{attachmentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsDeleteTaskAttachementById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all attachments of a process This method is deprecated. Use api/v2/TaskAttachments/byprocessid/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<RowSearchResult> - public List TaskWorkAttachmentsGetAttachmentsByProcessId (int? processId) - { - ApiResponse> localVarResponse = TaskWorkAttachmentsGetAttachmentsByProcessIdWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// This call returns all attachments of a process This method is deprecated. Use api/v2/TaskAttachments/byprocessid/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > TaskWorkAttachmentsGetAttachmentsByProcessIdWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsGetAttachmentsByProcessId"); - - var localVarPath = "/api/TaskAttachments/byprocessid/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsGetAttachmentsByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all attachments of a process This method is deprecated. Use api/v2/TaskAttachments/byprocessid/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> TaskWorkAttachmentsGetAttachmentsByProcessIdAsync (int? processId) - { - ApiResponse> localVarResponse = await TaskWorkAttachmentsGetAttachmentsByProcessIdAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// This call returns all attachments of a process This method is deprecated. Use api/v2/TaskAttachments/byprocessid/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> TaskWorkAttachmentsGetAttachmentsByProcessIdAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkAttachmentsApi->TaskWorkAttachmentsGetAttachmentsByProcessId"); - - var localVarPath = "/api/TaskAttachments/byprocessid/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsGetAttachmentsByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkAttachmentsV2Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkAttachmentsV2Api.cs deleted file mode 100644 index c3b8a8e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkAttachmentsV2Api.cs +++ /dev/null @@ -1,1092 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITaskWorkAttachmentsV2Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call adds a new external attachment to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// - void TaskWorkAttachmentsV2AddNewExternalAttachments (string bufferId, int? taskWorkId); - - /// - /// This call adds a new external attachment to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// ApiResponse of Object(void) - ApiResponse TaskWorkAttachmentsV2AddNewExternalAttachmentsWithHttpInfo (string bufferId, int? taskWorkId); - /// - /// This call adds a new internal attachments to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// - void TaskWorkAttachmentsV2AddNewInternalAttachments (int? docnumber, int? taskWorkId); - - /// - /// This call adds a new internal attachments to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// ApiResponse of Object(void) - ApiResponse TaskWorkAttachmentsV2AddNewInternalAttachmentsWithHttpInfo (int? docnumber, int? taskWorkId); - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// - void TaskWorkAttachmentsV2ChangeToSendForTaskAttachments (int? attachmentId, bool? tosend); - - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// ApiResponse of Object(void) - ApiResponse TaskWorkAttachmentsV2ChangeToSendForTaskAttachmentsWithHttpInfo (int? attachmentId, bool? tosend); - /// - /// This call deletes a process attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// - void TaskWorkAttachmentsV2DeleteTaskAttachementById (int? attachmentId); - - /// - /// This call deletes a process attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// ApiResponse of Object(void) - ApiResponse TaskWorkAttachmentsV2DeleteTaskAttachementByIdWithHttpInfo (int? attachmentId); - /// - /// This call returns all attachments of a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Object - Object TaskWorkAttachmentsV2GetAttachmentsByProcessId (int? processId); - - /// - /// This call returns all attachments of a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of Object - ApiResponse TaskWorkAttachmentsV2GetAttachmentsByProcessIdWithHttpInfo (int? processId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call adds a new external attachment to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// Task of void - System.Threading.Tasks.Task TaskWorkAttachmentsV2AddNewExternalAttachmentsAsync (string bufferId, int? taskWorkId); - - /// - /// This call adds a new external attachment to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkAttachmentsV2AddNewExternalAttachmentsAsyncWithHttpInfo (string bufferId, int? taskWorkId); - /// - /// This call adds a new internal attachments to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// Task of void - System.Threading.Tasks.Task TaskWorkAttachmentsV2AddNewInternalAttachmentsAsync (int? docnumber, int? taskWorkId); - - /// - /// This call adds a new internal attachments to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkAttachmentsV2AddNewInternalAttachmentsAsyncWithHttpInfo (int? docnumber, int? taskWorkId); - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// Task of void - System.Threading.Tasks.Task TaskWorkAttachmentsV2ChangeToSendForTaskAttachmentsAsync (int? attachmentId, bool? tosend); - - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkAttachmentsV2ChangeToSendForTaskAttachmentsAsyncWithHttpInfo (int? attachmentId, bool? tosend); - /// - /// This call deletes a process attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Task of void - System.Threading.Tasks.Task TaskWorkAttachmentsV2DeleteTaskAttachementByIdAsync (int? attachmentId); - - /// - /// This call deletes a process attachment - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkAttachmentsV2DeleteTaskAttachementByIdAsyncWithHttpInfo (int? attachmentId); - /// - /// This call returns all attachments of a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of Object - System.Threading.Tasks.Task TaskWorkAttachmentsV2GetAttachmentsByProcessIdAsync (int? processId); - - /// - /// This call returns all attachments of a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> TaskWorkAttachmentsV2GetAttachmentsByProcessIdAsyncWithHttpInfo (int? processId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TaskWorkAttachmentsV2Api : ITaskWorkAttachmentsV2Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TaskWorkAttachmentsV2Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TaskWorkAttachmentsV2Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call adds a new external attachment to a process - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// - public void TaskWorkAttachmentsV2AddNewExternalAttachments (string bufferId, int? taskWorkId) - { - TaskWorkAttachmentsV2AddNewExternalAttachmentsWithHttpInfo(bufferId, taskWorkId); - } - - /// - /// This call adds a new external attachment to a process - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// ApiResponse of Object(void) - public ApiResponse TaskWorkAttachmentsV2AddNewExternalAttachmentsWithHttpInfo (string bufferId, int? taskWorkId) - { - // verify the required parameter 'bufferId' is set - if (bufferId == null) - throw new ApiException(400, "Missing required parameter 'bufferId' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2AddNewExternalAttachments"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2AddNewExternalAttachments"); - - var localVarPath = "/api/v2/TaskAttachments/bytaskwork/{taskWorkId}/external/{bufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bufferId != null) localVarPathParams.Add("bufferId", this.Configuration.ApiClient.ParameterToString(bufferId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsV2AddNewExternalAttachments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds a new external attachment to a process - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// Task of void - public async System.Threading.Tasks.Task TaskWorkAttachmentsV2AddNewExternalAttachmentsAsync (string bufferId, int? taskWorkId) - { - await TaskWorkAttachmentsV2AddNewExternalAttachmentsAsyncWithHttpInfo(bufferId, taskWorkId); - - } - - /// - /// This call adds a new external attachment to a process - /// - /// Thrown when fails to make API call - /// Identifier of the buffer file - /// Taskwork identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkAttachmentsV2AddNewExternalAttachmentsAsyncWithHttpInfo (string bufferId, int? taskWorkId) - { - // verify the required parameter 'bufferId' is set - if (bufferId == null) - throw new ApiException(400, "Missing required parameter 'bufferId' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2AddNewExternalAttachments"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2AddNewExternalAttachments"); - - var localVarPath = "/api/v2/TaskAttachments/bytaskwork/{taskWorkId}/external/{bufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (bufferId != null) localVarPathParams.Add("bufferId", this.Configuration.ApiClient.ParameterToString(bufferId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsV2AddNewExternalAttachments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds a new internal attachments to a process - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// - public void TaskWorkAttachmentsV2AddNewInternalAttachments (int? docnumber, int? taskWorkId) - { - TaskWorkAttachmentsV2AddNewInternalAttachmentsWithHttpInfo(docnumber, taskWorkId); - } - - /// - /// This call adds a new internal attachments to a process - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// ApiResponse of Object(void) - public ApiResponse TaskWorkAttachmentsV2AddNewInternalAttachmentsWithHttpInfo (int? docnumber, int? taskWorkId) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2AddNewInternalAttachments"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2AddNewInternalAttachments"); - - var localVarPath = "/api/v2/TaskAttachments/bytaskwork/{taskWorkId}/internal/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsV2AddNewInternalAttachments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds a new internal attachments to a process - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// Task of void - public async System.Threading.Tasks.Task TaskWorkAttachmentsV2AddNewInternalAttachmentsAsync (int? docnumber, int? taskWorkId) - { - await TaskWorkAttachmentsV2AddNewInternalAttachmentsAsyncWithHttpInfo(docnumber, taskWorkId); - - } - - /// - /// This call adds a new internal attachments to a process - /// - /// Thrown when fails to make API call - /// Document identifier - /// Taskwork identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkAttachmentsV2AddNewInternalAttachmentsAsyncWithHttpInfo (int? docnumber, int? taskWorkId) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2AddNewInternalAttachments"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2AddNewInternalAttachments"); - - var localVarPath = "/api/v2/TaskAttachments/bytaskwork/{taskWorkId}/internal/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsV2AddNewInternalAttachments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// - public void TaskWorkAttachmentsV2ChangeToSendForTaskAttachments (int? attachmentId, bool? tosend) - { - TaskWorkAttachmentsV2ChangeToSendForTaskAttachmentsWithHttpInfo(attachmentId, tosend); - } - - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// ApiResponse of Object(void) - public ApiResponse TaskWorkAttachmentsV2ChangeToSendForTaskAttachmentsWithHttpInfo (int? attachmentId, bool? tosend) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2ChangeToSendForTaskAttachments"); - // verify the required parameter 'tosend' is set - if (tosend == null) - throw new ApiException(400, "Missing required parameter 'tosend' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2ChangeToSendForTaskAttachments"); - - var localVarPath = "/api/v2/TaskAttachments/{attachmentId}/tosend/{tosend}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - if (tosend != null) localVarPathParams.Add("tosend", this.Configuration.ApiClient.ParameterToString(tosend)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsV2ChangeToSendForTaskAttachments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// Task of void - public async System.Threading.Tasks.Task TaskWorkAttachmentsV2ChangeToSendForTaskAttachmentsAsync (int? attachmentId, bool? tosend) - { - await TaskWorkAttachmentsV2ChangeToSendForTaskAttachmentsAsyncWithHttpInfo(attachmentId, tosend); - - } - - /// - /// this call changes the value of the 'to send' flag for an attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Value of 'to send' flag - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkAttachmentsV2ChangeToSendForTaskAttachmentsAsyncWithHttpInfo (int? attachmentId, bool? tosend) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2ChangeToSendForTaskAttachments"); - // verify the required parameter 'tosend' is set - if (tosend == null) - throw new ApiException(400, "Missing required parameter 'tosend' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2ChangeToSendForTaskAttachments"); - - var localVarPath = "/api/v2/TaskAttachments/{attachmentId}/tosend/{tosend}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - if (tosend != null) localVarPathParams.Add("tosend", this.Configuration.ApiClient.ParameterToString(tosend)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsV2ChangeToSendForTaskAttachments", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a process attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// - public void TaskWorkAttachmentsV2DeleteTaskAttachementById (int? attachmentId) - { - TaskWorkAttachmentsV2DeleteTaskAttachementByIdWithHttpInfo(attachmentId); - } - - /// - /// This call deletes a process attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// ApiResponse of Object(void) - public ApiResponse TaskWorkAttachmentsV2DeleteTaskAttachementByIdWithHttpInfo (int? attachmentId) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2DeleteTaskAttachementById"); - - var localVarPath = "/api/v2/TaskAttachments/{attachmentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsV2DeleteTaskAttachementById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a process attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Task of void - public async System.Threading.Tasks.Task TaskWorkAttachmentsV2DeleteTaskAttachementByIdAsync (int? attachmentId) - { - await TaskWorkAttachmentsV2DeleteTaskAttachementByIdAsyncWithHttpInfo(attachmentId); - - } - - /// - /// This call deletes a process attachment - /// - /// Thrown when fails to make API call - /// Attachment identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkAttachmentsV2DeleteTaskAttachementByIdAsyncWithHttpInfo (int? attachmentId) - { - // verify the required parameter 'attachmentId' is set - if (attachmentId == null) - throw new ApiException(400, "Missing required parameter 'attachmentId' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2DeleteTaskAttachementById"); - - var localVarPath = "/api/v2/TaskAttachments/{attachmentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (attachmentId != null) localVarPathParams.Add("attachmentId", this.Configuration.ApiClient.ParameterToString(attachmentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsV2DeleteTaskAttachementById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all attachments of a process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Object - public Object TaskWorkAttachmentsV2GetAttachmentsByProcessId (int? processId) - { - ApiResponse localVarResponse = TaskWorkAttachmentsV2GetAttachmentsByProcessIdWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// This call returns all attachments of a process - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of Object - public ApiResponse< Object > TaskWorkAttachmentsV2GetAttachmentsByProcessIdWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2GetAttachmentsByProcessId"); - - var localVarPath = "/api/v2/TaskAttachments/byprocessid/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsV2GetAttachmentsByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns all attachments of a process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of Object - public async System.Threading.Tasks.Task TaskWorkAttachmentsV2GetAttachmentsByProcessIdAsync (int? processId) - { - ApiResponse localVarResponse = await TaskWorkAttachmentsV2GetAttachmentsByProcessIdAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// This call returns all attachments of a process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> TaskWorkAttachmentsV2GetAttachmentsByProcessIdAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkAttachmentsV2Api->TaskWorkAttachmentsV2GetAttachmentsByProcessId"); - - var localVarPath = "/api/v2/TaskAttachments/byprocessid/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkAttachmentsV2GetAttachmentsByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkDocumentsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkDocumentsApi.cs deleted file mode 100644 index 1546ebf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkDocumentsApi.cs +++ /dev/null @@ -1,336 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITaskWorkDocumentsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the bufferId for document preview - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// string - string TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferId (int? processdocId, int? taskworkId); - - /// - /// This call returns the bufferId for document preview - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of string - ApiResponse TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferIdWithHttpInfo (int? processdocId, int? taskworkId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the bufferId for document preview - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of string - System.Threading.Tasks.Task TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferIdAsync (int? processdocId, int? taskworkId); - - /// - /// This call returns the bufferId for document preview - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferIdAsyncWithHttpInfo (int? processdocId, int? taskworkId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TaskWorkDocumentsApi : ITaskWorkDocumentsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TaskWorkDocumentsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TaskWorkDocumentsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the bufferId for document preview - /// - /// Thrown when fails to make API call - /// - /// - /// string - public string TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferId (int? processdocId, int? taskworkId) - { - ApiResponse localVarResponse = TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferIdWithHttpInfo(processdocId, taskworkId); - return localVarResponse.Data; - } - - /// - /// This call returns the bufferId for document preview - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of string - public ApiResponse< string > TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferIdWithHttpInfo (int? processdocId, int? taskworkId) - { - // verify the required parameter 'processdocId' is set - if (processdocId == null) - throw new ApiException(400, "Missing required parameter 'processdocId' when calling TaskWorkDocumentsApi->TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferId"); - // verify the required parameter 'taskworkId' is set - if (taskworkId == null) - throw new ApiException(400, "Missing required parameter 'taskworkId' when calling TaskWorkDocumentsApi->TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferId"); - - var localVarPath = "/api/TaskWorkDocuments/documentPreviewBufferId"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processdocId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "processdocId", processdocId)); // query parameter - if (taskworkId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "taskworkId", taskworkId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call returns the bufferId for document preview - /// - /// Thrown when fails to make API call - /// - /// - /// Task of string - public async System.Threading.Tasks.Task TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferIdAsync (int? processdocId, int? taskworkId) - { - ApiResponse localVarResponse = await TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferIdAsyncWithHttpInfo(processdocId, taskworkId); - return localVarResponse.Data; - - } - - /// - /// This call returns the bufferId for document preview - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferIdAsyncWithHttpInfo (int? processdocId, int? taskworkId) - { - // verify the required parameter 'processdocId' is set - if (processdocId == null) - throw new ApiException(400, "Missing required parameter 'processdocId' when calling TaskWorkDocumentsApi->TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferId"); - // verify the required parameter 'taskworkId' is set - if (taskworkId == null) - throw new ApiException(400, "Missing required parameter 'taskworkId' when calling TaskWorkDocumentsApi->TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferId"); - - var localVarPath = "/api/TaskWorkDocuments/documentPreviewBufferId"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processdocId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "processdocId", processdocId)); // query parameter - if (taskworkId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "taskworkId", taskworkId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkDocumentsGetTaskWorkDocumentPreviewBufferId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkHistoryApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkHistoryApi.cs deleted file mode 100644 index 5f99e4a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkHistoryApi.cs +++ /dev/null @@ -1,321 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITaskWorkHistoryApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the datasource of a process history - /// - /// - /// This method is deprecated. Use api/v2/TaskHistory/byProcessId/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<RowSearchResult> - List TaskWorkHistoryGetHistoryByProcessId (int? processId); - - /// - /// This call returns the datasource of a process history - /// - /// - /// This method is deprecated. Use api/v2/TaskHistory/byProcessId/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<RowSearchResult> - ApiResponse> TaskWorkHistoryGetHistoryByProcessIdWithHttpInfo (int? processId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the datasource of a process history - /// - /// - /// This method is deprecated. Use api/v2/TaskHistory/byProcessId/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> TaskWorkHistoryGetHistoryByProcessIdAsync (int? processId); - - /// - /// This call returns the datasource of a process history - /// - /// - /// This method is deprecated. Use api/v2/TaskHistory/byProcessId/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> TaskWorkHistoryGetHistoryByProcessIdAsyncWithHttpInfo (int? processId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TaskWorkHistoryApi : ITaskWorkHistoryApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TaskWorkHistoryApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TaskWorkHistoryApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the datasource of a process history This method is deprecated. Use api/v2/TaskHistory/byProcessId/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<RowSearchResult> - public List TaskWorkHistoryGetHistoryByProcessId (int? processId) - { - ApiResponse> localVarResponse = TaskWorkHistoryGetHistoryByProcessIdWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// This call returns the datasource of a process history This method is deprecated. Use api/v2/TaskHistory/byProcessId/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > TaskWorkHistoryGetHistoryByProcessIdWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkHistoryApi->TaskWorkHistoryGetHistoryByProcessId"); - - var localVarPath = "/api/TaskHistory/byProcessId/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkHistoryGetHistoryByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the datasource of a process history This method is deprecated. Use api/v2/TaskHistory/byProcessId/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> TaskWorkHistoryGetHistoryByProcessIdAsync (int? processId) - { - ApiResponse> localVarResponse = await TaskWorkHistoryGetHistoryByProcessIdAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// This call returns the datasource of a process history This method is deprecated. Use api/v2/TaskHistory/byProcessId/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> TaskWorkHistoryGetHistoryByProcessIdAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkHistoryApi->TaskWorkHistoryGetHistoryByProcessId"); - - var localVarPath = "/api/TaskHistory/byProcessId/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkHistoryGetHistoryByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkHistoryV2Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkHistoryV2Api.cs deleted file mode 100644 index dd408af..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkHistoryV2Api.cs +++ /dev/null @@ -1,320 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITaskWorkHistoryV2Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the datasource of a process history. This call could not be compatible with some programming language, in this case use the call api/TaskHistory/byProcessId/{processId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Object - Object TaskWorkHistoryV2GetHistoryByProcessId (int? processId); - - /// - /// This call returns the datasource of a process history. This call could not be compatible with some programming language, in this case use the call api/TaskHistory/byProcessId/{processId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of Object - ApiResponse TaskWorkHistoryV2GetHistoryByProcessIdWithHttpInfo (int? processId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the datasource of a process history. This call could not be compatible with some programming language, in this case use the call api/TaskHistory/byProcessId/{processId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of Object - System.Threading.Tasks.Task TaskWorkHistoryV2GetHistoryByProcessIdAsync (int? processId); - - /// - /// This call returns the datasource of a process history. This call could not be compatible with some programming language, in this case use the call api/TaskHistory/byProcessId/{processId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> TaskWorkHistoryV2GetHistoryByProcessIdAsyncWithHttpInfo (int? processId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TaskWorkHistoryV2Api : ITaskWorkHistoryV2Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TaskWorkHistoryV2Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TaskWorkHistoryV2Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the datasource of a process history. This call could not be compatible with some programming language, in this case use the call api/TaskHistory/byProcessId/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Object - public Object TaskWorkHistoryV2GetHistoryByProcessId (int? processId) - { - ApiResponse localVarResponse = TaskWorkHistoryV2GetHistoryByProcessIdWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// This call returns the datasource of a process history. This call could not be compatible with some programming language, in this case use the call api/TaskHistory/byProcessId/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of Object - public ApiResponse< Object > TaskWorkHistoryV2GetHistoryByProcessIdWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkHistoryV2Api->TaskWorkHistoryV2GetHistoryByProcessId"); - - var localVarPath = "/api/v2/TaskHistory/byProcessId/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkHistoryV2GetHistoryByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the datasource of a process history. This call could not be compatible with some programming language, in this case use the call api/TaskHistory/byProcessId/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of Object - public async System.Threading.Tasks.Task TaskWorkHistoryV2GetHistoryByProcessIdAsync (int? processId) - { - ApiResponse localVarResponse = await TaskWorkHistoryV2GetHistoryByProcessIdAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// This call returns the datasource of a process history. This call could not be compatible with some programming language, in this case use the call api/TaskHistory/byProcessId/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> TaskWorkHistoryV2GetHistoryByProcessIdAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkHistoryV2Api->TaskWorkHistoryV2GetHistoryByProcessId"); - - var localVarPath = "/api/v2/TaskHistory/byProcessId/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkHistoryV2GetHistoryByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkInstructionsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkInstructionsApi.cs deleted file mode 100644 index 40187c9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkInstructionsApi.cs +++ /dev/null @@ -1,321 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITaskWorkInstructionsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the instruction of taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// TaskWorkInstructionDTO - TaskWorkInstructionDTO TaskWorkInstructionsGetInstructionsByTaskWorkId (int? taskWorkId); - - /// - /// This call returns the instruction of taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of TaskWorkInstructionDTO - ApiResponse TaskWorkInstructionsGetInstructionsByTaskWorkIdWithHttpInfo (int? taskWorkId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the instruction of taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of TaskWorkInstructionDTO - System.Threading.Tasks.Task TaskWorkInstructionsGetInstructionsByTaskWorkIdAsync (int? taskWorkId); - - /// - /// This call returns the instruction of taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (TaskWorkInstructionDTO) - System.Threading.Tasks.Task> TaskWorkInstructionsGetInstructionsByTaskWorkIdAsyncWithHttpInfo (int? taskWorkId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TaskWorkInstructionsApi : ITaskWorkInstructionsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TaskWorkInstructionsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TaskWorkInstructionsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the instruction of taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// TaskWorkInstructionDTO - public TaskWorkInstructionDTO TaskWorkInstructionsGetInstructionsByTaskWorkId (int? taskWorkId) - { - ApiResponse localVarResponse = TaskWorkInstructionsGetInstructionsByTaskWorkIdWithHttpInfo(taskWorkId); - return localVarResponse.Data; - } - - /// - /// This call returns the instruction of taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of TaskWorkInstructionDTO - public ApiResponse< TaskWorkInstructionDTO > TaskWorkInstructionsGetInstructionsByTaskWorkIdWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkInstructionsApi->TaskWorkInstructionsGetInstructionsByTaskWorkId"); - - var localVarPath = "/api/TaskInstructions/byTaskWorkId/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkInstructionsGetInstructionsByTaskWorkId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkInstructionDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkInstructionDTO))); - } - - /// - /// This call returns the instruction of taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of TaskWorkInstructionDTO - public async System.Threading.Tasks.Task TaskWorkInstructionsGetInstructionsByTaskWorkIdAsync (int? taskWorkId) - { - ApiResponse localVarResponse = await TaskWorkInstructionsGetInstructionsByTaskWorkIdAsyncWithHttpInfo(taskWorkId); - return localVarResponse.Data; - - } - - /// - /// This call returns the instruction of taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (TaskWorkInstructionDTO) - public async System.Threading.Tasks.Task> TaskWorkInstructionsGetInstructionsByTaskWorkIdAsyncWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkInstructionsApi->TaskWorkInstructionsGetInstructionsByTaskWorkId"); - - var localVarPath = "/api/TaskInstructions/byTaskWorkId/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkInstructionsGetInstructionsByTaskWorkId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkInstructionDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkInstructionDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkNotesApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkNotesApi.cs deleted file mode 100644 index 1de9b99..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkNotesApi.cs +++ /dev/null @@ -1,964 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITaskWorkNotesApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// - void TaskWorkNotesDeleteNote (int? taskWorkNoteId); - - /// - /// This call deletes a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// ApiResponse of Object(void) - ApiResponse TaskWorkNotesDeleteNoteWithHttpInfo (int? taskWorkNoteId); - /// - /// This call returns all notes in a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<TaskWorkNoteDTO> - List TaskWorkNotesGetByProcessId (int? processId); - - /// - /// This call returns all notes in a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<TaskWorkNoteDTO> - ApiResponse> TaskWorkNotesGetByProcessIdWithHttpInfo (int? processId); - /// - /// This call adds a new note to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to add - /// TaskWorkNoteDTO - TaskWorkNoteDTO TaskWorkNotesInsertNewNote (int? taskWorkId, TaskWorkNoteDTO note); - - /// - /// This call adds a new note to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to add - /// ApiResponse of TaskWorkNoteDTO - ApiResponse TaskWorkNotesInsertNewNoteWithHttpInfo (int? taskWorkId, TaskWorkNoteDTO note); - /// - /// This call updates a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to update - /// TaskWorkNoteDTO - TaskWorkNoteDTO TaskWorkNotesUpdateNote (int? taskWorkNoteId, TaskWorkNoteDTO note); - - /// - /// This call updates a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to update - /// ApiResponse of TaskWorkNoteDTO - ApiResponse TaskWorkNotesUpdateNoteWithHttpInfo (int? taskWorkNoteId, TaskWorkNoteDTO note); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// Task of void - System.Threading.Tasks.Task TaskWorkNotesDeleteNoteAsync (int? taskWorkNoteId); - - /// - /// This call deletes a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Note identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkNotesDeleteNoteAsyncWithHttpInfo (int? taskWorkNoteId); - /// - /// This call returns all notes in a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<TaskWorkNoteDTO> - System.Threading.Tasks.Task> TaskWorkNotesGetByProcessIdAsync (int? processId); - - /// - /// This call returns all notes in a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<TaskWorkNoteDTO>) - System.Threading.Tasks.Task>> TaskWorkNotesGetByProcessIdAsyncWithHttpInfo (int? processId); - /// - /// This call adds a new note to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to add - /// Task of TaskWorkNoteDTO - System.Threading.Tasks.Task TaskWorkNotesInsertNewNoteAsync (int? taskWorkId, TaskWorkNoteDTO note); - - /// - /// This call adds a new note to a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to add - /// Task of ApiResponse (TaskWorkNoteDTO) - System.Threading.Tasks.Task> TaskWorkNotesInsertNewNoteAsyncWithHttpInfo (int? taskWorkId, TaskWorkNoteDTO note); - /// - /// This call updates a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to update - /// Task of TaskWorkNoteDTO - System.Threading.Tasks.Task TaskWorkNotesUpdateNoteAsync (int? taskWorkNoteId, TaskWorkNoteDTO note); - - /// - /// This call updates a process note - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to update - /// Task of ApiResponse (TaskWorkNoteDTO) - System.Threading.Tasks.Task> TaskWorkNotesUpdateNoteAsyncWithHttpInfo (int? taskWorkNoteId, TaskWorkNoteDTO note); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TaskWorkNotesApi : ITaskWorkNotesApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TaskWorkNotesApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TaskWorkNotesApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes a process note - /// - /// Thrown when fails to make API call - /// Note identifier - /// - public void TaskWorkNotesDeleteNote (int? taskWorkNoteId) - { - TaskWorkNotesDeleteNoteWithHttpInfo(taskWorkNoteId); - } - - /// - /// This call deletes a process note - /// - /// Thrown when fails to make API call - /// Note identifier - /// ApiResponse of Object(void) - public ApiResponse TaskWorkNotesDeleteNoteWithHttpInfo (int? taskWorkNoteId) - { - // verify the required parameter 'taskWorkNoteId' is set - if (taskWorkNoteId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkNoteId' when calling TaskWorkNotesApi->TaskWorkNotesDeleteNote"); - - var localVarPath = "/api/TaskNotes/{taskWorkNoteId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkNoteId != null) localVarPathParams.Add("taskWorkNoteId", this.Configuration.ApiClient.ParameterToString(taskWorkNoteId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkNotesDeleteNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a process note - /// - /// Thrown when fails to make API call - /// Note identifier - /// Task of void - public async System.Threading.Tasks.Task TaskWorkNotesDeleteNoteAsync (int? taskWorkNoteId) - { - await TaskWorkNotesDeleteNoteAsyncWithHttpInfo(taskWorkNoteId); - - } - - /// - /// This call deletes a process note - /// - /// Thrown when fails to make API call - /// Note identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkNotesDeleteNoteAsyncWithHttpInfo (int? taskWorkNoteId) - { - // verify the required parameter 'taskWorkNoteId' is set - if (taskWorkNoteId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkNoteId' when calling TaskWorkNotesApi->TaskWorkNotesDeleteNote"); - - var localVarPath = "/api/TaskNotes/{taskWorkNoteId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkNoteId != null) localVarPathParams.Add("taskWorkNoteId", this.Configuration.ApiClient.ParameterToString(taskWorkNoteId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkNotesDeleteNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all notes in a process - /// - /// Thrown when fails to make API call - /// Process identifier - /// List<TaskWorkNoteDTO> - public List TaskWorkNotesGetByProcessId (int? processId) - { - ApiResponse> localVarResponse = TaskWorkNotesGetByProcessIdWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// This call returns all notes in a process - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of List<TaskWorkNoteDTO> - public ApiResponse< List > TaskWorkNotesGetByProcessIdWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkNotesApi->TaskWorkNotesGetByProcessId"); - - var localVarPath = "/api/TaskNotes/byProcessId/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkNotesGetByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all notes in a process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of List<TaskWorkNoteDTO> - public async System.Threading.Tasks.Task> TaskWorkNotesGetByProcessIdAsync (int? processId) - { - ApiResponse> localVarResponse = await TaskWorkNotesGetByProcessIdAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// This call returns all notes in a process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (List<TaskWorkNoteDTO>) - public async System.Threading.Tasks.Task>> TaskWorkNotesGetByProcessIdAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkNotesApi->TaskWorkNotesGetByProcessId"); - - var localVarPath = "/api/TaskNotes/byProcessId/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkNotesGetByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds a new note to a process - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to add - /// TaskWorkNoteDTO - public TaskWorkNoteDTO TaskWorkNotesInsertNewNote (int? taskWorkId, TaskWorkNoteDTO note) - { - ApiResponse localVarResponse = TaskWorkNotesInsertNewNoteWithHttpInfo(taskWorkId, note); - return localVarResponse.Data; - } - - /// - /// This call adds a new note to a process - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to add - /// ApiResponse of TaskWorkNoteDTO - public ApiResponse< TaskWorkNoteDTO > TaskWorkNotesInsertNewNoteWithHttpInfo (int? taskWorkId, TaskWorkNoteDTO note) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkNotesApi->TaskWorkNotesInsertNewNote"); - // verify the required parameter 'note' is set - if (note == null) - throw new ApiException(400, "Missing required parameter 'note' when calling TaskWorkNotesApi->TaskWorkNotesInsertNewNote"); - - var localVarPath = "/api/TaskNotes/taskWorkId/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (note != null && note.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(note); // http body (model) parameter - } - else - { - localVarPostBody = note; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkNotesInsertNewNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkNoteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkNoteDTO))); - } - - /// - /// This call adds a new note to a process - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to add - /// Task of TaskWorkNoteDTO - public async System.Threading.Tasks.Task TaskWorkNotesInsertNewNoteAsync (int? taskWorkId, TaskWorkNoteDTO note) - { - ApiResponse localVarResponse = await TaskWorkNotesInsertNewNoteAsyncWithHttpInfo(taskWorkId, note); - return localVarResponse.Data; - - } - - /// - /// This call adds a new note to a process - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to add - /// Task of ApiResponse (TaskWorkNoteDTO) - public async System.Threading.Tasks.Task> TaskWorkNotesInsertNewNoteAsyncWithHttpInfo (int? taskWorkId, TaskWorkNoteDTO note) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkNotesApi->TaskWorkNotesInsertNewNote"); - // verify the required parameter 'note' is set - if (note == null) - throw new ApiException(400, "Missing required parameter 'note' when calling TaskWorkNotesApi->TaskWorkNotesInsertNewNote"); - - var localVarPath = "/api/TaskNotes/taskWorkId/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (note != null && note.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(note); // http body (model) parameter - } - else - { - localVarPostBody = note; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkNotesInsertNewNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkNoteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkNoteDTO))); - } - - /// - /// This call updates a process note - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to update - /// TaskWorkNoteDTO - public TaskWorkNoteDTO TaskWorkNotesUpdateNote (int? taskWorkNoteId, TaskWorkNoteDTO note) - { - ApiResponse localVarResponse = TaskWorkNotesUpdateNoteWithHttpInfo(taskWorkNoteId, note); - return localVarResponse.Data; - } - - /// - /// This call updates a process note - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to update - /// ApiResponse of TaskWorkNoteDTO - public ApiResponse< TaskWorkNoteDTO > TaskWorkNotesUpdateNoteWithHttpInfo (int? taskWorkNoteId, TaskWorkNoteDTO note) - { - // verify the required parameter 'taskWorkNoteId' is set - if (taskWorkNoteId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkNoteId' when calling TaskWorkNotesApi->TaskWorkNotesUpdateNote"); - // verify the required parameter 'note' is set - if (note == null) - throw new ApiException(400, "Missing required parameter 'note' when calling TaskWorkNotesApi->TaskWorkNotesUpdateNote"); - - var localVarPath = "/api/TaskNotes/{taskWorkNoteId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkNoteId != null) localVarPathParams.Add("taskWorkNoteId", this.Configuration.ApiClient.ParameterToString(taskWorkNoteId)); // path parameter - if (note != null && note.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(note); // http body (model) parameter - } - else - { - localVarPostBody = note; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkNotesUpdateNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkNoteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkNoteDTO))); - } - - /// - /// This call updates a process note - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to update - /// Task of TaskWorkNoteDTO - public async System.Threading.Tasks.Task TaskWorkNotesUpdateNoteAsync (int? taskWorkNoteId, TaskWorkNoteDTO note) - { - ApiResponse localVarResponse = await TaskWorkNotesUpdateNoteAsyncWithHttpInfo(taskWorkNoteId, note); - return localVarResponse.Data; - - } - - /// - /// This call updates a process note - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Note to update - /// Task of ApiResponse (TaskWorkNoteDTO) - public async System.Threading.Tasks.Task> TaskWorkNotesUpdateNoteAsyncWithHttpInfo (int? taskWorkNoteId, TaskWorkNoteDTO note) - { - // verify the required parameter 'taskWorkNoteId' is set - if (taskWorkNoteId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkNoteId' when calling TaskWorkNotesApi->TaskWorkNotesUpdateNote"); - // verify the required parameter 'note' is set - if (note == null) - throw new ApiException(400, "Missing required parameter 'note' when calling TaskWorkNotesApi->TaskWorkNotesUpdateNote"); - - var localVarPath = "/api/TaskNotes/{taskWorkNoteId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkNoteId != null) localVarPathParams.Add("taskWorkNoteId", this.Configuration.ApiClient.ParameterToString(taskWorkNoteId)); // path parameter - if (note != null && note.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(note); // http body (model) parameter - } - else - { - localVarPostBody = note; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkNotesUpdateNote", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkNoteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkNoteDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkOperationsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkOperationsApi.cs deleted file mode 100644 index 1a650f4..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkOperationsApi.cs +++ /dev/null @@ -1,4183 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITaskWorkOperationsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void TaskWorkOperationsExecuteSignOperation (TaskWorkSignOperationRequestDTO request); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse TaskWorkOperationsExecuteSignOperationWithHttpInfo (TaskWorkSignOperationRequestDTO request); - /// - /// This call returns all the operations in a task work - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// TaskWorkOperationsDTO - TaskWorkOperationsDTO TaskWorkOperationsGetByTaskWorkId (int? taskWorkId); - - /// - /// This call returns all the operations in a task work - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of TaskWorkOperationsDTO - ApiResponse TaskWorkOperationsGetByTaskWorkIdWithHttpInfo (int? taskWorkId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// List<SignDocumentDataDTO> - List TaskWorkOperationsGetDocumentForSignOperation (int? taskWorkId, int? signOperationId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of List<SignDocumentDataDTO> - ApiResponse> TaskWorkOperationsGetDocumentForSignOperationWithHttpInfo (int? taskWorkId, int? signOperationId); - /// - /// This call returns the dynamic job operation to execute for a taskwork list close action by an exit code - /// - /// - /// - /// - /// Thrown when fails to make API call - /// exit code for close action - /// List<TaskWorkDynamicJobOperationDTO> - List TaskWorkOperationsGetDynamicJobOperationsByExitCodeAndTaskWorkIds (TaskExitCodeDTO taskExitCode); - - /// - /// This call returns the dynamic job operation to execute for a taskwork list close action by an exit code - /// - /// - /// - /// - /// Thrown when fails to make API call - /// exit code for close action - /// ApiResponse of List<TaskWorkDynamicJobOperationDTO> - ApiResponse> TaskWorkOperationsGetDynamicJobOperationsByExitCodeAndTaskWorkIdsWithHttpInfo (TaskExitCodeDTO taskExitCode); - /// - /// This call returns the possibile values for a process variable (combo or table) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Id of the task work - /// Actual values of the process variables (for value dependant query) - /// FieldValuesDTO - FieldValuesDTO TaskWorkOperationsGetFieldValuesByProcessVariable (int? processVariableId, int? taskWorkId, VariablesValuesCriteriaDTO processVariables); - - /// - /// This call returns the possibile values for a process variable (combo or table) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Id of the task work - /// Actual values of the process variables (for value dependant query) - /// ApiResponse of FieldValuesDTO - ApiResponse TaskWorkOperationsGetFieldValuesByProcessVariableWithHttpInfo (int? processVariableId, int? taskWorkId, VariablesValuesCriteriaDTO processVariables); - /// - /// This call returns the possibile filters for a table process variable - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Actual values of the process variables (for value dependant query) - /// FieldFilterConcreteDTO - FieldFilterConcreteDTO TaskWorkOperationsGetFiltersByProcessVariables (int? processVariableId, ProcessVariablesFieldsDTO processVariables); - - /// - /// This call returns the possibile filters for a table process variable - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Actual values of the process variables (for value dependant query) - /// ApiResponse of FieldFilterConcreteDTO - ApiResponse TaskWorkOperationsGetFiltersByProcessVariablesWithHttpInfo (int? processVariableId, ProcessVariablesFieldsDTO processVariables); - /// - /// This call returns all professional role operations by multiple TaskWork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Ids of the TaskWorks - /// List<ProfessionalRoleOperationDTO> - List TaskWorkOperationsGetProfessionalRoleByTaskIds (List taskWorkIds); - - /// - /// This call returns all professional role operations by multiple TaskWork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Ids of the TaskWorks - /// ApiResponse of List<ProfessionalRoleOperationDTO> - ApiResponse> TaskWorkOperationsGetProfessionalRoleByTaskIdsWithHttpInfo (List taskWorkIds); - /// - /// This call returns the professional role operation to execute for a taskwork list close action by an exit code - /// - /// - /// - /// - /// Thrown when fails to make API call - /// exit code for close action - /// List<ProfessionalRoleOperationDTO> - List TaskWorkOperationsGetProfessionalRoleOperationsByExitCodeAndTaskWorkIds (TaskExitCodeDTO taskExitCode); - - /// - /// This call returns the professional role operation to execute for a taskwork list close action by an exit code - /// - /// - /// - /// - /// Thrown when fails to make API call - /// exit code for close action - /// ApiResponse of List<ProfessionalRoleOperationDTO> - ApiResponse> TaskWorkOperationsGetProfessionalRoleOperationsByExitCodeAndTaskWorkIdsWithHttpInfo (TaskExitCodeDTO taskExitCode); - /// - /// This call returns the selected users list for a dynamic job in a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the process - /// List<UserCompleteDTO> - List TaskWorkOperationsGetSelectedUsersForDynamicJob (int? dynamicJobUser, int? processId); - - /// - /// This call returns the selected users list for a dynamic job in a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the process - /// ApiResponse of List<UserCompleteDTO> - ApiResponse> TaskWorkOperationsGetSelectedUsersForDynamicJobWithHttpInfo (int? dynamicJobUser, int? processId); - /// - /// This call returns al possibile user for a dynamic job attribution - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<UserCompleteDTO> - List TaskWorkOperationsGetUsersForDynamicJob (); - - /// - /// This call returns al possibile user for a dynamic job attribution - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<UserCompleteDTO> - ApiResponse> TaskWorkOperationsGetUsersForDynamicJobWithHttpInfo (); - /// - /// This call returns the professional role possibile users for a professional role operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// List<UserCompleteDTO> - List TaskWorkOperationsGetUsersForProfessionalRoleSelection (int? taskWorkId, int? professionalRoleId); - - /// - /// This call returns the professional role possibile users for a professional role operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// ApiResponse of List<UserCompleteDTO> - ApiResponse> TaskWorkOperationsGetUsersForProfessionalRoleSelectionWithHttpInfo (int? taskWorkId, int? professionalRoleId); - /// - /// This call sets the users for a process dynamic job - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the task work - /// users list to add - /// - void TaskWorkOperationsSetDynamicJob (int? dynamicJobId, int? taskWorkId, List users); - - /// - /// This call sets the users for a process dynamic job - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the task work - /// users list to add - /// ApiResponse of Object(void) - ApiResponse TaskWorkOperationsSetDynamicJobWithHttpInfo (int? dynamicJobId, int? taskWorkId, List users); - /// - /// This call sets the users for multiple process dynamic job - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for multiple dynamic job set - /// - void TaskWorkOperationsSetDynamicJobMultiple (DynamicJobMultipleSetRequestDTO dynamicJobMultipleSetRequest); - - /// - /// This call sets the users for multiple process dynamic job - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for multiple dynamic job set - /// ApiResponse of Object(void) - ApiResponse TaskWorkOperationsSetDynamicJobMultipleWithHttpInfo (DynamicJobMultipleSetRequestDTO dynamicJobMultipleSetRequest); - /// - /// This call sets the values for the process variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Process variables informations - /// - void TaskWorkOperationsSetProcessVariableValueByTaskWorkId (int? taskWorkId, ProcessVariablesFieldsDTO processVariables); - - /// - /// This call sets the values for the process variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Process variables informations - /// ApiResponse of Object(void) - ApiResponse TaskWorkOperationsSetProcessVariableValueByTaskWorkIdWithHttpInfo (int? taskWorkId, ProcessVariablesFieldsDTO processVariables); - /// - /// This call sets the professional roles users for multiple TaskWork Ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// If of user - /// List of taskwork id - /// - void TaskWorkOperationsSetProfessionalRoleByTaskIds (int? professionalRoleId, int? userToAssignId, List taskWorkIds); - - /// - /// This call sets the professional roles users for multiple TaskWork Ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// If of user - /// List of taskwork id - /// ApiResponse of Object(void) - ApiResponse TaskWorkOperationsSetProfessionalRoleByTaskIdsWithHttpInfo (int? professionalRoleId, int? userToAssignId, List taskWorkIds); - /// - /// This call sets the user for a professional role operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// Id of the user - /// - void TaskWorkOperationsSetUsersForProfessionalRoleSelection (int? taskWorkId, int? professionalRoleId, int? userId); - - /// - /// This call sets the user for a professional role operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// Id of the user - /// ApiResponse of Object(void) - ApiResponse TaskWorkOperationsSetUsersForProfessionalRoleSelectionWithHttpInfo (int? taskWorkId, int? professionalRoleId, int? userId); - /// - /// this call executes a command task operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task id of the operation - /// Id of the command operation - /// - void TaskWorkOperationsTaskWorkCommandExecute (int? taskWorkId, int? taskWorkCommandId); - - /// - /// this call executes a command task operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task id of the operation - /// Id of the command operation - /// ApiResponse of Object(void) - ApiResponse TaskWorkOperationsTaskWorkCommandExecuteWithHttpInfo (int? taskWorkId, int? taskWorkCommandId); - /// - /// This call deletes the professional role actual value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// Id of the task work - /// - void TaskWorkOperationsUnSetProfessionalRoleSelection (int? professionalRoleId, int? taskWorkId); - - /// - /// This call deletes the professional role actual value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// Id of the task work - /// ApiResponse of Object(void) - ApiResponse TaskWorkOperationsUnSetProfessionalRoleSelectionWithHttpInfo (int? professionalRoleId, int? taskWorkId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ValidationFieldResultDTO - ValidationFieldResultDTO TaskWorkOperationsValidateVariabile (int? taskWorkId, ProcessVariableValidationDTO validationData); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of ValidationFieldResultDTO - ApiResponse TaskWorkOperationsValidateVariabileWithHttpInfo (int? taskWorkId, ProcessVariableValidationDTO validationData); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task TaskWorkOperationsExecuteSignOperationAsync (TaskWorkSignOperationRequestDTO request); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkOperationsExecuteSignOperationAsyncWithHttpInfo (TaskWorkSignOperationRequestDTO request); - /// - /// This call returns all the operations in a task work - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of TaskWorkOperationsDTO - System.Threading.Tasks.Task TaskWorkOperationsGetByTaskWorkIdAsync (int? taskWorkId); - - /// - /// This call returns all the operations in a task work - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (TaskWorkOperationsDTO) - System.Threading.Tasks.Task> TaskWorkOperationsGetByTaskWorkIdAsyncWithHttpInfo (int? taskWorkId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of List<SignDocumentDataDTO> - System.Threading.Tasks.Task> TaskWorkOperationsGetDocumentForSignOperationAsync (int? taskWorkId, int? signOperationId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (List<SignDocumentDataDTO>) - System.Threading.Tasks.Task>> TaskWorkOperationsGetDocumentForSignOperationAsyncWithHttpInfo (int? taskWorkId, int? signOperationId); - /// - /// This call returns the dynamic job operation to execute for a taskwork list close action by an exit code - /// - /// - /// - /// - /// Thrown when fails to make API call - /// exit code for close action - /// Task of List<TaskWorkDynamicJobOperationDTO> - System.Threading.Tasks.Task> TaskWorkOperationsGetDynamicJobOperationsByExitCodeAndTaskWorkIdsAsync (TaskExitCodeDTO taskExitCode); - - /// - /// This call returns the dynamic job operation to execute for a taskwork list close action by an exit code - /// - /// - /// - /// - /// Thrown when fails to make API call - /// exit code for close action - /// Task of ApiResponse (List<TaskWorkDynamicJobOperationDTO>) - System.Threading.Tasks.Task>> TaskWorkOperationsGetDynamicJobOperationsByExitCodeAndTaskWorkIdsAsyncWithHttpInfo (TaskExitCodeDTO taskExitCode); - /// - /// This call returns the possibile values for a process variable (combo or table) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Id of the task work - /// Actual values of the process variables (for value dependant query) - /// Task of FieldValuesDTO - System.Threading.Tasks.Task TaskWorkOperationsGetFieldValuesByProcessVariableAsync (int? processVariableId, int? taskWorkId, VariablesValuesCriteriaDTO processVariables); - - /// - /// This call returns the possibile values for a process variable (combo or table) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Id of the task work - /// Actual values of the process variables (for value dependant query) - /// Task of ApiResponse (FieldValuesDTO) - System.Threading.Tasks.Task> TaskWorkOperationsGetFieldValuesByProcessVariableAsyncWithHttpInfo (int? processVariableId, int? taskWorkId, VariablesValuesCriteriaDTO processVariables); - /// - /// This call returns the possibile filters for a table process variable - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Actual values of the process variables (for value dependant query) - /// Task of FieldFilterConcreteDTO - System.Threading.Tasks.Task TaskWorkOperationsGetFiltersByProcessVariablesAsync (int? processVariableId, ProcessVariablesFieldsDTO processVariables); - - /// - /// This call returns the possibile filters for a table process variable - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Actual values of the process variables (for value dependant query) - /// Task of ApiResponse (FieldFilterConcreteDTO) - System.Threading.Tasks.Task> TaskWorkOperationsGetFiltersByProcessVariablesAsyncWithHttpInfo (int? processVariableId, ProcessVariablesFieldsDTO processVariables); - /// - /// This call returns all professional role operations by multiple TaskWork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Ids of the TaskWorks - /// Task of List<ProfessionalRoleOperationDTO> - System.Threading.Tasks.Task> TaskWorkOperationsGetProfessionalRoleByTaskIdsAsync (List taskWorkIds); - - /// - /// This call returns all professional role operations by multiple TaskWork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Ids of the TaskWorks - /// Task of ApiResponse (List<ProfessionalRoleOperationDTO>) - System.Threading.Tasks.Task>> TaskWorkOperationsGetProfessionalRoleByTaskIdsAsyncWithHttpInfo (List taskWorkIds); - /// - /// This call returns the professional role operation to execute for a taskwork list close action by an exit code - /// - /// - /// - /// - /// Thrown when fails to make API call - /// exit code for close action - /// Task of List<ProfessionalRoleOperationDTO> - System.Threading.Tasks.Task> TaskWorkOperationsGetProfessionalRoleOperationsByExitCodeAndTaskWorkIdsAsync (TaskExitCodeDTO taskExitCode); - - /// - /// This call returns the professional role operation to execute for a taskwork list close action by an exit code - /// - /// - /// - /// - /// Thrown when fails to make API call - /// exit code for close action - /// Task of ApiResponse (List<ProfessionalRoleOperationDTO>) - System.Threading.Tasks.Task>> TaskWorkOperationsGetProfessionalRoleOperationsByExitCodeAndTaskWorkIdsAsyncWithHttpInfo (TaskExitCodeDTO taskExitCode); - /// - /// This call returns the selected users list for a dynamic job in a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the process - /// Task of List<UserCompleteDTO> - System.Threading.Tasks.Task> TaskWorkOperationsGetSelectedUsersForDynamicJobAsync (int? dynamicJobUser, int? processId); - - /// - /// This call returns the selected users list for a dynamic job in a process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the process - /// Task of ApiResponse (List<UserCompleteDTO>) - System.Threading.Tasks.Task>> TaskWorkOperationsGetSelectedUsersForDynamicJobAsyncWithHttpInfo (int? dynamicJobUser, int? processId); - /// - /// This call returns al possibile user for a dynamic job attribution - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<UserCompleteDTO> - System.Threading.Tasks.Task> TaskWorkOperationsGetUsersForDynamicJobAsync (); - - /// - /// This call returns al possibile user for a dynamic job attribution - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<UserCompleteDTO>) - System.Threading.Tasks.Task>> TaskWorkOperationsGetUsersForDynamicJobAsyncWithHttpInfo (); - /// - /// This call returns the professional role possibile users for a professional role operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// Task of List<UserCompleteDTO> - System.Threading.Tasks.Task> TaskWorkOperationsGetUsersForProfessionalRoleSelectionAsync (int? taskWorkId, int? professionalRoleId); - - /// - /// This call returns the professional role possibile users for a professional role operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// Task of ApiResponse (List<UserCompleteDTO>) - System.Threading.Tasks.Task>> TaskWorkOperationsGetUsersForProfessionalRoleSelectionAsyncWithHttpInfo (int? taskWorkId, int? professionalRoleId); - /// - /// This call sets the users for a process dynamic job - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the task work - /// users list to add - /// Task of void - System.Threading.Tasks.Task TaskWorkOperationsSetDynamicJobAsync (int? dynamicJobId, int? taskWorkId, List users); - - /// - /// This call sets the users for a process dynamic job - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the task work - /// users list to add - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkOperationsSetDynamicJobAsyncWithHttpInfo (int? dynamicJobId, int? taskWorkId, List users); - /// - /// This call sets the users for multiple process dynamic job - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for multiple dynamic job set - /// Task of void - System.Threading.Tasks.Task TaskWorkOperationsSetDynamicJobMultipleAsync (DynamicJobMultipleSetRequestDTO dynamicJobMultipleSetRequest); - - /// - /// This call sets the users for multiple process dynamic job - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request for multiple dynamic job set - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkOperationsSetDynamicJobMultipleAsyncWithHttpInfo (DynamicJobMultipleSetRequestDTO dynamicJobMultipleSetRequest); - /// - /// This call sets the values for the process variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Process variables informations - /// Task of void - System.Threading.Tasks.Task TaskWorkOperationsSetProcessVariableValueByTaskWorkIdAsync (int? taskWorkId, ProcessVariablesFieldsDTO processVariables); - - /// - /// This call sets the values for the process variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Process variables informations - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkOperationsSetProcessVariableValueByTaskWorkIdAsyncWithHttpInfo (int? taskWorkId, ProcessVariablesFieldsDTO processVariables); - /// - /// This call sets the professional roles users for multiple TaskWork Ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// If of user - /// List of taskwork id - /// Task of void - System.Threading.Tasks.Task TaskWorkOperationsSetProfessionalRoleByTaskIdsAsync (int? professionalRoleId, int? userToAssignId, List taskWorkIds); - - /// - /// This call sets the professional roles users for multiple TaskWork Ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// If of user - /// List of taskwork id - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkOperationsSetProfessionalRoleByTaskIdsAsyncWithHttpInfo (int? professionalRoleId, int? userToAssignId, List taskWorkIds); - /// - /// This call sets the user for a professional role operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// Id of the user - /// Task of void - System.Threading.Tasks.Task TaskWorkOperationsSetUsersForProfessionalRoleSelectionAsync (int? taskWorkId, int? professionalRoleId, int? userId); - - /// - /// This call sets the user for a professional role operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// Id of the user - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkOperationsSetUsersForProfessionalRoleSelectionAsyncWithHttpInfo (int? taskWorkId, int? professionalRoleId, int? userId); - /// - /// this call executes a command task operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task id of the operation - /// Id of the command operation - /// Task of void - System.Threading.Tasks.Task TaskWorkOperationsTaskWorkCommandExecuteAsync (int? taskWorkId, int? taskWorkCommandId); - - /// - /// this call executes a command task operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task id of the operation - /// Id of the command operation - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkOperationsTaskWorkCommandExecuteAsyncWithHttpInfo (int? taskWorkId, int? taskWorkCommandId); - /// - /// This call deletes the professional role actual value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// Id of the task work - /// Task of void - System.Threading.Tasks.Task TaskWorkOperationsUnSetProfessionalRoleSelectionAsync (int? professionalRoleId, int? taskWorkId); - - /// - /// This call deletes the professional role actual value - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// Id of the task work - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkOperationsUnSetProfessionalRoleSelectionAsyncWithHttpInfo (int? professionalRoleId, int? taskWorkId); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ValidationFieldResultDTO - System.Threading.Tasks.Task TaskWorkOperationsValidateVariabileAsync (int? taskWorkId, ProcessVariableValidationDTO validationData); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (ValidationFieldResultDTO) - System.Threading.Tasks.Task> TaskWorkOperationsValidateVariabileAsyncWithHttpInfo (int? taskWorkId, ProcessVariableValidationDTO validationData); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TaskWorkOperationsApi : ITaskWorkOperationsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TaskWorkOperationsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TaskWorkOperationsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - public void TaskWorkOperationsExecuteSignOperation (TaskWorkSignOperationRequestDTO request) - { - TaskWorkOperationsExecuteSignOperationWithHttpInfo(request); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse TaskWorkOperationsExecuteSignOperationWithHttpInfo (TaskWorkSignOperationRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling TaskWorkOperationsApi->TaskWorkOperationsExecuteSignOperation"); - - var localVarPath = "/api/TaskOperations/ExecuteSignOperation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsExecuteSignOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task TaskWorkOperationsExecuteSignOperationAsync (TaskWorkSignOperationRequestDTO request) - { - await TaskWorkOperationsExecuteSignOperationAsyncWithHttpInfo(request); - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkOperationsExecuteSignOperationAsyncWithHttpInfo (TaskWorkSignOperationRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling TaskWorkOperationsApi->TaskWorkOperationsExecuteSignOperation"); - - var localVarPath = "/api/TaskOperations/ExecuteSignOperation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsExecuteSignOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all the operations in a task work - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// TaskWorkOperationsDTO - public TaskWorkOperationsDTO TaskWorkOperationsGetByTaskWorkId (int? taskWorkId) - { - ApiResponse localVarResponse = TaskWorkOperationsGetByTaskWorkIdWithHttpInfo(taskWorkId); - return localVarResponse.Data; - } - - /// - /// This call returns all the operations in a task work - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of TaskWorkOperationsDTO - public ApiResponse< TaskWorkOperationsDTO > TaskWorkOperationsGetByTaskWorkIdWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetByTaskWorkId"); - - var localVarPath = "/api/TaskOperations/byTaskWork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetByTaskWorkId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkOperationsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkOperationsDTO))); - } - - /// - /// This call returns all the operations in a task work - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of TaskWorkOperationsDTO - public async System.Threading.Tasks.Task TaskWorkOperationsGetByTaskWorkIdAsync (int? taskWorkId) - { - ApiResponse localVarResponse = await TaskWorkOperationsGetByTaskWorkIdAsyncWithHttpInfo(taskWorkId); - return localVarResponse.Data; - - } - - /// - /// This call returns all the operations in a task work - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (TaskWorkOperationsDTO) - public async System.Threading.Tasks.Task> TaskWorkOperationsGetByTaskWorkIdAsyncWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetByTaskWorkId"); - - var localVarPath = "/api/TaskOperations/byTaskWork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetByTaskWorkId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkOperationsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkOperationsDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// List<SignDocumentDataDTO> - public List TaskWorkOperationsGetDocumentForSignOperation (int? taskWorkId, int? signOperationId) - { - ApiResponse> localVarResponse = TaskWorkOperationsGetDocumentForSignOperationWithHttpInfo(taskWorkId, signOperationId); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of List<SignDocumentDataDTO> - public ApiResponse< List > TaskWorkOperationsGetDocumentForSignOperationWithHttpInfo (int? taskWorkId, int? signOperationId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetDocumentForSignOperation"); - // verify the required parameter 'signOperationId' is set - if (signOperationId == null) - throw new ApiException(400, "Missing required parameter 'signOperationId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetDocumentForSignOperation"); - - var localVarPath = "/api/TaskOperations/{taskWorkId}/signOperationInfo/{signOperationId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (signOperationId != null) localVarPathParams.Add("signOperationId", this.Configuration.ApiClient.ParameterToString(signOperationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetDocumentForSignOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of List<SignDocumentDataDTO> - public async System.Threading.Tasks.Task> TaskWorkOperationsGetDocumentForSignOperationAsync (int? taskWorkId, int? signOperationId) - { - ApiResponse> localVarResponse = await TaskWorkOperationsGetDocumentForSignOperationAsyncWithHttpInfo(taskWorkId, signOperationId); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (List<SignDocumentDataDTO>) - public async System.Threading.Tasks.Task>> TaskWorkOperationsGetDocumentForSignOperationAsyncWithHttpInfo (int? taskWorkId, int? signOperationId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetDocumentForSignOperation"); - // verify the required parameter 'signOperationId' is set - if (signOperationId == null) - throw new ApiException(400, "Missing required parameter 'signOperationId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetDocumentForSignOperation"); - - var localVarPath = "/api/TaskOperations/{taskWorkId}/signOperationInfo/{signOperationId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (signOperationId != null) localVarPathParams.Add("signOperationId", this.Configuration.ApiClient.ParameterToString(signOperationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetDocumentForSignOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the dynamic job operation to execute for a taskwork list close action by an exit code - /// - /// Thrown when fails to make API call - /// exit code for close action - /// List<TaskWorkDynamicJobOperationDTO> - public List TaskWorkOperationsGetDynamicJobOperationsByExitCodeAndTaskWorkIds (TaskExitCodeDTO taskExitCode) - { - ApiResponse> localVarResponse = TaskWorkOperationsGetDynamicJobOperationsByExitCodeAndTaskWorkIdsWithHttpInfo(taskExitCode); - return localVarResponse.Data; - } - - /// - /// This call returns the dynamic job operation to execute for a taskwork list close action by an exit code - /// - /// Thrown when fails to make API call - /// exit code for close action - /// ApiResponse of List<TaskWorkDynamicJobOperationDTO> - public ApiResponse< List > TaskWorkOperationsGetDynamicJobOperationsByExitCodeAndTaskWorkIdsWithHttpInfo (TaskExitCodeDTO taskExitCode) - { - // verify the required parameter 'taskExitCode' is set - if (taskExitCode == null) - throw new ApiException(400, "Missing required parameter 'taskExitCode' when calling TaskWorkOperationsApi->TaskWorkOperationsGetDynamicJobOperationsByExitCodeAndTaskWorkIds"); - - var localVarPath = "/api/TaskOperations/getdynamicjoboperations/exitcode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskExitCode != null && taskExitCode.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskExitCode); // http body (model) parameter - } - else - { - localVarPostBody = taskExitCode; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetDynamicJobOperationsByExitCodeAndTaskWorkIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the dynamic job operation to execute for a taskwork list close action by an exit code - /// - /// Thrown when fails to make API call - /// exit code for close action - /// Task of List<TaskWorkDynamicJobOperationDTO> - public async System.Threading.Tasks.Task> TaskWorkOperationsGetDynamicJobOperationsByExitCodeAndTaskWorkIdsAsync (TaskExitCodeDTO taskExitCode) - { - ApiResponse> localVarResponse = await TaskWorkOperationsGetDynamicJobOperationsByExitCodeAndTaskWorkIdsAsyncWithHttpInfo(taskExitCode); - return localVarResponse.Data; - - } - - /// - /// This call returns the dynamic job operation to execute for a taskwork list close action by an exit code - /// - /// Thrown when fails to make API call - /// exit code for close action - /// Task of ApiResponse (List<TaskWorkDynamicJobOperationDTO>) - public async System.Threading.Tasks.Task>> TaskWorkOperationsGetDynamicJobOperationsByExitCodeAndTaskWorkIdsAsyncWithHttpInfo (TaskExitCodeDTO taskExitCode) - { - // verify the required parameter 'taskExitCode' is set - if (taskExitCode == null) - throw new ApiException(400, "Missing required parameter 'taskExitCode' when calling TaskWorkOperationsApi->TaskWorkOperationsGetDynamicJobOperationsByExitCodeAndTaskWorkIds"); - - var localVarPath = "/api/TaskOperations/getdynamicjoboperations/exitcode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskExitCode != null && taskExitCode.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskExitCode); // http body (model) parameter - } - else - { - localVarPostBody = taskExitCode; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetDynamicJobOperationsByExitCodeAndTaskWorkIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the possibile values for a process variable (combo or table) - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Id of the task work - /// Actual values of the process variables (for value dependant query) - /// FieldValuesDTO - public FieldValuesDTO TaskWorkOperationsGetFieldValuesByProcessVariable (int? processVariableId, int? taskWorkId, VariablesValuesCriteriaDTO processVariables) - { - ApiResponse localVarResponse = TaskWorkOperationsGetFieldValuesByProcessVariableWithHttpInfo(processVariableId, taskWorkId, processVariables); - return localVarResponse.Data; - } - - /// - /// This call returns the possibile values for a process variable (combo or table) - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Id of the task work - /// Actual values of the process variables (for value dependant query) - /// ApiResponse of FieldValuesDTO - public ApiResponse< FieldValuesDTO > TaskWorkOperationsGetFieldValuesByProcessVariableWithHttpInfo (int? processVariableId, int? taskWorkId, VariablesValuesCriteriaDTO processVariables) - { - // verify the required parameter 'processVariableId' is set - if (processVariableId == null) - throw new ApiException(400, "Missing required parameter 'processVariableId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetFieldValuesByProcessVariable"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetFieldValuesByProcessVariable"); - // verify the required parameter 'processVariables' is set - if (processVariables == null) - throw new ApiException(400, "Missing required parameter 'processVariables' when calling TaskWorkOperationsApi->TaskWorkOperationsGetFieldValuesByProcessVariable"); - - var localVarPath = "/api/TaskOperations/{taskWorkId}/processvariable/{processVariableId}/getValues"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processVariableId != null) localVarPathParams.Add("processVariableId", this.Configuration.ApiClient.ParameterToString(processVariableId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (processVariables != null && processVariables.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(processVariables); // http body (model) parameter - } - else - { - localVarPostBody = processVariables; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetFieldValuesByProcessVariable", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldValuesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldValuesDTO))); - } - - /// - /// This call returns the possibile values for a process variable (combo or table) - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Id of the task work - /// Actual values of the process variables (for value dependant query) - /// Task of FieldValuesDTO - public async System.Threading.Tasks.Task TaskWorkOperationsGetFieldValuesByProcessVariableAsync (int? processVariableId, int? taskWorkId, VariablesValuesCriteriaDTO processVariables) - { - ApiResponse localVarResponse = await TaskWorkOperationsGetFieldValuesByProcessVariableAsyncWithHttpInfo(processVariableId, taskWorkId, processVariables); - return localVarResponse.Data; - - } - - /// - /// This call returns the possibile values for a process variable (combo or table) - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Id of the task work - /// Actual values of the process variables (for value dependant query) - /// Task of ApiResponse (FieldValuesDTO) - public async System.Threading.Tasks.Task> TaskWorkOperationsGetFieldValuesByProcessVariableAsyncWithHttpInfo (int? processVariableId, int? taskWorkId, VariablesValuesCriteriaDTO processVariables) - { - // verify the required parameter 'processVariableId' is set - if (processVariableId == null) - throw new ApiException(400, "Missing required parameter 'processVariableId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetFieldValuesByProcessVariable"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetFieldValuesByProcessVariable"); - // verify the required parameter 'processVariables' is set - if (processVariables == null) - throw new ApiException(400, "Missing required parameter 'processVariables' when calling TaskWorkOperationsApi->TaskWorkOperationsGetFieldValuesByProcessVariable"); - - var localVarPath = "/api/TaskOperations/{taskWorkId}/processvariable/{processVariableId}/getValues"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processVariableId != null) localVarPathParams.Add("processVariableId", this.Configuration.ApiClient.ParameterToString(processVariableId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (processVariables != null && processVariables.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(processVariables); // http body (model) parameter - } - else - { - localVarPostBody = processVariables; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetFieldValuesByProcessVariable", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldValuesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldValuesDTO))); - } - - /// - /// This call returns the possibile filters for a table process variable - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Actual values of the process variables (for value dependant query) - /// FieldFilterConcreteDTO - public FieldFilterConcreteDTO TaskWorkOperationsGetFiltersByProcessVariables (int? processVariableId, ProcessVariablesFieldsDTO processVariables) - { - ApiResponse localVarResponse = TaskWorkOperationsGetFiltersByProcessVariablesWithHttpInfo(processVariableId, processVariables); - return localVarResponse.Data; - } - - /// - /// This call returns the possibile filters for a table process variable - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Actual values of the process variables (for value dependant query) - /// ApiResponse of FieldFilterConcreteDTO - public ApiResponse< FieldFilterConcreteDTO > TaskWorkOperationsGetFiltersByProcessVariablesWithHttpInfo (int? processVariableId, ProcessVariablesFieldsDTO processVariables) - { - // verify the required parameter 'processVariableId' is set - if (processVariableId == null) - throw new ApiException(400, "Missing required parameter 'processVariableId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetFiltersByProcessVariables"); - // verify the required parameter 'processVariables' is set - if (processVariables == null) - throw new ApiException(400, "Missing required parameter 'processVariables' when calling TaskWorkOperationsApi->TaskWorkOperationsGetFiltersByProcessVariables"); - - var localVarPath = "/api/TaskOperations/processvariable/{processVariableId}/getFilters"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processVariableId != null) localVarPathParams.Add("processVariableId", this.Configuration.ApiClient.ParameterToString(processVariableId)); // path parameter - if (processVariables != null && processVariables.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(processVariables); // http body (model) parameter - } - else - { - localVarPostBody = processVariables; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetFiltersByProcessVariables", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldFilterConcreteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldFilterConcreteDTO))); - } - - /// - /// This call returns the possibile filters for a table process variable - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Actual values of the process variables (for value dependant query) - /// Task of FieldFilterConcreteDTO - public async System.Threading.Tasks.Task TaskWorkOperationsGetFiltersByProcessVariablesAsync (int? processVariableId, ProcessVariablesFieldsDTO processVariables) - { - ApiResponse localVarResponse = await TaskWorkOperationsGetFiltersByProcessVariablesAsyncWithHttpInfo(processVariableId, processVariables); - return localVarResponse.Data; - - } - - /// - /// This call returns the possibile filters for a table process variable - /// - /// Thrown when fails to make API call - /// Id of the process variable - /// Actual values of the process variables (for value dependant query) - /// Task of ApiResponse (FieldFilterConcreteDTO) - public async System.Threading.Tasks.Task> TaskWorkOperationsGetFiltersByProcessVariablesAsyncWithHttpInfo (int? processVariableId, ProcessVariablesFieldsDTO processVariables) - { - // verify the required parameter 'processVariableId' is set - if (processVariableId == null) - throw new ApiException(400, "Missing required parameter 'processVariableId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetFiltersByProcessVariables"); - // verify the required parameter 'processVariables' is set - if (processVariables == null) - throw new ApiException(400, "Missing required parameter 'processVariables' when calling TaskWorkOperationsApi->TaskWorkOperationsGetFiltersByProcessVariables"); - - var localVarPath = "/api/TaskOperations/processvariable/{processVariableId}/getFilters"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processVariableId != null) localVarPathParams.Add("processVariableId", this.Configuration.ApiClient.ParameterToString(processVariableId)); // path parameter - if (processVariables != null && processVariables.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(processVariables); // http body (model) parameter - } - else - { - localVarPostBody = processVariables; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetFiltersByProcessVariables", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldFilterConcreteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldFilterConcreteDTO))); - } - - /// - /// This call returns all professional role operations by multiple TaskWork - /// - /// Thrown when fails to make API call - /// Ids of the TaskWorks - /// List<ProfessionalRoleOperationDTO> - public List TaskWorkOperationsGetProfessionalRoleByTaskIds (List taskWorkIds) - { - ApiResponse> localVarResponse = TaskWorkOperationsGetProfessionalRoleByTaskIdsWithHttpInfo(taskWorkIds); - return localVarResponse.Data; - } - - /// - /// This call returns all professional role operations by multiple TaskWork - /// - /// Thrown when fails to make API call - /// Ids of the TaskWorks - /// ApiResponse of List<ProfessionalRoleOperationDTO> - public ApiResponse< List > TaskWorkOperationsGetProfessionalRoleByTaskIdsWithHttpInfo (List taskWorkIds) - { - // verify the required parameter 'taskWorkIds' is set - if (taskWorkIds == null) - throw new ApiException(400, "Missing required parameter 'taskWorkIds' when calling TaskWorkOperationsApi->TaskWorkOperationsGetProfessionalRoleByTaskIds"); - - var localVarPath = "/api/TaskOperations/professionalroleoperation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkIds != null && taskWorkIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskWorkIds); // http body (model) parameter - } - else - { - localVarPostBody = taskWorkIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetProfessionalRoleByTaskIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all professional role operations by multiple TaskWork - /// - /// Thrown when fails to make API call - /// Ids of the TaskWorks - /// Task of List<ProfessionalRoleOperationDTO> - public async System.Threading.Tasks.Task> TaskWorkOperationsGetProfessionalRoleByTaskIdsAsync (List taskWorkIds) - { - ApiResponse> localVarResponse = await TaskWorkOperationsGetProfessionalRoleByTaskIdsAsyncWithHttpInfo(taskWorkIds); - return localVarResponse.Data; - - } - - /// - /// This call returns all professional role operations by multiple TaskWork - /// - /// Thrown when fails to make API call - /// Ids of the TaskWorks - /// Task of ApiResponse (List<ProfessionalRoleOperationDTO>) - public async System.Threading.Tasks.Task>> TaskWorkOperationsGetProfessionalRoleByTaskIdsAsyncWithHttpInfo (List taskWorkIds) - { - // verify the required parameter 'taskWorkIds' is set - if (taskWorkIds == null) - throw new ApiException(400, "Missing required parameter 'taskWorkIds' when calling TaskWorkOperationsApi->TaskWorkOperationsGetProfessionalRoleByTaskIds"); - - var localVarPath = "/api/TaskOperations/professionalroleoperation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkIds != null && taskWorkIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskWorkIds); // http body (model) parameter - } - else - { - localVarPostBody = taskWorkIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetProfessionalRoleByTaskIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the professional role operation to execute for a taskwork list close action by an exit code - /// - /// Thrown when fails to make API call - /// exit code for close action - /// List<ProfessionalRoleOperationDTO> - public List TaskWorkOperationsGetProfessionalRoleOperationsByExitCodeAndTaskWorkIds (TaskExitCodeDTO taskExitCode) - { - ApiResponse> localVarResponse = TaskWorkOperationsGetProfessionalRoleOperationsByExitCodeAndTaskWorkIdsWithHttpInfo(taskExitCode); - return localVarResponse.Data; - } - - /// - /// This call returns the professional role operation to execute for a taskwork list close action by an exit code - /// - /// Thrown when fails to make API call - /// exit code for close action - /// ApiResponse of List<ProfessionalRoleOperationDTO> - public ApiResponse< List > TaskWorkOperationsGetProfessionalRoleOperationsByExitCodeAndTaskWorkIdsWithHttpInfo (TaskExitCodeDTO taskExitCode) - { - // verify the required parameter 'taskExitCode' is set - if (taskExitCode == null) - throw new ApiException(400, "Missing required parameter 'taskExitCode' when calling TaskWorkOperationsApi->TaskWorkOperationsGetProfessionalRoleOperationsByExitCodeAndTaskWorkIds"); - - var localVarPath = "/api/TaskOperations/getprofessionalroleoperations/exitcode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskExitCode != null && taskExitCode.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskExitCode); // http body (model) parameter - } - else - { - localVarPostBody = taskExitCode; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetProfessionalRoleOperationsByExitCodeAndTaskWorkIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the professional role operation to execute for a taskwork list close action by an exit code - /// - /// Thrown when fails to make API call - /// exit code for close action - /// Task of List<ProfessionalRoleOperationDTO> - public async System.Threading.Tasks.Task> TaskWorkOperationsGetProfessionalRoleOperationsByExitCodeAndTaskWorkIdsAsync (TaskExitCodeDTO taskExitCode) - { - ApiResponse> localVarResponse = await TaskWorkOperationsGetProfessionalRoleOperationsByExitCodeAndTaskWorkIdsAsyncWithHttpInfo(taskExitCode); - return localVarResponse.Data; - - } - - /// - /// This call returns the professional role operation to execute for a taskwork list close action by an exit code - /// - /// Thrown when fails to make API call - /// exit code for close action - /// Task of ApiResponse (List<ProfessionalRoleOperationDTO>) - public async System.Threading.Tasks.Task>> TaskWorkOperationsGetProfessionalRoleOperationsByExitCodeAndTaskWorkIdsAsyncWithHttpInfo (TaskExitCodeDTO taskExitCode) - { - // verify the required parameter 'taskExitCode' is set - if (taskExitCode == null) - throw new ApiException(400, "Missing required parameter 'taskExitCode' when calling TaskWorkOperationsApi->TaskWorkOperationsGetProfessionalRoleOperationsByExitCodeAndTaskWorkIds"); - - var localVarPath = "/api/TaskOperations/getprofessionalroleoperations/exitcode"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskExitCode != null && taskExitCode.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskExitCode); // http body (model) parameter - } - else - { - localVarPostBody = taskExitCode; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetProfessionalRoleOperationsByExitCodeAndTaskWorkIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the selected users list for a dynamic job in a process - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the process - /// List<UserCompleteDTO> - public List TaskWorkOperationsGetSelectedUsersForDynamicJob (int? dynamicJobUser, int? processId) - { - ApiResponse> localVarResponse = TaskWorkOperationsGetSelectedUsersForDynamicJobWithHttpInfo(dynamicJobUser, processId); - return localVarResponse.Data; - } - - /// - /// This call returns the selected users list for a dynamic job in a process - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the process - /// ApiResponse of List<UserCompleteDTO> - public ApiResponse< List > TaskWorkOperationsGetSelectedUsersForDynamicJobWithHttpInfo (int? dynamicJobUser, int? processId) - { - // verify the required parameter 'dynamicJobUser' is set - if (dynamicJobUser == null) - throw new ApiException(400, "Missing required parameter 'dynamicJobUser' when calling TaskWorkOperationsApi->TaskWorkOperationsGetSelectedUsersForDynamicJob"); - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetSelectedUsersForDynamicJob"); - - var localVarPath = "/api/TaskOperations/dynamicjob/{dynamicJobUser}/byprocessid/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dynamicJobUser != null) localVarPathParams.Add("dynamicJobUser", this.Configuration.ApiClient.ParameterToString(dynamicJobUser)); // path parameter - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetSelectedUsersForDynamicJob", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the selected users list for a dynamic job in a process - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the process - /// Task of List<UserCompleteDTO> - public async System.Threading.Tasks.Task> TaskWorkOperationsGetSelectedUsersForDynamicJobAsync (int? dynamicJobUser, int? processId) - { - ApiResponse> localVarResponse = await TaskWorkOperationsGetSelectedUsersForDynamicJobAsyncWithHttpInfo(dynamicJobUser, processId); - return localVarResponse.Data; - - } - - /// - /// This call returns the selected users list for a dynamic job in a process - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the process - /// Task of ApiResponse (List<UserCompleteDTO>) - public async System.Threading.Tasks.Task>> TaskWorkOperationsGetSelectedUsersForDynamicJobAsyncWithHttpInfo (int? dynamicJobUser, int? processId) - { - // verify the required parameter 'dynamicJobUser' is set - if (dynamicJobUser == null) - throw new ApiException(400, "Missing required parameter 'dynamicJobUser' when calling TaskWorkOperationsApi->TaskWorkOperationsGetSelectedUsersForDynamicJob"); - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetSelectedUsersForDynamicJob"); - - var localVarPath = "/api/TaskOperations/dynamicjob/{dynamicJobUser}/byprocessid/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dynamicJobUser != null) localVarPathParams.Add("dynamicJobUser", this.Configuration.ApiClient.ParameterToString(dynamicJobUser)); // path parameter - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetSelectedUsersForDynamicJob", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns al possibile user for a dynamic job attribution - /// - /// Thrown when fails to make API call - /// List<UserCompleteDTO> - public List TaskWorkOperationsGetUsersForDynamicJob () - { - ApiResponse> localVarResponse = TaskWorkOperationsGetUsersForDynamicJobWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns al possibile user for a dynamic job attribution - /// - /// Thrown when fails to make API call - /// ApiResponse of List<UserCompleteDTO> - public ApiResponse< List > TaskWorkOperationsGetUsersForDynamicJobWithHttpInfo () - { - - var localVarPath = "/api/TaskOperations/dynamicjobusers"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetUsersForDynamicJob", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns al possibile user for a dynamic job attribution - /// - /// Thrown when fails to make API call - /// Task of List<UserCompleteDTO> - public async System.Threading.Tasks.Task> TaskWorkOperationsGetUsersForDynamicJobAsync () - { - ApiResponse> localVarResponse = await TaskWorkOperationsGetUsersForDynamicJobAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns al possibile user for a dynamic job attribution - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<UserCompleteDTO>) - public async System.Threading.Tasks.Task>> TaskWorkOperationsGetUsersForDynamicJobAsyncWithHttpInfo () - { - - var localVarPath = "/api/TaskOperations/dynamicjobusers"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetUsersForDynamicJob", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the professional role possibile users for a professional role operation - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// List<UserCompleteDTO> - public List TaskWorkOperationsGetUsersForProfessionalRoleSelection (int? taskWorkId, int? professionalRoleId) - { - ApiResponse> localVarResponse = TaskWorkOperationsGetUsersForProfessionalRoleSelectionWithHttpInfo(taskWorkId, professionalRoleId); - return localVarResponse.Data; - } - - /// - /// This call returns the professional role possibile users for a professional role operation - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// ApiResponse of List<UserCompleteDTO> - public ApiResponse< List > TaskWorkOperationsGetUsersForProfessionalRoleSelectionWithHttpInfo (int? taskWorkId, int? professionalRoleId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetUsersForProfessionalRoleSelection"); - // verify the required parameter 'professionalRoleId' is set - if (professionalRoleId == null) - throw new ApiException(400, "Missing required parameter 'professionalRoleId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetUsersForProfessionalRoleSelection"); - - var localVarPath = "/api/TaskOperations/professionalroleoperation/{professionalRoleId}/usersbytaskwork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (professionalRoleId != null) localVarPathParams.Add("professionalRoleId", this.Configuration.ApiClient.ParameterToString(professionalRoleId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetUsersForProfessionalRoleSelection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the professional role possibile users for a professional role operation - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// Task of List<UserCompleteDTO> - public async System.Threading.Tasks.Task> TaskWorkOperationsGetUsersForProfessionalRoleSelectionAsync (int? taskWorkId, int? professionalRoleId) - { - ApiResponse> localVarResponse = await TaskWorkOperationsGetUsersForProfessionalRoleSelectionAsyncWithHttpInfo(taskWorkId, professionalRoleId); - return localVarResponse.Data; - - } - - /// - /// This call returns the professional role possibile users for a professional role operation - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// Task of ApiResponse (List<UserCompleteDTO>) - public async System.Threading.Tasks.Task>> TaskWorkOperationsGetUsersForProfessionalRoleSelectionAsyncWithHttpInfo (int? taskWorkId, int? professionalRoleId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetUsersForProfessionalRoleSelection"); - // verify the required parameter 'professionalRoleId' is set - if (professionalRoleId == null) - throw new ApiException(400, "Missing required parameter 'professionalRoleId' when calling TaskWorkOperationsApi->TaskWorkOperationsGetUsersForProfessionalRoleSelection"); - - var localVarPath = "/api/TaskOperations/professionalroleoperation/{professionalRoleId}/usersbytaskwork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (professionalRoleId != null) localVarPathParams.Add("professionalRoleId", this.Configuration.ApiClient.ParameterToString(professionalRoleId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsGetUsersForProfessionalRoleSelection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call sets the users for a process dynamic job - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the task work - /// users list to add - /// - public void TaskWorkOperationsSetDynamicJob (int? dynamicJobId, int? taskWorkId, List users) - { - TaskWorkOperationsSetDynamicJobWithHttpInfo(dynamicJobId, taskWorkId, users); - } - - /// - /// This call sets the users for a process dynamic job - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the task work - /// users list to add - /// ApiResponse of Object(void) - public ApiResponse TaskWorkOperationsSetDynamicJobWithHttpInfo (int? dynamicJobId, int? taskWorkId, List users) - { - // verify the required parameter 'dynamicJobId' is set - if (dynamicJobId == null) - throw new ApiException(400, "Missing required parameter 'dynamicJobId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetDynamicJob"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetDynamicJob"); - // verify the required parameter 'users' is set - if (users == null) - throw new ApiException(400, "Missing required parameter 'users' when calling TaskWorkOperationsApi->TaskWorkOperationsSetDynamicJob"); - - var localVarPath = "/api/TaskOperations/dynamicjob/{dynamicJobId}/taskwork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dynamicJobId != null) localVarPathParams.Add("dynamicJobId", this.Configuration.ApiClient.ParameterToString(dynamicJobId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (users != null && users.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(users); // http body (model) parameter - } - else - { - localVarPostBody = users; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsSetDynamicJob", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the users for a process dynamic job - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the task work - /// users list to add - /// Task of void - public async System.Threading.Tasks.Task TaskWorkOperationsSetDynamicJobAsync (int? dynamicJobId, int? taskWorkId, List users) - { - await TaskWorkOperationsSetDynamicJobAsyncWithHttpInfo(dynamicJobId, taskWorkId, users); - - } - - /// - /// This call sets the users for a process dynamic job - /// - /// Thrown when fails to make API call - /// Id of the dynamic job - /// Id of the task work - /// users list to add - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkOperationsSetDynamicJobAsyncWithHttpInfo (int? dynamicJobId, int? taskWorkId, List users) - { - // verify the required parameter 'dynamicJobId' is set - if (dynamicJobId == null) - throw new ApiException(400, "Missing required parameter 'dynamicJobId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetDynamicJob"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetDynamicJob"); - // verify the required parameter 'users' is set - if (users == null) - throw new ApiException(400, "Missing required parameter 'users' when calling TaskWorkOperationsApi->TaskWorkOperationsSetDynamicJob"); - - var localVarPath = "/api/TaskOperations/dynamicjob/{dynamicJobId}/taskwork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dynamicJobId != null) localVarPathParams.Add("dynamicJobId", this.Configuration.ApiClient.ParameterToString(dynamicJobId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (users != null && users.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(users); // http body (model) parameter - } - else - { - localVarPostBody = users; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsSetDynamicJob", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the users for multiple process dynamic job - /// - /// Thrown when fails to make API call - /// Request for multiple dynamic job set - /// - public void TaskWorkOperationsSetDynamicJobMultiple (DynamicJobMultipleSetRequestDTO dynamicJobMultipleSetRequest) - { - TaskWorkOperationsSetDynamicJobMultipleWithHttpInfo(dynamicJobMultipleSetRequest); - } - - /// - /// This call sets the users for multiple process dynamic job - /// - /// Thrown when fails to make API call - /// Request for multiple dynamic job set - /// ApiResponse of Object(void) - public ApiResponse TaskWorkOperationsSetDynamicJobMultipleWithHttpInfo (DynamicJobMultipleSetRequestDTO dynamicJobMultipleSetRequest) - { - // verify the required parameter 'dynamicJobMultipleSetRequest' is set - if (dynamicJobMultipleSetRequest == null) - throw new ApiException(400, "Missing required parameter 'dynamicJobMultipleSetRequest' when calling TaskWorkOperationsApi->TaskWorkOperationsSetDynamicJobMultiple"); - - var localVarPath = "/api/TaskOperations/dynamicjobmultiple"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dynamicJobMultipleSetRequest != null && dynamicJobMultipleSetRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(dynamicJobMultipleSetRequest); // http body (model) parameter - } - else - { - localVarPostBody = dynamicJobMultipleSetRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsSetDynamicJobMultiple", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the users for multiple process dynamic job - /// - /// Thrown when fails to make API call - /// Request for multiple dynamic job set - /// Task of void - public async System.Threading.Tasks.Task TaskWorkOperationsSetDynamicJobMultipleAsync (DynamicJobMultipleSetRequestDTO dynamicJobMultipleSetRequest) - { - await TaskWorkOperationsSetDynamicJobMultipleAsyncWithHttpInfo(dynamicJobMultipleSetRequest); - - } - - /// - /// This call sets the users for multiple process dynamic job - /// - /// Thrown when fails to make API call - /// Request for multiple dynamic job set - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkOperationsSetDynamicJobMultipleAsyncWithHttpInfo (DynamicJobMultipleSetRequestDTO dynamicJobMultipleSetRequest) - { - // verify the required parameter 'dynamicJobMultipleSetRequest' is set - if (dynamicJobMultipleSetRequest == null) - throw new ApiException(400, "Missing required parameter 'dynamicJobMultipleSetRequest' when calling TaskWorkOperationsApi->TaskWorkOperationsSetDynamicJobMultiple"); - - var localVarPath = "/api/TaskOperations/dynamicjobmultiple"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dynamicJobMultipleSetRequest != null && dynamicJobMultipleSetRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(dynamicJobMultipleSetRequest); // http body (model) parameter - } - else - { - localVarPostBody = dynamicJobMultipleSetRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsSetDynamicJobMultiple", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the values for the process variables - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Process variables informations - /// - public void TaskWorkOperationsSetProcessVariableValueByTaskWorkId (int? taskWorkId, ProcessVariablesFieldsDTO processVariables) - { - TaskWorkOperationsSetProcessVariableValueByTaskWorkIdWithHttpInfo(taskWorkId, processVariables); - } - - /// - /// This call sets the values for the process variables - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Process variables informations - /// ApiResponse of Object(void) - public ApiResponse TaskWorkOperationsSetProcessVariableValueByTaskWorkIdWithHttpInfo (int? taskWorkId, ProcessVariablesFieldsDTO processVariables) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetProcessVariableValueByTaskWorkId"); - // verify the required parameter 'processVariables' is set - if (processVariables == null) - throw new ApiException(400, "Missing required parameter 'processVariables' when calling TaskWorkOperationsApi->TaskWorkOperationsSetProcessVariableValueByTaskWorkId"); - - var localVarPath = "/api/TaskOperations/{taskWorkId}/setprocessvariables"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (processVariables != null && processVariables.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(processVariables); // http body (model) parameter - } - else - { - localVarPostBody = processVariables; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsSetProcessVariableValueByTaskWorkId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the values for the process variables - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Process variables informations - /// Task of void - public async System.Threading.Tasks.Task TaskWorkOperationsSetProcessVariableValueByTaskWorkIdAsync (int? taskWorkId, ProcessVariablesFieldsDTO processVariables) - { - await TaskWorkOperationsSetProcessVariableValueByTaskWorkIdAsyncWithHttpInfo(taskWorkId, processVariables); - - } - - /// - /// This call sets the values for the process variables - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Process variables informations - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkOperationsSetProcessVariableValueByTaskWorkIdAsyncWithHttpInfo (int? taskWorkId, ProcessVariablesFieldsDTO processVariables) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetProcessVariableValueByTaskWorkId"); - // verify the required parameter 'processVariables' is set - if (processVariables == null) - throw new ApiException(400, "Missing required parameter 'processVariables' when calling TaskWorkOperationsApi->TaskWorkOperationsSetProcessVariableValueByTaskWorkId"); - - var localVarPath = "/api/TaskOperations/{taskWorkId}/setprocessvariables"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (processVariables != null && processVariables.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(processVariables); // http body (model) parameter - } - else - { - localVarPostBody = processVariables; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsSetProcessVariableValueByTaskWorkId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the professional roles users for multiple TaskWork Ids - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// If of user - /// List of taskwork id - /// - public void TaskWorkOperationsSetProfessionalRoleByTaskIds (int? professionalRoleId, int? userToAssignId, List taskWorkIds) - { - TaskWorkOperationsSetProfessionalRoleByTaskIdsWithHttpInfo(professionalRoleId, userToAssignId, taskWorkIds); - } - - /// - /// This call sets the professional roles users for multiple TaskWork Ids - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// If of user - /// List of taskwork id - /// ApiResponse of Object(void) - public ApiResponse TaskWorkOperationsSetProfessionalRoleByTaskIdsWithHttpInfo (int? professionalRoleId, int? userToAssignId, List taskWorkIds) - { - // verify the required parameter 'professionalRoleId' is set - if (professionalRoleId == null) - throw new ApiException(400, "Missing required parameter 'professionalRoleId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetProfessionalRoleByTaskIds"); - // verify the required parameter 'userToAssignId' is set - if (userToAssignId == null) - throw new ApiException(400, "Missing required parameter 'userToAssignId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetProfessionalRoleByTaskIds"); - // verify the required parameter 'taskWorkIds' is set - if (taskWorkIds == null) - throw new ApiException(400, "Missing required parameter 'taskWorkIds' when calling TaskWorkOperationsApi->TaskWorkOperationsSetProfessionalRoleByTaskIds"); - - var localVarPath = "/api/TaskOperations/professionalroleoperation/{professionalRoleId}/{userToAssignId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (professionalRoleId != null) localVarPathParams.Add("professionalRoleId", this.Configuration.ApiClient.ParameterToString(professionalRoleId)); // path parameter - if (userToAssignId != null) localVarPathParams.Add("userToAssignId", this.Configuration.ApiClient.ParameterToString(userToAssignId)); // path parameter - if (taskWorkIds != null && taskWorkIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskWorkIds); // http body (model) parameter - } - else - { - localVarPostBody = taskWorkIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsSetProfessionalRoleByTaskIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the professional roles users for multiple TaskWork Ids - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// If of user - /// List of taskwork id - /// Task of void - public async System.Threading.Tasks.Task TaskWorkOperationsSetProfessionalRoleByTaskIdsAsync (int? professionalRoleId, int? userToAssignId, List taskWorkIds) - { - await TaskWorkOperationsSetProfessionalRoleByTaskIdsAsyncWithHttpInfo(professionalRoleId, userToAssignId, taskWorkIds); - - } - - /// - /// This call sets the professional roles users for multiple TaskWork Ids - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// If of user - /// List of taskwork id - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkOperationsSetProfessionalRoleByTaskIdsAsyncWithHttpInfo (int? professionalRoleId, int? userToAssignId, List taskWorkIds) - { - // verify the required parameter 'professionalRoleId' is set - if (professionalRoleId == null) - throw new ApiException(400, "Missing required parameter 'professionalRoleId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetProfessionalRoleByTaskIds"); - // verify the required parameter 'userToAssignId' is set - if (userToAssignId == null) - throw new ApiException(400, "Missing required parameter 'userToAssignId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetProfessionalRoleByTaskIds"); - // verify the required parameter 'taskWorkIds' is set - if (taskWorkIds == null) - throw new ApiException(400, "Missing required parameter 'taskWorkIds' when calling TaskWorkOperationsApi->TaskWorkOperationsSetProfessionalRoleByTaskIds"); - - var localVarPath = "/api/TaskOperations/professionalroleoperation/{professionalRoleId}/{userToAssignId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (professionalRoleId != null) localVarPathParams.Add("professionalRoleId", this.Configuration.ApiClient.ParameterToString(professionalRoleId)); // path parameter - if (userToAssignId != null) localVarPathParams.Add("userToAssignId", this.Configuration.ApiClient.ParameterToString(userToAssignId)); // path parameter - if (taskWorkIds != null && taskWorkIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskWorkIds); // http body (model) parameter - } - else - { - localVarPostBody = taskWorkIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsSetProfessionalRoleByTaskIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the user for a professional role operation - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// Id of the user - /// - public void TaskWorkOperationsSetUsersForProfessionalRoleSelection (int? taskWorkId, int? professionalRoleId, int? userId) - { - TaskWorkOperationsSetUsersForProfessionalRoleSelectionWithHttpInfo(taskWorkId, professionalRoleId, userId); - } - - /// - /// This call sets the user for a professional role operation - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// Id of the user - /// ApiResponse of Object(void) - public ApiResponse TaskWorkOperationsSetUsersForProfessionalRoleSelectionWithHttpInfo (int? taskWorkId, int? professionalRoleId, int? userId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetUsersForProfessionalRoleSelection"); - // verify the required parameter 'professionalRoleId' is set - if (professionalRoleId == null) - throw new ApiException(400, "Missing required parameter 'professionalRoleId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetUsersForProfessionalRoleSelection"); - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetUsersForProfessionalRoleSelection"); - - var localVarPath = "/api/TaskOperations/professionalroleoperation/{professionalRoleId}/setuserbytaskwork/{taskWorkId}/{userId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (professionalRoleId != null) localVarPathParams.Add("professionalRoleId", this.Configuration.ApiClient.ParameterToString(professionalRoleId)); // path parameter - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsSetUsersForProfessionalRoleSelection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the user for a professional role operation - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// Id of the user - /// Task of void - public async System.Threading.Tasks.Task TaskWorkOperationsSetUsersForProfessionalRoleSelectionAsync (int? taskWorkId, int? professionalRoleId, int? userId) - { - await TaskWorkOperationsSetUsersForProfessionalRoleSelectionAsyncWithHttpInfo(taskWorkId, professionalRoleId, userId); - - } - - /// - /// This call sets the user for a professional role operation - /// - /// Thrown when fails to make API call - /// Id of the task work - /// Id of the professional role - /// Id of the user - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkOperationsSetUsersForProfessionalRoleSelectionAsyncWithHttpInfo (int? taskWorkId, int? professionalRoleId, int? userId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetUsersForProfessionalRoleSelection"); - // verify the required parameter 'professionalRoleId' is set - if (professionalRoleId == null) - throw new ApiException(400, "Missing required parameter 'professionalRoleId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetUsersForProfessionalRoleSelection"); - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling TaskWorkOperationsApi->TaskWorkOperationsSetUsersForProfessionalRoleSelection"); - - var localVarPath = "/api/TaskOperations/professionalroleoperation/{professionalRoleId}/setuserbytaskwork/{taskWorkId}/{userId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (professionalRoleId != null) localVarPathParams.Add("professionalRoleId", this.Configuration.ApiClient.ParameterToString(professionalRoleId)); // path parameter - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsSetUsersForProfessionalRoleSelection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// this call executes a command task operation - /// - /// Thrown when fails to make API call - /// Task id of the operation - /// Id of the command operation - /// - public void TaskWorkOperationsTaskWorkCommandExecute (int? taskWorkId, int? taskWorkCommandId) - { - TaskWorkOperationsTaskWorkCommandExecuteWithHttpInfo(taskWorkId, taskWorkCommandId); - } - - /// - /// this call executes a command task operation - /// - /// Thrown when fails to make API call - /// Task id of the operation - /// Id of the command operation - /// ApiResponse of Object(void) - public ApiResponse TaskWorkOperationsTaskWorkCommandExecuteWithHttpInfo (int? taskWorkId, int? taskWorkCommandId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsTaskWorkCommandExecute"); - // verify the required parameter 'taskWorkCommandId' is set - if (taskWorkCommandId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkCommandId' when calling TaskWorkOperationsApi->TaskWorkOperationsTaskWorkCommandExecute"); - - var localVarPath = "/api/TaskOperations/{taskWorkId}/taskworkcommand/{taskWorkCommandId}/execute"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkCommandId != null) localVarPathParams.Add("taskWorkCommandId", this.Configuration.ApiClient.ParameterToString(taskWorkCommandId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsTaskWorkCommandExecute", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// this call executes a command task operation - /// - /// Thrown when fails to make API call - /// Task id of the operation - /// Id of the command operation - /// Task of void - public async System.Threading.Tasks.Task TaskWorkOperationsTaskWorkCommandExecuteAsync (int? taskWorkId, int? taskWorkCommandId) - { - await TaskWorkOperationsTaskWorkCommandExecuteAsyncWithHttpInfo(taskWorkId, taskWorkCommandId); - - } - - /// - /// this call executes a command task operation - /// - /// Thrown when fails to make API call - /// Task id of the operation - /// Id of the command operation - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkOperationsTaskWorkCommandExecuteAsyncWithHttpInfo (int? taskWorkId, int? taskWorkCommandId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsTaskWorkCommandExecute"); - // verify the required parameter 'taskWorkCommandId' is set - if (taskWorkCommandId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkCommandId' when calling TaskWorkOperationsApi->TaskWorkOperationsTaskWorkCommandExecute"); - - var localVarPath = "/api/TaskOperations/{taskWorkId}/taskworkcommand/{taskWorkCommandId}/execute"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkCommandId != null) localVarPathParams.Add("taskWorkCommandId", this.Configuration.ApiClient.ParameterToString(taskWorkCommandId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsTaskWorkCommandExecute", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes the professional role actual value - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// Id of the task work - /// - public void TaskWorkOperationsUnSetProfessionalRoleSelection (int? professionalRoleId, int? taskWorkId) - { - TaskWorkOperationsUnSetProfessionalRoleSelectionWithHttpInfo(professionalRoleId, taskWorkId); - } - - /// - /// This call deletes the professional role actual value - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// Id of the task work - /// ApiResponse of Object(void) - public ApiResponse TaskWorkOperationsUnSetProfessionalRoleSelectionWithHttpInfo (int? professionalRoleId, int? taskWorkId) - { - // verify the required parameter 'professionalRoleId' is set - if (professionalRoleId == null) - throw new ApiException(400, "Missing required parameter 'professionalRoleId' when calling TaskWorkOperationsApi->TaskWorkOperationsUnSetProfessionalRoleSelection"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsUnSetProfessionalRoleSelection"); - - var localVarPath = "/api/TaskOperations/professionalroleoperation/{professionalRoleId}/bytaskwork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (professionalRoleId != null) localVarPathParams.Add("professionalRoleId", this.Configuration.ApiClient.ParameterToString(professionalRoleId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsUnSetProfessionalRoleSelection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes the professional role actual value - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// Id of the task work - /// Task of void - public async System.Threading.Tasks.Task TaskWorkOperationsUnSetProfessionalRoleSelectionAsync (int? professionalRoleId, int? taskWorkId) - { - await TaskWorkOperationsUnSetProfessionalRoleSelectionAsyncWithHttpInfo(professionalRoleId, taskWorkId); - - } - - /// - /// This call deletes the professional role actual value - /// - /// Thrown when fails to make API call - /// Id of the professional role - /// Id of the task work - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkOperationsUnSetProfessionalRoleSelectionAsyncWithHttpInfo (int? professionalRoleId, int? taskWorkId) - { - // verify the required parameter 'professionalRoleId' is set - if (professionalRoleId == null) - throw new ApiException(400, "Missing required parameter 'professionalRoleId' when calling TaskWorkOperationsApi->TaskWorkOperationsUnSetProfessionalRoleSelection"); - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsUnSetProfessionalRoleSelection"); - - var localVarPath = "/api/TaskOperations/professionalroleoperation/{professionalRoleId}/bytaskwork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (professionalRoleId != null) localVarPathParams.Add("professionalRoleId", this.Configuration.ApiClient.ParameterToString(professionalRoleId)); // path parameter - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsUnSetProfessionalRoleSelection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ValidationFieldResultDTO - public ValidationFieldResultDTO TaskWorkOperationsValidateVariabile (int? taskWorkId, ProcessVariableValidationDTO validationData) - { - ApiResponse localVarResponse = TaskWorkOperationsValidateVariabileWithHttpInfo(taskWorkId, validationData); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// ApiResponse of ValidationFieldResultDTO - public ApiResponse< ValidationFieldResultDTO > TaskWorkOperationsValidateVariabileWithHttpInfo (int? taskWorkId, ProcessVariableValidationDTO validationData) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsValidateVariabile"); - // verify the required parameter 'validationData' is set - if (validationData == null) - throw new ApiException(400, "Missing required parameter 'validationData' when calling TaskWorkOperationsApi->TaskWorkOperationsValidateVariabile"); - - var localVarPath = "/api/TaskOperations/{taskWorkId}/validation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (validationData != null && validationData.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(validationData); // http body (model) parameter - } - else - { - localVarPostBody = validationData; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsValidateVariabile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ValidationFieldResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ValidationFieldResultDTO))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ValidationFieldResultDTO - public async System.Threading.Tasks.Task TaskWorkOperationsValidateVariabileAsync (int? taskWorkId, ProcessVariableValidationDTO validationData) - { - ApiResponse localVarResponse = await TaskWorkOperationsValidateVariabileAsyncWithHttpInfo(taskWorkId, validationData); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (ValidationFieldResultDTO) - public async System.Threading.Tasks.Task> TaskWorkOperationsValidateVariabileAsyncWithHttpInfo (int? taskWorkId, ProcessVariableValidationDTO validationData) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkOperationsApi->TaskWorkOperationsValidateVariabile"); - // verify the required parameter 'validationData' is set - if (validationData == null) - throw new ApiException(400, "Missing required parameter 'validationData' when calling TaskWorkOperationsApi->TaskWorkOperationsValidateVariabile"); - - var localVarPath = "/api/TaskOperations/{taskWorkId}/validation"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (validationData != null && validationData.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(validationData); // http body (model) parameter - } - else - { - localVarPostBody = validationData; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkOperationsValidateVariabile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ValidationFieldResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ValidationFieldResultDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkV2Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkV2Api.cs deleted file mode 100644 index bade53e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/TaskWorkV2Api.cs +++ /dev/null @@ -1,5763 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITaskWorkV2Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns a taskwork if active - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// TaskWorkDTO - TaskWorkDTO TaskWorkV2ActivateTaskwork (int? taskWorkId); - - /// - /// This call returns a taskwork if active - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of TaskWorkDTO - ApiResponse TaskWorkV2ActivateTaskworkWithHttpInfo (int? taskWorkId); - /// - /// This call autoassigns the taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// - void TaskWorkV2AutoAssign (int? taskworkId); - - /// - /// This call autoassigns the taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of Object(void) - ApiResponse TaskWorkV2AutoAssignWithHttpInfo (int? taskworkId); - /// - /// This call returns if is possible to close task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// List<CloseEligibleResult> - List TaskWorkV2CanFinalizeTaskByIds (List taskworkids); - - /// - /// This call returns if is possible to close task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// ApiResponse of List<CloseEligibleResult> - ApiResponse> TaskWorkV2CanFinalizeTaskByIdsWithHttpInfo (List taskworkids); - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// List<CloseEligibleResult> - List TaskWorkV2CanFinalizeTaskByIdsAndExitCodeAndPassword (TaskWorkCloseRequest closeRequest); - - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// ApiResponse of List<CloseEligibleResult> - ApiResponse> TaskWorkV2CanFinalizeTaskByIdsAndExitCodeAndPasswordWithHttpInfo (TaskWorkCloseRequest closeRequest); - /// - /// This call deletes the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// - void TaskWorkV2DeleteTaskWorkById (int? taskWorkId); - - /// - /// This call deletes the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of Object(void) - ApiResponse TaskWorkV2DeleteTaskWorkByIdWithHttpInfo (int? taskWorkId); - /// - /// This call closes a task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// - void TaskWorkV2FinalizeTaskByIdsAndExitCodeAndPassword (TaskWorkCloseRequest closeRequest); - - /// - /// This call closes a task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// ApiResponse of Object(void) - ApiResponse TaskWorkV2FinalizeTaskByIdsAndExitCodeAndPasswordWithHttpInfo (TaskWorkCloseRequest closeRequest); - /// - /// This call executes a task search and return taskwork active for the user on a specific document. This call could not be compatible with some programming language, in this case use the call api/TaskWork/actives/{docnumber} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// Object - Object TaskWorkV2GetActiveTaskWork (SelectDTO select, int? docnumber); - - /// - /// This call executes a task search and return taskwork active for the user on a specific document. This call could not be compatible with some programming language, in this case use the call api/TaskWork/actives/{docnumber} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// ApiResponse of Object - ApiResponse TaskWorkV2GetActiveTaskWorkWithHttpInfo (SelectDTO select, int? docnumber); - /// - /// This call provides default select for tasklist search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SelectDTO - SelectDTO TaskWorkV2GetDefaultSelect (); - - /// - /// This call provides default select for tasklist search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - ApiResponse TaskWorkV2GetDefaultSelectWithHttpInfo (); - /// - /// This call returns the task documents. This call could not be compatible with some programming language, in this case use the call api/TaskWork/documents/{processId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// Object - Object TaskWorkV2GetDocumentsByProcessId (int? processId, SelectDTO select); - - /// - /// This call returns the task documents. This call could not be compatible with some programming language, in this case use the call api/TaskWork/documents/{processId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// ApiResponse of Object - ApiResponse TaskWorkV2GetDocumentsByProcessIdWithHttpInfo (int? processId, SelectDTO select); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<KeyValueElementDto> - List TaskWorkV2GetDocumentsFilenameByProcessId (int? processId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<KeyValueElementDto> - ApiResponse> TaskWorkV2GetDocumentsFilenameByProcessIdWithHttpInfo (int? processId); - /// - /// This call returns all possible exit code for taskWorks list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// List<TaskExitCodeDTO> - List TaskWorkV2GetExitCodesByTaskWorkIds (List taskWorkIds); - - /// - /// This call returns all possible exit code for taskWorks list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// ApiResponse of List<TaskExitCodeDTO> - ApiResponse> TaskWorkV2GetExitCodesByTaskWorkIdsWithHttpInfo (List taskWorkIds); - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// MaskProfileSchemaDTO - MaskProfileSchemaDTO TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId); - - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ApiResponse of MaskProfileSchemaDTO - ApiResponse TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId); - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ModelProfileSchemaDTO - ModelProfileSchemaDTO TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId); - - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ApiResponse of ModelProfileSchemaDTO - ApiResponse TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId); - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// MaskProfileSchemaDTO - MaskProfileSchemaDTO TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId); - - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ApiResponse of MaskProfileSchemaDTO - ApiResponse TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId); - /// - /// This call returns the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// TaskWorkDTO - TaskWorkDTO TaskWorkV2GetTaskWorkById (int? taskWorkId); - - /// - /// This call returns the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of TaskWorkDTO - ApiResponse TaskWorkV2GetTaskWorkByIdWithHttpInfo (int? taskWorkId); - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// List<TaskWorkDTO> - List TaskWorkV2GetTaskWorkForAutoAssign (int? docnumber); - - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of List<TaskWorkDTO> - ApiResponse> TaskWorkV2GetTaskWorkForAutoAssignWithHttpInfo (int? docnumber); - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions). This call could not be compatible with some programming language, in this case use the call api/TaskWork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// Object - Object TaskWorkV2GetTasks (TaskWorkRequestDTO request); - - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions). This call could not be compatible with some programming language, in this case use the call api/TaskWork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// ApiResponse of Object - ApiResponse TaskWorkV2GetTasksWithHttpInfo (TaskWorkRequestDTO request); - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// - void TaskWorkV2ReassignTaskById (int? taskworkid, TaskWorkReassignRequest reassignRequest); - - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// ApiResponse of Object(void) - ApiResponse TaskWorkV2ReassignTaskByIdWithHttpInfo (int? taskworkid, TaskWorkReassignRequest reassignRequest); - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// List<UserCompleteDTO> - List TaskWorkV2ReassignUsersTaskById (int? taskworkid); - - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of List<UserCompleteDTO> - ApiResponse> TaskWorkV2ReassignUsersTaskByIdWithHttpInfo (int? taskworkid); - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// - void TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers); - - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// ApiResponse of Object(void) - ApiResponse TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers); - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ProfileResultDTO - ProfileResultDTO TaskWorkV2SetProfileForTaskWorkMaskDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ApiResponse of ProfileResultDTO - ApiResponse TaskWorkV2SetProfileForTaskWorkMaskDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ProfileResultDTO - ProfileResultDTO TaskWorkV2SetProfileForTaskWorkModelDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ApiResponse of ProfileResultDTO - ApiResponse TaskWorkV2SetProfileForTaskWorkModelDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ProfileResultDTO - ProfileResultDTO TaskWorkV2SetProfileForTaskWorkStandardDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ApiResponse of ProfileResultDTO - ApiResponse TaskWorkV2SetProfileForTaskWorkStandardDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - /// - /// This call sets the tasks priority - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// int? - int? TaskWorkV2SetTaskPriority (List taskIds, int? priority); - - /// - /// This call sets the tasks priority - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// ApiResponse of int? - ApiResponse TaskWorkV2SetTaskPriorityWithHttpInfo (List taskIds, int? priority); - /// - /// This call sets the task as read - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task Identifier - /// int? - int? TaskWorkV2SetTaskRead (List taskid); - - /// - /// This call sets the task as read - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task Identifier - /// ApiResponse of int? - ApiResponse TaskWorkV2SetTaskReadWithHttpInfo (List taskid); - /// - /// This call sets the tasks as unread - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// int? - int? TaskWorkV2SetTaskUnRead (List taskIds); - - /// - /// This call sets the tasks as unread - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// ApiResponse of int? - ApiResponse TaskWorkV2SetTaskUnReadWithHttpInfo (List taskIds); - /// - /// This call takes charge of a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// - void TaskWorkV2TaskWorkTakeCharge (int? taskWorkId); - - /// - /// This call takes charge of a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of Object(void) - ApiResponse TaskWorkV2TaskWorkTakeChargeWithHttpInfo (int? taskWorkId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns a taskwork if active - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of TaskWorkDTO - System.Threading.Tasks.Task TaskWorkV2ActivateTaskworkAsync (int? taskWorkId); - - /// - /// This call returns a taskwork if active - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (TaskWorkDTO) - System.Threading.Tasks.Task> TaskWorkV2ActivateTaskworkAsyncWithHttpInfo (int? taskWorkId); - /// - /// This call autoassigns the taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of void - System.Threading.Tasks.Task TaskWorkV2AutoAssignAsync (int? taskworkId); - - /// - /// This call autoassigns the taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkV2AutoAssignAsyncWithHttpInfo (int? taskworkId); - /// - /// This call returns if is possible to close task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of List<CloseEligibleResult> - System.Threading.Tasks.Task> TaskWorkV2CanFinalizeTaskByIdsAsync (List taskworkids); - - /// - /// This call returns if is possible to close task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of ApiResponse (List<CloseEligibleResult>) - System.Threading.Tasks.Task>> TaskWorkV2CanFinalizeTaskByIdsAsyncWithHttpInfo (List taskworkids); - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of List<CloseEligibleResult> - System.Threading.Tasks.Task> TaskWorkV2CanFinalizeTaskByIdsAndExitCodeAndPasswordAsync (TaskWorkCloseRequest closeRequest); - - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of ApiResponse (List<CloseEligibleResult>) - System.Threading.Tasks.Task>> TaskWorkV2CanFinalizeTaskByIdsAndExitCodeAndPasswordAsyncWithHttpInfo (TaskWorkCloseRequest closeRequest); - /// - /// This call deletes the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of void - System.Threading.Tasks.Task TaskWorkV2DeleteTaskWorkByIdAsync (int? taskWorkId); - - /// - /// This call deletes the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkV2DeleteTaskWorkByIdAsyncWithHttpInfo (int? taskWorkId); - /// - /// This call closes a task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of void - System.Threading.Tasks.Task TaskWorkV2FinalizeTaskByIdsAndExitCodeAndPasswordAsync (TaskWorkCloseRequest closeRequest); - - /// - /// This call closes a task work list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkV2FinalizeTaskByIdsAndExitCodeAndPasswordAsyncWithHttpInfo (TaskWorkCloseRequest closeRequest); - /// - /// This call executes a task search and return taskwork active for the user on a specific document. This call could not be compatible with some programming language, in this case use the call api/TaskWork/actives/{docnumber} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// Task of Object - System.Threading.Tasks.Task TaskWorkV2GetActiveTaskWorkAsync (SelectDTO select, int? docnumber); - - /// - /// This call executes a task search and return taskwork active for the user on a specific document. This call could not be compatible with some programming language, in this case use the call api/TaskWork/actives/{docnumber} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> TaskWorkV2GetActiveTaskWorkAsyncWithHttpInfo (SelectDTO select, int? docnumber); - /// - /// This call provides default select for tasklist search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - System.Threading.Tasks.Task TaskWorkV2GetDefaultSelectAsync (); - - /// - /// This call provides default select for tasklist search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> TaskWorkV2GetDefaultSelectAsyncWithHttpInfo (); - /// - /// This call returns the task documents. This call could not be compatible with some programming language, in this case use the call api/TaskWork/documents/{processId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// Task of Object - System.Threading.Tasks.Task TaskWorkV2GetDocumentsByProcessIdAsync (int? processId, SelectDTO select); - - /// - /// This call returns the task documents. This call could not be compatible with some programming language, in this case use the call api/TaskWork/documents/{processId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> TaskWorkV2GetDocumentsByProcessIdAsyncWithHttpInfo (int? processId, SelectDTO select); - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<KeyValueElementDto> - System.Threading.Tasks.Task> TaskWorkV2GetDocumentsFilenameByProcessIdAsync (int? processId); - - /// - /// - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<KeyValueElementDto>) - System.Threading.Tasks.Task>> TaskWorkV2GetDocumentsFilenameByProcessIdAsyncWithHttpInfo (int? processId); - /// - /// This call returns all possible exit code for taskWorks list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of List<TaskExitCodeDTO> - System.Threading.Tasks.Task> TaskWorkV2GetExitCodesByTaskWorkIdsAsync (List taskWorkIds); - - /// - /// This call returns all possible exit code for taskWorks list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of ApiResponse (List<TaskExitCodeDTO>) - System.Threading.Tasks.Task>> TaskWorkV2GetExitCodesByTaskWorkIdsAsyncWithHttpInfo (List taskWorkIds); - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of MaskProfileSchemaDTO - System.Threading.Tasks.Task TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId); - - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ApiResponse (MaskProfileSchemaDTO) - System.Threading.Tasks.Task> TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId); - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ModelProfileSchemaDTO - System.Threading.Tasks.Task TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId); - - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ApiResponse (ModelProfileSchemaDTO) - System.Threading.Tasks.Task> TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId); - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of MaskProfileSchemaDTO - System.Threading.Tasks.Task TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId); - - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ApiResponse (MaskProfileSchemaDTO) - System.Threading.Tasks.Task> TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId); - /// - /// This call returns the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of TaskWorkDTO - System.Threading.Tasks.Task TaskWorkV2GetTaskWorkByIdAsync (int? taskWorkId); - - /// - /// This call returns the task - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (TaskWorkDTO) - System.Threading.Tasks.Task> TaskWorkV2GetTaskWorkByIdAsyncWithHttpInfo (int? taskWorkId); - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of List<TaskWorkDTO> - System.Threading.Tasks.Task> TaskWorkV2GetTaskWorkForAutoAssignAsync (int? docnumber); - - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (List<TaskWorkDTO>) - System.Threading.Tasks.Task>> TaskWorkV2GetTaskWorkForAutoAssignAsyncWithHttpInfo (int? docnumber); - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions). This call could not be compatible with some programming language, in this case use the call api/TaskWork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// Task of Object - System.Threading.Tasks.Task TaskWorkV2GetTasksAsync (TaskWorkRequestDTO request); - - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions). This call could not be compatible with some programming language, in this case use the call api/TaskWork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> TaskWorkV2GetTasksAsyncWithHttpInfo (TaskWorkRequestDTO request); - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// Task of void - System.Threading.Tasks.Task TaskWorkV2ReassignTaskByIdAsync (int? taskworkid, TaskWorkReassignRequest reassignRequest); - - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkV2ReassignTaskByIdAsyncWithHttpInfo (int? taskworkid, TaskWorkReassignRequest reassignRequest); - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of List<UserCompleteDTO> - System.Threading.Tasks.Task> TaskWorkV2ReassignUsersTaskByIdAsync (int? taskworkid); - - /// - /// This call reassigns a task to selected users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (List<UserCompleteDTO>) - System.Threading.Tasks.Task>> TaskWorkV2ReassignUsersTaskByIdAsyncWithHttpInfo (int? taskworkid); - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// Task of void - System.Threading.Tasks.Task TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers); - - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers); - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ProfileResultDTO - System.Threading.Tasks.Task TaskWorkV2SetProfileForTaskWorkMaskDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - System.Threading.Tasks.Task> TaskWorkV2SetProfileForTaskWorkMaskDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ProfileResultDTO - System.Threading.Tasks.Task TaskWorkV2SetProfileForTaskWorkModelDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - System.Threading.Tasks.Task> TaskWorkV2SetProfileForTaskWorkModelDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ProfileResultDTO - System.Threading.Tasks.Task TaskWorkV2SetProfileForTaskWorkStandardDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - System.Threading.Tasks.Task> TaskWorkV2SetProfileForTaskWorkStandardDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null); - /// - /// This call sets the tasks priority - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// Task of int? - System.Threading.Tasks.Task TaskWorkV2SetTaskPriorityAsync (List taskIds, int? priority); - - /// - /// This call sets the tasks priority - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// Task of ApiResponse (int?) - System.Threading.Tasks.Task> TaskWorkV2SetTaskPriorityAsyncWithHttpInfo (List taskIds, int? priority); - /// - /// This call sets the task as read - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task Identifier - /// Task of int? - System.Threading.Tasks.Task TaskWorkV2SetTaskReadAsync (List taskid); - - /// - /// This call sets the task as read - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task Identifier - /// Task of ApiResponse (int?) - System.Threading.Tasks.Task> TaskWorkV2SetTaskReadAsyncWithHttpInfo (List taskid); - /// - /// This call sets the tasks as unread - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Task of int? - System.Threading.Tasks.Task TaskWorkV2SetTaskUnReadAsync (List taskIds); - - /// - /// This call sets the tasks as unread - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Task of ApiResponse (int?) - System.Threading.Tasks.Task> TaskWorkV2SetTaskUnReadAsyncWithHttpInfo (List taskIds); - /// - /// This call takes charge of a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of void - System.Threading.Tasks.Task TaskWorkV2TaskWorkTakeChargeAsync (int? taskWorkId); - - /// - /// This call takes charge of a taskwork - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TaskWorkV2TaskWorkTakeChargeAsyncWithHttpInfo (int? taskWorkId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TaskWorkV2Api : ITaskWorkV2Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TaskWorkV2Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TaskWorkV2Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns a taskwork if active - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// TaskWorkDTO - public TaskWorkDTO TaskWorkV2ActivateTaskwork (int? taskWorkId) - { - ApiResponse localVarResponse = TaskWorkV2ActivateTaskworkWithHttpInfo(taskWorkId); - return localVarResponse.Data; - } - - /// - /// This call returns a taskwork if active - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of TaskWorkDTO - public ApiResponse< TaskWorkDTO > TaskWorkV2ActivateTaskworkWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2ActivateTaskwork"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/Activate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2ActivateTaskwork", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkDTO))); - } - - /// - /// This call returns a taskwork if active - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of TaskWorkDTO - public async System.Threading.Tasks.Task TaskWorkV2ActivateTaskworkAsync (int? taskWorkId) - { - ApiResponse localVarResponse = await TaskWorkV2ActivateTaskworkAsyncWithHttpInfo(taskWorkId); - return localVarResponse.Data; - - } - - /// - /// This call returns a taskwork if active - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (TaskWorkDTO) - public async System.Threading.Tasks.Task> TaskWorkV2ActivateTaskworkAsyncWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2ActivateTaskwork"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/Activate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2ActivateTaskwork", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkDTO))); - } - - /// - /// This call autoassigns the taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// - public void TaskWorkV2AutoAssign (int? taskworkId) - { - TaskWorkV2AutoAssignWithHttpInfo(taskworkId); - } - - /// - /// This call autoassigns the taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of Object(void) - public ApiResponse TaskWorkV2AutoAssignWithHttpInfo (int? taskworkId) - { - // verify the required parameter 'taskworkId' is set - if (taskworkId == null) - throw new ApiException(400, "Missing required parameter 'taskworkId' when calling TaskWorkV2Api->TaskWorkV2AutoAssign"); - - var localVarPath = "/api/v2/TaskWork/autoassign/{taskworkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkId != null) localVarPathParams.Add("taskworkId", this.Configuration.ApiClient.ParameterToString(taskworkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2AutoAssign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call autoassigns the taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of void - public async System.Threading.Tasks.Task TaskWorkV2AutoAssignAsync (int? taskworkId) - { - await TaskWorkV2AutoAssignAsyncWithHttpInfo(taskworkId); - - } - - /// - /// This call autoassigns the taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkV2AutoAssignAsyncWithHttpInfo (int? taskworkId) - { - // verify the required parameter 'taskworkId' is set - if (taskworkId == null) - throw new ApiException(400, "Missing required parameter 'taskworkId' when calling TaskWorkV2Api->TaskWorkV2AutoAssign"); - - var localVarPath = "/api/v2/TaskWork/autoassign/{taskworkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkId != null) localVarPathParams.Add("taskworkId", this.Configuration.ApiClient.ParameterToString(taskworkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2AutoAssign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns if is possible to close task work list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// List<CloseEligibleResult> - public List TaskWorkV2CanFinalizeTaskByIds (List taskworkids) - { - ApiResponse> localVarResponse = TaskWorkV2CanFinalizeTaskByIdsWithHttpInfo(taskworkids); - return localVarResponse.Data; - } - - /// - /// This call returns if is possible to close task work list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// ApiResponse of List<CloseEligibleResult> - public ApiResponse< List > TaskWorkV2CanFinalizeTaskByIdsWithHttpInfo (List taskworkids) - { - // verify the required parameter 'taskworkids' is set - if (taskworkids == null) - throw new ApiException(400, "Missing required parameter 'taskworkids' when calling TaskWorkV2Api->TaskWorkV2CanFinalizeTaskByIds"); - - var localVarPath = "/api/v2/TaskWork/canfinalize"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkids != null && taskworkids.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskworkids); // http body (model) parameter - } - else - { - localVarPostBody = taskworkids; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2CanFinalizeTaskByIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns if is possible to close task work list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of List<CloseEligibleResult> - public async System.Threading.Tasks.Task> TaskWorkV2CanFinalizeTaskByIdsAsync (List taskworkids) - { - ApiResponse> localVarResponse = await TaskWorkV2CanFinalizeTaskByIdsAsyncWithHttpInfo(taskworkids); - return localVarResponse.Data; - - } - - /// - /// This call returns if is possible to close task work list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of ApiResponse (List<CloseEligibleResult>) - public async System.Threading.Tasks.Task>> TaskWorkV2CanFinalizeTaskByIdsAsyncWithHttpInfo (List taskworkids) - { - // verify the required parameter 'taskworkids' is set - if (taskworkids == null) - throw new ApiException(400, "Missing required parameter 'taskworkids' when calling TaskWorkV2Api->TaskWorkV2CanFinalizeTaskByIds"); - - var localVarPath = "/api/v2/TaskWork/canfinalize"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkids != null && taskworkids.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskworkids); // http body (model) parameter - } - else - { - localVarPostBody = taskworkids; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2CanFinalizeTaskByIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// Thrown when fails to make API call - /// Taskwork information - /// List<CloseEligibleResult> - public List TaskWorkV2CanFinalizeTaskByIdsAndExitCodeAndPassword (TaskWorkCloseRequest closeRequest) - { - ApiResponse> localVarResponse = TaskWorkV2CanFinalizeTaskByIdsAndExitCodeAndPasswordWithHttpInfo(closeRequest); - return localVarResponse.Data; - } - - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// Thrown when fails to make API call - /// Taskwork information - /// ApiResponse of List<CloseEligibleResult> - public ApiResponse< List > TaskWorkV2CanFinalizeTaskByIdsAndExitCodeAndPasswordWithHttpInfo (TaskWorkCloseRequest closeRequest) - { - // verify the required parameter 'closeRequest' is set - if (closeRequest == null) - throw new ApiException(400, "Missing required parameter 'closeRequest' when calling TaskWorkV2Api->TaskWorkV2CanFinalizeTaskByIdsAndExitCodeAndPassword"); - - var localVarPath = "/api/v2/TaskWork/canfinalizebyexitcodeandpassword"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (closeRequest != null && closeRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(closeRequest); // http body (model) parameter - } - else - { - localVarPostBody = closeRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2CanFinalizeTaskByIdsAndExitCodeAndPassword", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of List<CloseEligibleResult> - public async System.Threading.Tasks.Task> TaskWorkV2CanFinalizeTaskByIdsAndExitCodeAndPasswordAsync (TaskWorkCloseRequest closeRequest) - { - ApiResponse> localVarResponse = await TaskWorkV2CanFinalizeTaskByIdsAndExitCodeAndPasswordAsyncWithHttpInfo(closeRequest); - return localVarResponse.Data; - - } - - /// - /// This call returns if is possible to close task work list by exit code and password - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of ApiResponse (List<CloseEligibleResult>) - public async System.Threading.Tasks.Task>> TaskWorkV2CanFinalizeTaskByIdsAndExitCodeAndPasswordAsyncWithHttpInfo (TaskWorkCloseRequest closeRequest) - { - // verify the required parameter 'closeRequest' is set - if (closeRequest == null) - throw new ApiException(400, "Missing required parameter 'closeRequest' when calling TaskWorkV2Api->TaskWorkV2CanFinalizeTaskByIdsAndExitCodeAndPassword"); - - var localVarPath = "/api/v2/TaskWork/canfinalizebyexitcodeandpassword"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (closeRequest != null && closeRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(closeRequest); // http body (model) parameter - } - else - { - localVarPostBody = closeRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2CanFinalizeTaskByIdsAndExitCodeAndPassword", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call deletes the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// - public void TaskWorkV2DeleteTaskWorkById (int? taskWorkId) - { - TaskWorkV2DeleteTaskWorkByIdWithHttpInfo(taskWorkId); - } - - /// - /// This call deletes the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of Object(void) - public ApiResponse TaskWorkV2DeleteTaskWorkByIdWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2DeleteTaskWorkById"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2DeleteTaskWorkById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of void - public async System.Threading.Tasks.Task TaskWorkV2DeleteTaskWorkByIdAsync (int? taskWorkId) - { - await TaskWorkV2DeleteTaskWorkByIdAsyncWithHttpInfo(taskWorkId); - - } - - /// - /// This call deletes the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkV2DeleteTaskWorkByIdAsyncWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2DeleteTaskWorkById"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2DeleteTaskWorkById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call closes a task work list - /// - /// Thrown when fails to make API call - /// Taskwork information - /// - public void TaskWorkV2FinalizeTaskByIdsAndExitCodeAndPassword (TaskWorkCloseRequest closeRequest) - { - TaskWorkV2FinalizeTaskByIdsAndExitCodeAndPasswordWithHttpInfo(closeRequest); - } - - /// - /// This call closes a task work list - /// - /// Thrown when fails to make API call - /// Taskwork information - /// ApiResponse of Object(void) - public ApiResponse TaskWorkV2FinalizeTaskByIdsAndExitCodeAndPasswordWithHttpInfo (TaskWorkCloseRequest closeRequest) - { - // verify the required parameter 'closeRequest' is set - if (closeRequest == null) - throw new ApiException(400, "Missing required parameter 'closeRequest' when calling TaskWorkV2Api->TaskWorkV2FinalizeTaskByIdsAndExitCodeAndPassword"); - - var localVarPath = "/api/v2/TaskWork/finalize"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (closeRequest != null && closeRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(closeRequest); // http body (model) parameter - } - else - { - localVarPostBody = closeRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2FinalizeTaskByIdsAndExitCodeAndPassword", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call closes a task work list - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of void - public async System.Threading.Tasks.Task TaskWorkV2FinalizeTaskByIdsAndExitCodeAndPasswordAsync (TaskWorkCloseRequest closeRequest) - { - await TaskWorkV2FinalizeTaskByIdsAndExitCodeAndPasswordAsyncWithHttpInfo(closeRequest); - - } - - /// - /// This call closes a task work list - /// - /// Thrown when fails to make API call - /// Taskwork information - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkV2FinalizeTaskByIdsAndExitCodeAndPasswordAsyncWithHttpInfo (TaskWorkCloseRequest closeRequest) - { - // verify the required parameter 'closeRequest' is set - if (closeRequest == null) - throw new ApiException(400, "Missing required parameter 'closeRequest' when calling TaskWorkV2Api->TaskWorkV2FinalizeTaskByIdsAndExitCodeAndPassword"); - - var localVarPath = "/api/v2/TaskWork/finalize"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (closeRequest != null && closeRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(closeRequest); // http body (model) parameter - } - else - { - localVarPostBody = closeRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2FinalizeTaskByIdsAndExitCodeAndPassword", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call executes a task search and return taskwork active for the user on a specific document. This call could not be compatible with some programming language, in this case use the call api/TaskWork/actives/{docnumber} - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// Object - public Object TaskWorkV2GetActiveTaskWork (SelectDTO select, int? docnumber) - { - ApiResponse localVarResponse = TaskWorkV2GetActiveTaskWorkWithHttpInfo(select, docnumber); - return localVarResponse.Data; - } - - /// - /// This call executes a task search and return taskwork active for the user on a specific document. This call could not be compatible with some programming language, in this case use the call api/TaskWork/actives/{docnumber} - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// ApiResponse of Object - public ApiResponse< Object > TaskWorkV2GetActiveTaskWorkWithHttpInfo (SelectDTO select, int? docnumber) - { - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling TaskWorkV2Api->TaskWorkV2GetActiveTaskWork"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling TaskWorkV2Api->TaskWorkV2GetActiveTaskWork"); - - var localVarPath = "/api/v2/TaskWork/actives/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetActiveTaskWork", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call executes a task search and return taskwork active for the user on a specific document. This call could not be compatible with some programming language, in this case use the call api/TaskWork/actives/{docnumber} - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// Task of Object - public async System.Threading.Tasks.Task TaskWorkV2GetActiveTaskWorkAsync (SelectDTO select, int? docnumber) - { - ApiResponse localVarResponse = await TaskWorkV2GetActiveTaskWorkAsyncWithHttpInfo(select, docnumber); - return localVarResponse.Data; - - } - - /// - /// This call executes a task search and return taskwork active for the user on a specific document. This call could not be compatible with some programming language, in this case use the call api/TaskWork/actives/{docnumber} - /// - /// Thrown when fails to make API call - /// Selection Fields - /// Document Identifier - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> TaskWorkV2GetActiveTaskWorkAsyncWithHttpInfo (SelectDTO select, int? docnumber) - { - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling TaskWorkV2Api->TaskWorkV2GetActiveTaskWork"); - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling TaskWorkV2Api->TaskWorkV2GetActiveTaskWork"); - - var localVarPath = "/api/v2/TaskWork/actives/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetActiveTaskWork", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call provides default select for tasklist search - /// - /// Thrown when fails to make API call - /// SelectDTO - public SelectDTO TaskWorkV2GetDefaultSelect () - { - ApiResponse localVarResponse = TaskWorkV2GetDefaultSelectWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call provides default select for tasklist search - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > TaskWorkV2GetDefaultSelectWithHttpInfo () - { - - var localVarPath = "/api/v2/TaskWork/defaultselect"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetDefaultSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call provides default select for tasklist search - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - public async System.Threading.Tasks.Task TaskWorkV2GetDefaultSelectAsync () - { - ApiResponse localVarResponse = await TaskWorkV2GetDefaultSelectAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call provides default select for tasklist search - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> TaskWorkV2GetDefaultSelectAsyncWithHttpInfo () - { - - var localVarPath = "/api/v2/TaskWork/defaultselect"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetDefaultSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns the task documents. This call could not be compatible with some programming language, in this case use the call api/TaskWork/documents/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// Object - public Object TaskWorkV2GetDocumentsByProcessId (int? processId, SelectDTO select) - { - ApiResponse localVarResponse = TaskWorkV2GetDocumentsByProcessIdWithHttpInfo(processId, select); - return localVarResponse.Data; - } - - /// - /// This call returns the task documents. This call could not be compatible with some programming language, in this case use the call api/TaskWork/documents/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// ApiResponse of Object - public ApiResponse< Object > TaskWorkV2GetDocumentsByProcessIdWithHttpInfo (int? processId, SelectDTO select) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkV2Api->TaskWorkV2GetDocumentsByProcessId"); - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling TaskWorkV2Api->TaskWorkV2GetDocumentsByProcessId"); - - var localVarPath = "/api/v2/TaskWork/documents/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetDocumentsByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the task documents. This call could not be compatible with some programming language, in this case use the call api/TaskWork/documents/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// Task of Object - public async System.Threading.Tasks.Task TaskWorkV2GetDocumentsByProcessIdAsync (int? processId, SelectDTO select) - { - ApiResponse localVarResponse = await TaskWorkV2GetDocumentsByProcessIdAsyncWithHttpInfo(processId, select); - return localVarResponse.Data; - - } - - /// - /// This call returns the task documents. This call could not be compatible with some programming language, in this case use the call api/TaskWork/documents/{processId} - /// - /// Thrown when fails to make API call - /// Process identifier - /// Field select configuration - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> TaskWorkV2GetDocumentsByProcessIdAsyncWithHttpInfo (int? processId, SelectDTO select) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkV2Api->TaskWorkV2GetDocumentsByProcessId"); - // verify the required parameter 'select' is set - if (select == null) - throw new ApiException(400, "Missing required parameter 'select' when calling TaskWorkV2Api->TaskWorkV2GetDocumentsByProcessId"); - - var localVarPath = "/api/v2/TaskWork/documents/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (select != null && select.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(select); // http body (model) parameter - } - else - { - localVarPostBody = select; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetDocumentsByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<KeyValueElementDto> - public List TaskWorkV2GetDocumentsFilenameByProcessId (int? processId) - { - ApiResponse> localVarResponse = TaskWorkV2GetDocumentsFilenameByProcessIdWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<KeyValueElementDto> - public ApiResponse< List > TaskWorkV2GetDocumentsFilenameByProcessIdWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkV2Api->TaskWorkV2GetDocumentsFilenameByProcessId"); - - var localVarPath = "/api/v2/TaskWork/documents/filenames/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetDocumentsFilenameByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<KeyValueElementDto> - public async System.Threading.Tasks.Task> TaskWorkV2GetDocumentsFilenameByProcessIdAsync (int? processId) - { - ApiResponse> localVarResponse = await TaskWorkV2GetDocumentsFilenameByProcessIdAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<KeyValueElementDto>) - public async System.Threading.Tasks.Task>> TaskWorkV2GetDocumentsFilenameByProcessIdAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling TaskWorkV2Api->TaskWorkV2GetDocumentsFilenameByProcessId"); - - var localVarPath = "/api/v2/TaskWork/documents/filenames/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetDocumentsFilenameByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all possible exit code for taskWorks list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// List<TaskExitCodeDTO> - public List TaskWorkV2GetExitCodesByTaskWorkIds (List taskWorkIds) - { - ApiResponse> localVarResponse = TaskWorkV2GetExitCodesByTaskWorkIdsWithHttpInfo(taskWorkIds); - return localVarResponse.Data; - } - - /// - /// This call returns all possible exit code for taskWorks list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// ApiResponse of List<TaskExitCodeDTO> - public ApiResponse< List > TaskWorkV2GetExitCodesByTaskWorkIdsWithHttpInfo (List taskWorkIds) - { - // verify the required parameter 'taskWorkIds' is set - if (taskWorkIds == null) - throw new ApiException(400, "Missing required parameter 'taskWorkIds' when calling TaskWorkV2Api->TaskWorkV2GetExitCodesByTaskWorkIds"); - - var localVarPath = "/api/v2/TaskWork/exitcodes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkIds != null && taskWorkIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskWorkIds); // http body (model) parameter - } - else - { - localVarPostBody = taskWorkIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetExitCodesByTaskWorkIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all possible exit code for taskWorks list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of List<TaskExitCodeDTO> - public async System.Threading.Tasks.Task> TaskWorkV2GetExitCodesByTaskWorkIdsAsync (List taskWorkIds) - { - ApiResponse> localVarResponse = await TaskWorkV2GetExitCodesByTaskWorkIdsAsyncWithHttpInfo(taskWorkIds); - return localVarResponse.Data; - - } - - /// - /// This call returns all possible exit code for taskWorks list - /// - /// Thrown when fails to make API call - /// List of taskwork identifier - /// Task of ApiResponse (List<TaskExitCodeDTO>) - public async System.Threading.Tasks.Task>> TaskWorkV2GetExitCodesByTaskWorkIdsAsyncWithHttpInfo (List taskWorkIds) - { - // verify the required parameter 'taskWorkIds' is set - if (taskWorkIds == null) - throw new ApiException(400, "Missing required parameter 'taskWorkIds' when calling TaskWorkV2Api->TaskWorkV2GetExitCodesByTaskWorkIds"); - - var localVarPath = "/api/v2/TaskWork/exitcodes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkIds != null && taskWorkIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskWorkIds); // http body (model) parameter - } - else - { - localVarPostBody = taskWorkIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetExitCodesByTaskWorkIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// MaskProfileSchemaDTO - public MaskProfileSchemaDTO TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId) - { - ApiResponse localVarResponse = TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperationWithHttpInfo(taskWorkId, taskWorkDocumentOperationId); - return localVarResponse.Data; - } - - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ApiResponse of MaskProfileSchemaDTO - public ApiResponse< MaskProfileSchemaDTO > TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkV2Api->TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperation"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/maskprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of MaskProfileSchemaDTO - public async System.Threading.Tasks.Task TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId) - { - ApiResponse localVarResponse = await TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperationAsyncWithHttpInfo(taskWorkId, taskWorkDocumentOperationId); - return localVarResponse.Data; - - } - - /// - /// This call returns a document schema for a mask insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ApiResponse (MaskProfileSchemaDTO) - public async System.Threading.Tasks.Task> TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkV2Api->TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperation"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/maskprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetProfileSchemaForTaskWorkMaskDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ModelProfileSchemaDTO - public ModelProfileSchemaDTO TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId) - { - ApiResponse localVarResponse = TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperationWithHttpInfo(taskWorkId, taskWorkDocumentOperationId); - return localVarResponse.Data; - } - - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ApiResponse of ModelProfileSchemaDTO - public ApiResponse< ModelProfileSchemaDTO > TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkV2Api->TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperation"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/modelprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ModelProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelProfileSchemaDTO))); - } - - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ModelProfileSchemaDTO - public async System.Threading.Tasks.Task TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId) - { - ApiResponse localVarResponse = await TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperationAsyncWithHttpInfo(taskWorkId, taskWorkDocumentOperationId); - return localVarResponse.Data; - - } - - /// - /// This call returns a profile schema for a model insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ApiResponse (ModelProfileSchemaDTO) - public async System.Threading.Tasks.Task> TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkV2Api->TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperation"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/modelprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetProfileSchemaForTaskWorkModelDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ModelProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelProfileSchemaDTO))); - } - - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// MaskProfileSchemaDTO - public MaskProfileSchemaDTO TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId) - { - ApiResponse localVarResponse = TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperationWithHttpInfo(taskWorkId, taskWorkDocumentOperationId); - return localVarResponse.Data; - } - - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// ApiResponse of MaskProfileSchemaDTO - public ApiResponse< MaskProfileSchemaDTO > TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkV2Api->TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperation"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/standardprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of MaskProfileSchemaDTO - public async System.Threading.Tasks.Task TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId) - { - ApiResponse localVarResponse = await TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperationAsyncWithHttpInfo(taskWorkId, taskWorkDocumentOperationId); - return localVarResponse.Data; - - } - - /// - /// This call returns a profile schema for a standard insert document taskWork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Id of the operation - /// Task of ApiResponse (MaskProfileSchemaDTO) - public async System.Threading.Tasks.Task> TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkV2Api->TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperation"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/standardprofileSchema"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetProfileSchemaForTaskWorkStandardDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MaskProfileSchemaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MaskProfileSchemaDTO))); - } - - /// - /// This call returns the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// TaskWorkDTO - public TaskWorkDTO TaskWorkV2GetTaskWorkById (int? taskWorkId) - { - ApiResponse localVarResponse = TaskWorkV2GetTaskWorkByIdWithHttpInfo(taskWorkId); - return localVarResponse.Data; - } - - /// - /// This call returns the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of TaskWorkDTO - public ApiResponse< TaskWorkDTO > TaskWorkV2GetTaskWorkByIdWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2GetTaskWorkById"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetTaskWorkById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkDTO))); - } - - /// - /// This call returns the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of TaskWorkDTO - public async System.Threading.Tasks.Task TaskWorkV2GetTaskWorkByIdAsync (int? taskWorkId) - { - ApiResponse localVarResponse = await TaskWorkV2GetTaskWorkByIdAsyncWithHttpInfo(taskWorkId); - return localVarResponse.Data; - - } - - /// - /// This call returns the task - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (TaskWorkDTO) - public async System.Threading.Tasks.Task> TaskWorkV2GetTaskWorkByIdAsyncWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2GetTaskWorkById"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetTaskWorkById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TaskWorkDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskWorkDTO))); - } - - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// List<TaskWorkDTO> - public List TaskWorkV2GetTaskWorkForAutoAssign (int? docnumber) - { - ApiResponse> localVarResponse = TaskWorkV2GetTaskWorkForAutoAssignWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// ApiResponse of List<TaskWorkDTO> - public ApiResponse< List > TaskWorkV2GetTaskWorkForAutoAssignWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling TaskWorkV2Api->TaskWorkV2GetTaskWorkForAutoAssign"); - - var localVarPath = "/api/v2/TaskWork/autoassignlist/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetTaskWorkForAutoAssign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of List<TaskWorkDTO> - public async System.Threading.Tasks.Task> TaskWorkV2GetTaskWorkForAutoAssignAsync (int? docnumber) - { - ApiResponse> localVarResponse = await TaskWorkV2GetTaskWorkForAutoAssignAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns all autoassigned taskwork associated with a document - /// - /// Thrown when fails to make API call - /// Document identifier - /// Task of ApiResponse (List<TaskWorkDTO>) - public async System.Threading.Tasks.Task>> TaskWorkV2GetTaskWorkForAutoAssignAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling TaskWorkV2Api->TaskWorkV2GetTaskWorkForAutoAssign"); - - var localVarPath = "/api/v2/TaskWork/autoassignlist/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetTaskWorkForAutoAssign", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions). This call could not be compatible with some programming language, in this case use the call api/TaskWork - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// Object - public Object TaskWorkV2GetTasks (TaskWorkRequestDTO request) - { - ApiResponse localVarResponse = TaskWorkV2GetTasksWithHttpInfo(request); - return localVarResponse.Data; - } - - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions). This call could not be compatible with some programming language, in this case use the call api/TaskWork - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// ApiResponse of Object - public ApiResponse< Object > TaskWorkV2GetTasksWithHttpInfo (TaskWorkRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling TaskWorkV2Api->TaskWorkV2GetTasks"); - - var localVarPath = "/api/v2/TaskWork"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetTasks", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions). This call could not be compatible with some programming language, in this case use the call api/TaskWork - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// Task of Object - public async System.Threading.Tasks.Task TaskWorkV2GetTasksAsync (TaskWorkRequestDTO request) - { - ApiResponse localVarResponse = await TaskWorkV2GetTasksAsyncWithHttpInfo(request); - return localVarResponse.Data; - - } - - /// - /// This call executes a task search and return taskwork active for the user and the given workflows ids (with all revisions). This call could not be compatible with some programming language, in this case use the call api/TaskWork - /// - /// Thrown when fails to make API call - /// The request object that defines select parte and workflows ids, if workflows ids is null or empty returns all taskWork for the user - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> TaskWorkV2GetTasksAsyncWithHttpInfo (TaskWorkRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling TaskWorkV2Api->TaskWorkV2GetTasks"); - - var localVarPath = "/api/v2/TaskWork"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2GetTasks", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// - public void TaskWorkV2ReassignTaskById (int? taskworkid, TaskWorkReassignRequest reassignRequest) - { - TaskWorkV2ReassignTaskByIdWithHttpInfo(taskworkid, reassignRequest); - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// ApiResponse of Object(void) - public ApiResponse TaskWorkV2ReassignTaskByIdWithHttpInfo (int? taskworkid, TaskWorkReassignRequest reassignRequest) - { - // verify the required parameter 'taskworkid' is set - if (taskworkid == null) - throw new ApiException(400, "Missing required parameter 'taskworkid' when calling TaskWorkV2Api->TaskWorkV2ReassignTaskById"); - // verify the required parameter 'reassignRequest' is set - if (reassignRequest == null) - throw new ApiException(400, "Missing required parameter 'reassignRequest' when calling TaskWorkV2Api->TaskWorkV2ReassignTaskById"); - - var localVarPath = "/api/v2/TaskWork/reassign/{taskworkid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkid != null) localVarPathParams.Add("taskworkid", this.Configuration.ApiClient.ParameterToString(taskworkid)); // path parameter - if (reassignRequest != null && reassignRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(reassignRequest); // http body (model) parameter - } - else - { - localVarPostBody = reassignRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2ReassignTaskById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// Task of void - public async System.Threading.Tasks.Task TaskWorkV2ReassignTaskByIdAsync (int? taskworkid, TaskWorkReassignRequest reassignRequest) - { - await TaskWorkV2ReassignTaskByIdAsyncWithHttpInfo(taskworkid, reassignRequest); - - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Information for re assign operation request - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkV2ReassignTaskByIdAsyncWithHttpInfo (int? taskworkid, TaskWorkReassignRequest reassignRequest) - { - // verify the required parameter 'taskworkid' is set - if (taskworkid == null) - throw new ApiException(400, "Missing required parameter 'taskworkid' when calling TaskWorkV2Api->TaskWorkV2ReassignTaskById"); - // verify the required parameter 'reassignRequest' is set - if (reassignRequest == null) - throw new ApiException(400, "Missing required parameter 'reassignRequest' when calling TaskWorkV2Api->TaskWorkV2ReassignTaskById"); - - var localVarPath = "/api/v2/TaskWork/reassign/{taskworkid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkid != null) localVarPathParams.Add("taskworkid", this.Configuration.ApiClient.ParameterToString(taskworkid)); // path parameter - if (reassignRequest != null && reassignRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(reassignRequest); // http body (model) parameter - } - else - { - localVarPostBody = reassignRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2ReassignTaskById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// List<UserCompleteDTO> - public List TaskWorkV2ReassignUsersTaskById (int? taskworkid) - { - ApiResponse> localVarResponse = TaskWorkV2ReassignUsersTaskByIdWithHttpInfo(taskworkid); - return localVarResponse.Data; - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of List<UserCompleteDTO> - public ApiResponse< List > TaskWorkV2ReassignUsersTaskByIdWithHttpInfo (int? taskworkid) - { - // verify the required parameter 'taskworkid' is set - if (taskworkid == null) - throw new ApiException(400, "Missing required parameter 'taskworkid' when calling TaskWorkV2Api->TaskWorkV2ReassignUsersTaskById"); - - var localVarPath = "/api/v2/TaskWork/reassignusers/{taskworkid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkid != null) localVarPathParams.Add("taskworkid", this.Configuration.ApiClient.ParameterToString(taskworkid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2ReassignUsersTaskById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of List<UserCompleteDTO> - public async System.Threading.Tasks.Task> TaskWorkV2ReassignUsersTaskByIdAsync (int? taskworkid) - { - ApiResponse> localVarResponse = await TaskWorkV2ReassignUsersTaskByIdAsyncWithHttpInfo(taskworkid); - return localVarResponse.Data; - - } - - /// - /// This call reassigns a task to selected users - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse (List<UserCompleteDTO>) - public async System.Threading.Tasks.Task>> TaskWorkV2ReassignUsersTaskByIdAsyncWithHttpInfo (int? taskworkid) - { - // verify the required parameter 'taskworkid' is set - if (taskworkid == null) - throw new ApiException(400, "Missing required parameter 'taskworkid' when calling TaskWorkV2Api->TaskWorkV2ReassignUsersTaskById"); - - var localVarPath = "/api/v2/TaskWork/reassignusers/{taskworkid}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkid != null) localVarPathParams.Add("taskworkid", this.Configuration.ApiClient.ParameterToString(taskworkid)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2ReassignUsersTaskById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// - public void TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers) - { - TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperationWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, docnumbers); - } - - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// ApiResponse of Object(void) - public ApiResponse TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperation"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperation"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/byselection"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// Task of void - public async System.Threading.Tasks.Task TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers) - { - await TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperationAsyncWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, docnumbers); - - } - - /// - /// This call adds a profile to process for a selection document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// List of document identifier to add - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, List docnumbers) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperation"); - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperation"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/byselection"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2SetProfileForTaskWorkBySelectionDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ProfileResultDTO - public ProfileResultDTO TaskWorkV2SetProfileForTaskWorkMaskDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = TaskWorkV2SetProfileForTaskWorkMaskDocumentOperationWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, profile); - return localVarResponse.Data; - } - - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ApiResponse of ProfileResultDTO - public ApiResponse< ProfileResultDTO > TaskWorkV2SetProfileForTaskWorkMaskDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkMaskDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkMaskDocumentOperation"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/bymask"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2SetProfileForTaskWorkMaskDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ProfileResultDTO - public async System.Threading.Tasks.Task TaskWorkV2SetProfileForTaskWorkMaskDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = await TaskWorkV2SetProfileForTaskWorkMaskDocumentOperationAsyncWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, profile); - return localVarResponse.Data; - - } - - /// - /// This call profiles a new document for a mask insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - public async System.Threading.Tasks.Task> TaskWorkV2SetProfileForTaskWorkMaskDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkMaskDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkMaskDocumentOperation"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/bymask"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2SetProfileForTaskWorkMaskDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ProfileResultDTO - public ProfileResultDTO TaskWorkV2SetProfileForTaskWorkModelDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = TaskWorkV2SetProfileForTaskWorkModelDocumentOperationWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, profile); - return localVarResponse.Data; - } - - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ApiResponse of ProfileResultDTO - public ApiResponse< ProfileResultDTO > TaskWorkV2SetProfileForTaskWorkModelDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkModelDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkModelDocumentOperation"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/bymodel"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2SetProfileForTaskWorkModelDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ProfileResultDTO - public async System.Threading.Tasks.Task TaskWorkV2SetProfileForTaskWorkModelDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = await TaskWorkV2SetProfileForTaskWorkModelDocumentOperationAsyncWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, profile); - return localVarResponse.Data; - - } - - /// - /// This call profiles a new document for a model insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - public async System.Threading.Tasks.Task> TaskWorkV2SetProfileForTaskWorkModelDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkModelDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkModelDocumentOperation"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/bymodel"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2SetProfileForTaskWorkModelDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ProfileResultDTO - public ProfileResultDTO TaskWorkV2SetProfileForTaskWorkStandardDocumentOperation (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = TaskWorkV2SetProfileForTaskWorkStandardDocumentOperationWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, profile); - return localVarResponse.Data; - } - - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// ApiResponse of ProfileResultDTO - public ApiResponse< ProfileResultDTO > TaskWorkV2SetProfileForTaskWorkStandardDocumentOperationWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkStandardDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkStandardDocumentOperation"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/bystandard"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2SetProfileForTaskWorkStandardDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ProfileResultDTO - public async System.Threading.Tasks.Task TaskWorkV2SetProfileForTaskWorkStandardDocumentOperationAsync (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - ApiResponse localVarResponse = await TaskWorkV2SetProfileForTaskWorkStandardDocumentOperationAsyncWithHttpInfo(taskWorkId, taskWorkDocumentOperationId, profile); - return localVarResponse.Data; - - } - - /// - /// This call profiles a new document for a standard insert document taskwork operation - /// - /// Thrown when fails to make API call - /// Taskwork identifie - /// Id of the operation - /// (optional) - /// Task of ApiResponse (ProfileResultDTO) - public async System.Threading.Tasks.Task> TaskWorkV2SetProfileForTaskWorkStandardDocumentOperationAsyncWithHttpInfo (int? taskWorkId, string taskWorkDocumentOperationId, ProfileDTO profile = null) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkStandardDocumentOperation"); - // verify the required parameter 'taskWorkDocumentOperationId' is set - if (taskWorkDocumentOperationId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkDocumentOperationId' when calling TaskWorkV2Api->TaskWorkV2SetProfileForTaskWorkStandardDocumentOperation"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/documentsoperations/{taskWorkDocumentOperationId}/bystandard"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - if (taskWorkDocumentOperationId != null) localVarPathParams.Add("taskWorkDocumentOperationId", this.Configuration.ApiClient.ParameterToString(taskWorkDocumentOperationId)); // path parameter - if (profile != null && profile.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(profile); // http body (model) parameter - } - else - { - localVarPostBody = profile; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2SetProfileForTaskWorkStandardDocumentOperation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileResultDTO))); - } - - /// - /// This call sets the tasks priority - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// int? - public int? TaskWorkV2SetTaskPriority (List taskIds, int? priority) - { - ApiResponse localVarResponse = TaskWorkV2SetTaskPriorityWithHttpInfo(taskIds, priority); - return localVarResponse.Data; - } - - /// - /// This call sets the tasks priority - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// ApiResponse of int? - public ApiResponse< int? > TaskWorkV2SetTaskPriorityWithHttpInfo (List taskIds, int? priority) - { - // verify the required parameter 'taskIds' is set - if (taskIds == null) - throw new ApiException(400, "Missing required parameter 'taskIds' when calling TaskWorkV2Api->TaskWorkV2SetTaskPriority"); - // verify the required parameter 'priority' is set - if (priority == null) - throw new ApiException(400, "Missing required parameter 'priority' when calling TaskWorkV2Api->TaskWorkV2SetTaskPriority"); - - var localVarPath = "/api/v2/TaskWork/priority/{priority}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (priority != null) localVarPathParams.Add("priority", this.Configuration.ApiClient.ParameterToString(priority)); // path parameter - if (taskIds != null && taskIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskIds); // http body (model) parameter - } - else - { - localVarPostBody = taskIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2SetTaskPriority", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call sets the tasks priority - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// Task of int? - public async System.Threading.Tasks.Task TaskWorkV2SetTaskPriorityAsync (List taskIds, int? priority) - { - ApiResponse localVarResponse = await TaskWorkV2SetTaskPriorityAsyncWithHttpInfo(taskIds, priority); - return localVarResponse.Data; - - } - - /// - /// This call sets the tasks priority - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Priority - /// Task of ApiResponse (int?) - public async System.Threading.Tasks.Task> TaskWorkV2SetTaskPriorityAsyncWithHttpInfo (List taskIds, int? priority) - { - // verify the required parameter 'taskIds' is set - if (taskIds == null) - throw new ApiException(400, "Missing required parameter 'taskIds' when calling TaskWorkV2Api->TaskWorkV2SetTaskPriority"); - // verify the required parameter 'priority' is set - if (priority == null) - throw new ApiException(400, "Missing required parameter 'priority' when calling TaskWorkV2Api->TaskWorkV2SetTaskPriority"); - - var localVarPath = "/api/v2/TaskWork/priority/{priority}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (priority != null) localVarPathParams.Add("priority", this.Configuration.ApiClient.ParameterToString(priority)); // path parameter - if (taskIds != null && taskIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskIds); // http body (model) parameter - } - else - { - localVarPostBody = taskIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2SetTaskPriority", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call sets the task as read - /// - /// Thrown when fails to make API call - /// Task Identifier - /// int? - public int? TaskWorkV2SetTaskRead (List taskid) - { - ApiResponse localVarResponse = TaskWorkV2SetTaskReadWithHttpInfo(taskid); - return localVarResponse.Data; - } - - /// - /// This call sets the task as read - /// - /// Thrown when fails to make API call - /// Task Identifier - /// ApiResponse of int? - public ApiResponse< int? > TaskWorkV2SetTaskReadWithHttpInfo (List taskid) - { - // verify the required parameter 'taskid' is set - if (taskid == null) - throw new ApiException(400, "Missing required parameter 'taskid' when calling TaskWorkV2Api->TaskWorkV2SetTaskRead"); - - var localVarPath = "/api/v2/TaskWork/read"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskid != null && taskid.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskid); // http body (model) parameter - } - else - { - localVarPostBody = taskid; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2SetTaskRead", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call sets the task as read - /// - /// Thrown when fails to make API call - /// Task Identifier - /// Task of int? - public async System.Threading.Tasks.Task TaskWorkV2SetTaskReadAsync (List taskid) - { - ApiResponse localVarResponse = await TaskWorkV2SetTaskReadAsyncWithHttpInfo(taskid); - return localVarResponse.Data; - - } - - /// - /// This call sets the task as read - /// - /// Thrown when fails to make API call - /// Task Identifier - /// Task of ApiResponse (int?) - public async System.Threading.Tasks.Task> TaskWorkV2SetTaskReadAsyncWithHttpInfo (List taskid) - { - // verify the required parameter 'taskid' is set - if (taskid == null) - throw new ApiException(400, "Missing required parameter 'taskid' when calling TaskWorkV2Api->TaskWorkV2SetTaskRead"); - - var localVarPath = "/api/v2/TaskWork/read"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskid != null && taskid.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskid); // http body (model) parameter - } - else - { - localVarPostBody = taskid; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2SetTaskRead", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call sets the tasks as unread - /// - /// Thrown when fails to make API call - /// List of task identifier - /// int? - public int? TaskWorkV2SetTaskUnRead (List taskIds) - { - ApiResponse localVarResponse = TaskWorkV2SetTaskUnReadWithHttpInfo(taskIds); - return localVarResponse.Data; - } - - /// - /// This call sets the tasks as unread - /// - /// Thrown when fails to make API call - /// List of task identifier - /// ApiResponse of int? - public ApiResponse< int? > TaskWorkV2SetTaskUnReadWithHttpInfo (List taskIds) - { - // verify the required parameter 'taskIds' is set - if (taskIds == null) - throw new ApiException(400, "Missing required parameter 'taskIds' when calling TaskWorkV2Api->TaskWorkV2SetTaskUnRead"); - - var localVarPath = "/api/v2/TaskWork/unread"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskIds != null && taskIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskIds); // http body (model) parameter - } - else - { - localVarPostBody = taskIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2SetTaskUnRead", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call sets the tasks as unread - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Task of int? - public async System.Threading.Tasks.Task TaskWorkV2SetTaskUnReadAsync (List taskIds) - { - ApiResponse localVarResponse = await TaskWorkV2SetTaskUnReadAsyncWithHttpInfo(taskIds); - return localVarResponse.Data; - - } - - /// - /// This call sets the tasks as unread - /// - /// Thrown when fails to make API call - /// List of task identifier - /// Task of ApiResponse (int?) - public async System.Threading.Tasks.Task> TaskWorkV2SetTaskUnReadAsyncWithHttpInfo (List taskIds) - { - // verify the required parameter 'taskIds' is set - if (taskIds == null) - throw new ApiException(400, "Missing required parameter 'taskIds' when calling TaskWorkV2Api->TaskWorkV2SetTaskUnRead"); - - var localVarPath = "/api/v2/TaskWork/unread"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskIds != null && taskIds.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(taskIds); // http body (model) parameter - } - else - { - localVarPostBody = taskIds; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2SetTaskUnRead", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call takes charge of a taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// - public void TaskWorkV2TaskWorkTakeCharge (int? taskWorkId) - { - TaskWorkV2TaskWorkTakeChargeWithHttpInfo(taskWorkId); - } - - /// - /// This call takes charge of a taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// ApiResponse of Object(void) - public ApiResponse TaskWorkV2TaskWorkTakeChargeWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2TaskWorkTakeCharge"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/TakeCharge"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2TaskWorkTakeCharge", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call takes charge of a taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of void - public async System.Threading.Tasks.Task TaskWorkV2TaskWorkTakeChargeAsync (int? taskWorkId) - { - await TaskWorkV2TaskWorkTakeChargeAsyncWithHttpInfo(taskWorkId); - - } - - /// - /// This call takes charge of a taskwork - /// - /// Thrown when fails to make API call - /// Taskwork identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TaskWorkV2TaskWorkTakeChargeAsyncWithHttpInfo (int? taskWorkId) - { - // verify the required parameter 'taskWorkId' is set - if (taskWorkId == null) - throw new ApiException(400, "Missing required parameter 'taskWorkId' when calling TaskWorkV2Api->TaskWorkV2TaskWorkTakeCharge"); - - var localVarPath = "/api/v2/TaskWork/{taskWorkId}/TakeCharge"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskWorkId != null) localVarPathParams.Add("taskWorkId", this.Configuration.ApiClient.ParameterToString(taskWorkId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TaskWorkV2TaskWorkTakeCharge", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/TicketDownloadsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/TicketDownloadsApi.cs deleted file mode 100644 index 0474d65..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/TicketDownloadsApi.cs +++ /dev/null @@ -1,314 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITicketDownloadsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the file associated with a pre requested Ticket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// System.IO.Stream - System.IO.Stream TicketDownloadsDownloadDocumentByTicket (string ticketId); - - /// - /// This call returns the file associated with a pre requested Ticket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of System.IO.Stream - ApiResponse TicketDownloadsDownloadDocumentByTicketWithHttpInfo (string ticketId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the file associated with a pre requested Ticket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of System.IO.Stream - System.Threading.Tasks.Task TicketDownloadsDownloadDocumentByTicketAsync (string ticketId); - - /// - /// This call returns the file associated with a pre requested Ticket - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> TicketDownloadsDownloadDocumentByTicketAsyncWithHttpInfo (string ticketId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TicketDownloadsApi : ITicketDownloadsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TicketDownloadsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TicketDownloadsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the file associated with a pre requested Ticket - /// - /// Thrown when fails to make API call - /// - /// System.IO.Stream - public System.IO.Stream TicketDownloadsDownloadDocumentByTicket (string ticketId) - { - ApiResponse localVarResponse = TicketDownloadsDownloadDocumentByTicketWithHttpInfo(ticketId); - return localVarResponse.Data; - } - - /// - /// This call returns the file associated with a pre requested Ticket - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > TicketDownloadsDownloadDocumentByTicketWithHttpInfo (string ticketId) - { - // verify the required parameter 'ticketId' is set - if (ticketId == null) - throw new ApiException(400, "Missing required parameter 'ticketId' when calling TicketDownloadsApi->TicketDownloadsDownloadDocumentByTicket"); - - var localVarPath = "/api/TicketDownloads/download/{ticketId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (ticketId != null) localVarPathParams.Add("ticketId", this.Configuration.ApiClient.ParameterToString(ticketId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TicketDownloadsDownloadDocumentByTicket", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns the file associated with a pre requested Ticket - /// - /// Thrown when fails to make API call - /// - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task TicketDownloadsDownloadDocumentByTicketAsync (string ticketId) - { - ApiResponse localVarResponse = await TicketDownloadsDownloadDocumentByTicketAsyncWithHttpInfo(ticketId); - return localVarResponse.Data; - - } - - /// - /// This call returns the file associated with a pre requested Ticket - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> TicketDownloadsDownloadDocumentByTicketAsyncWithHttpInfo (string ticketId) - { - // verify the required parameter 'ticketId' is set - if (ticketId == null) - throw new ApiException(400, "Missing required parameter 'ticketId' when calling TicketDownloadsApi->TicketDownloadsDownloadDocumentByTicket"); - - var localVarPath = "/api/TicketDownloads/download/{ticketId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (ticketId != null) localVarPathParams.Add("ticketId", this.Configuration.ApiClient.ParameterToString(ticketId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TicketDownloadsDownloadDocumentByTicket", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/TimeServerApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/TimeServerApi.cs deleted file mode 100644 index 73a6b0b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/TimeServerApi.cs +++ /dev/null @@ -1,304 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITimeServerApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns the time of wcf server - /// - /// - /// - /// - /// Thrown when fails to make API call - /// DateTime? - DateTime? TimeServerGetServerTime (); - - /// - /// This call returns the time of wcf server - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of DateTime? - ApiResponse TimeServerGetServerTimeWithHttpInfo (); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns the time of wcf server - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of DateTime? - System.Threading.Tasks.Task TimeServerGetServerTimeAsync (); - - /// - /// This call returns the time of wcf server - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DateTime?) - System.Threading.Tasks.Task> TimeServerGetServerTimeAsyncWithHttpInfo (); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TimeServerApi : ITimeServerApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TimeServerApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TimeServerApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns the time of wcf server - /// - /// Thrown when fails to make API call - /// DateTime? - public DateTime? TimeServerGetServerTime () - { - ApiResponse localVarResponse = TimeServerGetServerTimeWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the time of wcf server - /// - /// Thrown when fails to make API call - /// ApiResponse of DateTime? - public ApiResponse< DateTime? > TimeServerGetServerTimeWithHttpInfo () - { - - var localVarPath = "/api/TimeServer"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimeServerGetServerTime", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DateTime?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DateTime?))); - } - - /// - /// This call returns the time of wcf server - /// - /// Thrown when fails to make API call - /// Task of DateTime? - public async System.Threading.Tasks.Task TimeServerGetServerTimeAsync () - { - ApiResponse localVarResponse = await TimeServerGetServerTimeAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the time of wcf server - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DateTime?) - public async System.Threading.Tasks.Task> TimeServerGetServerTimeAsyncWithHttpInfo () - { - - var localVarPath = "/api/TimeServer"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimeServerGetServerTime", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DateTime?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DateTime?))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/TimestampApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/TimestampApi.cs deleted file mode 100644 index 7a60bc3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/TimestampApi.cs +++ /dev/null @@ -1,1694 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITimestampApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call applies a timestamp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Timestamp information to apply - /// TimestampResponseDTO - TimestampResponseDTO TimestampApplyTimestamp (TimestampRequestDTO timestampRequest); - - /// - /// This call applies a timestamp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Timestamp information to apply - /// ApiResponse of TimestampResponseDTO - ApiResponse TimestampApplyTimestampWithHttpInfo (TimestampRequestDTO timestampRequest); - /// - /// This call deletes a timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// - void TimestampDeleteTsa (string id); - - /// - /// This call deletes a timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of Object(void) - ApiResponse TimestampDeleteTsaWithHttpInfo (string id); - /// - /// This call returns a specific timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// TsaDTO - TsaDTO TimestampGetTsa (string id); - - /// - /// This call returns a specific timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of TsaDTO - ApiResponse TimestampGetTsaWithHttpInfo (string id); - /// - /// This call returns the timestamp list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<TsaDTO> - List TimestampGetTsaList (); - - /// - /// This call returns the timestamp list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<TsaDTO> - ApiResponse> TimestampGetTsaListWithHttpInfo (); - /// - /// This call returns the timestamp account protocol list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<TsaProtocolDTO> - List TimestampGetTsaProtocolList (); - - /// - /// This call returns the timestamp account protocol list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<TsaProtocolDTO> - ApiResponse> TimestampGetTsaProtocolListWithHttpInfo (); - /// - /// This call inserts a new timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Timestamp information to insert - /// TsaDTO - TsaDTO TimestampInsertTsa (TsaInsertDTO tsaInsert); - - /// - /// This call inserts a new timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Timestamp information to insert - /// ApiResponse of TsaDTO - ApiResponse TimestampInsertTsaWithHttpInfo (TsaInsertDTO tsaInsert); - /// - /// This call tests timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// - void TimestampTestTsa (string id); - - /// - /// This call tests timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of Object(void) - ApiResponse TimestampTestTsaWithHttpInfo (string id); - /// - /// This call updates a given timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Timestamp information to update - /// TsaDTO - TsaDTO TimestampUpdateTsa (string id, TsaUpdateDTO tsaUpdate); - - /// - /// This call updates a given timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Timestamp information to update - /// ApiResponse of TsaDTO - ApiResponse TimestampUpdateTsaWithHttpInfo (string id, TsaUpdateDTO tsaUpdate); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call applies a timestamp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Timestamp information to apply - /// Task of TimestampResponseDTO - System.Threading.Tasks.Task TimestampApplyTimestampAsync (TimestampRequestDTO timestampRequest); - - /// - /// This call applies a timestamp - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Timestamp information to apply - /// Task of ApiResponse (TimestampResponseDTO) - System.Threading.Tasks.Task> TimestampApplyTimestampAsyncWithHttpInfo (TimestampRequestDTO timestampRequest); - /// - /// This call deletes a timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of void - System.Threading.Tasks.Task TimestampDeleteTsaAsync (string id); - - /// - /// This call deletes a timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TimestampDeleteTsaAsyncWithHttpInfo (string id); - /// - /// This call returns a specific timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of TsaDTO - System.Threading.Tasks.Task TimestampGetTsaAsync (string id); - - /// - /// This call returns a specific timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse (TsaDTO) - System.Threading.Tasks.Task> TimestampGetTsaAsyncWithHttpInfo (string id); - /// - /// This call returns the timestamp list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<TsaDTO> - System.Threading.Tasks.Task> TimestampGetTsaListAsync (); - - /// - /// This call returns the timestamp list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<TsaDTO>) - System.Threading.Tasks.Task>> TimestampGetTsaListAsyncWithHttpInfo (); - /// - /// This call returns the timestamp account protocol list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<TsaProtocolDTO> - System.Threading.Tasks.Task> TimestampGetTsaProtocolListAsync (); - - /// - /// This call returns the timestamp account protocol list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<TsaProtocolDTO>) - System.Threading.Tasks.Task>> TimestampGetTsaProtocolListAsyncWithHttpInfo (); - /// - /// This call inserts a new timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Timestamp information to insert - /// Task of TsaDTO - System.Threading.Tasks.Task TimestampInsertTsaAsync (TsaInsertDTO tsaInsert); - - /// - /// This call inserts a new timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Timestamp information to insert - /// Task of ApiResponse (TsaDTO) - System.Threading.Tasks.Task> TimestampInsertTsaAsyncWithHttpInfo (TsaInsertDTO tsaInsert); - /// - /// This call tests timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of void - System.Threading.Tasks.Task TimestampTestTsaAsync (string id); - - /// - /// This call tests timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> TimestampTestTsaAsyncWithHttpInfo (string id); - /// - /// This call updates a given timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Timestamp information to update - /// Task of TsaDTO - System.Threading.Tasks.Task TimestampUpdateTsaAsync (string id, TsaUpdateDTO tsaUpdate); - - /// - /// This call updates a given timestamp account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Timestamp information to update - /// Task of ApiResponse (TsaDTO) - System.Threading.Tasks.Task> TimestampUpdateTsaAsyncWithHttpInfo (string id, TsaUpdateDTO tsaUpdate); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TimestampApi : ITimestampApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TimestampApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TimestampApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call applies a timestamp - /// - /// Thrown when fails to make API call - /// Timestamp information to apply - /// TimestampResponseDTO - public TimestampResponseDTO TimestampApplyTimestamp (TimestampRequestDTO timestampRequest) - { - ApiResponse localVarResponse = TimestampApplyTimestampWithHttpInfo(timestampRequest); - return localVarResponse.Data; - } - - /// - /// This call applies a timestamp - /// - /// Thrown when fails to make API call - /// Timestamp information to apply - /// ApiResponse of TimestampResponseDTO - public ApiResponse< TimestampResponseDTO > TimestampApplyTimestampWithHttpInfo (TimestampRequestDTO timestampRequest) - { - // verify the required parameter 'timestampRequest' is set - if (timestampRequest == null) - throw new ApiException(400, "Missing required parameter 'timestampRequest' when calling TimestampApi->TimestampApplyTimestamp"); - - var localVarPath = "/api/Timestamps/ApplyTimestamp"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (timestampRequest != null && timestampRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(timestampRequest); // http body (model) parameter - } - else - { - localVarPostBody = timestampRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampApplyTimestamp", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TimestampResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TimestampResponseDTO))); - } - - /// - /// This call applies a timestamp - /// - /// Thrown when fails to make API call - /// Timestamp information to apply - /// Task of TimestampResponseDTO - public async System.Threading.Tasks.Task TimestampApplyTimestampAsync (TimestampRequestDTO timestampRequest) - { - ApiResponse localVarResponse = await TimestampApplyTimestampAsyncWithHttpInfo(timestampRequest); - return localVarResponse.Data; - - } - - /// - /// This call applies a timestamp - /// - /// Thrown when fails to make API call - /// Timestamp information to apply - /// Task of ApiResponse (TimestampResponseDTO) - public async System.Threading.Tasks.Task> TimestampApplyTimestampAsyncWithHttpInfo (TimestampRequestDTO timestampRequest) - { - // verify the required parameter 'timestampRequest' is set - if (timestampRequest == null) - throw new ApiException(400, "Missing required parameter 'timestampRequest' when calling TimestampApi->TimestampApplyTimestamp"); - - var localVarPath = "/api/Timestamps/ApplyTimestamp"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (timestampRequest != null && timestampRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(timestampRequest); // http body (model) parameter - } - else - { - localVarPostBody = timestampRequest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampApplyTimestamp", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TimestampResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TimestampResponseDTO))); - } - - /// - /// This call deletes a timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// - public void TimestampDeleteTsa (string id) - { - TimestampDeleteTsaWithHttpInfo(id); - } - - /// - /// This call deletes a timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of Object(void) - public ApiResponse TimestampDeleteTsaWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling TimestampApi->TimestampDeleteTsa"); - - var localVarPath = "/api/Timestamps/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampDeleteTsa", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of void - public async System.Threading.Tasks.Task TimestampDeleteTsaAsync (string id) - { - await TimestampDeleteTsaAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes a timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TimestampDeleteTsaAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling TimestampApi->TimestampDeleteTsa"); - - var localVarPath = "/api/Timestamps/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampDeleteTsa", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns a specific timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// TsaDTO - public TsaDTO TimestampGetTsa (string id) - { - ApiResponse localVarResponse = TimestampGetTsaWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns a specific timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of TsaDTO - public ApiResponse< TsaDTO > TimestampGetTsaWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling TimestampApi->TimestampGetTsa"); - - var localVarPath = "/api/Timestamps/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampGetTsa", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TsaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TsaDTO))); - } - - /// - /// This call returns a specific timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of TsaDTO - public async System.Threading.Tasks.Task TimestampGetTsaAsync (string id) - { - ApiResponse localVarResponse = await TimestampGetTsaAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns a specific timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse (TsaDTO) - public async System.Threading.Tasks.Task> TimestampGetTsaAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling TimestampApi->TimestampGetTsa"); - - var localVarPath = "/api/Timestamps/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampGetTsa", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TsaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TsaDTO))); - } - - /// - /// This call returns the timestamp list - /// - /// Thrown when fails to make API call - /// List<TsaDTO> - public List TimestampGetTsaList () - { - ApiResponse> localVarResponse = TimestampGetTsaListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the timestamp list - /// - /// Thrown when fails to make API call - /// ApiResponse of List<TsaDTO> - public ApiResponse< List > TimestampGetTsaListWithHttpInfo () - { - - var localVarPath = "/api/Timestamps"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampGetTsaList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the timestamp list - /// - /// Thrown when fails to make API call - /// Task of List<TsaDTO> - public async System.Threading.Tasks.Task> TimestampGetTsaListAsync () - { - ApiResponse> localVarResponse = await TimestampGetTsaListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the timestamp list - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<TsaDTO>) - public async System.Threading.Tasks.Task>> TimestampGetTsaListAsyncWithHttpInfo () - { - - var localVarPath = "/api/Timestamps"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampGetTsaList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the timestamp account protocol list - /// - /// Thrown when fails to make API call - /// List<TsaProtocolDTO> - public List TimestampGetTsaProtocolList () - { - ApiResponse> localVarResponse = TimestampGetTsaProtocolListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the timestamp account protocol list - /// - /// Thrown when fails to make API call - /// ApiResponse of List<TsaProtocolDTO> - public ApiResponse< List > TimestampGetTsaProtocolListWithHttpInfo () - { - - var localVarPath = "/api/Timestamps/TsaProtocolList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampGetTsaProtocolList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the timestamp account protocol list - /// - /// Thrown when fails to make API call - /// Task of List<TsaProtocolDTO> - public async System.Threading.Tasks.Task> TimestampGetTsaProtocolListAsync () - { - ApiResponse> localVarResponse = await TimestampGetTsaProtocolListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the timestamp account protocol list - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<TsaProtocolDTO>) - public async System.Threading.Tasks.Task>> TimestampGetTsaProtocolListAsyncWithHttpInfo () - { - - var localVarPath = "/api/Timestamps/TsaProtocolList"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampGetTsaProtocolList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts a new timestamp account - /// - /// Thrown when fails to make API call - /// Timestamp information to insert - /// TsaDTO - public TsaDTO TimestampInsertTsa (TsaInsertDTO tsaInsert) - { - ApiResponse localVarResponse = TimestampInsertTsaWithHttpInfo(tsaInsert); - return localVarResponse.Data; - } - - /// - /// This call inserts a new timestamp account - /// - /// Thrown when fails to make API call - /// Timestamp information to insert - /// ApiResponse of TsaDTO - public ApiResponse< TsaDTO > TimestampInsertTsaWithHttpInfo (TsaInsertDTO tsaInsert) - { - // verify the required parameter 'tsaInsert' is set - if (tsaInsert == null) - throw new ApiException(400, "Missing required parameter 'tsaInsert' when calling TimestampApi->TimestampInsertTsa"); - - var localVarPath = "/api/Timestamps"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tsaInsert != null && tsaInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(tsaInsert); // http body (model) parameter - } - else - { - localVarPostBody = tsaInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampInsertTsa", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TsaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TsaDTO))); - } - - /// - /// This call inserts a new timestamp account - /// - /// Thrown when fails to make API call - /// Timestamp information to insert - /// Task of TsaDTO - public async System.Threading.Tasks.Task TimestampInsertTsaAsync (TsaInsertDTO tsaInsert) - { - ApiResponse localVarResponse = await TimestampInsertTsaAsyncWithHttpInfo(tsaInsert); - return localVarResponse.Data; - - } - - /// - /// This call inserts a new timestamp account - /// - /// Thrown when fails to make API call - /// Timestamp information to insert - /// Task of ApiResponse (TsaDTO) - public async System.Threading.Tasks.Task> TimestampInsertTsaAsyncWithHttpInfo (TsaInsertDTO tsaInsert) - { - // verify the required parameter 'tsaInsert' is set - if (tsaInsert == null) - throw new ApiException(400, "Missing required parameter 'tsaInsert' when calling TimestampApi->TimestampInsertTsa"); - - var localVarPath = "/api/Timestamps"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tsaInsert != null && tsaInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(tsaInsert); // http body (model) parameter - } - else - { - localVarPostBody = tsaInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampInsertTsa", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TsaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TsaDTO))); - } - - /// - /// This call tests timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// - public void TimestampTestTsa (string id) - { - TimestampTestTsaWithHttpInfo(id); - } - - /// - /// This call tests timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of Object(void) - public ApiResponse TimestampTestTsaWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling TimestampApi->TimestampTestTsa"); - - var localVarPath = "/api/Timestamps/TestTsa/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampTestTsa", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call tests timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of void - public async System.Threading.Tasks.Task TimestampTestTsaAsync (string id) - { - await TimestampTestTsaAsyncWithHttpInfo(id); - - } - - /// - /// This call tests timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> TimestampTestTsaAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling TimestampApi->TimestampTestTsa"); - - var localVarPath = "/api/Timestamps/TestTsa/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampTestTsa", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates a given timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// Timestamp information to update - /// TsaDTO - public TsaDTO TimestampUpdateTsa (string id, TsaUpdateDTO tsaUpdate) - { - ApiResponse localVarResponse = TimestampUpdateTsaWithHttpInfo(id, tsaUpdate); - return localVarResponse.Data; - } - - /// - /// This call updates a given timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// Timestamp information to update - /// ApiResponse of TsaDTO - public ApiResponse< TsaDTO > TimestampUpdateTsaWithHttpInfo (string id, TsaUpdateDTO tsaUpdate) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling TimestampApi->TimestampUpdateTsa"); - // verify the required parameter 'tsaUpdate' is set - if (tsaUpdate == null) - throw new ApiException(400, "Missing required parameter 'tsaUpdate' when calling TimestampApi->TimestampUpdateTsa"); - - var localVarPath = "/api/Timestamps/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (tsaUpdate != null && tsaUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(tsaUpdate); // http body (model) parameter - } - else - { - localVarPostBody = tsaUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampUpdateTsa", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TsaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TsaDTO))); - } - - /// - /// This call updates a given timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// Timestamp information to update - /// Task of TsaDTO - public async System.Threading.Tasks.Task TimestampUpdateTsaAsync (string id, TsaUpdateDTO tsaUpdate) - { - ApiResponse localVarResponse = await TimestampUpdateTsaAsyncWithHttpInfo(id, tsaUpdate); - return localVarResponse.Data; - - } - - /// - /// This call updates a given timestamp account - /// - /// Thrown when fails to make API call - /// Identifier - /// Timestamp information to update - /// Task of ApiResponse (TsaDTO) - public async System.Threading.Tasks.Task> TimestampUpdateTsaAsyncWithHttpInfo (string id, TsaUpdateDTO tsaUpdate) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling TimestampApi->TimestampUpdateTsa"); - // verify the required parameter 'tsaUpdate' is set - if (tsaUpdate == null) - throw new ApiException(400, "Missing required parameter 'tsaUpdate' when calling TimestampApi->TimestampUpdateTsa"); - - var localVarPath = "/api/Timestamps/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (tsaUpdate != null && tsaUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(tsaUpdate); // http body (model) parameter - } - else - { - localVarPostBody = tsaUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("TimestampUpdateTsa", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TsaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TsaDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/UserSearchApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/UserSearchApi.cs deleted file mode 100644 index 359f720..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/UserSearchApi.cs +++ /dev/null @@ -1,695 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IUserSearchApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns a searchDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// UserSearchDTO - UserSearchDTO UserSearchGetSearch (); - - /// - /// This call returns a searchDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of UserSearchDTO - ApiResponse UserSearchGetSearchWithHttpInfo (); - /// - /// This call returns a selectDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SelectDTO - SelectDTO UserSearchGetSelect (); - - /// - /// This call returns a selectDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - ApiResponse UserSearchGetSelectWithHttpInfo (); - /// - /// This call searches in user with search and select DTO system. - /// - /// - /// This method is deprecated. Use api/v3/UserSearches - /// - /// Thrown when fails to make API call - /// - /// List<RowSearchResult> - List UserSearchPostSearch (UserSearchCriteriaDTO searchCriteria); - - /// - /// This call searches in user with search and select DTO system. - /// - /// - /// This method is deprecated. Use api/v3/UserSearches - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<RowSearchResult> - ApiResponse> UserSearchPostSearchWithHttpInfo (UserSearchCriteriaDTO searchCriteria); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns a searchDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of UserSearchDTO - System.Threading.Tasks.Task UserSearchGetSearchAsync (); - - /// - /// This call returns a searchDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (UserSearchDTO) - System.Threading.Tasks.Task> UserSearchGetSearchAsyncWithHttpInfo (); - /// - /// This call returns a selectDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - System.Threading.Tasks.Task UserSearchGetSelectAsync (); - - /// - /// This call returns a selectDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> UserSearchGetSelectAsyncWithHttpInfo (); - /// - /// This call searches in user with search and select DTO system. - /// - /// - /// This method is deprecated. Use api/v3/UserSearches - /// - /// Thrown when fails to make API call - /// - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> UserSearchPostSearchAsync (UserSearchCriteriaDTO searchCriteria); - - /// - /// This call searches in user with search and select DTO system. - /// - /// - /// This method is deprecated. Use api/v3/UserSearches - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> UserSearchPostSearchAsyncWithHttpInfo (UserSearchCriteriaDTO searchCriteria); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class UserSearchApi : IUserSearchApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public UserSearchApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public UserSearchApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns a searchDTO object for search in user - /// - /// Thrown when fails to make API call - /// UserSearchDTO - public UserSearchDTO UserSearchGetSearch () - { - ApiResponse localVarResponse = UserSearchGetSearchWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a searchDTO object for search in user - /// - /// Thrown when fails to make API call - /// ApiResponse of UserSearchDTO - public ApiResponse< UserSearchDTO > UserSearchGetSearchWithHttpInfo () - { - - var localVarPath = "/api/UserSearches/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UserSearchGetSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserSearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserSearchDTO))); - } - - /// - /// This call returns a searchDTO object for search in user - /// - /// Thrown when fails to make API call - /// Task of UserSearchDTO - public async System.Threading.Tasks.Task UserSearchGetSearchAsync () - { - ApiResponse localVarResponse = await UserSearchGetSearchAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a searchDTO object for search in user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (UserSearchDTO) - public async System.Threading.Tasks.Task> UserSearchGetSearchAsyncWithHttpInfo () - { - - var localVarPath = "/api/UserSearches/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UserSearchGetSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserSearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserSearchDTO))); - } - - /// - /// This call returns a selectDTO object for search in user - /// - /// Thrown when fails to make API call - /// SelectDTO - public SelectDTO UserSearchGetSelect () - { - ApiResponse localVarResponse = UserSearchGetSelectWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a selectDTO object for search in user - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > UserSearchGetSelectWithHttpInfo () - { - - var localVarPath = "/api/UserSearches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UserSearchGetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a selectDTO object for search in user - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - public async System.Threading.Tasks.Task UserSearchGetSelectAsync () - { - ApiResponse localVarResponse = await UserSearchGetSelectAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a selectDTO object for search in user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> UserSearchGetSelectAsyncWithHttpInfo () - { - - var localVarPath = "/api/UserSearches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UserSearchGetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call searches in user with search and select DTO system. This method is deprecated. Use api/v3/UserSearches - /// - /// Thrown when fails to make API call - /// - /// List<RowSearchResult> - public List UserSearchPostSearch (UserSearchCriteriaDTO searchCriteria) - { - ApiResponse> localVarResponse = UserSearchPostSearchWithHttpInfo(searchCriteria); - return localVarResponse.Data; - } - - /// - /// This call searches in user with search and select DTO system. This method is deprecated. Use api/v3/UserSearches - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > UserSearchPostSearchWithHttpInfo (UserSearchCriteriaDTO searchCriteria) - { - // verify the required parameter 'searchCriteria' is set - if (searchCriteria == null) - throw new ApiException(400, "Missing required parameter 'searchCriteria' when calling UserSearchApi->UserSearchPostSearch"); - - var localVarPath = "/api/UserSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchCriteria != null && searchCriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchCriteria); // http body (model) parameter - } - else - { - localVarPostBody = searchCriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UserSearchPostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call searches in user with search and select DTO system. This method is deprecated. Use api/v3/UserSearches - /// - /// Thrown when fails to make API call - /// - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> UserSearchPostSearchAsync (UserSearchCriteriaDTO searchCriteria) - { - ApiResponse> localVarResponse = await UserSearchPostSearchAsyncWithHttpInfo(searchCriteria); - return localVarResponse.Data; - - } - - /// - /// This call searches in user with search and select DTO system. This method is deprecated. Use api/v3/UserSearches - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> UserSearchPostSearchAsyncWithHttpInfo (UserSearchCriteriaDTO searchCriteria) - { - // verify the required parameter 'searchCriteria' is set - if (searchCriteria == null) - throw new ApiException(400, "Missing required parameter 'searchCriteria' when calling UserSearchApi->UserSearchPostSearch"); - - var localVarPath = "/api/UserSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchCriteria != null && searchCriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchCriteria); // http body (model) parameter - } - else - { - localVarPostBody = searchCriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UserSearchPostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/UserSearchV3Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/UserSearchV3Api.cs deleted file mode 100644 index d986484..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/UserSearchV3Api.cs +++ /dev/null @@ -1,695 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IUserSearchV3Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns a searchDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// UserSearchDTO - UserSearchDTO UserSearchV3GetSearch (); - - /// - /// This call returns a searchDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of UserSearchDTO - ApiResponse UserSearchV3GetSearchWithHttpInfo (); - /// - /// This call returns a selectDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SelectDTO - SelectDTO UserSearchV3GetSelect (); - - /// - /// This call returns a selectDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - ApiResponse UserSearchV3GetSelectWithHttpInfo (); - /// - /// This call searches in user with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/UserSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Object - Object UserSearchV3PostSearch (UserSearchCriteriaDTO searchCriteria); - - /// - /// This call searches in user with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/UserSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object - ApiResponse UserSearchV3PostSearchWithHttpInfo (UserSearchCriteriaDTO searchCriteria); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns a searchDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of UserSearchDTO - System.Threading.Tasks.Task UserSearchV3GetSearchAsync (); - - /// - /// This call returns a searchDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (UserSearchDTO) - System.Threading.Tasks.Task> UserSearchV3GetSearchAsyncWithHttpInfo (); - /// - /// This call returns a selectDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - System.Threading.Tasks.Task UserSearchV3GetSelectAsync (); - - /// - /// This call returns a selectDTO object for search in user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> UserSearchV3GetSelectAsyncWithHttpInfo (); - /// - /// This call searches in user with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/UserSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of Object - System.Threading.Tasks.Task UserSearchV3PostSearchAsync (UserSearchCriteriaDTO searchCriteria); - - /// - /// This call searches in user with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/UserSearches - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> UserSearchV3PostSearchAsyncWithHttpInfo (UserSearchCriteriaDTO searchCriteria); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class UserSearchV3Api : IUserSearchV3Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public UserSearchV3Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public UserSearchV3Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns a searchDTO object for search in user - /// - /// Thrown when fails to make API call - /// UserSearchDTO - public UserSearchDTO UserSearchV3GetSearch () - { - ApiResponse localVarResponse = UserSearchV3GetSearchWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a searchDTO object for search in user - /// - /// Thrown when fails to make API call - /// ApiResponse of UserSearchDTO - public ApiResponse< UserSearchDTO > UserSearchV3GetSearchWithHttpInfo () - { - - var localVarPath = "/api/v3/UserSearches/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UserSearchV3GetSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserSearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserSearchDTO))); - } - - /// - /// This call returns a searchDTO object for search in user - /// - /// Thrown when fails to make API call - /// Task of UserSearchDTO - public async System.Threading.Tasks.Task UserSearchV3GetSearchAsync () - { - ApiResponse localVarResponse = await UserSearchV3GetSearchAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a searchDTO object for search in user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (UserSearchDTO) - public async System.Threading.Tasks.Task> UserSearchV3GetSearchAsyncWithHttpInfo () - { - - var localVarPath = "/api/v3/UserSearches/Search"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UserSearchV3GetSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserSearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserSearchDTO))); - } - - /// - /// This call returns a selectDTO object for search in user - /// - /// Thrown when fails to make API call - /// SelectDTO - public SelectDTO UserSearchV3GetSelect () - { - ApiResponse localVarResponse = UserSearchV3GetSelectWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns a selectDTO object for search in user - /// - /// Thrown when fails to make API call - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > UserSearchV3GetSelectWithHttpInfo () - { - - var localVarPath = "/api/v3/UserSearches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UserSearchV3GetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a selectDTO object for search in user - /// - /// Thrown when fails to make API call - /// Task of SelectDTO - public async System.Threading.Tasks.Task UserSearchV3GetSelectAsync () - { - ApiResponse localVarResponse = await UserSearchV3GetSelectAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns a selectDTO object for search in user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> UserSearchV3GetSelectAsyncWithHttpInfo () - { - - var localVarPath = "/api/v3/UserSearches/Select"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UserSearchV3GetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call searches in user with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/UserSearches - /// - /// Thrown when fails to make API call - /// - /// Object - public Object UserSearchV3PostSearch (UserSearchCriteriaDTO searchCriteria) - { - ApiResponse localVarResponse = UserSearchV3PostSearchWithHttpInfo(searchCriteria); - return localVarResponse.Data; - } - - /// - /// This call searches in user with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/UserSearches - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object - public ApiResponse< Object > UserSearchV3PostSearchWithHttpInfo (UserSearchCriteriaDTO searchCriteria) - { - // verify the required parameter 'searchCriteria' is set - if (searchCriteria == null) - throw new ApiException(400, "Missing required parameter 'searchCriteria' when calling UserSearchV3Api->UserSearchV3PostSearch"); - - var localVarPath = "/api/v3/UserSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchCriteria != null && searchCriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchCriteria); // http body (model) parameter - } - else - { - localVarPostBody = searchCriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UserSearchV3PostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call searches in user with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/UserSearches - /// - /// Thrown when fails to make API call - /// - /// Task of Object - public async System.Threading.Tasks.Task UserSearchV3PostSearchAsync (UserSearchCriteriaDTO searchCriteria) - { - ApiResponse localVarResponse = await UserSearchV3PostSearchAsyncWithHttpInfo(searchCriteria); - return localVarResponse.Data; - - } - - /// - /// This call searches in user with search and select DTO system. This call could not be compatible with some programming language, in this case use the call api/UserSearches - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> UserSearchV3PostSearchAsyncWithHttpInfo (UserSearchCriteriaDTO searchCriteria) - { - // verify the required parameter 'searchCriteria' is set - if (searchCriteria == null) - throw new ApiException(400, "Missing required parameter 'searchCriteria' when calling UserSearchV3Api->UserSearchV3PostSearch"); - - var localVarPath = "/api/v3/UserSearches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (searchCriteria != null && searchCriteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(searchCriteria); // http body (model) parameter - } - else - { - localVarPostBody = searchCriteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UserSearchV3PostSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/UsersApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/UsersApi.cs deleted file mode 100644 index c337b42..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/UsersApi.cs +++ /dev/null @@ -1,2020 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IUsersApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes user specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// - void UsersDelete (int? id); - - /// - /// This call deletes user specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of Object(void) - ApiResponse UsersDeleteWithHttpInfo (int? id); - /// - /// This call returns a specific user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// UserInfoDTO - UserInfoDTO UsersGet (int? id); - - /// - /// This call returns a specific user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of UserInfoDTO - ApiResponse UsersGetWithHttpInfo (int? id); - /// - /// This call gets user object for update - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// UserUpdateDTO - UserUpdateDTO UsersGetForUpdate (int? id); - - /// - /// This call gets user object for update - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of UserUpdateDTO - ApiResponse UsersGetForUpdateWithHttpInfo (int? id); - /// - /// This call returns all user groups defined in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<UserGroupDTO> - List UsersGetGroups (); - - /// - /// This call returns all user groups defined in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<UserGroupDTO> - ApiResponse> UsersGetGroupsWithHttpInfo (); - /// - /// This call returns all user in a specific group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<UserCompleteDTO> - List UsersGetUserByGroup (int? groupId); - - /// - /// This call returns all user in a specific group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<UserCompleteDTO> - ApiResponse> UsersGetUserByGroupWithHttpInfo (int? groupId); - /// - /// This call returns the informations of the connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// UserInfoDTO - UserInfoDTO UsersGetUserInfo (); - - /// - /// This call returns the informations of the connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of UserInfoDTO - ApiResponse UsersGetUserInfoWithHttpInfo (); - /// - /// This call returns all users defined in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<UserCompleteDTO> - List UsersGet_0 (); - - /// - /// This call returns all users defined in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<UserCompleteDTO> - ApiResponse> UsersGet_0WithHttpInfo (); - /// - /// This call inserts a new user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User information to insert - /// UserCompleteDTO - UserCompleteDTO UsersInsert (UserInsertDTO userInsert); - - /// - /// This call inserts a new user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User information to insert - /// ApiResponse of UserCompleteDTO - ApiResponse UsersInsertWithHttpInfo (UserInsertDTO userInsert); - /// - /// This call updates the user languages - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Language code to set - /// - void UsersSetLang (string lang); - - /// - /// This call updates the user languages - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Language code to set - /// ApiResponse of Object(void) - ApiResponse UsersSetLangWithHttpInfo (string lang); - /// - /// This call updates a given user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// UserCompleteDTO - UserCompleteDTO UsersUpdate (int? id, UserUpdateDTO userupdate = null); - - /// - /// This call updates a given user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// ApiResponse of UserCompleteDTO - ApiResponse UsersUpdateWithHttpInfo (int? id, UserUpdateDTO userupdate = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes user specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of void - System.Threading.Tasks.Task UsersDeleteAsync (int? id); - - /// - /// This call deletes user specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersDeleteAsyncWithHttpInfo (int? id); - /// - /// This call returns a specific user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of UserInfoDTO - System.Threading.Tasks.Task UsersGetAsync (int? id); - - /// - /// This call returns a specific user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse (UserInfoDTO) - System.Threading.Tasks.Task> UsersGetAsyncWithHttpInfo (int? id); - /// - /// This call gets user object for update - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of UserUpdateDTO - System.Threading.Tasks.Task UsersGetForUpdateAsync (int? id); - - /// - /// This call gets user object for update - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse (UserUpdateDTO) - System.Threading.Tasks.Task> UsersGetForUpdateAsyncWithHttpInfo (int? id); - /// - /// This call returns all user groups defined in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<UserGroupDTO> - System.Threading.Tasks.Task> UsersGetGroupsAsync (); - - /// - /// This call returns all user groups defined in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<UserGroupDTO>) - System.Threading.Tasks.Task>> UsersGetGroupsAsyncWithHttpInfo (); - /// - /// This call returns all user in a specific group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<UserCompleteDTO> - System.Threading.Tasks.Task> UsersGetUserByGroupAsync (int? groupId); - - /// - /// This call returns all user in a specific group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<UserCompleteDTO>) - System.Threading.Tasks.Task>> UsersGetUserByGroupAsyncWithHttpInfo (int? groupId); - /// - /// This call returns the informations of the connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of UserInfoDTO - System.Threading.Tasks.Task UsersGetUserInfoAsync (); - - /// - /// This call returns the informations of the connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (UserInfoDTO) - System.Threading.Tasks.Task> UsersGetUserInfoAsyncWithHttpInfo (); - /// - /// This call returns all users defined in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<UserCompleteDTO> - System.Threading.Tasks.Task> UsersGet_0Async (); - - /// - /// This call returns all users defined in Arxivar - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<UserCompleteDTO>) - System.Threading.Tasks.Task>> UsersGet_0AsyncWithHttpInfo (); - /// - /// This call inserts a new user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User information to insert - /// Task of UserCompleteDTO - System.Threading.Tasks.Task UsersInsertAsync (UserInsertDTO userInsert); - - /// - /// This call inserts a new user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User information to insert - /// Task of ApiResponse (UserCompleteDTO) - System.Threading.Tasks.Task> UsersInsertAsyncWithHttpInfo (UserInsertDTO userInsert); - /// - /// This call updates the user languages - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Language code to set - /// Task of void - System.Threading.Tasks.Task UsersSetLangAsync (string lang); - - /// - /// This call updates the user languages - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Language code to set - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersSetLangAsyncWithHttpInfo (string lang); - /// - /// This call updates a given user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// Task of UserCompleteDTO - System.Threading.Tasks.Task UsersUpdateAsync (int? id, UserUpdateDTO userupdate = null); - - /// - /// This call updates a given user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// Task of ApiResponse (UserCompleteDTO) - System.Threading.Tasks.Task> UsersUpdateAsyncWithHttpInfo (int? id, UserUpdateDTO userupdate = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class UsersApi : IUsersApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public UsersApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public UsersApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes user specified - /// - /// Thrown when fails to make API call - /// Identifier - /// - public void UsersDelete (int? id) - { - UsersDeleteWithHttpInfo(id); - } - - /// - /// This call deletes user specified - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of Object(void) - public ApiResponse UsersDeleteWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersApi->UsersDelete"); - - var localVarPath = "/api/Users/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes user specified - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of void - public async System.Threading.Tasks.Task UsersDeleteAsync (int? id) - { - await UsersDeleteAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes user specified - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersDeleteAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersApi->UsersDelete"); - - var localVarPath = "/api/Users/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns a specific user - /// - /// Thrown when fails to make API call - /// Identifier - /// UserInfoDTO - public UserInfoDTO UsersGet (int? id) - { - ApiResponse localVarResponse = UsersGetWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns a specific user - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of UserInfoDTO - public ApiResponse< UserInfoDTO > UsersGetWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersApi->UsersGet"); - - var localVarPath = "/api/Users/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserInfoDTO))); - } - - /// - /// This call returns a specific user - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of UserInfoDTO - public async System.Threading.Tasks.Task UsersGetAsync (int? id) - { - ApiResponse localVarResponse = await UsersGetAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns a specific user - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse (UserInfoDTO) - public async System.Threading.Tasks.Task> UsersGetAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersApi->UsersGet"); - - var localVarPath = "/api/Users/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserInfoDTO))); - } - - /// - /// This call gets user object for update - /// - /// Thrown when fails to make API call - /// Identifier - /// UserUpdateDTO - public UserUpdateDTO UsersGetForUpdate (int? id) - { - ApiResponse localVarResponse = UsersGetForUpdateWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets user object for update - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of UserUpdateDTO - public ApiResponse< UserUpdateDTO > UsersGetForUpdateWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersApi->UsersGetForUpdate"); - - var localVarPath = "/api/Users/ForUpdate/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersGetForUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserUpdateDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserUpdateDTO))); - } - - /// - /// This call gets user object for update - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of UserUpdateDTO - public async System.Threading.Tasks.Task UsersGetForUpdateAsync (int? id) - { - ApiResponse localVarResponse = await UsersGetForUpdateAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets user object for update - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse (UserUpdateDTO) - public async System.Threading.Tasks.Task> UsersGetForUpdateAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersApi->UsersGetForUpdate"); - - var localVarPath = "/api/Users/ForUpdate/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersGetForUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserUpdateDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserUpdateDTO))); - } - - /// - /// This call returns all user groups defined in Arxivar - /// - /// Thrown when fails to make API call - /// List<UserGroupDTO> - public List UsersGetGroups () - { - ApiResponse> localVarResponse = UsersGetGroupsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all user groups defined in Arxivar - /// - /// Thrown when fails to make API call - /// ApiResponse of List<UserGroupDTO> - public ApiResponse< List > UsersGetGroupsWithHttpInfo () - { - - var localVarPath = "/api/Users/Groups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersGetGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all user groups defined in Arxivar - /// - /// Thrown when fails to make API call - /// Task of List<UserGroupDTO> - public async System.Threading.Tasks.Task> UsersGetGroupsAsync () - { - ApiResponse> localVarResponse = await UsersGetGroupsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all user groups defined in Arxivar - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<UserGroupDTO>) - public async System.Threading.Tasks.Task>> UsersGetGroupsAsyncWithHttpInfo () - { - - var localVarPath = "/api/Users/Groups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersGetGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all user in a specific group - /// - /// Thrown when fails to make API call - /// - /// List<UserCompleteDTO> - public List UsersGetUserByGroup (int? groupId) - { - ApiResponse> localVarResponse = UsersGetUserByGroupWithHttpInfo(groupId); - return localVarResponse.Data; - } - - /// - /// This call returns all user in a specific group - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<UserCompleteDTO> - public ApiResponse< List > UsersGetUserByGroupWithHttpInfo (int? groupId) - { - // verify the required parameter 'groupId' is set - if (groupId == null) - throw new ApiException(400, "Missing required parameter 'groupId' when calling UsersApi->UsersGetUserByGroup"); - - var localVarPath = "/api/Users/ByGroupId/{groupId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (groupId != null) localVarPathParams.Add("groupId", this.Configuration.ApiClient.ParameterToString(groupId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersGetUserByGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all user in a specific group - /// - /// Thrown when fails to make API call - /// - /// Task of List<UserCompleteDTO> - public async System.Threading.Tasks.Task> UsersGetUserByGroupAsync (int? groupId) - { - ApiResponse> localVarResponse = await UsersGetUserByGroupAsyncWithHttpInfo(groupId); - return localVarResponse.Data; - - } - - /// - /// This call returns all user in a specific group - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<UserCompleteDTO>) - public async System.Threading.Tasks.Task>> UsersGetUserByGroupAsyncWithHttpInfo (int? groupId) - { - // verify the required parameter 'groupId' is set - if (groupId == null) - throw new ApiException(400, "Missing required parameter 'groupId' when calling UsersApi->UsersGetUserByGroup"); - - var localVarPath = "/api/Users/ByGroupId/{groupId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (groupId != null) localVarPathParams.Add("groupId", this.Configuration.ApiClient.ParameterToString(groupId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersGetUserByGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the informations of the connected user - /// - /// Thrown when fails to make API call - /// UserInfoDTO - public UserInfoDTO UsersGetUserInfo () - { - ApiResponse localVarResponse = UsersGetUserInfoWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the informations of the connected user - /// - /// Thrown when fails to make API call - /// ApiResponse of UserInfoDTO - public ApiResponse< UserInfoDTO > UsersGetUserInfoWithHttpInfo () - { - - var localVarPath = "/api/Users/UserInfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersGetUserInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserInfoDTO))); - } - - /// - /// This call returns the informations of the connected user - /// - /// Thrown when fails to make API call - /// Task of UserInfoDTO - public async System.Threading.Tasks.Task UsersGetUserInfoAsync () - { - ApiResponse localVarResponse = await UsersGetUserInfoAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the informations of the connected user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (UserInfoDTO) - public async System.Threading.Tasks.Task> UsersGetUserInfoAsyncWithHttpInfo () - { - - var localVarPath = "/api/Users/UserInfo"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersGetUserInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserInfoDTO))); - } - - /// - /// This call returns all users defined in Arxivar - /// - /// Thrown when fails to make API call - /// List<UserCompleteDTO> - public List UsersGet_0 () - { - ApiResponse> localVarResponse = UsersGet_0WithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all users defined in Arxivar - /// - /// Thrown when fails to make API call - /// ApiResponse of List<UserCompleteDTO> - public ApiResponse< List > UsersGet_0WithHttpInfo () - { - - var localVarPath = "/api/Users"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersGet_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all users defined in Arxivar - /// - /// Thrown when fails to make API call - /// Task of List<UserCompleteDTO> - public async System.Threading.Tasks.Task> UsersGet_0Async () - { - ApiResponse> localVarResponse = await UsersGet_0AsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all users defined in Arxivar - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<UserCompleteDTO>) - public async System.Threading.Tasks.Task>> UsersGet_0AsyncWithHttpInfo () - { - - var localVarPath = "/api/Users"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersGet_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts a new user - /// - /// Thrown when fails to make API call - /// User information to insert - /// UserCompleteDTO - public UserCompleteDTO UsersInsert (UserInsertDTO userInsert) - { - ApiResponse localVarResponse = UsersInsertWithHttpInfo(userInsert); - return localVarResponse.Data; - } - - /// - /// This call inserts a new user - /// - /// Thrown when fails to make API call - /// User information to insert - /// ApiResponse of UserCompleteDTO - public ApiResponse< UserCompleteDTO > UsersInsertWithHttpInfo (UserInsertDTO userInsert) - { - // verify the required parameter 'userInsert' is set - if (userInsert == null) - throw new ApiException(400, "Missing required parameter 'userInsert' when calling UsersApi->UsersInsert"); - - var localVarPath = "/api/Users"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userInsert != null && userInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userInsert); // http body (model) parameter - } - else - { - localVarPostBody = userInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserCompleteDTO))); - } - - /// - /// This call inserts a new user - /// - /// Thrown when fails to make API call - /// User information to insert - /// Task of UserCompleteDTO - public async System.Threading.Tasks.Task UsersInsertAsync (UserInsertDTO userInsert) - { - ApiResponse localVarResponse = await UsersInsertAsyncWithHttpInfo(userInsert); - return localVarResponse.Data; - - } - - /// - /// This call inserts a new user - /// - /// Thrown when fails to make API call - /// User information to insert - /// Task of ApiResponse (UserCompleteDTO) - public async System.Threading.Tasks.Task> UsersInsertAsyncWithHttpInfo (UserInsertDTO userInsert) - { - // verify the required parameter 'userInsert' is set - if (userInsert == null) - throw new ApiException(400, "Missing required parameter 'userInsert' when calling UsersApi->UsersInsert"); - - var localVarPath = "/api/Users"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userInsert != null && userInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userInsert); // http body (model) parameter - } - else - { - localVarPostBody = userInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserCompleteDTO))); - } - - /// - /// This call updates the user languages - /// - /// Thrown when fails to make API call - /// Language code to set - /// - public void UsersSetLang (string lang) - { - UsersSetLangWithHttpInfo(lang); - } - - /// - /// This call updates the user languages - /// - /// Thrown when fails to make API call - /// Language code to set - /// ApiResponse of Object(void) - public ApiResponse UsersSetLangWithHttpInfo (string lang) - { - // verify the required parameter 'lang' is set - if (lang == null) - throw new ApiException(400, "Missing required parameter 'lang' when calling UsersApi->UsersSetLang"); - - var localVarPath = "/api/Users/lang/{lang}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (lang != null) localVarPathParams.Add("lang", this.Configuration.ApiClient.ParameterToString(lang)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersSetLang", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates the user languages - /// - /// Thrown when fails to make API call - /// Language code to set - /// Task of void - public async System.Threading.Tasks.Task UsersSetLangAsync (string lang) - { - await UsersSetLangAsyncWithHttpInfo(lang); - - } - - /// - /// This call updates the user languages - /// - /// Thrown when fails to make API call - /// Language code to set - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersSetLangAsyncWithHttpInfo (string lang) - { - // verify the required parameter 'lang' is set - if (lang == null) - throw new ApiException(400, "Missing required parameter 'lang' when calling UsersApi->UsersSetLang"); - - var localVarPath = "/api/Users/lang/{lang}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (lang != null) localVarPathParams.Add("lang", this.Configuration.ApiClient.ParameterToString(lang)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersSetLang", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates a given user - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// UserCompleteDTO - public UserCompleteDTO UsersUpdate (int? id, UserUpdateDTO userupdate = null) - { - ApiResponse localVarResponse = UsersUpdateWithHttpInfo(id, userupdate); - return localVarResponse.Data; - } - - /// - /// This call updates a given user - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// ApiResponse of UserCompleteDTO - public ApiResponse< UserCompleteDTO > UsersUpdateWithHttpInfo (int? id, UserUpdateDTO userupdate = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersApi->UsersUpdate"); - - var localVarPath = "/api/Users/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (userupdate != null && userupdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userupdate); // http body (model) parameter - } - else - { - localVarPostBody = userupdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserCompleteDTO))); - } - - /// - /// This call updates a given user - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// Task of UserCompleteDTO - public async System.Threading.Tasks.Task UsersUpdateAsync (int? id, UserUpdateDTO userupdate = null) - { - ApiResponse localVarResponse = await UsersUpdateAsyncWithHttpInfo(id, userupdate); - return localVarResponse.Data; - - } - - /// - /// This call updates a given user - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// Task of ApiResponse (UserCompleteDTO) - public async System.Threading.Tasks.Task> UsersUpdateAsyncWithHttpInfo (int? id, UserUpdateDTO userupdate = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersApi->UsersUpdate"); - - var localVarPath = "/api/Users/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (userupdate != null && userupdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userupdate); // http body (model) parameter - } - else - { - localVarPostBody = userupdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserCompleteDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/UsersLangApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/UsersLangApi.cs deleted file mode 100644 index baa5a41..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/UsersLangApi.cs +++ /dev/null @@ -1,345 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IUsersLangApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call retrieves the default language for a user by the given username - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Dto that contains the username for the language - /// string - string UsersLangGet (UserLangDto langDto); - - /// - /// This call retrieves the default language for a user by the given username - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Dto that contains the username for the language - /// ApiResponse of string - ApiResponse UsersLangGetWithHttpInfo (UserLangDto langDto); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call retrieves the default language for a user by the given username - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Dto that contains the username for the language - /// Task of string - System.Threading.Tasks.Task UsersLangGetAsync (UserLangDto langDto); - - /// - /// This call retrieves the default language for a user by the given username - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Dto that contains the username for the language - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> UsersLangGetAsyncWithHttpInfo (UserLangDto langDto); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class UsersLangApi : IUsersLangApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public UsersLangApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public UsersLangApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call retrieves the default language for a user by the given username - /// - /// Thrown when fails to make API call - /// Dto that contains the username for the language - /// string - public string UsersLangGet (UserLangDto langDto) - { - ApiResponse localVarResponse = UsersLangGetWithHttpInfo(langDto); - return localVarResponse.Data; - } - - /// - /// This call retrieves the default language for a user by the given username - /// - /// Thrown when fails to make API call - /// Dto that contains the username for the language - /// ApiResponse of string - public ApiResponse< string > UsersLangGetWithHttpInfo (UserLangDto langDto) - { - // verify the required parameter 'langDto' is set - if (langDto == null) - throw new ApiException(400, "Missing required parameter 'langDto' when calling UsersLangApi->UsersLangGet"); - - var localVarPath = "/api/UsersLang"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (langDto != null && langDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(langDto); // http body (model) parameter - } - else - { - localVarPostBody = langDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersLangGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call retrieves the default language for a user by the given username - /// - /// Thrown when fails to make API call - /// Dto that contains the username for the language - /// Task of string - public async System.Threading.Tasks.Task UsersLangGetAsync (UserLangDto langDto) - { - ApiResponse localVarResponse = await UsersLangGetAsyncWithHttpInfo(langDto); - return localVarResponse.Data; - - } - - /// - /// This call retrieves the default language for a user by the given username - /// - /// Thrown when fails to make API call - /// Dto that contains the username for the language - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> UsersLangGetAsyncWithHttpInfo (UserLangDto langDto) - { - // verify the required parameter 'langDto' is set - if (langDto == null) - throw new ApiException(400, "Missing required parameter 'langDto' when calling UsersLangApi->UsersLangGet"); - - var localVarPath = "/api/UsersLang"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (langDto != null && langDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(langDto); // http body (model) parameter - } - else - { - localVarPostBody = langDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersLangGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/UtilitiesApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/UtilitiesApi.cs deleted file mode 100644 index 2142e84..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/UtilitiesApi.cs +++ /dev/null @@ -1,337 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IUtilitiesApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// List<FieldManagementDTO> - List UtilitiesGetFields (int? documentTypeId, int? fieldMode); - - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// ApiResponse of List<FieldManagementDTO> - ApiResponse> UtilitiesGetFieldsWithHttpInfo (int? documentTypeId, int? fieldMode); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// Task of List<FieldManagementDTO> - System.Threading.Tasks.Task> UtilitiesGetFieldsAsync (int? documentTypeId, int? fieldMode); - - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// Task of ApiResponse (List<FieldManagementDTO>) - System.Threading.Tasks.Task>> UtilitiesGetFieldsAsyncWithHttpInfo (int? documentTypeId, int? fieldMode); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class UtilitiesApi : IUtilitiesApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public UtilitiesApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public UtilitiesApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// List<FieldManagementDTO> - public List UtilitiesGetFields (int? documentTypeId, int? fieldMode) - { - ApiResponse> localVarResponse = UtilitiesGetFieldsWithHttpInfo(documentTypeId, fieldMode); - return localVarResponse.Data; - } - - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// ApiResponse of List<FieldManagementDTO> - public ApiResponse< List > UtilitiesGetFieldsWithHttpInfo (int? documentTypeId, int? fieldMode) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling UtilitiesApi->UtilitiesGetFields"); - // verify the required parameter 'fieldMode' is set - if (fieldMode == null) - throw new ApiException(400, "Missing required parameter 'fieldMode' when calling UtilitiesApi->UtilitiesGetFields"); - - var localVarPath = "/api/Utilities/Fields/{documentTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (fieldMode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "fieldMode", fieldMode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesGetFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// Task of List<FieldManagementDTO> - public async System.Threading.Tasks.Task> UtilitiesGetFieldsAsync (int? documentTypeId, int? fieldMode) - { - ApiResponse> localVarResponse = await UtilitiesGetFieldsAsyncWithHttpInfo(documentTypeId, fieldMode); - return localVarResponse.Data; - - } - - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// Task of ApiResponse (List<FieldManagementDTO>) - public async System.Threading.Tasks.Task>> UtilitiesGetFieldsAsyncWithHttpInfo (int? documentTypeId, int? fieldMode) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling UtilitiesApi->UtilitiesGetFields"); - // verify the required parameter 'fieldMode' is set - if (fieldMode == null) - throw new ApiException(400, "Missing required parameter 'fieldMode' when calling UtilitiesApi->UtilitiesGetFields"); - - var localVarPath = "/api/Utilities/Fields/{documentTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (fieldMode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "fieldMode", fieldMode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesGetFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ViewsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ViewsApi.cs deleted file mode 100644 index 4654caf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ViewsApi.cs +++ /dev/null @@ -1,1083 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IViewsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes the view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void ViewsDeleteView (string id); - - /// - /// This call deletes the view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse ViewsDeleteViewWithHttpInfo (string id); - /// - /// This call returns the results for the given view - /// - /// - /// This method is deprecated. Use api/v3/Views - /// - /// Thrown when fails to make API call - /// (optional) - /// List<RowSearchResult> - List ViewsGetResult (ViewDTO view = null); - - /// - /// This call returns the results for the given view - /// - /// - /// This method is deprecated. Use api/v3/Views - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of List<RowSearchResult> - ApiResponse> ViewsGetResultWithHttpInfo (ViewDTO view = null); - /// - /// This call returns the view with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ViewDTO - ViewDTO ViewsGetView (string id); - - /// - /// This call returns the view with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ViewDTO - ApiResponse ViewsGetViewWithHttpInfo (string id); - /// - /// This call return the view configured on a task operation with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// ViewDTO - ViewDTO ViewsGetViewByTaskWorkOperationId (int? taskworkId, string operationId); - - /// - /// This call return the view configured on a task operation with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// ApiResponse of ViewDTO - ApiResponse ViewsGetViewByTaskWorkOperationIdWithHttpInfo (int? taskworkId, string operationId); - /// - /// This call returns the list of views for the connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<ViewDTO> - List ViewsGetViews (); - - /// - /// This call returns the list of views for the connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ViewDTO> - ApiResponse> ViewsGetViewsWithHttpInfo (); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes the view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task ViewsDeleteViewAsync (string id); - - /// - /// This call deletes the view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> ViewsDeleteViewAsyncWithHttpInfo (string id); - /// - /// This call returns the results for the given view - /// - /// - /// This method is deprecated. Use api/v3/Views - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of List<RowSearchResult> - System.Threading.Tasks.Task> ViewsGetResultAsync (ViewDTO view = null); - - /// - /// This call returns the results for the given view - /// - /// - /// This method is deprecated. Use api/v3/Views - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (List<RowSearchResult>) - System.Threading.Tasks.Task>> ViewsGetResultAsyncWithHttpInfo (ViewDTO view = null); - /// - /// This call returns the view with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ViewDTO - System.Threading.Tasks.Task ViewsGetViewAsync (string id); - - /// - /// This call returns the view with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ViewDTO) - System.Threading.Tasks.Task> ViewsGetViewAsyncWithHttpInfo (string id); - /// - /// This call return the view configured on a task operation with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// Task of ViewDTO - System.Threading.Tasks.Task ViewsGetViewByTaskWorkOperationIdAsync (int? taskworkId, string operationId); - - /// - /// This call return the view configured on a task operation with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// Task of ApiResponse (ViewDTO) - System.Threading.Tasks.Task> ViewsGetViewByTaskWorkOperationIdAsyncWithHttpInfo (int? taskworkId, string operationId); - /// - /// This call returns the list of views for the connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<ViewDTO> - System.Threading.Tasks.Task> ViewsGetViewsAsync (); - - /// - /// This call returns the list of views for the connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ViewDTO>) - System.Threading.Tasks.Task>> ViewsGetViewsAsyncWithHttpInfo (); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ViewsApi : IViewsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ViewsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ViewsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes the view - /// - /// Thrown when fails to make API call - /// - /// - public void ViewsDeleteView (string id) - { - ViewsDeleteViewWithHttpInfo(id); - } - - /// - /// This call deletes the view - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse ViewsDeleteViewWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ViewsApi->ViewsDeleteView"); - - var localVarPath = "/api/Views/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsDeleteView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes the view - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task ViewsDeleteViewAsync (string id) - { - await ViewsDeleteViewAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes the view - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ViewsDeleteViewAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ViewsApi->ViewsDeleteView"); - - var localVarPath = "/api/Views/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsDeleteView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the results for the given view This method is deprecated. Use api/v3/Views - /// - /// Thrown when fails to make API call - /// (optional) - /// List<RowSearchResult> - public List ViewsGetResult (ViewDTO view = null) - { - ApiResponse> localVarResponse = ViewsGetResultWithHttpInfo(view); - return localVarResponse.Data; - } - - /// - /// This call returns the results for the given view This method is deprecated. Use api/v3/Views - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of List<RowSearchResult> - public ApiResponse< List > ViewsGetResultWithHttpInfo (ViewDTO view = null) - { - - var localVarPath = "/api/Views"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (view != null && view.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(view); // http body (model) parameter - } - else - { - localVarPostBody = view; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsGetResult", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the results for the given view This method is deprecated. Use api/v3/Views - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of List<RowSearchResult> - public async System.Threading.Tasks.Task> ViewsGetResultAsync (ViewDTO view = null) - { - ApiResponse> localVarResponse = await ViewsGetResultAsyncWithHttpInfo(view); - return localVarResponse.Data; - - } - - /// - /// This call returns the results for the given view This method is deprecated. Use api/v3/Views - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (List<RowSearchResult>) - public async System.Threading.Tasks.Task>> ViewsGetResultAsyncWithHttpInfo (ViewDTO view = null) - { - - var localVarPath = "/api/Views"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (view != null && view.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(view); // http body (model) parameter - } - else - { - localVarPostBody = view; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsGetResult", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the view with all information - /// - /// Thrown when fails to make API call - /// - /// ViewDTO - public ViewDTO ViewsGetView (string id) - { - ApiResponse localVarResponse = ViewsGetViewWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns the view with all information - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ViewDTO - public ApiResponse< ViewDTO > ViewsGetViewWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ViewsApi->ViewsGetView"); - - var localVarPath = "/api/Views/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsGetView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ViewDTO))); - } - - /// - /// This call returns the view with all information - /// - /// Thrown when fails to make API call - /// - /// Task of ViewDTO - public async System.Threading.Tasks.Task ViewsGetViewAsync (string id) - { - ApiResponse localVarResponse = await ViewsGetViewAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns the view with all information - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ViewDTO) - public async System.Threading.Tasks.Task> ViewsGetViewAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ViewsApi->ViewsGetView"); - - var localVarPath = "/api/Views/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsGetView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ViewDTO))); - } - - /// - /// This call return the view configured on a task operation with all information - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// ViewDTO - public ViewDTO ViewsGetViewByTaskWorkOperationId (int? taskworkId, string operationId) - { - ApiResponse localVarResponse = ViewsGetViewByTaskWorkOperationIdWithHttpInfo(taskworkId, operationId); - return localVarResponse.Data; - } - - /// - /// This call return the view configured on a task operation with all information - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// ApiResponse of ViewDTO - public ApiResponse< ViewDTO > ViewsGetViewByTaskWorkOperationIdWithHttpInfo (int? taskworkId, string operationId) - { - // verify the required parameter 'taskworkId' is set - if (taskworkId == null) - throw new ApiException(400, "Missing required parameter 'taskworkId' when calling ViewsApi->ViewsGetViewByTaskWorkOperationId"); - // verify the required parameter 'operationId' is set - if (operationId == null) - throw new ApiException(400, "Missing required parameter 'operationId' when calling ViewsApi->ViewsGetViewByTaskWorkOperationId"); - - var localVarPath = "/api/Views/task/{taskworkId}/operation/{operationId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkId != null) localVarPathParams.Add("taskworkId", this.Configuration.ApiClient.ParameterToString(taskworkId)); // path parameter - if (operationId != null) localVarPathParams.Add("operationId", this.Configuration.ApiClient.ParameterToString(operationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsGetViewByTaskWorkOperationId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ViewDTO))); - } - - /// - /// This call return the view configured on a task operation with all information - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// Task of ViewDTO - public async System.Threading.Tasks.Task ViewsGetViewByTaskWorkOperationIdAsync (int? taskworkId, string operationId) - { - ApiResponse localVarResponse = await ViewsGetViewByTaskWorkOperationIdAsyncWithHttpInfo(taskworkId, operationId); - return localVarResponse.Data; - - } - - /// - /// This call return the view configured on a task operation with all information - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// Task of ApiResponse (ViewDTO) - public async System.Threading.Tasks.Task> ViewsGetViewByTaskWorkOperationIdAsyncWithHttpInfo (int? taskworkId, string operationId) - { - // verify the required parameter 'taskworkId' is set - if (taskworkId == null) - throw new ApiException(400, "Missing required parameter 'taskworkId' when calling ViewsApi->ViewsGetViewByTaskWorkOperationId"); - // verify the required parameter 'operationId' is set - if (operationId == null) - throw new ApiException(400, "Missing required parameter 'operationId' when calling ViewsApi->ViewsGetViewByTaskWorkOperationId"); - - var localVarPath = "/api/Views/task/{taskworkId}/operation/{operationId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkId != null) localVarPathParams.Add("taskworkId", this.Configuration.ApiClient.ParameterToString(taskworkId)); // path parameter - if (operationId != null) localVarPathParams.Add("operationId", this.Configuration.ApiClient.ParameterToString(operationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsGetViewByTaskWorkOperationId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ViewDTO))); - } - - /// - /// This call returns the list of views for the connected user - /// - /// Thrown when fails to make API call - /// List<ViewDTO> - public List ViewsGetViews () - { - ApiResponse> localVarResponse = ViewsGetViewsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the list of views for the connected user - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ViewDTO> - public ApiResponse< List > ViewsGetViewsWithHttpInfo () - { - - var localVarPath = "/api/Views"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsGetViews", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the list of views for the connected user - /// - /// Thrown when fails to make API call - /// Task of List<ViewDTO> - public async System.Threading.Tasks.Task> ViewsGetViewsAsync () - { - ApiResponse> localVarResponse = await ViewsGetViewsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the list of views for the connected user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ViewDTO>) - public async System.Threading.Tasks.Task>> ViewsGetViewsAsyncWithHttpInfo () - { - - var localVarPath = "/api/Views"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsGetViews", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ViewsBuilderApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ViewsBuilderApi.cs deleted file mode 100644 index 8f759e3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ViewsBuilderApi.cs +++ /dev/null @@ -1,1744 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IViewsBuilderApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call updates 'show field' in view execution - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Value for the flag - /// - void ViewsBuilderChangeShowFields (string viewId, bool? showFields); - - /// - /// This call updates 'show field' in view execution - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Value for the flag - /// ApiResponse of Object(void) - ApiResponse ViewsBuilderChangeShowFieldsWithHttpInfo (string viewId, bool? showFields); - /// - /// This call updates a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ViewEditDTO - ViewEditDTO ViewsBuilderEditView (ViewEditDTO viewedit = null); - - /// - /// This call updates a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ViewEditDTO - ApiResponse ViewsBuilderEditViewWithHttpInfo (ViewEditDTO viewedit = null); - /// - /// This call updates a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ViewEditDTO - ViewEditDTO ViewsBuilderEditView_0 (ViewEditDTO viewedit = null); - - /// - /// This call updates a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ViewEditDTO - ApiResponse ViewsBuilderEditView_0WithHttpInfo (ViewEditDTO viewedit = null); - /// - /// This call returns a new search by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifer - /// SearchDTO - SearchDTO ViewsBuilderGetSearch (int? documentType); - - /// - /// This call returns a new search by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifer - /// ApiResponse of SearchDTO - ApiResponse ViewsBuilderGetSearchWithHttpInfo (int? documentType); - /// - /// This call returns a new search by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// SearchDTO - SearchDTO ViewsBuilderGetSearch_0 (int? documentType, int? tipo2, int? tipo3); - - /// - /// This call returns a new search by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// ApiResponse of SearchDTO - ApiResponse ViewsBuilderGetSearch_0WithHttpInfo (int? documentType, int? tipo2, int? tipo3); - /// - /// This call returns a new select by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// SelectDTO - SelectDTO ViewsBuilderGetSelect (int? documentType); - - /// - /// This call returns a new select by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ApiResponse of SelectDTO - ApiResponse ViewsBuilderGetSelectWithHttpInfo (int? documentType); - /// - /// This call returns a new select by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// SelectDTO - SelectDTO ViewsBuilderGetSelect_0 (int? documentType, int? tipo2, int? tipo3); - - /// - /// This call returns a new select by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// ApiResponse of SelectDTO - ApiResponse ViewsBuilderGetSelect_0WithHttpInfo (int? documentType, int? tipo2, int? tipo3); - /// - /// This call returns a view for edit purpose - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// ViewEditDTO - ViewEditDTO ViewsBuilderGetViewForEdit (string viewId); - - /// - /// This call returns a view for edit purpose - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// ApiResponse of ViewEditDTO - ApiResponse ViewsBuilderGetViewForEditWithHttpInfo (string viewId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call updates 'show field' in view execution - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Value for the flag - /// Task of void - System.Threading.Tasks.Task ViewsBuilderChangeShowFieldsAsync (string viewId, bool? showFields); - - /// - /// This call updates 'show field' in view execution - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Value for the flag - /// Task of ApiResponse - System.Threading.Tasks.Task> ViewsBuilderChangeShowFieldsAsyncWithHttpInfo (string viewId, bool? showFields); - /// - /// This call updates a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ViewEditDTO - System.Threading.Tasks.Task ViewsBuilderEditViewAsync (ViewEditDTO viewedit = null); - - /// - /// This call updates a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ViewEditDTO) - System.Threading.Tasks.Task> ViewsBuilderEditViewAsyncWithHttpInfo (ViewEditDTO viewedit = null); - /// - /// This call updates a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ViewEditDTO - System.Threading.Tasks.Task ViewsBuilderEditView_0Async (ViewEditDTO viewedit = null); - - /// - /// This call updates a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ViewEditDTO) - System.Threading.Tasks.Task> ViewsBuilderEditView_0AsyncWithHttpInfo (ViewEditDTO viewedit = null); - /// - /// This call returns a new search by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifer - /// Task of SearchDTO - System.Threading.Tasks.Task ViewsBuilderGetSearchAsync (int? documentType); - - /// - /// This call returns a new search by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifer - /// Task of ApiResponse (SearchDTO) - System.Threading.Tasks.Task> ViewsBuilderGetSearchAsyncWithHttpInfo (int? documentType); - /// - /// This call returns a new search by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// Task of SearchDTO - System.Threading.Tasks.Task ViewsBuilderGetSearch_0Async (int? documentType, int? tipo2, int? tipo3); - - /// - /// This call returns a new search by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// Task of ApiResponse (SearchDTO) - System.Threading.Tasks.Task> ViewsBuilderGetSearch_0AsyncWithHttpInfo (int? documentType, int? tipo2, int? tipo3); - /// - /// This call returns a new select by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of SelectDTO - System.Threading.Tasks.Task ViewsBuilderGetSelectAsync (int? documentType); - - /// - /// This call returns a new select by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> ViewsBuilderGetSelectAsyncWithHttpInfo (int? documentType); - /// - /// This call returns a new select by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// Task of SelectDTO - System.Threading.Tasks.Task ViewsBuilderGetSelect_0Async (int? documentType, int? tipo2, int? tipo3); - - /// - /// This call returns a new select by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// Task of ApiResponse (SelectDTO) - System.Threading.Tasks.Task> ViewsBuilderGetSelect_0AsyncWithHttpInfo (int? documentType, int? tipo2, int? tipo3); - /// - /// This call returns a view for edit purpose - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Task of ViewEditDTO - System.Threading.Tasks.Task ViewsBuilderGetViewForEditAsync (string viewId); - - /// - /// This call returns a view for edit purpose - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Task of ApiResponse (ViewEditDTO) - System.Threading.Tasks.Task> ViewsBuilderGetViewForEditAsyncWithHttpInfo (string viewId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ViewsBuilderApi : IViewsBuilderApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ViewsBuilderApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ViewsBuilderApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call updates 'show field' in view execution - /// - /// Thrown when fails to make API call - /// View identifier - /// Value for the flag - /// - public void ViewsBuilderChangeShowFields (string viewId, bool? showFields) - { - ViewsBuilderChangeShowFieldsWithHttpInfo(viewId, showFields); - } - - /// - /// This call updates 'show field' in view execution - /// - /// Thrown when fails to make API call - /// View identifier - /// Value for the flag - /// ApiResponse of Object(void) - public ApiResponse ViewsBuilderChangeShowFieldsWithHttpInfo (string viewId, bool? showFields) - { - // verify the required parameter 'viewId' is set - if (viewId == null) - throw new ApiException(400, "Missing required parameter 'viewId' when calling ViewsBuilderApi->ViewsBuilderChangeShowFields"); - // verify the required parameter 'showFields' is set - if (showFields == null) - throw new ApiException(400, "Missing required parameter 'showFields' when calling ViewsBuilderApi->ViewsBuilderChangeShowFields"); - - var localVarPath = "/api/ViewsBuilder/showFields/{viewId}/{showFields}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewId != null) localVarPathParams.Add("viewId", this.Configuration.ApiClient.ParameterToString(viewId)); // path parameter - if (showFields != null) localVarPathParams.Add("showFields", this.Configuration.ApiClient.ParameterToString(showFields)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderChangeShowFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates 'show field' in view execution - /// - /// Thrown when fails to make API call - /// View identifier - /// Value for the flag - /// Task of void - public async System.Threading.Tasks.Task ViewsBuilderChangeShowFieldsAsync (string viewId, bool? showFields) - { - await ViewsBuilderChangeShowFieldsAsyncWithHttpInfo(viewId, showFields); - - } - - /// - /// This call updates 'show field' in view execution - /// - /// Thrown when fails to make API call - /// View identifier - /// Value for the flag - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ViewsBuilderChangeShowFieldsAsyncWithHttpInfo (string viewId, bool? showFields) - { - // verify the required parameter 'viewId' is set - if (viewId == null) - throw new ApiException(400, "Missing required parameter 'viewId' when calling ViewsBuilderApi->ViewsBuilderChangeShowFields"); - // verify the required parameter 'showFields' is set - if (showFields == null) - throw new ApiException(400, "Missing required parameter 'showFields' when calling ViewsBuilderApi->ViewsBuilderChangeShowFields"); - - var localVarPath = "/api/ViewsBuilder/showFields/{viewId}/{showFields}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewId != null) localVarPathParams.Add("viewId", this.Configuration.ApiClient.ParameterToString(viewId)); // path parameter - if (showFields != null) localVarPathParams.Add("showFields", this.Configuration.ApiClient.ParameterToString(showFields)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderChangeShowFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates a view - /// - /// Thrown when fails to make API call - /// (optional) - /// ViewEditDTO - public ViewEditDTO ViewsBuilderEditView (ViewEditDTO viewedit = null) - { - ApiResponse localVarResponse = ViewsBuilderEditViewWithHttpInfo(viewedit); - return localVarResponse.Data; - } - - /// - /// This call updates a view - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ViewEditDTO - public ApiResponse< ViewEditDTO > ViewsBuilderEditViewWithHttpInfo (ViewEditDTO viewedit = null) - { - - var localVarPath = "/api/ViewsBuilder"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewedit != null && viewedit.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(viewedit); // http body (model) parameter - } - else - { - localVarPostBody = viewedit; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderEditView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ViewEditDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ViewEditDTO))); - } - - /// - /// This call updates a view - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ViewEditDTO - public async System.Threading.Tasks.Task ViewsBuilderEditViewAsync (ViewEditDTO viewedit = null) - { - ApiResponse localVarResponse = await ViewsBuilderEditViewAsyncWithHttpInfo(viewedit); - return localVarResponse.Data; - - } - - /// - /// This call updates a view - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ViewEditDTO) - public async System.Threading.Tasks.Task> ViewsBuilderEditViewAsyncWithHttpInfo (ViewEditDTO viewedit = null) - { - - var localVarPath = "/api/ViewsBuilder"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewedit != null && viewedit.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(viewedit); // http body (model) parameter - } - else - { - localVarPostBody = viewedit; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderEditView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ViewEditDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ViewEditDTO))); - } - - /// - /// This call updates a view - /// - /// Thrown when fails to make API call - /// (optional) - /// ViewEditDTO - public ViewEditDTO ViewsBuilderEditView_0 (ViewEditDTO viewedit = null) - { - ApiResponse localVarResponse = ViewsBuilderEditView_0WithHttpInfo(viewedit); - return localVarResponse.Data; - } - - /// - /// This call updates a view - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ViewEditDTO - public ApiResponse< ViewEditDTO > ViewsBuilderEditView_0WithHttpInfo (ViewEditDTO viewedit = null) - { - - var localVarPath = "/api/ViewsBuilder"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewedit != null && viewedit.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(viewedit); // http body (model) parameter - } - else - { - localVarPostBody = viewedit; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderEditView_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ViewEditDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ViewEditDTO))); - } - - /// - /// This call updates a view - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ViewEditDTO - public async System.Threading.Tasks.Task ViewsBuilderEditView_0Async (ViewEditDTO viewedit = null) - { - ApiResponse localVarResponse = await ViewsBuilderEditView_0AsyncWithHttpInfo(viewedit); - return localVarResponse.Data; - - } - - /// - /// This call updates a view - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (ViewEditDTO) - public async System.Threading.Tasks.Task> ViewsBuilderEditView_0AsyncWithHttpInfo (ViewEditDTO viewedit = null) - { - - var localVarPath = "/api/ViewsBuilder"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewedit != null && viewedit.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(viewedit); // http body (model) parameter - } - else - { - localVarPostBody = viewedit; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderEditView_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ViewEditDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ViewEditDTO))); - } - - /// - /// This call returns a new search by a document type - /// - /// Thrown when fails to make API call - /// Document type identifer - /// SearchDTO - public SearchDTO ViewsBuilderGetSearch (int? documentType) - { - ApiResponse localVarResponse = ViewsBuilderGetSearchWithHttpInfo(documentType); - return localVarResponse.Data; - } - - /// - /// This call returns a new search by a document type - /// - /// Thrown when fails to make API call - /// Document type identifer - /// ApiResponse of SearchDTO - public ApiResponse< SearchDTO > ViewsBuilderGetSearchWithHttpInfo (int? documentType) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling ViewsBuilderApi->ViewsBuilderGetSearch"); - - var localVarPath = "/api/ViewsBuilder/search/{documentType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderGetSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns a new search by a document type - /// - /// Thrown when fails to make API call - /// Document type identifer - /// Task of SearchDTO - public async System.Threading.Tasks.Task ViewsBuilderGetSearchAsync (int? documentType) - { - ApiResponse localVarResponse = await ViewsBuilderGetSearchAsyncWithHttpInfo(documentType); - return localVarResponse.Data; - - } - - /// - /// This call returns a new search by a document type - /// - /// Thrown when fails to make API call - /// Document type identifer - /// Task of ApiResponse (SearchDTO) - public async System.Threading.Tasks.Task> ViewsBuilderGetSearchAsyncWithHttpInfo (int? documentType) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling ViewsBuilderApi->ViewsBuilderGetSearch"); - - var localVarPath = "/api/ViewsBuilder/search/{documentType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderGetSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns a new search by a document type - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// SearchDTO - public SearchDTO ViewsBuilderGetSearch_0 (int? documentType, int? tipo2, int? tipo3) - { - ApiResponse localVarResponse = ViewsBuilderGetSearch_0WithHttpInfo(documentType, tipo2, tipo3); - return localVarResponse.Data; - } - - /// - /// This call returns a new search by a document type - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// ApiResponse of SearchDTO - public ApiResponse< SearchDTO > ViewsBuilderGetSearch_0WithHttpInfo (int? documentType, int? tipo2, int? tipo3) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling ViewsBuilderApi->ViewsBuilderGetSearch_0"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling ViewsBuilderApi->ViewsBuilderGetSearch_0"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling ViewsBuilderApi->ViewsBuilderGetSearch_0"); - - var localVarPath = "/api/ViewsBuilder/search/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderGetSearch_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns a new search by a document type - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// Task of SearchDTO - public async System.Threading.Tasks.Task ViewsBuilderGetSearch_0Async (int? documentType, int? tipo2, int? tipo3) - { - ApiResponse localVarResponse = await ViewsBuilderGetSearch_0AsyncWithHttpInfo(documentType, tipo2, tipo3); - return localVarResponse.Data; - - } - - /// - /// This call returns a new search by a document type - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// Task of ApiResponse (SearchDTO) - public async System.Threading.Tasks.Task> ViewsBuilderGetSearch_0AsyncWithHttpInfo (int? documentType, int? tipo2, int? tipo3) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling ViewsBuilderApi->ViewsBuilderGetSearch_0"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling ViewsBuilderApi->ViewsBuilderGetSearch_0"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling ViewsBuilderApi->ViewsBuilderGetSearch_0"); - - var localVarPath = "/api/ViewsBuilder/search/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderGetSearch_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SearchDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchDTO))); - } - - /// - /// This call returns a new select by a document type - /// - /// Thrown when fails to make API call - /// Document type identifier - /// SelectDTO - public SelectDTO ViewsBuilderGetSelect (int? documentType) - { - ApiResponse localVarResponse = ViewsBuilderGetSelectWithHttpInfo(documentType); - return localVarResponse.Data; - } - - /// - /// This call returns a new select by a document type - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > ViewsBuilderGetSelectWithHttpInfo (int? documentType) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling ViewsBuilderApi->ViewsBuilderGetSelect"); - - var localVarPath = "/api/ViewsBuilder/select/{documentType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderGetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a new select by a document type - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of SelectDTO - public async System.Threading.Tasks.Task ViewsBuilderGetSelectAsync (int? documentType) - { - ApiResponse localVarResponse = await ViewsBuilderGetSelectAsyncWithHttpInfo(documentType); - return localVarResponse.Data; - - } - - /// - /// This call returns a new select by a document type - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> ViewsBuilderGetSelectAsyncWithHttpInfo (int? documentType) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling ViewsBuilderApi->ViewsBuilderGetSelect"); - - var localVarPath = "/api/ViewsBuilder/select/{documentType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderGetSelect", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a new select by a document type - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// SelectDTO - public SelectDTO ViewsBuilderGetSelect_0 (int? documentType, int? tipo2, int? tipo3) - { - ApiResponse localVarResponse = ViewsBuilderGetSelect_0WithHttpInfo(documentType, tipo2, tipo3); - return localVarResponse.Data; - } - - /// - /// This call returns a new select by a document type - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// ApiResponse of SelectDTO - public ApiResponse< SelectDTO > ViewsBuilderGetSelect_0WithHttpInfo (int? documentType, int? tipo2, int? tipo3) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling ViewsBuilderApi->ViewsBuilderGetSelect_0"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling ViewsBuilderApi->ViewsBuilderGetSelect_0"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling ViewsBuilderApi->ViewsBuilderGetSelect_0"); - - var localVarPath = "/api/ViewsBuilder/select/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderGetSelect_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a new select by a document type - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// Task of SelectDTO - public async System.Threading.Tasks.Task ViewsBuilderGetSelect_0Async (int? documentType, int? tipo2, int? tipo3) - { - ApiResponse localVarResponse = await ViewsBuilderGetSelect_0AsyncWithHttpInfo(documentType, tipo2, tipo3); - return localVarResponse.Data; - - } - - /// - /// This call returns a new select by a document type - /// - /// Thrown when fails to make API call - /// Identifier of first level document type - /// Identifier of secodn level document type - /// Identifier of third level document type - /// Task of ApiResponse (SelectDTO) - public async System.Threading.Tasks.Task> ViewsBuilderGetSelect_0AsyncWithHttpInfo (int? documentType, int? tipo2, int? tipo3) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling ViewsBuilderApi->ViewsBuilderGetSelect_0"); - // verify the required parameter 'tipo2' is set - if (tipo2 == null) - throw new ApiException(400, "Missing required parameter 'tipo2' when calling ViewsBuilderApi->ViewsBuilderGetSelect_0"); - // verify the required parameter 'tipo3' is set - if (tipo3 == null) - throw new ApiException(400, "Missing required parameter 'tipo3' when calling ViewsBuilderApi->ViewsBuilderGetSelect_0"); - - var localVarPath = "/api/ViewsBuilder/select/{documentType}/{tipo2}/{tipo3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (tipo2 != null) localVarPathParams.Add("tipo2", this.Configuration.ApiClient.ParameterToString(tipo2)); // path parameter - if (tipo3 != null) localVarPathParams.Add("tipo3", this.Configuration.ApiClient.ParameterToString(tipo3)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderGetSelect_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SelectDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SelectDTO))); - } - - /// - /// This call returns a view for edit purpose - /// - /// Thrown when fails to make API call - /// View identifier - /// ViewEditDTO - public ViewEditDTO ViewsBuilderGetViewForEdit (string viewId) - { - ApiResponse localVarResponse = ViewsBuilderGetViewForEditWithHttpInfo(viewId); - return localVarResponse.Data; - } - - /// - /// This call returns a view for edit purpose - /// - /// Thrown when fails to make API call - /// View identifier - /// ApiResponse of ViewEditDTO - public ApiResponse< ViewEditDTO > ViewsBuilderGetViewForEditWithHttpInfo (string viewId) - { - // verify the required parameter 'viewId' is set - if (viewId == null) - throw new ApiException(400, "Missing required parameter 'viewId' when calling ViewsBuilderApi->ViewsBuilderGetViewForEdit"); - - var localVarPath = "/api/ViewsBuilder/{viewId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewId != null) localVarPathParams.Add("viewId", this.Configuration.ApiClient.ParameterToString(viewId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderGetViewForEdit", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ViewEditDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ViewEditDTO))); - } - - /// - /// This call returns a view for edit purpose - /// - /// Thrown when fails to make API call - /// View identifier - /// Task of ViewEditDTO - public async System.Threading.Tasks.Task ViewsBuilderGetViewForEditAsync (string viewId) - { - ApiResponse localVarResponse = await ViewsBuilderGetViewForEditAsyncWithHttpInfo(viewId); - return localVarResponse.Data; - - } - - /// - /// This call returns a view for edit purpose - /// - /// Thrown when fails to make API call - /// View identifier - /// Task of ApiResponse (ViewEditDTO) - public async System.Threading.Tasks.Task> ViewsBuilderGetViewForEditAsyncWithHttpInfo (string viewId) - { - // verify the required parameter 'viewId' is set - if (viewId == null) - throw new ApiException(400, "Missing required parameter 'viewId' when calling ViewsBuilderApi->ViewsBuilderGetViewForEdit"); - - var localVarPath = "/api/ViewsBuilder/{viewId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewId != null) localVarPathParams.Add("viewId", this.Configuration.ApiClient.ParameterToString(viewId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsBuilderGetViewForEdit", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ViewEditDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ViewEditDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ViewsPermissionsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/ViewsPermissionsApi.cs deleted file mode 100644 index e8ec8b3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ViewsPermissionsApi.cs +++ /dev/null @@ -1,763 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IViewsPermissionsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all permissions for a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// PermissionsDTO - PermissionsDTO ViewsPermissionsGetPermissionByView (string viewId); - - /// - /// This call returns all permissions for a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// ApiResponse of PermissionsDTO - ApiResponse ViewsPermissionsGetPermissionByViewWithHttpInfo (string viewId); - /// - /// This call writes permissions for a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// - void ViewsPermissionsWritePermissionByView (string viewId, PermissionsDTO permissions); - - /// - /// This call writes permissions for a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// ApiResponse of Object(void) - ApiResponse ViewsPermissionsWritePermissionByViewWithHttpInfo (string viewId, PermissionsDTO permissions); - /// - /// This call writes permissions for a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// - void ViewsPermissionsWritePermissionByView_0 (string viewId, PermissionsDTO permissions); - - /// - /// This call writes permissions for a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// ApiResponse of Object(void) - ApiResponse ViewsPermissionsWritePermissionByView_0WithHttpInfo (string viewId, PermissionsDTO permissions); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all permissions for a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Task of PermissionsDTO - System.Threading.Tasks.Task ViewsPermissionsGetPermissionByViewAsync (string viewId); - - /// - /// This call returns all permissions for a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Task of ApiResponse (PermissionsDTO) - System.Threading.Tasks.Task> ViewsPermissionsGetPermissionByViewAsyncWithHttpInfo (string viewId); - /// - /// This call writes permissions for a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// Task of void - System.Threading.Tasks.Task ViewsPermissionsWritePermissionByViewAsync (string viewId, PermissionsDTO permissions); - - /// - /// This call writes permissions for a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// Task of ApiResponse - System.Threading.Tasks.Task> ViewsPermissionsWritePermissionByViewAsyncWithHttpInfo (string viewId, PermissionsDTO permissions); - /// - /// This call writes permissions for a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// Task of void - System.Threading.Tasks.Task ViewsPermissionsWritePermissionByView_0Async (string viewId, PermissionsDTO permissions); - - /// - /// This call writes permissions for a view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// Task of ApiResponse - System.Threading.Tasks.Task> ViewsPermissionsWritePermissionByView_0AsyncWithHttpInfo (string viewId, PermissionsDTO permissions); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ViewsPermissionsApi : IViewsPermissionsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ViewsPermissionsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ViewsPermissionsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all permissions for a view - /// - /// Thrown when fails to make API call - /// View identifier - /// PermissionsDTO - public PermissionsDTO ViewsPermissionsGetPermissionByView (string viewId) - { - ApiResponse localVarResponse = ViewsPermissionsGetPermissionByViewWithHttpInfo(viewId); - return localVarResponse.Data; - } - - /// - /// This call returns all permissions for a view - /// - /// Thrown when fails to make API call - /// View identifier - /// ApiResponse of PermissionsDTO - public ApiResponse< PermissionsDTO > ViewsPermissionsGetPermissionByViewWithHttpInfo (string viewId) - { - // verify the required parameter 'viewId' is set - if (viewId == null) - throw new ApiException(400, "Missing required parameter 'viewId' when calling ViewsPermissionsApi->ViewsPermissionsGetPermissionByView"); - - var localVarPath = "/api/ViewsPermissions/{viewId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewId != null) localVarPathParams.Add("viewId", this.Configuration.ApiClient.ParameterToString(viewId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsPermissionsGetPermissionByView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call returns all permissions for a view - /// - /// Thrown when fails to make API call - /// View identifier - /// Task of PermissionsDTO - public async System.Threading.Tasks.Task ViewsPermissionsGetPermissionByViewAsync (string viewId) - { - ApiResponse localVarResponse = await ViewsPermissionsGetPermissionByViewAsyncWithHttpInfo(viewId); - return localVarResponse.Data; - - } - - /// - /// This call returns all permissions for a view - /// - /// Thrown when fails to make API call - /// View identifier - /// Task of ApiResponse (PermissionsDTO) - public async System.Threading.Tasks.Task> ViewsPermissionsGetPermissionByViewAsyncWithHttpInfo (string viewId) - { - // verify the required parameter 'viewId' is set - if (viewId == null) - throw new ApiException(400, "Missing required parameter 'viewId' when calling ViewsPermissionsApi->ViewsPermissionsGetPermissionByView"); - - var localVarPath = "/api/ViewsPermissions/{viewId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewId != null) localVarPathParams.Add("viewId", this.Configuration.ApiClient.ParameterToString(viewId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsPermissionsGetPermissionByView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PermissionsDTO))); - } - - /// - /// This call writes permissions for a view - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// - public void ViewsPermissionsWritePermissionByView (string viewId, PermissionsDTO permissions) - { - ViewsPermissionsWritePermissionByViewWithHttpInfo(viewId, permissions); - } - - /// - /// This call writes permissions for a view - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// ApiResponse of Object(void) - public ApiResponse ViewsPermissionsWritePermissionByViewWithHttpInfo (string viewId, PermissionsDTO permissions) - { - // verify the required parameter 'viewId' is set - if (viewId == null) - throw new ApiException(400, "Missing required parameter 'viewId' when calling ViewsPermissionsApi->ViewsPermissionsWritePermissionByView"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling ViewsPermissionsApi->ViewsPermissionsWritePermissionByView"); - - var localVarPath = "/api/ViewsPermissions/{viewId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewId != null) localVarPathParams.Add("viewId", this.Configuration.ApiClient.ParameterToString(viewId)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsPermissionsWritePermissionByView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call writes permissions for a view - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// Task of void - public async System.Threading.Tasks.Task ViewsPermissionsWritePermissionByViewAsync (string viewId, PermissionsDTO permissions) - { - await ViewsPermissionsWritePermissionByViewAsyncWithHttpInfo(viewId, permissions); - - } - - /// - /// This call writes permissions for a view - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ViewsPermissionsWritePermissionByViewAsyncWithHttpInfo (string viewId, PermissionsDTO permissions) - { - // verify the required parameter 'viewId' is set - if (viewId == null) - throw new ApiException(400, "Missing required parameter 'viewId' when calling ViewsPermissionsApi->ViewsPermissionsWritePermissionByView"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling ViewsPermissionsApi->ViewsPermissionsWritePermissionByView"); - - var localVarPath = "/api/ViewsPermissions/{viewId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewId != null) localVarPathParams.Add("viewId", this.Configuration.ApiClient.ParameterToString(viewId)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsPermissionsWritePermissionByView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call writes permissions for a view - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// - public void ViewsPermissionsWritePermissionByView_0 (string viewId, PermissionsDTO permissions) - { - ViewsPermissionsWritePermissionByView_0WithHttpInfo(viewId, permissions); - } - - /// - /// This call writes permissions for a view - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// ApiResponse of Object(void) - public ApiResponse ViewsPermissionsWritePermissionByView_0WithHttpInfo (string viewId, PermissionsDTO permissions) - { - // verify the required parameter 'viewId' is set - if (viewId == null) - throw new ApiException(400, "Missing required parameter 'viewId' when calling ViewsPermissionsApi->ViewsPermissionsWritePermissionByView_0"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling ViewsPermissionsApi->ViewsPermissionsWritePermissionByView_0"); - - var localVarPath = "/api/ViewsPermissions/{viewId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewId != null) localVarPathParams.Add("viewId", this.Configuration.ApiClient.ParameterToString(viewId)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsPermissionsWritePermissionByView_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call writes permissions for a view - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// Task of void - public async System.Threading.Tasks.Task ViewsPermissionsWritePermissionByView_0Async (string viewId, PermissionsDTO permissions) - { - await ViewsPermissionsWritePermissionByView_0AsyncWithHttpInfo(viewId, permissions); - - } - - /// - /// This call writes permissions for a view - /// - /// Thrown when fails to make API call - /// View identifier - /// Permissions to set - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ViewsPermissionsWritePermissionByView_0AsyncWithHttpInfo (string viewId, PermissionsDTO permissions) - { - // verify the required parameter 'viewId' is set - if (viewId == null) - throw new ApiException(400, "Missing required parameter 'viewId' when calling ViewsPermissionsApi->ViewsPermissionsWritePermissionByView_0"); - // verify the required parameter 'permissions' is set - if (permissions == null) - throw new ApiException(400, "Missing required parameter 'permissions' when calling ViewsPermissionsApi->ViewsPermissionsWritePermissionByView_0"); - - var localVarPath = "/api/ViewsPermissions/{viewId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (viewId != null) localVarPathParams.Add("viewId", this.Configuration.ApiClient.ParameterToString(viewId)); // path parameter - if (permissions != null && permissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(permissions); // http body (model) parameter - } - else - { - localVarPostBody = permissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsPermissionsWritePermissionByView_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/ViewsV3Api.cs b/ACUtils.AXRepository/ArxivarNext/Api/ViewsV3Api.cs deleted file mode 100644 index 5b515dd..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/ViewsV3Api.cs +++ /dev/null @@ -1,1314 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IViewsV3Api : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes the view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - void ViewsV3DeleteView (string id); - - /// - /// This call deletes the view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - ApiResponse ViewsV3DeleteViewWithHttpInfo (string id); - /// - /// This call returns the results for the given view. This call could not be compatible with some programming language, in this case use the call api/Views - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Object - Object ViewsV3GetResult (ViewDTO view = null); - - /// - /// This call returns the results for the given view. This call could not be compatible with some programming language, in this case use the call api/Views - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object - ApiResponse ViewsV3GetResultWithHttpInfo (ViewDTO view = null); - /// - /// This call returns the results for the given view This call could not be compatible with some programming language, in this case use the call api/Views/task/{taskworkId}/operation/{operationId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Object - Object ViewsV3GetResultForTask (int? taskworkId, string operationId, ViewDTO view = null); - - /// - /// This call returns the results for the given view This call could not be compatible with some programming language, in this case use the call api/Views/task/{taskworkId}/operation/{operationId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// ApiResponse of Object - ApiResponse ViewsV3GetResultForTaskWithHttpInfo (int? taskworkId, string operationId, ViewDTO view = null); - /// - /// This call returns the view with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ViewDTO - ViewDTO ViewsV3GetView (string id); - - /// - /// This call returns the view with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ViewDTO - ApiResponse ViewsV3GetViewWithHttpInfo (string id); - /// - /// This call return the view configured on a task operation with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// ViewDTO - ViewDTO ViewsV3GetViewByTaskWorkOperationId (int? taskworkId, string operationId); - - /// - /// This call return the view configured on a task operation with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// ApiResponse of ViewDTO - ApiResponse ViewsV3GetViewByTaskWorkOperationIdWithHttpInfo (int? taskworkId, string operationId); - /// - /// This call returns the list of views for the connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<ViewDTO> - List ViewsV3GetViews (); - - /// - /// This call returns the list of views for the connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ViewDTO> - ApiResponse> ViewsV3GetViewsWithHttpInfo (); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes the view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of void - System.Threading.Tasks.Task ViewsV3DeleteViewAsync (string id); - - /// - /// This call deletes the view - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - System.Threading.Tasks.Task> ViewsV3DeleteViewAsyncWithHttpInfo (string id); - /// - /// This call returns the results for the given view. This call could not be compatible with some programming language, in this case use the call api/Views - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of Object - System.Threading.Tasks.Task ViewsV3GetResultAsync (ViewDTO view = null); - - /// - /// This call returns the results for the given view. This call could not be compatible with some programming language, in this case use the call api/Views - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ViewsV3GetResultAsyncWithHttpInfo (ViewDTO view = null); - /// - /// This call returns the results for the given view This call could not be compatible with some programming language, in this case use the call api/Views/task/{taskworkId}/operation/{operationId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of Object - System.Threading.Tasks.Task ViewsV3GetResultForTaskAsync (int? taskworkId, string operationId, ViewDTO view = null); - - /// - /// This call returns the results for the given view This call could not be compatible with some programming language, in this case use the call api/Views/task/{taskworkId}/operation/{operationId} - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ViewsV3GetResultForTaskAsyncWithHttpInfo (int? taskworkId, string operationId, ViewDTO view = null); - /// - /// This call returns the view with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ViewDTO - System.Threading.Tasks.Task ViewsV3GetViewAsync (string id); - - /// - /// This call returns the view with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ViewDTO) - System.Threading.Tasks.Task> ViewsV3GetViewAsyncWithHttpInfo (string id); - /// - /// This call return the view configured on a task operation with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// Task of ViewDTO - System.Threading.Tasks.Task ViewsV3GetViewByTaskWorkOperationIdAsync (int? taskworkId, string operationId); - - /// - /// This call return the view configured on a task operation with all information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// Task of ApiResponse (ViewDTO) - System.Threading.Tasks.Task> ViewsV3GetViewByTaskWorkOperationIdAsyncWithHttpInfo (int? taskworkId, string operationId); - /// - /// This call returns the list of views for the connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<ViewDTO> - System.Threading.Tasks.Task> ViewsV3GetViewsAsync (); - - /// - /// This call returns the list of views for the connected user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ViewDTO>) - System.Threading.Tasks.Task>> ViewsV3GetViewsAsyncWithHttpInfo (); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ViewsV3Api : IViewsV3Api - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ViewsV3Api(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ViewsV3Api(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes the view - /// - /// Thrown when fails to make API call - /// - /// - public void ViewsV3DeleteView (string id) - { - ViewsV3DeleteViewWithHttpInfo(id); - } - - /// - /// This call deletes the view - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Object(void) - public ApiResponse ViewsV3DeleteViewWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ViewsV3Api->ViewsV3DeleteView"); - - var localVarPath = "/api/v3/Views/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsV3DeleteView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes the view - /// - /// Thrown when fails to make API call - /// - /// Task of void - public async System.Threading.Tasks.Task ViewsV3DeleteViewAsync (string id) - { - await ViewsV3DeleteViewAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes the view - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ViewsV3DeleteViewAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ViewsV3Api->ViewsV3DeleteView"); - - var localVarPath = "/api/v3/Views/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsV3DeleteView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the results for the given view. This call could not be compatible with some programming language, in this case use the call api/Views - /// - /// Thrown when fails to make API call - /// (optional) - /// Object - public Object ViewsV3GetResult (ViewDTO view = null) - { - ApiResponse localVarResponse = ViewsV3GetResultWithHttpInfo(view); - return localVarResponse.Data; - } - - /// - /// This call returns the results for the given view. This call could not be compatible with some programming language, in this case use the call api/Views - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of Object - public ApiResponse< Object > ViewsV3GetResultWithHttpInfo (ViewDTO view = null) - { - - var localVarPath = "/api/v3/Views"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (view != null && view.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(view); // http body (model) parameter - } - else - { - localVarPostBody = view; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsV3GetResult", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the results for the given view. This call could not be compatible with some programming language, in this case use the call api/Views - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of Object - public async System.Threading.Tasks.Task ViewsV3GetResultAsync (ViewDTO view = null) - { - ApiResponse localVarResponse = await ViewsV3GetResultAsyncWithHttpInfo(view); - return localVarResponse.Data; - - } - - /// - /// This call returns the results for the given view. This call could not be compatible with some programming language, in this case use the call api/Views - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ViewsV3GetResultAsyncWithHttpInfo (ViewDTO view = null) - { - - var localVarPath = "/api/v3/Views"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (view != null && view.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(view); // http body (model) parameter - } - else - { - localVarPostBody = view; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsV3GetResult", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the results for the given view This call could not be compatible with some programming language, in this case use the call api/Views/task/{taskworkId}/operation/{operationId} - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Object - public Object ViewsV3GetResultForTask (int? taskworkId, string operationId, ViewDTO view = null) - { - ApiResponse localVarResponse = ViewsV3GetResultForTaskWithHttpInfo(taskworkId, operationId, view); - return localVarResponse.Data; - } - - /// - /// This call returns the results for the given view This call could not be compatible with some programming language, in this case use the call api/Views/task/{taskworkId}/operation/{operationId} - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// ApiResponse of Object - public ApiResponse< Object > ViewsV3GetResultForTaskWithHttpInfo (int? taskworkId, string operationId, ViewDTO view = null) - { - // verify the required parameter 'taskworkId' is set - if (taskworkId == null) - throw new ApiException(400, "Missing required parameter 'taskworkId' when calling ViewsV3Api->ViewsV3GetResultForTask"); - // verify the required parameter 'operationId' is set - if (operationId == null) - throw new ApiException(400, "Missing required parameter 'operationId' when calling ViewsV3Api->ViewsV3GetResultForTask"); - - var localVarPath = "/api/v3/Views/task/{taskworkId}/operation/{operationId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkId != null) localVarPathParams.Add("taskworkId", this.Configuration.ApiClient.ParameterToString(taskworkId)); // path parameter - if (operationId != null) localVarPathParams.Add("operationId", this.Configuration.ApiClient.ParameterToString(operationId)); // path parameter - if (view != null && view.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(view); // http body (model) parameter - } - else - { - localVarPostBody = view; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsV3GetResultForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the results for the given view This call could not be compatible with some programming language, in this case use the call api/Views/task/{taskworkId}/operation/{operationId} - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of Object - public async System.Threading.Tasks.Task ViewsV3GetResultForTaskAsync (int? taskworkId, string operationId, ViewDTO view = null) - { - ApiResponse localVarResponse = await ViewsV3GetResultForTaskAsyncWithHttpInfo(taskworkId, operationId, view); - return localVarResponse.Data; - - } - - /// - /// This call returns the results for the given view This call could not be compatible with some programming language, in this case use the call api/Views/task/{taskworkId}/operation/{operationId} - /// - /// Thrown when fails to make API call - /// - /// - /// (optional) - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ViewsV3GetResultForTaskAsyncWithHttpInfo (int? taskworkId, string operationId, ViewDTO view = null) - { - // verify the required parameter 'taskworkId' is set - if (taskworkId == null) - throw new ApiException(400, "Missing required parameter 'taskworkId' when calling ViewsV3Api->ViewsV3GetResultForTask"); - // verify the required parameter 'operationId' is set - if (operationId == null) - throw new ApiException(400, "Missing required parameter 'operationId' when calling ViewsV3Api->ViewsV3GetResultForTask"); - - var localVarPath = "/api/v3/Views/task/{taskworkId}/operation/{operationId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkId != null) localVarPathParams.Add("taskworkId", this.Configuration.ApiClient.ParameterToString(taskworkId)); // path parameter - if (operationId != null) localVarPathParams.Add("operationId", this.Configuration.ApiClient.ParameterToString(operationId)); // path parameter - if (view != null && view.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(view); // http body (model) parameter - } - else - { - localVarPostBody = view; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsV3GetResultForTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call returns the view with all information - /// - /// Thrown when fails to make API call - /// - /// ViewDTO - public ViewDTO ViewsV3GetView (string id) - { - ApiResponse localVarResponse = ViewsV3GetViewWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns the view with all information - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ViewDTO - public ApiResponse< ViewDTO > ViewsV3GetViewWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ViewsV3Api->ViewsV3GetView"); - - var localVarPath = "/api/v3/Views/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsV3GetView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ViewDTO))); - } - - /// - /// This call returns the view with all information - /// - /// Thrown when fails to make API call - /// - /// Task of ViewDTO - public async System.Threading.Tasks.Task ViewsV3GetViewAsync (string id) - { - ApiResponse localVarResponse = await ViewsV3GetViewAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns the view with all information - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ViewDTO) - public async System.Threading.Tasks.Task> ViewsV3GetViewAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ViewsV3Api->ViewsV3GetView"); - - var localVarPath = "/api/v3/Views/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsV3GetView", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ViewDTO))); - } - - /// - /// This call return the view configured on a task operation with all information - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// ViewDTO - public ViewDTO ViewsV3GetViewByTaskWorkOperationId (int? taskworkId, string operationId) - { - ApiResponse localVarResponse = ViewsV3GetViewByTaskWorkOperationIdWithHttpInfo(taskworkId, operationId); - return localVarResponse.Data; - } - - /// - /// This call return the view configured on a task operation with all information - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// ApiResponse of ViewDTO - public ApiResponse< ViewDTO > ViewsV3GetViewByTaskWorkOperationIdWithHttpInfo (int? taskworkId, string operationId) - { - // verify the required parameter 'taskworkId' is set - if (taskworkId == null) - throw new ApiException(400, "Missing required parameter 'taskworkId' when calling ViewsV3Api->ViewsV3GetViewByTaskWorkOperationId"); - // verify the required parameter 'operationId' is set - if (operationId == null) - throw new ApiException(400, "Missing required parameter 'operationId' when calling ViewsV3Api->ViewsV3GetViewByTaskWorkOperationId"); - - var localVarPath = "/api/v3/Views/task/{taskworkId}/operation/{operationId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkId != null) localVarPathParams.Add("taskworkId", this.Configuration.ApiClient.ParameterToString(taskworkId)); // path parameter - if (operationId != null) localVarPathParams.Add("operationId", this.Configuration.ApiClient.ParameterToString(operationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsV3GetViewByTaskWorkOperationId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ViewDTO))); - } - - /// - /// This call return the view configured on a task operation with all information - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// Task of ViewDTO - public async System.Threading.Tasks.Task ViewsV3GetViewByTaskWorkOperationIdAsync (int? taskworkId, string operationId) - { - ApiResponse localVarResponse = await ViewsV3GetViewByTaskWorkOperationIdAsyncWithHttpInfo(taskworkId, operationId); - return localVarResponse.Data; - - } - - /// - /// This call return the view configured on a task operation with all information - /// - /// Thrown when fails to make API call - /// The id of the task - /// The task operation id - /// Task of ApiResponse (ViewDTO) - public async System.Threading.Tasks.Task> ViewsV3GetViewByTaskWorkOperationIdAsyncWithHttpInfo (int? taskworkId, string operationId) - { - // verify the required parameter 'taskworkId' is set - if (taskworkId == null) - throw new ApiException(400, "Missing required parameter 'taskworkId' when calling ViewsV3Api->ViewsV3GetViewByTaskWorkOperationId"); - // verify the required parameter 'operationId' is set - if (operationId == null) - throw new ApiException(400, "Missing required parameter 'operationId' when calling ViewsV3Api->ViewsV3GetViewByTaskWorkOperationId"); - - var localVarPath = "/api/v3/Views/task/{taskworkId}/operation/{operationId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (taskworkId != null) localVarPathParams.Add("taskworkId", this.Configuration.ApiClient.ParameterToString(taskworkId)); // path parameter - if (operationId != null) localVarPathParams.Add("operationId", this.Configuration.ApiClient.ParameterToString(operationId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsV3GetViewByTaskWorkOperationId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ViewDTO))); - } - - /// - /// This call returns the list of views for the connected user - /// - /// Thrown when fails to make API call - /// List<ViewDTO> - public List ViewsV3GetViews () - { - ApiResponse> localVarResponse = ViewsV3GetViewsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the list of views for the connected user - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ViewDTO> - public ApiResponse< List > ViewsV3GetViewsWithHttpInfo () - { - - var localVarPath = "/api/v3/Views"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsV3GetViews", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the list of views for the connected user - /// - /// Thrown when fails to make API call - /// Task of List<ViewDTO> - public async System.Threading.Tasks.Task> ViewsV3GetViewsAsync () - { - ApiResponse> localVarResponse = await ViewsV3GetViewsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the list of views for the connected user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ViewDTO>) - public async System.Threading.Tasks.Task>> ViewsV3GetViewsAsyncWithHttpInfo () - { - - var localVarPath = "/api/v3/Views"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewsV3GetViews", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/WorkflowApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/WorkflowApi.cs deleted file mode 100644 index fa84a7d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/WorkflowApi.cs +++ /dev/null @@ -1,2752 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IWorkflowApi : IApiAccessor - { - #region Synchronous Operations - /// - /// Check if a new workflow can start - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// bool? - bool? WorkflowCanStartByDocnumber (int? docnumber); - - /// - /// Check if a new workflow can start - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of bool? - ApiResponse WorkflowCanStartByDocnumberWithHttpInfo (int? docnumber); - /// - /// This call deletes instance of workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// false if the hostiry must be deleted - /// - void WorkflowDeleteWorkflow (int? processId, bool? keepHistory); - - /// - /// This call deletes instance of workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// false if the hostiry must be deleted - /// ApiResponse of Object(void) - ApiResponse WorkflowDeleteWorkflowWithHttpInfo (int? processId, bool? keepHistory); - /// - /// This call removes the user checkout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Id - /// - void WorkflowFreeUserConstraint (int? processId); - - /// - /// This call removes the user checkout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Id - /// ApiResponse of Object(void) - ApiResponse WorkflowFreeUserConstraintWithHttpInfo (int? processId); - /// - /// This call returns all available events for manual start a workflow by the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<WorkFlowEventDTO> - List WorkflowGetAllEventsForManualStarts (); - - /// - /// This call returns all available events for manual start a workflow by the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<WorkFlowEventDTO> - ApiResponse> WorkflowGetAllEventsForManualStartsWithHttpInfo (); - /// - /// This call returns all available events for manual start a workflow on a list of profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of document identifier - /// List<WorkFlowEventDTO> - List WorkflowGetEventsForManualStarts (List docnumbers); - - /// - /// This call returns all available events for manual start a workflow on a list of profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of document identifier - /// ApiResponse of List<WorkFlowEventDTO> - ApiResponse> WorkflowGetEventsForManualStartsWithHttpInfo (List docnumbers); - /// - /// This call retruns all external identifier of tasks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<string> - List WorkflowGetTasksExternalIds (); - - /// - /// This call retruns all external identifier of tasks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<string> - ApiResponse> WorkflowGetTasksExternalIdsWithHttpInfo (); - /// - /// This call returns the variables of a specifico workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<WorkflowVariableInfoDTO> - List WorkflowGetVariablesByWorkflow (int? workflowId); - - /// - /// This call returns the variables of a specifico workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<WorkflowVariableInfoDTO> - ApiResponse> WorkflowGetVariablesByWorkflowWithHttpInfo (int? workflowId); - /// - /// This call returns all workflow associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Idenfier - /// List<WorkflowInfoDTO> - List WorkflowGetWorkflowInfoByDocnumber (int? docnumber); - - /// - /// This call returns all workflow associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Idenfier - /// ApiResponse of List<WorkflowInfoDTO> - ApiResponse> WorkflowGetWorkflowInfoByDocnumberWithHttpInfo (int? docnumber); - /// - /// This call returns the workflow information of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// WorkflowInfoDTO - WorkflowInfoDTO WorkflowGetWorkflowInfoByProcessId (int? processId); - - /// - /// This call returns the workflow information of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of WorkflowInfoDTO - ApiResponse WorkflowGetWorkflowInfoByProcessIdWithHttpInfo (int? processId); - /// - /// This call returns all workflow configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<WorkflowDTO> - List WorkflowGetWorkflows (); - - /// - /// This call returns all workflow configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<WorkflowDTO> - ApiResponse> WorkflowGetWorkflowsWithHttpInfo (); - /// - /// This call removes a document from a workflow process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of process document - /// - void WorkflowRemoveProfileFromTask (int? processDocId); - - /// - /// This call removes a document from a workflow process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of process document - /// ApiResponse of Object(void) - ApiResponse WorkflowRemoveProfileFromTaskWithHttpInfo (int? processDocId); - /// - /// This call stops instance of workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// - void WorkflowStopWorkflow (int? processId); - - /// - /// This call stops instance of workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of Object(void) - ApiResponse WorkflowStopWorkflowWithHttpInfo (int? processId); - /// - /// This call starts a new instance of workflow on a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier to apply workflow - /// Workflow event identifier - /// - void WorkflowWorkflowManualStart (int? docnumber, int? workFlowEventId); - - /// - /// This call starts a new instance of workflow on a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier to apply workflow - /// Workflow event identifier - /// ApiResponse of Object(void) - ApiResponse WorkflowWorkflowManualStartWithHttpInfo (int? docnumber, int? workFlowEventId); - /// - /// This call starts a new instance of workflow without document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Workflow event identifier - /// - void WorkflowWorkflowManualStartWithoutDocnumber (int? workFlowEventId); - - /// - /// This call starts a new instance of workflow without document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Workflow event identifier - /// ApiResponse of Object(void) - ApiResponse WorkflowWorkflowManualStartWithoutDocnumberWithHttpInfo (int? workFlowEventId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// Check if a new workflow can start - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of bool? - System.Threading.Tasks.Task WorkflowCanStartByDocnumberAsync (int? docnumber); - - /// - /// Check if a new workflow can start - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> WorkflowCanStartByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call deletes instance of workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// false if the hostiry must be deleted - /// Task of void - System.Threading.Tasks.Task WorkflowDeleteWorkflowAsync (int? processId, bool? keepHistory); - - /// - /// This call deletes instance of workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// false if the hostiry must be deleted - /// Task of ApiResponse - System.Threading.Tasks.Task> WorkflowDeleteWorkflowAsyncWithHttpInfo (int? processId, bool? keepHistory); - /// - /// This call removes the user checkout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Id - /// Task of void - System.Threading.Tasks.Task WorkflowFreeUserConstraintAsync (int? processId); - - /// - /// This call removes the user checkout - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process Id - /// Task of ApiResponse - System.Threading.Tasks.Task> WorkflowFreeUserConstraintAsyncWithHttpInfo (int? processId); - /// - /// This call returns all available events for manual start a workflow by the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<WorkFlowEventDTO> - System.Threading.Tasks.Task> WorkflowGetAllEventsForManualStartsAsync (); - - /// - /// This call returns all available events for manual start a workflow by the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<WorkFlowEventDTO>) - System.Threading.Tasks.Task>> WorkflowGetAllEventsForManualStartsAsyncWithHttpInfo (); - /// - /// This call returns all available events for manual start a workflow on a list of profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of document identifier - /// Task of List<WorkFlowEventDTO> - System.Threading.Tasks.Task> WorkflowGetEventsForManualStartsAsync (List docnumbers); - - /// - /// This call returns all available events for manual start a workflow on a list of profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of document identifier - /// Task of ApiResponse (List<WorkFlowEventDTO>) - System.Threading.Tasks.Task>> WorkflowGetEventsForManualStartsAsyncWithHttpInfo (List docnumbers); - /// - /// This call retruns all external identifier of tasks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<string> - System.Threading.Tasks.Task> WorkflowGetTasksExternalIdsAsync (); - - /// - /// This call retruns all external identifier of tasks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> WorkflowGetTasksExternalIdsAsyncWithHttpInfo (); - /// - /// This call returns the variables of a specifico workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<WorkflowVariableInfoDTO> - System.Threading.Tasks.Task> WorkflowGetVariablesByWorkflowAsync (int? workflowId); - - /// - /// This call returns the variables of a specifico workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<WorkflowVariableInfoDTO>) - System.Threading.Tasks.Task>> WorkflowGetVariablesByWorkflowAsyncWithHttpInfo (int? workflowId); - /// - /// This call returns all workflow associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Idenfier - /// Task of List<WorkflowInfoDTO> - System.Threading.Tasks.Task> WorkflowGetWorkflowInfoByDocnumberAsync (int? docnumber); - - /// - /// This call returns all workflow associated with a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Idenfier - /// Task of ApiResponse (List<WorkflowInfoDTO>) - System.Threading.Tasks.Task>> WorkflowGetWorkflowInfoByDocnumberAsyncWithHttpInfo (int? docnumber); - /// - /// This call returns the workflow information of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of WorkflowInfoDTO - System.Threading.Tasks.Task WorkflowGetWorkflowInfoByProcessIdAsync (int? processId); - - /// - /// This call returns the workflow information of process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (WorkflowInfoDTO) - System.Threading.Tasks.Task> WorkflowGetWorkflowInfoByProcessIdAsyncWithHttpInfo (int? processId); - /// - /// This call returns all workflow configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<WorkflowDTO> - System.Threading.Tasks.Task> WorkflowGetWorkflowsAsync (); - - /// - /// This call returns all workflow configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<WorkflowDTO>) - System.Threading.Tasks.Task>> WorkflowGetWorkflowsAsyncWithHttpInfo (); - /// - /// This call removes a document from a workflow process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of process document - /// Task of void - System.Threading.Tasks.Task WorkflowRemoveProfileFromTaskAsync (int? processDocId); - - /// - /// This call removes a document from a workflow process - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of process document - /// Task of ApiResponse - System.Threading.Tasks.Task> WorkflowRemoveProfileFromTaskAsyncWithHttpInfo (int? processDocId); - /// - /// This call stops instance of workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of void - System.Threading.Tasks.Task WorkflowStopWorkflowAsync (int? processId); - - /// - /// This call stops instance of workflow - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> WorkflowStopWorkflowAsyncWithHttpInfo (int? processId); - /// - /// This call starts a new instance of workflow on a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier to apply workflow - /// Workflow event identifier - /// Task of void - System.Threading.Tasks.Task WorkflowWorkflowManualStartAsync (int? docnumber, int? workFlowEventId); - - /// - /// This call starts a new instance of workflow on a document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document identifier to apply workflow - /// Workflow event identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> WorkflowWorkflowManualStartAsyncWithHttpInfo (int? docnumber, int? workFlowEventId); - /// - /// This call starts a new instance of workflow without document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Workflow event identifier - /// Task of void - System.Threading.Tasks.Task WorkflowWorkflowManualStartWithoutDocnumberAsync (int? workFlowEventId); - - /// - /// This call starts a new instance of workflow without document - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Workflow event identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> WorkflowWorkflowManualStartWithoutDocnumberAsyncWithHttpInfo (int? workFlowEventId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class WorkflowApi : IWorkflowApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public WorkflowApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public WorkflowApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// Check if a new workflow can start - /// - /// Thrown when fails to make API call - /// - /// bool? - public bool? WorkflowCanStartByDocnumber (int? docnumber) - { - ApiResponse localVarResponse = WorkflowCanStartByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// Check if a new workflow can start - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of bool? - public ApiResponse< bool? > WorkflowCanStartByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling WorkflowApi->WorkflowCanStartByDocnumber"); - - var localVarPath = "/api/Workflow/CanStartByDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowCanStartByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// Check if a new workflow can start - /// - /// Thrown when fails to make API call - /// - /// Task of bool? - public async System.Threading.Tasks.Task WorkflowCanStartByDocnumberAsync (int? docnumber) - { - ApiResponse localVarResponse = await WorkflowCanStartByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// Check if a new workflow can start - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> WorkflowCanStartByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling WorkflowApi->WorkflowCanStartByDocnumber"); - - var localVarPath = "/api/Workflow/CanStartByDocnumber/{docnumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowCanStartByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call deletes instance of workflow - /// - /// Thrown when fails to make API call - /// Process identifier - /// false if the hostiry must be deleted - /// - public void WorkflowDeleteWorkflow (int? processId, bool? keepHistory) - { - WorkflowDeleteWorkflowWithHttpInfo(processId, keepHistory); - } - - /// - /// This call deletes instance of workflow - /// - /// Thrown when fails to make API call - /// Process identifier - /// false if the hostiry must be deleted - /// ApiResponse of Object(void) - public ApiResponse WorkflowDeleteWorkflowWithHttpInfo (int? processId, bool? keepHistory) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling WorkflowApi->WorkflowDeleteWorkflow"); - // verify the required parameter 'keepHistory' is set - if (keepHistory == null) - throw new ApiException(400, "Missing required parameter 'keepHistory' when calling WorkflowApi->WorkflowDeleteWorkflow"); - - var localVarPath = "/api/Workflow/delete/{processId}/{keepHistory}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (keepHistory != null) localVarPathParams.Add("keepHistory", this.Configuration.ApiClient.ParameterToString(keepHistory)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowDeleteWorkflow", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes instance of workflow - /// - /// Thrown when fails to make API call - /// Process identifier - /// false if the hostiry must be deleted - /// Task of void - public async System.Threading.Tasks.Task WorkflowDeleteWorkflowAsync (int? processId, bool? keepHistory) - { - await WorkflowDeleteWorkflowAsyncWithHttpInfo(processId, keepHistory); - - } - - /// - /// This call deletes instance of workflow - /// - /// Thrown when fails to make API call - /// Process identifier - /// false if the hostiry must be deleted - /// Task of ApiResponse - public async System.Threading.Tasks.Task> WorkflowDeleteWorkflowAsyncWithHttpInfo (int? processId, bool? keepHistory) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling WorkflowApi->WorkflowDeleteWorkflow"); - // verify the required parameter 'keepHistory' is set - if (keepHistory == null) - throw new ApiException(400, "Missing required parameter 'keepHistory' when calling WorkflowApi->WorkflowDeleteWorkflow"); - - var localVarPath = "/api/Workflow/delete/{processId}/{keepHistory}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - if (keepHistory != null) localVarPathParams.Add("keepHistory", this.Configuration.ApiClient.ParameterToString(keepHistory)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowDeleteWorkflow", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call removes the user checkout - /// - /// Thrown when fails to make API call - /// Process Id - /// - public void WorkflowFreeUserConstraint (int? processId) - { - WorkflowFreeUserConstraintWithHttpInfo(processId); - } - - /// - /// This call removes the user checkout - /// - /// Thrown when fails to make API call - /// Process Id - /// ApiResponse of Object(void) - public ApiResponse WorkflowFreeUserConstraintWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling WorkflowApi->WorkflowFreeUserConstraint"); - - var localVarPath = "/api/Workflow/FreeUserConstraint/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowFreeUserConstraint", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call removes the user checkout - /// - /// Thrown when fails to make API call - /// Process Id - /// Task of void - public async System.Threading.Tasks.Task WorkflowFreeUserConstraintAsync (int? processId) - { - await WorkflowFreeUserConstraintAsyncWithHttpInfo(processId); - - } - - /// - /// This call removes the user checkout - /// - /// Thrown when fails to make API call - /// Process Id - /// Task of ApiResponse - public async System.Threading.Tasks.Task> WorkflowFreeUserConstraintAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling WorkflowApi->WorkflowFreeUserConstraint"); - - var localVarPath = "/api/Workflow/FreeUserConstraint/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowFreeUserConstraint", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all available events for manual start a workflow by the user - /// - /// Thrown when fails to make API call - /// List<WorkFlowEventDTO> - public List WorkflowGetAllEventsForManualStarts () - { - ApiResponse> localVarResponse = WorkflowGetAllEventsForManualStartsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all available events for manual start a workflow by the user - /// - /// Thrown when fails to make API call - /// ApiResponse of List<WorkFlowEventDTO> - public ApiResponse< List > WorkflowGetAllEventsForManualStartsWithHttpInfo () - { - - var localVarPath = "/api/Workflow/userevents"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowGetAllEventsForManualStarts", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all available events for manual start a workflow by the user - /// - /// Thrown when fails to make API call - /// Task of List<WorkFlowEventDTO> - public async System.Threading.Tasks.Task> WorkflowGetAllEventsForManualStartsAsync () - { - ApiResponse> localVarResponse = await WorkflowGetAllEventsForManualStartsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all available events for manual start a workflow by the user - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<WorkFlowEventDTO>) - public async System.Threading.Tasks.Task>> WorkflowGetAllEventsForManualStartsAsyncWithHttpInfo () - { - - var localVarPath = "/api/Workflow/userevents"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowGetAllEventsForManualStarts", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all available events for manual start a workflow on a list of profiles - /// - /// Thrown when fails to make API call - /// List of document identifier - /// List<WorkFlowEventDTO> - public List WorkflowGetEventsForManualStarts (List docnumbers) - { - ApiResponse> localVarResponse = WorkflowGetEventsForManualStartsWithHttpInfo(docnumbers); - return localVarResponse.Data; - } - - /// - /// This call returns all available events for manual start a workflow on a list of profiles - /// - /// Thrown when fails to make API call - /// List of document identifier - /// ApiResponse of List<WorkFlowEventDTO> - public ApiResponse< List > WorkflowGetEventsForManualStartsWithHttpInfo (List docnumbers) - { - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling WorkflowApi->WorkflowGetEventsForManualStarts"); - - var localVarPath = "/api/Workflow/events"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowGetEventsForManualStarts", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all available events for manual start a workflow on a list of profiles - /// - /// Thrown when fails to make API call - /// List of document identifier - /// Task of List<WorkFlowEventDTO> - public async System.Threading.Tasks.Task> WorkflowGetEventsForManualStartsAsync (List docnumbers) - { - ApiResponse> localVarResponse = await WorkflowGetEventsForManualStartsAsyncWithHttpInfo(docnumbers); - return localVarResponse.Data; - - } - - /// - /// This call returns all available events for manual start a workflow on a list of profiles - /// - /// Thrown when fails to make API call - /// List of document identifier - /// Task of ApiResponse (List<WorkFlowEventDTO>) - public async System.Threading.Tasks.Task>> WorkflowGetEventsForManualStartsAsyncWithHttpInfo (List docnumbers) - { - // verify the required parameter 'docnumbers' is set - if (docnumbers == null) - throw new ApiException(400, "Missing required parameter 'docnumbers' when calling WorkflowApi->WorkflowGetEventsForManualStarts"); - - var localVarPath = "/api/Workflow/events"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumbers != null && docnumbers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(docnumbers); // http body (model) parameter - } - else - { - localVarPostBody = docnumbers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowGetEventsForManualStarts", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retruns all external identifier of tasks - /// - /// Thrown when fails to make API call - /// List<string> - public List WorkflowGetTasksExternalIds () - { - ApiResponse> localVarResponse = WorkflowGetTasksExternalIdsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call retruns all external identifier of tasks - /// - /// Thrown when fails to make API call - /// ApiResponse of List<string> - public ApiResponse< List > WorkflowGetTasksExternalIdsWithHttpInfo () - { - - var localVarPath = "/api/Workflow/externalids"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowGetTasksExternalIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retruns all external identifier of tasks - /// - /// Thrown when fails to make API call - /// Task of List<string> - public async System.Threading.Tasks.Task> WorkflowGetTasksExternalIdsAsync () - { - ApiResponse> localVarResponse = await WorkflowGetTasksExternalIdsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call retruns all external identifier of tasks - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> WorkflowGetTasksExternalIdsAsyncWithHttpInfo () - { - - var localVarPath = "/api/Workflow/externalids"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowGetTasksExternalIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the variables of a specifico workflow - /// - /// Thrown when fails to make API call - /// - /// List<WorkflowVariableInfoDTO> - public List WorkflowGetVariablesByWorkflow (int? workflowId) - { - ApiResponse> localVarResponse = WorkflowGetVariablesByWorkflowWithHttpInfo(workflowId); - return localVarResponse.Data; - } - - /// - /// This call returns the variables of a specifico workflow - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<WorkflowVariableInfoDTO> - public ApiResponse< List > WorkflowGetVariablesByWorkflowWithHttpInfo (int? workflowId) - { - // verify the required parameter 'workflowId' is set - if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowApi->WorkflowGetVariablesByWorkflow"); - - var localVarPath = "/api/Workflow/{workflowId}/variables"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowGetVariablesByWorkflow", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the variables of a specifico workflow - /// - /// Thrown when fails to make API call - /// - /// Task of List<WorkflowVariableInfoDTO> - public async System.Threading.Tasks.Task> WorkflowGetVariablesByWorkflowAsync (int? workflowId) - { - ApiResponse> localVarResponse = await WorkflowGetVariablesByWorkflowAsyncWithHttpInfo(workflowId); - return localVarResponse.Data; - - } - - /// - /// This call returns the variables of a specifico workflow - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<WorkflowVariableInfoDTO>) - public async System.Threading.Tasks.Task>> WorkflowGetVariablesByWorkflowAsyncWithHttpInfo (int? workflowId) - { - // verify the required parameter 'workflowId' is set - if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowApi->WorkflowGetVariablesByWorkflow"); - - var localVarPath = "/api/Workflow/{workflowId}/variables"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowGetVariablesByWorkflow", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all workflow associated with a document - /// - /// Thrown when fails to make API call - /// Document Idenfier - /// List<WorkflowInfoDTO> - public List WorkflowGetWorkflowInfoByDocnumber (int? docnumber) - { - ApiResponse> localVarResponse = WorkflowGetWorkflowInfoByDocnumberWithHttpInfo(docnumber); - return localVarResponse.Data; - } - - /// - /// This call returns all workflow associated with a document - /// - /// Thrown when fails to make API call - /// Document Idenfier - /// ApiResponse of List<WorkflowInfoDTO> - public ApiResponse< List > WorkflowGetWorkflowInfoByDocnumberWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling WorkflowApi->WorkflowGetWorkflowInfoByDocnumber"); - - var localVarPath = "/api/Workflow/bydocnumber/{docnumber}/history"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowGetWorkflowInfoByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all workflow associated with a document - /// - /// Thrown when fails to make API call - /// Document Idenfier - /// Task of List<WorkflowInfoDTO> - public async System.Threading.Tasks.Task> WorkflowGetWorkflowInfoByDocnumberAsync (int? docnumber) - { - ApiResponse> localVarResponse = await WorkflowGetWorkflowInfoByDocnumberAsyncWithHttpInfo(docnumber); - return localVarResponse.Data; - - } - - /// - /// This call returns all workflow associated with a document - /// - /// Thrown when fails to make API call - /// Document Idenfier - /// Task of ApiResponse (List<WorkflowInfoDTO>) - public async System.Threading.Tasks.Task>> WorkflowGetWorkflowInfoByDocnumberAsyncWithHttpInfo (int? docnumber) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling WorkflowApi->WorkflowGetWorkflowInfoByDocnumber"); - - var localVarPath = "/api/Workflow/bydocnumber/{docnumber}/history"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowGetWorkflowInfoByDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the workflow information of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// WorkflowInfoDTO - public WorkflowInfoDTO WorkflowGetWorkflowInfoByProcessId (int? processId) - { - ApiResponse localVarResponse = WorkflowGetWorkflowInfoByProcessIdWithHttpInfo(processId); - return localVarResponse.Data; - } - - /// - /// This call returns the workflow information of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of WorkflowInfoDTO - public ApiResponse< WorkflowInfoDTO > WorkflowGetWorkflowInfoByProcessIdWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling WorkflowApi->WorkflowGetWorkflowInfoByProcessId"); - - var localVarPath = "/api/Workflow/{processId}/history"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowGetWorkflowInfoByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkflowInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkflowInfoDTO))); - } - - /// - /// This call returns the workflow information of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of WorkflowInfoDTO - public async System.Threading.Tasks.Task WorkflowGetWorkflowInfoByProcessIdAsync (int? processId) - { - ApiResponse localVarResponse = await WorkflowGetWorkflowInfoByProcessIdAsyncWithHttpInfo(processId); - return localVarResponse.Data; - - } - - /// - /// This call returns the workflow information of process - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse (WorkflowInfoDTO) - public async System.Threading.Tasks.Task> WorkflowGetWorkflowInfoByProcessIdAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling WorkflowApi->WorkflowGetWorkflowInfoByProcessId"); - - var localVarPath = "/api/Workflow/{processId}/history"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowGetWorkflowInfoByProcessId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkflowInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkflowInfoDTO))); - } - - /// - /// This call returns all workflow configured - /// - /// Thrown when fails to make API call - /// List<WorkflowDTO> - public List WorkflowGetWorkflows () - { - ApiResponse> localVarResponse = WorkflowGetWorkflowsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all workflow configured - /// - /// Thrown when fails to make API call - /// ApiResponse of List<WorkflowDTO> - public ApiResponse< List > WorkflowGetWorkflowsWithHttpInfo () - { - - var localVarPath = "/api/Workflow"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowGetWorkflows", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all workflow configured - /// - /// Thrown when fails to make API call - /// Task of List<WorkflowDTO> - public async System.Threading.Tasks.Task> WorkflowGetWorkflowsAsync () - { - ApiResponse> localVarResponse = await WorkflowGetWorkflowsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all workflow configured - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<WorkflowDTO>) - public async System.Threading.Tasks.Task>> WorkflowGetWorkflowsAsyncWithHttpInfo () - { - - var localVarPath = "/api/Workflow"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowGetWorkflows", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call removes a document from a workflow process - /// - /// Thrown when fails to make API call - /// Identifier of process document - /// - public void WorkflowRemoveProfileFromTask (int? processDocId) - { - WorkflowRemoveProfileFromTaskWithHttpInfo(processDocId); - } - - /// - /// This call removes a document from a workflow process - /// - /// Thrown when fails to make API call - /// Identifier of process document - /// ApiResponse of Object(void) - public ApiResponse WorkflowRemoveProfileFromTaskWithHttpInfo (int? processDocId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling WorkflowApi->WorkflowRemoveProfileFromTask"); - - var localVarPath = "/api/Workflow/processdoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowRemoveProfileFromTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call removes a document from a workflow process - /// - /// Thrown when fails to make API call - /// Identifier of process document - /// Task of void - public async System.Threading.Tasks.Task WorkflowRemoveProfileFromTaskAsync (int? processDocId) - { - await WorkflowRemoveProfileFromTaskAsyncWithHttpInfo(processDocId); - - } - - /// - /// This call removes a document from a workflow process - /// - /// Thrown when fails to make API call - /// Identifier of process document - /// Task of ApiResponse - public async System.Threading.Tasks.Task> WorkflowRemoveProfileFromTaskAsyncWithHttpInfo (int? processDocId) - { - // verify the required parameter 'processDocId' is set - if (processDocId == null) - throw new ApiException(400, "Missing required parameter 'processDocId' when calling WorkflowApi->WorkflowRemoveProfileFromTask"); - - var localVarPath = "/api/Workflow/processdoc/{processDocId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processDocId != null) localVarPathParams.Add("processDocId", this.Configuration.ApiClient.ParameterToString(processDocId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowRemoveProfileFromTask", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call stops instance of workflow - /// - /// Thrown when fails to make API call - /// Process identifier - /// - public void WorkflowStopWorkflow (int? processId) - { - WorkflowStopWorkflowWithHttpInfo(processId); - } - - /// - /// This call stops instance of workflow - /// - /// Thrown when fails to make API call - /// Process identifier - /// ApiResponse of Object(void) - public ApiResponse WorkflowStopWorkflowWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling WorkflowApi->WorkflowStopWorkflow"); - - var localVarPath = "/api/Workflow/stop/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowStopWorkflow", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call stops instance of workflow - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of void - public async System.Threading.Tasks.Task WorkflowStopWorkflowAsync (int? processId) - { - await WorkflowStopWorkflowAsyncWithHttpInfo(processId); - - } - - /// - /// This call stops instance of workflow - /// - /// Thrown when fails to make API call - /// Process identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> WorkflowStopWorkflowAsyncWithHttpInfo (int? processId) - { - // verify the required parameter 'processId' is set - if (processId == null) - throw new ApiException(400, "Missing required parameter 'processId' when calling WorkflowApi->WorkflowStopWorkflow"); - - var localVarPath = "/api/Workflow/stop/{processId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (processId != null) localVarPathParams.Add("processId", this.Configuration.ApiClient.ParameterToString(processId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowStopWorkflow", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call starts a new instance of workflow on a document - /// - /// Thrown when fails to make API call - /// Document identifier to apply workflow - /// Workflow event identifier - /// - public void WorkflowWorkflowManualStart (int? docnumber, int? workFlowEventId) - { - WorkflowWorkflowManualStartWithHttpInfo(docnumber, workFlowEventId); - } - - /// - /// This call starts a new instance of workflow on a document - /// - /// Thrown when fails to make API call - /// Document identifier to apply workflow - /// Workflow event identifier - /// ApiResponse of Object(void) - public ApiResponse WorkflowWorkflowManualStartWithHttpInfo (int? docnumber, int? workFlowEventId) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling WorkflowApi->WorkflowWorkflowManualStart"); - // verify the required parameter 'workFlowEventId' is set - if (workFlowEventId == null) - throw new ApiException(400, "Missing required parameter 'workFlowEventId' when calling WorkflowApi->WorkflowWorkflowManualStart"); - - var localVarPath = "/api/Workflow/start/{docnumber}/{workFlowEventId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (workFlowEventId != null) localVarPathParams.Add("workFlowEventId", this.Configuration.ApiClient.ParameterToString(workFlowEventId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowWorkflowManualStart", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call starts a new instance of workflow on a document - /// - /// Thrown when fails to make API call - /// Document identifier to apply workflow - /// Workflow event identifier - /// Task of void - public async System.Threading.Tasks.Task WorkflowWorkflowManualStartAsync (int? docnumber, int? workFlowEventId) - { - await WorkflowWorkflowManualStartAsyncWithHttpInfo(docnumber, workFlowEventId); - - } - - /// - /// This call starts a new instance of workflow on a document - /// - /// Thrown when fails to make API call - /// Document identifier to apply workflow - /// Workflow event identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> WorkflowWorkflowManualStartAsyncWithHttpInfo (int? docnumber, int? workFlowEventId) - { - // verify the required parameter 'docnumber' is set - if (docnumber == null) - throw new ApiException(400, "Missing required parameter 'docnumber' when calling WorkflowApi->WorkflowWorkflowManualStart"); - // verify the required parameter 'workFlowEventId' is set - if (workFlowEventId == null) - throw new ApiException(400, "Missing required parameter 'workFlowEventId' when calling WorkflowApi->WorkflowWorkflowManualStart"); - - var localVarPath = "/api/Workflow/start/{docnumber}/{workFlowEventId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docnumber != null) localVarPathParams.Add("docnumber", this.Configuration.ApiClient.ParameterToString(docnumber)); // path parameter - if (workFlowEventId != null) localVarPathParams.Add("workFlowEventId", this.Configuration.ApiClient.ParameterToString(workFlowEventId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowWorkflowManualStart", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call starts a new instance of workflow without document - /// - /// Thrown when fails to make API call - /// Workflow event identifier - /// - public void WorkflowWorkflowManualStartWithoutDocnumber (int? workFlowEventId) - { - WorkflowWorkflowManualStartWithoutDocnumberWithHttpInfo(workFlowEventId); - } - - /// - /// This call starts a new instance of workflow without document - /// - /// Thrown when fails to make API call - /// Workflow event identifier - /// ApiResponse of Object(void) - public ApiResponse WorkflowWorkflowManualStartWithoutDocnumberWithHttpInfo (int? workFlowEventId) - { - // verify the required parameter 'workFlowEventId' is set - if (workFlowEventId == null) - throw new ApiException(400, "Missing required parameter 'workFlowEventId' when calling WorkflowApi->WorkflowWorkflowManualStartWithoutDocnumber"); - - var localVarPath = "/api/Workflow/start/byevent/{workFlowEventId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (workFlowEventId != null) localVarPathParams.Add("workFlowEventId", this.Configuration.ApiClient.ParameterToString(workFlowEventId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowWorkflowManualStartWithoutDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call starts a new instance of workflow without document - /// - /// Thrown when fails to make API call - /// Workflow event identifier - /// Task of void - public async System.Threading.Tasks.Task WorkflowWorkflowManualStartWithoutDocnumberAsync (int? workFlowEventId) - { - await WorkflowWorkflowManualStartWithoutDocnumberAsyncWithHttpInfo(workFlowEventId); - - } - - /// - /// This call starts a new instance of workflow without document - /// - /// Thrown when fails to make API call - /// Workflow event identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> WorkflowWorkflowManualStartWithoutDocnumberAsyncWithHttpInfo (int? workFlowEventId) - { - // verify the required parameter 'workFlowEventId' is set - if (workFlowEventId == null) - throw new ApiException(400, "Missing required parameter 'workFlowEventId' when calling WorkflowApi->WorkflowWorkflowManualStartWithoutDocnumber"); - - var localVarPath = "/api/Workflow/start/byevent/{workFlowEventId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (workFlowEventId != null) localVarPathParams.Add("workFlowEventId", this.Configuration.ApiClient.ParameterToString(workFlowEventId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowWorkflowManualStartWithoutDocnumber", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/WorkflowConnectorApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/WorkflowConnectorApi.cs deleted file mode 100644 index 6b23245..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/WorkflowConnectorApi.cs +++ /dev/null @@ -1,1107 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IWorkflowConnectorApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes a workflow chain - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The chain ID to be deleted - /// - void WorkflowConnectorDeleteChainMaster (string chainMasterId); - - /// - /// This call deletes a workflow chain - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The chain ID to be deleted - /// ApiResponse of Object(void) - ApiResponse WorkflowConnectorDeleteChainMasterWithHttpInfo (string chainMasterId); - /// - /// This call returns all the workflow chains - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<WorkFlowChainMasterDTO> - List WorkflowConnectorGetAllChainMaster (); - - /// - /// This call returns all the workflow chains - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<WorkFlowChainMasterDTO> - ApiResponse> WorkflowConnectorGetAllChainMasterWithHttpInfo (); - /// - /// This call returns a Workflow chain by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Chain Master identifier - /// WorkFlowChainMasterDTO - WorkFlowChainMasterDTO WorkflowConnectorGetByChainMasterId (string chainMasterId); - - /// - /// This call returns a Workflow chain by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Chain Master identifier - /// ApiResponse of WorkFlowChainMasterDTO - ApiResponse WorkflowConnectorGetByChainMasterIdWithHttpInfo (string chainMasterId); - /// - /// This call inserts a new workflow chain - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The chain to be created - /// WorkFlowChainMasterDTO - WorkFlowChainMasterDTO WorkflowConnectorInsertChainMaster (WorkFlowChainMasterDTO chainMaster); - - /// - /// This call inserts a new workflow chain - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The chain to be created - /// ApiResponse of WorkFlowChainMasterDTO - ApiResponse WorkflowConnectorInsertChainMasterWithHttpInfo (WorkFlowChainMasterDTO chainMaster); - /// - /// This call updates a workflow chain - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The chain to be created - /// WorkFlowChainMasterDTO - WorkFlowChainMasterDTO WorkflowConnectorUpdateChainMaster (WorkFlowChainMasterDTO chainMaster); - - /// - /// This call updates a workflow chain - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The chain to be created - /// ApiResponse of WorkFlowChainMasterDTO - ApiResponse WorkflowConnectorUpdateChainMasterWithHttpInfo (WorkFlowChainMasterDTO chainMaster); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes a workflow chain - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The chain ID to be deleted - /// Task of void - System.Threading.Tasks.Task WorkflowConnectorDeleteChainMasterAsync (string chainMasterId); - - /// - /// This call deletes a workflow chain - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The chain ID to be deleted - /// Task of ApiResponse - System.Threading.Tasks.Task> WorkflowConnectorDeleteChainMasterAsyncWithHttpInfo (string chainMasterId); - /// - /// This call returns all the workflow chains - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<WorkFlowChainMasterDTO> - System.Threading.Tasks.Task> WorkflowConnectorGetAllChainMasterAsync (); - - /// - /// This call returns all the workflow chains - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<WorkFlowChainMasterDTO>) - System.Threading.Tasks.Task>> WorkflowConnectorGetAllChainMasterAsyncWithHttpInfo (); - /// - /// This call returns a Workflow chain by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Chain Master identifier - /// Task of WorkFlowChainMasterDTO - System.Threading.Tasks.Task WorkflowConnectorGetByChainMasterIdAsync (string chainMasterId); - - /// - /// This call returns a Workflow chain by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Chain Master identifier - /// Task of ApiResponse (WorkFlowChainMasterDTO) - System.Threading.Tasks.Task> WorkflowConnectorGetByChainMasterIdAsyncWithHttpInfo (string chainMasterId); - /// - /// This call inserts a new workflow chain - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The chain to be created - /// Task of WorkFlowChainMasterDTO - System.Threading.Tasks.Task WorkflowConnectorInsertChainMasterAsync (WorkFlowChainMasterDTO chainMaster); - - /// - /// This call inserts a new workflow chain - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The chain to be created - /// Task of ApiResponse (WorkFlowChainMasterDTO) - System.Threading.Tasks.Task> WorkflowConnectorInsertChainMasterAsyncWithHttpInfo (WorkFlowChainMasterDTO chainMaster); - /// - /// This call updates a workflow chain - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The chain to be created - /// Task of WorkFlowChainMasterDTO - System.Threading.Tasks.Task WorkflowConnectorUpdateChainMasterAsync (WorkFlowChainMasterDTO chainMaster); - - /// - /// This call updates a workflow chain - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The chain to be created - /// Task of ApiResponse (WorkFlowChainMasterDTO) - System.Threading.Tasks.Task> WorkflowConnectorUpdateChainMasterAsyncWithHttpInfo (WorkFlowChainMasterDTO chainMaster); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class WorkflowConnectorApi : IWorkflowConnectorApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public WorkflowConnectorApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public WorkflowConnectorApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes a workflow chain - /// - /// Thrown when fails to make API call - /// The chain ID to be deleted - /// - public void WorkflowConnectorDeleteChainMaster (string chainMasterId) - { - WorkflowConnectorDeleteChainMasterWithHttpInfo(chainMasterId); - } - - /// - /// This call deletes a workflow chain - /// - /// Thrown when fails to make API call - /// The chain ID to be deleted - /// ApiResponse of Object(void) - public ApiResponse WorkflowConnectorDeleteChainMasterWithHttpInfo (string chainMasterId) - { - // verify the required parameter 'chainMasterId' is set - if (chainMasterId == null) - throw new ApiException(400, "Missing required parameter 'chainMasterId' when calling WorkflowConnectorApi->WorkflowConnectorDeleteChainMaster"); - - var localVarPath = "/api/WorkflowConnector/{chainMasterId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (chainMasterId != null) localVarPathParams.Add("chainMasterId", this.Configuration.ApiClient.ParameterToString(chainMasterId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowConnectorDeleteChainMaster", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes a workflow chain - /// - /// Thrown when fails to make API call - /// The chain ID to be deleted - /// Task of void - public async System.Threading.Tasks.Task WorkflowConnectorDeleteChainMasterAsync (string chainMasterId) - { - await WorkflowConnectorDeleteChainMasterAsyncWithHttpInfo(chainMasterId); - - } - - /// - /// This call deletes a workflow chain - /// - /// Thrown when fails to make API call - /// The chain ID to be deleted - /// Task of ApiResponse - public async System.Threading.Tasks.Task> WorkflowConnectorDeleteChainMasterAsyncWithHttpInfo (string chainMasterId) - { - // verify the required parameter 'chainMasterId' is set - if (chainMasterId == null) - throw new ApiException(400, "Missing required parameter 'chainMasterId' when calling WorkflowConnectorApi->WorkflowConnectorDeleteChainMaster"); - - var localVarPath = "/api/WorkflowConnector/{chainMasterId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (chainMasterId != null) localVarPathParams.Add("chainMasterId", this.Configuration.ApiClient.ParameterToString(chainMasterId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowConnectorDeleteChainMaster", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all the workflow chains - /// - /// Thrown when fails to make API call - /// List<WorkFlowChainMasterDTO> - public List WorkflowConnectorGetAllChainMaster () - { - ApiResponse> localVarResponse = WorkflowConnectorGetAllChainMasterWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all the workflow chains - /// - /// Thrown when fails to make API call - /// ApiResponse of List<WorkFlowChainMasterDTO> - public ApiResponse< List > WorkflowConnectorGetAllChainMasterWithHttpInfo () - { - - var localVarPath = "/api/WorkflowConnector"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowConnectorGetAllChainMaster", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the workflow chains - /// - /// Thrown when fails to make API call - /// Task of List<WorkFlowChainMasterDTO> - public async System.Threading.Tasks.Task> WorkflowConnectorGetAllChainMasterAsync () - { - ApiResponse> localVarResponse = await WorkflowConnectorGetAllChainMasterAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all the workflow chains - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<WorkFlowChainMasterDTO>) - public async System.Threading.Tasks.Task>> WorkflowConnectorGetAllChainMasterAsyncWithHttpInfo () - { - - var localVarPath = "/api/WorkflowConnector"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowConnectorGetAllChainMaster", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a Workflow chain by its id - /// - /// Thrown when fails to make API call - /// Chain Master identifier - /// WorkFlowChainMasterDTO - public WorkFlowChainMasterDTO WorkflowConnectorGetByChainMasterId (string chainMasterId) - { - ApiResponse localVarResponse = WorkflowConnectorGetByChainMasterIdWithHttpInfo(chainMasterId); - return localVarResponse.Data; - } - - /// - /// This call returns a Workflow chain by its id - /// - /// Thrown when fails to make API call - /// Chain Master identifier - /// ApiResponse of WorkFlowChainMasterDTO - public ApiResponse< WorkFlowChainMasterDTO > WorkflowConnectorGetByChainMasterIdWithHttpInfo (string chainMasterId) - { - // verify the required parameter 'chainMasterId' is set - if (chainMasterId == null) - throw new ApiException(400, "Missing required parameter 'chainMasterId' when calling WorkflowConnectorApi->WorkflowConnectorGetByChainMasterId"); - - var localVarPath = "/api/WorkflowConnector/{chainMasterId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (chainMasterId != null) localVarPathParams.Add("chainMasterId", this.Configuration.ApiClient.ParameterToString(chainMasterId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowConnectorGetByChainMasterId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkFlowChainMasterDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkFlowChainMasterDTO))); - } - - /// - /// This call returns a Workflow chain by its id - /// - /// Thrown when fails to make API call - /// Chain Master identifier - /// Task of WorkFlowChainMasterDTO - public async System.Threading.Tasks.Task WorkflowConnectorGetByChainMasterIdAsync (string chainMasterId) - { - ApiResponse localVarResponse = await WorkflowConnectorGetByChainMasterIdAsyncWithHttpInfo(chainMasterId); - return localVarResponse.Data; - - } - - /// - /// This call returns a Workflow chain by its id - /// - /// Thrown when fails to make API call - /// Chain Master identifier - /// Task of ApiResponse (WorkFlowChainMasterDTO) - public async System.Threading.Tasks.Task> WorkflowConnectorGetByChainMasterIdAsyncWithHttpInfo (string chainMasterId) - { - // verify the required parameter 'chainMasterId' is set - if (chainMasterId == null) - throw new ApiException(400, "Missing required parameter 'chainMasterId' when calling WorkflowConnectorApi->WorkflowConnectorGetByChainMasterId"); - - var localVarPath = "/api/WorkflowConnector/{chainMasterId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (chainMasterId != null) localVarPathParams.Add("chainMasterId", this.Configuration.ApiClient.ParameterToString(chainMasterId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowConnectorGetByChainMasterId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkFlowChainMasterDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkFlowChainMasterDTO))); - } - - /// - /// This call inserts a new workflow chain - /// - /// Thrown when fails to make API call - /// The chain to be created - /// WorkFlowChainMasterDTO - public WorkFlowChainMasterDTO WorkflowConnectorInsertChainMaster (WorkFlowChainMasterDTO chainMaster) - { - ApiResponse localVarResponse = WorkflowConnectorInsertChainMasterWithHttpInfo(chainMaster); - return localVarResponse.Data; - } - - /// - /// This call inserts a new workflow chain - /// - /// Thrown when fails to make API call - /// The chain to be created - /// ApiResponse of WorkFlowChainMasterDTO - public ApiResponse< WorkFlowChainMasterDTO > WorkflowConnectorInsertChainMasterWithHttpInfo (WorkFlowChainMasterDTO chainMaster) - { - // verify the required parameter 'chainMaster' is set - if (chainMaster == null) - throw new ApiException(400, "Missing required parameter 'chainMaster' when calling WorkflowConnectorApi->WorkflowConnectorInsertChainMaster"); - - var localVarPath = "/api/WorkflowConnector"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (chainMaster != null && chainMaster.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(chainMaster); // http body (model) parameter - } - else - { - localVarPostBody = chainMaster; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowConnectorInsertChainMaster", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkFlowChainMasterDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkFlowChainMasterDTO))); - } - - /// - /// This call inserts a new workflow chain - /// - /// Thrown when fails to make API call - /// The chain to be created - /// Task of WorkFlowChainMasterDTO - public async System.Threading.Tasks.Task WorkflowConnectorInsertChainMasterAsync (WorkFlowChainMasterDTO chainMaster) - { - ApiResponse localVarResponse = await WorkflowConnectorInsertChainMasterAsyncWithHttpInfo(chainMaster); - return localVarResponse.Data; - - } - - /// - /// This call inserts a new workflow chain - /// - /// Thrown when fails to make API call - /// The chain to be created - /// Task of ApiResponse (WorkFlowChainMasterDTO) - public async System.Threading.Tasks.Task> WorkflowConnectorInsertChainMasterAsyncWithHttpInfo (WorkFlowChainMasterDTO chainMaster) - { - // verify the required parameter 'chainMaster' is set - if (chainMaster == null) - throw new ApiException(400, "Missing required parameter 'chainMaster' when calling WorkflowConnectorApi->WorkflowConnectorInsertChainMaster"); - - var localVarPath = "/api/WorkflowConnector"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (chainMaster != null && chainMaster.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(chainMaster); // http body (model) parameter - } - else - { - localVarPostBody = chainMaster; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowConnectorInsertChainMaster", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkFlowChainMasterDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkFlowChainMasterDTO))); - } - - /// - /// This call updates a workflow chain - /// - /// Thrown when fails to make API call - /// The chain to be created - /// WorkFlowChainMasterDTO - public WorkFlowChainMasterDTO WorkflowConnectorUpdateChainMaster (WorkFlowChainMasterDTO chainMaster) - { - ApiResponse localVarResponse = WorkflowConnectorUpdateChainMasterWithHttpInfo(chainMaster); - return localVarResponse.Data; - } - - /// - /// This call updates a workflow chain - /// - /// Thrown when fails to make API call - /// The chain to be created - /// ApiResponse of WorkFlowChainMasterDTO - public ApiResponse< WorkFlowChainMasterDTO > WorkflowConnectorUpdateChainMasterWithHttpInfo (WorkFlowChainMasterDTO chainMaster) - { - // verify the required parameter 'chainMaster' is set - if (chainMaster == null) - throw new ApiException(400, "Missing required parameter 'chainMaster' when calling WorkflowConnectorApi->WorkflowConnectorUpdateChainMaster"); - - var localVarPath = "/api/WorkflowConnector"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (chainMaster != null && chainMaster.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(chainMaster); // http body (model) parameter - } - else - { - localVarPostBody = chainMaster; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowConnectorUpdateChainMaster", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkFlowChainMasterDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkFlowChainMasterDTO))); - } - - /// - /// This call updates a workflow chain - /// - /// Thrown when fails to make API call - /// The chain to be created - /// Task of WorkFlowChainMasterDTO - public async System.Threading.Tasks.Task WorkflowConnectorUpdateChainMasterAsync (WorkFlowChainMasterDTO chainMaster) - { - ApiResponse localVarResponse = await WorkflowConnectorUpdateChainMasterAsyncWithHttpInfo(chainMaster); - return localVarResponse.Data; - - } - - /// - /// This call updates a workflow chain - /// - /// Thrown when fails to make API call - /// The chain to be created - /// Task of ApiResponse (WorkFlowChainMasterDTO) - public async System.Threading.Tasks.Task> WorkflowConnectorUpdateChainMasterAsyncWithHttpInfo (WorkFlowChainMasterDTO chainMaster) - { - // verify the required parameter 'chainMaster' is set - if (chainMaster == null) - throw new ApiException(400, "Missing required parameter 'chainMaster' when calling WorkflowConnectorApi->WorkflowConnectorUpdateChainMaster"); - - var localVarPath = "/api/WorkflowConnector"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (chainMaster != null && chainMaster.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(chainMaster); // http body (model) parameter - } - else - { - localVarPostBody = chainMaster; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowConnectorUpdateChainMaster", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkFlowChainMasterDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkFlowChainMasterDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/WorkflowEventsApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/WorkflowEventsApi.cs deleted file mode 100644 index 7178ac9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/WorkflowEventsApi.cs +++ /dev/null @@ -1,1457 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IWorkflowEventsApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call removes a workflow event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of workflow event - /// - void WorkflowEventsDeleteEvent (string eventId); - - /// - /// This call removes a workflow event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of workflow event - /// ApiResponse of Object(void) - ApiResponse WorkflowEventsDeleteEventWithHttpInfo (string eventId); - /// - /// This call retrieves a specific V2 event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// WorkFlowSavedEventDTO - WorkFlowSavedEventDTO WorkflowEventsGetEventConfiguration (string eventId); - - /// - /// This call retrieves a specific V2 event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of WorkFlowSavedEventDTO - ApiResponse WorkflowEventsGetEventConfigurationWithHttpInfo (string eventId); - /// - /// Use this call to get the delete status of the event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// WorkflowSavedEventStatusDTO - WorkflowSavedEventStatusDTO WorkflowEventsGetEventDeleteStatus (string eventId); - - /// - /// Use this call to get the delete status of the event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of WorkflowSavedEventStatusDTO - ApiResponse WorkflowEventsGetEventDeleteStatusWithHttpInfo (string eventId); - /// - /// Use this call to get the edit status of the event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// WorkflowSavedEventStatusDTO - WorkflowSavedEventStatusDTO WorkflowEventsGetEventEditStatus (string eventId); - - /// - /// Use this call to get the edit status of the event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of WorkflowSavedEventStatusDTO - ApiResponse WorkflowEventsGetEventEditStatusWithHttpInfo (string eventId); - /// - /// This call retrieves all the V2 events - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<WorkFlowSavedEventDTO> - List WorkflowEventsGetEventList (); - - /// - /// This call retrieves all the V2 events - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<WorkFlowSavedEventDTO> - ApiResponse> WorkflowEventsGetEventListWithHttpInfo (); - /// - /// This call saves an event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// WorkFlowSavedEventDTO - WorkFlowSavedEventDTO WorkflowEventsSaveEvent (WorkFlowSaveEventDTO eventconfiguration = null); - - /// - /// This call saves an event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of WorkFlowSavedEventDTO - ApiResponse WorkflowEventsSaveEventWithHttpInfo (WorkFlowSaveEventDTO eventconfiguration = null); - /// - /// This call updates an event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// WorkFlowSavedEventDTO - WorkFlowSavedEventDTO WorkflowEventsUpdateEvent (WorkFlowSavedEventDTO eventconfiguration = null); - - /// - /// This call updates an event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of WorkFlowSavedEventDTO - ApiResponse WorkflowEventsUpdateEventWithHttpInfo (WorkFlowSavedEventDTO eventconfiguration = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call removes a workflow event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of workflow event - /// Task of void - System.Threading.Tasks.Task WorkflowEventsDeleteEventAsync (string eventId); - - /// - /// This call removes a workflow event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier of workflow event - /// Task of ApiResponse - System.Threading.Tasks.Task> WorkflowEventsDeleteEventAsyncWithHttpInfo (string eventId); - /// - /// This call retrieves a specific V2 event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of WorkFlowSavedEventDTO - System.Threading.Tasks.Task WorkflowEventsGetEventConfigurationAsync (string eventId); - - /// - /// This call retrieves a specific V2 event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (WorkFlowSavedEventDTO) - System.Threading.Tasks.Task> WorkflowEventsGetEventConfigurationAsyncWithHttpInfo (string eventId); - /// - /// Use this call to get the delete status of the event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of WorkflowSavedEventStatusDTO - System.Threading.Tasks.Task WorkflowEventsGetEventDeleteStatusAsync (string eventId); - - /// - /// Use this call to get the delete status of the event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (WorkflowSavedEventStatusDTO) - System.Threading.Tasks.Task> WorkflowEventsGetEventDeleteStatusAsyncWithHttpInfo (string eventId); - /// - /// Use this call to get the edit status of the event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of WorkflowSavedEventStatusDTO - System.Threading.Tasks.Task WorkflowEventsGetEventEditStatusAsync (string eventId); - - /// - /// Use this call to get the edit status of the event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (WorkflowSavedEventStatusDTO) - System.Threading.Tasks.Task> WorkflowEventsGetEventEditStatusAsyncWithHttpInfo (string eventId); - /// - /// This call retrieves all the V2 events - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<WorkFlowSavedEventDTO> - System.Threading.Tasks.Task> WorkflowEventsGetEventListAsync (); - - /// - /// This call retrieves all the V2 events - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<WorkFlowSavedEventDTO>) - System.Threading.Tasks.Task>> WorkflowEventsGetEventListAsyncWithHttpInfo (); - /// - /// This call saves an event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of WorkFlowSavedEventDTO - System.Threading.Tasks.Task WorkflowEventsSaveEventAsync (WorkFlowSaveEventDTO eventconfiguration = null); - - /// - /// This call saves an event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (WorkFlowSavedEventDTO) - System.Threading.Tasks.Task> WorkflowEventsSaveEventAsyncWithHttpInfo (WorkFlowSaveEventDTO eventconfiguration = null); - /// - /// This call updates an event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of WorkFlowSavedEventDTO - System.Threading.Tasks.Task WorkflowEventsUpdateEventAsync (WorkFlowSavedEventDTO eventconfiguration = null); - - /// - /// This call updates an event - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (WorkFlowSavedEventDTO) - System.Threading.Tasks.Task> WorkflowEventsUpdateEventAsyncWithHttpInfo (WorkFlowSavedEventDTO eventconfiguration = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class WorkflowEventsApi : IWorkflowEventsApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public WorkflowEventsApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public WorkflowEventsApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call removes a workflow event - /// - /// Thrown when fails to make API call - /// Identifier of workflow event - /// - public void WorkflowEventsDeleteEvent (string eventId) - { - WorkflowEventsDeleteEventWithHttpInfo(eventId); - } - - /// - /// This call removes a workflow event - /// - /// Thrown when fails to make API call - /// Identifier of workflow event - /// ApiResponse of Object(void) - public ApiResponse WorkflowEventsDeleteEventWithHttpInfo (string eventId) - { - // verify the required parameter 'eventId' is set - if (eventId == null) - throw new ApiException(400, "Missing required parameter 'eventId' when calling WorkflowEventsApi->WorkflowEventsDeleteEvent"); - - var localVarPath = "/api/WorkflowEvents/event/{eventId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (eventId != null) localVarPathParams.Add("eventId", this.Configuration.ApiClient.ParameterToString(eventId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowEventsDeleteEvent", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call removes a workflow event - /// - /// Thrown when fails to make API call - /// Identifier of workflow event - /// Task of void - public async System.Threading.Tasks.Task WorkflowEventsDeleteEventAsync (string eventId) - { - await WorkflowEventsDeleteEventAsyncWithHttpInfo(eventId); - - } - - /// - /// This call removes a workflow event - /// - /// Thrown when fails to make API call - /// Identifier of workflow event - /// Task of ApiResponse - public async System.Threading.Tasks.Task> WorkflowEventsDeleteEventAsyncWithHttpInfo (string eventId) - { - // verify the required parameter 'eventId' is set - if (eventId == null) - throw new ApiException(400, "Missing required parameter 'eventId' when calling WorkflowEventsApi->WorkflowEventsDeleteEvent"); - - var localVarPath = "/api/WorkflowEvents/event/{eventId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (eventId != null) localVarPathParams.Add("eventId", this.Configuration.ApiClient.ParameterToString(eventId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowEventsDeleteEvent", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call retrieves a specific V2 event - /// - /// Thrown when fails to make API call - /// - /// WorkFlowSavedEventDTO - public WorkFlowSavedEventDTO WorkflowEventsGetEventConfiguration (string eventId) - { - ApiResponse localVarResponse = WorkflowEventsGetEventConfigurationWithHttpInfo(eventId); - return localVarResponse.Data; - } - - /// - /// This call retrieves a specific V2 event - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of WorkFlowSavedEventDTO - public ApiResponse< WorkFlowSavedEventDTO > WorkflowEventsGetEventConfigurationWithHttpInfo (string eventId) - { - // verify the required parameter 'eventId' is set - if (eventId == null) - throw new ApiException(400, "Missing required parameter 'eventId' when calling WorkflowEventsApi->WorkflowEventsGetEventConfiguration"); - - var localVarPath = "/api/WorkflowEvents/event/{eventId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (eventId != null) localVarPathParams.Add("eventId", this.Configuration.ApiClient.ParameterToString(eventId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowEventsGetEventConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkFlowSavedEventDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkFlowSavedEventDTO))); - } - - /// - /// This call retrieves a specific V2 event - /// - /// Thrown when fails to make API call - /// - /// Task of WorkFlowSavedEventDTO - public async System.Threading.Tasks.Task WorkflowEventsGetEventConfigurationAsync (string eventId) - { - ApiResponse localVarResponse = await WorkflowEventsGetEventConfigurationAsyncWithHttpInfo(eventId); - return localVarResponse.Data; - - } - - /// - /// This call retrieves a specific V2 event - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (WorkFlowSavedEventDTO) - public async System.Threading.Tasks.Task> WorkflowEventsGetEventConfigurationAsyncWithHttpInfo (string eventId) - { - // verify the required parameter 'eventId' is set - if (eventId == null) - throw new ApiException(400, "Missing required parameter 'eventId' when calling WorkflowEventsApi->WorkflowEventsGetEventConfiguration"); - - var localVarPath = "/api/WorkflowEvents/event/{eventId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (eventId != null) localVarPathParams.Add("eventId", this.Configuration.ApiClient.ParameterToString(eventId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowEventsGetEventConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkFlowSavedEventDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkFlowSavedEventDTO))); - } - - /// - /// Use this call to get the delete status of the event - /// - /// Thrown when fails to make API call - /// - /// WorkflowSavedEventStatusDTO - public WorkflowSavedEventStatusDTO WorkflowEventsGetEventDeleteStatus (string eventId) - { - ApiResponse localVarResponse = WorkflowEventsGetEventDeleteStatusWithHttpInfo(eventId); - return localVarResponse.Data; - } - - /// - /// Use this call to get the delete status of the event - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of WorkflowSavedEventStatusDTO - public ApiResponse< WorkflowSavedEventStatusDTO > WorkflowEventsGetEventDeleteStatusWithHttpInfo (string eventId) - { - // verify the required parameter 'eventId' is set - if (eventId == null) - throw new ApiException(400, "Missing required parameter 'eventId' when calling WorkflowEventsApi->WorkflowEventsGetEventDeleteStatus"); - - var localVarPath = "/api/WorkflowEvents/event/{eventId}/delete-status"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (eventId != null) localVarPathParams.Add("eventId", this.Configuration.ApiClient.ParameterToString(eventId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowEventsGetEventDeleteStatus", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkflowSavedEventStatusDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkflowSavedEventStatusDTO))); - } - - /// - /// Use this call to get the delete status of the event - /// - /// Thrown when fails to make API call - /// - /// Task of WorkflowSavedEventStatusDTO - public async System.Threading.Tasks.Task WorkflowEventsGetEventDeleteStatusAsync (string eventId) - { - ApiResponse localVarResponse = await WorkflowEventsGetEventDeleteStatusAsyncWithHttpInfo(eventId); - return localVarResponse.Data; - - } - - /// - /// Use this call to get the delete status of the event - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (WorkflowSavedEventStatusDTO) - public async System.Threading.Tasks.Task> WorkflowEventsGetEventDeleteStatusAsyncWithHttpInfo (string eventId) - { - // verify the required parameter 'eventId' is set - if (eventId == null) - throw new ApiException(400, "Missing required parameter 'eventId' when calling WorkflowEventsApi->WorkflowEventsGetEventDeleteStatus"); - - var localVarPath = "/api/WorkflowEvents/event/{eventId}/delete-status"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (eventId != null) localVarPathParams.Add("eventId", this.Configuration.ApiClient.ParameterToString(eventId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowEventsGetEventDeleteStatus", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkflowSavedEventStatusDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkflowSavedEventStatusDTO))); - } - - /// - /// Use this call to get the edit status of the event - /// - /// Thrown when fails to make API call - /// - /// WorkflowSavedEventStatusDTO - public WorkflowSavedEventStatusDTO WorkflowEventsGetEventEditStatus (string eventId) - { - ApiResponse localVarResponse = WorkflowEventsGetEventEditStatusWithHttpInfo(eventId); - return localVarResponse.Data; - } - - /// - /// Use this call to get the edit status of the event - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of WorkflowSavedEventStatusDTO - public ApiResponse< WorkflowSavedEventStatusDTO > WorkflowEventsGetEventEditStatusWithHttpInfo (string eventId) - { - // verify the required parameter 'eventId' is set - if (eventId == null) - throw new ApiException(400, "Missing required parameter 'eventId' when calling WorkflowEventsApi->WorkflowEventsGetEventEditStatus"); - - var localVarPath = "/api/WorkflowEvents/event/{eventId}/edit-status"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (eventId != null) localVarPathParams.Add("eventId", this.Configuration.ApiClient.ParameterToString(eventId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowEventsGetEventEditStatus", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkflowSavedEventStatusDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkflowSavedEventStatusDTO))); - } - - /// - /// Use this call to get the edit status of the event - /// - /// Thrown when fails to make API call - /// - /// Task of WorkflowSavedEventStatusDTO - public async System.Threading.Tasks.Task WorkflowEventsGetEventEditStatusAsync (string eventId) - { - ApiResponse localVarResponse = await WorkflowEventsGetEventEditStatusAsyncWithHttpInfo(eventId); - return localVarResponse.Data; - - } - - /// - /// Use this call to get the edit status of the event - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (WorkflowSavedEventStatusDTO) - public async System.Threading.Tasks.Task> WorkflowEventsGetEventEditStatusAsyncWithHttpInfo (string eventId) - { - // verify the required parameter 'eventId' is set - if (eventId == null) - throw new ApiException(400, "Missing required parameter 'eventId' when calling WorkflowEventsApi->WorkflowEventsGetEventEditStatus"); - - var localVarPath = "/api/WorkflowEvents/event/{eventId}/edit-status"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (eventId != null) localVarPathParams.Add("eventId", this.Configuration.ApiClient.ParameterToString(eventId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowEventsGetEventEditStatus", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkflowSavedEventStatusDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkflowSavedEventStatusDTO))); - } - - /// - /// This call retrieves all the V2 events - /// - /// Thrown when fails to make API call - /// List<WorkFlowSavedEventDTO> - public List WorkflowEventsGetEventList () - { - ApiResponse> localVarResponse = WorkflowEventsGetEventListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call retrieves all the V2 events - /// - /// Thrown when fails to make API call - /// ApiResponse of List<WorkFlowSavedEventDTO> - public ApiResponse< List > WorkflowEventsGetEventListWithHttpInfo () - { - - var localVarPath = "/api/WorkflowEvents/events"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowEventsGetEventList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieves all the V2 events - /// - /// Thrown when fails to make API call - /// Task of List<WorkFlowSavedEventDTO> - public async System.Threading.Tasks.Task> WorkflowEventsGetEventListAsync () - { - ApiResponse> localVarResponse = await WorkflowEventsGetEventListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call retrieves all the V2 events - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<WorkFlowSavedEventDTO>) - public async System.Threading.Tasks.Task>> WorkflowEventsGetEventListAsyncWithHttpInfo () - { - - var localVarPath = "/api/WorkflowEvents/events"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowEventsGetEventList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call saves an event - /// - /// Thrown when fails to make API call - /// (optional) - /// WorkFlowSavedEventDTO - public WorkFlowSavedEventDTO WorkflowEventsSaveEvent (WorkFlowSaveEventDTO eventconfiguration = null) - { - ApiResponse localVarResponse = WorkflowEventsSaveEventWithHttpInfo(eventconfiguration); - return localVarResponse.Data; - } - - /// - /// This call saves an event - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of WorkFlowSavedEventDTO - public ApiResponse< WorkFlowSavedEventDTO > WorkflowEventsSaveEventWithHttpInfo (WorkFlowSaveEventDTO eventconfiguration = null) - { - - var localVarPath = "/api/WorkflowEvents/event"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (eventconfiguration != null && eventconfiguration.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(eventconfiguration); // http body (model) parameter - } - else - { - localVarPostBody = eventconfiguration; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowEventsSaveEvent", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkFlowSavedEventDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkFlowSavedEventDTO))); - } - - /// - /// This call saves an event - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of WorkFlowSavedEventDTO - public async System.Threading.Tasks.Task WorkflowEventsSaveEventAsync (WorkFlowSaveEventDTO eventconfiguration = null) - { - ApiResponse localVarResponse = await WorkflowEventsSaveEventAsyncWithHttpInfo(eventconfiguration); - return localVarResponse.Data; - - } - - /// - /// This call saves an event - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (WorkFlowSavedEventDTO) - public async System.Threading.Tasks.Task> WorkflowEventsSaveEventAsyncWithHttpInfo (WorkFlowSaveEventDTO eventconfiguration = null) - { - - var localVarPath = "/api/WorkflowEvents/event"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (eventconfiguration != null && eventconfiguration.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(eventconfiguration); // http body (model) parameter - } - else - { - localVarPostBody = eventconfiguration; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowEventsSaveEvent", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkFlowSavedEventDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkFlowSavedEventDTO))); - } - - /// - /// This call updates an event - /// - /// Thrown when fails to make API call - /// (optional) - /// WorkFlowSavedEventDTO - public WorkFlowSavedEventDTO WorkflowEventsUpdateEvent (WorkFlowSavedEventDTO eventconfiguration = null) - { - ApiResponse localVarResponse = WorkflowEventsUpdateEventWithHttpInfo(eventconfiguration); - return localVarResponse.Data; - } - - /// - /// This call updates an event - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of WorkFlowSavedEventDTO - public ApiResponse< WorkFlowSavedEventDTO > WorkflowEventsUpdateEventWithHttpInfo (WorkFlowSavedEventDTO eventconfiguration = null) - { - - var localVarPath = "/api/WorkflowEvents/event"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (eventconfiguration != null && eventconfiguration.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(eventconfiguration); // http body (model) parameter - } - else - { - localVarPostBody = eventconfiguration; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowEventsUpdateEvent", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkFlowSavedEventDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkFlowSavedEventDTO))); - } - - /// - /// This call updates an event - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of WorkFlowSavedEventDTO - public async System.Threading.Tasks.Task WorkflowEventsUpdateEventAsync (WorkFlowSavedEventDTO eventconfiguration = null) - { - ApiResponse localVarResponse = await WorkflowEventsUpdateEventAsyncWithHttpInfo(eventconfiguration); - return localVarResponse.Data; - - } - - /// - /// This call updates an event - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (WorkFlowSavedEventDTO) - public async System.Threading.Tasks.Task> WorkflowEventsUpdateEventAsyncWithHttpInfo (WorkFlowSavedEventDTO eventconfiguration = null) - { - - var localVarPath = "/api/WorkflowEvents/event"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (eventconfiguration != null && eventconfiguration.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(eventconfiguration); // http body (model) parameter - } - else - { - localVarPostBody = eventconfiguration; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowEventsUpdateEvent", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkFlowSavedEventDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkFlowSavedEventDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Api/WorkflowExtraGrantApi.cs b/ACUtils.AXRepository/ArxivarNext/Api/WorkflowExtraGrantApi.cs deleted file mode 100644 index 6942d30..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Api/WorkflowExtraGrantApi.cs +++ /dev/null @@ -1,932 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNext.Client; -using ACUtils.AXRepository.ArxivarNext.Model; - -namespace ACUtils.AXRepository.ArxivarNext.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IWorkflowExtraGrantApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes extragrants by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Extra event identifier - /// - void WorkflowExtraGrantDeleteById (int? id); - - /// - /// This call deletes extragrants by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Extra event identifier - /// ApiResponse of Object(void) - ApiResponse WorkflowExtraGrantDeleteByIdWithHttpInfo (int? id); - /// - /// This call returns all workflow configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// List<WorkflowExtraGrantDTO> - List WorkflowExtraGrantGetByDiagramId (Guid? diagramId); - - /// - /// This call returns all workflow configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<WorkflowExtraGrantDTO> - ApiResponse> WorkflowExtraGrantGetByDiagramIdWithHttpInfo (Guid? diagramId); - /// - /// This call updates extra grant model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Extra grant model - /// WorkflowExtraGrantDTO - WorkflowExtraGrantDTO WorkflowExtraGrantInsert (WorkflowExtraGrantDTO extraGrantDto); - - /// - /// This call updates extra grant model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Extra grant model - /// ApiResponse of WorkflowExtraGrantDTO - ApiResponse WorkflowExtraGrantInsertWithHttpInfo (WorkflowExtraGrantDTO extraGrantDto); - /// - /// This call updates extra grant model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Extra grant model - /// WorkflowExtraGrantDTO - WorkflowExtraGrantDTO WorkflowExtraGrantUpdate (WorkflowExtraGrantDTO extraGrantDto); - - /// - /// This call updates extra grant model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Extra grant model - /// ApiResponse of WorkflowExtraGrantDTO - ApiResponse WorkflowExtraGrantUpdateWithHttpInfo (WorkflowExtraGrantDTO extraGrantDto); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes extragrants by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Extra event identifier - /// Task of void - System.Threading.Tasks.Task WorkflowExtraGrantDeleteByIdAsync (int? id); - - /// - /// This call deletes extragrants by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Extra event identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> WorkflowExtraGrantDeleteByIdAsyncWithHttpInfo (int? id); - /// - /// This call returns all workflow configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of List<WorkflowExtraGrantDTO> - System.Threading.Tasks.Task> WorkflowExtraGrantGetByDiagramIdAsync (Guid? diagramId); - - /// - /// This call returns all workflow configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<WorkflowExtraGrantDTO>) - System.Threading.Tasks.Task>> WorkflowExtraGrantGetByDiagramIdAsyncWithHttpInfo (Guid? diagramId); - /// - /// This call updates extra grant model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Extra grant model - /// Task of WorkflowExtraGrantDTO - System.Threading.Tasks.Task WorkflowExtraGrantInsertAsync (WorkflowExtraGrantDTO extraGrantDto); - - /// - /// This call updates extra grant model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Extra grant model - /// Task of ApiResponse (WorkflowExtraGrantDTO) - System.Threading.Tasks.Task> WorkflowExtraGrantInsertAsyncWithHttpInfo (WorkflowExtraGrantDTO extraGrantDto); - /// - /// This call updates extra grant model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Extra grant model - /// Task of WorkflowExtraGrantDTO - System.Threading.Tasks.Task WorkflowExtraGrantUpdateAsync (WorkflowExtraGrantDTO extraGrantDto); - - /// - /// This call updates extra grant model - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Extra grant model - /// Task of ApiResponse (WorkflowExtraGrantDTO) - System.Threading.Tasks.Task> WorkflowExtraGrantUpdateAsyncWithHttpInfo (WorkflowExtraGrantDTO extraGrantDto); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class WorkflowExtraGrantApi : IWorkflowExtraGrantApi - { - private ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public WorkflowExtraGrantApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNext.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public WorkflowExtraGrantApi(ACUtils.AXRepository.ArxivarNext.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNext.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNext.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNext.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes extragrants by id - /// - /// Thrown when fails to make API call - /// Extra event identifier - /// - public void WorkflowExtraGrantDeleteById (int? id) - { - WorkflowExtraGrantDeleteByIdWithHttpInfo(id); - } - - /// - /// This call deletes extragrants by id - /// - /// Thrown when fails to make API call - /// Extra event identifier - /// ApiResponse of Object(void) - public ApiResponse WorkflowExtraGrantDeleteByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling WorkflowExtraGrantApi->WorkflowExtraGrantDeleteById"); - - var localVarPath = "/api/WorkflowExtraGrant/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowExtraGrantDeleteById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes extragrants by id - /// - /// Thrown when fails to make API call - /// Extra event identifier - /// Task of void - public async System.Threading.Tasks.Task WorkflowExtraGrantDeleteByIdAsync (int? id) - { - await WorkflowExtraGrantDeleteByIdAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes extragrants by id - /// - /// Thrown when fails to make API call - /// Extra event identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> WorkflowExtraGrantDeleteByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling WorkflowExtraGrantApi->WorkflowExtraGrantDeleteById"); - - var localVarPath = "/api/WorkflowExtraGrant/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowExtraGrantDeleteById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all workflow configured - /// - /// Thrown when fails to make API call - /// - /// List<WorkflowExtraGrantDTO> - public List WorkflowExtraGrantGetByDiagramId (Guid? diagramId) - { - ApiResponse> localVarResponse = WorkflowExtraGrantGetByDiagramIdWithHttpInfo(diagramId); - return localVarResponse.Data; - } - - /// - /// This call returns all workflow configured - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of List<WorkflowExtraGrantDTO> - public ApiResponse< List > WorkflowExtraGrantGetByDiagramIdWithHttpInfo (Guid? diagramId) - { - // verify the required parameter 'diagramId' is set - if (diagramId == null) - throw new ApiException(400, "Missing required parameter 'diagramId' when calling WorkflowExtraGrantApi->WorkflowExtraGrantGetByDiagramId"); - - var localVarPath = "/api/WorkflowExtraGrant/diagram/{diagramId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (diagramId != null) localVarPathParams.Add("diagramId", this.Configuration.ApiClient.ParameterToString(diagramId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowExtraGrantGetByDiagramId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all workflow configured - /// - /// Thrown when fails to make API call - /// - /// Task of List<WorkflowExtraGrantDTO> - public async System.Threading.Tasks.Task> WorkflowExtraGrantGetByDiagramIdAsync (Guid? diagramId) - { - ApiResponse> localVarResponse = await WorkflowExtraGrantGetByDiagramIdAsyncWithHttpInfo(diagramId); - return localVarResponse.Data; - - } - - /// - /// This call returns all workflow configured - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (List<WorkflowExtraGrantDTO>) - public async System.Threading.Tasks.Task>> WorkflowExtraGrantGetByDiagramIdAsyncWithHttpInfo (Guid? diagramId) - { - // verify the required parameter 'diagramId' is set - if (diagramId == null) - throw new ApiException(400, "Missing required parameter 'diagramId' when calling WorkflowExtraGrantApi->WorkflowExtraGrantGetByDiagramId"); - - var localVarPath = "/api/WorkflowExtraGrant/diagram/{diagramId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (diagramId != null) localVarPathParams.Add("diagramId", this.Configuration.ApiClient.ParameterToString(diagramId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowExtraGrantGetByDiagramId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call updates extra grant model - /// - /// Thrown when fails to make API call - /// Extra grant model - /// WorkflowExtraGrantDTO - public WorkflowExtraGrantDTO WorkflowExtraGrantInsert (WorkflowExtraGrantDTO extraGrantDto) - { - ApiResponse localVarResponse = WorkflowExtraGrantInsertWithHttpInfo(extraGrantDto); - return localVarResponse.Data; - } - - /// - /// This call updates extra grant model - /// - /// Thrown when fails to make API call - /// Extra grant model - /// ApiResponse of WorkflowExtraGrantDTO - public ApiResponse< WorkflowExtraGrantDTO > WorkflowExtraGrantInsertWithHttpInfo (WorkflowExtraGrantDTO extraGrantDto) - { - // verify the required parameter 'extraGrantDto' is set - if (extraGrantDto == null) - throw new ApiException(400, "Missing required parameter 'extraGrantDto' when calling WorkflowExtraGrantApi->WorkflowExtraGrantInsert"); - - var localVarPath = "/api/WorkflowExtraGrant"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (extraGrantDto != null && extraGrantDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(extraGrantDto); // http body (model) parameter - } - else - { - localVarPostBody = extraGrantDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowExtraGrantInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkflowExtraGrantDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkflowExtraGrantDTO))); - } - - /// - /// This call updates extra grant model - /// - /// Thrown when fails to make API call - /// Extra grant model - /// Task of WorkflowExtraGrantDTO - public async System.Threading.Tasks.Task WorkflowExtraGrantInsertAsync (WorkflowExtraGrantDTO extraGrantDto) - { - ApiResponse localVarResponse = await WorkflowExtraGrantInsertAsyncWithHttpInfo(extraGrantDto); - return localVarResponse.Data; - - } - - /// - /// This call updates extra grant model - /// - /// Thrown when fails to make API call - /// Extra grant model - /// Task of ApiResponse (WorkflowExtraGrantDTO) - public async System.Threading.Tasks.Task> WorkflowExtraGrantInsertAsyncWithHttpInfo (WorkflowExtraGrantDTO extraGrantDto) - { - // verify the required parameter 'extraGrantDto' is set - if (extraGrantDto == null) - throw new ApiException(400, "Missing required parameter 'extraGrantDto' when calling WorkflowExtraGrantApi->WorkflowExtraGrantInsert"); - - var localVarPath = "/api/WorkflowExtraGrant"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (extraGrantDto != null && extraGrantDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(extraGrantDto); // http body (model) parameter - } - else - { - localVarPostBody = extraGrantDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowExtraGrantInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkflowExtraGrantDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkflowExtraGrantDTO))); - } - - /// - /// This call updates extra grant model - /// - /// Thrown when fails to make API call - /// Extra grant model - /// WorkflowExtraGrantDTO - public WorkflowExtraGrantDTO WorkflowExtraGrantUpdate (WorkflowExtraGrantDTO extraGrantDto) - { - ApiResponse localVarResponse = WorkflowExtraGrantUpdateWithHttpInfo(extraGrantDto); - return localVarResponse.Data; - } - - /// - /// This call updates extra grant model - /// - /// Thrown when fails to make API call - /// Extra grant model - /// ApiResponse of WorkflowExtraGrantDTO - public ApiResponse< WorkflowExtraGrantDTO > WorkflowExtraGrantUpdateWithHttpInfo (WorkflowExtraGrantDTO extraGrantDto) - { - // verify the required parameter 'extraGrantDto' is set - if (extraGrantDto == null) - throw new ApiException(400, "Missing required parameter 'extraGrantDto' when calling WorkflowExtraGrantApi->WorkflowExtraGrantUpdate"); - - var localVarPath = "/api/WorkflowExtraGrant"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (extraGrantDto != null && extraGrantDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(extraGrantDto); // http body (model) parameter - } - else - { - localVarPostBody = extraGrantDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowExtraGrantUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkflowExtraGrantDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkflowExtraGrantDTO))); - } - - /// - /// This call updates extra grant model - /// - /// Thrown when fails to make API call - /// Extra grant model - /// Task of WorkflowExtraGrantDTO - public async System.Threading.Tasks.Task WorkflowExtraGrantUpdateAsync (WorkflowExtraGrantDTO extraGrantDto) - { - ApiResponse localVarResponse = await WorkflowExtraGrantUpdateAsyncWithHttpInfo(extraGrantDto); - return localVarResponse.Data; - - } - - /// - /// This call updates extra grant model - /// - /// Thrown when fails to make API call - /// Extra grant model - /// Task of ApiResponse (WorkflowExtraGrantDTO) - public async System.Threading.Tasks.Task> WorkflowExtraGrantUpdateAsyncWithHttpInfo (WorkflowExtraGrantDTO extraGrantDto) - { - // verify the required parameter 'extraGrantDto' is set - if (extraGrantDto == null) - throw new ApiException(400, "Missing required parameter 'extraGrantDto' when calling WorkflowExtraGrantApi->WorkflowExtraGrantUpdate"); - - var localVarPath = "/api/WorkflowExtraGrant"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (extraGrantDto != null && extraGrantDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(extraGrantDto); // http body (model) parameter - } - else - { - localVarPostBody = extraGrantDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("WorkflowExtraGrantUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WorkflowExtraGrantDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WorkflowExtraGrantDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Client/ApiClient.cs b/ACUtils.AXRepository/ArxivarNext/Client/ApiClient.cs deleted file mode 100644 index 04079ce..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Client/ApiClient.cs +++ /dev/null @@ -1,530 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Text.RegularExpressions; -using System.IO; -using System.Web; -using System.Linq; -using System.Net; -using System.Text; -using Newtonsoft.Json; -using RestSharp; - -namespace ACUtils.AXRepository.ArxivarNext.Client -{ - /// - /// API client is mainly responsible for making the HTTP call to the API backend. - /// - public partial class ApiClient - { - private JsonSerializerSettings serializerSettings = new JsonSerializerSettings - { - ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor - }; - - /// - /// Allows for extending request processing for generated code. - /// - /// The RestSharp request object - partial void InterceptRequest(IRestRequest request); - - /// - /// Allows for extending response processing for generated code. - /// - /// The RestSharp request object - /// The RestSharp response object - partial void InterceptResponse(IRestRequest request, IRestResponse response); - - /// - /// Initializes a new instance of the class - /// with default configuration. - /// - public ApiClient() - { - Configuration = ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - RestClient = new RestClient("http://192.168.255.200/ARXivarNextWebApi"); - } - - /// - /// Initializes a new instance of the class - /// with default base path (http://192.168.255.200/ARXivarNextWebApi). - /// - /// An instance of Configuration. - public ApiClient(Configuration config) - { - Configuration = config ?? ACUtils.AXRepository.ArxivarNext.Client.Configuration.Default; - - RestClient = new RestClient(Configuration.BasePath); - } - - /// - /// Initializes a new instance of the class - /// with default configuration. - /// - /// The base path. - public ApiClient(String basePath = "http://192.168.255.200/ARXivarNextWebApi") - { - if (String.IsNullOrEmpty(basePath)) - throw new ArgumentException("basePath cannot be empty"); - - RestClient = new RestClient(basePath); - Configuration = Client.Configuration.Default; - } - - /// - /// Gets or sets the default API client for making HTTP calls. - /// - /// The default API client. - [Obsolete("ApiClient.Default is deprecated, please use 'Configuration.Default.ApiClient' instead.")] - public static ApiClient Default; - - /// - /// Gets or sets an instance of the IReadableConfiguration. - /// - /// An instance of the IReadableConfiguration. - /// - /// helps us to avoid modifying possibly global - /// configuration values from within a given client. It does not guarantee thread-safety - /// of the instance in any way. - /// - public IReadableConfiguration Configuration { get; set; } - - /// - /// Gets or sets the RestClient. - /// - /// An instance of the RestClient - public RestClient RestClient { get; set; } - - // Creates and sets up a RestRequest prior to a call. - private RestRequest PrepareRequest( - String path, RestSharp.Method method, List> queryParams, Object postBody, - Dictionary headerParams, Dictionary formParams, - Dictionary fileParams, Dictionary pathParams, - String contentType) - { - var request = new RestRequest(path, method); - - // add path parameter, if any - foreach(var param in pathParams) - request.AddParameter(param.Key, param.Value, ParameterType.UrlSegment); - - // add header parameter, if any - foreach(var param in headerParams) - request.AddHeader(param.Key, param.Value); - - // add query parameter, if any - foreach(var param in queryParams) - request.AddQueryParameter(param.Key, param.Value); - - // add form parameter, if any - foreach(var param in formParams) - request.AddParameter(param.Key, param.Value); - - // add file parameter, if any - foreach(var param in fileParams) - { - request.AddFile(param.Value.Name, param.Value.Writer, param.Value.FileName, param.Value.ContentType); - } - - if (postBody != null) // http body (model or byte[]) parameter - { - request.AddParameter(contentType, postBody, ParameterType.RequestBody); - } - - return request; - } - - /// - /// Makes the HTTP request (Sync). - /// - /// URL path. - /// HTTP method. - /// Query parameters. - /// HTTP body (POST request). - /// Header parameters. - /// Form parameters. - /// File parameters. - /// Path parameters. - /// Content Type of the request - /// Object - public Object CallApi( - String path, RestSharp.Method method, List> queryParams, Object postBody, - Dictionary headerParams, Dictionary formParams, - Dictionary fileParams, Dictionary pathParams, - String contentType) - { - var request = PrepareRequest( - path, method, queryParams, postBody, headerParams, formParams, fileParams, - pathParams, contentType); - - // set timeout - - RestClient.Timeout = Configuration.Timeout; - // set user agent - RestClient.UserAgent = Configuration.UserAgent; - - InterceptRequest(request); - var response = RestClient.Execute(request); - InterceptResponse(request, response); - - return (Object) response; - } - /// - /// Makes the asynchronous HTTP request. - /// - /// URL path. - /// HTTP method. - /// Query parameters. - /// HTTP body (POST request). - /// Header parameters. - /// Form parameters. - /// File parameters. - /// Path parameters. - /// Content type. - /// The Task instance. - public async System.Threading.Tasks.Task CallApiAsync( - String path, RestSharp.Method method, List> queryParams, Object postBody, - Dictionary headerParams, Dictionary formParams, - Dictionary fileParams, Dictionary pathParams, - String contentType) - { - var request = PrepareRequest( - path, method, queryParams, postBody, headerParams, formParams, fileParams, - pathParams, contentType); - InterceptRequest(request); - var response = await RestClient.ExecuteTaskAsync(request); - InterceptResponse(request, response); - return (Object)response; - } - - /// - /// Escape string (url-encoded). - /// - /// String to be escaped. - /// Escaped string. - public string EscapeString(string str) - { - return UrlEncode(str); - } - - /// - /// Create FileParameter based on Stream. - /// - /// Parameter name. - /// Input stream. - /// FileParameter. - public FileParameter ParameterToFile(string name, Stream stream) - { - if (stream is FileStream) - return FileParameter.Create(name, ReadAsBytes(stream), Path.GetFileName(((FileStream)stream).Name)); - else - return FileParameter.Create(name, ReadAsBytes(stream), "no_file_name_provided"); - } - - /// - /// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime. - /// If parameter is a list, join the list with ",". - /// Otherwise just return the string. - /// - /// The parameter (header, path, query, form). - /// Formatted string. - public string ParameterToString(object obj) - { - if (obj is DateTime) - // Return a formatted date string - Can be customized with Configuration.DateTimeFormat - // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") - // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 - // For example: 2009-06-15T13:45:30.0000000 - return ((DateTime)obj).ToString (Configuration.DateTimeFormat); - else if (obj is DateTimeOffset) - // Return a formatted date string - Can be customized with Configuration.DateTimeFormat - // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") - // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 - // For example: 2009-06-15T13:45:30.0000000 - return ((DateTimeOffset)obj).ToString (Configuration.DateTimeFormat); - else if (obj is IList) - { - var flattenedString = new StringBuilder(); - foreach (var param in (IList)obj) - { - if (flattenedString.Length > 0) - flattenedString.Append(","); - flattenedString.Append(param); - } - return flattenedString.ToString(); - } - else - return Convert.ToString (obj); - } - - /// - /// Deserialize the JSON string into a proper object. - /// - /// The HTTP response. - /// Object type. - /// Object representation of the JSON string. - public object Deserialize(IRestResponse response, Type type) - { - IList headers = response.Headers; - if (type == typeof(byte[])) // return byte array - { - return response.RawBytes; - } - - // TODO: ? if (type.IsAssignableFrom(typeof(Stream))) - if (type == typeof(Stream)) - { - if (headers != null) - { - var filePath = String.IsNullOrEmpty(Configuration.TempFolderPath) - ? Path.GetTempPath() - : Configuration.TempFolderPath; - var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$"); - foreach (var header in headers) - { - var match = regex.Match(header.ToString()); - if (match.Success) - { - string fileName = filePath + SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", "")); - File.WriteAllBytes(fileName, response.RawBytes); - return new FileStream(fileName, FileMode.Open); - } - } - } - var stream = new MemoryStream(response.RawBytes); - return stream; - } - - if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object - { - return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind); - } - - if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type - { - return ConvertType(response.Content, type); - } - - // at this point, it must be a model (json) - try - { - return JsonConvert.DeserializeObject(response.Content, type, serializerSettings); - } - catch (Exception e) - { - throw new ApiException(500, e.Message); - } - } - - /// - /// Serialize an input (model) into JSON string - /// - /// Object. - /// JSON string. - public String Serialize(object obj) - { - try - { - return obj != null ? JsonConvert.SerializeObject(obj) : null; - } - catch (Exception e) - { - throw new ApiException(500, e.Message); - } - } - - /// - ///Check if the given MIME is a JSON MIME. - ///JSON MIME examples: - /// application/json - /// application/json; charset=UTF8 - /// APPLICATION/JSON - /// application/vnd.company+json - /// - /// MIME - /// Returns True if MIME type is json. - public bool IsJsonMime(String mime) - { - var jsonRegex = new Regex("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); - return mime != null && (jsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json")); - } - - /// - /// Select the Content-Type header's value from the given content-type array: - /// if JSON type exists in the given array, use it; - /// otherwise use the first one defined in 'consumes' - /// - /// The Content-Type array to select from. - /// The Content-Type header to use. - public String SelectHeaderContentType(String[] contentTypes) - { - if (contentTypes.Length == 0) - return "application/json"; - - foreach (var contentType in contentTypes) - { - if (IsJsonMime(contentType.ToLower())) - return contentType; - } - - return contentTypes[0]; // use the first content type specified in 'consumes' - } - - /// - /// Select the Accept header's value from the given accepts array: - /// if JSON exists in the given array, use it; - /// otherwise use all of them (joining into a string) - /// - /// The accepts array to select from. - /// The Accept header to use. - public String SelectHeaderAccept(String[] accepts) - { - if (accepts.Length == 0) - return null; - - if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase)) - return "application/json"; - - return String.Join(",", accepts); - } - - /// - /// Encode string in base64 format. - /// - /// String to be encoded. - /// Encoded string. - public static string Base64Encode(string text) - { - return System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text)); - } - - /// - /// Dynamically cast the object into target type. - /// - /// Object to be casted - /// Target type - /// Casted object - public static dynamic ConvertType(dynamic fromObject, Type toObject) - { - return Convert.ChangeType(fromObject, toObject); - } - - /// - /// Convert stream to byte array - /// - /// Input stream to be converted - /// Byte array - public static byte[] ReadAsBytes(Stream inputStream) - { - byte[] buf = new byte[16*1024]; - using (MemoryStream ms = new MemoryStream()) - { - int count; - while ((count = inputStream.Read(buf, 0, buf.Length)) > 0) - { - ms.Write(buf, 0, count); - } - return ms.ToArray(); - } - } - - /// - /// URL encode a string - /// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50 - /// - /// String to be URL encoded - /// Byte array - public static string UrlEncode(string input) - { - const int maxLength = 32766; - - if (input == null) - { - throw new ArgumentNullException("input"); - } - - if (input.Length <= maxLength) - { - return Uri.EscapeDataString(input); - } - - StringBuilder sb = new StringBuilder(input.Length * 2); - int index = 0; - - while (index < input.Length) - { - int length = Math.Min(input.Length - index, maxLength); - string subString = input.Substring(index, length); - - sb.Append(Uri.EscapeDataString(subString)); - index += subString.Length; - } - - return sb.ToString(); - } - - /// - /// Sanitize filename by removing the path - /// - /// Filename - /// Filename - public static string SanitizeFilename(string filename) - { - Match match = Regex.Match(filename, @".*[/\\](.*)$"); - - if (match.Success) - { - return match.Groups[1].Value; - } - else - { - return filename; - } - } - - /// - /// Convert params to key/value pairs. - /// Use collectionFormat to properly format lists and collections. - /// - /// Key name. - /// Value object. - /// A list of KeyValuePairs - public IEnumerable> ParameterToKeyValuePairs(string collectionFormat, string name, object value) - { - var parameters = new List>(); - - if (IsCollection(value) && collectionFormat == "multi") - { - var valueCollection = value as IEnumerable; - parameters.AddRange(from object item in valueCollection select new KeyValuePair(name, ParameterToString(item))); - } - else - { - parameters.Add(new KeyValuePair(name, ParameterToString(value))); - } - - return parameters; - } - - /// - /// Check if generic object is a collection. - /// - /// - /// True if object is a collection type - private static bool IsCollection(object value) - { - return value is IList || value is ICollection; - } - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Client/ApiException.cs b/ACUtils.AXRepository/ArxivarNext/Client/ApiException.cs deleted file mode 100644 index 0d7f77e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Client/ApiException.cs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; - -namespace ACUtils.AXRepository.ArxivarNext.Client -{ - /// - /// API Exception - /// - public class ApiException : Exception - { - /// - /// Gets or sets the error code (HTTP status code) - /// - /// The error code (HTTP status code). - public int ErrorCode { get; set; } - - /// - /// Gets or sets the error content (body json object) - /// - /// The error content (Http response body). - public dynamic ErrorContent { get; private set; } - - /// - /// Initializes a new instance of the class. - /// - public ApiException() {} - - /// - /// Initializes a new instance of the class. - /// - /// HTTP status code. - /// Error message. - public ApiException(int errorCode, string message) : base(message) - { - this.ErrorCode = errorCode; - } - - /// - /// Initializes a new instance of the class. - /// - /// HTTP status code. - /// Error message. - /// Error content. - public ApiException(int errorCode, string message, dynamic errorContent = null) : base(message) - { - this.ErrorCode = errorCode; - this.ErrorContent = errorContent; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Client/ApiResponse.cs b/ACUtils.AXRepository/ArxivarNext/Client/ApiResponse.cs deleted file mode 100644 index 218addf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Client/ApiResponse.cs +++ /dev/null @@ -1,54 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; - -namespace ACUtils.AXRepository.ArxivarNext.Client -{ - /// - /// API Response - /// - public class ApiResponse - { - /// - /// Gets or sets the status code (HTTP status code) - /// - /// The status code. - public int StatusCode { get; private set; } - - /// - /// Gets or sets the HTTP headers - /// - /// HTTP headers - public IDictionary Headers { get; private set; } - - /// - /// Gets or sets the data (parsed HTTP body) - /// - /// The data. - public T Data { get; private set; } - - /// - /// Initializes a new instance of the class. - /// - /// HTTP status code. - /// HTTP headers. - /// Data (parsed HTTP body) - public ApiResponse(int statusCode, IDictionary headers, T data) - { - this.StatusCode= statusCode; - this.Headers = headers; - this.Data = data; - } - - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Client/Configuration.cs b/ACUtils.AXRepository/ArxivarNext/Client/Configuration.cs deleted file mode 100644 index 8e0d3b6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Client/Configuration.cs +++ /dev/null @@ -1,453 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Reflection; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; - -namespace ACUtils.AXRepository.ArxivarNext.Client -{ - /// - /// Represents a set of configuration settings - /// - public class Configuration : IReadableConfiguration - { - #region Constants - - /// - /// Version of the package. - /// - /// Version of the package. - public const string Version = "1.0.0"; - - /// - /// Identifier for ISO 8601 DateTime Format - /// - /// See https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 for more information. - // ReSharper disable once InconsistentNaming - public const string ISO8601_DATETIME_FORMAT = "o"; - - #endregion Constants - - #region Static Members - - private static readonly object GlobalConfigSync = new { }; - private static Configuration _globalConfiguration; - - /// - /// Default creation of exceptions for a given method name and response object - /// - public static readonly ExceptionFactory DefaultExceptionFactory = (methodName, response) => - { - var status = (int)response.StatusCode; - if (status >= 400) - { - return new ApiException(status, - string.Format("Error calling {0}: {1}", methodName, response.Content), - response.Content); - } - if (status == 0) - { - return new ApiException(status, - string.Format("Error calling {0}: {1}", methodName, response.ErrorMessage), response.ErrorMessage); - } - return null; - }; - - /// - /// Gets or sets the default Configuration. - /// - /// Configuration. - public static Configuration Default - { - get { return _globalConfiguration; } - set - { - lock (GlobalConfigSync) - { - _globalConfiguration = value; - } - } - } - - #endregion Static Members - - #region Private Members - - /// - /// Gets or sets the API key based on the authentication name. - /// - /// The API key. - private IDictionary _apiKey = null; - - /// - /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. - /// - /// The prefix of the API key. - private IDictionary _apiKeyPrefix = null; - - private string _dateTimeFormat = ISO8601_DATETIME_FORMAT; - private string _tempFolderPath = Path.GetTempPath(); - - #endregion Private Members - - #region Constructors - - static Configuration() - { - _globalConfiguration = new GlobalConfiguration(); - } - - /// - /// Initializes a new instance of the class - /// - public Configuration() - { - UserAgent = "Swagger-Codegen/1.0.0/csharp"; - BasePath = "http://192.168.255.200/ARXivarNextWebApi"; - DefaultHeader = new ConcurrentDictionary(); - ApiKey = new ConcurrentDictionary(); - ApiKeyPrefix = new ConcurrentDictionary(); - - // Setting Timeout has side effects (forces ApiClient creation). - Timeout = 100000; - } - - /// - /// Initializes a new instance of the class - /// - public Configuration( - IDictionary defaultHeader, - IDictionary apiKey, - IDictionary apiKeyPrefix, - string basePath = "http://192.168.255.200/ARXivarNextWebApi") : this() - { - if (string.IsNullOrWhiteSpace(basePath)) - throw new ArgumentException("The provided basePath is invalid.", "basePath"); - if (defaultHeader == null) - throw new ArgumentNullException("defaultHeader"); - if (apiKey == null) - throw new ArgumentNullException("apiKey"); - if (apiKeyPrefix == null) - throw new ArgumentNullException("apiKeyPrefix"); - - BasePath = basePath; - - foreach (var keyValuePair in defaultHeader) - { - DefaultHeader.Add(keyValuePair); - } - - foreach (var keyValuePair in apiKey) - { - ApiKey.Add(keyValuePair); - } - - foreach (var keyValuePair in apiKeyPrefix) - { - ApiKeyPrefix.Add(keyValuePair); - } - } - - /// - /// Initializes a new instance of the class with different settings - /// - /// Api client - /// Dictionary of default HTTP header - /// Username - /// Password - /// accessToken - /// Dictionary of API key - /// Dictionary of API key prefix - /// Temp folder path - /// DateTime format string - /// HTTP connection timeout (in milliseconds) - /// HTTP user agent - [Obsolete("Use explicit object construction and setting of properties.", true)] - public Configuration( - // ReSharper disable UnusedParameter.Local - ApiClient apiClient = null, - IDictionary defaultHeader = null, - string username = null, - string password = null, - string accessToken = null, - IDictionary apiKey = null, - IDictionary apiKeyPrefix = null, - string tempFolderPath = null, - string dateTimeFormat = null, - int timeout = 100000, - string userAgent = "Swagger-Codegen/1.0.0/csharp" - // ReSharper restore UnusedParameter.Local - ) - { - - } - - /// - /// Initializes a new instance of the Configuration class. - /// - /// Api client. - [Obsolete("This constructor caused unexpected sharing of static data. It is no longer supported.", true)] - // ReSharper disable once UnusedParameter.Local - public Configuration(ApiClient apiClient) - { - - } - - #endregion Constructors - - - #region Properties - - private ApiClient _apiClient = null; - /// - /// Gets an instance of an ApiClient for this configuration - /// - public virtual ApiClient ApiClient - { - get - { - if (_apiClient == null) _apiClient = CreateApiClient(); - return _apiClient; - } - } - - private String _basePath = null; - /// - /// Gets or sets the base path for API access. - /// - public virtual string BasePath { - get { return _basePath; } - set { - _basePath = value; - // pass-through to ApiClient if it's set. - if(_apiClient != null) { - _apiClient.RestClient.BaseUrl = new Uri(_basePath); - } - } - } - - /// - /// Gets or sets the default header. - /// - public virtual IDictionary DefaultHeader { get; set; } - - /// - /// Gets or sets the HTTP timeout (milliseconds) of ApiClient. Default to 100000 milliseconds. - /// - public virtual int Timeout - { - - get { return ApiClient.RestClient.Timeout; } - set { ApiClient.RestClient.Timeout = value; } - } - - /// - /// Gets or sets the HTTP user agent. - /// - /// Http user agent. - public virtual string UserAgent { get; set; } - - /// - /// Gets or sets the username (HTTP basic authentication). - /// - /// The username. - public virtual string Username { get; set; } - - /// - /// Gets or sets the password (HTTP basic authentication). - /// - /// The password. - public virtual string Password { get; set; } - - /// - /// Gets the API key with prefix. - /// - /// API key identifier (authentication scheme). - /// API key with prefix. - public string GetApiKeyWithPrefix(string apiKeyIdentifier) - { - var apiKeyValue = ""; - ApiKey.TryGetValue (apiKeyIdentifier, out apiKeyValue); - var apiKeyPrefix = ""; - if (ApiKeyPrefix.TryGetValue (apiKeyIdentifier, out apiKeyPrefix)) - return apiKeyPrefix + " " + apiKeyValue; - else - return apiKeyValue; - } - - /// - /// Gets or sets the access token for OAuth2 authentication. - /// - /// The access token. - public virtual string AccessToken { get; set; } - - /// - /// Gets or sets the temporary folder path to store the files downloaded from the server. - /// - /// Folder path. - public virtual string TempFolderPath - { - get { return _tempFolderPath; } - - set - { - if (string.IsNullOrEmpty(value)) - { - // Possible breaking change since swagger-codegen 2.2.1, enforce a valid temporary path on set. - _tempFolderPath = Path.GetTempPath(); - return; - } - - // create the directory if it does not exist - if (!Directory.Exists(value)) - { - Directory.CreateDirectory(value); - } - - // check if the path contains directory separator at the end - if (value[value.Length - 1] == Path.DirectorySeparatorChar) - { - _tempFolderPath = value; - } - else - { - _tempFolderPath = value + Path.DirectorySeparatorChar; - } - } - } - - /// - /// Gets or sets the the date time format used when serializing in the ApiClient - /// By default, it's set to ISO 8601 - "o", for others see: - /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx - /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx - /// No validation is done to ensure that the string you're providing is valid - /// - /// The DateTimeFormat string - public virtual string DateTimeFormat - { - get { return _dateTimeFormat; } - set - { - if (string.IsNullOrEmpty(value)) - { - // Never allow a blank or null string, go back to the default - _dateTimeFormat = ISO8601_DATETIME_FORMAT; - return; - } - - // Caution, no validation when you choose date time format other than ISO 8601 - // Take a look at the above links - _dateTimeFormat = value; - } - } - - /// - /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. - /// - /// The prefix of the API key. - public virtual IDictionary ApiKeyPrefix - { - get { return _apiKeyPrefix; } - set - { - if (value == null) - { - throw new InvalidOperationException("ApiKeyPrefix collection may not be null."); - } - _apiKeyPrefix = value; - } - } - - /// - /// Gets or sets the API key based on the authentication name. - /// - /// The API key. - public virtual IDictionary ApiKey - { - get { return _apiKey; } - set - { - if (value == null) - { - throw new InvalidOperationException("ApiKey collection may not be null."); - } - _apiKey = value; - } - } - - #endregion Properties - - #region Methods - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - public void AddDefaultHeader(string key, string value) - { - DefaultHeader[key] = value; - } - - /// - /// Creates a new based on this instance. - /// - /// - public ApiClient CreateApiClient() - { - return new ApiClient(BasePath) { Configuration = this }; - } - - - /// - /// Returns a string with essential information for debugging. - /// - public static String ToDebugReport() - { - String report = "C# SDK (ACUtils.AXRepository.ArxivarNext) Debug Report:\n"; - report += " OS: " + System.Environment.OSVersion + "\n"; - report += " .NET Framework Version: " + System.Environment.Version + "\n"; - report += " Version of the API: data\n"; - report += " SDK Package Version: 1.0.0\n"; - - return report; - } - - /// - /// Add Api Key Header. - /// - /// Api Key name. - /// Api Key value. - /// - public void AddApiKey(string key, string value) - { - ApiKey[key] = value; - } - - /// - /// Sets the API key prefix. - /// - /// Api Key name. - /// Api Key value. - public void AddApiKeyPrefix(string key, string value) - { - ApiKeyPrefix[key] = value; - } - - #endregion Methods - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Client/ExceptionFactory.cs b/ACUtils.AXRepository/ArxivarNext/Client/ExceptionFactory.cs deleted file mode 100644 index 2ca3ecb..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Client/ExceptionFactory.cs +++ /dev/null @@ -1,24 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - - -using System; -using RestSharp; - -namespace ACUtils.AXRepository.ArxivarNext.Client -{ - /// - /// A delegate to ExceptionFactory method - /// - /// Method name - /// Response - /// Exceptions - public delegate Exception ExceptionFactory(string methodName, IRestResponse response); -} diff --git a/ACUtils.AXRepository/ArxivarNext/Client/GlobalConfiguration.cs b/ACUtils.AXRepository/ArxivarNext/Client/GlobalConfiguration.cs deleted file mode 100644 index 9246c42..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Client/GlobalConfiguration.cs +++ /dev/null @@ -1,34 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - - -using System; -using System.Reflection; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading; - -namespace ACUtils.AXRepository.ArxivarNext.Client -{ - /// - /// provides a compile-time extension point for globally configuring - /// API Clients. - /// - /// - /// A customized implementation via partial class may reside in another file and may - /// be excluded from automatic generation via a .swagger-codegen-ignore file. - /// - public partial class GlobalConfiguration : Configuration - { - - } -} \ No newline at end of file diff --git a/ACUtils.AXRepository/ArxivarNext/Client/IApiAccessor.cs b/ACUtils.AXRepository/ArxivarNext/Client/IApiAccessor.cs deleted file mode 100644 index d60564d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Client/IApiAccessor.cs +++ /dev/null @@ -1,42 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; - -namespace ACUtils.AXRepository.ArxivarNext.Client -{ - /// - /// Represents configuration aspects required to interact with the API endpoints. - /// - public interface IApiAccessor - { - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - Configuration Configuration {get; set;} - - /// - /// Gets the base path of the API client. - /// - /// The base path - String GetBasePath(); - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - ExceptionFactory ExceptionFactory { get; set; } - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Client/IReadableConfiguration.cs b/ACUtils.AXRepository/ArxivarNext/Client/IReadableConfiguration.cs deleted file mode 100644 index d268a73..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Client/IReadableConfiguration.cs +++ /dev/null @@ -1,94 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - - -using System.Collections.Generic; - -namespace ACUtils.AXRepository.ArxivarNext.Client -{ - /// - /// Represents a readable-only configuration contract. - /// - public interface IReadableConfiguration - { - /// - /// Gets the access token. - /// - /// Access token. - string AccessToken { get; } - - /// - /// Gets the API key. - /// - /// API key. - IDictionary ApiKey { get; } - - /// - /// Gets the API key prefix. - /// - /// API key prefix. - IDictionary ApiKeyPrefix { get; } - - /// - /// Gets the base path. - /// - /// Base path. - string BasePath { get; } - - /// - /// Gets the date time format. - /// - /// Date time foramt. - string DateTimeFormat { get; } - - /// - /// Gets the default header. - /// - /// Default header. - IDictionary DefaultHeader { get; } - - /// - /// Gets the temp folder path. - /// - /// Temp folder path. - string TempFolderPath { get; } - - /// - /// Gets the HTTP connection timeout (in milliseconds) - /// - /// HTTP connection timeout. - int Timeout { get; } - - /// - /// Gets the user agent. - /// - /// User agent. - string UserAgent { get; } - - /// - /// Gets the username. - /// - /// Username. - string Username { get; } - - /// - /// Gets the password. - /// - /// Password. - string Password { get; } - - /// - /// Gets the API key with prefix. - /// - /// API key identifier (authentication scheme). - /// API key with prefix. - string GetApiKeyWithPrefix(string apiKeyIdentifier); - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Client/SwaggerDateConverter.cs b/ACUtils.AXRepository/ArxivarNext/Client/SwaggerDateConverter.cs deleted file mode 100644 index a1a50b1..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Client/SwaggerDateConverter.cs +++ /dev/null @@ -1,30 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using Newtonsoft.Json.Converters; - -namespace ACUtils.AXRepository.ArxivarNext.Client -{ - /// - /// Formatter for 'date' swagger formats ss defined by full-date - RFC3339 - /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types - /// - public class SwaggerDateConverter : IsoDateTimeConverter - { - /// - /// Initializes a new instance of the class. - /// - public SwaggerDateConverter() - { - // full-date = date-fullyear "-" date-month "-" date-mday - DateTimeFormat = "yyyy-MM-dd"; - } - } -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AccessTokenInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AccessTokenInfoDTO.cs deleted file mode 100644 index c995e0f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AccessTokenInfoDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of access token - /// - [DataContract] - public partial class AccessTokenInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Access Token. - /// Refresh Token. - /// Token Type. - /// Properties. - /// Expires. - /// Issued. - /// Authentication Persistent. - /// Claims. - /// Passeord Change. - /// Error Message. - public AccessTokenInfoDTO(string accessToken = default(string), string refreshTokenToken = default(string), string tokenType = default(string), List authPropertyList = default(List), DateTime? expiresUtc = default(DateTime?), DateTime? issuedUtc = default(DateTime?), bool? isPersistent = default(bool?), List claimInfoList = default(List), bool? arxUserMustChangePassword = default(bool?), MessageErrorDTO error = default(MessageErrorDTO)) - { - this.AccessToken = accessToken; - this.RefreshTokenToken = refreshTokenToken; - this.TokenType = tokenType; - this.AuthPropertyList = authPropertyList; - this.ExpiresUtc = expiresUtc; - this.IssuedUtc = issuedUtc; - this.IsPersistent = isPersistent; - this.ClaimInfoList = claimInfoList; - this.ArxUserMustChangePassword = arxUserMustChangePassword; - this.Error = error; - } - - /// - /// Access Token - /// - /// Access Token - [DataMember(Name="accessToken", EmitDefaultValue=false)] - public string AccessToken { get; set; } - - /// - /// Refresh Token - /// - /// Refresh Token - [DataMember(Name="refreshTokenToken", EmitDefaultValue=false)] - public string RefreshTokenToken { get; set; } - - /// - /// Token Type - /// - /// Token Type - [DataMember(Name="tokenType", EmitDefaultValue=false)] - public string TokenType { get; set; } - - /// - /// Properties - /// - /// Properties - [DataMember(Name="authPropertyList", EmitDefaultValue=false)] - public List AuthPropertyList { get; set; } - - /// - /// Expires - /// - /// Expires - [DataMember(Name="expiresUtc", EmitDefaultValue=false)] - public DateTime? ExpiresUtc { get; set; } - - /// - /// Issued - /// - /// Issued - [DataMember(Name="issuedUtc", EmitDefaultValue=false)] - public DateTime? IssuedUtc { get; set; } - - /// - /// Authentication Persistent - /// - /// Authentication Persistent - [DataMember(Name="isPersistent", EmitDefaultValue=false)] - public bool? IsPersistent { get; set; } - - /// - /// Claims - /// - /// Claims - [DataMember(Name="claimInfoList", EmitDefaultValue=false)] - public List ClaimInfoList { get; set; } - - /// - /// Passeord Change - /// - /// Passeord Change - [DataMember(Name="arxUserMustChangePassword", EmitDefaultValue=false)] - public bool? ArxUserMustChangePassword { get; set; } - - /// - /// Error Message - /// - /// Error Message - [DataMember(Name="error", EmitDefaultValue=false)] - public MessageErrorDTO Error { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccessTokenInfoDTO {\n"); - sb.Append(" AccessToken: ").Append(AccessToken).Append("\n"); - sb.Append(" RefreshTokenToken: ").Append(RefreshTokenToken).Append("\n"); - sb.Append(" TokenType: ").Append(TokenType).Append("\n"); - sb.Append(" AuthPropertyList: ").Append(AuthPropertyList).Append("\n"); - sb.Append(" ExpiresUtc: ").Append(ExpiresUtc).Append("\n"); - sb.Append(" IssuedUtc: ").Append(IssuedUtc).Append("\n"); - sb.Append(" IsPersistent: ").Append(IsPersistent).Append("\n"); - sb.Append(" ClaimInfoList: ").Append(ClaimInfoList).Append("\n"); - sb.Append(" ArxUserMustChangePassword: ").Append(ArxUserMustChangePassword).Append("\n"); - sb.Append(" Error: ").Append(Error).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccessTokenInfoDTO); - } - - /// - /// Returns true if AccessTokenInfoDTO instances are equal - /// - /// Instance of AccessTokenInfoDTO to be compared - /// Boolean - public bool Equals(AccessTokenInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.AccessToken == input.AccessToken || - (this.AccessToken != null && - this.AccessToken.Equals(input.AccessToken)) - ) && - ( - this.RefreshTokenToken == input.RefreshTokenToken || - (this.RefreshTokenToken != null && - this.RefreshTokenToken.Equals(input.RefreshTokenToken)) - ) && - ( - this.TokenType == input.TokenType || - (this.TokenType != null && - this.TokenType.Equals(input.TokenType)) - ) && - ( - this.AuthPropertyList == input.AuthPropertyList || - this.AuthPropertyList != null && - this.AuthPropertyList.SequenceEqual(input.AuthPropertyList) - ) && - ( - this.ExpiresUtc == input.ExpiresUtc || - (this.ExpiresUtc != null && - this.ExpiresUtc.Equals(input.ExpiresUtc)) - ) && - ( - this.IssuedUtc == input.IssuedUtc || - (this.IssuedUtc != null && - this.IssuedUtc.Equals(input.IssuedUtc)) - ) && - ( - this.IsPersistent == input.IsPersistent || - (this.IsPersistent != null && - this.IsPersistent.Equals(input.IsPersistent)) - ) && - ( - this.ClaimInfoList == input.ClaimInfoList || - this.ClaimInfoList != null && - this.ClaimInfoList.SequenceEqual(input.ClaimInfoList) - ) && - ( - this.ArxUserMustChangePassword == input.ArxUserMustChangePassword || - (this.ArxUserMustChangePassword != null && - this.ArxUserMustChangePassword.Equals(input.ArxUserMustChangePassword)) - ) && - ( - this.Error == input.Error || - (this.Error != null && - this.Error.Equals(input.Error)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AccessToken != null) - hashCode = hashCode * 59 + this.AccessToken.GetHashCode(); - if (this.RefreshTokenToken != null) - hashCode = hashCode * 59 + this.RefreshTokenToken.GetHashCode(); - if (this.TokenType != null) - hashCode = hashCode * 59 + this.TokenType.GetHashCode(); - if (this.AuthPropertyList != null) - hashCode = hashCode * 59 + this.AuthPropertyList.GetHashCode(); - if (this.ExpiresUtc != null) - hashCode = hashCode * 59 + this.ExpiresUtc.GetHashCode(); - if (this.IssuedUtc != null) - hashCode = hashCode * 59 + this.IssuedUtc.GetHashCode(); - if (this.IsPersistent != null) - hashCode = hashCode * 59 + this.IsPersistent.GetHashCode(); - if (this.ClaimInfoList != null) - hashCode = hashCode * 59 + this.ClaimInfoList.GetHashCode(); - if (this.ArxUserMustChangePassword != null) - hashCode = hashCode * 59 + this.ArxUserMustChangePassword.GetHashCode(); - if (this.Error != null) - hashCode = hashCode * 59 + this.Error.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AccumulationPackageDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AccumulationPackageDTO.cs deleted file mode 100644 index 320ba06..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AccumulationPackageDTO.cs +++ /dev/null @@ -1,318 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// AccumulationPackageDTO - /// - [DataContract] - public partial class AccumulationPackageDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// ixceAccumulationPackageId. - /// description. - /// Possible values: 0: Inserted 1: Created 2: Open 3: Closed 4: InProcessing 5: Error 6: Preserved 7: Reopened . - /// creationDate. - /// lastUpdate. - /// documentTypeSystemId. - /// documentTypeDescription. - /// Possible values: 0: IX 1: IXCE 2: IXCE_V2 3: IX_V2 . - /// businessUnitId. - /// organizationUnitId. - /// classId. - /// ixceRuleId. - public AccumulationPackageDTO(int? id = default(int?), string ixceAccumulationPackageId = default(string), string description = default(string), int? status = default(int?), DateTime? creationDate = default(DateTime?), DateTime? lastUpdate = default(DateTime?), int? documentTypeSystemId = default(int?), string documentTypeDescription = default(string), int? serviceType = default(int?), string businessUnitId = default(string), string organizationUnitId = default(string), string classId = default(string), int? ixceRuleId = default(int?)) - { - this.Id = id; - this.IxceAccumulationPackageId = ixceAccumulationPackageId; - this.Description = description; - this.Status = status; - this.CreationDate = creationDate; - this.LastUpdate = lastUpdate; - this.DocumentTypeSystemId = documentTypeSystemId; - this.DocumentTypeDescription = documentTypeDescription; - this.ServiceType = serviceType; - this.BusinessUnitId = businessUnitId; - this.OrganizationUnitId = organizationUnitId; - this.ClassId = classId; - this.IxceRuleId = ixceRuleId; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or Sets IxceAccumulationPackageId - /// - [DataMember(Name="ixceAccumulationPackageId", EmitDefaultValue=false)] - public string IxceAccumulationPackageId { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 0: Inserted 1: Created 2: Open 3: Closed 4: InProcessing 5: Error 6: Preserved 7: Reopened - /// - /// Possible values: 0: Inserted 1: Created 2: Open 3: Closed 4: InProcessing 5: Error 6: Preserved 7: Reopened - [DataMember(Name="status", EmitDefaultValue=false)] - public int? Status { get; set; } - - /// - /// Gets or Sets CreationDate - /// - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Gets or Sets LastUpdate - /// - [DataMember(Name="lastUpdate", EmitDefaultValue=false)] - public DateTime? LastUpdate { get; set; } - - /// - /// Gets or Sets DocumentTypeSystemId - /// - [DataMember(Name="documentTypeSystemId", EmitDefaultValue=false)] - public int? DocumentTypeSystemId { get; set; } - - /// - /// Gets or Sets DocumentTypeDescription - /// - [DataMember(Name="documentTypeDescription", EmitDefaultValue=false)] - public string DocumentTypeDescription { get; set; } - - /// - /// Possible values: 0: IX 1: IXCE 2: IXCE_V2 3: IX_V2 - /// - /// Possible values: 0: IX 1: IXCE 2: IXCE_V2 3: IX_V2 - [DataMember(Name="serviceType", EmitDefaultValue=false)] - public int? ServiceType { get; set; } - - /// - /// Gets or Sets BusinessUnitId - /// - [DataMember(Name="businessUnitId", EmitDefaultValue=false)] - public string BusinessUnitId { get; set; } - - /// - /// Gets or Sets OrganizationUnitId - /// - [DataMember(Name="organizationUnitId", EmitDefaultValue=false)] - public string OrganizationUnitId { get; set; } - - /// - /// Gets or Sets ClassId - /// - [DataMember(Name="classId", EmitDefaultValue=false)] - public string ClassId { get; set; } - - /// - /// Gets or Sets IxceRuleId - /// - [DataMember(Name="ixceRuleId", EmitDefaultValue=false)] - public int? IxceRuleId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccumulationPackageDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IxceAccumulationPackageId: ").Append(IxceAccumulationPackageId).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" LastUpdate: ").Append(LastUpdate).Append("\n"); - sb.Append(" DocumentTypeSystemId: ").Append(DocumentTypeSystemId).Append("\n"); - sb.Append(" DocumentTypeDescription: ").Append(DocumentTypeDescription).Append("\n"); - sb.Append(" ServiceType: ").Append(ServiceType).Append("\n"); - sb.Append(" BusinessUnitId: ").Append(BusinessUnitId).Append("\n"); - sb.Append(" OrganizationUnitId: ").Append(OrganizationUnitId).Append("\n"); - sb.Append(" ClassId: ").Append(ClassId).Append("\n"); - sb.Append(" IxceRuleId: ").Append(IxceRuleId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccumulationPackageDTO); - } - - /// - /// Returns true if AccumulationPackageDTO instances are equal - /// - /// Instance of AccumulationPackageDTO to be compared - /// Boolean - public bool Equals(AccumulationPackageDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.IxceAccumulationPackageId == input.IxceAccumulationPackageId || - (this.IxceAccumulationPackageId != null && - this.IxceAccumulationPackageId.Equals(input.IxceAccumulationPackageId)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.LastUpdate == input.LastUpdate || - (this.LastUpdate != null && - this.LastUpdate.Equals(input.LastUpdate)) - ) && - ( - this.DocumentTypeSystemId == input.DocumentTypeSystemId || - (this.DocumentTypeSystemId != null && - this.DocumentTypeSystemId.Equals(input.DocumentTypeSystemId)) - ) && - ( - this.DocumentTypeDescription == input.DocumentTypeDescription || - (this.DocumentTypeDescription != null && - this.DocumentTypeDescription.Equals(input.DocumentTypeDescription)) - ) && - ( - this.ServiceType == input.ServiceType || - (this.ServiceType != null && - this.ServiceType.Equals(input.ServiceType)) - ) && - ( - this.BusinessUnitId == input.BusinessUnitId || - (this.BusinessUnitId != null && - this.BusinessUnitId.Equals(input.BusinessUnitId)) - ) && - ( - this.OrganizationUnitId == input.OrganizationUnitId || - (this.OrganizationUnitId != null && - this.OrganizationUnitId.Equals(input.OrganizationUnitId)) - ) && - ( - this.ClassId == input.ClassId || - (this.ClassId != null && - this.ClassId.Equals(input.ClassId)) - ) && - ( - this.IxceRuleId == input.IxceRuleId || - (this.IxceRuleId != null && - this.IxceRuleId.Equals(input.IxceRuleId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.IxceAccumulationPackageId != null) - hashCode = hashCode * 59 + this.IxceAccumulationPackageId.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.LastUpdate != null) - hashCode = hashCode * 59 + this.LastUpdate.GetHashCode(); - if (this.DocumentTypeSystemId != null) - hashCode = hashCode * 59 + this.DocumentTypeSystemId.GetHashCode(); - if (this.DocumentTypeDescription != null) - hashCode = hashCode * 59 + this.DocumentTypeDescription.GetHashCode(); - if (this.ServiceType != null) - hashCode = hashCode * 59 + this.ServiceType.GetHashCode(); - if (this.BusinessUnitId != null) - hashCode = hashCode * 59 + this.BusinessUnitId.GetHashCode(); - if (this.OrganizationUnitId != null) - hashCode = hashCode * 59 + this.OrganizationUnitId.GetHashCode(); - if (this.ClassId != null) - hashCode = hashCode * 59 + this.ClassId.GetHashCode(); - if (this.IxceRuleId != null) - hashCode = hashCode * 59 + this.IxceRuleId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AccumulationPackageDeleteStatus.cs b/ACUtils.AXRepository/ArxivarNext/Model/AccumulationPackageDeleteStatus.cs deleted file mode 100644 index 4142349..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AccumulationPackageDeleteStatus.cs +++ /dev/null @@ -1,157 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// AccumulationPackageDeleteStatus - /// - [DataContract] - public partial class AccumulationPackageDeleteStatus : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Ok 1: Ko 2: DetachRequired 3: DetachPending . - /// errorMessage. - /// documentsCount. - public AccumulationPackageDeleteStatus(int? deleteStatus = default(int?), string errorMessage = default(string), int? documentsCount = default(int?)) - { - this.DeleteStatus = deleteStatus; - this.ErrorMessage = errorMessage; - this.DocumentsCount = documentsCount; - } - - /// - /// Possible values: 0: Ok 1: Ko 2: DetachRequired 3: DetachPending - /// - /// Possible values: 0: Ok 1: Ko 2: DetachRequired 3: DetachPending - [DataMember(Name="deleteStatus", EmitDefaultValue=false)] - public int? DeleteStatus { get; set; } - - /// - /// Gets or Sets ErrorMessage - /// - [DataMember(Name="errorMessage", EmitDefaultValue=false)] - public string ErrorMessage { get; set; } - - /// - /// Gets or Sets DocumentsCount - /// - [DataMember(Name="documentsCount", EmitDefaultValue=false)] - public int? DocumentsCount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccumulationPackageDeleteStatus {\n"); - sb.Append(" DeleteStatus: ").Append(DeleteStatus).Append("\n"); - sb.Append(" ErrorMessage: ").Append(ErrorMessage).Append("\n"); - sb.Append(" DocumentsCount: ").Append(DocumentsCount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccumulationPackageDeleteStatus); - } - - /// - /// Returns true if AccumulationPackageDeleteStatus instances are equal - /// - /// Instance of AccumulationPackageDeleteStatus to be compared - /// Boolean - public bool Equals(AccumulationPackageDeleteStatus input) - { - if (input == null) - return false; - - return - ( - this.DeleteStatus == input.DeleteStatus || - (this.DeleteStatus != null && - this.DeleteStatus.Equals(input.DeleteStatus)) - ) && - ( - this.ErrorMessage == input.ErrorMessage || - (this.ErrorMessage != null && - this.ErrorMessage.Equals(input.ErrorMessage)) - ) && - ( - this.DocumentsCount == input.DocumentsCount || - (this.DocumentsCount != null && - this.DocumentsCount.Equals(input.DocumentsCount)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DeleteStatus != null) - hashCode = hashCode * 59 + this.DeleteStatus.GetHashCode(); - if (this.ErrorMessage != null) - hashCode = hashCode * 59 + this.ErrorMessage.GetHashCode(); - if (this.DocumentsCount != null) - hashCode = hashCode * 59 + this.DocumentsCount.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AccumulationPackageDocumentDeleteStatus.cs b/ACUtils.AXRepository/ArxivarNext/Model/AccumulationPackageDocumentDeleteStatus.cs deleted file mode 100644 index 5edfd87..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AccumulationPackageDocumentDeleteStatus.cs +++ /dev/null @@ -1,141 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// AccumulationPackageDocumentDeleteStatus - /// - [DataContract] - public partial class AccumulationPackageDocumentDeleteStatus : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// errorMessage. - /// Possible values: 0: Ok 1: Ko 2: DetachRequired 3: DetachPending . - public AccumulationPackageDocumentDeleteStatus(string errorMessage = default(string), int? deleteStatus = default(int?)) - { - this.ErrorMessage = errorMessage; - this.DeleteStatus = deleteStatus; - } - - /// - /// Gets or Sets ErrorMessage - /// - [DataMember(Name="errorMessage", EmitDefaultValue=false)] - public string ErrorMessage { get; set; } - - /// - /// Possible values: 0: Ok 1: Ko 2: DetachRequired 3: DetachPending - /// - /// Possible values: 0: Ok 1: Ko 2: DetachRequired 3: DetachPending - [DataMember(Name="deleteStatus", EmitDefaultValue=false)] - public int? DeleteStatus { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccumulationPackageDocumentDeleteStatus {\n"); - sb.Append(" ErrorMessage: ").Append(ErrorMessage).Append("\n"); - sb.Append(" DeleteStatus: ").Append(DeleteStatus).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccumulationPackageDocumentDeleteStatus); - } - - /// - /// Returns true if AccumulationPackageDocumentDeleteStatus instances are equal - /// - /// Instance of AccumulationPackageDocumentDeleteStatus to be compared - /// Boolean - public bool Equals(AccumulationPackageDocumentDeleteStatus input) - { - if (input == null) - return false; - - return - ( - this.ErrorMessage == input.ErrorMessage || - (this.ErrorMessage != null && - this.ErrorMessage.Equals(input.ErrorMessage)) - ) && - ( - this.DeleteStatus == input.DeleteStatus || - (this.DeleteStatus != null && - this.DeleteStatus.Equals(input.DeleteStatus)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ErrorMessage != null) - hashCode = hashCode * 59 + this.ErrorMessage.GetHashCode(); - if (this.DeleteStatus != null) - hashCode = hashCode * 59 + this.DeleteStatus.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AccumulationPackageDocumentValidationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AccumulationPackageDocumentValidationDTO.cs deleted file mode 100644 index 85df6fe..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AccumulationPackageDocumentValidationDTO.cs +++ /dev/null @@ -1,253 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// AccumulationPackageDocumentValidationDTO - /// - [DataContract] - public partial class AccumulationPackageDocumentValidationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// docnumber. - /// creationDate. - /// Possible values: 0: Error 1: Verify . - /// lastUpdate. - /// description. - /// userId. - /// userDescription. - /// accumulationPackageDescription. - public AccumulationPackageDocumentValidationDTO(int? id = default(int?), int? docnumber = default(int?), DateTime? creationDate = default(DateTime?), int? status = default(int?), DateTime? lastUpdate = default(DateTime?), string description = default(string), int? userId = default(int?), string userDescription = default(string), string accumulationPackageDescription = default(string)) - { - this.Id = id; - this.Docnumber = docnumber; - this.CreationDate = creationDate; - this.Status = status; - this.LastUpdate = lastUpdate; - this.Description = description; - this.UserId = userId; - this.UserDescription = userDescription; - this.AccumulationPackageDescription = accumulationPackageDescription; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or Sets Docnumber - /// - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Gets or Sets CreationDate - /// - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Possible values: 0: Error 1: Verify - /// - /// Possible values: 0: Error 1: Verify - [DataMember(Name="status", EmitDefaultValue=false)] - public int? Status { get; set; } - - /// - /// Gets or Sets LastUpdate - /// - [DataMember(Name="lastUpdate", EmitDefaultValue=false)] - public DateTime? LastUpdate { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Gets or Sets UserId - /// - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Gets or Sets UserDescription - /// - [DataMember(Name="userDescription", EmitDefaultValue=false)] - public string UserDescription { get; set; } - - /// - /// Gets or Sets AccumulationPackageDescription - /// - [DataMember(Name="accumulationPackageDescription", EmitDefaultValue=false)] - public string AccumulationPackageDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccumulationPackageDocumentValidationDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" LastUpdate: ").Append(LastUpdate).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" UserDescription: ").Append(UserDescription).Append("\n"); - sb.Append(" AccumulationPackageDescription: ").Append(AccumulationPackageDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccumulationPackageDocumentValidationDTO); - } - - /// - /// Returns true if AccumulationPackageDocumentValidationDTO instances are equal - /// - /// Instance of AccumulationPackageDocumentValidationDTO to be compared - /// Boolean - public bool Equals(AccumulationPackageDocumentValidationDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && - ( - this.LastUpdate == input.LastUpdate || - (this.LastUpdate != null && - this.LastUpdate.Equals(input.LastUpdate)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.UserDescription == input.UserDescription || - (this.UserDescription != null && - this.UserDescription.Equals(input.UserDescription)) - ) && - ( - this.AccumulationPackageDescription == input.AccumulationPackageDescription || - (this.AccumulationPackageDescription != null && - this.AccumulationPackageDescription.Equals(input.AccumulationPackageDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.LastUpdate != null) - hashCode = hashCode * 59 + this.LastUpdate.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.UserDescription != null) - hashCode = hashCode * 59 + this.UserDescription.GetHashCode(); - if (this.AccumulationPackageDescription != null) - hashCode = hashCode * 59 + this.AccumulationPackageDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalConcreteFields.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalConcreteFields.cs deleted file mode 100644 index 7945724..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalConcreteFields.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Additional Fields - /// - [DataContract] - public partial class AdditionalConcreteFields : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Additional fields of Group type. - /// Additional fields of Text type. - /// Additional fields of Boolean type. - /// Additional fields of Matrix type. - /// Additional fields of Combo List type. - /// Additional fields of Datatime type. - /// Additional fields of Multivalues type. - /// Additional fields of Numeric type. - /// Additional fields of Decimal type. - /// Additional fields of Table type. - public AdditionalConcreteFields(List additionalFieldsGroup = default(List), List additionalFieldsString = default(List), List additionalFieldsBoolean = default(List), List additionalFieldsClasse = default(List), List additionalFieldsCombo = default(List), List additionalFieldsDateTime = default(List), List additionalFieldsMultivalue = default(List), List additionalFieldsInt = default(List), List additionalFieldsDouble = default(List), List additionalFieldsTable = default(List)) - { - this.AdditionalFieldsGroup = additionalFieldsGroup; - this.AdditionalFieldsString = additionalFieldsString; - this.AdditionalFieldsBoolean = additionalFieldsBoolean; - this.AdditionalFieldsClasse = additionalFieldsClasse; - this.AdditionalFieldsCombo = additionalFieldsCombo; - this.AdditionalFieldsDateTime = additionalFieldsDateTime; - this.AdditionalFieldsMultivalue = additionalFieldsMultivalue; - this.AdditionalFieldsInt = additionalFieldsInt; - this.AdditionalFieldsDouble = additionalFieldsDouble; - this.AdditionalFieldsTable = additionalFieldsTable; - } - - /// - /// Additional fields of Group type - /// - /// Additional fields of Group type - [DataMember(Name="additionalFieldsGroup", EmitDefaultValue=false)] - public List AdditionalFieldsGroup { get; set; } - - /// - /// Additional fields of Text type - /// - /// Additional fields of Text type - [DataMember(Name="additionalFieldsString", EmitDefaultValue=false)] - public List AdditionalFieldsString { get; set; } - - /// - /// Additional fields of Boolean type - /// - /// Additional fields of Boolean type - [DataMember(Name="additionalFieldsBoolean", EmitDefaultValue=false)] - public List AdditionalFieldsBoolean { get; set; } - - /// - /// Additional fields of Matrix type - /// - /// Additional fields of Matrix type - [DataMember(Name="additionalFieldsClasse", EmitDefaultValue=false)] - public List AdditionalFieldsClasse { get; set; } - - /// - /// Additional fields of Combo List type - /// - /// Additional fields of Combo List type - [DataMember(Name="additionalFieldsCombo", EmitDefaultValue=false)] - public List AdditionalFieldsCombo { get; set; } - - /// - /// Additional fields of Datatime type - /// - /// Additional fields of Datatime type - [DataMember(Name="additionalFieldsDateTime", EmitDefaultValue=false)] - public List AdditionalFieldsDateTime { get; set; } - - /// - /// Additional fields of Multivalues type - /// - /// Additional fields of Multivalues type - [DataMember(Name="additionalFieldsMultivalue", EmitDefaultValue=false)] - public List AdditionalFieldsMultivalue { get; set; } - - /// - /// Additional fields of Numeric type - /// - /// Additional fields of Numeric type - [DataMember(Name="additionalFieldsInt", EmitDefaultValue=false)] - public List AdditionalFieldsInt { get; set; } - - /// - /// Additional fields of Decimal type - /// - /// Additional fields of Decimal type - [DataMember(Name="additionalFieldsDouble", EmitDefaultValue=false)] - public List AdditionalFieldsDouble { get; set; } - - /// - /// Additional fields of Table type - /// - /// Additional fields of Table type - [DataMember(Name="additionalFieldsTable", EmitDefaultValue=false)] - public List AdditionalFieldsTable { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalConcreteFields {\n"); - sb.Append(" AdditionalFieldsGroup: ").Append(AdditionalFieldsGroup).Append("\n"); - sb.Append(" AdditionalFieldsString: ").Append(AdditionalFieldsString).Append("\n"); - sb.Append(" AdditionalFieldsBoolean: ").Append(AdditionalFieldsBoolean).Append("\n"); - sb.Append(" AdditionalFieldsClasse: ").Append(AdditionalFieldsClasse).Append("\n"); - sb.Append(" AdditionalFieldsCombo: ").Append(AdditionalFieldsCombo).Append("\n"); - sb.Append(" AdditionalFieldsDateTime: ").Append(AdditionalFieldsDateTime).Append("\n"); - sb.Append(" AdditionalFieldsMultivalue: ").Append(AdditionalFieldsMultivalue).Append("\n"); - sb.Append(" AdditionalFieldsInt: ").Append(AdditionalFieldsInt).Append("\n"); - sb.Append(" AdditionalFieldsDouble: ").Append(AdditionalFieldsDouble).Append("\n"); - sb.Append(" AdditionalFieldsTable: ").Append(AdditionalFieldsTable).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalConcreteFields); - } - - /// - /// Returns true if AdditionalConcreteFields instances are equal - /// - /// Instance of AdditionalConcreteFields to be compared - /// Boolean - public bool Equals(AdditionalConcreteFields input) - { - if (input == null) - return false; - - return - ( - this.AdditionalFieldsGroup == input.AdditionalFieldsGroup || - this.AdditionalFieldsGroup != null && - this.AdditionalFieldsGroup.SequenceEqual(input.AdditionalFieldsGroup) - ) && - ( - this.AdditionalFieldsString == input.AdditionalFieldsString || - this.AdditionalFieldsString != null && - this.AdditionalFieldsString.SequenceEqual(input.AdditionalFieldsString) - ) && - ( - this.AdditionalFieldsBoolean == input.AdditionalFieldsBoolean || - this.AdditionalFieldsBoolean != null && - this.AdditionalFieldsBoolean.SequenceEqual(input.AdditionalFieldsBoolean) - ) && - ( - this.AdditionalFieldsClasse == input.AdditionalFieldsClasse || - this.AdditionalFieldsClasse != null && - this.AdditionalFieldsClasse.SequenceEqual(input.AdditionalFieldsClasse) - ) && - ( - this.AdditionalFieldsCombo == input.AdditionalFieldsCombo || - this.AdditionalFieldsCombo != null && - this.AdditionalFieldsCombo.SequenceEqual(input.AdditionalFieldsCombo) - ) && - ( - this.AdditionalFieldsDateTime == input.AdditionalFieldsDateTime || - this.AdditionalFieldsDateTime != null && - this.AdditionalFieldsDateTime.SequenceEqual(input.AdditionalFieldsDateTime) - ) && - ( - this.AdditionalFieldsMultivalue == input.AdditionalFieldsMultivalue || - this.AdditionalFieldsMultivalue != null && - this.AdditionalFieldsMultivalue.SequenceEqual(input.AdditionalFieldsMultivalue) - ) && - ( - this.AdditionalFieldsInt == input.AdditionalFieldsInt || - this.AdditionalFieldsInt != null && - this.AdditionalFieldsInt.SequenceEqual(input.AdditionalFieldsInt) - ) && - ( - this.AdditionalFieldsDouble == input.AdditionalFieldsDouble || - this.AdditionalFieldsDouble != null && - this.AdditionalFieldsDouble.SequenceEqual(input.AdditionalFieldsDouble) - ) && - ( - this.AdditionalFieldsTable == input.AdditionalFieldsTable || - this.AdditionalFieldsTable != null && - this.AdditionalFieldsTable.SequenceEqual(input.AdditionalFieldsTable) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AdditionalFieldsGroup != null) - hashCode = hashCode * 59 + this.AdditionalFieldsGroup.GetHashCode(); - if (this.AdditionalFieldsString != null) - hashCode = hashCode * 59 + this.AdditionalFieldsString.GetHashCode(); - if (this.AdditionalFieldsBoolean != null) - hashCode = hashCode * 59 + this.AdditionalFieldsBoolean.GetHashCode(); - if (this.AdditionalFieldsClasse != null) - hashCode = hashCode * 59 + this.AdditionalFieldsClasse.GetHashCode(); - if (this.AdditionalFieldsCombo != null) - hashCode = hashCode * 59 + this.AdditionalFieldsCombo.GetHashCode(); - if (this.AdditionalFieldsDateTime != null) - hashCode = hashCode * 59 + this.AdditionalFieldsDateTime.GetHashCode(); - if (this.AdditionalFieldsMultivalue != null) - hashCode = hashCode * 59 + this.AdditionalFieldsMultivalue.GetHashCode(); - if (this.AdditionalFieldsInt != null) - hashCode = hashCode * 59 + this.AdditionalFieldsInt.GetHashCode(); - if (this.AdditionalFieldsDouble != null) - hashCode = hashCode * 59 + this.AdditionalFieldsDouble.GetHashCode(); - if (this.AdditionalFieldsTable != null) - hashCode = hashCode * 59 + this.AdditionalFieldsTable.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldBooleanDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldBooleanDTO.cs deleted file mode 100644 index eadb07c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldBooleanDTO.cs +++ /dev/null @@ -1,234 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of additional field for Boolean type - /// - [DataContract] - public partial class AdditionalFieldBooleanDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldBooleanDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldBooleanDTO(bool? value = default(bool?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldBooleanDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public bool? Value { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldBooleanDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldBooleanDTO); - } - - /// - /// Returns true if AdditionalFieldBooleanDTO instances are equal - /// - /// Instance of AdditionalFieldBooleanDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldBooleanDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldClasseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldClasseDTO.cs deleted file mode 100644 index 74bec02..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldClasseDTO.cs +++ /dev/null @@ -1,438 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of additional field for Matrix type - /// - [DataContract] - public partial class AdditionalFieldClasseDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldClasseDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - /// List of search items. - /// Document Type for profiling. - /// Identifier of the profiling mask. - /// Identifier of the view. - /// Identifier Mask for view. - /// Identifier View for view. - /// Show all expanded items. - /// Only one item. - /// Columns to show. - /// Show command attachments. - /// Show command note. - /// Show command update profile. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldClasseDTO(List value = default(List), List composedValues = default(List), DocumentTypeBaseDTO documentType = default(DocumentTypeBaseDTO), string insertMaskId = default(string), string viewSearchId = default(string), string maskForViewId = default(string), string viewForViewId = default(string), bool? showExpanded = default(bool?), bool? singleElement = default(bool?), List columns = default(List), bool? showCommandAttachments = default(bool?), bool? showCommandNote = default(bool?), bool? showCommandUpdateProfile = default(bool?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldClasseDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook) - { - this.Value = value; - this.ComposedValues = composedValues; - this.DocumentType = documentType; - this.InsertMaskId = insertMaskId; - this.ViewSearchId = viewSearchId; - this.MaskForViewId = maskForViewId; - this.ViewForViewId = viewForViewId; - this.ShowExpanded = showExpanded; - this.SingleElement = singleElement; - this.Columns = columns; - this.ShowCommandAttachments = showCommandAttachments; - this.ShowCommandNote = showCommandNote; - this.ShowCommandUpdateProfile = showCommandUpdateProfile; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public List Value { get; set; } - - /// - /// List of search items - /// - /// List of search items - [DataMember(Name="composedValues", EmitDefaultValue=false)] - public List ComposedValues { get; set; } - - /// - /// Document Type for profiling - /// - /// Document Type for profiling - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeBaseDTO DocumentType { get; set; } - - /// - /// Identifier of the profiling mask - /// - /// Identifier of the profiling mask - [DataMember(Name="insertMaskId", EmitDefaultValue=false)] - public string InsertMaskId { get; set; } - - /// - /// Identifier of the view - /// - /// Identifier of the view - [DataMember(Name="viewSearchId", EmitDefaultValue=false)] - public string ViewSearchId { get; set; } - - /// - /// Identifier Mask for view - /// - /// Identifier Mask for view - [DataMember(Name="maskForViewId", EmitDefaultValue=false)] - public string MaskForViewId { get; set; } - - /// - /// Identifier View for view - /// - /// Identifier View for view - [DataMember(Name="viewForViewId", EmitDefaultValue=false)] - public string ViewForViewId { get; set; } - - /// - /// Show all expanded items - /// - /// Show all expanded items - [DataMember(Name="showExpanded", EmitDefaultValue=false)] - public bool? ShowExpanded { get; set; } - - /// - /// Only one item - /// - /// Only one item - [DataMember(Name="singleElement", EmitDefaultValue=false)] - public bool? SingleElement { get; set; } - - /// - /// Columns to show - /// - /// Columns to show - [DataMember(Name="columns", EmitDefaultValue=false)] - public List Columns { get; set; } - - /// - /// Show command attachments - /// - /// Show command attachments - [DataMember(Name="showCommandAttachments", EmitDefaultValue=false)] - public bool? ShowCommandAttachments { get; set; } - - /// - /// Show command note - /// - /// Show command note - [DataMember(Name="showCommandNote", EmitDefaultValue=false)] - public bool? ShowCommandNote { get; set; } - - /// - /// Show command update profile - /// - /// Show command update profile - [DataMember(Name="showCommandUpdateProfile", EmitDefaultValue=false)] - public bool? ShowCommandUpdateProfile { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldClasseDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" ComposedValues: ").Append(ComposedValues).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" InsertMaskId: ").Append(InsertMaskId).Append("\n"); - sb.Append(" ViewSearchId: ").Append(ViewSearchId).Append("\n"); - sb.Append(" MaskForViewId: ").Append(MaskForViewId).Append("\n"); - sb.Append(" ViewForViewId: ").Append(ViewForViewId).Append("\n"); - sb.Append(" ShowExpanded: ").Append(ShowExpanded).Append("\n"); - sb.Append(" SingleElement: ").Append(SingleElement).Append("\n"); - sb.Append(" Columns: ").Append(Columns).Append("\n"); - sb.Append(" ShowCommandAttachments: ").Append(ShowCommandAttachments).Append("\n"); - sb.Append(" ShowCommandNote: ").Append(ShowCommandNote).Append("\n"); - sb.Append(" ShowCommandUpdateProfile: ").Append(ShowCommandUpdateProfile).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldClasseDTO); - } - - /// - /// Returns true if AdditionalFieldClasseDTO instances are equal - /// - /// Instance of AdditionalFieldClasseDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldClasseDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - this.Value != null && - this.Value.SequenceEqual(input.Value) - ) && base.Equals(input) && - ( - this.ComposedValues == input.ComposedValues || - this.ComposedValues != null && - this.ComposedValues.SequenceEqual(input.ComposedValues) - ) && base.Equals(input) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && base.Equals(input) && - ( - this.InsertMaskId == input.InsertMaskId || - (this.InsertMaskId != null && - this.InsertMaskId.Equals(input.InsertMaskId)) - ) && base.Equals(input) && - ( - this.ViewSearchId == input.ViewSearchId || - (this.ViewSearchId != null && - this.ViewSearchId.Equals(input.ViewSearchId)) - ) && base.Equals(input) && - ( - this.MaskForViewId == input.MaskForViewId || - (this.MaskForViewId != null && - this.MaskForViewId.Equals(input.MaskForViewId)) - ) && base.Equals(input) && - ( - this.ViewForViewId == input.ViewForViewId || - (this.ViewForViewId != null && - this.ViewForViewId.Equals(input.ViewForViewId)) - ) && base.Equals(input) && - ( - this.ShowExpanded == input.ShowExpanded || - (this.ShowExpanded != null && - this.ShowExpanded.Equals(input.ShowExpanded)) - ) && base.Equals(input) && - ( - this.SingleElement == input.SingleElement || - (this.SingleElement != null && - this.SingleElement.Equals(input.SingleElement)) - ) && base.Equals(input) && - ( - this.Columns == input.Columns || - this.Columns != null && - this.Columns.SequenceEqual(input.Columns) - ) && base.Equals(input) && - ( - this.ShowCommandAttachments == input.ShowCommandAttachments || - (this.ShowCommandAttachments != null && - this.ShowCommandAttachments.Equals(input.ShowCommandAttachments)) - ) && base.Equals(input) && - ( - this.ShowCommandNote == input.ShowCommandNote || - (this.ShowCommandNote != null && - this.ShowCommandNote.Equals(input.ShowCommandNote)) - ) && base.Equals(input) && - ( - this.ShowCommandUpdateProfile == input.ShowCommandUpdateProfile || - (this.ShowCommandUpdateProfile != null && - this.ShowCommandUpdateProfile.Equals(input.ShowCommandUpdateProfile)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.ComposedValues != null) - hashCode = hashCode * 59 + this.ComposedValues.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.InsertMaskId != null) - hashCode = hashCode * 59 + this.InsertMaskId.GetHashCode(); - if (this.ViewSearchId != null) - hashCode = hashCode * 59 + this.ViewSearchId.GetHashCode(); - if (this.MaskForViewId != null) - hashCode = hashCode * 59 + this.MaskForViewId.GetHashCode(); - if (this.ViewForViewId != null) - hashCode = hashCode * 59 + this.ViewForViewId.GetHashCode(); - if (this.ShowExpanded != null) - hashCode = hashCode * 59 + this.ShowExpanded.GetHashCode(); - if (this.SingleElement != null) - hashCode = hashCode * 59 + this.SingleElement.GetHashCode(); - if (this.Columns != null) - hashCode = hashCode * 59 + this.Columns.GetHashCode(); - if (this.ShowCommandAttachments != null) - hashCode = hashCode * 59 + this.ShowCommandAttachments.GetHashCode(); - if (this.ShowCommandNote != null) - hashCode = hashCode * 59 + this.ShowCommandNote.GetHashCode(); - if (this.ShowCommandUpdateProfile != null) - hashCode = hashCode * 59 + this.ShowCommandUpdateProfile.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldComboDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldComboDTO.cs deleted file mode 100644 index 5ab60b9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldComboDTO.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the additional field \"Combo\" - /// - [DataContract] - public partial class AdditionalFieldComboDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldComboDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values ​​limited to the list. - /// Value to display. - /// Value. - /// Maximum number of characters. - /// Maximum number of rows. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldComboDTO(bool? limitToList = default(bool?), string displayValue = default(string), string value = default(string), int? numMaxChar = default(int?), int? numRows = default(int?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldComboDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.LimitToList = limitToList; - this.DisplayValue = displayValue; - this.Value = value; - this.NumMaxChar = numMaxChar; - this.NumRows = numRows; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Possible values ​​limited to the list - /// - /// Possible values ​​limited to the list - [DataMember(Name="limitToList", EmitDefaultValue=false)] - public bool? LimitToList { get; set; } - - /// - /// Value to display - /// - /// Value to display - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Maximum number of rows - /// - /// Maximum number of rows - [DataMember(Name="numRows", EmitDefaultValue=false)] - public int? NumRows { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldComboDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" LimitToList: ").Append(LimitToList).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" NumRows: ").Append(NumRows).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldComboDTO); - } - - /// - /// Returns true if AdditionalFieldComboDTO instances are equal - /// - /// Instance of AdditionalFieldComboDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldComboDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.LimitToList == input.LimitToList || - (this.LimitToList != null && - this.LimitToList.Equals(input.LimitToList)) - ) && base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && base.Equals(input) && - ( - this.NumRows == input.NumRows || - (this.NumRows != null && - this.NumRows.Equals(input.NumRows)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.LimitToList != null) - hashCode = hashCode * 59 + this.LimitToList.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.NumRows != null) - hashCode = hashCode * 59 + this.NumRows.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldConfigurationComboDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldConfigurationComboDTO.cs deleted file mode 100644 index d37afdc..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldConfigurationComboDTO.cs +++ /dev/null @@ -1,319 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the additional field \"Combo\" - /// - [DataContract] - public partial class AdditionalFieldConfigurationComboDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldConfigurationComboDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// List of possible fields. - /// Possible values ​​limited to the list. - /// Value to display. - /// Value. - /// Maximum number of characters. - /// Maximum number of rows. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldConfigurationComboDTO(List values = default(List), bool? limitToList = default(bool?), string displayValue = default(string), string value = default(string), int? numMaxChar = default(int?), int? numRows = default(int?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldConfigurationComboDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Values = values; - this.LimitToList = limitToList; - this.DisplayValue = displayValue; - this.Value = value; - this.NumMaxChar = numMaxChar; - this.NumRows = numRows; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// List of possible fields - /// - /// List of possible fields - [DataMember(Name="values", EmitDefaultValue=false)] - public List Values { get; set; } - - /// - /// Possible values ​​limited to the list - /// - /// Possible values ​​limited to the list - [DataMember(Name="limitToList", EmitDefaultValue=false)] - public bool? LimitToList { get; set; } - - /// - /// Value to display - /// - /// Value to display - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Maximum number of rows - /// - /// Maximum number of rows - [DataMember(Name="numRows", EmitDefaultValue=false)] - public int? NumRows { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldConfigurationComboDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Values: ").Append(Values).Append("\n"); - sb.Append(" LimitToList: ").Append(LimitToList).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" NumRows: ").Append(NumRows).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldConfigurationComboDTO); - } - - /// - /// Returns true if AdditionalFieldConfigurationComboDTO instances are equal - /// - /// Instance of AdditionalFieldConfigurationComboDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldConfigurationComboDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Values == input.Values || - this.Values != null && - this.Values.SequenceEqual(input.Values) - ) && base.Equals(input) && - ( - this.LimitToList == input.LimitToList || - (this.LimitToList != null && - this.LimitToList.Equals(input.LimitToList)) - ) && base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && base.Equals(input) && - ( - this.NumRows == input.NumRows || - (this.NumRows != null && - this.NumRows.Equals(input.NumRows)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Values != null) - hashCode = hashCode * 59 + this.Values.GetHashCode(); - if (this.LimitToList != null) - hashCode = hashCode * 59 + this.LimitToList.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.NumRows != null) - hashCode = hashCode * 59 + this.NumRows.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldDTO.cs deleted file mode 100644 index 9ae9d74..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldDTO.cs +++ /dev/null @@ -1,217 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class if Additional Field - /// - [DataContract] - public partial class AdditionalFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldDTO(int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldDTO); - } - - /// - /// Returns true if AdditionalFieldDTO instances are equal - /// - /// Instance of AdditionalFieldDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldDateTimeDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldDateTimeDTO.cs deleted file mode 100644 index 4891a13..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldDateTimeDTO.cs +++ /dev/null @@ -1,234 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of additional field for Datetime type - /// - [DataContract] - public partial class AdditionalFieldDateTimeDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldDateTimeDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldDateTimeDTO(DateTime? value = default(DateTime?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldDateTimeDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public DateTime? Value { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldDateTimeDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldDateTimeDTO); - } - - /// - /// Returns true if AdditionalFieldDateTimeDTO instances are equal - /// - /// Instance of AdditionalFieldDateTimeDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldDateTimeDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldDoubleDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldDoubleDTO.cs deleted file mode 100644 index 0ca19f3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldDoubleDTO.cs +++ /dev/null @@ -1,251 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of additional field for Decimal type - /// - [DataContract] - public partial class AdditionalFieldDoubleDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldDoubleDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - /// Decimals number. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldDoubleDTO(double? value = default(double?), int? decimals = default(int?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldDoubleDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.Decimals = decimals; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public double? Value { get; set; } - - /// - /// Decimals number - /// - /// Decimals number - [DataMember(Name="decimals", EmitDefaultValue=false)] - public int? Decimals { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldDoubleDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" Decimals: ").Append(Decimals).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldDoubleDTO); - } - - /// - /// Returns true if AdditionalFieldDoubleDTO instances are equal - /// - /// Instance of AdditionalFieldDoubleDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldDoubleDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.Decimals == input.Decimals || - (this.Decimals != null && - this.Decimals.Equals(input.Decimals)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.Decimals != null) - hashCode = hashCode * 59 + this.Decimals.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldGroupDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldGroupDTO.cs deleted file mode 100644 index 0d027f1..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldGroupDTO.cs +++ /dev/null @@ -1,268 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the additional field \"Group\" - /// - [DataContract] - public partial class AdditionalFieldGroupDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldGroupDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - /// Maximum number of characters. - /// Key. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldGroupDTO(string value = default(string), int? numMaxChar = default(int?), int? key = default(int?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldGroupDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.NumMaxChar = numMaxChar; - this.Key = key; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Key - /// - /// Key - [DataMember(Name="key", EmitDefaultValue=false)] - public int? Key { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldGroupDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldGroupDTO); - } - - /// - /// Returns true if AdditionalFieldGroupDTO instances are equal - /// - /// Instance of AdditionalFieldGroupDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldGroupDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && base.Equals(input) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldIntDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldIntDTO.cs deleted file mode 100644 index 0e43e8c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldIntDTO.cs +++ /dev/null @@ -1,234 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Additional fields for Numeric type - /// - [DataContract] - public partial class AdditionalFieldIntDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldIntDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldIntDTO(int? value = default(int?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldIntDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public int? Value { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldIntDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldIntDTO); - } - - /// - /// Returns true if AdditionalFieldIntDTO instances are equal - /// - /// Instance of AdditionalFieldIntDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldIntDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementBooleanDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementBooleanDTO.cs deleted file mode 100644 index 7b6aef1..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementBooleanDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for additional field of type Boolean/CheckBox - /// - [DataContract] - public partial class AdditionalFieldManagementBooleanDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Locked in read-only. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string formula. - public AdditionalFieldManagementBooleanDTO(bool? locked = default(bool?), int? validationType = default(int?), string validationString = default(string)) - { - this.Locked = locked; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Locked in read-only - /// - /// Locked in read-only - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string formula - /// - /// Validation string formula - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementBooleanDTO {\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementBooleanDTO); - } - - /// - /// Returns true if AdditionalFieldManagementBooleanDTO instances are equal - /// - /// Instance of AdditionalFieldManagementBooleanDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementBooleanDTO input) - { - if (input == null) - return false; - - return - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementClasseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementClasseDTO.cs deleted file mode 100644 index c0a9b49..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementClasseDTO.cs +++ /dev/null @@ -1,295 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for additional field of type ClasseBox - /// - [DataContract] - public partial class AdditionalFieldManagementClasseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Cascade 1: Owned . - /// Linked document type. - /// Mask for insert. - /// Mask for view. - /// View for view. - /// View for search. - /// Show expanded. - /// Single element. - /// Show command attachments. - /// Show command note. - /// Show command update profile. - public AdditionalFieldManagementClasseDTO(int? deleteRule = default(int?), DocumentTypeSimpleDTO linkedDocumentType = default(DocumentTypeSimpleDTO), MaskSimpleDTO maskForInsert = default(MaskSimpleDTO), MaskSimpleDTO maskForView = default(MaskSimpleDTO), ViewSimpleDTO viewForView = default(ViewSimpleDTO), ViewSimpleDTO viewForSearch = default(ViewSimpleDTO), bool? showExpanded = default(bool?), bool? singleElement = default(bool?), bool? showCommandAttachments = default(bool?), bool? showCommandNote = default(bool?), bool? showCommandUpdateProfile = default(bool?)) - { - this.DeleteRule = deleteRule; - this.LinkedDocumentType = linkedDocumentType; - this.MaskForInsert = maskForInsert; - this.MaskForView = maskForView; - this.ViewForView = viewForView; - this.ViewForSearch = viewForSearch; - this.ShowExpanded = showExpanded; - this.SingleElement = singleElement; - this.ShowCommandAttachments = showCommandAttachments; - this.ShowCommandNote = showCommandNote; - this.ShowCommandUpdateProfile = showCommandUpdateProfile; - } - - /// - /// Possible values: 0: Cascade 1: Owned - /// - /// Possible values: 0: Cascade 1: Owned - [DataMember(Name="deleteRule", EmitDefaultValue=false)] - public int? DeleteRule { get; set; } - - /// - /// Linked document type - /// - /// Linked document type - [DataMember(Name="linkedDocumentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO LinkedDocumentType { get; set; } - - /// - /// Mask for insert - /// - /// Mask for insert - [DataMember(Name="maskForInsert", EmitDefaultValue=false)] - public MaskSimpleDTO MaskForInsert { get; set; } - - /// - /// Mask for view - /// - /// Mask for view - [DataMember(Name="maskForView", EmitDefaultValue=false)] - public MaskSimpleDTO MaskForView { get; set; } - - /// - /// View for view - /// - /// View for view - [DataMember(Name="viewForView", EmitDefaultValue=false)] - public ViewSimpleDTO ViewForView { get; set; } - - /// - /// View for search - /// - /// View for search - [DataMember(Name="viewForSearch", EmitDefaultValue=false)] - public ViewSimpleDTO ViewForSearch { get; set; } - - /// - /// Show expanded - /// - /// Show expanded - [DataMember(Name="showExpanded", EmitDefaultValue=false)] - public bool? ShowExpanded { get; set; } - - /// - /// Single element - /// - /// Single element - [DataMember(Name="singleElement", EmitDefaultValue=false)] - public bool? SingleElement { get; set; } - - /// - /// Show command attachments - /// - /// Show command attachments - [DataMember(Name="showCommandAttachments", EmitDefaultValue=false)] - public bool? ShowCommandAttachments { get; set; } - - /// - /// Show command note - /// - /// Show command note - [DataMember(Name="showCommandNote", EmitDefaultValue=false)] - public bool? ShowCommandNote { get; set; } - - /// - /// Show command update profile - /// - /// Show command update profile - [DataMember(Name="showCommandUpdateProfile", EmitDefaultValue=false)] - public bool? ShowCommandUpdateProfile { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementClasseDTO {\n"); - sb.Append(" DeleteRule: ").Append(DeleteRule).Append("\n"); - sb.Append(" LinkedDocumentType: ").Append(LinkedDocumentType).Append("\n"); - sb.Append(" MaskForInsert: ").Append(MaskForInsert).Append("\n"); - sb.Append(" MaskForView: ").Append(MaskForView).Append("\n"); - sb.Append(" ViewForView: ").Append(ViewForView).Append("\n"); - sb.Append(" ViewForSearch: ").Append(ViewForSearch).Append("\n"); - sb.Append(" ShowExpanded: ").Append(ShowExpanded).Append("\n"); - sb.Append(" SingleElement: ").Append(SingleElement).Append("\n"); - sb.Append(" ShowCommandAttachments: ").Append(ShowCommandAttachments).Append("\n"); - sb.Append(" ShowCommandNote: ").Append(ShowCommandNote).Append("\n"); - sb.Append(" ShowCommandUpdateProfile: ").Append(ShowCommandUpdateProfile).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementClasseDTO); - } - - /// - /// Returns true if AdditionalFieldManagementClasseDTO instances are equal - /// - /// Instance of AdditionalFieldManagementClasseDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementClasseDTO input) - { - if (input == null) - return false; - - return - ( - this.DeleteRule == input.DeleteRule || - (this.DeleteRule != null && - this.DeleteRule.Equals(input.DeleteRule)) - ) && - ( - this.LinkedDocumentType == input.LinkedDocumentType || - (this.LinkedDocumentType != null && - this.LinkedDocumentType.Equals(input.LinkedDocumentType)) - ) && - ( - this.MaskForInsert == input.MaskForInsert || - (this.MaskForInsert != null && - this.MaskForInsert.Equals(input.MaskForInsert)) - ) && - ( - this.MaskForView == input.MaskForView || - (this.MaskForView != null && - this.MaskForView.Equals(input.MaskForView)) - ) && - ( - this.ViewForView == input.ViewForView || - (this.ViewForView != null && - this.ViewForView.Equals(input.ViewForView)) - ) && - ( - this.ViewForSearch == input.ViewForSearch || - (this.ViewForSearch != null && - this.ViewForSearch.Equals(input.ViewForSearch)) - ) && - ( - this.ShowExpanded == input.ShowExpanded || - (this.ShowExpanded != null && - this.ShowExpanded.Equals(input.ShowExpanded)) - ) && - ( - this.SingleElement == input.SingleElement || - (this.SingleElement != null && - this.SingleElement.Equals(input.SingleElement)) - ) && - ( - this.ShowCommandAttachments == input.ShowCommandAttachments || - (this.ShowCommandAttachments != null && - this.ShowCommandAttachments.Equals(input.ShowCommandAttachments)) - ) && - ( - this.ShowCommandNote == input.ShowCommandNote || - (this.ShowCommandNote != null && - this.ShowCommandNote.Equals(input.ShowCommandNote)) - ) && - ( - this.ShowCommandUpdateProfile == input.ShowCommandUpdateProfile || - (this.ShowCommandUpdateProfile != null && - this.ShowCommandUpdateProfile.Equals(input.ShowCommandUpdateProfile)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DeleteRule != null) - hashCode = hashCode * 59 + this.DeleteRule.GetHashCode(); - if (this.LinkedDocumentType != null) - hashCode = hashCode * 59 + this.LinkedDocumentType.GetHashCode(); - if (this.MaskForInsert != null) - hashCode = hashCode * 59 + this.MaskForInsert.GetHashCode(); - if (this.MaskForView != null) - hashCode = hashCode * 59 + this.MaskForView.GetHashCode(); - if (this.ViewForView != null) - hashCode = hashCode * 59 + this.ViewForView.GetHashCode(); - if (this.ViewForSearch != null) - hashCode = hashCode * 59 + this.ViewForSearch.GetHashCode(); - if (this.ShowExpanded != null) - hashCode = hashCode * 59 + this.ShowExpanded.GetHashCode(); - if (this.SingleElement != null) - hashCode = hashCode * 59 + this.SingleElement.GetHashCode(); - if (this.ShowCommandAttachments != null) - hashCode = hashCode * 59 + this.ShowCommandAttachments.GetHashCode(); - if (this.ShowCommandNote != null) - hashCode = hashCode * 59 + this.ShowCommandNote.GetHashCode(); - if (this.ShowCommandUpdateProfile != null) - hashCode = hashCode * 59 + this.ShowCommandUpdateProfile.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementComboDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementComboDTO.cs deleted file mode 100644 index 1bd8526..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementComboDTO.cs +++ /dev/null @@ -1,363 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for additional field of type ComboBox - /// - [DataContract] - public partial class AdditionalFieldManagementComboDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Data group. - /// Maximum number of characters. - /// Possible values limited to the list. - /// Automatic insert. - /// Autocomplete. - /// Autocomplete character. - /// Possible values: 0: Left 1: Right -1: None . - /// Field locked (readonly). - /// Enable field value encryption. - /// Enable field transcoding. - /// Transcoding: Table name. - /// Transcoding: Field name for code. - /// Transcoding: Field name for description. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (formula/regex). - public AdditionalFieldManagementComboDTO(DataGroupSimpleDTO dataGroup = default(DataGroupSimpleDTO), int? numMaxChar = default(int?), bool? limitToList = default(bool?), bool? autoinsert = default(bool?), bool? autocomplete = default(bool?), string autocompleteCharacter = default(string), int? autocompleteAlign = default(int?), bool? locked = default(bool?), bool? encryption = default(bool?), bool? transcoding = default(bool?), string tableName = default(string), string codeFieldName = default(string), string descriptionFieldName = default(string), int? validationType = default(int?), string validationString = default(string)) - { - this.DataGroup = dataGroup; - this.NumMaxChar = numMaxChar; - this.LimitToList = limitToList; - this.Autoinsert = autoinsert; - this.Autocomplete = autocomplete; - this.AutocompleteCharacter = autocompleteCharacter; - this.AutocompleteAlign = autocompleteAlign; - this.Locked = locked; - this.Encryption = encryption; - this.Transcoding = transcoding; - this.TableName = tableName; - this.CodeFieldName = codeFieldName; - this.DescriptionFieldName = descriptionFieldName; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Data group - /// - /// Data group - [DataMember(Name="dataGroup", EmitDefaultValue=false)] - public DataGroupSimpleDTO DataGroup { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Possible values limited to the list - /// - /// Possible values limited to the list - [DataMember(Name="limitToList", EmitDefaultValue=false)] - public bool? LimitToList { get; set; } - - /// - /// Automatic insert - /// - /// Automatic insert - [DataMember(Name="autoinsert", EmitDefaultValue=false)] - public bool? Autoinsert { get; set; } - - /// - /// Autocomplete - /// - /// Autocomplete - [DataMember(Name="autocomplete", EmitDefaultValue=false)] - public bool? Autocomplete { get; set; } - - /// - /// Autocomplete character - /// - /// Autocomplete character - [DataMember(Name="autocompleteCharacter", EmitDefaultValue=false)] - public string AutocompleteCharacter { get; set; } - - /// - /// Possible values: 0: Left 1: Right -1: None - /// - /// Possible values: 0: Left 1: Right -1: None - [DataMember(Name="autocompleteAlign", EmitDefaultValue=false)] - public int? AutocompleteAlign { get; set; } - - /// - /// Field locked (readonly) - /// - /// Field locked (readonly) - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Enable field value encryption - /// - /// Enable field value encryption - [DataMember(Name="encryption", EmitDefaultValue=false)] - public bool? Encryption { get; set; } - - /// - /// Enable field transcoding - /// - /// Enable field transcoding - [DataMember(Name="transcoding", EmitDefaultValue=false)] - public bool? Transcoding { get; set; } - - /// - /// Transcoding: Table name - /// - /// Transcoding: Table name - [DataMember(Name="tableName", EmitDefaultValue=false)] - public string TableName { get; set; } - - /// - /// Transcoding: Field name for code - /// - /// Transcoding: Field name for code - [DataMember(Name="codeFieldName", EmitDefaultValue=false)] - public string CodeFieldName { get; set; } - - /// - /// Transcoding: Field name for description - /// - /// Transcoding: Field name for description - [DataMember(Name="descriptionFieldName", EmitDefaultValue=false)] - public string DescriptionFieldName { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (formula/regex) - /// - /// Validation string (formula/regex) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementComboDTO {\n"); - sb.Append(" DataGroup: ").Append(DataGroup).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" LimitToList: ").Append(LimitToList).Append("\n"); - sb.Append(" Autoinsert: ").Append(Autoinsert).Append("\n"); - sb.Append(" Autocomplete: ").Append(Autocomplete).Append("\n"); - sb.Append(" AutocompleteCharacter: ").Append(AutocompleteCharacter).Append("\n"); - sb.Append(" AutocompleteAlign: ").Append(AutocompleteAlign).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" Encryption: ").Append(Encryption).Append("\n"); - sb.Append(" Transcoding: ").Append(Transcoding).Append("\n"); - sb.Append(" TableName: ").Append(TableName).Append("\n"); - sb.Append(" CodeFieldName: ").Append(CodeFieldName).Append("\n"); - sb.Append(" DescriptionFieldName: ").Append(DescriptionFieldName).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementComboDTO); - } - - /// - /// Returns true if AdditionalFieldManagementComboDTO instances are equal - /// - /// Instance of AdditionalFieldManagementComboDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementComboDTO input) - { - if (input == null) - return false; - - return - ( - this.DataGroup == input.DataGroup || - (this.DataGroup != null && - this.DataGroup.Equals(input.DataGroup)) - ) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && - ( - this.LimitToList == input.LimitToList || - (this.LimitToList != null && - this.LimitToList.Equals(input.LimitToList)) - ) && - ( - this.Autoinsert == input.Autoinsert || - (this.Autoinsert != null && - this.Autoinsert.Equals(input.Autoinsert)) - ) && - ( - this.Autocomplete == input.Autocomplete || - (this.Autocomplete != null && - this.Autocomplete.Equals(input.Autocomplete)) - ) && - ( - this.AutocompleteCharacter == input.AutocompleteCharacter || - (this.AutocompleteCharacter != null && - this.AutocompleteCharacter.Equals(input.AutocompleteCharacter)) - ) && - ( - this.AutocompleteAlign == input.AutocompleteAlign || - (this.AutocompleteAlign != null && - this.AutocompleteAlign.Equals(input.AutocompleteAlign)) - ) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && - ( - this.Encryption == input.Encryption || - (this.Encryption != null && - this.Encryption.Equals(input.Encryption)) - ) && - ( - this.Transcoding == input.Transcoding || - (this.Transcoding != null && - this.Transcoding.Equals(input.Transcoding)) - ) && - ( - this.TableName == input.TableName || - (this.TableName != null && - this.TableName.Equals(input.TableName)) - ) && - ( - this.CodeFieldName == input.CodeFieldName || - (this.CodeFieldName != null && - this.CodeFieldName.Equals(input.CodeFieldName)) - ) && - ( - this.DescriptionFieldName == input.DescriptionFieldName || - (this.DescriptionFieldName != null && - this.DescriptionFieldName.Equals(input.DescriptionFieldName)) - ) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DataGroup != null) - hashCode = hashCode * 59 + this.DataGroup.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.LimitToList != null) - hashCode = hashCode * 59 + this.LimitToList.GetHashCode(); - if (this.Autoinsert != null) - hashCode = hashCode * 59 + this.Autoinsert.GetHashCode(); - if (this.Autocomplete != null) - hashCode = hashCode * 59 + this.Autocomplete.GetHashCode(); - if (this.AutocompleteCharacter != null) - hashCode = hashCode * 59 + this.AutocompleteCharacter.GetHashCode(); - if (this.AutocompleteAlign != null) - hashCode = hashCode * 59 + this.AutocompleteAlign.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.Encryption != null) - hashCode = hashCode * 59 + this.Encryption.GetHashCode(); - if (this.Transcoding != null) - hashCode = hashCode * 59 + this.Transcoding.GetHashCode(); - if (this.TableName != null) - hashCode = hashCode * 59 + this.TableName.GetHashCode(); - if (this.CodeFieldName != null) - hashCode = hashCode * 59 + this.CodeFieldName.GetHashCode(); - if (this.DescriptionFieldName != null) - hashCode = hashCode * 59 + this.DescriptionFieldName.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementDateTimeDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementDateTimeDTO.cs deleted file mode 100644 index 44911bd..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementDateTimeDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for additional field of type DateBox - /// - [DataContract] - public partial class AdditionalFieldManagementDateTimeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Autocomplete. - /// Autocomplete character. - /// Possible values: 0: Left 1: Right -1: None . - /// Field locked (readonly). - /// Enable field value encryption. - /// Enable field transcoding. - /// Transcoding: Field name for code. - /// Transcoding: Field name for description. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (formula/regex). - public AdditionalFieldManagementDateTimeDTO(bool? autocomplete = default(bool?), string autocompleteCharacter = default(string), int? autocompleteAlign = default(int?), bool? locked = default(bool?), bool? transcoding = default(bool?), string tableName = default(string), string codeFieldName = default(string), string descriptionFieldName = default(string), int? validationType = default(int?), string validationString = default(string)) - { - this.Autocomplete = autocomplete; - this.AutocompleteCharacter = autocompleteCharacter; - this.AutocompleteAlign = autocompleteAlign; - this.Locked = locked; - this.Transcoding = transcoding; - this.TableName = tableName; - this.CodeFieldName = codeFieldName; - this.DescriptionFieldName = descriptionFieldName; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Autocomplete - /// - /// Autocomplete - [DataMember(Name="autocomplete", EmitDefaultValue=false)] - public bool? Autocomplete { get; set; } - - /// - /// Autocomplete character - /// - /// Autocomplete character - [DataMember(Name="autocompleteCharacter", EmitDefaultValue=false)] - public string AutocompleteCharacter { get; set; } - - /// - /// Possible values: 0: Left 1: Right -1: None - /// - /// Possible values: 0: Left 1: Right -1: None - [DataMember(Name="autocompleteAlign", EmitDefaultValue=false)] - public int? AutocompleteAlign { get; set; } - - /// - /// Field locked (readonly) - /// - /// Field locked (readonly) - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Enable field value encryption - /// - /// Enable field value encryption - [DataMember(Name="transcoding", EmitDefaultValue=false)] - public bool? Transcoding { get; set; } - - /// - /// Enable field transcoding - /// - /// Enable field transcoding - [DataMember(Name="tableName", EmitDefaultValue=false)] - public string TableName { get; set; } - - /// - /// Transcoding: Field name for code - /// - /// Transcoding: Field name for code - [DataMember(Name="codeFieldName", EmitDefaultValue=false)] - public string CodeFieldName { get; set; } - - /// - /// Transcoding: Field name for description - /// - /// Transcoding: Field name for description - [DataMember(Name="descriptionFieldName", EmitDefaultValue=false)] - public string DescriptionFieldName { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (formula/regex) - /// - /// Validation string (formula/regex) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementDateTimeDTO {\n"); - sb.Append(" Autocomplete: ").Append(Autocomplete).Append("\n"); - sb.Append(" AutocompleteCharacter: ").Append(AutocompleteCharacter).Append("\n"); - sb.Append(" AutocompleteAlign: ").Append(AutocompleteAlign).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" Transcoding: ").Append(Transcoding).Append("\n"); - sb.Append(" TableName: ").Append(TableName).Append("\n"); - sb.Append(" CodeFieldName: ").Append(CodeFieldName).Append("\n"); - sb.Append(" DescriptionFieldName: ").Append(DescriptionFieldName).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementDateTimeDTO); - } - - /// - /// Returns true if AdditionalFieldManagementDateTimeDTO instances are equal - /// - /// Instance of AdditionalFieldManagementDateTimeDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementDateTimeDTO input) - { - if (input == null) - return false; - - return - ( - this.Autocomplete == input.Autocomplete || - (this.Autocomplete != null && - this.Autocomplete.Equals(input.Autocomplete)) - ) && - ( - this.AutocompleteCharacter == input.AutocompleteCharacter || - (this.AutocompleteCharacter != null && - this.AutocompleteCharacter.Equals(input.AutocompleteCharacter)) - ) && - ( - this.AutocompleteAlign == input.AutocompleteAlign || - (this.AutocompleteAlign != null && - this.AutocompleteAlign.Equals(input.AutocompleteAlign)) - ) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && - ( - this.Transcoding == input.Transcoding || - (this.Transcoding != null && - this.Transcoding.Equals(input.Transcoding)) - ) && - ( - this.TableName == input.TableName || - (this.TableName != null && - this.TableName.Equals(input.TableName)) - ) && - ( - this.CodeFieldName == input.CodeFieldName || - (this.CodeFieldName != null && - this.CodeFieldName.Equals(input.CodeFieldName)) - ) && - ( - this.DescriptionFieldName == input.DescriptionFieldName || - (this.DescriptionFieldName != null && - this.DescriptionFieldName.Equals(input.DescriptionFieldName)) - ) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Autocomplete != null) - hashCode = hashCode * 59 + this.Autocomplete.GetHashCode(); - if (this.AutocompleteCharacter != null) - hashCode = hashCode * 59 + this.AutocompleteCharacter.GetHashCode(); - if (this.AutocompleteAlign != null) - hashCode = hashCode * 59 + this.AutocompleteAlign.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.Transcoding != null) - hashCode = hashCode * 59 + this.Transcoding.GetHashCode(); - if (this.TableName != null) - hashCode = hashCode * 59 + this.TableName.GetHashCode(); - if (this.CodeFieldName != null) - hashCode = hashCode * 59 + this.CodeFieldName.GetHashCode(); - if (this.DescriptionFieldName != null) - hashCode = hashCode * 59 + this.DescriptionFieldName.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementMultivalueDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementMultivalueDTO.cs deleted file mode 100644 index 1553ce6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementMultivalueDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for additional field of type MultiValue - /// - [DataContract] - public partial class AdditionalFieldManagementMultivalueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Data group. - /// Maximum number of characters. - /// Possible values​limited to the list. - /// Automatic insert. - /// Autocomplete. - /// Autocomplete character. - /// Possible values: 0: Left 1: Right -1: None . - /// Field locked (readonly). - public AdditionalFieldManagementMultivalueDTO(DataGroupSimpleDTO dataGroup = default(DataGroupSimpleDTO), int? numMaxChar = default(int?), bool? limitToList = default(bool?), bool? autoinsert = default(bool?), bool? autocomplete = default(bool?), string autocompleteCharacter = default(string), int? autocompleteAlign = default(int?), bool? locked = default(bool?)) - { - this.DataGroup = dataGroup; - this.NumMaxChar = numMaxChar; - this.LimitToList = limitToList; - this.Autoinsert = autoinsert; - this.Autocomplete = autocomplete; - this.AutocompleteCharacter = autocompleteCharacter; - this.AutocompleteAlign = autocompleteAlign; - this.Locked = locked; - } - - /// - /// Data group - /// - /// Data group - [DataMember(Name="dataGroup", EmitDefaultValue=false)] - public DataGroupSimpleDTO DataGroup { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Possible values​limited to the list - /// - /// Possible values​limited to the list - [DataMember(Name="limitToList", EmitDefaultValue=false)] - public bool? LimitToList { get; set; } - - /// - /// Automatic insert - /// - /// Automatic insert - [DataMember(Name="autoinsert", EmitDefaultValue=false)] - public bool? Autoinsert { get; set; } - - /// - /// Autocomplete - /// - /// Autocomplete - [DataMember(Name="autocomplete", EmitDefaultValue=false)] - public bool? Autocomplete { get; set; } - - /// - /// Autocomplete character - /// - /// Autocomplete character - [DataMember(Name="autocompleteCharacter", EmitDefaultValue=false)] - public string AutocompleteCharacter { get; set; } - - /// - /// Possible values: 0: Left 1: Right -1: None - /// - /// Possible values: 0: Left 1: Right -1: None - [DataMember(Name="autocompleteAlign", EmitDefaultValue=false)] - public int? AutocompleteAlign { get; set; } - - /// - /// Field locked (readonly) - /// - /// Field locked (readonly) - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementMultivalueDTO {\n"); - sb.Append(" DataGroup: ").Append(DataGroup).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" LimitToList: ").Append(LimitToList).Append("\n"); - sb.Append(" Autoinsert: ").Append(Autoinsert).Append("\n"); - sb.Append(" Autocomplete: ").Append(Autocomplete).Append("\n"); - sb.Append(" AutocompleteCharacter: ").Append(AutocompleteCharacter).Append("\n"); - sb.Append(" AutocompleteAlign: ").Append(AutocompleteAlign).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementMultivalueDTO); - } - - /// - /// Returns true if AdditionalFieldManagementMultivalueDTO instances are equal - /// - /// Instance of AdditionalFieldManagementMultivalueDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementMultivalueDTO input) - { - if (input == null) - return false; - - return - ( - this.DataGroup == input.DataGroup || - (this.DataGroup != null && - this.DataGroup.Equals(input.DataGroup)) - ) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && - ( - this.LimitToList == input.LimitToList || - (this.LimitToList != null && - this.LimitToList.Equals(input.LimitToList)) - ) && - ( - this.Autoinsert == input.Autoinsert || - (this.Autoinsert != null && - this.Autoinsert.Equals(input.Autoinsert)) - ) && - ( - this.Autocomplete == input.Autocomplete || - (this.Autocomplete != null && - this.Autocomplete.Equals(input.Autocomplete)) - ) && - ( - this.AutocompleteCharacter == input.AutocompleteCharacter || - (this.AutocompleteCharacter != null && - this.AutocompleteCharacter.Equals(input.AutocompleteCharacter)) - ) && - ( - this.AutocompleteAlign == input.AutocompleteAlign || - (this.AutocompleteAlign != null && - this.AutocompleteAlign.Equals(input.AutocompleteAlign)) - ) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DataGroup != null) - hashCode = hashCode * 59 + this.DataGroup.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.LimitToList != null) - hashCode = hashCode * 59 + this.LimitToList.GetHashCode(); - if (this.Autoinsert != null) - hashCode = hashCode * 59 + this.Autoinsert.GetHashCode(); - if (this.Autocomplete != null) - hashCode = hashCode * 59 + this.Autocomplete.GetHashCode(); - if (this.AutocompleteCharacter != null) - hashCode = hashCode * 59 + this.AutocompleteCharacter.GetHashCode(); - if (this.AutocompleteAlign != null) - hashCode = hashCode * 59 + this.AutocompleteAlign.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementNumericDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementNumericDTO.cs deleted file mode 100644 index e201950..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementNumericDTO.cs +++ /dev/null @@ -1,295 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for additional field of type Numeric - /// - [DataContract] - public partial class AdditionalFieldManagementNumericDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Decimals number. - /// Autocomplete. - /// Autocomplete character. - /// Possible values: 0: Left 1: Right -1: None . - /// Si definisce se il campo è bloccato per l'inserimento di un valore. - /// Enable field transcoding. - /// Transcoding: Table name. - /// Transcoding: Field name for code. - /// Transcoding: Field name for description. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (formula/regex). - public AdditionalFieldManagementNumericDTO(int? decimals = default(int?), bool? autocomplete = default(bool?), string autocompleteCharacter = default(string), int? autocompleteAlign = default(int?), bool? locked = default(bool?), bool? transcoding = default(bool?), string tableName = default(string), string codeFieldName = default(string), string descriptionFieldName = default(string), int? validationType = default(int?), string validationString = default(string)) - { - this.Decimals = decimals; - this.Autocomplete = autocomplete; - this.AutocompleteCharacter = autocompleteCharacter; - this.AutocompleteAlign = autocompleteAlign; - this.Locked = locked; - this.Transcoding = transcoding; - this.TableName = tableName; - this.CodeFieldName = codeFieldName; - this.DescriptionFieldName = descriptionFieldName; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Decimals number - /// - /// Decimals number - [DataMember(Name="decimals", EmitDefaultValue=false)] - public int? Decimals { get; set; } - - /// - /// Autocomplete - /// - /// Autocomplete - [DataMember(Name="autocomplete", EmitDefaultValue=false)] - public bool? Autocomplete { get; set; } - - /// - /// Autocomplete character - /// - /// Autocomplete character - [DataMember(Name="autocompleteCharacter", EmitDefaultValue=false)] - public string AutocompleteCharacter { get; set; } - - /// - /// Possible values: 0: Left 1: Right -1: None - /// - /// Possible values: 0: Left 1: Right -1: None - [DataMember(Name="autocompleteAlign", EmitDefaultValue=false)] - public int? AutocompleteAlign { get; set; } - - /// - /// Si definisce se il campo è bloccato per l'inserimento di un valore - /// - /// Si definisce se il campo è bloccato per l'inserimento di un valore - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Enable field transcoding - /// - /// Enable field transcoding - [DataMember(Name="transcoding", EmitDefaultValue=false)] - public bool? Transcoding { get; set; } - - /// - /// Transcoding: Table name - /// - /// Transcoding: Table name - [DataMember(Name="tableName", EmitDefaultValue=false)] - public string TableName { get; set; } - - /// - /// Transcoding: Field name for code - /// - /// Transcoding: Field name for code - [DataMember(Name="codeFieldName", EmitDefaultValue=false)] - public string CodeFieldName { get; set; } - - /// - /// Transcoding: Field name for description - /// - /// Transcoding: Field name for description - [DataMember(Name="descriptionFieldName", EmitDefaultValue=false)] - public string DescriptionFieldName { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (formula/regex) - /// - /// Validation string (formula/regex) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementNumericDTO {\n"); - sb.Append(" Decimals: ").Append(Decimals).Append("\n"); - sb.Append(" Autocomplete: ").Append(Autocomplete).Append("\n"); - sb.Append(" AutocompleteCharacter: ").Append(AutocompleteCharacter).Append("\n"); - sb.Append(" AutocompleteAlign: ").Append(AutocompleteAlign).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" Transcoding: ").Append(Transcoding).Append("\n"); - sb.Append(" TableName: ").Append(TableName).Append("\n"); - sb.Append(" CodeFieldName: ").Append(CodeFieldName).Append("\n"); - sb.Append(" DescriptionFieldName: ").Append(DescriptionFieldName).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementNumericDTO); - } - - /// - /// Returns true if AdditionalFieldManagementNumericDTO instances are equal - /// - /// Instance of AdditionalFieldManagementNumericDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementNumericDTO input) - { - if (input == null) - return false; - - return - ( - this.Decimals == input.Decimals || - (this.Decimals != null && - this.Decimals.Equals(input.Decimals)) - ) && - ( - this.Autocomplete == input.Autocomplete || - (this.Autocomplete != null && - this.Autocomplete.Equals(input.Autocomplete)) - ) && - ( - this.AutocompleteCharacter == input.AutocompleteCharacter || - (this.AutocompleteCharacter != null && - this.AutocompleteCharacter.Equals(input.AutocompleteCharacter)) - ) && - ( - this.AutocompleteAlign == input.AutocompleteAlign || - (this.AutocompleteAlign != null && - this.AutocompleteAlign.Equals(input.AutocompleteAlign)) - ) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && - ( - this.Transcoding == input.Transcoding || - (this.Transcoding != null && - this.Transcoding.Equals(input.Transcoding)) - ) && - ( - this.TableName == input.TableName || - (this.TableName != null && - this.TableName.Equals(input.TableName)) - ) && - ( - this.CodeFieldName == input.CodeFieldName || - (this.CodeFieldName != null && - this.CodeFieldName.Equals(input.CodeFieldName)) - ) && - ( - this.DescriptionFieldName == input.DescriptionFieldName || - (this.DescriptionFieldName != null && - this.DescriptionFieldName.Equals(input.DescriptionFieldName)) - ) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Decimals != null) - hashCode = hashCode * 59 + this.Decimals.GetHashCode(); - if (this.Autocomplete != null) - hashCode = hashCode * 59 + this.Autocomplete.GetHashCode(); - if (this.AutocompleteCharacter != null) - hashCode = hashCode * 59 + this.AutocompleteCharacter.GetHashCode(); - if (this.AutocompleteAlign != null) - hashCode = hashCode * 59 + this.AutocompleteAlign.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.Transcoding != null) - hashCode = hashCode * 59 + this.Transcoding.GetHashCode(); - if (this.TableName != null) - hashCode = hashCode * 59 + this.TableName.GetHashCode(); - if (this.CodeFieldName != null) - hashCode = hashCode * 59 + this.CodeFieldName.GetHashCode(); - if (this.DescriptionFieldName != null) - hashCode = hashCode * 59 + this.DescriptionFieldName.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementStringDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementStringDTO.cs deleted file mode 100644 index 0751543..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementStringDTO.cs +++ /dev/null @@ -1,329 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for additional field of type TextBox - /// - [DataContract] - public partial class AdditionalFieldManagementStringDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Maximum number of characters. - /// Maximum number of rows. - /// Autocomplete. - /// Autocomplete character. - /// Possible values: 0: Left 1: Right -1: None . - /// Field locked (readonly). - /// Enable field value encryption. - /// Enable field transcoding. - /// Transcoding: Table name. - /// Transcoding: Field name for code. - /// Transcoding: Field name for description. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (formula/regex). - public AdditionalFieldManagementStringDTO(int? numMaxChar = default(int?), int? numRows = default(int?), bool? autocomplete = default(bool?), string autocompleteCharacter = default(string), int? autocompleteAlign = default(int?), bool? locked = default(bool?), bool? encryption = default(bool?), bool? transcoding = default(bool?), string tableName = default(string), string codeFieldName = default(string), string descriptionFieldName = default(string), int? validationType = default(int?), string validationString = default(string)) - { - this.NumMaxChar = numMaxChar; - this.NumRows = numRows; - this.Autocomplete = autocomplete; - this.AutocompleteCharacter = autocompleteCharacter; - this.AutocompleteAlign = autocompleteAlign; - this.Locked = locked; - this.Encryption = encryption; - this.Transcoding = transcoding; - this.TableName = tableName; - this.CodeFieldName = codeFieldName; - this.DescriptionFieldName = descriptionFieldName; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Maximum number of rows - /// - /// Maximum number of rows - [DataMember(Name="numRows", EmitDefaultValue=false)] - public int? NumRows { get; set; } - - /// - /// Autocomplete - /// - /// Autocomplete - [DataMember(Name="autocomplete", EmitDefaultValue=false)] - public bool? Autocomplete { get; set; } - - /// - /// Autocomplete character - /// - /// Autocomplete character - [DataMember(Name="autocompleteCharacter", EmitDefaultValue=false)] - public string AutocompleteCharacter { get; set; } - - /// - /// Possible values: 0: Left 1: Right -1: None - /// - /// Possible values: 0: Left 1: Right -1: None - [DataMember(Name="autocompleteAlign", EmitDefaultValue=false)] - public int? AutocompleteAlign { get; set; } - - /// - /// Field locked (readonly) - /// - /// Field locked (readonly) - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Enable field value encryption - /// - /// Enable field value encryption - [DataMember(Name="encryption", EmitDefaultValue=false)] - public bool? Encryption { get; set; } - - /// - /// Enable field transcoding - /// - /// Enable field transcoding - [DataMember(Name="transcoding", EmitDefaultValue=false)] - public bool? Transcoding { get; set; } - - /// - /// Transcoding: Table name - /// - /// Transcoding: Table name - [DataMember(Name="tableName", EmitDefaultValue=false)] - public string TableName { get; set; } - - /// - /// Transcoding: Field name for code - /// - /// Transcoding: Field name for code - [DataMember(Name="codeFieldName", EmitDefaultValue=false)] - public string CodeFieldName { get; set; } - - /// - /// Transcoding: Field name for description - /// - /// Transcoding: Field name for description - [DataMember(Name="descriptionFieldName", EmitDefaultValue=false)] - public string DescriptionFieldName { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (formula/regex) - /// - /// Validation string (formula/regex) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementStringDTO {\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" NumRows: ").Append(NumRows).Append("\n"); - sb.Append(" Autocomplete: ").Append(Autocomplete).Append("\n"); - sb.Append(" AutocompleteCharacter: ").Append(AutocompleteCharacter).Append("\n"); - sb.Append(" AutocompleteAlign: ").Append(AutocompleteAlign).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" Encryption: ").Append(Encryption).Append("\n"); - sb.Append(" Transcoding: ").Append(Transcoding).Append("\n"); - sb.Append(" TableName: ").Append(TableName).Append("\n"); - sb.Append(" CodeFieldName: ").Append(CodeFieldName).Append("\n"); - sb.Append(" DescriptionFieldName: ").Append(DescriptionFieldName).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementStringDTO); - } - - /// - /// Returns true if AdditionalFieldManagementStringDTO instances are equal - /// - /// Instance of AdditionalFieldManagementStringDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementStringDTO input) - { - if (input == null) - return false; - - return - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && - ( - this.NumRows == input.NumRows || - (this.NumRows != null && - this.NumRows.Equals(input.NumRows)) - ) && - ( - this.Autocomplete == input.Autocomplete || - (this.Autocomplete != null && - this.Autocomplete.Equals(input.Autocomplete)) - ) && - ( - this.AutocompleteCharacter == input.AutocompleteCharacter || - (this.AutocompleteCharacter != null && - this.AutocompleteCharacter.Equals(input.AutocompleteCharacter)) - ) && - ( - this.AutocompleteAlign == input.AutocompleteAlign || - (this.AutocompleteAlign != null && - this.AutocompleteAlign.Equals(input.AutocompleteAlign)) - ) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && - ( - this.Encryption == input.Encryption || - (this.Encryption != null && - this.Encryption.Equals(input.Encryption)) - ) && - ( - this.Transcoding == input.Transcoding || - (this.Transcoding != null && - this.Transcoding.Equals(input.Transcoding)) - ) && - ( - this.TableName == input.TableName || - (this.TableName != null && - this.TableName.Equals(input.TableName)) - ) && - ( - this.CodeFieldName == input.CodeFieldName || - (this.CodeFieldName != null && - this.CodeFieldName.Equals(input.CodeFieldName)) - ) && - ( - this.DescriptionFieldName == input.DescriptionFieldName || - (this.DescriptionFieldName != null && - this.DescriptionFieldName.Equals(input.DescriptionFieldName)) - ) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.NumRows != null) - hashCode = hashCode * 59 + this.NumRows.GetHashCode(); - if (this.Autocomplete != null) - hashCode = hashCode * 59 + this.Autocomplete.GetHashCode(); - if (this.AutocompleteCharacter != null) - hashCode = hashCode * 59 + this.AutocompleteCharacter.GetHashCode(); - if (this.AutocompleteAlign != null) - hashCode = hashCode * 59 + this.AutocompleteAlign.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.Encryption != null) - hashCode = hashCode * 59 + this.Encryption.GetHashCode(); - if (this.Transcoding != null) - hashCode = hashCode * 59 + this.Transcoding.GetHashCode(); - if (this.TableName != null) - hashCode = hashCode * 59 + this.TableName.GetHashCode(); - if (this.CodeFieldName != null) - hashCode = hashCode * 59 + this.CodeFieldName.GetHashCode(); - if (this.DescriptionFieldName != null) - hashCode = hashCode * 59 + this.DescriptionFieldName.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementTableDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementTableDTO.cs deleted file mode 100644 index 74502a5..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementTableDTO.cs +++ /dev/null @@ -1,346 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for additional field of type TableBox - /// - [DataContract] - public partial class AdditionalFieldManagementTableDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Data group. - /// Maximum number of characters. - /// Possible values limited to the list. - /// Autocomplete. - /// Autocomplete character. - /// Possible values: 0: Left 1: Right -1: None . - /// Field locked (readonly). - /// Enable field value encryption. - /// Enable field transcoding. - /// Transcoding: Table name. - /// Transcoding: Field name for code. - /// Transcoding: Field name for description. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (formula/regex). - public AdditionalFieldManagementTableDTO(DataGroupSimpleDTO dataGroup = default(DataGroupSimpleDTO), int? numMaxChar = default(int?), bool? limitToList = default(bool?), bool? autocomplete = default(bool?), string autocompleteCharacter = default(string), int? autocompleteAlign = default(int?), bool? locked = default(bool?), bool? encryption = default(bool?), bool? transcoding = default(bool?), string tableName = default(string), string codeFieldName = default(string), string descriptionFieldName = default(string), int? validationType = default(int?), string validationString = default(string)) - { - this.DataGroup = dataGroup; - this.NumMaxChar = numMaxChar; - this.LimitToList = limitToList; - this.Autocomplete = autocomplete; - this.AutocompleteCharacter = autocompleteCharacter; - this.AutocompleteAlign = autocompleteAlign; - this.Locked = locked; - this.Encryption = encryption; - this.Transcoding = transcoding; - this.TableName = tableName; - this.CodeFieldName = codeFieldName; - this.DescriptionFieldName = descriptionFieldName; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Data group - /// - /// Data group - [DataMember(Name="dataGroup", EmitDefaultValue=false)] - public DataGroupSimpleDTO DataGroup { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Possible values limited to the list - /// - /// Possible values limited to the list - [DataMember(Name="limitToList", EmitDefaultValue=false)] - public bool? LimitToList { get; set; } - - /// - /// Autocomplete - /// - /// Autocomplete - [DataMember(Name="autocomplete", EmitDefaultValue=false)] - public bool? Autocomplete { get; set; } - - /// - /// Autocomplete character - /// - /// Autocomplete character - [DataMember(Name="autocompleteCharacter", EmitDefaultValue=false)] - public string AutocompleteCharacter { get; set; } - - /// - /// Possible values: 0: Left 1: Right -1: None - /// - /// Possible values: 0: Left 1: Right -1: None - [DataMember(Name="autocompleteAlign", EmitDefaultValue=false)] - public int? AutocompleteAlign { get; set; } - - /// - /// Field locked (readonly) - /// - /// Field locked (readonly) - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Enable field value encryption - /// - /// Enable field value encryption - [DataMember(Name="encryption", EmitDefaultValue=false)] - public bool? Encryption { get; set; } - - /// - /// Enable field transcoding - /// - /// Enable field transcoding - [DataMember(Name="transcoding", EmitDefaultValue=false)] - public bool? Transcoding { get; set; } - - /// - /// Transcoding: Table name - /// - /// Transcoding: Table name - [DataMember(Name="tableName", EmitDefaultValue=false)] - public string TableName { get; set; } - - /// - /// Transcoding: Field name for code - /// - /// Transcoding: Field name for code - [DataMember(Name="codeFieldName", EmitDefaultValue=false)] - public string CodeFieldName { get; set; } - - /// - /// Transcoding: Field name for description - /// - /// Transcoding: Field name for description - [DataMember(Name="descriptionFieldName", EmitDefaultValue=false)] - public string DescriptionFieldName { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (formula/regex) - /// - /// Validation string (formula/regex) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementTableDTO {\n"); - sb.Append(" DataGroup: ").Append(DataGroup).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" LimitToList: ").Append(LimitToList).Append("\n"); - sb.Append(" Autocomplete: ").Append(Autocomplete).Append("\n"); - sb.Append(" AutocompleteCharacter: ").Append(AutocompleteCharacter).Append("\n"); - sb.Append(" AutocompleteAlign: ").Append(AutocompleteAlign).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" Encryption: ").Append(Encryption).Append("\n"); - sb.Append(" Transcoding: ").Append(Transcoding).Append("\n"); - sb.Append(" TableName: ").Append(TableName).Append("\n"); - sb.Append(" CodeFieldName: ").Append(CodeFieldName).Append("\n"); - sb.Append(" DescriptionFieldName: ").Append(DescriptionFieldName).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementTableDTO); - } - - /// - /// Returns true if AdditionalFieldManagementTableDTO instances are equal - /// - /// Instance of AdditionalFieldManagementTableDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementTableDTO input) - { - if (input == null) - return false; - - return - ( - this.DataGroup == input.DataGroup || - (this.DataGroup != null && - this.DataGroup.Equals(input.DataGroup)) - ) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && - ( - this.LimitToList == input.LimitToList || - (this.LimitToList != null && - this.LimitToList.Equals(input.LimitToList)) - ) && - ( - this.Autocomplete == input.Autocomplete || - (this.Autocomplete != null && - this.Autocomplete.Equals(input.Autocomplete)) - ) && - ( - this.AutocompleteCharacter == input.AutocompleteCharacter || - (this.AutocompleteCharacter != null && - this.AutocompleteCharacter.Equals(input.AutocompleteCharacter)) - ) && - ( - this.AutocompleteAlign == input.AutocompleteAlign || - (this.AutocompleteAlign != null && - this.AutocompleteAlign.Equals(input.AutocompleteAlign)) - ) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && - ( - this.Encryption == input.Encryption || - (this.Encryption != null && - this.Encryption.Equals(input.Encryption)) - ) && - ( - this.Transcoding == input.Transcoding || - (this.Transcoding != null && - this.Transcoding.Equals(input.Transcoding)) - ) && - ( - this.TableName == input.TableName || - (this.TableName != null && - this.TableName.Equals(input.TableName)) - ) && - ( - this.CodeFieldName == input.CodeFieldName || - (this.CodeFieldName != null && - this.CodeFieldName.Equals(input.CodeFieldName)) - ) && - ( - this.DescriptionFieldName == input.DescriptionFieldName || - (this.DescriptionFieldName != null && - this.DescriptionFieldName.Equals(input.DescriptionFieldName)) - ) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DataGroup != null) - hashCode = hashCode * 59 + this.DataGroup.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.LimitToList != null) - hashCode = hashCode * 59 + this.LimitToList.GetHashCode(); - if (this.Autocomplete != null) - hashCode = hashCode * 59 + this.Autocomplete.GetHashCode(); - if (this.AutocompleteCharacter != null) - hashCode = hashCode * 59 + this.AutocompleteCharacter.GetHashCode(); - if (this.AutocompleteAlign != null) - hashCode = hashCode * 59 + this.AutocompleteAlign.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.Encryption != null) - hashCode = hashCode * 59 + this.Encryption.GetHashCode(); - if (this.Transcoding != null) - hashCode = hashCode * 59 + this.Transcoding.GetHashCode(); - if (this.TableName != null) - hashCode = hashCode * 59 + this.TableName.GetHashCode(); - if (this.CodeFieldName != null) - hashCode = hashCode * 59 + this.CodeFieldName.GetHashCode(); - if (this.DescriptionFieldName != null) - hashCode = hashCode * 59 + this.DescriptionFieldName.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementTranslationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementTranslationDTO.cs deleted file mode 100644 index 73011c6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldManagementTranslationDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of field translation - /// - [DataContract] - public partial class AdditionalFieldManagementTranslationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Description 1: ErrorValidation . - /// Language code. - /// Translation. - public AdditionalFieldManagementTranslationDTO(int? type = default(int?), string langCode = default(string), string value = default(string)) - { - this.Type = type; - this.LangCode = langCode; - this.Value = value; - } - - /// - /// Possible values: 0: Description 1: ErrorValidation - /// - /// Possible values: 0: Description 1: ErrorValidation - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Language code - /// - /// Language code - [DataMember(Name="langCode", EmitDefaultValue=false)] - public string LangCode { get; set; } - - /// - /// Translation - /// - /// Translation - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementTranslationDTO {\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" LangCode: ").Append(LangCode).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementTranslationDTO); - } - - /// - /// Returns true if AdditionalFieldManagementTranslationDTO instances are equal - /// - /// Instance of AdditionalFieldManagementTranslationDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementTranslationDTO input) - { - if (input == null) - return false; - - return - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.LangCode == input.LangCode || - (this.LangCode != null && - this.LangCode.Equals(input.LangCode)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.LangCode != null) - hashCode = hashCode * 59 + this.LangCode.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldMultivalueDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldMultivalueDTO.cs deleted file mode 100644 index f8e2d5a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldMultivalueDTO.cs +++ /dev/null @@ -1,268 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Multivalue additional field - /// - [DataContract] - public partial class AdditionalFieldMultivalueDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldMultivalueDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Values to display. - /// Value. - /// Possible values ​​limited to the list. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldMultivalueDTO(List displayValue = default(List), List value = default(List), bool? limitToList = default(bool?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldMultivalueDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.DisplayValue = displayValue; - this.Value = value; - this.LimitToList = limitToList; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Values to display - /// - /// Values to display - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public List DisplayValue { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public List Value { get; set; } - - /// - /// Possible values ​​limited to the list - /// - /// Possible values ​​limited to the list - [DataMember(Name="limitToList", EmitDefaultValue=false)] - public bool? LimitToList { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldMultivalueDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" LimitToList: ").Append(LimitToList).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldMultivalueDTO); - } - - /// - /// Returns true if AdditionalFieldMultivalueDTO instances are equal - /// - /// Instance of AdditionalFieldMultivalueDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldMultivalueDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - this.DisplayValue != null && - this.DisplayValue.SequenceEqual(input.DisplayValue) - ) && base.Equals(input) && - ( - this.Value == input.Value || - this.Value != null && - this.Value.SequenceEqual(input.Value) - ) && base.Equals(input) && - ( - this.LimitToList == input.LimitToList || - (this.LimitToList != null && - this.LimitToList.Equals(input.LimitToList)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.LimitToList != null) - hashCode = hashCode * 59 + this.LimitToList.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldStringDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldStringDTO.cs deleted file mode 100644 index 5e473d1..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldStringDTO.cs +++ /dev/null @@ -1,285 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the additional field \"String\" - /// - [DataContract] - public partial class AdditionalFieldStringDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldStringDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value to display. - /// Value. - /// Maximum number of characters. - /// Maximum number of rows. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldStringDTO(string displayValue = default(string), string value = default(string), int? numMaxChar = default(int?), int? numRows = default(int?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldStringDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.DisplayValue = displayValue; - this.Value = value; - this.NumMaxChar = numMaxChar; - this.NumRows = numRows; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Value to display - /// - /// Value to display - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Maximum number of rows - /// - /// Maximum number of rows - [DataMember(Name="numRows", EmitDefaultValue=false)] - public int? NumRows { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldStringDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" NumRows: ").Append(NumRows).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldStringDTO); - } - - /// - /// Returns true if AdditionalFieldStringDTO instances are equal - /// - /// Instance of AdditionalFieldStringDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldStringDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && base.Equals(input) && - ( - this.NumRows == input.NumRows || - (this.NumRows != null && - this.NumRows.Equals(input.NumRows)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.NumRows != null) - hashCode = hashCode * 59 + this.NumRows.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldTableDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldTableDTO.cs deleted file mode 100644 index bf31dd0..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AdditionalFieldTableDTO.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the additional field \"Table\" - /// - [DataContract] - public partial class AdditionalFieldTableDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldTableDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values ​​limited to the list. - /// Value to display. - /// Value. - /// Maximum number of characters. - /// Maximum number of rows. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldTableDTO(bool? limitToList = default(bool?), string displayValue = default(string), string value = default(string), int? numMaxChar = default(int?), int? numRows = default(int?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldTableDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.LimitToList = limitToList; - this.DisplayValue = displayValue; - this.Value = value; - this.NumMaxChar = numMaxChar; - this.NumRows = numRows; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Possible values ​​limited to the list - /// - /// Possible values ​​limited to the list - [DataMember(Name="limitToList", EmitDefaultValue=false)] - public bool? LimitToList { get; set; } - - /// - /// Value to display - /// - /// Value to display - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Maximum number of rows - /// - /// Maximum number of rows - [DataMember(Name="numRows", EmitDefaultValue=false)] - public int? NumRows { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldTableDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" LimitToList: ").Append(LimitToList).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" NumRows: ").Append(NumRows).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldTableDTO); - } - - /// - /// Returns true if AdditionalFieldTableDTO instances are equal - /// - /// Instance of AdditionalFieldTableDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldTableDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.LimitToList == input.LimitToList || - (this.LimitToList != null && - this.LimitToList.Equals(input.LimitToList)) - ) && base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && base.Equals(input) && - ( - this.NumRows == input.NumRows || - (this.NumRows != null && - this.NumRows.Equals(input.NumRows)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.LimitToList != null) - hashCode = hashCode * 59 + this.LimitToList.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.NumRows != null) - hashCode = hashCode * 59 + this.NumRows.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookCategoryDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AddressBookCategoryDTO.cs deleted file mode 100644 index 84c7ef0..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookCategoryDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the adress book item category - /// - [DataContract] - public partial class AddressBookCategoryDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// Possible values: 0: Public 1: Private . - /// Set as default category. - public AddressBookCategoryDTO(int? id = default(int?), string addressBook = default(string), int? type = default(int?), bool? _default = default(bool?)) - { - this.Id = id; - this.AddressBook = addressBook; - this.Type = type; - this.Default = _default; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="addressBook", EmitDefaultValue=false)] - public string AddressBook { get; set; } - - /// - /// Possible values: 0: Public 1: Private - /// - /// Possible values: 0: Public 1: Private - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Set as default category - /// - /// Set as default category - [DataMember(Name="default", EmitDefaultValue=false)] - public bool? Default { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AddressBookCategoryDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" AddressBook: ").Append(AddressBook).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Default: ").Append(Default).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AddressBookCategoryDTO); - } - - /// - /// Returns true if AddressBookCategoryDTO instances are equal - /// - /// Instance of AddressBookCategoryDTO to be compared - /// Boolean - public bool Equals(AddressBookCategoryDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.AddressBook == input.AddressBook || - (this.AddressBook != null && - this.AddressBook.Equals(input.AddressBook)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Default == input.Default || - (this.Default != null && - this.Default.Equals(input.Default)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.AddressBook != null) - hashCode = hashCode * 59 + this.AddressBook.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Default != null) - hashCode = hashCode * 59 + this.Default.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AddressBookDTO.cs deleted file mode 100644 index 8d539e9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookDTO.cs +++ /dev/null @@ -1,516 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the adress book item base - /// - [DataContract] - public partial class AddressBookDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Contacts. - /// Unique identifier of the address book. - /// Business name. - /// Fax number. - /// Address. - /// Location. - /// Postal code. - /// Province. - /// Country. - /// Enail address. - /// Phone number. - /// Call phone number. - /// Possible values: 0: Active 1: NotActive . - /// Possible values: 0: User 1: Group 2: Business . - /// Unique identifier of the category. - /// BusinessUnit code. - /// Class. - /// Fiscal Code. - /// Partita Iva. - /// Possible values: 0: NoSend 1: Fax 2: Email 3: Fax_Email 4: Email_Fax 5: Fax_Plus_Mail 6: Print . - /// Business Unit code for not internal user. - /// Note. - /// External Code. - /// Additional fields. - public AddressBookDTO(List contacts = default(List), int? id = default(int?), string businessName = default(string), string fax = default(string), string address = default(string), string location = default(string), string postalCode = default(string), string province = default(string), string country = default(string), string email = default(string), string phoneNumber = default(string), string cellPhone = default(string), int? state = default(int?), int? type = default(int?), int? addressBookCategoryId = default(int?), string businessUnit = default(string), string _class = default(string), string fiscalCode = default(string), string vatNumber = default(string), int? priority = default(int?), string addressBookBusinessUnitCode = default(string), string addressBookNote = default(string), string externalCode = default(string), AdditionalConcreteFields additionalFields = default(AdditionalConcreteFields)) - { - this.Contacts = contacts; - this.Id = id; - this.BusinessName = businessName; - this.Fax = fax; - this.Address = address; - this.Location = location; - this.PostalCode = postalCode; - this.Province = province; - this.Country = country; - this.Email = email; - this.PhoneNumber = phoneNumber; - this.CellPhone = cellPhone; - this.State = state; - this.Type = type; - this.AddressBookCategoryId = addressBookCategoryId; - this.BusinessUnit = businessUnit; - this.Class = _class; - this.FiscalCode = fiscalCode; - this.VatNumber = vatNumber; - this.Priority = priority; - this.AddressBookBusinessUnitCode = addressBookBusinessUnitCode; - this.AddressBookNote = addressBookNote; - this.ExternalCode = externalCode; - this.AdditionalFields = additionalFields; - } - - /// - /// Contacts - /// - /// Contacts - [DataMember(Name="contacts", EmitDefaultValue=false)] - public List Contacts { get; set; } - - /// - /// Unique identifier of the address book - /// - /// Unique identifier of the address book - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Business name - /// - /// Business name - [DataMember(Name="businessName", EmitDefaultValue=false)] - public string BusinessName { get; set; } - - /// - /// Fax number - /// - /// Fax number - [DataMember(Name="fax", EmitDefaultValue=false)] - public string Fax { get; set; } - - /// - /// Address - /// - /// Address - [DataMember(Name="address", EmitDefaultValue=false)] - public string Address { get; set; } - - /// - /// Location - /// - /// Location - [DataMember(Name="location", EmitDefaultValue=false)] - public string Location { get; set; } - - /// - /// Postal code - /// - /// Postal code - [DataMember(Name="postalCode", EmitDefaultValue=false)] - public string PostalCode { get; set; } - - /// - /// Province - /// - /// Province - [DataMember(Name="province", EmitDefaultValue=false)] - public string Province { get; set; } - - /// - /// Country - /// - /// Country - [DataMember(Name="country", EmitDefaultValue=false)] - public string Country { get; set; } - - /// - /// Enail address - /// - /// Enail address - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Phone number - /// - /// Phone number - [DataMember(Name="phoneNumber", EmitDefaultValue=false)] - public string PhoneNumber { get; set; } - - /// - /// Call phone number - /// - /// Call phone number - [DataMember(Name="cellPhone", EmitDefaultValue=false)] - public string CellPhone { get; set; } - - /// - /// Possible values: 0: Active 1: NotActive - /// - /// Possible values: 0: Active 1: NotActive - [DataMember(Name="state", EmitDefaultValue=false)] - public int? State { get; set; } - - /// - /// Possible values: 0: User 1: Group 2: Business - /// - /// Possible values: 0: User 1: Group 2: Business - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Unique identifier of the category - /// - /// Unique identifier of the category - [DataMember(Name="addressBookCategoryId", EmitDefaultValue=false)] - public int? AddressBookCategoryId { get; set; } - - /// - /// BusinessUnit code - /// - /// BusinessUnit code - [DataMember(Name="businessUnit", EmitDefaultValue=false)] - public string BusinessUnit { get; set; } - - /// - /// Class - /// - /// Class - [DataMember(Name="class", EmitDefaultValue=false)] - public string Class { get; set; } - - /// - /// Fiscal Code - /// - /// Fiscal Code - [DataMember(Name="fiscalCode", EmitDefaultValue=false)] - public string FiscalCode { get; set; } - - /// - /// Partita Iva - /// - /// Partita Iva - [DataMember(Name="vatNumber", EmitDefaultValue=false)] - public string VatNumber { get; set; } - - /// - /// Possible values: 0: NoSend 1: Fax 2: Email 3: Fax_Email 4: Email_Fax 5: Fax_Plus_Mail 6: Print - /// - /// Possible values: 0: NoSend 1: Fax 2: Email 3: Fax_Email 4: Email_Fax 5: Fax_Plus_Mail 6: Print - [DataMember(Name="priority", EmitDefaultValue=false)] - public int? Priority { get; set; } - - /// - /// Business Unit code for not internal user - /// - /// Business Unit code for not internal user - [DataMember(Name="addressBookBusinessUnitCode", EmitDefaultValue=false)] - public string AddressBookBusinessUnitCode { get; set; } - - /// - /// Note - /// - /// Note - [DataMember(Name="addressBookNote", EmitDefaultValue=false)] - public string AddressBookNote { get; set; } - - /// - /// External Code - /// - /// External Code - [DataMember(Name="externalCode", EmitDefaultValue=false)] - public string ExternalCode { get; set; } - - /// - /// Additional fields - /// - /// Additional fields - [DataMember(Name="additionalFields", EmitDefaultValue=false)] - public AdditionalConcreteFields AdditionalFields { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AddressBookDTO {\n"); - sb.Append(" Contacts: ").Append(Contacts).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" BusinessName: ").Append(BusinessName).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); - sb.Append(" Province: ").Append(Province).Append("\n"); - sb.Append(" Country: ").Append(Country).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); - sb.Append(" CellPhone: ").Append(CellPhone).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" AddressBookCategoryId: ").Append(AddressBookCategoryId).Append("\n"); - sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); - sb.Append(" FiscalCode: ").Append(FiscalCode).Append("\n"); - sb.Append(" VatNumber: ").Append(VatNumber).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" AddressBookBusinessUnitCode: ").Append(AddressBookBusinessUnitCode).Append("\n"); - sb.Append(" AddressBookNote: ").Append(AddressBookNote).Append("\n"); - sb.Append(" ExternalCode: ").Append(ExternalCode).Append("\n"); - sb.Append(" AdditionalFields: ").Append(AdditionalFields).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AddressBookDTO); - } - - /// - /// Returns true if AddressBookDTO instances are equal - /// - /// Instance of AddressBookDTO to be compared - /// Boolean - public bool Equals(AddressBookDTO input) - { - if (input == null) - return false; - - return - ( - this.Contacts == input.Contacts || - this.Contacts != null && - this.Contacts.SequenceEqual(input.Contacts) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.BusinessName == input.BusinessName || - (this.BusinessName != null && - this.BusinessName.Equals(input.BusinessName)) - ) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && - ( - this.PostalCode == input.PostalCode || - (this.PostalCode != null && - this.PostalCode.Equals(input.PostalCode)) - ) && - ( - this.Province == input.Province || - (this.Province != null && - this.Province.Equals(input.Province)) - ) && - ( - this.Country == input.Country || - (this.Country != null && - this.Country.Equals(input.Country)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.PhoneNumber == input.PhoneNumber || - (this.PhoneNumber != null && - this.PhoneNumber.Equals(input.PhoneNumber)) - ) && - ( - this.CellPhone == input.CellPhone || - (this.CellPhone != null && - this.CellPhone.Equals(input.CellPhone)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.AddressBookCategoryId == input.AddressBookCategoryId || - (this.AddressBookCategoryId != null && - this.AddressBookCategoryId.Equals(input.AddressBookCategoryId)) - ) && - ( - this.BusinessUnit == input.BusinessUnit || - (this.BusinessUnit != null && - this.BusinessUnit.Equals(input.BusinessUnit)) - ) && - ( - this.Class == input.Class || - (this.Class != null && - this.Class.Equals(input.Class)) - ) && - ( - this.FiscalCode == input.FiscalCode || - (this.FiscalCode != null && - this.FiscalCode.Equals(input.FiscalCode)) - ) && - ( - this.VatNumber == input.VatNumber || - (this.VatNumber != null && - this.VatNumber.Equals(input.VatNumber)) - ) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && - ( - this.AddressBookBusinessUnitCode == input.AddressBookBusinessUnitCode || - (this.AddressBookBusinessUnitCode != null && - this.AddressBookBusinessUnitCode.Equals(input.AddressBookBusinessUnitCode)) - ) && - ( - this.AddressBookNote == input.AddressBookNote || - (this.AddressBookNote != null && - this.AddressBookNote.Equals(input.AddressBookNote)) - ) && - ( - this.ExternalCode == input.ExternalCode || - (this.ExternalCode != null && - this.ExternalCode.Equals(input.ExternalCode)) - ) && - ( - this.AdditionalFields == input.AdditionalFields || - (this.AdditionalFields != null && - this.AdditionalFields.Equals(input.AdditionalFields)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Contacts != null) - hashCode = hashCode * 59 + this.Contacts.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.BusinessName != null) - hashCode = hashCode * 59 + this.BusinessName.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.PostalCode != null) - hashCode = hashCode * 59 + this.PostalCode.GetHashCode(); - if (this.Province != null) - hashCode = hashCode * 59 + this.Province.GetHashCode(); - if (this.Country != null) - hashCode = hashCode * 59 + this.Country.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.PhoneNumber != null) - hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); - if (this.CellPhone != null) - hashCode = hashCode * 59 + this.CellPhone.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.AddressBookCategoryId != null) - hashCode = hashCode * 59 + this.AddressBookCategoryId.GetHashCode(); - if (this.BusinessUnit != null) - hashCode = hashCode * 59 + this.BusinessUnit.GetHashCode(); - if (this.Class != null) - hashCode = hashCode * 59 + this.Class.GetHashCode(); - if (this.FiscalCode != null) - hashCode = hashCode * 59 + this.FiscalCode.GetHashCode(); - if (this.VatNumber != null) - hashCode = hashCode * 59 + this.VatNumber.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.AddressBookBusinessUnitCode != null) - hashCode = hashCode * 59 + this.AddressBookBusinessUnitCode.GetHashCode(); - if (this.AddressBookNote != null) - hashCode = hashCode * 59 + this.AddressBookNote.GetHashCode(); - if (this.ExternalCode != null) - hashCode = hashCode * 59 + this.ExternalCode.GetHashCode(); - if (this.AdditionalFields != null) - hashCode = hashCode * 59 + this.AdditionalFields.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookNoteDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AddressBookNoteDTO.cs deleted file mode 100644 index 112baa0..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookNoteDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// This is the DTO for a AddreBook note item - /// - [DataContract] - public partial class AddressBookNoteDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Id of the note. - /// System id of the addressbook item. - /// Creation date of the note. - /// Author Complete name. - /// Author of the note. - /// Text of the note. - public AddressBookNoteDTO(int? id = default(int?), int? addressBookId = default(int?), DateTime? date = default(DateTime?), string authorCompleteName = default(string), int? author = default(int?), string note = default(string)) - { - this.Id = id; - this.AddressBookId = addressBookId; - this.Date = date; - this.AuthorCompleteName = authorCompleteName; - this.Author = author; - this.Note = note; - } - - /// - /// Id of the note - /// - /// Id of the note - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// System id of the addressbook item - /// - /// System id of the addressbook item - [DataMember(Name="addressBookId", EmitDefaultValue=false)] - public int? AddressBookId { get; set; } - - /// - /// Creation date of the note - /// - /// Creation date of the note - [DataMember(Name="date", EmitDefaultValue=false)] - public DateTime? Date { get; set; } - - /// - /// Author Complete name - /// - /// Author Complete name - [DataMember(Name="authorCompleteName", EmitDefaultValue=false)] - public string AuthorCompleteName { get; set; } - - /// - /// Author of the note - /// - /// Author of the note - [DataMember(Name="author", EmitDefaultValue=false)] - public int? Author { get; set; } - - /// - /// Text of the note - /// - /// Text of the note - [DataMember(Name="note", EmitDefaultValue=false)] - public string Note { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AddressBookNoteDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" AddressBookId: ").Append(AddressBookId).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" AuthorCompleteName: ").Append(AuthorCompleteName).Append("\n"); - sb.Append(" Author: ").Append(Author).Append("\n"); - sb.Append(" Note: ").Append(Note).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AddressBookNoteDTO); - } - - /// - /// Returns true if AddressBookNoteDTO instances are equal - /// - /// Instance of AddressBookNoteDTO to be compared - /// Boolean - public bool Equals(AddressBookNoteDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.AddressBookId == input.AddressBookId || - (this.AddressBookId != null && - this.AddressBookId.Equals(input.AddressBookId)) - ) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && - ( - this.AuthorCompleteName == input.AuthorCompleteName || - (this.AuthorCompleteName != null && - this.AuthorCompleteName.Equals(input.AuthorCompleteName)) - ) && - ( - this.Author == input.Author || - (this.Author != null && - this.Author.Equals(input.Author)) - ) && - ( - this.Note == input.Note || - (this.Note != null && - this.Note.Equals(input.Note)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.AddressBookId != null) - hashCode = hashCode * 59 + this.AddressBookId.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.AuthorCompleteName != null) - hashCode = hashCode * 59 + this.AuthorCompleteName.GetHashCode(); - if (this.Author != null) - hashCode = hashCode * 59 + this.Author.GetHashCode(); - if (this.Note != null) - hashCode = hashCode * 59 + this.Note.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookSearchConcreteCriteriaDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AddressBookSearchConcreteCriteriaDTO.cs deleted file mode 100644 index 0deb22b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookSearchConcreteCriteriaDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// This class contain the search and select part for addressbook search functions - /// - [DataContract] - public partial class AddressBookSearchConcreteCriteriaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Addressbook search. - /// Addressbook select. - public AddressBookSearchConcreteCriteriaDTO(AddressBookSearchConcreteDTO searchDto = default(AddressBookSearchConcreteDTO), SelectDTO selectDto = default(SelectDTO)) - { - this.SearchDto = searchDto; - this.SelectDto = selectDto; - } - - /// - /// Addressbook search - /// - /// Addressbook search - [DataMember(Name="searchDto", EmitDefaultValue=false)] - public AddressBookSearchConcreteDTO SearchDto { get; set; } - - /// - /// Addressbook select - /// - /// Addressbook select - [DataMember(Name="selectDto", EmitDefaultValue=false)] - public SelectDTO SelectDto { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AddressBookSearchConcreteCriteriaDTO {\n"); - sb.Append(" SearchDto: ").Append(SearchDto).Append("\n"); - sb.Append(" SelectDto: ").Append(SelectDto).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AddressBookSearchConcreteCriteriaDTO); - } - - /// - /// Returns true if AddressBookSearchConcreteCriteriaDTO instances are equal - /// - /// Instance of AddressBookSearchConcreteCriteriaDTO to be compared - /// Boolean - public bool Equals(AddressBookSearchConcreteCriteriaDTO input) - { - if (input == null) - return false; - - return - ( - this.SearchDto == input.SearchDto || - (this.SearchDto != null && - this.SearchDto.Equals(input.SearchDto)) - ) && - ( - this.SelectDto == input.SelectDto || - (this.SelectDto != null && - this.SelectDto.Equals(input.SelectDto)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SearchDto != null) - hashCode = hashCode * 59 + this.SearchDto.GetHashCode(); - if (this.SelectDto != null) - hashCode = hashCode * 59 + this.SelectDto.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookSearchConcreteDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AddressBookSearchConcreteDTO.cs deleted file mode 100644 index 3840a76..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookSearchConcreteDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for search in addressbook - /// - [DataContract] - public partial class AddressBookSearchConcreteDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// List of fields of type 'Datetime'. - /// List of fields of type 'String'. - /// List of fields of type 'Integer'. - /// List of fields of type 'Boolean'. - /// List of fields of type 'Decimal'. - /// List of fields of type 'List'. - /// List of fields of type 'List'. - /// Search max items. - public AddressBookSearchConcreteDTO(List dateTimeFields = default(List), List stringFields = default(List), List intFields = default(List), List boolFields = default(List), List doubleFields = default(List), List stringListFields = default(List), List matrixFields = default(List), int? maxItems = default(int?)) - { - this.DateTimeFields = dateTimeFields; - this.StringFields = stringFields; - this.IntFields = intFields; - this.BoolFields = boolFields; - this.DoubleFields = doubleFields; - this.StringListFields = stringListFields; - this.MatrixFields = matrixFields; - this.MaxItems = maxItems; - } - - /// - /// List of fields of type 'Datetime' - /// - /// List of fields of type 'Datetime' - [DataMember(Name="dateTimeFields", EmitDefaultValue=false)] - public List DateTimeFields { get; set; } - - /// - /// List of fields of type 'String' - /// - /// List of fields of type 'String' - [DataMember(Name="stringFields", EmitDefaultValue=false)] - public List StringFields { get; set; } - - /// - /// List of fields of type 'Integer' - /// - /// List of fields of type 'Integer' - [DataMember(Name="intFields", EmitDefaultValue=false)] - public List IntFields { get; set; } - - /// - /// List of fields of type 'Boolean' - /// - /// List of fields of type 'Boolean' - [DataMember(Name="boolFields", EmitDefaultValue=false)] - public List BoolFields { get; set; } - - /// - /// List of fields of type 'Decimal' - /// - /// List of fields of type 'Decimal' - [DataMember(Name="doubleFields", EmitDefaultValue=false)] - public List DoubleFields { get; set; } - - /// - /// List of fields of type 'List' - /// - /// List of fields of type 'List' - [DataMember(Name="stringListFields", EmitDefaultValue=false)] - public List StringListFields { get; set; } - - /// - /// List of fields of type 'List' - /// - /// List of fields of type 'List' - [DataMember(Name="matrixFields", EmitDefaultValue=false)] - public List MatrixFields { get; set; } - - /// - /// Search max items - /// - /// Search max items - [DataMember(Name="maxItems", EmitDefaultValue=false)] - public int? MaxItems { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AddressBookSearchConcreteDTO {\n"); - sb.Append(" DateTimeFields: ").Append(DateTimeFields).Append("\n"); - sb.Append(" StringFields: ").Append(StringFields).Append("\n"); - sb.Append(" IntFields: ").Append(IntFields).Append("\n"); - sb.Append(" BoolFields: ").Append(BoolFields).Append("\n"); - sb.Append(" DoubleFields: ").Append(DoubleFields).Append("\n"); - sb.Append(" StringListFields: ").Append(StringListFields).Append("\n"); - sb.Append(" MatrixFields: ").Append(MatrixFields).Append("\n"); - sb.Append(" MaxItems: ").Append(MaxItems).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AddressBookSearchConcreteDTO); - } - - /// - /// Returns true if AddressBookSearchConcreteDTO instances are equal - /// - /// Instance of AddressBookSearchConcreteDTO to be compared - /// Boolean - public bool Equals(AddressBookSearchConcreteDTO input) - { - if (input == null) - return false; - - return - ( - this.DateTimeFields == input.DateTimeFields || - this.DateTimeFields != null && - this.DateTimeFields.SequenceEqual(input.DateTimeFields) - ) && - ( - this.StringFields == input.StringFields || - this.StringFields != null && - this.StringFields.SequenceEqual(input.StringFields) - ) && - ( - this.IntFields == input.IntFields || - this.IntFields != null && - this.IntFields.SequenceEqual(input.IntFields) - ) && - ( - this.BoolFields == input.BoolFields || - this.BoolFields != null && - this.BoolFields.SequenceEqual(input.BoolFields) - ) && - ( - this.DoubleFields == input.DoubleFields || - this.DoubleFields != null && - this.DoubleFields.SequenceEqual(input.DoubleFields) - ) && - ( - this.StringListFields == input.StringListFields || - this.StringListFields != null && - this.StringListFields.SequenceEqual(input.StringListFields) - ) && - ( - this.MatrixFields == input.MatrixFields || - this.MatrixFields != null && - this.MatrixFields.SequenceEqual(input.MatrixFields) - ) && - ( - this.MaxItems == input.MaxItems || - (this.MaxItems != null && - this.MaxItems.Equals(input.MaxItems)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DateTimeFields != null) - hashCode = hashCode * 59 + this.DateTimeFields.GetHashCode(); - if (this.StringFields != null) - hashCode = hashCode * 59 + this.StringFields.GetHashCode(); - if (this.IntFields != null) - hashCode = hashCode * 59 + this.IntFields.GetHashCode(); - if (this.BoolFields != null) - hashCode = hashCode * 59 + this.BoolFields.GetHashCode(); - if (this.DoubleFields != null) - hashCode = hashCode * 59 + this.DoubleFields.GetHashCode(); - if (this.StringListFields != null) - hashCode = hashCode * 59 + this.StringListFields.GetHashCode(); - if (this.MatrixFields != null) - hashCode = hashCode * 59 + this.MatrixFields.GetHashCode(); - if (this.MaxItems != null) - hashCode = hashCode * 59 + this.MaxItems.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookSearchCriteriaDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AddressBookSearchCriteriaDTO.cs deleted file mode 100644 index fc5b608..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookSearchCriteriaDTO.cs +++ /dev/null @@ -1,172 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// AddressBookSearchCriteriaDTO - /// - [DataContract] - public partial class AddressBookSearchCriteriaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// addressBookCategoryId. - /// filterFields. - /// selectFields. - /// filter. - public AddressBookSearchCriteriaDTO(int? addressBookCategoryId = default(int?), List filterFields = default(List), List selectFields = default(List), string filter = default(string)) - { - this.AddressBookCategoryId = addressBookCategoryId; - this.FilterFields = filterFields; - this.SelectFields = selectFields; - this.Filter = filter; - } - - /// - /// Gets or Sets AddressBookCategoryId - /// - [DataMember(Name="addressBookCategoryId", EmitDefaultValue=false)] - public int? AddressBookCategoryId { get; set; } - - /// - /// Gets or Sets FilterFields - /// - [DataMember(Name="filterFields", EmitDefaultValue=false)] - public List FilterFields { get; set; } - - /// - /// Gets or Sets SelectFields - /// - [DataMember(Name="selectFields", EmitDefaultValue=false)] - public List SelectFields { get; set; } - - /// - /// Gets or Sets Filter - /// - [DataMember(Name="filter", EmitDefaultValue=false)] - public string Filter { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AddressBookSearchCriteriaDTO {\n"); - sb.Append(" AddressBookCategoryId: ").Append(AddressBookCategoryId).Append("\n"); - sb.Append(" FilterFields: ").Append(FilterFields).Append("\n"); - sb.Append(" SelectFields: ").Append(SelectFields).Append("\n"); - sb.Append(" Filter: ").Append(Filter).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AddressBookSearchCriteriaDTO); - } - - /// - /// Returns true if AddressBookSearchCriteriaDTO instances are equal - /// - /// Instance of AddressBookSearchCriteriaDTO to be compared - /// Boolean - public bool Equals(AddressBookSearchCriteriaDTO input) - { - if (input == null) - return false; - - return - ( - this.AddressBookCategoryId == input.AddressBookCategoryId || - (this.AddressBookCategoryId != null && - this.AddressBookCategoryId.Equals(input.AddressBookCategoryId)) - ) && - ( - this.FilterFields == input.FilterFields || - this.FilterFields != null && - this.FilterFields.SequenceEqual(input.FilterFields) - ) && - ( - this.SelectFields == input.SelectFields || - this.SelectFields != null && - this.SelectFields.SequenceEqual(input.SelectFields) - ) && - ( - this.Filter == input.Filter || - (this.Filter != null && - this.Filter.Equals(input.Filter)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AddressBookCategoryId != null) - hashCode = hashCode * 59 + this.AddressBookCategoryId.GetHashCode(); - if (this.FilterFields != null) - hashCode = hashCode * 59 + this.FilterFields.GetHashCode(); - if (this.SelectFields != null) - hashCode = hashCode * 59 + this.SelectFields.GetHashCode(); - if (this.Filter != null) - hashCode = hashCode * 59 + this.Filter.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookSearchListCriteriaDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AddressBookSearchListCriteriaDTO.cs deleted file mode 100644 index 8820e8d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookSearchListCriteriaDTO.cs +++ /dev/null @@ -1,172 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// AddressBookSearchListCriteriaDTO - /// - [DataContract] - public partial class AddressBookSearchListCriteriaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// addressBookCategoryId. - /// filterFields. - /// selectFields. - /// filter. - public AddressBookSearchListCriteriaDTO(List addressBookCategoryId = default(List), List filterFields = default(List), List selectFields = default(List), string filter = default(string)) - { - this.AddressBookCategoryId = addressBookCategoryId; - this.FilterFields = filterFields; - this.SelectFields = selectFields; - this.Filter = filter; - } - - /// - /// Gets or Sets AddressBookCategoryId - /// - [DataMember(Name="addressBookCategoryId", EmitDefaultValue=false)] - public List AddressBookCategoryId { get; set; } - - /// - /// Gets or Sets FilterFields - /// - [DataMember(Name="filterFields", EmitDefaultValue=false)] - public List FilterFields { get; set; } - - /// - /// Gets or Sets SelectFields - /// - [DataMember(Name="selectFields", EmitDefaultValue=false)] - public List SelectFields { get; set; } - - /// - /// Gets or Sets Filter - /// - [DataMember(Name="filter", EmitDefaultValue=false)] - public string Filter { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AddressBookSearchListCriteriaDTO {\n"); - sb.Append(" AddressBookCategoryId: ").Append(AddressBookCategoryId).Append("\n"); - sb.Append(" FilterFields: ").Append(FilterFields).Append("\n"); - sb.Append(" SelectFields: ").Append(SelectFields).Append("\n"); - sb.Append(" Filter: ").Append(Filter).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AddressBookSearchListCriteriaDTO); - } - - /// - /// Returns true if AddressBookSearchListCriteriaDTO instances are equal - /// - /// Instance of AddressBookSearchListCriteriaDTO to be compared - /// Boolean - public bool Equals(AddressBookSearchListCriteriaDTO input) - { - if (input == null) - return false; - - return - ( - this.AddressBookCategoryId == input.AddressBookCategoryId || - this.AddressBookCategoryId != null && - this.AddressBookCategoryId.SequenceEqual(input.AddressBookCategoryId) - ) && - ( - this.FilterFields == input.FilterFields || - this.FilterFields != null && - this.FilterFields.SequenceEqual(input.FilterFields) - ) && - ( - this.SelectFields == input.SelectFields || - this.SelectFields != null && - this.SelectFields.SequenceEqual(input.SelectFields) - ) && - ( - this.Filter == input.Filter || - (this.Filter != null && - this.Filter.Equals(input.Filter)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AddressBookCategoryId != null) - hashCode = hashCode * 59 + this.AddressBookCategoryId.GetHashCode(); - if (this.FilterFields != null) - hashCode = hashCode * 59 + this.FilterFields.GetHashCode(); - if (this.SelectFields != null) - hashCode = hashCode * 59 + this.SelectFields.GetHashCode(); - if (this.Filter != null) - hashCode = hashCode * 59 + this.Filter.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookSearchResultDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AddressBookSearchResultDTO.cs deleted file mode 100644 index 88bfe79..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookSearchResultDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// AddressBookSearchResultDTO - /// - [DataContract] - public partial class AddressBookSearchResultDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Data. - /// IsOverResult. - public AddressBookSearchResultDTO(List data = default(List), bool? isOverResult = default(bool?)) - { - this.Data = data; - this.IsOverResult = isOverResult; - } - - /// - /// Data - /// - /// Data - [DataMember(Name="data", EmitDefaultValue=false)] - public List Data { get; set; } - - /// - /// IsOverResult - /// - /// IsOverResult - [DataMember(Name="isOverResult", EmitDefaultValue=false)] - public bool? IsOverResult { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AddressBookSearchResultDTO {\n"); - sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" IsOverResult: ").Append(IsOverResult).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AddressBookSearchResultDTO); - } - - /// - /// Returns true if AddressBookSearchResultDTO instances are equal - /// - /// Instance of AddressBookSearchResultDTO to be compared - /// Boolean - public bool Equals(AddressBookSearchResultDTO input) - { - if (input == null) - return false; - - return - ( - this.Data == input.Data || - this.Data != null && - this.Data.SequenceEqual(input.Data) - ) && - ( - this.IsOverResult == input.IsOverResult || - (this.IsOverResult != null && - this.IsOverResult.Equals(input.IsOverResult)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); - if (this.IsOverResult != null) - hashCode = hashCode * 59 + this.IsOverResult.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookV4DTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AddressBookV4DTO.cs deleted file mode 100644 index edfce73..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AddressBookV4DTO.cs +++ /dev/null @@ -1,567 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the adress book item V4 - /// - [DataContract] - public partial class AddressBookV4DTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Contacts V4. - /// Office code. - /// Public administration code. - /// Posta Elettronica Certificata (AddressBook). - /// Unique identifier of the address book. - /// Business name. - /// Fax number. - /// Address. - /// Location. - /// Postal code. - /// Province. - /// Country. - /// Enail address. - /// Phone number. - /// Call phone number. - /// Possible values: 0: Active 1: NotActive . - /// Possible values: 0: User 1: Group 2: Business . - /// Unique identifier of the category. - /// BusinessUnit code. - /// Class. - /// Fiscal Code. - /// Partita Iva. - /// Possible values: 0: NoSend 1: Fax 2: Email 3: Fax_Email 4: Email_Fax 5: Fax_Plus_Mail 6: Print . - /// Business Unit code for not internal user. - /// Note. - /// External Code. - /// Additional fields. - public AddressBookV4DTO(List contacts = default(List), string officeCode = default(string), string publicAdministrationCode = default(string), string pecAddressBook = default(string), int? id = default(int?), string businessName = default(string), string fax = default(string), string address = default(string), string location = default(string), string postalCode = default(string), string province = default(string), string country = default(string), string email = default(string), string phoneNumber = default(string), string cellPhone = default(string), int? state = default(int?), int? type = default(int?), int? addressBookCategoryId = default(int?), string businessUnit = default(string), string _class = default(string), string fiscalCode = default(string), string vatNumber = default(string), int? priority = default(int?), string addressBookBusinessUnitCode = default(string), string addressBookNote = default(string), string externalCode = default(string), AdditionalConcreteFields additionalFields = default(AdditionalConcreteFields)) - { - this.Contacts = contacts; - this.OfficeCode = officeCode; - this.PublicAdministrationCode = publicAdministrationCode; - this.PecAddressBook = pecAddressBook; - this.Id = id; - this.BusinessName = businessName; - this.Fax = fax; - this.Address = address; - this.Location = location; - this.PostalCode = postalCode; - this.Province = province; - this.Country = country; - this.Email = email; - this.PhoneNumber = phoneNumber; - this.CellPhone = cellPhone; - this.State = state; - this.Type = type; - this.AddressBookCategoryId = addressBookCategoryId; - this.BusinessUnit = businessUnit; - this.Class = _class; - this.FiscalCode = fiscalCode; - this.VatNumber = vatNumber; - this.Priority = priority; - this.AddressBookBusinessUnitCode = addressBookBusinessUnitCode; - this.AddressBookNote = addressBookNote; - this.ExternalCode = externalCode; - this.AdditionalFields = additionalFields; - } - - /// - /// Contacts V4 - /// - /// Contacts V4 - [DataMember(Name="contacts", EmitDefaultValue=false)] - public List Contacts { get; set; } - - /// - /// Office code - /// - /// Office code - [DataMember(Name="officeCode", EmitDefaultValue=false)] - public string OfficeCode { get; set; } - - /// - /// Public administration code - /// - /// Public administration code - [DataMember(Name="publicAdministrationCode", EmitDefaultValue=false)] - public string PublicAdministrationCode { get; set; } - - /// - /// Posta Elettronica Certificata (AddressBook) - /// - /// Posta Elettronica Certificata (AddressBook) - [DataMember(Name="pecAddressBook", EmitDefaultValue=false)] - public string PecAddressBook { get; set; } - - /// - /// Unique identifier of the address book - /// - /// Unique identifier of the address book - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Business name - /// - /// Business name - [DataMember(Name="businessName", EmitDefaultValue=false)] - public string BusinessName { get; set; } - - /// - /// Fax number - /// - /// Fax number - [DataMember(Name="fax", EmitDefaultValue=false)] - public string Fax { get; set; } - - /// - /// Address - /// - /// Address - [DataMember(Name="address", EmitDefaultValue=false)] - public string Address { get; set; } - - /// - /// Location - /// - /// Location - [DataMember(Name="location", EmitDefaultValue=false)] - public string Location { get; set; } - - /// - /// Postal code - /// - /// Postal code - [DataMember(Name="postalCode", EmitDefaultValue=false)] - public string PostalCode { get; set; } - - /// - /// Province - /// - /// Province - [DataMember(Name="province", EmitDefaultValue=false)] - public string Province { get; set; } - - /// - /// Country - /// - /// Country - [DataMember(Name="country", EmitDefaultValue=false)] - public string Country { get; set; } - - /// - /// Enail address - /// - /// Enail address - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Phone number - /// - /// Phone number - [DataMember(Name="phoneNumber", EmitDefaultValue=false)] - public string PhoneNumber { get; set; } - - /// - /// Call phone number - /// - /// Call phone number - [DataMember(Name="cellPhone", EmitDefaultValue=false)] - public string CellPhone { get; set; } - - /// - /// Possible values: 0: Active 1: NotActive - /// - /// Possible values: 0: Active 1: NotActive - [DataMember(Name="state", EmitDefaultValue=false)] - public int? State { get; set; } - - /// - /// Possible values: 0: User 1: Group 2: Business - /// - /// Possible values: 0: User 1: Group 2: Business - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Unique identifier of the category - /// - /// Unique identifier of the category - [DataMember(Name="addressBookCategoryId", EmitDefaultValue=false)] - public int? AddressBookCategoryId { get; set; } - - /// - /// BusinessUnit code - /// - /// BusinessUnit code - [DataMember(Name="businessUnit", EmitDefaultValue=false)] - public string BusinessUnit { get; set; } - - /// - /// Class - /// - /// Class - [DataMember(Name="class", EmitDefaultValue=false)] - public string Class { get; set; } - - /// - /// Fiscal Code - /// - /// Fiscal Code - [DataMember(Name="fiscalCode", EmitDefaultValue=false)] - public string FiscalCode { get; set; } - - /// - /// Partita Iva - /// - /// Partita Iva - [DataMember(Name="vatNumber", EmitDefaultValue=false)] - public string VatNumber { get; set; } - - /// - /// Possible values: 0: NoSend 1: Fax 2: Email 3: Fax_Email 4: Email_Fax 5: Fax_Plus_Mail 6: Print - /// - /// Possible values: 0: NoSend 1: Fax 2: Email 3: Fax_Email 4: Email_Fax 5: Fax_Plus_Mail 6: Print - [DataMember(Name="priority", EmitDefaultValue=false)] - public int? Priority { get; set; } - - /// - /// Business Unit code for not internal user - /// - /// Business Unit code for not internal user - [DataMember(Name="addressBookBusinessUnitCode", EmitDefaultValue=false)] - public string AddressBookBusinessUnitCode { get; set; } - - /// - /// Note - /// - /// Note - [DataMember(Name="addressBookNote", EmitDefaultValue=false)] - public string AddressBookNote { get; set; } - - /// - /// External Code - /// - /// External Code - [DataMember(Name="externalCode", EmitDefaultValue=false)] - public string ExternalCode { get; set; } - - /// - /// Additional fields - /// - /// Additional fields - [DataMember(Name="additionalFields", EmitDefaultValue=false)] - public AdditionalConcreteFields AdditionalFields { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AddressBookV4DTO {\n"); - sb.Append(" Contacts: ").Append(Contacts).Append("\n"); - sb.Append(" OfficeCode: ").Append(OfficeCode).Append("\n"); - sb.Append(" PublicAdministrationCode: ").Append(PublicAdministrationCode).Append("\n"); - sb.Append(" PecAddressBook: ").Append(PecAddressBook).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" BusinessName: ").Append(BusinessName).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); - sb.Append(" Province: ").Append(Province).Append("\n"); - sb.Append(" Country: ").Append(Country).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); - sb.Append(" CellPhone: ").Append(CellPhone).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" AddressBookCategoryId: ").Append(AddressBookCategoryId).Append("\n"); - sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); - sb.Append(" FiscalCode: ").Append(FiscalCode).Append("\n"); - sb.Append(" VatNumber: ").Append(VatNumber).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" AddressBookBusinessUnitCode: ").Append(AddressBookBusinessUnitCode).Append("\n"); - sb.Append(" AddressBookNote: ").Append(AddressBookNote).Append("\n"); - sb.Append(" ExternalCode: ").Append(ExternalCode).Append("\n"); - sb.Append(" AdditionalFields: ").Append(AdditionalFields).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AddressBookV4DTO); - } - - /// - /// Returns true if AddressBookV4DTO instances are equal - /// - /// Instance of AddressBookV4DTO to be compared - /// Boolean - public bool Equals(AddressBookV4DTO input) - { - if (input == null) - return false; - - return - ( - this.Contacts == input.Contacts || - this.Contacts != null && - this.Contacts.SequenceEqual(input.Contacts) - ) && - ( - this.OfficeCode == input.OfficeCode || - (this.OfficeCode != null && - this.OfficeCode.Equals(input.OfficeCode)) - ) && - ( - this.PublicAdministrationCode == input.PublicAdministrationCode || - (this.PublicAdministrationCode != null && - this.PublicAdministrationCode.Equals(input.PublicAdministrationCode)) - ) && - ( - this.PecAddressBook == input.PecAddressBook || - (this.PecAddressBook != null && - this.PecAddressBook.Equals(input.PecAddressBook)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.BusinessName == input.BusinessName || - (this.BusinessName != null && - this.BusinessName.Equals(input.BusinessName)) - ) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && - ( - this.PostalCode == input.PostalCode || - (this.PostalCode != null && - this.PostalCode.Equals(input.PostalCode)) - ) && - ( - this.Province == input.Province || - (this.Province != null && - this.Province.Equals(input.Province)) - ) && - ( - this.Country == input.Country || - (this.Country != null && - this.Country.Equals(input.Country)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.PhoneNumber == input.PhoneNumber || - (this.PhoneNumber != null && - this.PhoneNumber.Equals(input.PhoneNumber)) - ) && - ( - this.CellPhone == input.CellPhone || - (this.CellPhone != null && - this.CellPhone.Equals(input.CellPhone)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.AddressBookCategoryId == input.AddressBookCategoryId || - (this.AddressBookCategoryId != null && - this.AddressBookCategoryId.Equals(input.AddressBookCategoryId)) - ) && - ( - this.BusinessUnit == input.BusinessUnit || - (this.BusinessUnit != null && - this.BusinessUnit.Equals(input.BusinessUnit)) - ) && - ( - this.Class == input.Class || - (this.Class != null && - this.Class.Equals(input.Class)) - ) && - ( - this.FiscalCode == input.FiscalCode || - (this.FiscalCode != null && - this.FiscalCode.Equals(input.FiscalCode)) - ) && - ( - this.VatNumber == input.VatNumber || - (this.VatNumber != null && - this.VatNumber.Equals(input.VatNumber)) - ) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && - ( - this.AddressBookBusinessUnitCode == input.AddressBookBusinessUnitCode || - (this.AddressBookBusinessUnitCode != null && - this.AddressBookBusinessUnitCode.Equals(input.AddressBookBusinessUnitCode)) - ) && - ( - this.AddressBookNote == input.AddressBookNote || - (this.AddressBookNote != null && - this.AddressBookNote.Equals(input.AddressBookNote)) - ) && - ( - this.ExternalCode == input.ExternalCode || - (this.ExternalCode != null && - this.ExternalCode.Equals(input.ExternalCode)) - ) && - ( - this.AdditionalFields == input.AdditionalFields || - (this.AdditionalFields != null && - this.AdditionalFields.Equals(input.AdditionalFields)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Contacts != null) - hashCode = hashCode * 59 + this.Contacts.GetHashCode(); - if (this.OfficeCode != null) - hashCode = hashCode * 59 + this.OfficeCode.GetHashCode(); - if (this.PublicAdministrationCode != null) - hashCode = hashCode * 59 + this.PublicAdministrationCode.GetHashCode(); - if (this.PecAddressBook != null) - hashCode = hashCode * 59 + this.PecAddressBook.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.BusinessName != null) - hashCode = hashCode * 59 + this.BusinessName.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.PostalCode != null) - hashCode = hashCode * 59 + this.PostalCode.GetHashCode(); - if (this.Province != null) - hashCode = hashCode * 59 + this.Province.GetHashCode(); - if (this.Country != null) - hashCode = hashCode * 59 + this.Country.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.PhoneNumber != null) - hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); - if (this.CellPhone != null) - hashCode = hashCode * 59 + this.CellPhone.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.AddressBookCategoryId != null) - hashCode = hashCode * 59 + this.AddressBookCategoryId.GetHashCode(); - if (this.BusinessUnit != null) - hashCode = hashCode * 59 + this.BusinessUnit.GetHashCode(); - if (this.Class != null) - hashCode = hashCode * 59 + this.Class.GetHashCode(); - if (this.FiscalCode != null) - hashCode = hashCode * 59 + this.FiscalCode.GetHashCode(); - if (this.VatNumber != null) - hashCode = hashCode * 59 + this.VatNumber.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.AddressBookBusinessUnitCode != null) - hashCode = hashCode * 59 + this.AddressBookBusinessUnitCode.GetHashCode(); - if (this.AddressBookNote != null) - hashCode = hashCode * 59 + this.AddressBookNote.GetHashCode(); - if (this.ExternalCode != null) - hashCode = hashCode * 59 + this.ExternalCode.GetHashCode(); - if (this.AdditionalFields != null) - hashCode = hashCode * 59 + this.AdditionalFields.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AooSearchFilterDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/AooSearchFilterDto.cs deleted file mode 100644 index 1466163..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AooSearchFilterDto.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of business unit filter - /// - [DataContract] - public partial class AooSearchFilterDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Code. - /// Name. - public AooSearchFilterDto(string code = default(string), string name = default(string)) - { - this.Code = code; - this.Name = name; - } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AooSearchFilterDto {\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AooSearchFilterDto); - } - - /// - /// Returns true if AooSearchFilterDto instances are equal - /// - /// Instance of AooSearchFilterDto to be compared - /// Boolean - public bool Equals(AooSearchFilterDto input) - { - if (input == null) - return false; - - return - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArrayKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArrayKeyValueDTO.cs deleted file mode 100644 index c6f0ab7..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArrayKeyValueDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Array key value - /// - [DataContract] - public partial class ArrayKeyValueDTO : GenericKeyValueDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ArrayKeyValueDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Values. - public ArrayKeyValueDTO(List values = default(List), string className = "ArrayKeyValueDTO", string key = default(string)) : base(className, key) - { - this.Values = values; - } - - /// - /// Values - /// - /// Values - [DataMember(Name="values", EmitDefaultValue=false)] - public List Values { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArrayKeyValueDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Values: ").Append(Values).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArrayKeyValueDTO); - } - - /// - /// Returns true if ArrayKeyValueDTO instances are equal - /// - /// Instance of ArrayKeyValueDTO to be compared - /// Boolean - public bool Equals(ArrayKeyValueDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Values == input.Values || - this.Values != null && - this.Values.SequenceEqual(input.Values) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Values != null) - hashCode = hashCode * 59 + this.Values.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArxDriveFolderModeInfo.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArxDriveFolderModeInfo.cs deleted file mode 100644 index 27346c0..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArxDriveFolderModeInfo.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of information folder for ARXDrive - /// - [DataContract] - public partial class ArxDriveFolderModeInfo : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Author. - /// Folder Identifier. - /// Custom Folder Name. - /// Use Custom Name. - /// Creation Date. - /// Users. - public ArxDriveFolderModeInfo(int? id = default(int?), int? author = default(int?), int? folderId = default(int?), string customFolderName = default(string), bool? useCustomFolderName = default(bool?), DateTime? creationDateTime = default(DateTime?), List users = default(List)) - { - this.Id = id; - this.Author = author; - this.FolderId = folderId; - this.CustomFolderName = customFolderName; - this.UseCustomFolderName = useCustomFolderName; - this.CreationDateTime = creationDateTime; - this.Users = users; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Author - /// - /// Author - [DataMember(Name="author", EmitDefaultValue=false)] - public int? Author { get; set; } - - /// - /// Folder Identifier - /// - /// Folder Identifier - [DataMember(Name="folderId", EmitDefaultValue=false)] - public int? FolderId { get; set; } - - /// - /// Custom Folder Name - /// - /// Custom Folder Name - [DataMember(Name="customFolderName", EmitDefaultValue=false)] - public string CustomFolderName { get; set; } - - /// - /// Use Custom Name - /// - /// Use Custom Name - [DataMember(Name="useCustomFolderName", EmitDefaultValue=false)] - public bool? UseCustomFolderName { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="creationDateTime", EmitDefaultValue=false)] - public DateTime? CreationDateTime { get; set; } - - /// - /// Users - /// - /// Users - [DataMember(Name="users", EmitDefaultValue=false)] - public List Users { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxDriveFolderModeInfo {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Author: ").Append(Author).Append("\n"); - sb.Append(" FolderId: ").Append(FolderId).Append("\n"); - sb.Append(" CustomFolderName: ").Append(CustomFolderName).Append("\n"); - sb.Append(" UseCustomFolderName: ").Append(UseCustomFolderName).Append("\n"); - sb.Append(" CreationDateTime: ").Append(CreationDateTime).Append("\n"); - sb.Append(" Users: ").Append(Users).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxDriveFolderModeInfo); - } - - /// - /// Returns true if ArxDriveFolderModeInfo instances are equal - /// - /// Instance of ArxDriveFolderModeInfo to be compared - /// Boolean - public bool Equals(ArxDriveFolderModeInfo input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Author == input.Author || - (this.Author != null && - this.Author.Equals(input.Author)) - ) && - ( - this.FolderId == input.FolderId || - (this.FolderId != null && - this.FolderId.Equals(input.FolderId)) - ) && - ( - this.CustomFolderName == input.CustomFolderName || - (this.CustomFolderName != null && - this.CustomFolderName.Equals(input.CustomFolderName)) - ) && - ( - this.UseCustomFolderName == input.UseCustomFolderName || - (this.UseCustomFolderName != null && - this.UseCustomFolderName.Equals(input.UseCustomFolderName)) - ) && - ( - this.CreationDateTime == input.CreationDateTime || - (this.CreationDateTime != null && - this.CreationDateTime.Equals(input.CreationDateTime)) - ) && - ( - this.Users == input.Users || - this.Users != null && - this.Users.SequenceEqual(input.Users) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Author != null) - hashCode = hashCode * 59 + this.Author.GetHashCode(); - if (this.FolderId != null) - hashCode = hashCode * 59 + this.FolderId.GetHashCode(); - if (this.CustomFolderName != null) - hashCode = hashCode * 59 + this.CustomFolderName.GetHashCode(); - if (this.UseCustomFolderName != null) - hashCode = hashCode * 59 + this.UseCustomFolderName.GetHashCode(); - if (this.CreationDateTime != null) - hashCode = hashCode * 59 + this.CreationDateTime.GetHashCode(); - if (this.Users != null) - hashCode = hashCode * 59 + this.Users.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArxDriveFolderModeUserInfo.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArxDriveFolderModeUserInfo.cs deleted file mode 100644 index 9990835..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArxDriveFolderModeUserInfo.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of information user who can use the folder for ARXDrive - /// - [DataContract] - public partial class ArxDriveFolderModeUserInfo : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// User Identifier. - /// User Name. - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D . - public ArxDriveFolderModeUserInfo(int? id = default(int?), int? userId = default(int?), string userCompleteName = default(string), int? category = default(int?)) - { - this.Id = id; - this.UserId = userId; - this.UserCompleteName = userCompleteName; - this.Category = category; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// User Identifier - /// - /// User Identifier - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// User Name - /// - /// User Name - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - [DataMember(Name="category", EmitDefaultValue=false)] - public int? Category { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxDriveFolderModeUserInfo {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxDriveFolderModeUserInfo); - } - - /// - /// Returns true if ArxDriveFolderModeUserInfo instances are equal - /// - /// Instance of ArxDriveFolderModeUserInfo to be compared - /// Boolean - public bool Equals(ArxDriveFolderModeUserInfo input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignAttachmentOperationDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArxESignAttachmentOperationDto.cs deleted file mode 100644 index 60e7b87..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignAttachmentOperationDto.cs +++ /dev/null @@ -1,314 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ARXeSigN attachment operation - /// - [DataContract] - public partial class ArxESignAttachmentOperationDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ArxESignAttachmentOperationDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Name (required). - /// Page (required). - /// Size X. - /// Size Y. - /// Position X (required). - /// Position Y (required). - /// Name (required). - /// Indicates if the operation is required. - /// Document identifier (required). - public ArxESignAttachmentOperationDto(string displayName = default(string), int? page = default(int?), int? sizeX = default(int?), int? sizeY = default(int?), int? positionX = default(int?), int? positionY = default(int?), string name = default(string), bool? required = default(bool?), string documentId = default(string)) - { - // to ensure "displayName" is required (not null) - if (displayName == null) - { - throw new InvalidDataException("displayName is a required property for ArxESignAttachmentOperationDto and cannot be null"); - } - else - { - this.DisplayName = displayName; - } - // to ensure "page" is required (not null) - if (page == null) - { - throw new InvalidDataException("page is a required property for ArxESignAttachmentOperationDto and cannot be null"); - } - else - { - this.Page = page; - } - // to ensure "positionX" is required (not null) - if (positionX == null) - { - throw new InvalidDataException("positionX is a required property for ArxESignAttachmentOperationDto and cannot be null"); - } - else - { - this.PositionX = positionX; - } - // to ensure "positionY" is required (not null) - if (positionY == null) - { - throw new InvalidDataException("positionY is a required property for ArxESignAttachmentOperationDto and cannot be null"); - } - else - { - this.PositionY = positionY; - } - // to ensure "name" is required (not null) - if (name == null) - { - throw new InvalidDataException("name is a required property for ArxESignAttachmentOperationDto and cannot be null"); - } - else - { - this.Name = name; - } - // to ensure "documentId" is required (not null) - if (documentId == null) - { - throw new InvalidDataException("documentId is a required property for ArxESignAttachmentOperationDto and cannot be null"); - } - else - { - this.DocumentId = documentId; - } - this.SizeX = sizeX; - this.SizeY = sizeY; - this.Required = required; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="displayName", EmitDefaultValue=false)] - public string DisplayName { get; set; } - - /// - /// Page - /// - /// Page - [DataMember(Name="page", EmitDefaultValue=false)] - public int? Page { get; set; } - - /// - /// Size X - /// - /// Size X - [DataMember(Name="sizeX", EmitDefaultValue=false)] - public int? SizeX { get; set; } - - /// - /// Size Y - /// - /// Size Y - [DataMember(Name="sizeY", EmitDefaultValue=false)] - public int? SizeY { get; set; } - - /// - /// Position X - /// - /// Position X - [DataMember(Name="positionX", EmitDefaultValue=false)] - public int? PositionX { get; set; } - - /// - /// Position Y - /// - /// Position Y - [DataMember(Name="positionY", EmitDefaultValue=false)] - public int? PositionY { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Indicates if the operation is required - /// - /// Indicates if the operation is required - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Document identifier - /// - /// Document identifier - [DataMember(Name="documentId", EmitDefaultValue=false)] - public string DocumentId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignAttachmentOperationDto {\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Page: ").Append(Page).Append("\n"); - sb.Append(" SizeX: ").Append(SizeX).Append("\n"); - sb.Append(" SizeY: ").Append(SizeY).Append("\n"); - sb.Append(" PositionX: ").Append(PositionX).Append("\n"); - sb.Append(" PositionY: ").Append(PositionY).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" DocumentId: ").Append(DocumentId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignAttachmentOperationDto); - } - - /// - /// Returns true if ArxESignAttachmentOperationDto instances are equal - /// - /// Instance of ArxESignAttachmentOperationDto to be compared - /// Boolean - public bool Equals(ArxESignAttachmentOperationDto input) - { - if (input == null) - return false; - - return - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && - ( - this.Page == input.Page || - (this.Page != null && - this.Page.Equals(input.Page)) - ) && - ( - this.SizeX == input.SizeX || - (this.SizeX != null && - this.SizeX.Equals(input.SizeX)) - ) && - ( - this.SizeY == input.SizeY || - (this.SizeY != null && - this.SizeY.Equals(input.SizeY)) - ) && - ( - this.PositionX == input.PositionX || - (this.PositionX != null && - this.PositionX.Equals(input.PositionX)) - ) && - ( - this.PositionY == input.PositionY || - (this.PositionY != null && - this.PositionY.Equals(input.PositionY)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.DocumentId == input.DocumentId || - (this.DocumentId != null && - this.DocumentId.Equals(input.DocumentId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DisplayName != null) - hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); - if (this.Page != null) - hashCode = hashCode * 59 + this.Page.GetHashCode(); - if (this.SizeX != null) - hashCode = hashCode * 59 + this.SizeX.GetHashCode(); - if (this.SizeY != null) - hashCode = hashCode * 59 + this.SizeY.GetHashCode(); - if (this.PositionX != null) - hashCode = hashCode * 59 + this.PositionX.GetHashCode(); - if (this.PositionY != null) - hashCode = hashCode * 59 + this.PositionY.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.DocumentId != null) - hashCode = hashCode * 59 + this.DocumentId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignCompletedDocumentBaseDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArxESignCompletedDocumentBaseDto.cs deleted file mode 100644 index 63d01df..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignCompletedDocumentBaseDto.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ARXeSigN completed document base - /// - [DataContract] - public partial class ArxESignCompletedDocumentBaseDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// File name. - /// Document id specified at insert time. - /// Buffer identifier. - public ArxESignCompletedDocumentBaseDto(string fileName = default(string), string id = default(string), string bufferId = default(string)) - { - this.FileName = fileName; - this.Id = id; - this.BufferId = bufferId; - } - - /// - /// File name - /// - /// File name - [DataMember(Name="fileName", EmitDefaultValue=false)] - public string FileName { get; set; } - - /// - /// Document id specified at insert time - /// - /// Document id specified at insert time - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Buffer identifier - /// - /// Buffer identifier - [DataMember(Name="bufferId", EmitDefaultValue=false)] - public string BufferId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignCompletedDocumentBaseDto {\n"); - sb.Append(" FileName: ").Append(FileName).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" BufferId: ").Append(BufferId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignCompletedDocumentBaseDto); - } - - /// - /// Returns true if ArxESignCompletedDocumentBaseDto instances are equal - /// - /// Instance of ArxESignCompletedDocumentBaseDto to be compared - /// Boolean - public bool Equals(ArxESignCompletedDocumentBaseDto input) - { - if (input == null) - return false; - - return - ( - this.FileName == input.FileName || - (this.FileName != null && - this.FileName.Equals(input.FileName)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.BufferId == input.BufferId || - (this.BufferId != null && - this.BufferId.Equals(input.BufferId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.FileName != null) - hashCode = hashCode * 59 + this.FileName.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.BufferId != null) - hashCode = hashCode * 59 + this.BufferId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignCompletedDocumentDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArxESignCompletedDocumentDto.cs deleted file mode 100644 index eda5c99..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignCompletedDocumentDto.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ARXeSigN completed document - /// - [DataContract] - public partial class ArxESignCompletedDocumentDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Attachment files. - /// Module field values. - /// File name. - /// Document id specified at insert time. - /// Buffer identifier. - public ArxESignCompletedDocumentDto(List attachments = default(List), List moduleFieldValues = default(List), string fileName = default(string), string id = default(string), string bufferId = default(string)) - { - this.Attachments = attachments; - this.ModuleFieldValues = moduleFieldValues; - this.FileName = fileName; - this.Id = id; - this.BufferId = bufferId; - } - - /// - /// Attachment files - /// - /// Attachment files - [DataMember(Name="attachments", EmitDefaultValue=false)] - public List Attachments { get; set; } - - /// - /// Module field values - /// - /// Module field values - [DataMember(Name="moduleFieldValues", EmitDefaultValue=false)] - public List ModuleFieldValues { get; set; } - - /// - /// File name - /// - /// File name - [DataMember(Name="fileName", EmitDefaultValue=false)] - public string FileName { get; set; } - - /// - /// Document id specified at insert time - /// - /// Document id specified at insert time - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Buffer identifier - /// - /// Buffer identifier - [DataMember(Name="bufferId", EmitDefaultValue=false)] - public string BufferId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignCompletedDocumentDto {\n"); - sb.Append(" Attachments: ").Append(Attachments).Append("\n"); - sb.Append(" ModuleFieldValues: ").Append(ModuleFieldValues).Append("\n"); - sb.Append(" FileName: ").Append(FileName).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" BufferId: ").Append(BufferId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignCompletedDocumentDto); - } - - /// - /// Returns true if ArxESignCompletedDocumentDto instances are equal - /// - /// Instance of ArxESignCompletedDocumentDto to be compared - /// Boolean - public bool Equals(ArxESignCompletedDocumentDto input) - { - if (input == null) - return false; - - return - ( - this.Attachments == input.Attachments || - this.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.ModuleFieldValues == input.ModuleFieldValues || - this.ModuleFieldValues != null && - this.ModuleFieldValues.SequenceEqual(input.ModuleFieldValues) - ) && - ( - this.FileName == input.FileName || - (this.FileName != null && - this.FileName.Equals(input.FileName)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.BufferId == input.BufferId || - (this.BufferId != null && - this.BufferId.Equals(input.BufferId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Attachments != null) - hashCode = hashCode * 59 + this.Attachments.GetHashCode(); - if (this.ModuleFieldValues != null) - hashCode = hashCode * 59 + this.ModuleFieldValues.GetHashCode(); - if (this.FileName != null) - hashCode = hashCode * 59 + this.FileName.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.BufferId != null) - hashCode = hashCode * 59 + this.BufferId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignDocumentDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArxESignDocumentDto.cs deleted file mode 100644 index 5f09eb8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignDocumentDto.cs +++ /dev/null @@ -1,230 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ARXeSigN document - /// - [DataContract] - public partial class ArxESignDocumentDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ArxESignDocumentDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Document identifier, used to track document once completed (required). - /// Reading order (required). - /// Possible values: 0: Docnumber 1: Buffer (required). - /// Document identifier according to InputMode (required). - /// Module field value to override. - public ArxESignDocumentDto(string id = default(string), int? order = default(int?), int? inputMode = default(int?), string inputSystemId = default(string), List moduleFieldOverrideValues = default(List)) - { - // to ensure "id" is required (not null) - if (id == null) - { - throw new InvalidDataException("id is a required property for ArxESignDocumentDto and cannot be null"); - } - else - { - this.Id = id; - } - // to ensure "order" is required (not null) - if (order == null) - { - throw new InvalidDataException("order is a required property for ArxESignDocumentDto and cannot be null"); - } - else - { - this.Order = order; - } - // to ensure "inputMode" is required (not null) - if (inputMode == null) - { - throw new InvalidDataException("inputMode is a required property for ArxESignDocumentDto and cannot be null"); - } - else - { - this.InputMode = inputMode; - } - // to ensure "inputSystemId" is required (not null) - if (inputSystemId == null) - { - throw new InvalidDataException("inputSystemId is a required property for ArxESignDocumentDto and cannot be null"); - } - else - { - this.InputSystemId = inputSystemId; - } - this.ModuleFieldOverrideValues = moduleFieldOverrideValues; - } - - /// - /// Document identifier, used to track document once completed - /// - /// Document identifier, used to track document once completed - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Reading order - /// - /// Reading order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// Possible values: 0: Docnumber 1: Buffer - /// - /// Possible values: 0: Docnumber 1: Buffer - [DataMember(Name="inputMode", EmitDefaultValue=false)] - public int? InputMode { get; set; } - - /// - /// Document identifier according to InputMode - /// - /// Document identifier according to InputMode - [DataMember(Name="inputSystemId", EmitDefaultValue=false)] - public string InputSystemId { get; set; } - - /// - /// Module field value to override - /// - /// Module field value to override - [DataMember(Name="moduleFieldOverrideValues", EmitDefaultValue=false)] - public List ModuleFieldOverrideValues { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignDocumentDto {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" InputMode: ").Append(InputMode).Append("\n"); - sb.Append(" InputSystemId: ").Append(InputSystemId).Append("\n"); - sb.Append(" ModuleFieldOverrideValues: ").Append(ModuleFieldOverrideValues).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignDocumentDto); - } - - /// - /// Returns true if ArxESignDocumentDto instances are equal - /// - /// Instance of ArxESignDocumentDto to be compared - /// Boolean - public bool Equals(ArxESignDocumentDto input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.InputMode == input.InputMode || - (this.InputMode != null && - this.InputMode.Equals(input.InputMode)) - ) && - ( - this.InputSystemId == input.InputSystemId || - (this.InputSystemId != null && - this.InputSystemId.Equals(input.InputSystemId)) - ) && - ( - this.ModuleFieldOverrideValues == input.ModuleFieldOverrideValues || - this.ModuleFieldOverrideValues != null && - this.ModuleFieldOverrideValues.SequenceEqual(input.ModuleFieldOverrideValues) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - if (this.InputMode != null) - hashCode = hashCode * 59 + this.InputMode.GetHashCode(); - if (this.InputSystemId != null) - hashCode = hashCode * 59 + this.InputSystemId.GetHashCode(); - if (this.ModuleFieldOverrideValues != null) - hashCode = hashCode * 59 + this.ModuleFieldOverrideValues.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignDownloadResponseDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArxESignDownloadResponseDto.cs deleted file mode 100644 index a77945b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignDownloadResponseDto.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Model for sign concluding process - /// - [DataContract] - public partial class ArxESignDownloadResponseDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Signed documents. - /// Sign process log file. - public ArxESignDownloadResponseDto(List signDocuments = default(List), ArxESignCompletedDocumentBaseDto logFile = default(ArxESignCompletedDocumentBaseDto)) - { - this.SignDocuments = signDocuments; - this.LogFile = logFile; - } - - /// - /// Signed documents - /// - /// Signed documents - [DataMember(Name="signDocuments", EmitDefaultValue=false)] - public List SignDocuments { get; set; } - - /// - /// Sign process log file - /// - /// Sign process log file - [DataMember(Name="logFile", EmitDefaultValue=false)] - public ArxESignCompletedDocumentBaseDto LogFile { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignDownloadResponseDto {\n"); - sb.Append(" SignDocuments: ").Append(SignDocuments).Append("\n"); - sb.Append(" LogFile: ").Append(LogFile).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignDownloadResponseDto); - } - - /// - /// Returns true if ArxESignDownloadResponseDto instances are equal - /// - /// Instance of ArxESignDownloadResponseDto to be compared - /// Boolean - public bool Equals(ArxESignDownloadResponseDto input) - { - if (input == null) - return false; - - return - ( - this.SignDocuments == input.SignDocuments || - this.SignDocuments != null && - this.SignDocuments.SequenceEqual(input.SignDocuments) - ) && - ( - this.LogFile == input.LogFile || - (this.LogFile != null && - this.LogFile.Equals(input.LogFile)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SignDocuments != null) - hashCode = hashCode * 59 + this.SignDocuments.GetHashCode(); - if (this.LogFile != null) - hashCode = hashCode * 59 + this.LogFile.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignInsertRecipientDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArxESignInsertRecipientDto.cs deleted file mode 100644 index 8613f3e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignInsertRecipientDto.cs +++ /dev/null @@ -1,371 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ARXeSigN recipient - /// - [DataContract] - public partial class ArxESignInsertRecipientDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ArxESignInsertRecipientDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Indicates if apply timestamp. - /// Read confirmation. - /// attachmentOperations. - /// moduleFieldOperations. - /// signOperations. - /// Mobile Phone. - /// Email (required). - /// First name (required). - /// Last name (required). - /// Sign flow order (required). - /// Possible values: 0: Signer 1: InCopy (required). - /// Possible values: 0: None 1: Sms . - /// Language. - public ArxESignInsertRecipientDto(bool? applyTimestamp = default(bool?), bool? confirmRead = default(bool?), List attachmentOperations = default(List), List moduleFieldOperations = default(List), List signOperations = default(List), string mobilePhone = default(string), string email = default(string), string firstName = default(string), string lastName = default(string), int? order = default(int?), int? recipientKind = default(int?), int? recipientAuthType = default(int?), string language = default(string)) - { - // to ensure "email" is required (not null) - if (email == null) - { - throw new InvalidDataException("email is a required property for ArxESignInsertRecipientDto and cannot be null"); - } - else - { - this.Email = email; - } - // to ensure "firstName" is required (not null) - if (firstName == null) - { - throw new InvalidDataException("firstName is a required property for ArxESignInsertRecipientDto and cannot be null"); - } - else - { - this.FirstName = firstName; - } - // to ensure "lastName" is required (not null) - if (lastName == null) - { - throw new InvalidDataException("lastName is a required property for ArxESignInsertRecipientDto and cannot be null"); - } - else - { - this.LastName = lastName; - } - // to ensure "order" is required (not null) - if (order == null) - { - throw new InvalidDataException("order is a required property for ArxESignInsertRecipientDto and cannot be null"); - } - else - { - this.Order = order; - } - // to ensure "recipientKind" is required (not null) - if (recipientKind == null) - { - throw new InvalidDataException("recipientKind is a required property for ArxESignInsertRecipientDto and cannot be null"); - } - else - { - this.RecipientKind = recipientKind; - } - this.ApplyTimestamp = applyTimestamp; - this.ConfirmRead = confirmRead; - this.AttachmentOperations = attachmentOperations; - this.ModuleFieldOperations = moduleFieldOperations; - this.SignOperations = signOperations; - this.MobilePhone = mobilePhone; - this.RecipientAuthType = recipientAuthType; - this.Language = language; - } - - /// - /// Indicates if apply timestamp - /// - /// Indicates if apply timestamp - [DataMember(Name="applyTimestamp", EmitDefaultValue=false)] - public bool? ApplyTimestamp { get; set; } - - /// - /// Read confirmation - /// - /// Read confirmation - [DataMember(Name="confirmRead", EmitDefaultValue=false)] - public bool? ConfirmRead { get; set; } - - /// - /// Gets or Sets AttachmentOperations - /// - [DataMember(Name="attachmentOperations", EmitDefaultValue=false)] - public List AttachmentOperations { get; set; } - - /// - /// Gets or Sets ModuleFieldOperations - /// - [DataMember(Name="moduleFieldOperations", EmitDefaultValue=false)] - public List ModuleFieldOperations { get; set; } - - /// - /// Gets or Sets SignOperations - /// - [DataMember(Name="signOperations", EmitDefaultValue=false)] - public List SignOperations { get; set; } - - /// - /// Mobile Phone - /// - /// Mobile Phone - [DataMember(Name="mobilePhone", EmitDefaultValue=false)] - public string MobilePhone { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// First name - /// - /// First name - [DataMember(Name="firstName", EmitDefaultValue=false)] - public string FirstName { get; set; } - - /// - /// Last name - /// - /// Last name - [DataMember(Name="lastName", EmitDefaultValue=false)] - public string LastName { get; set; } - - /// - /// Sign flow order - /// - /// Sign flow order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// Possible values: 0: Signer 1: InCopy - /// - /// Possible values: 0: Signer 1: InCopy - [DataMember(Name="recipientKind", EmitDefaultValue=false)] - public int? RecipientKind { get; set; } - - /// - /// Possible values: 0: None 1: Sms - /// - /// Possible values: 0: None 1: Sms - [DataMember(Name="recipientAuthType", EmitDefaultValue=false)] - public int? RecipientAuthType { get; set; } - - /// - /// Language - /// - /// Language - [DataMember(Name="language", EmitDefaultValue=false)] - public string Language { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignInsertRecipientDto {\n"); - sb.Append(" ApplyTimestamp: ").Append(ApplyTimestamp).Append("\n"); - sb.Append(" ConfirmRead: ").Append(ConfirmRead).Append("\n"); - sb.Append(" AttachmentOperations: ").Append(AttachmentOperations).Append("\n"); - sb.Append(" ModuleFieldOperations: ").Append(ModuleFieldOperations).Append("\n"); - sb.Append(" SignOperations: ").Append(SignOperations).Append("\n"); - sb.Append(" MobilePhone: ").Append(MobilePhone).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" FirstName: ").Append(FirstName).Append("\n"); - sb.Append(" LastName: ").Append(LastName).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" RecipientKind: ").Append(RecipientKind).Append("\n"); - sb.Append(" RecipientAuthType: ").Append(RecipientAuthType).Append("\n"); - sb.Append(" Language: ").Append(Language).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignInsertRecipientDto); - } - - /// - /// Returns true if ArxESignInsertRecipientDto instances are equal - /// - /// Instance of ArxESignInsertRecipientDto to be compared - /// Boolean - public bool Equals(ArxESignInsertRecipientDto input) - { - if (input == null) - return false; - - return - ( - this.ApplyTimestamp == input.ApplyTimestamp || - (this.ApplyTimestamp != null && - this.ApplyTimestamp.Equals(input.ApplyTimestamp)) - ) && - ( - this.ConfirmRead == input.ConfirmRead || - (this.ConfirmRead != null && - this.ConfirmRead.Equals(input.ConfirmRead)) - ) && - ( - this.AttachmentOperations == input.AttachmentOperations || - this.AttachmentOperations != null && - this.AttachmentOperations.SequenceEqual(input.AttachmentOperations) - ) && - ( - this.ModuleFieldOperations == input.ModuleFieldOperations || - this.ModuleFieldOperations != null && - this.ModuleFieldOperations.SequenceEqual(input.ModuleFieldOperations) - ) && - ( - this.SignOperations == input.SignOperations || - this.SignOperations != null && - this.SignOperations.SequenceEqual(input.SignOperations) - ) && - ( - this.MobilePhone == input.MobilePhone || - (this.MobilePhone != null && - this.MobilePhone.Equals(input.MobilePhone)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.FirstName == input.FirstName || - (this.FirstName != null && - this.FirstName.Equals(input.FirstName)) - ) && - ( - this.LastName == input.LastName || - (this.LastName != null && - this.LastName.Equals(input.LastName)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.RecipientKind == input.RecipientKind || - (this.RecipientKind != null && - this.RecipientKind.Equals(input.RecipientKind)) - ) && - ( - this.RecipientAuthType == input.RecipientAuthType || - (this.RecipientAuthType != null && - this.RecipientAuthType.Equals(input.RecipientAuthType)) - ) && - ( - this.Language == input.Language || - (this.Language != null && - this.Language.Equals(input.Language)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ApplyTimestamp != null) - hashCode = hashCode * 59 + this.ApplyTimestamp.GetHashCode(); - if (this.ConfirmRead != null) - hashCode = hashCode * 59 + this.ConfirmRead.GetHashCode(); - if (this.AttachmentOperations != null) - hashCode = hashCode * 59 + this.AttachmentOperations.GetHashCode(); - if (this.ModuleFieldOperations != null) - hashCode = hashCode * 59 + this.ModuleFieldOperations.GetHashCode(); - if (this.SignOperations != null) - hashCode = hashCode * 59 + this.SignOperations.GetHashCode(); - if (this.MobilePhone != null) - hashCode = hashCode * 59 + this.MobilePhone.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.FirstName != null) - hashCode = hashCode * 59 + this.FirstName.GetHashCode(); - if (this.LastName != null) - hashCode = hashCode * 59 + this.LastName.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - if (this.RecipientKind != null) - hashCode = hashCode * 59 + this.RecipientKind.GetHashCode(); - if (this.RecipientAuthType != null) - hashCode = hashCode * 59 + this.RecipientAuthType.GetHashCode(); - if (this.Language != null) - hashCode = hashCode * 59 + this.Language.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignInsertRequestDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArxESignInsertRequestDto.cs deleted file mode 100644 index 833fdd9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignInsertRequestDto.cs +++ /dev/null @@ -1,251 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Insert a new ARXeSigN - /// - [DataContract] - public partial class ArxESignInsertRequestDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ArxESignInsertRequestDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Name of sign process (required). - /// Mail subject. - /// Extra mail body. - /// Expiration days. - /// Recipients (required). - /// Documments (required). - public ArxESignInsertRequestDto(string name = default(string), string mailSubject = default(string), string extraBodyMessage = default(string), int? expirationDays = default(int?), List recipients = default(List), List documents = default(List)) - { - // to ensure "name" is required (not null) - if (name == null) - { - throw new InvalidDataException("name is a required property for ArxESignInsertRequestDto and cannot be null"); - } - else - { - this.Name = name; - } - // to ensure "recipients" is required (not null) - if (recipients == null) - { - throw new InvalidDataException("recipients is a required property for ArxESignInsertRequestDto and cannot be null"); - } - else - { - this.Recipients = recipients; - } - // to ensure "documents" is required (not null) - if (documents == null) - { - throw new InvalidDataException("documents is a required property for ArxESignInsertRequestDto and cannot be null"); - } - else - { - this.Documents = documents; - } - this.MailSubject = mailSubject; - this.ExtraBodyMessage = extraBodyMessage; - this.ExpirationDays = expirationDays; - } - - /// - /// Name of sign process - /// - /// Name of sign process - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Mail subject - /// - /// Mail subject - [DataMember(Name="mailSubject", EmitDefaultValue=false)] - public string MailSubject { get; set; } - - /// - /// Extra mail body - /// - /// Extra mail body - [DataMember(Name="extraBodyMessage", EmitDefaultValue=false)] - public string ExtraBodyMessage { get; set; } - - /// - /// Expiration days - /// - /// Expiration days - [DataMember(Name="expirationDays", EmitDefaultValue=false)] - public int? ExpirationDays { get; set; } - - /// - /// Recipients - /// - /// Recipients - [DataMember(Name="recipients", EmitDefaultValue=false)] - public List Recipients { get; set; } - - /// - /// Documments - /// - /// Documments - [DataMember(Name="documents", EmitDefaultValue=false)] - public List Documents { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignInsertRequestDto {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" MailSubject: ").Append(MailSubject).Append("\n"); - sb.Append(" ExtraBodyMessage: ").Append(ExtraBodyMessage).Append("\n"); - sb.Append(" ExpirationDays: ").Append(ExpirationDays).Append("\n"); - sb.Append(" Recipients: ").Append(Recipients).Append("\n"); - sb.Append(" Documents: ").Append(Documents).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignInsertRequestDto); - } - - /// - /// Returns true if ArxESignInsertRequestDto instances are equal - /// - /// Instance of ArxESignInsertRequestDto to be compared - /// Boolean - public bool Equals(ArxESignInsertRequestDto input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.MailSubject == input.MailSubject || - (this.MailSubject != null && - this.MailSubject.Equals(input.MailSubject)) - ) && - ( - this.ExtraBodyMessage == input.ExtraBodyMessage || - (this.ExtraBodyMessage != null && - this.ExtraBodyMessage.Equals(input.ExtraBodyMessage)) - ) && - ( - this.ExpirationDays == input.ExpirationDays || - (this.ExpirationDays != null && - this.ExpirationDays.Equals(input.ExpirationDays)) - ) && - ( - this.Recipients == input.Recipients || - this.Recipients != null && - this.Recipients.SequenceEqual(input.Recipients) - ) && - ( - this.Documents == input.Documents || - this.Documents != null && - this.Documents.SequenceEqual(input.Documents) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.MailSubject != null) - hashCode = hashCode * 59 + this.MailSubject.GetHashCode(); - if (this.ExtraBodyMessage != null) - hashCode = hashCode * 59 + this.ExtraBodyMessage.GetHashCode(); - if (this.ExpirationDays != null) - hashCode = hashCode * 59 + this.ExpirationDays.GetHashCode(); - if (this.Recipients != null) - hashCode = hashCode * 59 + this.Recipients.GetHashCode(); - if (this.Documents != null) - hashCode = hashCode * 59 + this.Documents.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - // ExpirationDays (int?) maximum - if(this.ExpirationDays > (int?)28) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationDays, must be a value less than or equal to 28.", new [] { "ExpirationDays" }); - } - - // ExpirationDays (int?) minimum - if(this.ExpirationDays < (int?)1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationDays, must be a value greater than or equal to 1.", new [] { "ExpirationDays" }); - } - - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignInsertResponseDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArxESignInsertResponseDto.cs deleted file mode 100644 index 1ab1f9b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignInsertResponseDto.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ARXeSigN insert response - /// - [DataContract] - public partial class ArxESignInsertResponseDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Sign flow response Id. - public ArxESignInsertResponseDto(string eSignResponseId = default(string)) - { - this.ESignResponseId = eSignResponseId; - } - - /// - /// Sign flow response Id - /// - /// Sign flow response Id - [DataMember(Name="eSignResponseId", EmitDefaultValue=false)] - public string ESignResponseId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignInsertResponseDto {\n"); - sb.Append(" ESignResponseId: ").Append(ESignResponseId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignInsertResponseDto); - } - - /// - /// Returns true if ArxESignInsertResponseDto instances are equal - /// - /// Instance of ArxESignInsertResponseDto to be compared - /// Boolean - public bool Equals(ArxESignInsertResponseDto input) - { - if (input == null) - return false; - - return - ( - this.ESignResponseId == input.ESignResponseId || - (this.ESignResponseId != null && - this.ESignResponseId.Equals(input.ESignResponseId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ESignResponseId != null) - hashCode = hashCode * 59 + this.ESignResponseId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignModuleFieldOperationDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArxESignModuleFieldOperationDto.cs deleted file mode 100644 index e169252..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignModuleFieldOperationDto.cs +++ /dev/null @@ -1,180 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ARXeSigN module operation - /// - [DataContract] - public partial class ArxESignModuleFieldOperationDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ArxESignModuleFieldOperationDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Name (required). - /// Indicates if the operation is required. - /// Document identifier (required). - public ArxESignModuleFieldOperationDto(string name = default(string), bool? required = default(bool?), string documentId = default(string)) - { - // to ensure "name" is required (not null) - if (name == null) - { - throw new InvalidDataException("name is a required property for ArxESignModuleFieldOperationDto and cannot be null"); - } - else - { - this.Name = name; - } - // to ensure "documentId" is required (not null) - if (documentId == null) - { - throw new InvalidDataException("documentId is a required property for ArxESignModuleFieldOperationDto and cannot be null"); - } - else - { - this.DocumentId = documentId; - } - this.Required = required; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Indicates if the operation is required - /// - /// Indicates if the operation is required - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Document identifier - /// - /// Document identifier - [DataMember(Name="documentId", EmitDefaultValue=false)] - public string DocumentId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignModuleFieldOperationDto {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" DocumentId: ").Append(DocumentId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignModuleFieldOperationDto); - } - - /// - /// Returns true if ArxESignModuleFieldOperationDto instances are equal - /// - /// Instance of ArxESignModuleFieldOperationDto to be compared - /// Boolean - public bool Equals(ArxESignModuleFieldOperationDto input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.DocumentId == input.DocumentId || - (this.DocumentId != null && - this.DocumentId.Equals(input.DocumentId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.DocumentId != null) - hashCode = hashCode * 59 + this.DocumentId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignModuleFieldValueDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArxESignModuleFieldValueDto.cs deleted file mode 100644 index f622941..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignModuleFieldValueDto.cs +++ /dev/null @@ -1,163 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ARXeSigN Module field value - /// - [DataContract] - public partial class ArxESignModuleFieldValueDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ArxESignModuleFieldValueDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Field Name (required). - /// Module field averride value (required). - public ArxESignModuleFieldValueDto(string name = default(string), string value = default(string)) - { - // to ensure "name" is required (not null) - if (name == null) - { - throw new InvalidDataException("name is a required property for ArxESignModuleFieldValueDto and cannot be null"); - } - else - { - this.Name = name; - } - // to ensure "value" is required (not null) - if (value == null) - { - throw new InvalidDataException("value is a required property for ArxESignModuleFieldValueDto and cannot be null"); - } - else - { - this.Value = value; - } - } - - /// - /// Field Name - /// - /// Field Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Module field averride value - /// - /// Module field averride value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignModuleFieldValueDto {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignModuleFieldValueDto); - } - - /// - /// Returns true if ArxESignModuleFieldValueDto instances are equal - /// - /// Instance of ArxESignModuleFieldValueDto to be compared - /// Boolean - public bool Equals(ArxESignModuleFieldValueDto input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignSignOperationDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArxESignSignOperationDto.cs deleted file mode 100644 index dd98d39..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignSignOperationDto.cs +++ /dev/null @@ -1,273 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ARXeSigN operation - /// - [DataContract] - public partial class ArxESignSignOperationDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ArxESignSignOperationDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Click 1: Draw 2: Type (required). - /// Display IP in signature. - /// Display Name in signature. - /// Display Signature date in signature. - /// Display email in signature. - /// Name (required). - /// Indicates if the operation is required. - /// Document identifier (required). - public ArxESignSignOperationDto(int? signType = default(int?), bool? displayIp = default(bool?), bool? displayName = default(bool?), bool? displaySignatureDate = default(bool?), bool? displayEmail = default(bool?), string name = default(string), bool? required = default(bool?), string documentId = default(string)) - { - // to ensure "signType" is required (not null) - if (signType == null) - { - throw new InvalidDataException("signType is a required property for ArxESignSignOperationDto and cannot be null"); - } - else - { - this.SignType = signType; - } - // to ensure "name" is required (not null) - if (name == null) - { - throw new InvalidDataException("name is a required property for ArxESignSignOperationDto and cannot be null"); - } - else - { - this.Name = name; - } - // to ensure "documentId" is required (not null) - if (documentId == null) - { - throw new InvalidDataException("documentId is a required property for ArxESignSignOperationDto and cannot be null"); - } - else - { - this.DocumentId = documentId; - } - this.DisplayIp = displayIp; - this.DisplayName = displayName; - this.DisplaySignatureDate = displaySignatureDate; - this.DisplayEmail = displayEmail; - this.Required = required; - } - - /// - /// Possible values: 0: Click 1: Draw 2: Type - /// - /// Possible values: 0: Click 1: Draw 2: Type - [DataMember(Name="signType", EmitDefaultValue=false)] - public int? SignType { get; set; } - - /// - /// Display IP in signature - /// - /// Display IP in signature - [DataMember(Name="displayIp", EmitDefaultValue=false)] - public bool? DisplayIp { get; set; } - - /// - /// Display Name in signature - /// - /// Display Name in signature - [DataMember(Name="displayName", EmitDefaultValue=false)] - public bool? DisplayName { get; set; } - - /// - /// Display Signature date in signature - /// - /// Display Signature date in signature - [DataMember(Name="displaySignatureDate", EmitDefaultValue=false)] - public bool? DisplaySignatureDate { get; set; } - - /// - /// Display email in signature - /// - /// Display email in signature - [DataMember(Name="displayEmail", EmitDefaultValue=false)] - public bool? DisplayEmail { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Indicates if the operation is required - /// - /// Indicates if the operation is required - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Document identifier - /// - /// Document identifier - [DataMember(Name="documentId", EmitDefaultValue=false)] - public string DocumentId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignSignOperationDto {\n"); - sb.Append(" SignType: ").Append(SignType).Append("\n"); - sb.Append(" DisplayIp: ").Append(DisplayIp).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" DisplaySignatureDate: ").Append(DisplaySignatureDate).Append("\n"); - sb.Append(" DisplayEmail: ").Append(DisplayEmail).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" DocumentId: ").Append(DocumentId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignSignOperationDto); - } - - /// - /// Returns true if ArxESignSignOperationDto instances are equal - /// - /// Instance of ArxESignSignOperationDto to be compared - /// Boolean - public bool Equals(ArxESignSignOperationDto input) - { - if (input == null) - return false; - - return - ( - this.SignType == input.SignType || - (this.SignType != null && - this.SignType.Equals(input.SignType)) - ) && - ( - this.DisplayIp == input.DisplayIp || - (this.DisplayIp != null && - this.DisplayIp.Equals(input.DisplayIp)) - ) && - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && - ( - this.DisplaySignatureDate == input.DisplaySignatureDate || - (this.DisplaySignatureDate != null && - this.DisplaySignatureDate.Equals(input.DisplaySignatureDate)) - ) && - ( - this.DisplayEmail == input.DisplayEmail || - (this.DisplayEmail != null && - this.DisplayEmail.Equals(input.DisplayEmail)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.DocumentId == input.DocumentId || - (this.DocumentId != null && - this.DocumentId.Equals(input.DocumentId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SignType != null) - hashCode = hashCode * 59 + this.SignType.GetHashCode(); - if (this.DisplayIp != null) - hashCode = hashCode * 59 + this.DisplayIp.GetHashCode(); - if (this.DisplayName != null) - hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); - if (this.DisplaySignatureDate != null) - hashCode = hashCode * 59 + this.DisplaySignatureDate.GetHashCode(); - if (this.DisplayEmail != null) - hashCode = hashCode * 59 + this.DisplayEmail.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.DocumentId != null) - hashCode = hashCode * 59 + this.DocumentId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignStatusRecipientDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArxESignStatusRecipientDto.cs deleted file mode 100644 index a7a7a90..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignStatusRecipientDto.cs +++ /dev/null @@ -1,338 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Sign reicpient status - /// - [DataContract] - public partial class ArxESignStatusRecipientDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ArxESignStatusRecipientDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: NotSigned 1: Signed 2: Rejected . - /// signedDate. - /// statusReason. - /// Mobile Phone. - /// Email (required). - /// First name (required). - /// Last name (required). - /// Sign flow order (required). - /// Possible values: 0: Signer 1: InCopy (required). - /// Possible values: 0: None 1: Sms . - /// Language. - public ArxESignStatusRecipientDto(int? status = default(int?), DateTime? signedDate = default(DateTime?), string statusReason = default(string), string mobilePhone = default(string), string email = default(string), string firstName = default(string), string lastName = default(string), int? order = default(int?), int? recipientKind = default(int?), int? recipientAuthType = default(int?), string language = default(string)) - { - // to ensure "email" is required (not null) - if (email == null) - { - throw new InvalidDataException("email is a required property for ArxESignStatusRecipientDto and cannot be null"); - } - else - { - this.Email = email; - } - // to ensure "firstName" is required (not null) - if (firstName == null) - { - throw new InvalidDataException("firstName is a required property for ArxESignStatusRecipientDto and cannot be null"); - } - else - { - this.FirstName = firstName; - } - // to ensure "lastName" is required (not null) - if (lastName == null) - { - throw new InvalidDataException("lastName is a required property for ArxESignStatusRecipientDto and cannot be null"); - } - else - { - this.LastName = lastName; - } - // to ensure "order" is required (not null) - if (order == null) - { - throw new InvalidDataException("order is a required property for ArxESignStatusRecipientDto and cannot be null"); - } - else - { - this.Order = order; - } - // to ensure "recipientKind" is required (not null) - if (recipientKind == null) - { - throw new InvalidDataException("recipientKind is a required property for ArxESignStatusRecipientDto and cannot be null"); - } - else - { - this.RecipientKind = recipientKind; - } - this.Status = status; - this.SignedDate = signedDate; - this.StatusReason = statusReason; - this.MobilePhone = mobilePhone; - this.RecipientAuthType = recipientAuthType; - this.Language = language; - } - - /// - /// Possible values: 0: NotSigned 1: Signed 2: Rejected - /// - /// Possible values: 0: NotSigned 1: Signed 2: Rejected - [DataMember(Name="status", EmitDefaultValue=false)] - public int? Status { get; set; } - - /// - /// Gets or Sets SignedDate - /// - [DataMember(Name="signedDate", EmitDefaultValue=false)] - public DateTime? SignedDate { get; set; } - - /// - /// Gets or Sets StatusReason - /// - [DataMember(Name="statusReason", EmitDefaultValue=false)] - public string StatusReason { get; set; } - - /// - /// Mobile Phone - /// - /// Mobile Phone - [DataMember(Name="mobilePhone", EmitDefaultValue=false)] - public string MobilePhone { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// First name - /// - /// First name - [DataMember(Name="firstName", EmitDefaultValue=false)] - public string FirstName { get; set; } - - /// - /// Last name - /// - /// Last name - [DataMember(Name="lastName", EmitDefaultValue=false)] - public string LastName { get; set; } - - /// - /// Sign flow order - /// - /// Sign flow order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// Possible values: 0: Signer 1: InCopy - /// - /// Possible values: 0: Signer 1: InCopy - [DataMember(Name="recipientKind", EmitDefaultValue=false)] - public int? RecipientKind { get; set; } - - /// - /// Possible values: 0: None 1: Sms - /// - /// Possible values: 0: None 1: Sms - [DataMember(Name="recipientAuthType", EmitDefaultValue=false)] - public int? RecipientAuthType { get; set; } - - /// - /// Language - /// - /// Language - [DataMember(Name="language", EmitDefaultValue=false)] - public string Language { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignStatusRecipientDto {\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" SignedDate: ").Append(SignedDate).Append("\n"); - sb.Append(" StatusReason: ").Append(StatusReason).Append("\n"); - sb.Append(" MobilePhone: ").Append(MobilePhone).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" FirstName: ").Append(FirstName).Append("\n"); - sb.Append(" LastName: ").Append(LastName).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" RecipientKind: ").Append(RecipientKind).Append("\n"); - sb.Append(" RecipientAuthType: ").Append(RecipientAuthType).Append("\n"); - sb.Append(" Language: ").Append(Language).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignStatusRecipientDto); - } - - /// - /// Returns true if ArxESignStatusRecipientDto instances are equal - /// - /// Instance of ArxESignStatusRecipientDto to be compared - /// Boolean - public bool Equals(ArxESignStatusRecipientDto input) - { - if (input == null) - return false; - - return - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && - ( - this.SignedDate == input.SignedDate || - (this.SignedDate != null && - this.SignedDate.Equals(input.SignedDate)) - ) && - ( - this.StatusReason == input.StatusReason || - (this.StatusReason != null && - this.StatusReason.Equals(input.StatusReason)) - ) && - ( - this.MobilePhone == input.MobilePhone || - (this.MobilePhone != null && - this.MobilePhone.Equals(input.MobilePhone)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.FirstName == input.FirstName || - (this.FirstName != null && - this.FirstName.Equals(input.FirstName)) - ) && - ( - this.LastName == input.LastName || - (this.LastName != null && - this.LastName.Equals(input.LastName)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.RecipientKind == input.RecipientKind || - (this.RecipientKind != null && - this.RecipientKind.Equals(input.RecipientKind)) - ) && - ( - this.RecipientAuthType == input.RecipientAuthType || - (this.RecipientAuthType != null && - this.RecipientAuthType.Equals(input.RecipientAuthType)) - ) && - ( - this.Language == input.Language || - (this.Language != null && - this.Language.Equals(input.Language)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.SignedDate != null) - hashCode = hashCode * 59 + this.SignedDate.GetHashCode(); - if (this.StatusReason != null) - hashCode = hashCode * 59 + this.StatusReason.GetHashCode(); - if (this.MobilePhone != null) - hashCode = hashCode * 59 + this.MobilePhone.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.FirstName != null) - hashCode = hashCode * 59 + this.FirstName.GetHashCode(); - if (this.LastName != null) - hashCode = hashCode * 59 + this.LastName.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - if (this.RecipientKind != null) - hashCode = hashCode * 59 + this.RecipientKind.GetHashCode(); - if (this.RecipientAuthType != null) - hashCode = hashCode * 59 + this.RecipientAuthType.GetHashCode(); - if (this.Language != null) - hashCode = hashCode * 59 + this.Language.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignStatusResponseDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ArxESignStatusResponseDto.cs deleted file mode 100644 index 0e70503..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ArxESignStatusResponseDto.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ARXeSigN status - /// - [DataContract] - public partial class ArxESignStatusResponseDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Process name. - /// Possible values: 0: InProgress 1: Canceled 2: Rejected 3: Completed 4: Expired . - /// Status message. - /// Recipients status. - /// Sign process start date. - /// Sign process expiration date. - public ArxESignStatusResponseDto(string name = default(string), int? status = default(int?), string statusReason = default(string), List recipients = default(List), DateTime? startDate = default(DateTime?), DateTime? expirationDate = default(DateTime?)) - { - this.Name = name; - this.Status = status; - this.StatusReason = statusReason; - this.Recipients = recipients; - this.StartDate = startDate; - this.ExpirationDate = expirationDate; - } - - /// - /// Process name - /// - /// Process name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Possible values: 0: InProgress 1: Canceled 2: Rejected 3: Completed 4: Expired - /// - /// Possible values: 0: InProgress 1: Canceled 2: Rejected 3: Completed 4: Expired - [DataMember(Name="status", EmitDefaultValue=false)] - public int? Status { get; set; } - - /// - /// Status message - /// - /// Status message - [DataMember(Name="statusReason", EmitDefaultValue=false)] - public string StatusReason { get; set; } - - /// - /// Recipients status - /// - /// Recipients status - [DataMember(Name="recipients", EmitDefaultValue=false)] - public List Recipients { get; set; } - - /// - /// Sign process start date - /// - /// Sign process start date - [DataMember(Name="startDate", EmitDefaultValue=false)] - public DateTime? StartDate { get; set; } - - /// - /// Sign process expiration date - /// - /// Sign process expiration date - [DataMember(Name="expirationDate", EmitDefaultValue=false)] - public DateTime? ExpirationDate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignStatusResponseDto {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" StatusReason: ").Append(StatusReason).Append("\n"); - sb.Append(" Recipients: ").Append(Recipients).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignStatusResponseDto); - } - - /// - /// Returns true if ArxESignStatusResponseDto instances are equal - /// - /// Instance of ArxESignStatusResponseDto to be compared - /// Boolean - public bool Equals(ArxESignStatusResponseDto input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && - ( - this.StatusReason == input.StatusReason || - (this.StatusReason != null && - this.StatusReason.Equals(input.StatusReason)) - ) && - ( - this.Recipients == input.Recipients || - this.Recipients != null && - this.Recipients.SequenceEqual(input.Recipients) - ) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.StatusReason != null) - hashCode = hashCode * 59 + this.StatusReason.GetHashCode(); - if (this.Recipients != null) - hashCode = hashCode * 59 + this.Recipients.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AssistantDetectedRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AssistantDetectedRequestDTO.cs deleted file mode 100644 index b89bacf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AssistantDetectedRequestDTO.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// AssistantDetectedRequestDTO - /// - [DataContract] - public partial class AssistantDetectedRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// connectionId. - /// capabilities. - /// version. - public AssistantDetectedRequestDTO(string connectionId = default(string), List capabilities = default(List), string version = default(string)) - { - this.ConnectionId = connectionId; - this.Capabilities = capabilities; - this.Version = version; - } - - /// - /// Gets or Sets ConnectionId - /// - [DataMember(Name="connectionId", EmitDefaultValue=false)] - public string ConnectionId { get; set; } - - /// - /// Gets or Sets Capabilities - /// - [DataMember(Name="capabilities", EmitDefaultValue=false)] - public List Capabilities { get; set; } - - /// - /// Gets or Sets Version - /// - [DataMember(Name="version", EmitDefaultValue=false)] - public string Version { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AssistantDetectedRequestDTO {\n"); - sb.Append(" ConnectionId: ").Append(ConnectionId).Append("\n"); - sb.Append(" Capabilities: ").Append(Capabilities).Append("\n"); - sb.Append(" Version: ").Append(Version).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AssistantDetectedRequestDTO); - } - - /// - /// Returns true if AssistantDetectedRequestDTO instances are equal - /// - /// Instance of AssistantDetectedRequestDTO to be compared - /// Boolean - public bool Equals(AssistantDetectedRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.ConnectionId == input.ConnectionId || - (this.ConnectionId != null && - this.ConnectionId.Equals(input.ConnectionId)) - ) && - ( - this.Capabilities == input.Capabilities || - this.Capabilities != null && - this.Capabilities.SequenceEqual(input.Capabilities) - ) && - ( - this.Version == input.Version || - (this.Version != null && - this.Version.Equals(input.Version)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ConnectionId != null) - hashCode = hashCode * 59 + this.ConnectionId.GetHashCode(); - if (this.Capabilities != null) - hashCode = hashCode * 59 + this.Capabilities.GetHashCode(); - if (this.Version != null) - hashCode = hashCode * 59 + this.Version.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AssociationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AssociationDTO.cs deleted file mode 100644 index 744cc4c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AssociationDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of association item - /// - [DataContract] - public partial class AssociationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique Identifier. - /// Identifier of the principal profile. - /// Identifier of author. - /// Creation Date. - /// Name. - /// Full Name of the author. - public AssociationDTO(int? id = default(int?), int? docNumber = default(int?), int? user = default(int?), DateTime? date = default(DateTime?), string description = default(string), string userNameComplete = default(string)) - { - this.Id = id; - this.DocNumber = docNumber; - this.User = user; - this.Date = date; - this.Description = description; - this.UserNameComplete = userNameComplete; - } - - /// - /// Unique Identifier - /// - /// Unique Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Identifier of the principal profile - /// - /// Identifier of the principal profile - [DataMember(Name="docNumber", EmitDefaultValue=false)] - public int? DocNumber { get; set; } - - /// - /// Identifier of author - /// - /// Identifier of author - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="date", EmitDefaultValue=false)] - public DateTime? Date { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Full Name of the author - /// - /// Full Name of the author - [DataMember(Name="userNameComplete", EmitDefaultValue=false)] - public string UserNameComplete { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AssociationDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" DocNumber: ").Append(DocNumber).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" UserNameComplete: ").Append(UserNameComplete).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AssociationDTO); - } - - /// - /// Returns true if AssociationDTO instances are equal - /// - /// Instance of AssociationDTO to be compared - /// Boolean - public bool Equals(AssociationDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.DocNumber == input.DocNumber || - (this.DocNumber != null && - this.DocNumber.Equals(input.DocNumber)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.UserNameComplete == input.UserNameComplete || - (this.UserNameComplete != null && - this.UserNameComplete.Equals(input.UserNameComplete)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.DocNumber != null) - hashCode = hashCode * 59 + this.DocNumber.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.UserNameComplete != null) - hashCode = hashCode * 59 + this.UserNameComplete.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AssociationFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AssociationFieldDTO.cs deleted file mode 100644 index 5733ccc..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AssociationFieldDTO.cs +++ /dev/null @@ -1,131 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// AssociationFieldDTO - /// - [DataContract] - public partial class AssociationFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AssociationFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// value. - public AssociationFieldDTO(AssociationDTO value = default(AssociationDTO), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AssociationFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public AssociationDTO Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AssociationFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AssociationFieldDTO); - } - - /// - /// Returns true if AssociationFieldDTO instances are equal - /// - /// Instance of AssociationFieldDTO to be compared - /// Boolean - public bool Equals(AssociationFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AssocitationFieldItem.cs b/ACUtils.AXRepository/ArxivarNext/Model/AssocitationFieldItem.cs deleted file mode 100644 index 8d85965..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AssocitationFieldItem.cs +++ /dev/null @@ -1,141 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// AssocitationFieldItem - /// - [DataContract] - public partial class AssocitationFieldItem : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// fieldName. - /// Name. - public AssocitationFieldItem(string fieldName = default(string), string association = default(string)) - { - this.FieldName = fieldName; - this.Association = association; - } - - /// - /// Gets or Sets FieldName - /// - [DataMember(Name="fieldName", EmitDefaultValue=false)] - public string FieldName { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="association", EmitDefaultValue=false)] - public string Association { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AssocitationFieldItem {\n"); - sb.Append(" FieldName: ").Append(FieldName).Append("\n"); - sb.Append(" Association: ").Append(Association).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AssocitationFieldItem); - } - - /// - /// Returns true if AssocitationFieldItem instances are equal - /// - /// Instance of AssocitationFieldItem to be compared - /// Boolean - public bool Equals(AssocitationFieldItem input) - { - if (input == null) - return false; - - return - ( - this.FieldName == input.FieldName || - (this.FieldName != null && - this.FieldName.Equals(input.FieldName)) - ) && - ( - this.Association == input.Association || - (this.Association != null && - this.Association.Equals(input.Association)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.FieldName != null) - hashCode = hashCode * 59 + this.FieldName.GetHashCode(); - if (this.Association != null) - hashCode = hashCode * 59 + this.Association.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AttachmentByDocnumberFootprintRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AttachmentByDocnumberFootprintRequestDTO.cs deleted file mode 100644 index 0588698..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AttachmentByDocnumberFootprintRequestDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for get attachment by docnumber and footprint - /// - [DataContract] - public partial class AttachmentByDocnumberFootprintRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document Identifier. - /// Hash of the file. - public AttachmentByDocnumberFootprintRequestDTO(int? docnumber = default(int?), string footprint = default(string)) - { - this.Docnumber = docnumber; - this.Footprint = footprint; - } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Hash of the file - /// - /// Hash of the file - [DataMember(Name="footprint", EmitDefaultValue=false)] - public string Footprint { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttachmentByDocnumberFootprintRequestDTO {\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Footprint: ").Append(Footprint).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttachmentByDocnumberFootprintRequestDTO); - } - - /// - /// Returns true if AttachmentByDocnumberFootprintRequestDTO instances are equal - /// - /// Instance of AttachmentByDocnumberFootprintRequestDTO to be compared - /// Boolean - public bool Equals(AttachmentByDocnumberFootprintRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Footprint == input.Footprint || - (this.Footprint != null && - this.Footprint.Equals(input.Footprint)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Footprint != null) - hashCode = hashCode * 59 + this.Footprint.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AttachmentDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AttachmentDTO.cs deleted file mode 100644 index c23fc2b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AttachmentDTO.cs +++ /dev/null @@ -1,532 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Attachment - /// - [DataContract] - public partial class AttachmentDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique identifier. - /// Document Identifier. - /// Revision number. - /// Name for the zip file.. - /// Path of compressed file.. - /// Name of the file.. - /// Possible values: 0: Hd 1: Cd . - /// CD Label. - /// Description. - /// Creation Date. - /// Identifier of the author. - /// Full name of the author. - /// Possible values: 0: None 1: Active 2: Marked . - /// Replace with the profile data for web visualization. - /// Hash of the file. - /// Send the file in the case of email shipment. - /// Kept in the replacement mode with the document profile. - /// Possible values: 0: Access_Denied 1: Read_Only 2: Edit 4: Full_Trust -1: None . - /// Possible values: 0: File_System 1: Database . - /// File Size. - /// Possible values: 0: ExternalAttachement 1: InternalAttachement . - /// Document Identifier if the internal attachment. - /// Send the file to IX service in the case of shipment. - /// attachmentRevision. - /// Possible values: 0: None 1: CompressChilkat91 2: CompressChilkat95 3: CompressChilkat95AndCryptoAes256 . - public AttachmentDTO(int? id = default(int?), int? docnumber = default(int?), int? revision = default(int?), string filename = default(string), string filepath = default(string), string originalname = default(string), int? device = default(int?), string cdlabel = default(string), string comment = default(string), DateTime? importdate = default(DateTime?), int? user = default(int?), string userCompleteName = default(string), int? block = default(int?), bool? compliantcopy = default(bool?), string footprint = default(string), bool? checksend = default(bool?), bool? aosflag = default(bool?), int? access = default(int?), int? saveType = default(int?), long? filesize = default(long?), int? kind = default(int?), int? attachedDocnumber = default(int?), bool? ixCheck = default(bool?), int? attachmentRevision = default(int?), int? compressionMode = default(int?)) - { - this.Id = id; - this.Docnumber = docnumber; - this.Revision = revision; - this.Filename = filename; - this.Filepath = filepath; - this.Originalname = originalname; - this.Device = device; - this.Cdlabel = cdlabel; - this.Comment = comment; - this.Importdate = importdate; - this.User = user; - this.UserCompleteName = userCompleteName; - this.Block = block; - this.Compliantcopy = compliantcopy; - this.Footprint = footprint; - this.Checksend = checksend; - this.Aosflag = aosflag; - this.Access = access; - this.SaveType = saveType; - this.Filesize = filesize; - this.Kind = kind; - this.AttachedDocnumber = attachedDocnumber; - this.IxCheck = ixCheck; - this.AttachmentRevision = attachmentRevision; - this.CompressionMode = compressionMode; - } - - /// - /// Unique identifier - /// - /// Unique identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Revision number - /// - /// Revision number - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Name for the zip file. - /// - /// Name for the zip file. - [DataMember(Name="filename", EmitDefaultValue=false)] - public string Filename { get; set; } - - /// - /// Path of compressed file. - /// - /// Path of compressed file. - [DataMember(Name="filepath", EmitDefaultValue=false)] - public string Filepath { get; set; } - - /// - /// Name of the file. - /// - /// Name of the file. - [DataMember(Name="originalname", EmitDefaultValue=false)] - public string Originalname { get; set; } - - /// - /// Possible values: 0: Hd 1: Cd - /// - /// Possible values: 0: Hd 1: Cd - [DataMember(Name="device", EmitDefaultValue=false)] - public int? Device { get; set; } - - /// - /// CD Label - /// - /// CD Label - [DataMember(Name="cdlabel", EmitDefaultValue=false)] - public string Cdlabel { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="comment", EmitDefaultValue=false)] - public string Comment { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="importdate", EmitDefaultValue=false)] - public DateTime? Importdate { get; set; } - - /// - /// Identifier of the author - /// - /// Identifier of the author - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Full name of the author - /// - /// Full name of the author - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Possible values: 0: None 1: Active 2: Marked - /// - /// Possible values: 0: None 1: Active 2: Marked - [DataMember(Name="block", EmitDefaultValue=false)] - public int? Block { get; set; } - - /// - /// Replace with the profile data for web visualization - /// - /// Replace with the profile data for web visualization - [DataMember(Name="compliantcopy", EmitDefaultValue=false)] - public bool? Compliantcopy { get; set; } - - /// - /// Hash of the file - /// - /// Hash of the file - [DataMember(Name="footprint", EmitDefaultValue=false)] - public string Footprint { get; set; } - - /// - /// Send the file in the case of email shipment - /// - /// Send the file in the case of email shipment - [DataMember(Name="checksend", EmitDefaultValue=false)] - public bool? Checksend { get; set; } - - /// - /// Kept in the replacement mode with the document profile - /// - /// Kept in the replacement mode with the document profile - [DataMember(Name="aosflag", EmitDefaultValue=false)] - public bool? Aosflag { get; set; } - - /// - /// Possible values: 0: Access_Denied 1: Read_Only 2: Edit 4: Full_Trust -1: None - /// - /// Possible values: 0: Access_Denied 1: Read_Only 2: Edit 4: Full_Trust -1: None - [DataMember(Name="access", EmitDefaultValue=false)] - public int? Access { get; set; } - - /// - /// Possible values: 0: File_System 1: Database - /// - /// Possible values: 0: File_System 1: Database - [DataMember(Name="saveType", EmitDefaultValue=false)] - public int? SaveType { get; set; } - - /// - /// File Size - /// - /// File Size - [DataMember(Name="filesize", EmitDefaultValue=false)] - public long? Filesize { get; set; } - - /// - /// Possible values: 0: ExternalAttachement 1: InternalAttachement - /// - /// Possible values: 0: ExternalAttachement 1: InternalAttachement - [DataMember(Name="kind", EmitDefaultValue=false)] - public int? Kind { get; set; } - - /// - /// Document Identifier if the internal attachment - /// - /// Document Identifier if the internal attachment - [DataMember(Name="attachedDocnumber", EmitDefaultValue=false)] - public int? AttachedDocnumber { get; set; } - - /// - /// Send the file to IX service in the case of shipment - /// - /// Send the file to IX service in the case of shipment - [DataMember(Name="ixCheck", EmitDefaultValue=false)] - public bool? IxCheck { get; set; } - - /// - /// Gets or Sets AttachmentRevision - /// - [DataMember(Name="attachmentRevision", EmitDefaultValue=false)] - public int? AttachmentRevision { get; set; } - - /// - /// Possible values: 0: None 1: CompressChilkat91 2: CompressChilkat95 3: CompressChilkat95AndCryptoAes256 - /// - /// Possible values: 0: None 1: CompressChilkat91 2: CompressChilkat95 3: CompressChilkat95AndCryptoAes256 - [DataMember(Name="compressionMode", EmitDefaultValue=false)] - public int? CompressionMode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttachmentDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" Filename: ").Append(Filename).Append("\n"); - sb.Append(" Filepath: ").Append(Filepath).Append("\n"); - sb.Append(" Originalname: ").Append(Originalname).Append("\n"); - sb.Append(" Device: ").Append(Device).Append("\n"); - sb.Append(" Cdlabel: ").Append(Cdlabel).Append("\n"); - sb.Append(" Comment: ").Append(Comment).Append("\n"); - sb.Append(" Importdate: ").Append(Importdate).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" Block: ").Append(Block).Append("\n"); - sb.Append(" Compliantcopy: ").Append(Compliantcopy).Append("\n"); - sb.Append(" Footprint: ").Append(Footprint).Append("\n"); - sb.Append(" Checksend: ").Append(Checksend).Append("\n"); - sb.Append(" Aosflag: ").Append(Aosflag).Append("\n"); - sb.Append(" Access: ").Append(Access).Append("\n"); - sb.Append(" SaveType: ").Append(SaveType).Append("\n"); - sb.Append(" Filesize: ").Append(Filesize).Append("\n"); - sb.Append(" Kind: ").Append(Kind).Append("\n"); - sb.Append(" AttachedDocnumber: ").Append(AttachedDocnumber).Append("\n"); - sb.Append(" IxCheck: ").Append(IxCheck).Append("\n"); - sb.Append(" AttachmentRevision: ").Append(AttachmentRevision).Append("\n"); - sb.Append(" CompressionMode: ").Append(CompressionMode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttachmentDTO); - } - - /// - /// Returns true if AttachmentDTO instances are equal - /// - /// Instance of AttachmentDTO to be compared - /// Boolean - public bool Equals(AttachmentDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.Filename == input.Filename || - (this.Filename != null && - this.Filename.Equals(input.Filename)) - ) && - ( - this.Filepath == input.Filepath || - (this.Filepath != null && - this.Filepath.Equals(input.Filepath)) - ) && - ( - this.Originalname == input.Originalname || - (this.Originalname != null && - this.Originalname.Equals(input.Originalname)) - ) && - ( - this.Device == input.Device || - (this.Device != null && - this.Device.Equals(input.Device)) - ) && - ( - this.Cdlabel == input.Cdlabel || - (this.Cdlabel != null && - this.Cdlabel.Equals(input.Cdlabel)) - ) && - ( - this.Comment == input.Comment || - (this.Comment != null && - this.Comment.Equals(input.Comment)) - ) && - ( - this.Importdate == input.Importdate || - (this.Importdate != null && - this.Importdate.Equals(input.Importdate)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.Block == input.Block || - (this.Block != null && - this.Block.Equals(input.Block)) - ) && - ( - this.Compliantcopy == input.Compliantcopy || - (this.Compliantcopy != null && - this.Compliantcopy.Equals(input.Compliantcopy)) - ) && - ( - this.Footprint == input.Footprint || - (this.Footprint != null && - this.Footprint.Equals(input.Footprint)) - ) && - ( - this.Checksend == input.Checksend || - (this.Checksend != null && - this.Checksend.Equals(input.Checksend)) - ) && - ( - this.Aosflag == input.Aosflag || - (this.Aosflag != null && - this.Aosflag.Equals(input.Aosflag)) - ) && - ( - this.Access == input.Access || - (this.Access != null && - this.Access.Equals(input.Access)) - ) && - ( - this.SaveType == input.SaveType || - (this.SaveType != null && - this.SaveType.Equals(input.SaveType)) - ) && - ( - this.Filesize == input.Filesize || - (this.Filesize != null && - this.Filesize.Equals(input.Filesize)) - ) && - ( - this.Kind == input.Kind || - (this.Kind != null && - this.Kind.Equals(input.Kind)) - ) && - ( - this.AttachedDocnumber == input.AttachedDocnumber || - (this.AttachedDocnumber != null && - this.AttachedDocnumber.Equals(input.AttachedDocnumber)) - ) && - ( - this.IxCheck == input.IxCheck || - (this.IxCheck != null && - this.IxCheck.Equals(input.IxCheck)) - ) && - ( - this.AttachmentRevision == input.AttachmentRevision || - (this.AttachmentRevision != null && - this.AttachmentRevision.Equals(input.AttachmentRevision)) - ) && - ( - this.CompressionMode == input.CompressionMode || - (this.CompressionMode != null && - this.CompressionMode.Equals(input.CompressionMode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.Filename != null) - hashCode = hashCode * 59 + this.Filename.GetHashCode(); - if (this.Filepath != null) - hashCode = hashCode * 59 + this.Filepath.GetHashCode(); - if (this.Originalname != null) - hashCode = hashCode * 59 + this.Originalname.GetHashCode(); - if (this.Device != null) - hashCode = hashCode * 59 + this.Device.GetHashCode(); - if (this.Cdlabel != null) - hashCode = hashCode * 59 + this.Cdlabel.GetHashCode(); - if (this.Comment != null) - hashCode = hashCode * 59 + this.Comment.GetHashCode(); - if (this.Importdate != null) - hashCode = hashCode * 59 + this.Importdate.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.Block != null) - hashCode = hashCode * 59 + this.Block.GetHashCode(); - if (this.Compliantcopy != null) - hashCode = hashCode * 59 + this.Compliantcopy.GetHashCode(); - if (this.Footprint != null) - hashCode = hashCode * 59 + this.Footprint.GetHashCode(); - if (this.Checksend != null) - hashCode = hashCode * 59 + this.Checksend.GetHashCode(); - if (this.Aosflag != null) - hashCode = hashCode * 59 + this.Aosflag.GetHashCode(); - if (this.Access != null) - hashCode = hashCode * 59 + this.Access.GetHashCode(); - if (this.SaveType != null) - hashCode = hashCode * 59 + this.SaveType.GetHashCode(); - if (this.Filesize != null) - hashCode = hashCode * 59 + this.Filesize.GetHashCode(); - if (this.Kind != null) - hashCode = hashCode * 59 + this.Kind.GetHashCode(); - if (this.AttachedDocnumber != null) - hashCode = hashCode * 59 + this.AttachedDocnumber.GetHashCode(); - if (this.IxCheck != null) - hashCode = hashCode * 59 + this.IxCheck.GetHashCode(); - if (this.AttachmentRevision != null) - hashCode = hashCode * 59 + this.AttachmentRevision.GetHashCode(); - if (this.CompressionMode != null) - hashCode = hashCode * 59 + this.CompressionMode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AttachmentFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AttachmentFieldDTO.cs deleted file mode 100644 index e3d8c4a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AttachmentFieldDTO.cs +++ /dev/null @@ -1,131 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// AttachmentFieldDTO - /// - [DataContract] - public partial class AttachmentFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AttachmentFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// value. - public AttachmentFieldDTO(AttachmentDTO value = default(AttachmentDTO), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AttachmentFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public AttachmentDTO Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttachmentFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttachmentFieldDTO); - } - - /// - /// Returns true if AttachmentFieldDTO instances are equal - /// - /// Instance of AttachmentFieldDTO to be compared - /// Boolean - public bool Equals(AttachmentFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AttachmentRevisionDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AttachmentRevisionDTO.cs deleted file mode 100644 index 3526a00..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AttachmentRevisionDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of attachment revision - /// - [DataContract] - public partial class AttachmentRevisionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Identifier of attachment. - /// Revision number. - /// Identifier of the author. - /// Description of the author. - /// Creation Date. - /// Path to store file. - /// Compressed File Name. - /// File name. - /// Hash of file. - public AttachmentRevisionDTO(int? id = default(int?), int? attachmentId = default(int?), int? revision = default(int?), int? user = default(int?), string userDescription = default(string), DateTime? creationDate = default(DateTime?), string path = default(string), string fileName = default(string), string originalFileName = default(string), string hash = default(string)) - { - this.Id = id; - this.AttachmentId = attachmentId; - this.Revision = revision; - this.User = user; - this.UserDescription = userDescription; - this.CreationDate = creationDate; - this.Path = path; - this.FileName = fileName; - this.OriginalFileName = originalFileName; - this.Hash = hash; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Identifier of attachment - /// - /// Identifier of attachment - [DataMember(Name="attachmentId", EmitDefaultValue=false)] - public int? AttachmentId { get; set; } - - /// - /// Revision number - /// - /// Revision number - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Identifier of the author - /// - /// Identifier of the author - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Description of the author - /// - /// Description of the author - [DataMember(Name="userDescription", EmitDefaultValue=false)] - public string UserDescription { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Path to store file - /// - /// Path to store file - [DataMember(Name="path", EmitDefaultValue=false)] - public string Path { get; set; } - - /// - /// Compressed File Name - /// - /// Compressed File Name - [DataMember(Name="fileName", EmitDefaultValue=false)] - public string FileName { get; set; } - - /// - /// File name - /// - /// File name - [DataMember(Name="originalFileName", EmitDefaultValue=false)] - public string OriginalFileName { get; set; } - - /// - /// Hash of file - /// - /// Hash of file - [DataMember(Name="hash", EmitDefaultValue=false)] - public string Hash { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttachmentRevisionDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" AttachmentId: ").Append(AttachmentId).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" UserDescription: ").Append(UserDescription).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" Path: ").Append(Path).Append("\n"); - sb.Append(" FileName: ").Append(FileName).Append("\n"); - sb.Append(" OriginalFileName: ").Append(OriginalFileName).Append("\n"); - sb.Append(" Hash: ").Append(Hash).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttachmentRevisionDTO); - } - - /// - /// Returns true if AttachmentRevisionDTO instances are equal - /// - /// Instance of AttachmentRevisionDTO to be compared - /// Boolean - public bool Equals(AttachmentRevisionDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.AttachmentId == input.AttachmentId || - (this.AttachmentId != null && - this.AttachmentId.Equals(input.AttachmentId)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.UserDescription == input.UserDescription || - (this.UserDescription != null && - this.UserDescription.Equals(input.UserDescription)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.Path == input.Path || - (this.Path != null && - this.Path.Equals(input.Path)) - ) && - ( - this.FileName == input.FileName || - (this.FileName != null && - this.FileName.Equals(input.FileName)) - ) && - ( - this.OriginalFileName == input.OriginalFileName || - (this.OriginalFileName != null && - this.OriginalFileName.Equals(input.OriginalFileName)) - ) && - ( - this.Hash == input.Hash || - (this.Hash != null && - this.Hash.Equals(input.Hash)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.AttachmentId != null) - hashCode = hashCode * 59 + this.AttachmentId.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.UserDescription != null) - hashCode = hashCode * 59 + this.UserDescription.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.Path != null) - hashCode = hashCode * 59 + this.Path.GetHashCode(); - if (this.FileName != null) - hashCode = hashCode * 59 + this.FileName.GetHashCode(); - if (this.OriginalFileName != null) - hashCode = hashCode * 59 + this.OriginalFileName.GetHashCode(); - if (this.Hash != null) - hashCode = hashCode * 59 + this.Hash.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AttachmentWorkInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AttachmentWorkInfoDTO.cs deleted file mode 100644 index 4a497ed..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AttachmentWorkInfoDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of attachment associated with workflow process - /// - [DataContract] - public partial class AttachmentWorkInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// File name. - /// User Description. - /// Creation Date. - /// Document Identifier. - /// Possible values: 0: ExternalAttachement 1: InternalAttachement . - /// Name of taskwork. - public AttachmentWorkInfoDTO(int? id = default(int?), string filename = default(string), string userCompleteName = default(string), DateTime? date = default(DateTime?), int? docnumber = default(int?), int? kind = default(int?), string taskName = default(string)) - { - this.Id = id; - this.Filename = filename; - this.UserCompleteName = userCompleteName; - this.Date = date; - this.Docnumber = docnumber; - this.Kind = kind; - this.TaskName = taskName; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// File name - /// - /// File name - [DataMember(Name="filename", EmitDefaultValue=false)] - public string Filename { get; set; } - - /// - /// User Description - /// - /// User Description - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="date", EmitDefaultValue=false)] - public DateTime? Date { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Possible values: 0: ExternalAttachement 1: InternalAttachement - /// - /// Possible values: 0: ExternalAttachement 1: InternalAttachement - [DataMember(Name="kind", EmitDefaultValue=false)] - public int? Kind { get; set; } - - /// - /// Name of taskwork - /// - /// Name of taskwork - [DataMember(Name="taskName", EmitDefaultValue=false)] - public string TaskName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttachmentWorkInfoDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Filename: ").Append(Filename).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Kind: ").Append(Kind).Append("\n"); - sb.Append(" TaskName: ").Append(TaskName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttachmentWorkInfoDTO); - } - - /// - /// Returns true if AttachmentWorkInfoDTO instances are equal - /// - /// Instance of AttachmentWorkInfoDTO to be compared - /// Boolean - public bool Equals(AttachmentWorkInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Filename == input.Filename || - (this.Filename != null && - this.Filename.Equals(input.Filename)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Kind == input.Kind || - (this.Kind != null && - this.Kind.Equals(input.Kind)) - ) && - ( - this.TaskName == input.TaskName || - (this.TaskName != null && - this.TaskName.Equals(input.TaskName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Filename != null) - hashCode = hashCode * 59 + this.Filename.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Kind != null) - hashCode = hashCode * 59 + this.Kind.GetHashCode(); - if (this.TaskName != null) - hashCode = hashCode * 59 + this.TaskName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AttachmentsDataSourceDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AttachmentsDataSourceDTO.cs deleted file mode 100644 index a65326f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AttachmentsDataSourceDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// AttachmentsDataSourceDTO - /// - [DataContract] - public partial class AttachmentsDataSourceDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// externalAttachments. - /// internalAttachments. - public AttachmentsDataSourceDTO(List externalAttachments = default(List), List internalAttachments = default(List)) - { - this.ExternalAttachments = externalAttachments; - this.InternalAttachments = internalAttachments; - } - - /// - /// Gets or Sets ExternalAttachments - /// - [DataMember(Name="externalAttachments", EmitDefaultValue=false)] - public List ExternalAttachments { get; set; } - - /// - /// Gets or Sets InternalAttachments - /// - [DataMember(Name="internalAttachments", EmitDefaultValue=false)] - public List InternalAttachments { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttachmentsDataSourceDTO {\n"); - sb.Append(" ExternalAttachments: ").Append(ExternalAttachments).Append("\n"); - sb.Append(" InternalAttachments: ").Append(InternalAttachments).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttachmentsDataSourceDTO); - } - - /// - /// Returns true if AttachmentsDataSourceDTO instances are equal - /// - /// Instance of AttachmentsDataSourceDTO to be compared - /// Boolean - public bool Equals(AttachmentsDataSourceDTO input) - { - if (input == null) - return false; - - return - ( - this.ExternalAttachments == input.ExternalAttachments || - this.ExternalAttachments != null && - this.ExternalAttachments.SequenceEqual(input.ExternalAttachments) - ) && - ( - this.InternalAttachments == input.InternalAttachments || - this.InternalAttachments != null && - this.InternalAttachments.SequenceEqual(input.InternalAttachments) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ExternalAttachments != null) - hashCode = hashCode * 59 + this.ExternalAttachments.GetHashCode(); - if (this.InternalAttachments != null) - hashCode = hashCode * 59 + this.InternalAttachments.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AuthPropertyInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AuthPropertyInfoDTO.cs deleted file mode 100644 index 001d482..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AuthPropertyInfoDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of authentication property info - /// - [DataContract] - public partial class AuthPropertyInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Key. - /// Value. - public AuthPropertyInfoDTO(string key = default(string), string value = default(string)) - { - this.Key = key; - this.Value = value; - } - - /// - /// Key - /// - /// Key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AuthPropertyInfoDTO {\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AuthPropertyInfoDTO); - } - - /// - /// Returns true if AuthPropertyInfoDTO instances are equal - /// - /// Instance of AuthPropertyInfoDTO to be compared - /// Boolean - public bool Equals(AuthPropertyInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationRefreshTokenRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationRefreshTokenRequestDTO.cs deleted file mode 100644 index 70abdf5..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationRefreshTokenRequestDTO.cs +++ /dev/null @@ -1,188 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of authentication refresh token request - /// - [DataContract] - public partial class AuthenticationRefreshTokenRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AuthenticationRefreshTokenRequestDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Client Identifier (required). - /// Client Secret (required). - /// Refresh Token (required). - public AuthenticationRefreshTokenRequestDTO(string clientId = default(string), string clientSecret = default(string), string refreshToken = default(string)) - { - // to ensure "clientId" is required (not null) - if (clientId == null) - { - throw new InvalidDataException("clientId is a required property for AuthenticationRefreshTokenRequestDTO and cannot be null"); - } - else - { - this.ClientId = clientId; - } - // to ensure "clientSecret" is required (not null) - if (clientSecret == null) - { - throw new InvalidDataException("clientSecret is a required property for AuthenticationRefreshTokenRequestDTO and cannot be null"); - } - else - { - this.ClientSecret = clientSecret; - } - // to ensure "refreshToken" is required (not null) - if (refreshToken == null) - { - throw new InvalidDataException("refreshToken is a required property for AuthenticationRefreshTokenRequestDTO and cannot be null"); - } - else - { - this.RefreshToken = refreshToken; - } - } - - /// - /// Client Identifier - /// - /// Client Identifier - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// Client Secret - /// - /// Client Secret - [DataMember(Name="clientSecret", EmitDefaultValue=false)] - public string ClientSecret { get; set; } - - /// - /// Refresh Token - /// - /// Refresh Token - [DataMember(Name="refreshToken", EmitDefaultValue=false)] - public string RefreshToken { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AuthenticationRefreshTokenRequestDTO {\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n"); - sb.Append(" RefreshToken: ").Append(RefreshToken).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AuthenticationRefreshTokenRequestDTO); - } - - /// - /// Returns true if AuthenticationRefreshTokenRequestDTO instances are equal - /// - /// Instance of AuthenticationRefreshTokenRequestDTO to be compared - /// Boolean - public bool Equals(AuthenticationRefreshTokenRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.ClientSecret == input.ClientSecret || - (this.ClientSecret != null && - this.ClientSecret.Equals(input.ClientSecret)) - ) && - ( - this.RefreshToken == input.RefreshToken || - (this.RefreshToken != null && - this.RefreshToken.Equals(input.RefreshToken)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.ClientSecret != null) - hashCode = hashCode * 59 + this.ClientSecret.GetHashCode(); - if (this.RefreshToken != null) - hashCode = hashCode * 59 + this.RefreshToken.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationTokenByLogonTicketRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationTokenByLogonTicketRequestDTO.cs deleted file mode 100644 index 1ca460a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationTokenByLogonTicketRequestDTO.cs +++ /dev/null @@ -1,341 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Authentication token request by logon ticket - /// - [DataContract] - public partial class AuthenticationTokenByLogonTicketRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AuthenticationTokenByLogonTicketRequestDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Logon ticket (required). - /// Client id (required). - /// Client secret (required). - /// Logon provider for authentication (existing association required). - /// Impersonate user id. - /// Impersonate user by externalId. - /// Client version. - /// Machine Key. - /// Language. - /// Url for success redirect. - /// Request scope list. - /// Request client Ip. - public AuthenticationTokenByLogonTicketRequestDTO(string logonTicket = default(string), string clientId = default(string), string clientSecret = default(string), string logonProviderId = default(string), int? impersonateUserId = default(int?), string impersonateExternalId = default(string), string clientVersion = default(string), string machineKey = default(string), string languageCultureName = default(string), string successRedirectUri = default(string), List scopeList = default(List), string clientIpAddress = default(string)) - { - // to ensure "logonTicket" is required (not null) - if (logonTicket == null) - { - throw new InvalidDataException("logonTicket is a required property for AuthenticationTokenByLogonTicketRequestDTO and cannot be null"); - } - else - { - this.LogonTicket = logonTicket; - } - // to ensure "clientId" is required (not null) - if (clientId == null) - { - throw new InvalidDataException("clientId is a required property for AuthenticationTokenByLogonTicketRequestDTO and cannot be null"); - } - else - { - this.ClientId = clientId; - } - // to ensure "clientSecret" is required (not null) - if (clientSecret == null) - { - throw new InvalidDataException("clientSecret is a required property for AuthenticationTokenByLogonTicketRequestDTO and cannot be null"); - } - else - { - this.ClientSecret = clientSecret; - } - this.LogonProviderId = logonProviderId; - this.ImpersonateUserId = impersonateUserId; - this.ImpersonateExternalId = impersonateExternalId; - this.ClientVersion = clientVersion; - this.MachineKey = machineKey; - this.LanguageCultureName = languageCultureName; - this.SuccessRedirectUri = successRedirectUri; - this.ScopeList = scopeList; - this.ClientIpAddress = clientIpAddress; - } - - /// - /// Logon ticket - /// - /// Logon ticket - [DataMember(Name="logonTicket", EmitDefaultValue=false)] - public string LogonTicket { get; set; } - - /// - /// Client id - /// - /// Client id - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// Client secret - /// - /// Client secret - [DataMember(Name="clientSecret", EmitDefaultValue=false)] - public string ClientSecret { get; set; } - - /// - /// Logon provider for authentication (existing association required) - /// - /// Logon provider for authentication (existing association required) - [DataMember(Name="logonProviderId", EmitDefaultValue=false)] - public string LogonProviderId { get; set; } - - /// - /// Impersonate user id - /// - /// Impersonate user id - [DataMember(Name="impersonateUserId", EmitDefaultValue=false)] - public int? ImpersonateUserId { get; set; } - - /// - /// Impersonate user by externalId - /// - /// Impersonate user by externalId - [DataMember(Name="impersonateExternalId", EmitDefaultValue=false)] - public string ImpersonateExternalId { get; set; } - - /// - /// Client version - /// - /// Client version - [DataMember(Name="clientVersion", EmitDefaultValue=false)] - public string ClientVersion { get; set; } - - /// - /// Machine Key - /// - /// Machine Key - [DataMember(Name="machineKey", EmitDefaultValue=false)] - public string MachineKey { get; set; } - - /// - /// Language - /// - /// Language - [DataMember(Name="languageCultureName", EmitDefaultValue=false)] - public string LanguageCultureName { get; set; } - - /// - /// Url for success redirect - /// - /// Url for success redirect - [DataMember(Name="successRedirectUri", EmitDefaultValue=false)] - public string SuccessRedirectUri { get; set; } - - /// - /// Request scope list - /// - /// Request scope list - [DataMember(Name="scopeList", EmitDefaultValue=false)] - public List ScopeList { get; set; } - - /// - /// Request client Ip - /// - /// Request client Ip - [DataMember(Name="clientIpAddress", EmitDefaultValue=false)] - public string ClientIpAddress { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AuthenticationTokenByLogonTicketRequestDTO {\n"); - sb.Append(" LogonTicket: ").Append(LogonTicket).Append("\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n"); - sb.Append(" LogonProviderId: ").Append(LogonProviderId).Append("\n"); - sb.Append(" ImpersonateUserId: ").Append(ImpersonateUserId).Append("\n"); - sb.Append(" ImpersonateExternalId: ").Append(ImpersonateExternalId).Append("\n"); - sb.Append(" ClientVersion: ").Append(ClientVersion).Append("\n"); - sb.Append(" MachineKey: ").Append(MachineKey).Append("\n"); - sb.Append(" LanguageCultureName: ").Append(LanguageCultureName).Append("\n"); - sb.Append(" SuccessRedirectUri: ").Append(SuccessRedirectUri).Append("\n"); - sb.Append(" ScopeList: ").Append(ScopeList).Append("\n"); - sb.Append(" ClientIpAddress: ").Append(ClientIpAddress).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AuthenticationTokenByLogonTicketRequestDTO); - } - - /// - /// Returns true if AuthenticationTokenByLogonTicketRequestDTO instances are equal - /// - /// Instance of AuthenticationTokenByLogonTicketRequestDTO to be compared - /// Boolean - public bool Equals(AuthenticationTokenByLogonTicketRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.LogonTicket == input.LogonTicket || - (this.LogonTicket != null && - this.LogonTicket.Equals(input.LogonTicket)) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.ClientSecret == input.ClientSecret || - (this.ClientSecret != null && - this.ClientSecret.Equals(input.ClientSecret)) - ) && - ( - this.LogonProviderId == input.LogonProviderId || - (this.LogonProviderId != null && - this.LogonProviderId.Equals(input.LogonProviderId)) - ) && - ( - this.ImpersonateUserId == input.ImpersonateUserId || - (this.ImpersonateUserId != null && - this.ImpersonateUserId.Equals(input.ImpersonateUserId)) - ) && - ( - this.ImpersonateExternalId == input.ImpersonateExternalId || - (this.ImpersonateExternalId != null && - this.ImpersonateExternalId.Equals(input.ImpersonateExternalId)) - ) && - ( - this.ClientVersion == input.ClientVersion || - (this.ClientVersion != null && - this.ClientVersion.Equals(input.ClientVersion)) - ) && - ( - this.MachineKey == input.MachineKey || - (this.MachineKey != null && - this.MachineKey.Equals(input.MachineKey)) - ) && - ( - this.LanguageCultureName == input.LanguageCultureName || - (this.LanguageCultureName != null && - this.LanguageCultureName.Equals(input.LanguageCultureName)) - ) && - ( - this.SuccessRedirectUri == input.SuccessRedirectUri || - (this.SuccessRedirectUri != null && - this.SuccessRedirectUri.Equals(input.SuccessRedirectUri)) - ) && - ( - this.ScopeList == input.ScopeList || - this.ScopeList != null && - this.ScopeList.SequenceEqual(input.ScopeList) - ) && - ( - this.ClientIpAddress == input.ClientIpAddress || - (this.ClientIpAddress != null && - this.ClientIpAddress.Equals(input.ClientIpAddress)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.LogonTicket != null) - hashCode = hashCode * 59 + this.LogonTicket.GetHashCode(); - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.ClientSecret != null) - hashCode = hashCode * 59 + this.ClientSecret.GetHashCode(); - if (this.LogonProviderId != null) - hashCode = hashCode * 59 + this.LogonProviderId.GetHashCode(); - if (this.ImpersonateUserId != null) - hashCode = hashCode * 59 + this.ImpersonateUserId.GetHashCode(); - if (this.ImpersonateExternalId != null) - hashCode = hashCode * 59 + this.ImpersonateExternalId.GetHashCode(); - if (this.ClientVersion != null) - hashCode = hashCode * 59 + this.ClientVersion.GetHashCode(); - if (this.MachineKey != null) - hashCode = hashCode * 59 + this.MachineKey.GetHashCode(); - if (this.LanguageCultureName != null) - hashCode = hashCode * 59 + this.LanguageCultureName.GetHashCode(); - if (this.SuccessRedirectUri != null) - hashCode = hashCode * 59 + this.SuccessRedirectUri.GetHashCode(); - if (this.ScopeList != null) - hashCode = hashCode * 59 + this.ScopeList.GetHashCode(); - if (this.ClientIpAddress != null) - hashCode = hashCode * 59 + this.ClientIpAddress.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationTokenDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationTokenDTO.cs deleted file mode 100644 index 41fe9f4..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationTokenDTO.cs +++ /dev/null @@ -1,295 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of authentication token - /// - [DataContract] - public partial class AuthenticationTokenDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Error code. - /// Error desciption. - /// Error Uri. - /// Access token string. - /// Token type (bearer). - /// Token and refresh token expire in ExpiresIn seconds. - /// Refresh token string. - /// Issue date of the token. - /// Expiration date of the token. - /// Client id. - /// User must change password after this 'login'. - public AuthenticationTokenDTO(string error = default(string), string errorDescription = default(string), string errorUri = default(string), string accessToken = default(string), string tokenType = default(string), int? expiresIn = default(int?), string refreshToken = default(string), DateTime? issued = default(DateTime?), DateTime? expires = default(DateTime?), string arxclientId = default(string), bool? arxuserMustChangePassword = default(bool?)) - { - this.Error = error; - this.ErrorDescription = errorDescription; - this.ErrorUri = errorUri; - this.AccessToken = accessToken; - this.TokenType = tokenType; - this.ExpiresIn = expiresIn; - this.RefreshToken = refreshToken; - this.Issued = issued; - this.Expires = expires; - this.ArxclientId = arxclientId; - this.ArxuserMustChangePassword = arxuserMustChangePassword; - } - - /// - /// Error code - /// - /// Error code - [DataMember(Name="error", EmitDefaultValue=false)] - public string Error { get; set; } - - /// - /// Error desciption - /// - /// Error desciption - [DataMember(Name="errorDescription", EmitDefaultValue=false)] - public string ErrorDescription { get; set; } - - /// - /// Error Uri - /// - /// Error Uri - [DataMember(Name="errorUri", EmitDefaultValue=false)] - public string ErrorUri { get; set; } - - /// - /// Access token string - /// - /// Access token string - [DataMember(Name="accessToken", EmitDefaultValue=false)] - public string AccessToken { get; set; } - - /// - /// Token type (bearer) - /// - /// Token type (bearer) - [DataMember(Name="tokenType", EmitDefaultValue=false)] - public string TokenType { get; set; } - - /// - /// Token and refresh token expire in ExpiresIn seconds - /// - /// Token and refresh token expire in ExpiresIn seconds - [DataMember(Name="expiresIn", EmitDefaultValue=false)] - public int? ExpiresIn { get; set; } - - /// - /// Refresh token string - /// - /// Refresh token string - [DataMember(Name="refreshToken", EmitDefaultValue=false)] - public string RefreshToken { get; set; } - - /// - /// Issue date of the token - /// - /// Issue date of the token - [DataMember(Name="issued", EmitDefaultValue=false)] - public DateTime? Issued { get; set; } - - /// - /// Expiration date of the token - /// - /// Expiration date of the token - [DataMember(Name="expires", EmitDefaultValue=false)] - public DateTime? Expires { get; set; } - - /// - /// Client id - /// - /// Client id - [DataMember(Name="arxclientId", EmitDefaultValue=false)] - public string ArxclientId { get; set; } - - /// - /// User must change password after this 'login' - /// - /// User must change password after this 'login' - [DataMember(Name="arxuserMustChangePassword", EmitDefaultValue=false)] - public bool? ArxuserMustChangePassword { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AuthenticationTokenDTO {\n"); - sb.Append(" Error: ").Append(Error).Append("\n"); - sb.Append(" ErrorDescription: ").Append(ErrorDescription).Append("\n"); - sb.Append(" ErrorUri: ").Append(ErrorUri).Append("\n"); - sb.Append(" AccessToken: ").Append(AccessToken).Append("\n"); - sb.Append(" TokenType: ").Append(TokenType).Append("\n"); - sb.Append(" ExpiresIn: ").Append(ExpiresIn).Append("\n"); - sb.Append(" RefreshToken: ").Append(RefreshToken).Append("\n"); - sb.Append(" Issued: ").Append(Issued).Append("\n"); - sb.Append(" Expires: ").Append(Expires).Append("\n"); - sb.Append(" ArxclientId: ").Append(ArxclientId).Append("\n"); - sb.Append(" ArxuserMustChangePassword: ").Append(ArxuserMustChangePassword).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AuthenticationTokenDTO); - } - - /// - /// Returns true if AuthenticationTokenDTO instances are equal - /// - /// Instance of AuthenticationTokenDTO to be compared - /// Boolean - public bool Equals(AuthenticationTokenDTO input) - { - if (input == null) - return false; - - return - ( - this.Error == input.Error || - (this.Error != null && - this.Error.Equals(input.Error)) - ) && - ( - this.ErrorDescription == input.ErrorDescription || - (this.ErrorDescription != null && - this.ErrorDescription.Equals(input.ErrorDescription)) - ) && - ( - this.ErrorUri == input.ErrorUri || - (this.ErrorUri != null && - this.ErrorUri.Equals(input.ErrorUri)) - ) && - ( - this.AccessToken == input.AccessToken || - (this.AccessToken != null && - this.AccessToken.Equals(input.AccessToken)) - ) && - ( - this.TokenType == input.TokenType || - (this.TokenType != null && - this.TokenType.Equals(input.TokenType)) - ) && - ( - this.ExpiresIn == input.ExpiresIn || - (this.ExpiresIn != null && - this.ExpiresIn.Equals(input.ExpiresIn)) - ) && - ( - this.RefreshToken == input.RefreshToken || - (this.RefreshToken != null && - this.RefreshToken.Equals(input.RefreshToken)) - ) && - ( - this.Issued == input.Issued || - (this.Issued != null && - this.Issued.Equals(input.Issued)) - ) && - ( - this.Expires == input.Expires || - (this.Expires != null && - this.Expires.Equals(input.Expires)) - ) && - ( - this.ArxclientId == input.ArxclientId || - (this.ArxclientId != null && - this.ArxclientId.Equals(input.ArxclientId)) - ) && - ( - this.ArxuserMustChangePassword == input.ArxuserMustChangePassword || - (this.ArxuserMustChangePassword != null && - this.ArxuserMustChangePassword.Equals(input.ArxuserMustChangePassword)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Error != null) - hashCode = hashCode * 59 + this.Error.GetHashCode(); - if (this.ErrorDescription != null) - hashCode = hashCode * 59 + this.ErrorDescription.GetHashCode(); - if (this.ErrorUri != null) - hashCode = hashCode * 59 + this.ErrorUri.GetHashCode(); - if (this.AccessToken != null) - hashCode = hashCode * 59 + this.AccessToken.GetHashCode(); - if (this.TokenType != null) - hashCode = hashCode * 59 + this.TokenType.GetHashCode(); - if (this.ExpiresIn != null) - hashCode = hashCode * 59 + this.ExpiresIn.GetHashCode(); - if (this.RefreshToken != null) - hashCode = hashCode * 59 + this.RefreshToken.GetHashCode(); - if (this.Issued != null) - hashCode = hashCode * 59 + this.Issued.GetHashCode(); - if (this.Expires != null) - hashCode = hashCode * 59 + this.Expires.GetHashCode(); - if (this.ArxclientId != null) - hashCode = hashCode * 59 + this.ArxclientId.GetHashCode(); - if (this.ArxuserMustChangePassword != null) - hashCode = hashCode * 59 + this.ArxuserMustChangePassword.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationTokenImplicitRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationTokenImplicitRequestDTO.cs deleted file mode 100644 index b961fb5..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationTokenImplicitRequestDTO.cs +++ /dev/null @@ -1,316 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Authentication token request for implicit authentication - /// - [DataContract] - public partial class AuthenticationTokenImplicitRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AuthenticationTokenImplicitRequestDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Client id (required). - /// Client secret (required). - /// Logon provider for authentication (existing association required). - /// Impersonate user id. - /// Impersonate user by externalId. - /// Client version. - /// Machine Key. - /// Language. - /// Url for success redirect. - /// Request scope list. - /// Request client Ip. - public AuthenticationTokenImplicitRequestDTO(string clientId = default(string), string clientSecret = default(string), string logonProviderId = default(string), int? impersonateUserId = default(int?), string impersonateExternalId = default(string), string clientVersion = default(string), string machineKey = default(string), string languageCultureName = default(string), string successRedirectUri = default(string), List scopeList = default(List), string clientIpAddress = default(string)) - { - // to ensure "clientId" is required (not null) - if (clientId == null) - { - throw new InvalidDataException("clientId is a required property for AuthenticationTokenImplicitRequestDTO and cannot be null"); - } - else - { - this.ClientId = clientId; - } - // to ensure "clientSecret" is required (not null) - if (clientSecret == null) - { - throw new InvalidDataException("clientSecret is a required property for AuthenticationTokenImplicitRequestDTO and cannot be null"); - } - else - { - this.ClientSecret = clientSecret; - } - this.LogonProviderId = logonProviderId; - this.ImpersonateUserId = impersonateUserId; - this.ImpersonateExternalId = impersonateExternalId; - this.ClientVersion = clientVersion; - this.MachineKey = machineKey; - this.LanguageCultureName = languageCultureName; - this.SuccessRedirectUri = successRedirectUri; - this.ScopeList = scopeList; - this.ClientIpAddress = clientIpAddress; - } - - /// - /// Client id - /// - /// Client id - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// Client secret - /// - /// Client secret - [DataMember(Name="clientSecret", EmitDefaultValue=false)] - public string ClientSecret { get; set; } - - /// - /// Logon provider for authentication (existing association required) - /// - /// Logon provider for authentication (existing association required) - [DataMember(Name="logonProviderId", EmitDefaultValue=false)] - public string LogonProviderId { get; set; } - - /// - /// Impersonate user id - /// - /// Impersonate user id - [DataMember(Name="impersonateUserId", EmitDefaultValue=false)] - public int? ImpersonateUserId { get; set; } - - /// - /// Impersonate user by externalId - /// - /// Impersonate user by externalId - [DataMember(Name="impersonateExternalId", EmitDefaultValue=false)] - public string ImpersonateExternalId { get; set; } - - /// - /// Client version - /// - /// Client version - [DataMember(Name="clientVersion", EmitDefaultValue=false)] - public string ClientVersion { get; set; } - - /// - /// Machine Key - /// - /// Machine Key - [DataMember(Name="machineKey", EmitDefaultValue=false)] - public string MachineKey { get; set; } - - /// - /// Language - /// - /// Language - [DataMember(Name="languageCultureName", EmitDefaultValue=false)] - public string LanguageCultureName { get; set; } - - /// - /// Url for success redirect - /// - /// Url for success redirect - [DataMember(Name="successRedirectUri", EmitDefaultValue=false)] - public string SuccessRedirectUri { get; set; } - - /// - /// Request scope list - /// - /// Request scope list - [DataMember(Name="scopeList", EmitDefaultValue=false)] - public List ScopeList { get; set; } - - /// - /// Request client Ip - /// - /// Request client Ip - [DataMember(Name="clientIpAddress", EmitDefaultValue=false)] - public string ClientIpAddress { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AuthenticationTokenImplicitRequestDTO {\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n"); - sb.Append(" LogonProviderId: ").Append(LogonProviderId).Append("\n"); - sb.Append(" ImpersonateUserId: ").Append(ImpersonateUserId).Append("\n"); - sb.Append(" ImpersonateExternalId: ").Append(ImpersonateExternalId).Append("\n"); - sb.Append(" ClientVersion: ").Append(ClientVersion).Append("\n"); - sb.Append(" MachineKey: ").Append(MachineKey).Append("\n"); - sb.Append(" LanguageCultureName: ").Append(LanguageCultureName).Append("\n"); - sb.Append(" SuccessRedirectUri: ").Append(SuccessRedirectUri).Append("\n"); - sb.Append(" ScopeList: ").Append(ScopeList).Append("\n"); - sb.Append(" ClientIpAddress: ").Append(ClientIpAddress).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AuthenticationTokenImplicitRequestDTO); - } - - /// - /// Returns true if AuthenticationTokenImplicitRequestDTO instances are equal - /// - /// Instance of AuthenticationTokenImplicitRequestDTO to be compared - /// Boolean - public bool Equals(AuthenticationTokenImplicitRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.ClientSecret == input.ClientSecret || - (this.ClientSecret != null && - this.ClientSecret.Equals(input.ClientSecret)) - ) && - ( - this.LogonProviderId == input.LogonProviderId || - (this.LogonProviderId != null && - this.LogonProviderId.Equals(input.LogonProviderId)) - ) && - ( - this.ImpersonateUserId == input.ImpersonateUserId || - (this.ImpersonateUserId != null && - this.ImpersonateUserId.Equals(input.ImpersonateUserId)) - ) && - ( - this.ImpersonateExternalId == input.ImpersonateExternalId || - (this.ImpersonateExternalId != null && - this.ImpersonateExternalId.Equals(input.ImpersonateExternalId)) - ) && - ( - this.ClientVersion == input.ClientVersion || - (this.ClientVersion != null && - this.ClientVersion.Equals(input.ClientVersion)) - ) && - ( - this.MachineKey == input.MachineKey || - (this.MachineKey != null && - this.MachineKey.Equals(input.MachineKey)) - ) && - ( - this.LanguageCultureName == input.LanguageCultureName || - (this.LanguageCultureName != null && - this.LanguageCultureName.Equals(input.LanguageCultureName)) - ) && - ( - this.SuccessRedirectUri == input.SuccessRedirectUri || - (this.SuccessRedirectUri != null && - this.SuccessRedirectUri.Equals(input.SuccessRedirectUri)) - ) && - ( - this.ScopeList == input.ScopeList || - this.ScopeList != null && - this.ScopeList.SequenceEqual(input.ScopeList) - ) && - ( - this.ClientIpAddress == input.ClientIpAddress || - (this.ClientIpAddress != null && - this.ClientIpAddress.Equals(input.ClientIpAddress)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.ClientSecret != null) - hashCode = hashCode * 59 + this.ClientSecret.GetHashCode(); - if (this.LogonProviderId != null) - hashCode = hashCode * 59 + this.LogonProviderId.GetHashCode(); - if (this.ImpersonateUserId != null) - hashCode = hashCode * 59 + this.ImpersonateUserId.GetHashCode(); - if (this.ImpersonateExternalId != null) - hashCode = hashCode * 59 + this.ImpersonateExternalId.GetHashCode(); - if (this.ClientVersion != null) - hashCode = hashCode * 59 + this.ClientVersion.GetHashCode(); - if (this.MachineKey != null) - hashCode = hashCode * 59 + this.MachineKey.GetHashCode(); - if (this.LanguageCultureName != null) - hashCode = hashCode * 59 + this.LanguageCultureName.GetHashCode(); - if (this.SuccessRedirectUri != null) - hashCode = hashCode * 59 + this.SuccessRedirectUri.GetHashCode(); - if (this.ScopeList != null) - hashCode = hashCode * 59 + this.ScopeList.GetHashCode(); - if (this.ClientIpAddress != null) - hashCode = hashCode * 59 + this.ClientIpAddress.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationTokenRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationTokenRequestDTO.cs deleted file mode 100644 index facc6fe..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationTokenRequestDTO.cs +++ /dev/null @@ -1,366 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Authentication token request with credentials - /// - [DataContract] - public partial class AuthenticationTokenRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AuthenticationTokenRequestDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Username (required). - /// Password (required). - /// Client id (required). - /// Client secret (required). - /// Logon provider for authentication (existing association required). - /// Impersonate user id. - /// Impersonate user by externalId. - /// Client version. - /// Machine Key. - /// Language. - /// Url for success redirect. - /// Request scope list. - /// Request client Ip. - public AuthenticationTokenRequestDTO(string username = default(string), string password = default(string), string clientId = default(string), string clientSecret = default(string), string logonProviderId = default(string), int? impersonateUserId = default(int?), string impersonateExternalId = default(string), string clientVersion = default(string), string machineKey = default(string), string languageCultureName = default(string), string successRedirectUri = default(string), List scopeList = default(List), string clientIpAddress = default(string)) - { - // to ensure "username" is required (not null) - if (username == null) - { - throw new InvalidDataException("username is a required property for AuthenticationTokenRequestDTO and cannot be null"); - } - else - { - this.Username = username; - } - // to ensure "password" is required (not null) - if (password == null) - { - throw new InvalidDataException("password is a required property for AuthenticationTokenRequestDTO and cannot be null"); - } - else - { - this.Password = password; - } - // to ensure "clientId" is required (not null) - if (clientId == null) - { - throw new InvalidDataException("clientId is a required property for AuthenticationTokenRequestDTO and cannot be null"); - } - else - { - this.ClientId = clientId; - } - // to ensure "clientSecret" is required (not null) - if (clientSecret == null) - { - throw new InvalidDataException("clientSecret is a required property for AuthenticationTokenRequestDTO and cannot be null"); - } - else - { - this.ClientSecret = clientSecret; - } - this.LogonProviderId = logonProviderId; - this.ImpersonateUserId = impersonateUserId; - this.ImpersonateExternalId = impersonateExternalId; - this.ClientVersion = clientVersion; - this.MachineKey = machineKey; - this.LanguageCultureName = languageCultureName; - this.SuccessRedirectUri = successRedirectUri; - this.ScopeList = scopeList; - this.ClientIpAddress = clientIpAddress; - } - - /// - /// Username - /// - /// Username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Client id - /// - /// Client id - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// Client secret - /// - /// Client secret - [DataMember(Name="clientSecret", EmitDefaultValue=false)] - public string ClientSecret { get; set; } - - /// - /// Logon provider for authentication (existing association required) - /// - /// Logon provider for authentication (existing association required) - [DataMember(Name="logonProviderId", EmitDefaultValue=false)] - public string LogonProviderId { get; set; } - - /// - /// Impersonate user id - /// - /// Impersonate user id - [DataMember(Name="impersonateUserId", EmitDefaultValue=false)] - public int? ImpersonateUserId { get; set; } - - /// - /// Impersonate user by externalId - /// - /// Impersonate user by externalId - [DataMember(Name="impersonateExternalId", EmitDefaultValue=false)] - public string ImpersonateExternalId { get; set; } - - /// - /// Client version - /// - /// Client version - [DataMember(Name="clientVersion", EmitDefaultValue=false)] - public string ClientVersion { get; set; } - - /// - /// Machine Key - /// - /// Machine Key - [DataMember(Name="machineKey", EmitDefaultValue=false)] - public string MachineKey { get; set; } - - /// - /// Language - /// - /// Language - [DataMember(Name="languageCultureName", EmitDefaultValue=false)] - public string LanguageCultureName { get; set; } - - /// - /// Url for success redirect - /// - /// Url for success redirect - [DataMember(Name="successRedirectUri", EmitDefaultValue=false)] - public string SuccessRedirectUri { get; set; } - - /// - /// Request scope list - /// - /// Request scope list - [DataMember(Name="scopeList", EmitDefaultValue=false)] - public List ScopeList { get; set; } - - /// - /// Request client Ip - /// - /// Request client Ip - [DataMember(Name="clientIpAddress", EmitDefaultValue=false)] - public string ClientIpAddress { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AuthenticationTokenRequestDTO {\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n"); - sb.Append(" LogonProviderId: ").Append(LogonProviderId).Append("\n"); - sb.Append(" ImpersonateUserId: ").Append(ImpersonateUserId).Append("\n"); - sb.Append(" ImpersonateExternalId: ").Append(ImpersonateExternalId).Append("\n"); - sb.Append(" ClientVersion: ").Append(ClientVersion).Append("\n"); - sb.Append(" MachineKey: ").Append(MachineKey).Append("\n"); - sb.Append(" LanguageCultureName: ").Append(LanguageCultureName).Append("\n"); - sb.Append(" SuccessRedirectUri: ").Append(SuccessRedirectUri).Append("\n"); - sb.Append(" ScopeList: ").Append(ScopeList).Append("\n"); - sb.Append(" ClientIpAddress: ").Append(ClientIpAddress).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AuthenticationTokenRequestDTO); - } - - /// - /// Returns true if AuthenticationTokenRequestDTO instances are equal - /// - /// Instance of AuthenticationTokenRequestDTO to be compared - /// Boolean - public bool Equals(AuthenticationTokenRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.ClientSecret == input.ClientSecret || - (this.ClientSecret != null && - this.ClientSecret.Equals(input.ClientSecret)) - ) && - ( - this.LogonProviderId == input.LogonProviderId || - (this.LogonProviderId != null && - this.LogonProviderId.Equals(input.LogonProviderId)) - ) && - ( - this.ImpersonateUserId == input.ImpersonateUserId || - (this.ImpersonateUserId != null && - this.ImpersonateUserId.Equals(input.ImpersonateUserId)) - ) && - ( - this.ImpersonateExternalId == input.ImpersonateExternalId || - (this.ImpersonateExternalId != null && - this.ImpersonateExternalId.Equals(input.ImpersonateExternalId)) - ) && - ( - this.ClientVersion == input.ClientVersion || - (this.ClientVersion != null && - this.ClientVersion.Equals(input.ClientVersion)) - ) && - ( - this.MachineKey == input.MachineKey || - (this.MachineKey != null && - this.MachineKey.Equals(input.MachineKey)) - ) && - ( - this.LanguageCultureName == input.LanguageCultureName || - (this.LanguageCultureName != null && - this.LanguageCultureName.Equals(input.LanguageCultureName)) - ) && - ( - this.SuccessRedirectUri == input.SuccessRedirectUri || - (this.SuccessRedirectUri != null && - this.SuccessRedirectUri.Equals(input.SuccessRedirectUri)) - ) && - ( - this.ScopeList == input.ScopeList || - this.ScopeList != null && - this.ScopeList.SequenceEqual(input.ScopeList) - ) && - ( - this.ClientIpAddress == input.ClientIpAddress || - (this.ClientIpAddress != null && - this.ClientIpAddress.Equals(input.ClientIpAddress)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.ClientSecret != null) - hashCode = hashCode * 59 + this.ClientSecret.GetHashCode(); - if (this.LogonProviderId != null) - hashCode = hashCode * 59 + this.LogonProviderId.GetHashCode(); - if (this.ImpersonateUserId != null) - hashCode = hashCode * 59 + this.ImpersonateUserId.GetHashCode(); - if (this.ImpersonateExternalId != null) - hashCode = hashCode * 59 + this.ImpersonateExternalId.GetHashCode(); - if (this.ClientVersion != null) - hashCode = hashCode * 59 + this.ClientVersion.GetHashCode(); - if (this.MachineKey != null) - hashCode = hashCode * 59 + this.MachineKey.GetHashCode(); - if (this.LanguageCultureName != null) - hashCode = hashCode * 59 + this.LanguageCultureName.GetHashCode(); - if (this.SuccessRedirectUri != null) - hashCode = hashCode * 59 + this.SuccessRedirectUri.GetHashCode(); - if (this.ScopeList != null) - hashCode = hashCode * 59 + this.ScopeList.GetHashCode(); - if (this.ClientIpAddress != null) - hashCode = hashCode * 59 + this.ClientIpAddress.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationTokenResponseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationTokenResponseDTO.cs deleted file mode 100644 index cd9f236..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AuthenticationTokenResponseDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// GetWindowsLogonRedirectUri response - /// - [DataContract] - public partial class AuthenticationTokenResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Redirect uri to address the browser. - /// Error code. - /// Error desciption. - public AuthenticationTokenResponseDTO(string redirectUri = default(string), string error = default(string), string errorDescription = default(string)) - { - this.RedirectUri = redirectUri; - this.Error = error; - this.ErrorDescription = errorDescription; - } - - /// - /// Redirect uri to address the browser - /// - /// Redirect uri to address the browser - [DataMember(Name="redirectUri", EmitDefaultValue=false)] - public string RedirectUri { get; set; } - - /// - /// Error code - /// - /// Error code - [DataMember(Name="error", EmitDefaultValue=false)] - public string Error { get; set; } - - /// - /// Error desciption - /// - /// Error desciption - [DataMember(Name="errorDescription", EmitDefaultValue=false)] - public string ErrorDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AuthenticationTokenResponseDTO {\n"); - sb.Append(" RedirectUri: ").Append(RedirectUri).Append("\n"); - sb.Append(" Error: ").Append(Error).Append("\n"); - sb.Append(" ErrorDescription: ").Append(ErrorDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AuthenticationTokenResponseDTO); - } - - /// - /// Returns true if AuthenticationTokenResponseDTO instances are equal - /// - /// Instance of AuthenticationTokenResponseDTO to be compared - /// Boolean - public bool Equals(AuthenticationTokenResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.RedirectUri == input.RedirectUri || - (this.RedirectUri != null && - this.RedirectUri.Equals(input.RedirectUri)) - ) && - ( - this.Error == input.Error || - (this.Error != null && - this.Error.Equals(input.Error)) - ) && - ( - this.ErrorDescription == input.ErrorDescription || - (this.ErrorDescription != null && - this.ErrorDescription.Equals(input.ErrorDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.RedirectUri != null) - hashCode = hashCode * 59 + this.RedirectUri.GetHashCode(); - if (this.Error != null) - hashCode = hashCode * 59 + this.Error.GetHashCode(); - if (this.ErrorDescription != null) - hashCode = hashCode * 59 + this.ErrorDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AuthorityDataDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AuthorityDataDTO.cs deleted file mode 100644 index ff9da3e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AuthorityDataDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the authority data - /// - [DataContract] - public partial class AuthorityDataDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Authority Identifier. - /// Document Identifier. - /// Protocol number. - /// Protocol Date and time. - /// Office. - /// Reference person. - /// Shipping address. - /// Referent. - public AuthorityDataDTO(int? id = default(int?), int? docNumber = default(int?), string protocol = default(string), DateTime? protocolDate = default(DateTime?), string office = default(string), string person = default(string), string shipping = default(string), string yourReferent = default(string)) - { - this.Id = id; - this.DocNumber = docNumber; - this.Protocol = protocol; - this.ProtocolDate = protocolDate; - this.Office = office; - this.Person = person; - this.Shipping = shipping; - this.YourReferent = yourReferent; - } - - /// - /// Authority Identifier - /// - /// Authority Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docNumber", EmitDefaultValue=false)] - public int? DocNumber { get; set; } - - /// - /// Protocol number - /// - /// Protocol number - [DataMember(Name="protocol", EmitDefaultValue=false)] - public string Protocol { get; set; } - - /// - /// Protocol Date and time - /// - /// Protocol Date and time - [DataMember(Name="protocolDate", EmitDefaultValue=false)] - public DateTime? ProtocolDate { get; set; } - - /// - /// Office - /// - /// Office - [DataMember(Name="office", EmitDefaultValue=false)] - public string Office { get; set; } - - /// - /// Reference person - /// - /// Reference person - [DataMember(Name="person", EmitDefaultValue=false)] - public string Person { get; set; } - - /// - /// Shipping address - /// - /// Shipping address - [DataMember(Name="shipping", EmitDefaultValue=false)] - public string Shipping { get; set; } - - /// - /// Referent - /// - /// Referent - [DataMember(Name="yourReferent", EmitDefaultValue=false)] - public string YourReferent { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AuthorityDataDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" DocNumber: ").Append(DocNumber).Append("\n"); - sb.Append(" Protocol: ").Append(Protocol).Append("\n"); - sb.Append(" ProtocolDate: ").Append(ProtocolDate).Append("\n"); - sb.Append(" Office: ").Append(Office).Append("\n"); - sb.Append(" Person: ").Append(Person).Append("\n"); - sb.Append(" Shipping: ").Append(Shipping).Append("\n"); - sb.Append(" YourReferent: ").Append(YourReferent).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AuthorityDataDTO); - } - - /// - /// Returns true if AuthorityDataDTO instances are equal - /// - /// Instance of AuthorityDataDTO to be compared - /// Boolean - public bool Equals(AuthorityDataDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.DocNumber == input.DocNumber || - (this.DocNumber != null && - this.DocNumber.Equals(input.DocNumber)) - ) && - ( - this.Protocol == input.Protocol || - (this.Protocol != null && - this.Protocol.Equals(input.Protocol)) - ) && - ( - this.ProtocolDate == input.ProtocolDate || - (this.ProtocolDate != null && - this.ProtocolDate.Equals(input.ProtocolDate)) - ) && - ( - this.Office == input.Office || - (this.Office != null && - this.Office.Equals(input.Office)) - ) && - ( - this.Person == input.Person || - (this.Person != null && - this.Person.Equals(input.Person)) - ) && - ( - this.Shipping == input.Shipping || - (this.Shipping != null && - this.Shipping.Equals(input.Shipping)) - ) && - ( - this.YourReferent == input.YourReferent || - (this.YourReferent != null && - this.YourReferent.Equals(input.YourReferent)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.DocNumber != null) - hashCode = hashCode * 59 + this.DocNumber.GetHashCode(); - if (this.Protocol != null) - hashCode = hashCode * 59 + this.Protocol.GetHashCode(); - if (this.ProtocolDate != null) - hashCode = hashCode * 59 + this.ProtocolDate.GetHashCode(); - if (this.Office != null) - hashCode = hashCode * 59 + this.Office.GetHashCode(); - if (this.Person != null) - hashCode = hashCode * 59 + this.Person.GetHashCode(); - if (this.Shipping != null) - hashCode = hashCode * 59 + this.Shipping.GetHashCode(); - if (this.YourReferent != null) - hashCode = hashCode * 59 + this.YourReferent.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/AuthorityDataFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/AuthorityDataFieldDTO.cs deleted file mode 100644 index fc45699..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/AuthorityDataFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Authority data - /// - [DataContract] - public partial class AuthorityDataFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AuthorityDataFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// List of values. - public AuthorityDataFieldDTO(List value = default(List), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AuthorityDataFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// List of values - /// - /// List of values - [DataMember(Name="value", EmitDefaultValue=false)] - public List Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AuthorityDataFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AuthorityDataFieldDTO); - } - - /// - /// Returns true if AuthorityDataFieldDTO instances are equal - /// - /// Instance of AuthorityDataFieldDTO to be compared - /// Boolean - public bool Equals(AuthorityDataFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - this.Value != null && - this.Value.SequenceEqual(input.Value) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BarcodeDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/BarcodeDTO.cs deleted file mode 100644 index aa21dab..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BarcodeDTO.cs +++ /dev/null @@ -1,295 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// BarcodeDTO - /// - [DataContract] - public partial class BarcodeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique identifier. - /// Unique identifier for profile. - /// Number of print. - /// Read date and time. - /// Readed pages count. - /// Possible values: 0: ImportedAndHideDocument 1: WaitDocument 2: ImportedDocument . - /// Original file name of associated document. - /// Associated document date and time. - /// Hash of associated document. - /// Possible values: 0: Document 1: Attachment 2: Revision . - /// Barcode. - public BarcodeDTO(int? id = default(int?), int? docnumber = default(int?), int? printNumber = default(int?), DateTime? readDateTime = default(DateTime?), int? readedCount = default(int?), int? aquisitionState = default(int?), string originalFileName = default(string), DateTime? documentDate = default(DateTime?), string documentHash = default(string), int? barcodeType = default(int?), string barcode = default(string)) - { - this.Id = id; - this.Docnumber = docnumber; - this.PrintNumber = printNumber; - this.ReadDateTime = readDateTime; - this.ReadedCount = readedCount; - this.AquisitionState = aquisitionState; - this.OriginalFileName = originalFileName; - this.DocumentDate = documentDate; - this.DocumentHash = documentHash; - this.BarcodeType = barcodeType; - this.Barcode = barcode; - } - - /// - /// Unique identifier - /// - /// Unique identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Unique identifier for profile - /// - /// Unique identifier for profile - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Number of print - /// - /// Number of print - [DataMember(Name="printNumber", EmitDefaultValue=false)] - public int? PrintNumber { get; set; } - - /// - /// Read date and time - /// - /// Read date and time - [DataMember(Name="readDateTime", EmitDefaultValue=false)] - public DateTime? ReadDateTime { get; set; } - - /// - /// Readed pages count - /// - /// Readed pages count - [DataMember(Name="readedCount", EmitDefaultValue=false)] - public int? ReadedCount { get; set; } - - /// - /// Possible values: 0: ImportedAndHideDocument 1: WaitDocument 2: ImportedDocument - /// - /// Possible values: 0: ImportedAndHideDocument 1: WaitDocument 2: ImportedDocument - [DataMember(Name="aquisitionState", EmitDefaultValue=false)] - public int? AquisitionState { get; set; } - - /// - /// Original file name of associated document - /// - /// Original file name of associated document - [DataMember(Name="originalFileName", EmitDefaultValue=false)] - public string OriginalFileName { get; set; } - - /// - /// Associated document date and time - /// - /// Associated document date and time - [DataMember(Name="documentDate", EmitDefaultValue=false)] - public DateTime? DocumentDate { get; set; } - - /// - /// Hash of associated document - /// - /// Hash of associated document - [DataMember(Name="documentHash", EmitDefaultValue=false)] - public string DocumentHash { get; set; } - - /// - /// Possible values: 0: Document 1: Attachment 2: Revision - /// - /// Possible values: 0: Document 1: Attachment 2: Revision - [DataMember(Name="barcodeType", EmitDefaultValue=false)] - public int? BarcodeType { get; set; } - - /// - /// Barcode - /// - /// Barcode - [DataMember(Name="barcode", EmitDefaultValue=false)] - public string Barcode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BarcodeDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" PrintNumber: ").Append(PrintNumber).Append("\n"); - sb.Append(" ReadDateTime: ").Append(ReadDateTime).Append("\n"); - sb.Append(" ReadedCount: ").Append(ReadedCount).Append("\n"); - sb.Append(" AquisitionState: ").Append(AquisitionState).Append("\n"); - sb.Append(" OriginalFileName: ").Append(OriginalFileName).Append("\n"); - sb.Append(" DocumentDate: ").Append(DocumentDate).Append("\n"); - sb.Append(" DocumentHash: ").Append(DocumentHash).Append("\n"); - sb.Append(" BarcodeType: ").Append(BarcodeType).Append("\n"); - sb.Append(" Barcode: ").Append(Barcode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BarcodeDTO); - } - - /// - /// Returns true if BarcodeDTO instances are equal - /// - /// Instance of BarcodeDTO to be compared - /// Boolean - public bool Equals(BarcodeDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.PrintNumber == input.PrintNumber || - (this.PrintNumber != null && - this.PrintNumber.Equals(input.PrintNumber)) - ) && - ( - this.ReadDateTime == input.ReadDateTime || - (this.ReadDateTime != null && - this.ReadDateTime.Equals(input.ReadDateTime)) - ) && - ( - this.ReadedCount == input.ReadedCount || - (this.ReadedCount != null && - this.ReadedCount.Equals(input.ReadedCount)) - ) && - ( - this.AquisitionState == input.AquisitionState || - (this.AquisitionState != null && - this.AquisitionState.Equals(input.AquisitionState)) - ) && - ( - this.OriginalFileName == input.OriginalFileName || - (this.OriginalFileName != null && - this.OriginalFileName.Equals(input.OriginalFileName)) - ) && - ( - this.DocumentDate == input.DocumentDate || - (this.DocumentDate != null && - this.DocumentDate.Equals(input.DocumentDate)) - ) && - ( - this.DocumentHash == input.DocumentHash || - (this.DocumentHash != null && - this.DocumentHash.Equals(input.DocumentHash)) - ) && - ( - this.BarcodeType == input.BarcodeType || - (this.BarcodeType != null && - this.BarcodeType.Equals(input.BarcodeType)) - ) && - ( - this.Barcode == input.Barcode || - (this.Barcode != null && - this.Barcode.Equals(input.Barcode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.PrintNumber != null) - hashCode = hashCode * 59 + this.PrintNumber.GetHashCode(); - if (this.ReadDateTime != null) - hashCode = hashCode * 59 + this.ReadDateTime.GetHashCode(); - if (this.ReadedCount != null) - hashCode = hashCode * 59 + this.ReadedCount.GetHashCode(); - if (this.AquisitionState != null) - hashCode = hashCode * 59 + this.AquisitionState.GetHashCode(); - if (this.OriginalFileName != null) - hashCode = hashCode * 59 + this.OriginalFileName.GetHashCode(); - if (this.DocumentDate != null) - hashCode = hashCode * 59 + this.DocumentDate.GetHashCode(); - if (this.DocumentHash != null) - hashCode = hashCode * 59 + this.DocumentHash.GetHashCode(); - if (this.BarcodeType != null) - hashCode = hashCode * 59 + this.BarcodeType.GetHashCode(); - if (this.Barcode != null) - hashCode = hashCode * 59 + this.Barcode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BarcodeFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/BarcodeFieldDTO.cs deleted file mode 100644 index 8a7ab55..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BarcodeFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Barcode - /// - [DataContract] - public partial class BarcodeFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected BarcodeFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Barcode value. - public BarcodeFieldDTO(string value = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "BarcodeFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Barcode value - /// - /// Barcode value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BarcodeFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BarcodeFieldDTO); - } - - /// - /// Returns true if BarcodeFieldDTO instances are equal - /// - /// Instance of BarcodeFieldDTO to be compared - /// Boolean - public bool Equals(BarcodeFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BarcodeGraphicTemplateDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/BarcodeGraphicTemplateDto.cs deleted file mode 100644 index 22b97b9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BarcodeGraphicTemplateDto.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Barcode Graphic Template - /// - [DataContract] - public partial class BarcodeGraphicTemplateDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Origin Blob. - /// Origin Datatable. - public BarcodeGraphicTemplateDto(string graphicTemplateB64 = default(string), string templateDattableB64 = default(string)) - { - this.GraphicTemplateB64 = graphicTemplateB64; - this.TemplateDattableB64 = templateDattableB64; - } - - /// - /// Origin Blob - /// - /// Origin Blob - [DataMember(Name="graphicTemplateB64", EmitDefaultValue=false)] - public string GraphicTemplateB64 { get; set; } - - /// - /// Origin Datatable - /// - /// Origin Datatable - [DataMember(Name="templateDattableB64", EmitDefaultValue=false)] - public string TemplateDattableB64 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BarcodeGraphicTemplateDto {\n"); - sb.Append(" GraphicTemplateB64: ").Append(GraphicTemplateB64).Append("\n"); - sb.Append(" TemplateDattableB64: ").Append(TemplateDattableB64).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BarcodeGraphicTemplateDto); - } - - /// - /// Returns true if BarcodeGraphicTemplateDto instances are equal - /// - /// Instance of BarcodeGraphicTemplateDto to be compared - /// Boolean - public bool Equals(BarcodeGraphicTemplateDto input) - { - if (input == null) - return false; - - return - ( - this.GraphicTemplateB64 == input.GraphicTemplateB64 || - (this.GraphicTemplateB64 != null && - this.GraphicTemplateB64.Equals(input.GraphicTemplateB64)) - ) && - ( - this.TemplateDattableB64 == input.TemplateDattableB64 || - (this.TemplateDattableB64 != null && - this.TemplateDattableB64.Equals(input.TemplateDattableB64)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.GraphicTemplateB64 != null) - hashCode = hashCode * 59 + this.GraphicTemplateB64.GetHashCode(); - if (this.TemplateDattableB64 != null) - hashCode = hashCode * 59 + this.TemplateDattableB64.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BarcodeGraphicTemplateSaveDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/BarcodeGraphicTemplateSaveDto.cs deleted file mode 100644 index d9e3f76..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BarcodeGraphicTemplateSaveDto.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Barcode Graphic Template to Save - /// - [DataContract] - public partial class BarcodeGraphicTemplateSaveDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document Type Identifier. - /// Graphic Template Blob. - public BarcodeGraphicTemplateSaveDto(int? dmTipidocumentoId = default(int?), string graphicTemplateB64 = default(string)) - { - this.DmTipidocumentoId = dmTipidocumentoId; - this.GraphicTemplateB64 = graphicTemplateB64; - } - - /// - /// Document Type Identifier - /// - /// Document Type Identifier - [DataMember(Name="dmTipidocumentoId", EmitDefaultValue=false)] - public int? DmTipidocumentoId { get; set; } - - /// - /// Graphic Template Blob - /// - /// Graphic Template Blob - [DataMember(Name="graphicTemplateB64", EmitDefaultValue=false)] - public string GraphicTemplateB64 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BarcodeGraphicTemplateSaveDto {\n"); - sb.Append(" DmTipidocumentoId: ").Append(DmTipidocumentoId).Append("\n"); - sb.Append(" GraphicTemplateB64: ").Append(GraphicTemplateB64).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BarcodeGraphicTemplateSaveDto); - } - - /// - /// Returns true if BarcodeGraphicTemplateSaveDto instances are equal - /// - /// Instance of BarcodeGraphicTemplateSaveDto to be compared - /// Boolean - public bool Equals(BarcodeGraphicTemplateSaveDto input) - { - if (input == null) - return false; - - return - ( - this.DmTipidocumentoId == input.DmTipidocumentoId || - (this.DmTipidocumentoId != null && - this.DmTipidocumentoId.Equals(input.DmTipidocumentoId)) - ) && - ( - this.GraphicTemplateB64 == input.GraphicTemplateB64 || - (this.GraphicTemplateB64 != null && - this.GraphicTemplateB64.Equals(input.GraphicTemplateB64)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DmTipidocumentoId != null) - hashCode = hashCode * 59 + this.DmTipidocumentoId.GetHashCode(); - if (this.GraphicTemplateB64 != null) - hashCode = hashCode * 59 + this.GraphicTemplateB64.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BarcodeInsertRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/BarcodeInsertRequestDTO.cs deleted file mode 100644 index 9046549..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BarcodeInsertRequestDTO.cs +++ /dev/null @@ -1,157 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class that represents a new barcode item request - /// - [DataContract] - public partial class BarcodeInsertRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// docnumber. - /// Possible values: 0: Document 1: Attachment 2: Revision . - /// barcode. - public BarcodeInsertRequestDTO(int? docnumber = default(int?), int? barcodeType = default(int?), string barcode = default(string)) - { - this.Docnumber = docnumber; - this.BarcodeType = barcodeType; - this.Barcode = barcode; - } - - /// - /// Gets or Sets Docnumber - /// - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Possible values: 0: Document 1: Attachment 2: Revision - /// - /// Possible values: 0: Document 1: Attachment 2: Revision - [DataMember(Name="barcodeType", EmitDefaultValue=false)] - public int? BarcodeType { get; set; } - - /// - /// Gets or Sets Barcode - /// - [DataMember(Name="barcode", EmitDefaultValue=false)] - public string Barcode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BarcodeInsertRequestDTO {\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" BarcodeType: ").Append(BarcodeType).Append("\n"); - sb.Append(" Barcode: ").Append(Barcode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BarcodeInsertRequestDTO); - } - - /// - /// Returns true if BarcodeInsertRequestDTO instances are equal - /// - /// Instance of BarcodeInsertRequestDTO to be compared - /// Boolean - public bool Equals(BarcodeInsertRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.BarcodeType == input.BarcodeType || - (this.BarcodeType != null && - this.BarcodeType.Equals(input.BarcodeType)) - ) && - ( - this.Barcode == input.Barcode || - (this.Barcode != null && - this.Barcode.Equals(input.Barcode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.BarcodeType != null) - hashCode = hashCode * 59 + this.BarcodeType.GetHashCode(); - if (this.Barcode != null) - hashCode = hashCode * 59 + this.Barcode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BarcodePrintResultDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/BarcodePrintResultDto.cs deleted file mode 100644 index c427ca7..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BarcodePrintResultDto.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of result of print barcode - /// - [DataContract] - public partial class BarcodePrintResultDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Client 1: Server 2: ClientFile 3: TerminalServer . - /// Possible values: 0: MachineLanguage 1: GraphicData . - /// Printer Name. - /// Language Machine. - /// Graphic Template Blob. - /// Origin Datatable. - public BarcodePrintResultDto(int? printMethod = default(int?), int? printerDataMode = default(int?), string printerName = default(string), string machineLanguageText = default(string), string graphicTemplateB64 = default(string), string templateDattableB64 = default(string)) - { - this.PrintMethod = printMethod; - this.PrinterDataMode = printerDataMode; - this.PrinterName = printerName; - this.MachineLanguageText = machineLanguageText; - this.GraphicTemplateB64 = graphicTemplateB64; - this.TemplateDattableB64 = templateDattableB64; - } - - /// - /// Possible values: 0: Client 1: Server 2: ClientFile 3: TerminalServer - /// - /// Possible values: 0: Client 1: Server 2: ClientFile 3: TerminalServer - [DataMember(Name="printMethod", EmitDefaultValue=false)] - public int? PrintMethod { get; set; } - - /// - /// Possible values: 0: MachineLanguage 1: GraphicData - /// - /// Possible values: 0: MachineLanguage 1: GraphicData - [DataMember(Name="printerDataMode", EmitDefaultValue=false)] - public int? PrinterDataMode { get; set; } - - /// - /// Printer Name - /// - /// Printer Name - [DataMember(Name="printerName", EmitDefaultValue=false)] - public string PrinterName { get; set; } - - /// - /// Language Machine - /// - /// Language Machine - [DataMember(Name="machineLanguageText", EmitDefaultValue=false)] - public string MachineLanguageText { get; set; } - - /// - /// Graphic Template Blob - /// - /// Graphic Template Blob - [DataMember(Name="graphicTemplateB64", EmitDefaultValue=false)] - public string GraphicTemplateB64 { get; set; } - - /// - /// Origin Datatable - /// - /// Origin Datatable - [DataMember(Name="templateDattableB64", EmitDefaultValue=false)] - public string TemplateDattableB64 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BarcodePrintResultDto {\n"); - sb.Append(" PrintMethod: ").Append(PrintMethod).Append("\n"); - sb.Append(" PrinterDataMode: ").Append(PrinterDataMode).Append("\n"); - sb.Append(" PrinterName: ").Append(PrinterName).Append("\n"); - sb.Append(" MachineLanguageText: ").Append(MachineLanguageText).Append("\n"); - sb.Append(" GraphicTemplateB64: ").Append(GraphicTemplateB64).Append("\n"); - sb.Append(" TemplateDattableB64: ").Append(TemplateDattableB64).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BarcodePrintResultDto); - } - - /// - /// Returns true if BarcodePrintResultDto instances are equal - /// - /// Instance of BarcodePrintResultDto to be compared - /// Boolean - public bool Equals(BarcodePrintResultDto input) - { - if (input == null) - return false; - - return - ( - this.PrintMethod == input.PrintMethod || - (this.PrintMethod != null && - this.PrintMethod.Equals(input.PrintMethod)) - ) && - ( - this.PrinterDataMode == input.PrinterDataMode || - (this.PrinterDataMode != null && - this.PrinterDataMode.Equals(input.PrinterDataMode)) - ) && - ( - this.PrinterName == input.PrinterName || - (this.PrinterName != null && - this.PrinterName.Equals(input.PrinterName)) - ) && - ( - this.MachineLanguageText == input.MachineLanguageText || - (this.MachineLanguageText != null && - this.MachineLanguageText.Equals(input.MachineLanguageText)) - ) && - ( - this.GraphicTemplateB64 == input.GraphicTemplateB64 || - (this.GraphicTemplateB64 != null && - this.GraphicTemplateB64.Equals(input.GraphicTemplateB64)) - ) && - ( - this.TemplateDattableB64 == input.TemplateDattableB64 || - (this.TemplateDattableB64 != null && - this.TemplateDattableB64.Equals(input.TemplateDattableB64)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.PrintMethod != null) - hashCode = hashCode * 59 + this.PrintMethod.GetHashCode(); - if (this.PrinterDataMode != null) - hashCode = hashCode * 59 + this.PrinterDataMode.GetHashCode(); - if (this.PrinterName != null) - hashCode = hashCode * 59 + this.PrinterName.GetHashCode(); - if (this.MachineLanguageText != null) - hashCode = hashCode * 59 + this.MachineLanguageText.GetHashCode(); - if (this.GraphicTemplateB64 != null) - hashCode = hashCode * 59 + this.GraphicTemplateB64.GetHashCode(); - if (this.TemplateDattableB64 != null) - hashCode = hashCode * 59 + this.TemplateDattableB64.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BarcodeTemplateDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/BarcodeTemplateDto.cs deleted file mode 100644 index befb4da..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BarcodeTemplateDto.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of barcode template - /// - [DataContract] - public partial class BarcodeTemplateDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Barcode Template Name. - /// Possible values: 0: ZEBRA_EPL2 1: ZEBRA_ZPL2 2: TOSHIBA_BSV4 3: EPSON_ESC_POS 4: GRAPHIC . - /// Document Type Identifier. - public BarcodeTemplateDto(string barcodeTemplate = default(string), int? printerFamily = default(int?), int? dmTipidocumentoId = default(int?)) - { - this.BarcodeTemplate = barcodeTemplate; - this.PrinterFamily = printerFamily; - this.DmTipidocumentoId = dmTipidocumentoId; - } - - /// - /// Barcode Template Name - /// - /// Barcode Template Name - [DataMember(Name="barcodeTemplate", EmitDefaultValue=false)] - public string BarcodeTemplate { get; set; } - - /// - /// Possible values: 0: ZEBRA_EPL2 1: ZEBRA_ZPL2 2: TOSHIBA_BSV4 3: EPSON_ESC_POS 4: GRAPHIC - /// - /// Possible values: 0: ZEBRA_EPL2 1: ZEBRA_ZPL2 2: TOSHIBA_BSV4 3: EPSON_ESC_POS 4: GRAPHIC - [DataMember(Name="printerFamily", EmitDefaultValue=false)] - public int? PrinterFamily { get; set; } - - /// - /// Document Type Identifier - /// - /// Document Type Identifier - [DataMember(Name="dmTipidocumentoId", EmitDefaultValue=false)] - public int? DmTipidocumentoId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BarcodeTemplateDto {\n"); - sb.Append(" BarcodeTemplate: ").Append(BarcodeTemplate).Append("\n"); - sb.Append(" PrinterFamily: ").Append(PrinterFamily).Append("\n"); - sb.Append(" DmTipidocumentoId: ").Append(DmTipidocumentoId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BarcodeTemplateDto); - } - - /// - /// Returns true if BarcodeTemplateDto instances are equal - /// - /// Instance of BarcodeTemplateDto to be compared - /// Boolean - public bool Equals(BarcodeTemplateDto input) - { - if (input == null) - return false; - - return - ( - this.BarcodeTemplate == input.BarcodeTemplate || - (this.BarcodeTemplate != null && - this.BarcodeTemplate.Equals(input.BarcodeTemplate)) - ) && - ( - this.PrinterFamily == input.PrinterFamily || - (this.PrinterFamily != null && - this.PrinterFamily.Equals(input.PrinterFamily)) - ) && - ( - this.DmTipidocumentoId == input.DmTipidocumentoId || - (this.DmTipidocumentoId != null && - this.DmTipidocumentoId.Equals(input.DmTipidocumentoId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.BarcodeTemplate != null) - hashCode = hashCode * 59 + this.BarcodeTemplate.GetHashCode(); - if (this.PrinterFamily != null) - hashCode = hashCode * 59 + this.PrinterFamily.GetHashCode(); - if (this.DmTipidocumentoId != null) - hashCode = hashCode * 59 + this.DmTipidocumentoId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BarcodeUserSettingsDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/BarcodeUserSettingsDto.cs deleted file mode 100644 index 8efdcaf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BarcodeUserSettingsDto.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of barcode settings - /// - [DataContract] - public partial class BarcodeUserSettingsDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Activate User. - /// Possible values: 0: Client 1: Server 2: ClientFile 3: TerminalServer . - /// Print Settings. - /// X Offset. - /// Y Offset. - /// Possible values: 0: EPL2 1: POS 2: OTHER . - public BarcodeUserSettingsDto(bool? activateUserSettings = default(bool?), int? barcodePrintMode = default(int?), string barcodePrintSettings = default(string), int? barcodeAttachmentPrintOffsetX = default(int?), int? barcodeAttachmentPrintOffsetY = default(int?), int? printerMode = default(int?)) - { - this.ActivateUserSettings = activateUserSettings; - this.BarcodePrintMode = barcodePrintMode; - this.BarcodePrintSettings = barcodePrintSettings; - this.BarcodeAttachmentPrintOffsetX = barcodeAttachmentPrintOffsetX; - this.BarcodeAttachmentPrintOffsetY = barcodeAttachmentPrintOffsetY; - this.PrinterMode = printerMode; - } - - /// - /// Activate User - /// - /// Activate User - [DataMember(Name="activateUserSettings", EmitDefaultValue=false)] - public bool? ActivateUserSettings { get; set; } - - /// - /// Possible values: 0: Client 1: Server 2: ClientFile 3: TerminalServer - /// - /// Possible values: 0: Client 1: Server 2: ClientFile 3: TerminalServer - [DataMember(Name="barcodePrintMode", EmitDefaultValue=false)] - public int? BarcodePrintMode { get; set; } - - /// - /// Print Settings - /// - /// Print Settings - [DataMember(Name="barcodePrintSettings", EmitDefaultValue=false)] - public string BarcodePrintSettings { get; set; } - - /// - /// X Offset - /// - /// X Offset - [DataMember(Name="barcodeAttachmentPrintOffsetX", EmitDefaultValue=false)] - public int? BarcodeAttachmentPrintOffsetX { get; set; } - - /// - /// Y Offset - /// - /// Y Offset - [DataMember(Name="barcodeAttachmentPrintOffsetY", EmitDefaultValue=false)] - public int? BarcodeAttachmentPrintOffsetY { get; set; } - - /// - /// Possible values: 0: EPL2 1: POS 2: OTHER - /// - /// Possible values: 0: EPL2 1: POS 2: OTHER - [DataMember(Name="printerMode", EmitDefaultValue=false)] - public int? PrinterMode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BarcodeUserSettingsDto {\n"); - sb.Append(" ActivateUserSettings: ").Append(ActivateUserSettings).Append("\n"); - sb.Append(" BarcodePrintMode: ").Append(BarcodePrintMode).Append("\n"); - sb.Append(" BarcodePrintSettings: ").Append(BarcodePrintSettings).Append("\n"); - sb.Append(" BarcodeAttachmentPrintOffsetX: ").Append(BarcodeAttachmentPrintOffsetX).Append("\n"); - sb.Append(" BarcodeAttachmentPrintOffsetY: ").Append(BarcodeAttachmentPrintOffsetY).Append("\n"); - sb.Append(" PrinterMode: ").Append(PrinterMode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BarcodeUserSettingsDto); - } - - /// - /// Returns true if BarcodeUserSettingsDto instances are equal - /// - /// Instance of BarcodeUserSettingsDto to be compared - /// Boolean - public bool Equals(BarcodeUserSettingsDto input) - { - if (input == null) - return false; - - return - ( - this.ActivateUserSettings == input.ActivateUserSettings || - (this.ActivateUserSettings != null && - this.ActivateUserSettings.Equals(input.ActivateUserSettings)) - ) && - ( - this.BarcodePrintMode == input.BarcodePrintMode || - (this.BarcodePrintMode != null && - this.BarcodePrintMode.Equals(input.BarcodePrintMode)) - ) && - ( - this.BarcodePrintSettings == input.BarcodePrintSettings || - (this.BarcodePrintSettings != null && - this.BarcodePrintSettings.Equals(input.BarcodePrintSettings)) - ) && - ( - this.BarcodeAttachmentPrintOffsetX == input.BarcodeAttachmentPrintOffsetX || - (this.BarcodeAttachmentPrintOffsetX != null && - this.BarcodeAttachmentPrintOffsetX.Equals(input.BarcodeAttachmentPrintOffsetX)) - ) && - ( - this.BarcodeAttachmentPrintOffsetY == input.BarcodeAttachmentPrintOffsetY || - (this.BarcodeAttachmentPrintOffsetY != null && - this.BarcodeAttachmentPrintOffsetY.Equals(input.BarcodeAttachmentPrintOffsetY)) - ) && - ( - this.PrinterMode == input.PrinterMode || - (this.PrinterMode != null && - this.PrinterMode.Equals(input.PrinterMode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ActivateUserSettings != null) - hashCode = hashCode * 59 + this.ActivateUserSettings.GetHashCode(); - if (this.BarcodePrintMode != null) - hashCode = hashCode * 59 + this.BarcodePrintMode.GetHashCode(); - if (this.BarcodePrintSettings != null) - hashCode = hashCode * 59 + this.BarcodePrintSettings.GetHashCode(); - if (this.BarcodeAttachmentPrintOffsetX != null) - hashCode = hashCode * 59 + this.BarcodeAttachmentPrintOffsetX.GetHashCode(); - if (this.BarcodeAttachmentPrintOffsetY != null) - hashCode = hashCode * 59 + this.BarcodeAttachmentPrintOffsetY.GetHashCode(); - if (this.PrinterMode != null) - hashCode = hashCode * 59 + this.PrinterMode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BinderBaseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/BinderBaseDTO.cs deleted file mode 100644 index e383eeb..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BinderBaseDTO.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// BinderBaseDTO - /// - [DataContract] - public partial class BinderBaseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// name. - /// code. - public BinderBaseDTO(int? id = default(int?), string name = default(string), string code = default(string)) - { - this.Id = id; - this.Name = name; - this.Code = code; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Gets or Sets Code - /// - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderBaseDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderBaseDTO); - } - - /// - /// Returns true if BinderBaseDTO instances are equal - /// - /// Instance of BinderBaseDTO to be compared - /// Boolean - public bool Equals(BinderBaseDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BinderComboValuesUpdateRequest.cs b/ACUtils.AXRepository/ArxivarNext/Model/BinderComboValuesUpdateRequest.cs deleted file mode 100644 index a55b836..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BinderComboValuesUpdateRequest.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Cladd of request for update binder combo custom fields values - /// - [DataContract] - public partial class BinderComboValuesUpdateRequest : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Array of values to update. - /// Identifier of the binder custom combo field. - public BinderComboValuesUpdateRequest(List values = default(List), int? binderComboCustomFieldId = default(int?)) - { - this.Values = values; - this.BinderComboCustomFieldId = binderComboCustomFieldId; - } - - /// - /// Array of values to update - /// - /// Array of values to update - [DataMember(Name="values", EmitDefaultValue=false)] - public List Values { get; set; } - - /// - /// Identifier of the binder custom combo field - /// - /// Identifier of the binder custom combo field - [DataMember(Name="binderComboCustomFieldId", EmitDefaultValue=false)] - public int? BinderComboCustomFieldId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderComboValuesUpdateRequest {\n"); - sb.Append(" Values: ").Append(Values).Append("\n"); - sb.Append(" BinderComboCustomFieldId: ").Append(BinderComboCustomFieldId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderComboValuesUpdateRequest); - } - - /// - /// Returns true if BinderComboValuesUpdateRequest instances are equal - /// - /// Instance of BinderComboValuesUpdateRequest to be compared - /// Boolean - public bool Equals(BinderComboValuesUpdateRequest input) - { - if (input == null) - return false; - - return - ( - this.Values == input.Values || - this.Values != null && - this.Values.SequenceEqual(input.Values) - ) && - ( - this.BinderComboCustomFieldId == input.BinderComboCustomFieldId || - (this.BinderComboCustomFieldId != null && - this.BinderComboCustomFieldId.Equals(input.BinderComboCustomFieldId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Values != null) - hashCode = hashCode * 59 + this.Values.GetHashCode(); - if (this.BinderComboCustomFieldId != null) - hashCode = hashCode * 59 + this.BinderComboCustomFieldId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BinderDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/BinderDTO.cs deleted file mode 100644 index 3f5a6cf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BinderDTO.cs +++ /dev/null @@ -1,328 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of binder - /// - [DataContract] - public partial class BinderDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Type Identifier. - /// Folder Identifier. - /// Name. - /// Code. - /// Expiry. - /// Start Date. - /// State. - /// Author Identifier. - /// Author Name. - /// External Identifier. - /// Type Description. - /// fields. - public BinderDTO(int? id = default(int?), int? binderTypeId = default(int?), int? folderId = default(int?), string binderName = default(string), string code = default(string), DateTime? endDate = default(DateTime?), DateTime? startDate = default(DateTime?), int? binderState = default(int?), int? user = default(int?), string userCompleteName = default(string), string externalId = default(string), string binderTypeDescription = default(string), List fields = default(List)) - { - this.Id = id; - this.BinderTypeId = binderTypeId; - this.FolderId = folderId; - this.BinderName = binderName; - this.Code = code; - this.EndDate = endDate; - this.StartDate = startDate; - this.BinderState = binderState; - this.User = user; - this.UserCompleteName = userCompleteName; - this.ExternalId = externalId; - this.BinderTypeDescription = binderTypeDescription; - this.Fields = fields; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Type Identifier - /// - /// Type Identifier - [DataMember(Name="binderTypeId", EmitDefaultValue=false)] - public int? BinderTypeId { get; set; } - - /// - /// Folder Identifier - /// - /// Folder Identifier - [DataMember(Name="folderId", EmitDefaultValue=false)] - public int? FolderId { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="binderName", EmitDefaultValue=false)] - public string BinderName { get; set; } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Expiry - /// - /// Expiry - [DataMember(Name="endDate", EmitDefaultValue=false)] - public DateTime? EndDate { get; set; } - - /// - /// Start Date - /// - /// Start Date - [DataMember(Name="startDate", EmitDefaultValue=false)] - public DateTime? StartDate { get; set; } - - /// - /// State - /// - /// State - [DataMember(Name="binderState", EmitDefaultValue=false)] - public int? BinderState { get; set; } - - /// - /// Author Identifier - /// - /// Author Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Author Name - /// - /// Author Name - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Type Description - /// - /// Type Description - [DataMember(Name="binderTypeDescription", EmitDefaultValue=false)] - public string BinderTypeDescription { get; set; } - - /// - /// Gets or Sets Fields - /// - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" BinderTypeId: ").Append(BinderTypeId).Append("\n"); - sb.Append(" FolderId: ").Append(FolderId).Append("\n"); - sb.Append(" BinderName: ").Append(BinderName).Append("\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" BinderState: ").Append(BinderState).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" BinderTypeDescription: ").Append(BinderTypeDescription).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderDTO); - } - - /// - /// Returns true if BinderDTO instances are equal - /// - /// Instance of BinderDTO to be compared - /// Boolean - public bool Equals(BinderDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.BinderTypeId == input.BinderTypeId || - (this.BinderTypeId != null && - this.BinderTypeId.Equals(input.BinderTypeId)) - ) && - ( - this.FolderId == input.FolderId || - (this.FolderId != null && - this.FolderId.Equals(input.FolderId)) - ) && - ( - this.BinderName == input.BinderName || - (this.BinderName != null && - this.BinderName.Equals(input.BinderName)) - ) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && - ( - this.BinderState == input.BinderState || - (this.BinderState != null && - this.BinderState.Equals(input.BinderState)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.BinderTypeDescription == input.BinderTypeDescription || - (this.BinderTypeDescription != null && - this.BinderTypeDescription.Equals(input.BinderTypeDescription)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.BinderTypeId != null) - hashCode = hashCode * 59 + this.BinderTypeId.GetHashCode(); - if (this.FolderId != null) - hashCode = hashCode * 59 + this.FolderId.GetHashCode(); - if (this.BinderName != null) - hashCode = hashCode * 59 + this.BinderName.GetHashCode(); - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.BinderState != null) - hashCode = hashCode * 59 + this.BinderState.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.BinderTypeDescription != null) - hashCode = hashCode * 59 + this.BinderTypeDescription.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BinderFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/BinderFieldDTO.cs deleted file mode 100644 index fb319bd..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BinderFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of binder - /// - [DataContract] - public partial class BinderFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected BinderFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Bionder value list. - public BinderFieldDTO(List value = default(List), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "BinderFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Bionder value list - /// - /// Bionder value list - [DataMember(Name="value", EmitDefaultValue=false)] - public List Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderFieldDTO); - } - - /// - /// Returns true if BinderFieldDTO instances are equal - /// - /// Instance of BinderFieldDTO to be compared - /// Boolean - public bool Equals(BinderFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - this.Value != null && - this.Value.SequenceEqual(input.Value) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BinderPermissionsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/BinderPermissionsDTO.cs deleted file mode 100644 index 1459cdd..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BinderPermissionsDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of binder permission - /// - [DataContract] - public partial class BinderPermissionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Spread to binders. - /// List of user permissions. - /// Permission Properties. - public BinderPermissionsDTO(bool? spread = default(bool?), List usersPermissions = default(List), List permissionsProperties = default(List)) - { - this.Spread = spread; - this.UsersPermissions = usersPermissions; - this.PermissionsProperties = permissionsProperties; - } - - /// - /// Spread to binders - /// - /// Spread to binders - [DataMember(Name="spread", EmitDefaultValue=false)] - public bool? Spread { get; set; } - - /// - /// List of user permissions - /// - /// List of user permissions - [DataMember(Name="usersPermissions", EmitDefaultValue=false)] - public List UsersPermissions { get; set; } - - /// - /// Permission Properties - /// - /// Permission Properties - [DataMember(Name="permissionsProperties", EmitDefaultValue=false)] - public List PermissionsProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderPermissionsDTO {\n"); - sb.Append(" Spread: ").Append(Spread).Append("\n"); - sb.Append(" UsersPermissions: ").Append(UsersPermissions).Append("\n"); - sb.Append(" PermissionsProperties: ").Append(PermissionsProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderPermissionsDTO); - } - - /// - /// Returns true if BinderPermissionsDTO instances are equal - /// - /// Instance of BinderPermissionsDTO to be compared - /// Boolean - public bool Equals(BinderPermissionsDTO input) - { - if (input == null) - return false; - - return - ( - this.Spread == input.Spread || - (this.Spread != null && - this.Spread.Equals(input.Spread)) - ) && - ( - this.UsersPermissions == input.UsersPermissions || - this.UsersPermissions != null && - this.UsersPermissions.SequenceEqual(input.UsersPermissions) - ) && - ( - this.PermissionsProperties == input.PermissionsProperties || - this.PermissionsProperties != null && - this.PermissionsProperties.SequenceEqual(input.PermissionsProperties) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Spread != null) - hashCode = hashCode * 59 + this.Spread.GetHashCode(); - if (this.UsersPermissions != null) - hashCode = hashCode * 59 + this.UsersPermissions.GetHashCode(); - if (this.PermissionsProperties != null) - hashCode = hashCode * 59 + this.PermissionsProperties.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BinderPreviewFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/BinderPreviewFieldDTO.cs deleted file mode 100644 index 62e4f16..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BinderPreviewFieldDTO.cs +++ /dev/null @@ -1,131 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// BinderPreviewFieldDTO - /// - [DataContract] - public partial class BinderPreviewFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected BinderPreviewFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// value. - public BinderPreviewFieldDTO(BinderDTO value = default(BinderDTO), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "BinderPreviewFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public BinderDTO Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderPreviewFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderPreviewFieldDTO); - } - - /// - /// Returns true if BinderPreviewFieldDTO instances are equal - /// - /// Instance of BinderPreviewFieldDTO to be compared - /// Boolean - public bool Equals(BinderPreviewFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BinderProfilesInsertRequest.cs b/ACUtils.AXRepository/ArxivarNext/Model/BinderProfilesInsertRequest.cs deleted file mode 100644 index 5773295..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BinderProfilesInsertRequest.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of request for adding some profiles to a binder - /// - [DataContract] - public partial class BinderProfilesInsertRequest : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Profiles to add. - /// Binder Identifier. - public BinderProfilesInsertRequest(List profilesIds = default(List), int? binderId = default(int?)) - { - this.ProfilesIds = profilesIds; - this.BinderId = binderId; - } - - /// - /// Profiles to add - /// - /// Profiles to add - [DataMember(Name="profilesIds", EmitDefaultValue=false)] - public List ProfilesIds { get; set; } - - /// - /// Binder Identifier - /// - /// Binder Identifier - [DataMember(Name="binderId", EmitDefaultValue=false)] - public int? BinderId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderProfilesInsertRequest {\n"); - sb.Append(" ProfilesIds: ").Append(ProfilesIds).Append("\n"); - sb.Append(" BinderId: ").Append(BinderId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderProfilesInsertRequest); - } - - /// - /// Returns true if BinderProfilesInsertRequest instances are equal - /// - /// Instance of BinderProfilesInsertRequest to be compared - /// Boolean - public bool Equals(BinderProfilesInsertRequest input) - { - if (input == null) - return false; - - return - ( - this.ProfilesIds == input.ProfilesIds || - this.ProfilesIds != null && - this.ProfilesIds.SequenceEqual(input.ProfilesIds) - ) && - ( - this.BinderId == input.BinderId || - (this.BinderId != null && - this.BinderId.Equals(input.BinderId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ProfilesIds != null) - hashCode = hashCode * 59 + this.ProfilesIds.GetHashCode(); - if (this.BinderId != null) - hashCode = hashCode * 59 + this.BinderId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BinderProfilesRemoveRequest.cs b/ACUtils.AXRepository/ArxivarNext/Model/BinderProfilesRemoveRequest.cs deleted file mode 100644 index 24eeebd..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BinderProfilesRemoveRequest.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of request for remove some profiles to a binder - /// - [DataContract] - public partial class BinderProfilesRemoveRequest : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Profiles to remove. - /// Binder Identifier. - public BinderProfilesRemoveRequest(List profilesIds = default(List), int? binderId = default(int?)) - { - this.ProfilesIds = profilesIds; - this.BinderId = binderId; - } - - /// - /// Profiles to remove - /// - /// Profiles to remove - [DataMember(Name="profilesIds", EmitDefaultValue=false)] - public List ProfilesIds { get; set; } - - /// - /// Binder Identifier - /// - /// Binder Identifier - [DataMember(Name="binderId", EmitDefaultValue=false)] - public int? BinderId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderProfilesRemoveRequest {\n"); - sb.Append(" ProfilesIds: ").Append(ProfilesIds).Append("\n"); - sb.Append(" BinderId: ").Append(BinderId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderProfilesRemoveRequest); - } - - /// - /// Returns true if BinderProfilesRemoveRequest instances are equal - /// - /// Instance of BinderProfilesRemoveRequest to be compared - /// Boolean - public bool Equals(BinderProfilesRemoveRequest input) - { - if (input == null) - return false; - - return - ( - this.ProfilesIds == input.ProfilesIds || - this.ProfilesIds != null && - this.ProfilesIds.SequenceEqual(input.ProfilesIds) - ) && - ( - this.BinderId == input.BinderId || - (this.BinderId != null && - this.BinderId.Equals(input.BinderId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ProfilesIds != null) - hashCode = hashCode * 59 + this.ProfilesIds.GetHashCode(); - if (this.BinderId != null) - hashCode = hashCode * 59 + this.BinderId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BinderProfilesSearchRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/BinderProfilesSearchRequestDTO.cs deleted file mode 100644 index c643e9a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BinderProfilesSearchRequestDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Classs of the profiles contained in Binder search request - /// - [DataContract] - public partial class BinderProfilesSearchRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Binders ids. - /// Select for columns and positions for profiles result. - public BinderProfilesSearchRequestDTO(List binderids = default(List), SelectDTO selectDto = default(SelectDTO)) - { - this.Binderids = binderids; - this.SelectDto = selectDto; - } - - /// - /// Binders ids - /// - /// Binders ids - [DataMember(Name="binderids", EmitDefaultValue=false)] - public List Binderids { get; set; } - - /// - /// Select for columns and positions for profiles result - /// - /// Select for columns and positions for profiles result - [DataMember(Name="selectDto", EmitDefaultValue=false)] - public SelectDTO SelectDto { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderProfilesSearchRequestDTO {\n"); - sb.Append(" Binderids: ").Append(Binderids).Append("\n"); - sb.Append(" SelectDto: ").Append(SelectDto).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderProfilesSearchRequestDTO); - } - - /// - /// Returns true if BinderProfilesSearchRequestDTO instances are equal - /// - /// Instance of BinderProfilesSearchRequestDTO to be compared - /// Boolean - public bool Equals(BinderProfilesSearchRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Binderids == input.Binderids || - this.Binderids != null && - this.Binderids.SequenceEqual(input.Binderids) - ) && - ( - this.SelectDto == input.SelectDto || - (this.SelectDto != null && - this.SelectDto.Equals(input.SelectDto)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Binderids != null) - hashCode = hashCode * 59 + this.Binderids.GetHashCode(); - if (this.SelectDto != null) - hashCode = hashCode * 59 + this.SelectDto.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BinderStateDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/BinderStateDto.cs deleted file mode 100644 index a2da90f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BinderStateDto.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of state for a binder - /// - [DataContract] - public partial class BinderStateDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Code of the state. - /// Description of the state. - public BinderStateDto(int? stateCode = default(int?), string stateDescription = default(string)) - { - this.StateCode = stateCode; - this.StateDescription = stateDescription; - } - - /// - /// Code of the state - /// - /// Code of the state - [DataMember(Name="stateCode", EmitDefaultValue=false)] - public int? StateCode { get; set; } - - /// - /// Description of the state - /// - /// Description of the state - [DataMember(Name="stateDescription", EmitDefaultValue=false)] - public string StateDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderStateDto {\n"); - sb.Append(" StateCode: ").Append(StateCode).Append("\n"); - sb.Append(" StateDescription: ").Append(StateDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderStateDto); - } - - /// - /// Returns true if BinderStateDto instances are equal - /// - /// Instance of BinderStateDto to be compared - /// Boolean - public bool Equals(BinderStateDto input) - { - if (input == null) - return false; - - return - ( - this.StateCode == input.StateCode || - (this.StateCode != null && - this.StateCode.Equals(input.StateCode)) - ) && - ( - this.StateDescription == input.StateDescription || - (this.StateDescription != null && - this.StateDescription.Equals(input.StateDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.StateCode != null) - hashCode = hashCode * 59 + this.StateCode.GetHashCode(); - if (this.StateDescription != null) - hashCode = hashCode * 59 + this.StateDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BinderTypeCustomFieldUpdateRequest.cs b/ACUtils.AXRepository/ArxivarNext/Model/BinderTypeCustomFieldUpdateRequest.cs deleted file mode 100644 index f6bf0d8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BinderTypeCustomFieldUpdateRequest.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Dto for update custom binder type fields - /// - [DataContract] - public partial class BinderTypeCustomFieldUpdateRequest : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Fields to update. - /// Binder Identifier. - public BinderTypeCustomFieldUpdateRequest(List fields = default(List), int? bynderTypeId = default(int?)) - { - this.Fields = fields; - this.BynderTypeId = bynderTypeId; - } - - /// - /// Fields to update - /// - /// Fields to update - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Binder Identifier - /// - /// Binder Identifier - [DataMember(Name="bynderTypeId", EmitDefaultValue=false)] - public int? BynderTypeId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderTypeCustomFieldUpdateRequest {\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append(" BynderTypeId: ").Append(BynderTypeId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderTypeCustomFieldUpdateRequest); - } - - /// - /// Returns true if BinderTypeCustomFieldUpdateRequest instances are equal - /// - /// Instance of BinderTypeCustomFieldUpdateRequest to be compared - /// Boolean - public bool Equals(BinderTypeCustomFieldUpdateRequest input) - { - if (input == null) - return false; - - return - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ) && - ( - this.BynderTypeId == input.BynderTypeId || - (this.BynderTypeId != null && - this.BynderTypeId.Equals(input.BynderTypeId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - if (this.BynderTypeId != null) - hashCode = hashCode * 59 + this.BynderTypeId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BinderTypeDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/BinderTypeDTO.cs deleted file mode 100644 index 61fbd46..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BinderTypeDTO.cs +++ /dev/null @@ -1,261 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of binder type - /// - [DataContract] - public partial class BinderTypeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Type Identifier. - /// Folder Identifier. - /// Dynamic Folder. - /// Progressive number. - /// Dynamic Progressive number. - /// External Identifier. - /// Custom Fields. - /// As default. - public BinderTypeDTO(int? id = default(int?), string binderType = default(string), int? folderId = default(int?), string dynamicFolder = default(string), int? progressive = default(int?), string dynamicNumber = default(string), string externalId = default(string), List fields = default(List), bool? _default = default(bool?)) - { - this.Id = id; - this.BinderType = binderType; - this.FolderId = folderId; - this.DynamicFolder = dynamicFolder; - this.Progressive = progressive; - this.DynamicNumber = dynamicNumber; - this.ExternalId = externalId; - this.Fields = fields; - this.Default = _default; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Type Identifier - /// - /// Type Identifier - [DataMember(Name="binderType", EmitDefaultValue=false)] - public string BinderType { get; set; } - - /// - /// Folder Identifier - /// - /// Folder Identifier - [DataMember(Name="folderId", EmitDefaultValue=false)] - public int? FolderId { get; set; } - - /// - /// Dynamic Folder - /// - /// Dynamic Folder - [DataMember(Name="dynamicFolder", EmitDefaultValue=false)] - public string DynamicFolder { get; set; } - - /// - /// Progressive number - /// - /// Progressive number - [DataMember(Name="progressive", EmitDefaultValue=false)] - public int? Progressive { get; set; } - - /// - /// Dynamic Progressive number - /// - /// Dynamic Progressive number - [DataMember(Name="dynamicNumber", EmitDefaultValue=false)] - public string DynamicNumber { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Custom Fields - /// - /// Custom Fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// As default - /// - /// As default - [DataMember(Name="default", EmitDefaultValue=false)] - public bool? Default { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderTypeDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" BinderType: ").Append(BinderType).Append("\n"); - sb.Append(" FolderId: ").Append(FolderId).Append("\n"); - sb.Append(" DynamicFolder: ").Append(DynamicFolder).Append("\n"); - sb.Append(" Progressive: ").Append(Progressive).Append("\n"); - sb.Append(" DynamicNumber: ").Append(DynamicNumber).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append(" Default: ").Append(Default).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderTypeDTO); - } - - /// - /// Returns true if BinderTypeDTO instances are equal - /// - /// Instance of BinderTypeDTO to be compared - /// Boolean - public bool Equals(BinderTypeDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.BinderType == input.BinderType || - (this.BinderType != null && - this.BinderType.Equals(input.BinderType)) - ) && - ( - this.FolderId == input.FolderId || - (this.FolderId != null && - this.FolderId.Equals(input.FolderId)) - ) && - ( - this.DynamicFolder == input.DynamicFolder || - (this.DynamicFolder != null && - this.DynamicFolder.Equals(input.DynamicFolder)) - ) && - ( - this.Progressive == input.Progressive || - (this.Progressive != null && - this.Progressive.Equals(input.Progressive)) - ) && - ( - this.DynamicNumber == input.DynamicNumber || - (this.DynamicNumber != null && - this.DynamicNumber.Equals(input.DynamicNumber)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ) && - ( - this.Default == input.Default || - (this.Default != null && - this.Default.Equals(input.Default)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.BinderType != null) - hashCode = hashCode * 59 + this.BinderType.GetHashCode(); - if (this.FolderId != null) - hashCode = hashCode * 59 + this.FolderId.GetHashCode(); - if (this.DynamicFolder != null) - hashCode = hashCode * 59 + this.DynamicFolder.GetHashCode(); - if (this.Progressive != null) - hashCode = hashCode * 59 + this.Progressive.GetHashCode(); - if (this.DynamicNumber != null) - hashCode = hashCode * 59 + this.DynamicNumber.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - if (this.Default != null) - hashCode = hashCode * 59 + this.Default.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BinderUserDefaultTypeAndStateDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/BinderUserDefaultTypeAndStateDto.cs deleted file mode 100644 index f964aa0..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BinderUserDefaultTypeAndStateDto.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Dto for user default binders type and state selection - /// - [DataContract] - public partial class BinderUserDefaultTypeAndStateDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Default binder type. - /// Default binder state. - public BinderUserDefaultTypeAndStateDto(int? defaultBinderType = default(int?), int? defaultBinderState = default(int?)) - { - this.DefaultBinderType = defaultBinderType; - this.DefaultBinderState = defaultBinderState; - } - - /// - /// Default binder type - /// - /// Default binder type - [DataMember(Name="defaultBinderType", EmitDefaultValue=false)] - public int? DefaultBinderType { get; set; } - - /// - /// Default binder state - /// - /// Default binder state - [DataMember(Name="defaultBinderState", EmitDefaultValue=false)] - public int? DefaultBinderState { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderUserDefaultTypeAndStateDto {\n"); - sb.Append(" DefaultBinderType: ").Append(DefaultBinderType).Append("\n"); - sb.Append(" DefaultBinderState: ").Append(DefaultBinderState).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderUserDefaultTypeAndStateDto); - } - - /// - /// Returns true if BinderUserDefaultTypeAndStateDto instances are equal - /// - /// Instance of BinderUserDefaultTypeAndStateDto to be compared - /// Boolean - public bool Equals(BinderUserDefaultTypeAndStateDto input) - { - if (input == null) - return false; - - return - ( - this.DefaultBinderType == input.DefaultBinderType || - (this.DefaultBinderType != null && - this.DefaultBinderType.Equals(input.DefaultBinderType)) - ) && - ( - this.DefaultBinderState == input.DefaultBinderState || - (this.DefaultBinderState != null && - this.DefaultBinderState.Equals(input.DefaultBinderState)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DefaultBinderType != null) - hashCode = hashCode * 59 + this.DefaultBinderType.GetHashCode(); - if (this.DefaultBinderState != null) - hashCode = hashCode * 59 + this.DefaultBinderState.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BooleanKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/BooleanKeyValueDTO.cs deleted file mode 100644 index d88df68..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BooleanKeyValueDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Boolean key value - /// - [DataContract] - public partial class BooleanKeyValueDTO : GenericKeyValueDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected BooleanKeyValueDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - public BooleanKeyValueDTO(bool? value = default(bool?), string className = "BooleanKeyValueDTO", string key = default(string)) : base(className, key) - { - this.Value = value; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public bool? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BooleanKeyValueDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BooleanKeyValueDTO); - } - - /// - /// Returns true if BooleanKeyValueDTO instances are equal - /// - /// Instance of BooleanKeyValueDTO to be compared - /// Boolean - public bool Equals(BooleanKeyValueDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BufferSimpleElement.cs b/ACUtils.AXRepository/ArxivarNext/Model/BufferSimpleElement.cs deleted file mode 100644 index 3484ac4..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BufferSimpleElement.cs +++ /dev/null @@ -1,221 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// BufferSimpleElement - /// - [DataContract] - public partial class BufferSimpleElement : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// filename. - /// creationDate. - /// monitoredFolderId. - /// monitoredFolderPath. - /// fileSize. - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign . - public BufferSimpleElement(string id = default(string), string filename = default(string), DateTime? creationDate = default(DateTime?), string monitoredFolderId = default(string), string monitoredFolderPath = default(string), long? fileSize = default(long?), int? bufferElementType = default(int?)) - { - this.Id = id; - this.Filename = filename; - this.CreationDate = creationDate; - this.MonitoredFolderId = monitoredFolderId; - this.MonitoredFolderPath = monitoredFolderPath; - this.FileSize = fileSize; - this.BufferElementType = bufferElementType; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Gets or Sets Filename - /// - [DataMember(Name="filename", EmitDefaultValue=false)] - public string Filename { get; set; } - - /// - /// Gets or Sets CreationDate - /// - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Gets or Sets MonitoredFolderId - /// - [DataMember(Name="monitoredFolderId", EmitDefaultValue=false)] - public string MonitoredFolderId { get; set; } - - /// - /// Gets or Sets MonitoredFolderPath - /// - [DataMember(Name="monitoredFolderPath", EmitDefaultValue=false)] - public string MonitoredFolderPath { get; set; } - - /// - /// Gets or Sets FileSize - /// - [DataMember(Name="fileSize", EmitDefaultValue=false)] - public long? FileSize { get; set; } - - /// - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - /// - /// Possible values: 0: DmBuffer 1: NextArchive 2: MonitoredFolder 3: ProcessDocThumbnail 4: CloneProfile 5: ReportExecuted 6: Mail 7: ESign - [DataMember(Name="bufferElementType", EmitDefaultValue=false)] - public int? BufferElementType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BufferSimpleElement {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Filename: ").Append(Filename).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" MonitoredFolderId: ").Append(MonitoredFolderId).Append("\n"); - sb.Append(" MonitoredFolderPath: ").Append(MonitoredFolderPath).Append("\n"); - sb.Append(" FileSize: ").Append(FileSize).Append("\n"); - sb.Append(" BufferElementType: ").Append(BufferElementType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BufferSimpleElement); - } - - /// - /// Returns true if BufferSimpleElement instances are equal - /// - /// Instance of BufferSimpleElement to be compared - /// Boolean - public bool Equals(BufferSimpleElement input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Filename == input.Filename || - (this.Filename != null && - this.Filename.Equals(input.Filename)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.MonitoredFolderId == input.MonitoredFolderId || - (this.MonitoredFolderId != null && - this.MonitoredFolderId.Equals(input.MonitoredFolderId)) - ) && - ( - this.MonitoredFolderPath == input.MonitoredFolderPath || - (this.MonitoredFolderPath != null && - this.MonitoredFolderPath.Equals(input.MonitoredFolderPath)) - ) && - ( - this.FileSize == input.FileSize || - (this.FileSize != null && - this.FileSize.Equals(input.FileSize)) - ) && - ( - this.BufferElementType == input.BufferElementType || - (this.BufferElementType != null && - this.BufferElementType.Equals(input.BufferElementType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Filename != null) - hashCode = hashCode * 59 + this.Filename.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.MonitoredFolderId != null) - hashCode = hashCode * 59 + this.MonitoredFolderId.GetHashCode(); - if (this.MonitoredFolderPath != null) - hashCode = hashCode * 59 + this.MonitoredFolderPath.GetHashCode(); - if (this.FileSize != null) - hashCode = hashCode * 59 + this.FileSize.GetHashCode(); - if (this.BufferElementType != null) - hashCode = hashCode * 59 + this.BufferElementType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BusinessUnitDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/BusinessUnitDTO.cs deleted file mode 100644 index a33784f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BusinessUnitDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Business Unit - /// - [DataContract] - public partial class BusinessUnitDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Code. - /// Name. - public BusinessUnitDTO(string code = default(string), string name = default(string)) - { - this.Code = code; - this.Name = name; - } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessUnitDTO {\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessUnitDTO); - } - - /// - /// Returns true if BusinessUnitDTO instances are equal - /// - /// Instance of BusinessUnitDTO to be compared - /// Boolean - public bool Equals(BusinessUnitDTO input) - { - if (input == null) - return false; - - return - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BusinessUnitFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/BusinessUnitFieldDTO.cs deleted file mode 100644 index 762dfe9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BusinessUnitFieldDTO.cs +++ /dev/null @@ -1,149 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of business unit - /// - [DataContract] - public partial class BusinessUnitFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected BusinessUnitFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Business unit code. - /// Business unit description. - public BusinessUnitFieldDTO(string value = default(string), string displayValue = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "BusinessUnitFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.DisplayValue = displayValue; - } - - /// - /// Business unit code - /// - /// Business unit code - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Business unit description - /// - /// Business unit description - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessUnitFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessUnitFieldDTO); - } - - /// - /// Returns true if BusinessUnitFieldDTO instances are equal - /// - /// Instance of BusinessUnitFieldDTO to be compared - /// Boolean - public bool Equals(BusinessUnitFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/BusinessUnitSearchCriteria.cs b/ACUtils.AXRepository/ArxivarNext/Model/BusinessUnitSearchCriteria.cs deleted file mode 100644 index 6d8d7b4..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/BusinessUnitSearchCriteria.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of criteria to search in business unit - /// - [DataContract] - public partial class BusinessUnitSearchCriteria : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Search 1: Archive 2: ArchivePa . - /// Order. - public BusinessUnitSearchCriteria(int? mode = default(int?), string orderBy = default(string)) - { - this.Mode = mode; - this.OrderBy = orderBy; - } - - /// - /// Possible values: 0: Search 1: Archive 2: ArchivePa - /// - /// Possible values: 0: Search 1: Archive 2: ArchivePa - [DataMember(Name="mode", EmitDefaultValue=false)] - public int? Mode { get; set; } - - /// - /// Order - /// - /// Order - [DataMember(Name="orderBy", EmitDefaultValue=false)] - public string OrderBy { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessUnitSearchCriteria {\n"); - sb.Append(" Mode: ").Append(Mode).Append("\n"); - sb.Append(" OrderBy: ").Append(OrderBy).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessUnitSearchCriteria); - } - - /// - /// Returns true if BusinessUnitSearchCriteria instances are equal - /// - /// Instance of BusinessUnitSearchCriteria to be compared - /// Boolean - public bool Equals(BusinessUnitSearchCriteria input) - { - if (input == null) - return false; - - return - ( - this.Mode == input.Mode || - (this.Mode != null && - this.Mode.Equals(input.Mode)) - ) && - ( - this.OrderBy == input.OrderBy || - (this.OrderBy != null && - this.OrderBy.Equals(input.OrderBy)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Mode != null) - hashCode = hashCode * 59 + this.Mode.GetHashCode(); - if (this.OrderBy != null) - hashCode = hashCode * 59 + this.OrderBy.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ByIdErpDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ByIdErpDto.cs deleted file mode 100644 index 6dc6a61..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ByIdErpDto.cs +++ /dev/null @@ -1,124 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class that represent the External Id of a document - /// - [DataContract] - public partial class ByIdErpDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// idErp. - public ByIdErpDto(string idErp = default(string)) - { - this.IdErp = idErp; - } - - /// - /// Gets or Sets IdErp - /// - [DataMember(Name="idErp", EmitDefaultValue=false)] - public string IdErp { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ByIdErpDto {\n"); - sb.Append(" IdErp: ").Append(IdErp).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ByIdErpDto); - } - - /// - /// Returns true if ByIdErpDto instances are equal - /// - /// Instance of ByIdErpDto to be compared - /// Boolean - public bool Equals(ByIdErpDto input) - { - if (input == null) - return false; - - return - ( - this.IdErp == input.IdErp || - (this.IdErp != null && - this.IdErp.Equals(input.IdErp)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IdErp != null) - hashCode = hashCode * 59 + this.IdErp.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/CcFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/CcFieldDTO.cs deleted file mode 100644 index 75eacbf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/CcFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of cc - /// - [DataContract] - public partial class CcFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected CcFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// CC list value. - public CcFieldDTO(List value = default(List), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "CcFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// CC list value - /// - /// CC list value - [DataMember(Name="value", EmitDefaultValue=false)] - public List Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CcFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CcFieldDTO); - } - - /// - /// Returns true if CcFieldDTO instances are equal - /// - /// Instance of CcFieldDTO to be compared - /// Boolean - public bool Equals(CcFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - this.Value != null && - this.Value.SequenceEqual(input.Value) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/CertificateInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/CertificateInfoDTO.cs deleted file mode 100644 index be1533b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/CertificateInfoDTO.cs +++ /dev/null @@ -1,556 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// CertificateInfoDTO - /// - [DataContract] - public partial class CertificateInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// signAlgorithm. - /// keyBitLength. - /// serialNumber. - /// thumbprintAlgorithm. - /// thumbprint. - /// trustLevel. - /// keyUsageList. - /// extendedKeyUsageList. - /// validNotBeforeUtc. - /// validNotAfterUtc. - /// subjectKeyIdentifier. - /// subjectAlternativeName. - /// subjectUniqueId. - /// subjectInfoList. - /// version. - /// issuerUniqueId. - /// issuerAlternativeName. - /// issuerInfoList. - /// authorityInfoAccessOcsp. - /// crlDistributionPoints. - /// validationMessageList. - /// certificatePolicies. - /// qcStatementList. - /// isTrusted. - /// trustValidationMessageList. - /// isValid. - /// certificateB64. - /// verifyCondition. - public CertificateInfoDTO(IdValuePairDTO signAlgorithm = default(IdValuePairDTO), int? keyBitLength = default(int?), string serialNumber = default(string), IdValuePairDTO thumbprintAlgorithm = default(IdValuePairDTO), string thumbprint = default(string), string trustLevel = default(string), List keyUsageList = default(List), List extendedKeyUsageList = default(List), DateTime? validNotBeforeUtc = default(DateTime?), DateTime? validNotAfterUtc = default(DateTime?), string subjectKeyIdentifier = default(string), string subjectAlternativeName = default(string), string subjectUniqueId = default(string), List subjectInfoList = default(List), int? version = default(int?), string issuerUniqueId = default(string), string issuerAlternativeName = default(string), List issuerInfoList = default(List), List authorityInfoAccessOcsp = default(List), List crlDistributionPoints = default(List), List validationMessageList = default(List), List certificatePolicies = default(List), List qcStatementList = default(List), bool? isTrusted = default(bool?), List trustValidationMessageList = default(List), bool? isValid = default(bool?), string certificateB64 = default(string), VerifyConditionDTO verifyCondition = default(VerifyConditionDTO)) - { - this.SignAlgorithm = signAlgorithm; - this.KeyBitLength = keyBitLength; - this.SerialNumber = serialNumber; - this.ThumbprintAlgorithm = thumbprintAlgorithm; - this.Thumbprint = thumbprint; - this.TrustLevel = trustLevel; - this.KeyUsageList = keyUsageList; - this.ExtendedKeyUsageList = extendedKeyUsageList; - this.ValidNotBeforeUtc = validNotBeforeUtc; - this.ValidNotAfterUtc = validNotAfterUtc; - this.SubjectKeyIdentifier = subjectKeyIdentifier; - this.SubjectAlternativeName = subjectAlternativeName; - this.SubjectUniqueId = subjectUniqueId; - this.SubjectInfoList = subjectInfoList; - this.Version = version; - this.IssuerUniqueId = issuerUniqueId; - this.IssuerAlternativeName = issuerAlternativeName; - this.IssuerInfoList = issuerInfoList; - this.AuthorityInfoAccessOcsp = authorityInfoAccessOcsp; - this.CrlDistributionPoints = crlDistributionPoints; - this.ValidationMessageList = validationMessageList; - this.CertificatePolicies = certificatePolicies; - this.QcStatementList = qcStatementList; - this.IsTrusted = isTrusted; - this.TrustValidationMessageList = trustValidationMessageList; - this.IsValid = isValid; - this.CertificateB64 = certificateB64; - this.VerifyCondition = verifyCondition; - } - - /// - /// Gets or Sets SignAlgorithm - /// - [DataMember(Name="signAlgorithm", EmitDefaultValue=false)] - public IdValuePairDTO SignAlgorithm { get; set; } - - /// - /// Gets or Sets KeyBitLength - /// - [DataMember(Name="keyBitLength", EmitDefaultValue=false)] - public int? KeyBitLength { get; set; } - - /// - /// Gets or Sets SerialNumber - /// - [DataMember(Name="serialNumber", EmitDefaultValue=false)] - public string SerialNumber { get; set; } - - /// - /// Gets or Sets ThumbprintAlgorithm - /// - [DataMember(Name="thumbprintAlgorithm", EmitDefaultValue=false)] - public IdValuePairDTO ThumbprintAlgorithm { get; set; } - - /// - /// Gets or Sets Thumbprint - /// - [DataMember(Name="thumbprint", EmitDefaultValue=false)] - public string Thumbprint { get; set; } - - /// - /// Gets or Sets TrustLevel - /// - [DataMember(Name="trustLevel", EmitDefaultValue=false)] - public string TrustLevel { get; set; } - - /// - /// Gets or Sets KeyUsageList - /// - [DataMember(Name="keyUsageList", EmitDefaultValue=false)] - public List KeyUsageList { get; set; } - - /// - /// Gets or Sets ExtendedKeyUsageList - /// - [DataMember(Name="extendedKeyUsageList", EmitDefaultValue=false)] - public List ExtendedKeyUsageList { get; set; } - - /// - /// Gets or Sets ValidNotBeforeUtc - /// - [DataMember(Name="validNotBeforeUtc", EmitDefaultValue=false)] - public DateTime? ValidNotBeforeUtc { get; set; } - - /// - /// Gets or Sets ValidNotAfterUtc - /// - [DataMember(Name="validNotAfterUtc", EmitDefaultValue=false)] - public DateTime? ValidNotAfterUtc { get; set; } - - /// - /// Gets or Sets SubjectKeyIdentifier - /// - [DataMember(Name="subjectKeyIdentifier", EmitDefaultValue=false)] - public string SubjectKeyIdentifier { get; set; } - - /// - /// Gets or Sets SubjectAlternativeName - /// - [DataMember(Name="subjectAlternativeName", EmitDefaultValue=false)] - public string SubjectAlternativeName { get; set; } - - /// - /// Gets or Sets SubjectUniqueId - /// - [DataMember(Name="subjectUniqueId", EmitDefaultValue=false)] - public string SubjectUniqueId { get; set; } - - /// - /// Gets or Sets SubjectInfoList - /// - [DataMember(Name="subjectInfoList", EmitDefaultValue=false)] - public List SubjectInfoList { get; set; } - - /// - /// Gets or Sets Version - /// - [DataMember(Name="version", EmitDefaultValue=false)] - public int? Version { get; set; } - - /// - /// Gets or Sets IssuerUniqueId - /// - [DataMember(Name="issuerUniqueId", EmitDefaultValue=false)] - public string IssuerUniqueId { get; set; } - - /// - /// Gets or Sets IssuerAlternativeName - /// - [DataMember(Name="issuerAlternativeName", EmitDefaultValue=false)] - public string IssuerAlternativeName { get; set; } - - /// - /// Gets or Sets IssuerInfoList - /// - [DataMember(Name="issuerInfoList", EmitDefaultValue=false)] - public List IssuerInfoList { get; set; } - - /// - /// Gets or Sets AuthorityInfoAccessOcsp - /// - [DataMember(Name="authorityInfoAccessOcsp", EmitDefaultValue=false)] - public List AuthorityInfoAccessOcsp { get; set; } - - /// - /// Gets or Sets CrlDistributionPoints - /// - [DataMember(Name="crlDistributionPoints", EmitDefaultValue=false)] - public List CrlDistributionPoints { get; set; } - - /// - /// Gets or Sets ValidationMessageList - /// - [DataMember(Name="validationMessageList", EmitDefaultValue=false)] - public List ValidationMessageList { get; set; } - - /// - /// Gets or Sets CertificatePolicies - /// - [DataMember(Name="certificatePolicies", EmitDefaultValue=false)] - public List CertificatePolicies { get; set; } - - /// - /// Gets or Sets QcStatementList - /// - [DataMember(Name="qcStatementList", EmitDefaultValue=false)] - public List QcStatementList { get; set; } - - /// - /// Gets or Sets IsTrusted - /// - [DataMember(Name="isTrusted", EmitDefaultValue=false)] - public bool? IsTrusted { get; set; } - - /// - /// Gets or Sets TrustValidationMessageList - /// - [DataMember(Name="trustValidationMessageList", EmitDefaultValue=false)] - public List TrustValidationMessageList { get; set; } - - /// - /// Gets or Sets IsValid - /// - [DataMember(Name="isValid", EmitDefaultValue=false)] - public bool? IsValid { get; set; } - - /// - /// Gets or Sets CertificateB64 - /// - [DataMember(Name="certificateB64", EmitDefaultValue=false)] - public string CertificateB64 { get; set; } - - /// - /// Gets or Sets VerifyCondition - /// - [DataMember(Name="verifyCondition", EmitDefaultValue=false)] - public VerifyConditionDTO VerifyCondition { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CertificateInfoDTO {\n"); - sb.Append(" SignAlgorithm: ").Append(SignAlgorithm).Append("\n"); - sb.Append(" KeyBitLength: ").Append(KeyBitLength).Append("\n"); - sb.Append(" SerialNumber: ").Append(SerialNumber).Append("\n"); - sb.Append(" ThumbprintAlgorithm: ").Append(ThumbprintAlgorithm).Append("\n"); - sb.Append(" Thumbprint: ").Append(Thumbprint).Append("\n"); - sb.Append(" TrustLevel: ").Append(TrustLevel).Append("\n"); - sb.Append(" KeyUsageList: ").Append(KeyUsageList).Append("\n"); - sb.Append(" ExtendedKeyUsageList: ").Append(ExtendedKeyUsageList).Append("\n"); - sb.Append(" ValidNotBeforeUtc: ").Append(ValidNotBeforeUtc).Append("\n"); - sb.Append(" ValidNotAfterUtc: ").Append(ValidNotAfterUtc).Append("\n"); - sb.Append(" SubjectKeyIdentifier: ").Append(SubjectKeyIdentifier).Append("\n"); - sb.Append(" SubjectAlternativeName: ").Append(SubjectAlternativeName).Append("\n"); - sb.Append(" SubjectUniqueId: ").Append(SubjectUniqueId).Append("\n"); - sb.Append(" SubjectInfoList: ").Append(SubjectInfoList).Append("\n"); - sb.Append(" Version: ").Append(Version).Append("\n"); - sb.Append(" IssuerUniqueId: ").Append(IssuerUniqueId).Append("\n"); - sb.Append(" IssuerAlternativeName: ").Append(IssuerAlternativeName).Append("\n"); - sb.Append(" IssuerInfoList: ").Append(IssuerInfoList).Append("\n"); - sb.Append(" AuthorityInfoAccessOcsp: ").Append(AuthorityInfoAccessOcsp).Append("\n"); - sb.Append(" CrlDistributionPoints: ").Append(CrlDistributionPoints).Append("\n"); - sb.Append(" ValidationMessageList: ").Append(ValidationMessageList).Append("\n"); - sb.Append(" CertificatePolicies: ").Append(CertificatePolicies).Append("\n"); - sb.Append(" QcStatementList: ").Append(QcStatementList).Append("\n"); - sb.Append(" IsTrusted: ").Append(IsTrusted).Append("\n"); - sb.Append(" TrustValidationMessageList: ").Append(TrustValidationMessageList).Append("\n"); - sb.Append(" IsValid: ").Append(IsValid).Append("\n"); - sb.Append(" CertificateB64: ").Append(CertificateB64).Append("\n"); - sb.Append(" VerifyCondition: ").Append(VerifyCondition).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CertificateInfoDTO); - } - - /// - /// Returns true if CertificateInfoDTO instances are equal - /// - /// Instance of CertificateInfoDTO to be compared - /// Boolean - public bool Equals(CertificateInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.SignAlgorithm == input.SignAlgorithm || - (this.SignAlgorithm != null && - this.SignAlgorithm.Equals(input.SignAlgorithm)) - ) && - ( - this.KeyBitLength == input.KeyBitLength || - (this.KeyBitLength != null && - this.KeyBitLength.Equals(input.KeyBitLength)) - ) && - ( - this.SerialNumber == input.SerialNumber || - (this.SerialNumber != null && - this.SerialNumber.Equals(input.SerialNumber)) - ) && - ( - this.ThumbprintAlgorithm == input.ThumbprintAlgorithm || - (this.ThumbprintAlgorithm != null && - this.ThumbprintAlgorithm.Equals(input.ThumbprintAlgorithm)) - ) && - ( - this.Thumbprint == input.Thumbprint || - (this.Thumbprint != null && - this.Thumbprint.Equals(input.Thumbprint)) - ) && - ( - this.TrustLevel == input.TrustLevel || - (this.TrustLevel != null && - this.TrustLevel.Equals(input.TrustLevel)) - ) && - ( - this.KeyUsageList == input.KeyUsageList || - this.KeyUsageList != null && - this.KeyUsageList.SequenceEqual(input.KeyUsageList) - ) && - ( - this.ExtendedKeyUsageList == input.ExtendedKeyUsageList || - this.ExtendedKeyUsageList != null && - this.ExtendedKeyUsageList.SequenceEqual(input.ExtendedKeyUsageList) - ) && - ( - this.ValidNotBeforeUtc == input.ValidNotBeforeUtc || - (this.ValidNotBeforeUtc != null && - this.ValidNotBeforeUtc.Equals(input.ValidNotBeforeUtc)) - ) && - ( - this.ValidNotAfterUtc == input.ValidNotAfterUtc || - (this.ValidNotAfterUtc != null && - this.ValidNotAfterUtc.Equals(input.ValidNotAfterUtc)) - ) && - ( - this.SubjectKeyIdentifier == input.SubjectKeyIdentifier || - (this.SubjectKeyIdentifier != null && - this.SubjectKeyIdentifier.Equals(input.SubjectKeyIdentifier)) - ) && - ( - this.SubjectAlternativeName == input.SubjectAlternativeName || - (this.SubjectAlternativeName != null && - this.SubjectAlternativeName.Equals(input.SubjectAlternativeName)) - ) && - ( - this.SubjectUniqueId == input.SubjectUniqueId || - (this.SubjectUniqueId != null && - this.SubjectUniqueId.Equals(input.SubjectUniqueId)) - ) && - ( - this.SubjectInfoList == input.SubjectInfoList || - this.SubjectInfoList != null && - this.SubjectInfoList.SequenceEqual(input.SubjectInfoList) - ) && - ( - this.Version == input.Version || - (this.Version != null && - this.Version.Equals(input.Version)) - ) && - ( - this.IssuerUniqueId == input.IssuerUniqueId || - (this.IssuerUniqueId != null && - this.IssuerUniqueId.Equals(input.IssuerUniqueId)) - ) && - ( - this.IssuerAlternativeName == input.IssuerAlternativeName || - (this.IssuerAlternativeName != null && - this.IssuerAlternativeName.Equals(input.IssuerAlternativeName)) - ) && - ( - this.IssuerInfoList == input.IssuerInfoList || - this.IssuerInfoList != null && - this.IssuerInfoList.SequenceEqual(input.IssuerInfoList) - ) && - ( - this.AuthorityInfoAccessOcsp == input.AuthorityInfoAccessOcsp || - this.AuthorityInfoAccessOcsp != null && - this.AuthorityInfoAccessOcsp.SequenceEqual(input.AuthorityInfoAccessOcsp) - ) && - ( - this.CrlDistributionPoints == input.CrlDistributionPoints || - this.CrlDistributionPoints != null && - this.CrlDistributionPoints.SequenceEqual(input.CrlDistributionPoints) - ) && - ( - this.ValidationMessageList == input.ValidationMessageList || - this.ValidationMessageList != null && - this.ValidationMessageList.SequenceEqual(input.ValidationMessageList) - ) && - ( - this.CertificatePolicies == input.CertificatePolicies || - this.CertificatePolicies != null && - this.CertificatePolicies.SequenceEqual(input.CertificatePolicies) - ) && - ( - this.QcStatementList == input.QcStatementList || - this.QcStatementList != null && - this.QcStatementList.SequenceEqual(input.QcStatementList) - ) && - ( - this.IsTrusted == input.IsTrusted || - (this.IsTrusted != null && - this.IsTrusted.Equals(input.IsTrusted)) - ) && - ( - this.TrustValidationMessageList == input.TrustValidationMessageList || - this.TrustValidationMessageList != null && - this.TrustValidationMessageList.SequenceEqual(input.TrustValidationMessageList) - ) && - ( - this.IsValid == input.IsValid || - (this.IsValid != null && - this.IsValid.Equals(input.IsValid)) - ) && - ( - this.CertificateB64 == input.CertificateB64 || - (this.CertificateB64 != null && - this.CertificateB64.Equals(input.CertificateB64)) - ) && - ( - this.VerifyCondition == input.VerifyCondition || - (this.VerifyCondition != null && - this.VerifyCondition.Equals(input.VerifyCondition)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SignAlgorithm != null) - hashCode = hashCode * 59 + this.SignAlgorithm.GetHashCode(); - if (this.KeyBitLength != null) - hashCode = hashCode * 59 + this.KeyBitLength.GetHashCode(); - if (this.SerialNumber != null) - hashCode = hashCode * 59 + this.SerialNumber.GetHashCode(); - if (this.ThumbprintAlgorithm != null) - hashCode = hashCode * 59 + this.ThumbprintAlgorithm.GetHashCode(); - if (this.Thumbprint != null) - hashCode = hashCode * 59 + this.Thumbprint.GetHashCode(); - if (this.TrustLevel != null) - hashCode = hashCode * 59 + this.TrustLevel.GetHashCode(); - if (this.KeyUsageList != null) - hashCode = hashCode * 59 + this.KeyUsageList.GetHashCode(); - if (this.ExtendedKeyUsageList != null) - hashCode = hashCode * 59 + this.ExtendedKeyUsageList.GetHashCode(); - if (this.ValidNotBeforeUtc != null) - hashCode = hashCode * 59 + this.ValidNotBeforeUtc.GetHashCode(); - if (this.ValidNotAfterUtc != null) - hashCode = hashCode * 59 + this.ValidNotAfterUtc.GetHashCode(); - if (this.SubjectKeyIdentifier != null) - hashCode = hashCode * 59 + this.SubjectKeyIdentifier.GetHashCode(); - if (this.SubjectAlternativeName != null) - hashCode = hashCode * 59 + this.SubjectAlternativeName.GetHashCode(); - if (this.SubjectUniqueId != null) - hashCode = hashCode * 59 + this.SubjectUniqueId.GetHashCode(); - if (this.SubjectInfoList != null) - hashCode = hashCode * 59 + this.SubjectInfoList.GetHashCode(); - if (this.Version != null) - hashCode = hashCode * 59 + this.Version.GetHashCode(); - if (this.IssuerUniqueId != null) - hashCode = hashCode * 59 + this.IssuerUniqueId.GetHashCode(); - if (this.IssuerAlternativeName != null) - hashCode = hashCode * 59 + this.IssuerAlternativeName.GetHashCode(); - if (this.IssuerInfoList != null) - hashCode = hashCode * 59 + this.IssuerInfoList.GetHashCode(); - if (this.AuthorityInfoAccessOcsp != null) - hashCode = hashCode * 59 + this.AuthorityInfoAccessOcsp.GetHashCode(); - if (this.CrlDistributionPoints != null) - hashCode = hashCode * 59 + this.CrlDistributionPoints.GetHashCode(); - if (this.ValidationMessageList != null) - hashCode = hashCode * 59 + this.ValidationMessageList.GetHashCode(); - if (this.CertificatePolicies != null) - hashCode = hashCode * 59 + this.CertificatePolicies.GetHashCode(); - if (this.QcStatementList != null) - hashCode = hashCode * 59 + this.QcStatementList.GetHashCode(); - if (this.IsTrusted != null) - hashCode = hashCode * 59 + this.IsTrusted.GetHashCode(); - if (this.TrustValidationMessageList != null) - hashCode = hashCode * 59 + this.TrustValidationMessageList.GetHashCode(); - if (this.IsValid != null) - hashCode = hashCode * 59 + this.IsValid.GetHashCode(); - if (this.CertificateB64 != null) - hashCode = hashCode * 59 + this.CertificateB64.GetHashCode(); - if (this.VerifyCondition != null) - hashCode = hashCode * 59 + this.VerifyCondition.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/CertificatePolicyChildInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/CertificatePolicyChildInfoDTO.cs deleted file mode 100644 index 2c74b75..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/CertificatePolicyChildInfoDTO.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// CertificatePolicyChildInfoDTO - /// - [DataContract] - public partial class CertificatePolicyChildInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// descriptionId. - /// value. - public CertificatePolicyChildInfoDTO(string id = default(string), string descriptionId = default(string), string value = default(string)) - { - this.Id = id; - this.DescriptionId = descriptionId; - this.Value = value; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Gets or Sets DescriptionId - /// - [DataMember(Name="descriptionId", EmitDefaultValue=false)] - public string DescriptionId { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CertificatePolicyChildInfoDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" DescriptionId: ").Append(DescriptionId).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CertificatePolicyChildInfoDTO); - } - - /// - /// Returns true if CertificatePolicyChildInfoDTO instances are equal - /// - /// Instance of CertificatePolicyChildInfoDTO to be compared - /// Boolean - public bool Equals(CertificatePolicyChildInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.DescriptionId == input.DescriptionId || - (this.DescriptionId != null && - this.DescriptionId.Equals(input.DescriptionId)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.DescriptionId != null) - hashCode = hashCode * 59 + this.DescriptionId.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/CertificatePolicyInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/CertificatePolicyInfoDTO.cs deleted file mode 100644 index b8571cf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/CertificatePolicyInfoDTO.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// CertificatePolicyInfoDTO - /// - [DataContract] - public partial class CertificatePolicyInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// descriptionId. - /// childList. - public CertificatePolicyInfoDTO(string id = default(string), string descriptionId = default(string), List childList = default(List)) - { - this.Id = id; - this.DescriptionId = descriptionId; - this.ChildList = childList; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Gets or Sets DescriptionId - /// - [DataMember(Name="descriptionId", EmitDefaultValue=false)] - public string DescriptionId { get; set; } - - /// - /// Gets or Sets ChildList - /// - [DataMember(Name="childList", EmitDefaultValue=false)] - public List ChildList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CertificatePolicyInfoDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" DescriptionId: ").Append(DescriptionId).Append("\n"); - sb.Append(" ChildList: ").Append(ChildList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CertificatePolicyInfoDTO); - } - - /// - /// Returns true if CertificatePolicyInfoDTO instances are equal - /// - /// Instance of CertificatePolicyInfoDTO to be compared - /// Boolean - public bool Equals(CertificatePolicyInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.DescriptionId == input.DescriptionId || - (this.DescriptionId != null && - this.DescriptionId.Equals(input.DescriptionId)) - ) && - ( - this.ChildList == input.ChildList || - this.ChildList != null && - this.ChildList.SequenceEqual(input.ChildList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.DescriptionId != null) - hashCode = hashCode * 59 + this.DescriptionId.GetHashCode(); - if (this.ChildList != null) - hashCode = hashCode * 59 + this.ChildList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ChangePasswordRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ChangePasswordRequestDTO.cs deleted file mode 100644 index 82f9378..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ChangePasswordRequestDTO.cs +++ /dev/null @@ -1,163 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of change password request - /// - [DataContract] - public partial class ChangePasswordRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ChangePasswordRequestDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Old password (required). - /// New password (required). - public ChangePasswordRequestDTO(string oldPassword = default(string), string newPassword = default(string)) - { - // to ensure "oldPassword" is required (not null) - if (oldPassword == null) - { - throw new InvalidDataException("oldPassword is a required property for ChangePasswordRequestDTO and cannot be null"); - } - else - { - this.OldPassword = oldPassword; - } - // to ensure "newPassword" is required (not null) - if (newPassword == null) - { - throw new InvalidDataException("newPassword is a required property for ChangePasswordRequestDTO and cannot be null"); - } - else - { - this.NewPassword = newPassword; - } - } - - /// - /// Old password - /// - /// Old password - [DataMember(Name="oldPassword", EmitDefaultValue=false)] - public string OldPassword { get; set; } - - /// - /// New password - /// - /// New password - [DataMember(Name="newPassword", EmitDefaultValue=false)] - public string NewPassword { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ChangePasswordRequestDTO {\n"); - sb.Append(" OldPassword: ").Append(OldPassword).Append("\n"); - sb.Append(" NewPassword: ").Append(NewPassword).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ChangePasswordRequestDTO); - } - - /// - /// Returns true if ChangePasswordRequestDTO instances are equal - /// - /// Instance of ChangePasswordRequestDTO to be compared - /// Boolean - public bool Equals(ChangePasswordRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.OldPassword == input.OldPassword || - (this.OldPassword != null && - this.OldPassword.Equals(input.OldPassword)) - ) && - ( - this.NewPassword == input.NewPassword || - (this.NewPassword != null && - this.NewPassword.Equals(input.NewPassword)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.OldPassword != null) - hashCode = hashCode * 59 + this.OldPassword.GetHashCode(); - if (this.NewPassword != null) - hashCode = hashCode * 59 + this.NewPassword.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ChangePasswordRequestUnAuthorizeDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ChangePasswordRequestUnAuthorizeDTO.cs deleted file mode 100644 index 4e2af93..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ChangePasswordRequestUnAuthorizeDTO.cs +++ /dev/null @@ -1,188 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of change password request for UnAut - /// - [DataContract] - public partial class ChangePasswordRequestUnAuthorizeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ChangePasswordRequestUnAuthorizeDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// UserName (required). - /// Old password (required). - /// New password (required). - public ChangePasswordRequestUnAuthorizeDTO(string userName = default(string), string oldPassword = default(string), string newPassword = default(string)) - { - // to ensure "userName" is required (not null) - if (userName == null) - { - throw new InvalidDataException("userName is a required property for ChangePasswordRequestUnAuthorizeDTO and cannot be null"); - } - else - { - this.UserName = userName; - } - // to ensure "oldPassword" is required (not null) - if (oldPassword == null) - { - throw new InvalidDataException("oldPassword is a required property for ChangePasswordRequestUnAuthorizeDTO and cannot be null"); - } - else - { - this.OldPassword = oldPassword; - } - // to ensure "newPassword" is required (not null) - if (newPassword == null) - { - throw new InvalidDataException("newPassword is a required property for ChangePasswordRequestUnAuthorizeDTO and cannot be null"); - } - else - { - this.NewPassword = newPassword; - } - } - - /// - /// UserName - /// - /// UserName - [DataMember(Name="userName", EmitDefaultValue=false)] - public string UserName { get; set; } - - /// - /// Old password - /// - /// Old password - [DataMember(Name="oldPassword", EmitDefaultValue=false)] - public string OldPassword { get; set; } - - /// - /// New password - /// - /// New password - [DataMember(Name="newPassword", EmitDefaultValue=false)] - public string NewPassword { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ChangePasswordRequestUnAuthorizeDTO {\n"); - sb.Append(" UserName: ").Append(UserName).Append("\n"); - sb.Append(" OldPassword: ").Append(OldPassword).Append("\n"); - sb.Append(" NewPassword: ").Append(NewPassword).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ChangePasswordRequestUnAuthorizeDTO); - } - - /// - /// Returns true if ChangePasswordRequestUnAuthorizeDTO instances are equal - /// - /// Instance of ChangePasswordRequestUnAuthorizeDTO to be compared - /// Boolean - public bool Equals(ChangePasswordRequestUnAuthorizeDTO input) - { - if (input == null) - return false; - - return - ( - this.UserName == input.UserName || - (this.UserName != null && - this.UserName.Equals(input.UserName)) - ) && - ( - this.OldPassword == input.OldPassword || - (this.OldPassword != null && - this.OldPassword.Equals(input.OldPassword)) - ) && - ( - this.NewPassword == input.NewPassword || - (this.NewPassword != null && - this.NewPassword.Equals(input.NewPassword)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.UserName != null) - hashCode = hashCode * 59 + this.UserName.GetHashCode(); - if (this.OldPassword != null) - hashCode = hashCode * 59 + this.OldPassword.GetHashCode(); - if (this.NewPassword != null) - hashCode = hashCode * 59 + this.NewPassword.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ChatServiceSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ChatServiceSettingsDTO.cs deleted file mode 100644 index e9da590..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ChatServiceSettingsDTO.cs +++ /dev/null @@ -1,124 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ChatServiceSettingsDTO - /// - [DataContract] - public partial class ChatServiceSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// isEnable. - public ChatServiceSettingsDTO(bool? isEnable = default(bool?)) - { - this.IsEnable = isEnable; - } - - /// - /// Gets or Sets IsEnable - /// - [DataMember(Name="isEnable", EmitDefaultValue=false)] - public bool? IsEnable { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ChatServiceSettingsDTO {\n"); - sb.Append(" IsEnable: ").Append(IsEnable).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ChatServiceSettingsDTO); - } - - /// - /// Returns true if ChatServiceSettingsDTO instances are equal - /// - /// Instance of ChatServiceSettingsDTO to be compared - /// Boolean - public bool Equals(ChatServiceSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.IsEnable == input.IsEnable || - (this.IsEnable != null && - this.IsEnable.Equals(input.IsEnable)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IsEnable != null) - hashCode = hashCode * 59 + this.IsEnable.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ChronoInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ChronoInfoDTO.cs deleted file mode 100644 index 01089e9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ChronoInfoDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Chrono information - /// - [DataContract] - public partial class ChronoInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// Index. - /// Start date. - /// End date. - /// Duration. - /// Total Value. - public ChronoInfoDTO(string chronoId = default(string), string chronoName = default(string), int? intermediateIndex = default(int?), DateTime? startDate = default(DateTime?), DateTime? stopDate = default(DateTime?), int? duration = default(int?), int? totalItermediate = default(int?)) - { - this.ChronoId = chronoId; - this.ChronoName = chronoName; - this.IntermediateIndex = intermediateIndex; - this.StartDate = startDate; - this.StopDate = stopDate; - this.Duration = duration; - this.TotalItermediate = totalItermediate; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="chronoId", EmitDefaultValue=false)] - public string ChronoId { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="chronoName", EmitDefaultValue=false)] - public string ChronoName { get; set; } - - /// - /// Index - /// - /// Index - [DataMember(Name="intermediateIndex", EmitDefaultValue=false)] - public int? IntermediateIndex { get; set; } - - /// - /// Start date - /// - /// Start date - [DataMember(Name="startDate", EmitDefaultValue=false)] - public DateTime? StartDate { get; set; } - - /// - /// End date - /// - /// End date - [DataMember(Name="stopDate", EmitDefaultValue=false)] - public DateTime? StopDate { get; set; } - - /// - /// Duration - /// - /// Duration - [DataMember(Name="duration", EmitDefaultValue=false)] - public int? Duration { get; set; } - - /// - /// Total Value - /// - /// Total Value - [DataMember(Name="totalItermediate", EmitDefaultValue=false)] - public int? TotalItermediate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ChronoInfoDTO {\n"); - sb.Append(" ChronoId: ").Append(ChronoId).Append("\n"); - sb.Append(" ChronoName: ").Append(ChronoName).Append("\n"); - sb.Append(" IntermediateIndex: ").Append(IntermediateIndex).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" StopDate: ").Append(StopDate).Append("\n"); - sb.Append(" Duration: ").Append(Duration).Append("\n"); - sb.Append(" TotalItermediate: ").Append(TotalItermediate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ChronoInfoDTO); - } - - /// - /// Returns true if ChronoInfoDTO instances are equal - /// - /// Instance of ChronoInfoDTO to be compared - /// Boolean - public bool Equals(ChronoInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.ChronoId == input.ChronoId || - (this.ChronoId != null && - this.ChronoId.Equals(input.ChronoId)) - ) && - ( - this.ChronoName == input.ChronoName || - (this.ChronoName != null && - this.ChronoName.Equals(input.ChronoName)) - ) && - ( - this.IntermediateIndex == input.IntermediateIndex || - (this.IntermediateIndex != null && - this.IntermediateIndex.Equals(input.IntermediateIndex)) - ) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && - ( - this.StopDate == input.StopDate || - (this.StopDate != null && - this.StopDate.Equals(input.StopDate)) - ) && - ( - this.Duration == input.Duration || - (this.Duration != null && - this.Duration.Equals(input.Duration)) - ) && - ( - this.TotalItermediate == input.TotalItermediate || - (this.TotalItermediate != null && - this.TotalItermediate.Equals(input.TotalItermediate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ChronoId != null) - hashCode = hashCode * 59 + this.ChronoId.GetHashCode(); - if (this.ChronoName != null) - hashCode = hashCode * 59 + this.ChronoName.GetHashCode(); - if (this.IntermediateIndex != null) - hashCode = hashCode * 59 + this.IntermediateIndex.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.StopDate != null) - hashCode = hashCode * 59 + this.StopDate.GetHashCode(); - if (this.Duration != null) - hashCode = hashCode * 59 + this.Duration.GetHashCode(); - if (this.TotalItermediate != null) - hashCode = hashCode * 59 + this.TotalItermediate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ClaimInfo.cs b/ACUtils.AXRepository/ArxivarNext/Model/ClaimInfo.cs deleted file mode 100644 index ac64059..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ClaimInfo.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ClaimInfo - /// - [DataContract] - public partial class ClaimInfo : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// type. - /// value. - public ClaimInfo(string type = default(string), string value = default(string)) - { - this.Type = type; - this.Value = value; - } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="type", EmitDefaultValue=false)] - public string Type { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ClaimInfo {\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ClaimInfo); - } - - /// - /// Returns true if ClaimInfo instances are equal - /// - /// Instance of ClaimInfo to be compared - /// Boolean - public bool Equals(ClaimInfo input) - { - if (input == null) - return false; - - return - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ClaimInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ClaimInfoDTO.cs deleted file mode 100644 index 6f3e0a6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ClaimInfoDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of claim information - /// - [DataContract] - public partial class ClaimInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Type. - /// Value. - public ClaimInfoDTO(string type = default(string), string value = default(string)) - { - this.Type = type; - this.Value = value; - } - - /// - /// Type - /// - /// Type - [DataMember(Name="type", EmitDefaultValue=false)] - public string Type { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ClaimInfoDTO {\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ClaimInfoDTO); - } - - /// - /// Returns true if ClaimInfoDTO instances are equal - /// - /// Instance of ClaimInfoDTO to be compared - /// Boolean - public bool Equals(ClaimInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/CloseEligibleResult.cs b/ACUtils.AXRepository/ArxivarNext/Model/CloseEligibleResult.cs deleted file mode 100644 index ec1f8c1..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/CloseEligibleResult.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Dto for possible conclusion of a taskwork - /// - [DataContract] - public partial class CloseEligibleResult : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// TaskWork id. - /// TaskWork can closed. - /// Optional message if tarsWork is not concludible. - public CloseEligibleResult(int? taskWorkId = default(int?), bool? eligibleToClose = default(bool?), string errorMEssage = default(string)) - { - this.TaskWorkId = taskWorkId; - this.EligibleToClose = eligibleToClose; - this.ErrorMEssage = errorMEssage; - } - - /// - /// TaskWork id - /// - /// TaskWork id - [DataMember(Name="taskWorkId", EmitDefaultValue=false)] - public int? TaskWorkId { get; set; } - - /// - /// TaskWork can closed - /// - /// TaskWork can closed - [DataMember(Name="eligibleToClose", EmitDefaultValue=false)] - public bool? EligibleToClose { get; set; } - - /// - /// Optional message if tarsWork is not concludible - /// - /// Optional message if tarsWork is not concludible - [DataMember(Name="errorMEssage", EmitDefaultValue=false)] - public string ErrorMEssage { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CloseEligibleResult {\n"); - sb.Append(" TaskWorkId: ").Append(TaskWorkId).Append("\n"); - sb.Append(" EligibleToClose: ").Append(EligibleToClose).Append("\n"); - sb.Append(" ErrorMEssage: ").Append(ErrorMEssage).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CloseEligibleResult); - } - - /// - /// Returns true if CloseEligibleResult instances are equal - /// - /// Instance of CloseEligibleResult to be compared - /// Boolean - public bool Equals(CloseEligibleResult input) - { - if (input == null) - return false; - - return - ( - this.TaskWorkId == input.TaskWorkId || - (this.TaskWorkId != null && - this.TaskWorkId.Equals(input.TaskWorkId)) - ) && - ( - this.EligibleToClose == input.EligibleToClose || - (this.EligibleToClose != null && - this.EligibleToClose.Equals(input.EligibleToClose)) - ) && - ( - this.ErrorMEssage == input.ErrorMEssage || - (this.ErrorMEssage != null && - this.ErrorMEssage.Equals(input.ErrorMEssage)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.TaskWorkId != null) - hashCode = hashCode * 59 + this.TaskWorkId.GetHashCode(); - if (this.EligibleToClose != null) - hashCode = hashCode * 59 + this.EligibleToClose.GetHashCode(); - if (this.ErrorMEssage != null) - hashCode = hashCode * 59 + this.ErrorMEssage.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ColumnInfo.cs b/ACUtils.AXRepository/ArxivarNext/Model/ColumnInfo.cs deleted file mode 100644 index ea3bd02..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ColumnInfo.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of column information - /// - [DataContract] - public partial class ColumnInfo : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Name. - /// Label. - /// Possible values: 0: Standard 1: Group 2: Additional . - public ColumnInfo(string name = default(string), string label = default(string), int? fieldType = default(int?)) - { - this.Name = name; - this.Label = label; - this.FieldType = fieldType; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Possible values: 0: Standard 1: Group 2: Additional - /// - /// Possible values: 0: Standard 1: Group 2: Additional - [DataMember(Name="fieldType", EmitDefaultValue=false)] - public int? FieldType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ColumnInfo {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" FieldType: ").Append(FieldType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ColumnInfo); - } - - /// - /// Returns true if ColumnInfo instances are equal - /// - /// Instance of ColumnInfo to be compared - /// Boolean - public bool Equals(ColumnInfo input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.FieldType == input.FieldType || - (this.FieldType != null && - this.FieldType.Equals(input.FieldType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.FieldType != null) - hashCode = hashCode * 59 + this.FieldType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ColumnSearchResult.cs b/ACUtils.AXRepository/ArxivarNext/Model/ColumnSearchResult.cs deleted file mode 100644 index db3ac48..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ColumnSearchResult.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of columns for search results - /// - [DataContract] - public partial class ColumnSearchResult : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Position. - /// Value. - /// Label. - /// Identifier. - /// Visibility. - /// Type. - public ColumnSearchResult(int? position = default(int?), Object value = default(Object), string label = default(string), string id = default(string), bool? visible = default(bool?), string columnType = default(string)) - { - this.Position = position; - this.Value = value; - this.Label = label; - this.Id = id; - this.Visible = visible; - this.ColumnType = columnType; - } - - /// - /// Position - /// - /// Position - [DataMember(Name="position", EmitDefaultValue=false)] - public int? Position { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public Object Value { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Visibility - /// - /// Visibility - [DataMember(Name="visible", EmitDefaultValue=false)] - public bool? Visible { get; set; } - - /// - /// Type - /// - /// Type - [DataMember(Name="columnType", EmitDefaultValue=false)] - public string ColumnType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ColumnSearchResult {\n"); - sb.Append(" Position: ").Append(Position).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Visible: ").Append(Visible).Append("\n"); - sb.Append(" ColumnType: ").Append(ColumnType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ColumnSearchResult); - } - - /// - /// Returns true if ColumnSearchResult instances are equal - /// - /// Instance of ColumnSearchResult to be compared - /// Boolean - public bool Equals(ColumnSearchResult input) - { - if (input == null) - return false; - - return - ( - this.Position == input.Position || - (this.Position != null && - this.Position.Equals(input.Position)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Visible == input.Visible || - (this.Visible != null && - this.Visible.Equals(input.Visible)) - ) && - ( - this.ColumnType == input.ColumnType || - (this.ColumnType != null && - this.ColumnType.Equals(input.ColumnType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Position != null) - hashCode = hashCode * 59 + this.Position.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Visible != null) - hashCode = hashCode * 59 + this.Visible.GetHashCode(); - if (this.ColumnType != null) - hashCode = hashCode * 59 + this.ColumnType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ContactCategoryDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ContactCategoryDTO.cs deleted file mode 100644 index 8a36a1c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ContactCategoryDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the Contact Category - /// - [DataContract] - public partial class ContactCategoryDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// The id of the contact category. - /// The name of the category. - public ContactCategoryDTO(int? id = default(int?), string description = default(string)) - { - this.Id = id; - this.Description = description; - } - - /// - /// The id of the contact category - /// - /// The id of the contact category - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// The name of the category - /// - /// The name of the category - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContactCategoryDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContactCategoryDTO); - } - - /// - /// Returns true if ContactCategoryDTO instances are equal - /// - /// Instance of ContactCategoryDTO to be compared - /// Boolean - public bool Equals(ContactCategoryDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ContactDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ContactDTO.cs deleted file mode 100644 index b724417..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ContactDTO.cs +++ /dev/null @@ -1,295 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the Contact item - /// - [DataContract] - public partial class ContactDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of Address Book. - /// Name. - /// Job. - /// Phone Number. - /// Fax Number. - /// Mobile Phone Number. - /// Address. - /// Department. - /// Office. - /// Email. - /// Identifier. - public ContactDTO(int? addressBookId = default(int?), string contactName = default(string), string job = default(string), string phone = default(string), string fax = default(string), string cellPhone = default(string), string house = default(string), string department = default(string), string office = default(string), string email = default(string), int? id = default(int?)) - { - this.AddressBookId = addressBookId; - this.ContactName = contactName; - this.Job = job; - this.Phone = phone; - this.Fax = fax; - this.CellPhone = cellPhone; - this.House = house; - this.Department = department; - this.Office = office; - this.Email = email; - this.Id = id; - } - - /// - /// Identifier of Address Book - /// - /// Identifier of Address Book - [DataMember(Name="addressBookId", EmitDefaultValue=false)] - public int? AddressBookId { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="contactName", EmitDefaultValue=false)] - public string ContactName { get; set; } - - /// - /// Job - /// - /// Job - [DataMember(Name="job", EmitDefaultValue=false)] - public string Job { get; set; } - - /// - /// Phone Number - /// - /// Phone Number - [DataMember(Name="phone", EmitDefaultValue=false)] - public string Phone { get; set; } - - /// - /// Fax Number - /// - /// Fax Number - [DataMember(Name="fax", EmitDefaultValue=false)] - public string Fax { get; set; } - - /// - /// Mobile Phone Number - /// - /// Mobile Phone Number - [DataMember(Name="cellPhone", EmitDefaultValue=false)] - public string CellPhone { get; set; } - - /// - /// Address - /// - /// Address - [DataMember(Name="house", EmitDefaultValue=false)] - public string House { get; set; } - - /// - /// Department - /// - /// Department - [DataMember(Name="department", EmitDefaultValue=false)] - public string Department { get; set; } - - /// - /// Office - /// - /// Office - [DataMember(Name="office", EmitDefaultValue=false)] - public string Office { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContactDTO {\n"); - sb.Append(" AddressBookId: ").Append(AddressBookId).Append("\n"); - sb.Append(" ContactName: ").Append(ContactName).Append("\n"); - sb.Append(" Job: ").Append(Job).Append("\n"); - sb.Append(" Phone: ").Append(Phone).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" CellPhone: ").Append(CellPhone).Append("\n"); - sb.Append(" House: ").Append(House).Append("\n"); - sb.Append(" Department: ").Append(Department).Append("\n"); - sb.Append(" Office: ").Append(Office).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContactDTO); - } - - /// - /// Returns true if ContactDTO instances are equal - /// - /// Instance of ContactDTO to be compared - /// Boolean - public bool Equals(ContactDTO input) - { - if (input == null) - return false; - - return - ( - this.AddressBookId == input.AddressBookId || - (this.AddressBookId != null && - this.AddressBookId.Equals(input.AddressBookId)) - ) && - ( - this.ContactName == input.ContactName || - (this.ContactName != null && - this.ContactName.Equals(input.ContactName)) - ) && - ( - this.Job == input.Job || - (this.Job != null && - this.Job.Equals(input.Job)) - ) && - ( - this.Phone == input.Phone || - (this.Phone != null && - this.Phone.Equals(input.Phone)) - ) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && - ( - this.CellPhone == input.CellPhone || - (this.CellPhone != null && - this.CellPhone.Equals(input.CellPhone)) - ) && - ( - this.House == input.House || - (this.House != null && - this.House.Equals(input.House)) - ) && - ( - this.Department == input.Department || - (this.Department != null && - this.Department.Equals(input.Department)) - ) && - ( - this.Office == input.Office || - (this.Office != null && - this.Office.Equals(input.Office)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AddressBookId != null) - hashCode = hashCode * 59 + this.AddressBookId.GetHashCode(); - if (this.ContactName != null) - hashCode = hashCode * 59 + this.ContactName.GetHashCode(); - if (this.Job != null) - hashCode = hashCode * 59 + this.Job.GetHashCode(); - if (this.Phone != null) - hashCode = hashCode * 59 + this.Phone.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.CellPhone != null) - hashCode = hashCode * 59 + this.CellPhone.GetHashCode(); - if (this.House != null) - hashCode = hashCode * 59 + this.House.GetHashCode(); - if (this.Department != null) - hashCode = hashCode * 59 + this.Department.GetHashCode(); - if (this.Office != null) - hashCode = hashCode * 59 + this.Office.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ContactSearchFilterDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ContactSearchFilterDto.cs deleted file mode 100644 index bb2aa58..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ContactSearchFilterDto.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of filter for contact search - /// - [DataContract] - public partial class ContactSearchFilterDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Text 1: Id 2: Advanced . - /// Values. - /// Filter of Profile data. - public ContactSearchFilterDto(int? modality = default(int?), List values = default(List), JoinDmDatiProfilo profileData = default(JoinDmDatiProfilo)) - { - this.Modality = modality; - this.Values = values; - this.ProfileData = profileData; - } - - /// - /// Possible values: 0: Text 1: Id 2: Advanced - /// - /// Possible values: 0: Text 1: Id 2: Advanced - [DataMember(Name="modality", EmitDefaultValue=false)] - public int? Modality { get; set; } - - /// - /// Values - /// - /// Values - [DataMember(Name="values", EmitDefaultValue=false)] - public List Values { get; set; } - - /// - /// Filter of Profile data - /// - /// Filter of Profile data - [DataMember(Name="profileData", EmitDefaultValue=false)] - public JoinDmDatiProfilo ProfileData { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContactSearchFilterDto {\n"); - sb.Append(" Modality: ").Append(Modality).Append("\n"); - sb.Append(" Values: ").Append(Values).Append("\n"); - sb.Append(" ProfileData: ").Append(ProfileData).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContactSearchFilterDto); - } - - /// - /// Returns true if ContactSearchFilterDto instances are equal - /// - /// Instance of ContactSearchFilterDto to be compared - /// Boolean - public bool Equals(ContactSearchFilterDto input) - { - if (input == null) - return false; - - return - ( - this.Modality == input.Modality || - (this.Modality != null && - this.Modality.Equals(input.Modality)) - ) && - ( - this.Values == input.Values || - this.Values != null && - this.Values.SequenceEqual(input.Values) - ) && - ( - this.ProfileData == input.ProfileData || - (this.ProfileData != null && - this.ProfileData.Equals(input.ProfileData)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Modality != null) - hashCode = hashCode * 59 + this.Modality.GetHashCode(); - if (this.Values != null) - hashCode = hashCode * 59 + this.Values.GetHashCode(); - if (this.ProfileData != null) - hashCode = hashCode * 59 + this.ProfileData.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ContactV4DTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ContactV4DTO.cs deleted file mode 100644 index be00552..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ContactV4DTO.cs +++ /dev/null @@ -1,380 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the Contact item: V4 introduces FeaEnabled, FeaExpireDate - /// - [DataContract] - public partial class ContactV4DTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Firma Elettronica Avanzata is enabled. - /// Firma Elettronica Avanzata expiration date. - /// Firstname. - /// Lastname. - /// Posta Elettronica Certificata. - /// Identifier of Address Book. - /// Name. - /// Job. - /// Phone Number. - /// Fax Number. - /// Mobile Phone Number. - /// Address. - /// Department. - /// Office. - /// Email. - /// Identifier. - public ContactV4DTO(bool? feaEnabled = default(bool?), DateTime? feaExpireDate = default(DateTime?), string firstName = default(string), string lastName = default(string), string pec = default(string), int? addressBookId = default(int?), string contactName = default(string), string job = default(string), string phone = default(string), string fax = default(string), string cellPhone = default(string), string house = default(string), string department = default(string), string office = default(string), string email = default(string), int? id = default(int?)) - { - this.FeaEnabled = feaEnabled; - this.FeaExpireDate = feaExpireDate; - this.FirstName = firstName; - this.LastName = lastName; - this.Pec = pec; - this.AddressBookId = addressBookId; - this.ContactName = contactName; - this.Job = job; - this.Phone = phone; - this.Fax = fax; - this.CellPhone = cellPhone; - this.House = house; - this.Department = department; - this.Office = office; - this.Email = email; - this.Id = id; - } - - /// - /// Firma Elettronica Avanzata is enabled - /// - /// Firma Elettronica Avanzata is enabled - [DataMember(Name="feaEnabled", EmitDefaultValue=false)] - public bool? FeaEnabled { get; set; } - - /// - /// Firma Elettronica Avanzata expiration date - /// - /// Firma Elettronica Avanzata expiration date - [DataMember(Name="feaExpireDate", EmitDefaultValue=false)] - public DateTime? FeaExpireDate { get; set; } - - /// - /// Firstname - /// - /// Firstname - [DataMember(Name="firstName", EmitDefaultValue=false)] - public string FirstName { get; set; } - - /// - /// Lastname - /// - /// Lastname - [DataMember(Name="lastName", EmitDefaultValue=false)] - public string LastName { get; set; } - - /// - /// Posta Elettronica Certificata - /// - /// Posta Elettronica Certificata - [DataMember(Name="pec", EmitDefaultValue=false)] - public string Pec { get; set; } - - /// - /// Identifier of Address Book - /// - /// Identifier of Address Book - [DataMember(Name="addressBookId", EmitDefaultValue=false)] - public int? AddressBookId { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="contactName", EmitDefaultValue=false)] - public string ContactName { get; set; } - - /// - /// Job - /// - /// Job - [DataMember(Name="job", EmitDefaultValue=false)] - public string Job { get; set; } - - /// - /// Phone Number - /// - /// Phone Number - [DataMember(Name="phone", EmitDefaultValue=false)] - public string Phone { get; set; } - - /// - /// Fax Number - /// - /// Fax Number - [DataMember(Name="fax", EmitDefaultValue=false)] - public string Fax { get; set; } - - /// - /// Mobile Phone Number - /// - /// Mobile Phone Number - [DataMember(Name="cellPhone", EmitDefaultValue=false)] - public string CellPhone { get; set; } - - /// - /// Address - /// - /// Address - [DataMember(Name="house", EmitDefaultValue=false)] - public string House { get; set; } - - /// - /// Department - /// - /// Department - [DataMember(Name="department", EmitDefaultValue=false)] - public string Department { get; set; } - - /// - /// Office - /// - /// Office - [DataMember(Name="office", EmitDefaultValue=false)] - public string Office { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContactV4DTO {\n"); - sb.Append(" FeaEnabled: ").Append(FeaEnabled).Append("\n"); - sb.Append(" FeaExpireDate: ").Append(FeaExpireDate).Append("\n"); - sb.Append(" FirstName: ").Append(FirstName).Append("\n"); - sb.Append(" LastName: ").Append(LastName).Append("\n"); - sb.Append(" Pec: ").Append(Pec).Append("\n"); - sb.Append(" AddressBookId: ").Append(AddressBookId).Append("\n"); - sb.Append(" ContactName: ").Append(ContactName).Append("\n"); - sb.Append(" Job: ").Append(Job).Append("\n"); - sb.Append(" Phone: ").Append(Phone).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" CellPhone: ").Append(CellPhone).Append("\n"); - sb.Append(" House: ").Append(House).Append("\n"); - sb.Append(" Department: ").Append(Department).Append("\n"); - sb.Append(" Office: ").Append(Office).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContactV4DTO); - } - - /// - /// Returns true if ContactV4DTO instances are equal - /// - /// Instance of ContactV4DTO to be compared - /// Boolean - public bool Equals(ContactV4DTO input) - { - if (input == null) - return false; - - return - ( - this.FeaEnabled == input.FeaEnabled || - (this.FeaEnabled != null && - this.FeaEnabled.Equals(input.FeaEnabled)) - ) && - ( - this.FeaExpireDate == input.FeaExpireDate || - (this.FeaExpireDate != null && - this.FeaExpireDate.Equals(input.FeaExpireDate)) - ) && - ( - this.FirstName == input.FirstName || - (this.FirstName != null && - this.FirstName.Equals(input.FirstName)) - ) && - ( - this.LastName == input.LastName || - (this.LastName != null && - this.LastName.Equals(input.LastName)) - ) && - ( - this.Pec == input.Pec || - (this.Pec != null && - this.Pec.Equals(input.Pec)) - ) && - ( - this.AddressBookId == input.AddressBookId || - (this.AddressBookId != null && - this.AddressBookId.Equals(input.AddressBookId)) - ) && - ( - this.ContactName == input.ContactName || - (this.ContactName != null && - this.ContactName.Equals(input.ContactName)) - ) && - ( - this.Job == input.Job || - (this.Job != null && - this.Job.Equals(input.Job)) - ) && - ( - this.Phone == input.Phone || - (this.Phone != null && - this.Phone.Equals(input.Phone)) - ) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && - ( - this.CellPhone == input.CellPhone || - (this.CellPhone != null && - this.CellPhone.Equals(input.CellPhone)) - ) && - ( - this.House == input.House || - (this.House != null && - this.House.Equals(input.House)) - ) && - ( - this.Department == input.Department || - (this.Department != null && - this.Department.Equals(input.Department)) - ) && - ( - this.Office == input.Office || - (this.Office != null && - this.Office.Equals(input.Office)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.FeaEnabled != null) - hashCode = hashCode * 59 + this.FeaEnabled.GetHashCode(); - if (this.FeaExpireDate != null) - hashCode = hashCode * 59 + this.FeaExpireDate.GetHashCode(); - if (this.FirstName != null) - hashCode = hashCode * 59 + this.FirstName.GetHashCode(); - if (this.LastName != null) - hashCode = hashCode * 59 + this.LastName.GetHashCode(); - if (this.Pec != null) - hashCode = hashCode * 59 + this.Pec.GetHashCode(); - if (this.AddressBookId != null) - hashCode = hashCode * 59 + this.AddressBookId.GetHashCode(); - if (this.ContactName != null) - hashCode = hashCode * 59 + this.ContactName.GetHashCode(); - if (this.Job != null) - hashCode = hashCode * 59 + this.Job.GetHashCode(); - if (this.Phone != null) - hashCode = hashCode * 59 + this.Phone.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.CellPhone != null) - hashCode = hashCode * 59 + this.CellPhone.GetHashCode(); - if (this.House != null) - hashCode = hashCode * 59 + this.House.GetHashCode(); - if (this.Department != null) - hashCode = hashCode * 59 + this.Department.GetHashCode(); - if (this.Office != null) - hashCode = hashCode * 59 + this.Office.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DataGroupSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DataGroupSimpleDTO.cs deleted file mode 100644 index d332ba4..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DataGroupSimpleDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of data group - /// - [DataContract] - public partial class DataGroupSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - public DataGroupSimpleDTO(string id = default(string), string name = default(string)) - { - this.Id = id; - this.Name = name; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DataGroupSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DataGroupSimpleDTO); - } - - /// - /// Returns true if DataGroupSimpleDTO instances are equal - /// - /// Instance of DataGroupSimpleDTO to be compared - /// Boolean - public bool Equals(DataGroupSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DateTimeKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DateTimeKeyValueDTO.cs deleted file mode 100644 index adedc01..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DateTimeKeyValueDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// DateTime key value - /// - [DataContract] - public partial class DateTimeKeyValueDTO : GenericKeyValueDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected DateTimeKeyValueDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - public DateTimeKeyValueDTO(DateTime? value = default(DateTime?), string className = "DateTimeKeyValueDTO", string key = default(string)) : base(className, key) - { - this.Value = value; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public DateTime? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DateTimeKeyValueDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DateTimeKeyValueDTO); - } - - /// - /// Returns true if DateTimeKeyValueDTO instances are equal - /// - /// Instance of DateTimeKeyValueDTO to be compared - /// Boolean - public bool Equals(DateTimeKeyValueDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DecimalKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DecimalKeyValueDTO.cs deleted file mode 100644 index 53bf7ad..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DecimalKeyValueDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Decimal key value - /// - [DataContract] - public partial class DecimalKeyValueDTO : GenericKeyValueDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected DecimalKeyValueDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - public DecimalKeyValueDTO(double? value = default(double?), string className = "DecimalKeyValueDTO", string key = default(string)) : base(className, key) - { - this.Value = value; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public double? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DecimalKeyValueDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DecimalKeyValueDTO); - } - - /// - /// Returns true if DecimalKeyValueDTO instances are equal - /// - /// Instance of DecimalKeyValueDTO to be compared - /// Boolean - public bool Equals(DecimalKeyValueDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DefaultBarcodeTemplateDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/DefaultBarcodeTemplateDto.cs deleted file mode 100644 index f7498a0..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DefaultBarcodeTemplateDto.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of default barcode - /// - [DataContract] - public partial class DefaultBarcodeTemplateDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Template Name. - /// Possible values: 0: ZEBRA_EPL2 1: ZEBRA_ZPL2 2: TOSHIBA_BSV4 3: EPSON_ESC_POS 4: GRAPHIC . - public DefaultBarcodeTemplateDto(string barcodeTemplate = default(string), int? printerFamily = default(int?)) - { - this.BarcodeTemplate = barcodeTemplate; - this.PrinterFamily = printerFamily; - } - - /// - /// Template Name - /// - /// Template Name - [DataMember(Name="barcodeTemplate", EmitDefaultValue=false)] - public string BarcodeTemplate { get; set; } - - /// - /// Possible values: 0: ZEBRA_EPL2 1: ZEBRA_ZPL2 2: TOSHIBA_BSV4 3: EPSON_ESC_POS 4: GRAPHIC - /// - /// Possible values: 0: ZEBRA_EPL2 1: ZEBRA_ZPL2 2: TOSHIBA_BSV4 3: EPSON_ESC_POS 4: GRAPHIC - [DataMember(Name="printerFamily", EmitDefaultValue=false)] - public int? PrinterFamily { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DefaultBarcodeTemplateDto {\n"); - sb.Append(" BarcodeTemplate: ").Append(BarcodeTemplate).Append("\n"); - sb.Append(" PrinterFamily: ").Append(PrinterFamily).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DefaultBarcodeTemplateDto); - } - - /// - /// Returns true if DefaultBarcodeTemplateDto instances are equal - /// - /// Instance of DefaultBarcodeTemplateDto to be compared - /// Boolean - public bool Equals(DefaultBarcodeTemplateDto input) - { - if (input == null) - return false; - - return - ( - this.BarcodeTemplate == input.BarcodeTemplate || - (this.BarcodeTemplate != null && - this.BarcodeTemplate.Equals(input.BarcodeTemplate)) - ) && - ( - this.PrinterFamily == input.PrinterFamily || - (this.PrinterFamily != null && - this.PrinterFamily.Equals(input.PrinterFamily)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.BarcodeTemplate != null) - hashCode = hashCode * 59 + this.BarcodeTemplate.GetHashCode(); - if (this.PrinterFamily != null) - hashCode = hashCode * 59 + this.PrinterFamily.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DelegationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DelegationDTO.cs deleted file mode 100644 index 3933efa..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DelegationDTO.cs +++ /dev/null @@ -1,317 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// DelegationDTO - /// - [DataContract] - public partial class DelegationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// organizationChartDelegatingUser. - /// organizationChartDelegatedUser. - /// delegatingUser. - /// delegatedUser. - /// mails. - /// tasks. - /// from. - /// to. - /// note. - /// isActive. - /// Possible values: 0: Static 1: Dynamic . - /// ignoreDelegationPeriod. - public DelegationDTO(int? id = default(int?), int? organizationChartDelegatingUser = default(int?), int? organizationChartDelegatedUser = default(int?), DelegationUserDTO delegatingUser = default(DelegationUserDTO), DelegationUserDTO delegatedUser = default(DelegationUserDTO), bool? mails = default(bool?), bool? tasks = default(bool?), DateTime? from = default(DateTime?), DateTime? to = default(DateTime?), string note = default(string), bool? isActive = default(bool?), int? delegationMode = default(int?), bool? ignoreDelegationPeriod = default(bool?)) - { - this.Id = id; - this.OrganizationChartDelegatingUser = organizationChartDelegatingUser; - this.OrganizationChartDelegatedUser = organizationChartDelegatedUser; - this.DelegatingUser = delegatingUser; - this.DelegatedUser = delegatedUser; - this.Mails = mails; - this.Tasks = tasks; - this.From = from; - this.To = to; - this.Note = note; - this.IsActive = isActive; - this.DelegationMode = delegationMode; - this.IgnoreDelegationPeriod = ignoreDelegationPeriod; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or Sets OrganizationChartDelegatingUser - /// - [DataMember(Name="organizationChartDelegatingUser", EmitDefaultValue=false)] - public int? OrganizationChartDelegatingUser { get; set; } - - /// - /// Gets or Sets OrganizationChartDelegatedUser - /// - [DataMember(Name="organizationChartDelegatedUser", EmitDefaultValue=false)] - public int? OrganizationChartDelegatedUser { get; set; } - - /// - /// Gets or Sets DelegatingUser - /// - [DataMember(Name="delegatingUser", EmitDefaultValue=false)] - public DelegationUserDTO DelegatingUser { get; set; } - - /// - /// Gets or Sets DelegatedUser - /// - [DataMember(Name="delegatedUser", EmitDefaultValue=false)] - public DelegationUserDTO DelegatedUser { get; set; } - - /// - /// Gets or Sets Mails - /// - [DataMember(Name="mails", EmitDefaultValue=false)] - public bool? Mails { get; set; } - - /// - /// Gets or Sets Tasks - /// - [DataMember(Name="tasks", EmitDefaultValue=false)] - public bool? Tasks { get; set; } - - /// - /// Gets or Sets From - /// - [DataMember(Name="from", EmitDefaultValue=false)] - public DateTime? From { get; set; } - - /// - /// Gets or Sets To - /// - [DataMember(Name="to", EmitDefaultValue=false)] - public DateTime? To { get; set; } - - /// - /// Gets or Sets Note - /// - [DataMember(Name="note", EmitDefaultValue=false)] - public string Note { get; set; } - - /// - /// Gets or Sets IsActive - /// - [DataMember(Name="isActive", EmitDefaultValue=false)] - public bool? IsActive { get; set; } - - /// - /// Possible values: 0: Static 1: Dynamic - /// - /// Possible values: 0: Static 1: Dynamic - [DataMember(Name="delegationMode", EmitDefaultValue=false)] - public int? DelegationMode { get; set; } - - /// - /// Gets or Sets IgnoreDelegationPeriod - /// - [DataMember(Name="ignoreDelegationPeriod", EmitDefaultValue=false)] - public bool? IgnoreDelegationPeriod { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DelegationDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" OrganizationChartDelegatingUser: ").Append(OrganizationChartDelegatingUser).Append("\n"); - sb.Append(" OrganizationChartDelegatedUser: ").Append(OrganizationChartDelegatedUser).Append("\n"); - sb.Append(" DelegatingUser: ").Append(DelegatingUser).Append("\n"); - sb.Append(" DelegatedUser: ").Append(DelegatedUser).Append("\n"); - sb.Append(" Mails: ").Append(Mails).Append("\n"); - sb.Append(" Tasks: ").Append(Tasks).Append("\n"); - sb.Append(" From: ").Append(From).Append("\n"); - sb.Append(" To: ").Append(To).Append("\n"); - sb.Append(" Note: ").Append(Note).Append("\n"); - sb.Append(" IsActive: ").Append(IsActive).Append("\n"); - sb.Append(" DelegationMode: ").Append(DelegationMode).Append("\n"); - sb.Append(" IgnoreDelegationPeriod: ").Append(IgnoreDelegationPeriod).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DelegationDTO); - } - - /// - /// Returns true if DelegationDTO instances are equal - /// - /// Instance of DelegationDTO to be compared - /// Boolean - public bool Equals(DelegationDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.OrganizationChartDelegatingUser == input.OrganizationChartDelegatingUser || - (this.OrganizationChartDelegatingUser != null && - this.OrganizationChartDelegatingUser.Equals(input.OrganizationChartDelegatingUser)) - ) && - ( - this.OrganizationChartDelegatedUser == input.OrganizationChartDelegatedUser || - (this.OrganizationChartDelegatedUser != null && - this.OrganizationChartDelegatedUser.Equals(input.OrganizationChartDelegatedUser)) - ) && - ( - this.DelegatingUser == input.DelegatingUser || - (this.DelegatingUser != null && - this.DelegatingUser.Equals(input.DelegatingUser)) - ) && - ( - this.DelegatedUser == input.DelegatedUser || - (this.DelegatedUser != null && - this.DelegatedUser.Equals(input.DelegatedUser)) - ) && - ( - this.Mails == input.Mails || - (this.Mails != null && - this.Mails.Equals(input.Mails)) - ) && - ( - this.Tasks == input.Tasks || - (this.Tasks != null && - this.Tasks.Equals(input.Tasks)) - ) && - ( - this.From == input.From || - (this.From != null && - this.From.Equals(input.From)) - ) && - ( - this.To == input.To || - (this.To != null && - this.To.Equals(input.To)) - ) && - ( - this.Note == input.Note || - (this.Note != null && - this.Note.Equals(input.Note)) - ) && - ( - this.IsActive == input.IsActive || - (this.IsActive != null && - this.IsActive.Equals(input.IsActive)) - ) && - ( - this.DelegationMode == input.DelegationMode || - (this.DelegationMode != null && - this.DelegationMode.Equals(input.DelegationMode)) - ) && - ( - this.IgnoreDelegationPeriod == input.IgnoreDelegationPeriod || - (this.IgnoreDelegationPeriod != null && - this.IgnoreDelegationPeriod.Equals(input.IgnoreDelegationPeriod)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.OrganizationChartDelegatingUser != null) - hashCode = hashCode * 59 + this.OrganizationChartDelegatingUser.GetHashCode(); - if (this.OrganizationChartDelegatedUser != null) - hashCode = hashCode * 59 + this.OrganizationChartDelegatedUser.GetHashCode(); - if (this.DelegatingUser != null) - hashCode = hashCode * 59 + this.DelegatingUser.GetHashCode(); - if (this.DelegatedUser != null) - hashCode = hashCode * 59 + this.DelegatedUser.GetHashCode(); - if (this.Mails != null) - hashCode = hashCode * 59 + this.Mails.GetHashCode(); - if (this.Tasks != null) - hashCode = hashCode * 59 + this.Tasks.GetHashCode(); - if (this.From != null) - hashCode = hashCode * 59 + this.From.GetHashCode(); - if (this.To != null) - hashCode = hashCode * 59 + this.To.GetHashCode(); - if (this.Note != null) - hashCode = hashCode * 59 + this.Note.GetHashCode(); - if (this.IsActive != null) - hashCode = hashCode * 59 + this.IsActive.GetHashCode(); - if (this.DelegationMode != null) - hashCode = hashCode * 59 + this.DelegationMode.GetHashCode(); - if (this.IgnoreDelegationPeriod != null) - hashCode = hashCode * 59 + this.IgnoreDelegationPeriod.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DelegationUserDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DelegationUserDTO.cs deleted file mode 100644 index 9c22ad7..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DelegationUserDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// DelegationUserDTO - /// - [DataContract] - public partial class DelegationUserDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// userId. - /// userDescription. - public DelegationUserDTO(int? userId = default(int?), string userDescription = default(string)) - { - this.UserId = userId; - this.UserDescription = userDescription; - } - - /// - /// Gets or Sets UserId - /// - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Gets or Sets UserDescription - /// - [DataMember(Name="userDescription", EmitDefaultValue=false)] - public string UserDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DelegationUserDTO {\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" UserDescription: ").Append(UserDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DelegationUserDTO); - } - - /// - /// Returns true if DelegationUserDTO instances are equal - /// - /// Instance of DelegationUserDTO to be compared - /// Boolean - public bool Equals(DelegationUserDTO input) - { - if (input == null) - return false; - - return - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.UserDescription == input.UserDescription || - (this.UserDescription != null && - this.UserDescription.Equals(input.UserDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.UserDescription != null) - hashCode = hashCode * 59 + this.UserDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DependencyFieldItem.cs b/ACUtils.AXRepository/ArxivarNext/Model/DependencyFieldItem.cs deleted file mode 100644 index 1261c54..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DependencyFieldItem.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Dependent Field - /// - [DataContract] - public partial class DependencyFieldItem : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Dependent Classname. - /// Name. - public DependencyFieldItem(string fieldClassName = default(string), string fieldId = default(string)) - { - this.FieldClassName = fieldClassName; - this.FieldId = fieldId; - } - - /// - /// Dependent Classname - /// - /// Dependent Classname - [DataMember(Name="fieldClassName", EmitDefaultValue=false)] - public string FieldClassName { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="fieldId", EmitDefaultValue=false)] - public string FieldId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DependencyFieldItem {\n"); - sb.Append(" FieldClassName: ").Append(FieldClassName).Append("\n"); - sb.Append(" FieldId: ").Append(FieldId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DependencyFieldItem); - } - - /// - /// Returns true if DependencyFieldItem instances are equal - /// - /// Instance of DependencyFieldItem to be compared - /// Boolean - public bool Equals(DependencyFieldItem input) - { - if (input == null) - return false; - - return - ( - this.FieldClassName == input.FieldClassName || - (this.FieldClassName != null && - this.FieldClassName.Equals(input.FieldClassName)) - ) && - ( - this.FieldId == input.FieldId || - (this.FieldId != null && - this.FieldId.Equals(input.FieldId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.FieldClassName != null) - hashCode = hashCode * 59 + this.FieldClassName.GetHashCode(); - if (this.FieldId != null) - hashCode = hashCode * 59 + this.FieldId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DesktopDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DesktopDTO.cs deleted file mode 100644 index b43efa9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DesktopDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of user desktop information - /// - [DataContract] - public partial class DesktopDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// List of Masks. - /// List of Quick Search. - /// List of Documents. - /// List of Views. - /// List of Models. - /// List of Folders. - public DesktopDTO(List masks = default(List), List quickSearches = default(List), List profiles = default(List), List views = default(List), List models = default(List), List folders = default(List)) - { - this.Masks = masks; - this.QuickSearches = quickSearches; - this.Profiles = profiles; - this.Views = views; - this.Models = models; - this.Folders = folders; - } - - /// - /// List of Masks - /// - /// List of Masks - [DataMember(Name="masks", EmitDefaultValue=false)] - public List Masks { get; set; } - - /// - /// List of Quick Search - /// - /// List of Quick Search - [DataMember(Name="quickSearches", EmitDefaultValue=false)] - public List QuickSearches { get; set; } - - /// - /// List of Documents - /// - /// List of Documents - [DataMember(Name="profiles", EmitDefaultValue=false)] - public List Profiles { get; set; } - - /// - /// List of Views - /// - /// List of Views - [DataMember(Name="views", EmitDefaultValue=false)] - public List Views { get; set; } - - /// - /// List of Models - /// - /// List of Models - [DataMember(Name="models", EmitDefaultValue=false)] - public List Models { get; set; } - - /// - /// List of Folders - /// - /// List of Folders - [DataMember(Name="folders", EmitDefaultValue=false)] - public List Folders { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DesktopDTO {\n"); - sb.Append(" Masks: ").Append(Masks).Append("\n"); - sb.Append(" QuickSearches: ").Append(QuickSearches).Append("\n"); - sb.Append(" Profiles: ").Append(Profiles).Append("\n"); - sb.Append(" Views: ").Append(Views).Append("\n"); - sb.Append(" Models: ").Append(Models).Append("\n"); - sb.Append(" Folders: ").Append(Folders).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DesktopDTO); - } - - /// - /// Returns true if DesktopDTO instances are equal - /// - /// Instance of DesktopDTO to be compared - /// Boolean - public bool Equals(DesktopDTO input) - { - if (input == null) - return false; - - return - ( - this.Masks == input.Masks || - this.Masks != null && - this.Masks.SequenceEqual(input.Masks) - ) && - ( - this.QuickSearches == input.QuickSearches || - this.QuickSearches != null && - this.QuickSearches.SequenceEqual(input.QuickSearches) - ) && - ( - this.Profiles == input.Profiles || - this.Profiles != null && - this.Profiles.SequenceEqual(input.Profiles) - ) && - ( - this.Views == input.Views || - this.Views != null && - this.Views.SequenceEqual(input.Views) - ) && - ( - this.Models == input.Models || - this.Models != null && - this.Models.SequenceEqual(input.Models) - ) && - ( - this.Folders == input.Folders || - this.Folders != null && - this.Folders.SequenceEqual(input.Folders) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Masks != null) - hashCode = hashCode * 59 + this.Masks.GetHashCode(); - if (this.QuickSearches != null) - hashCode = hashCode * 59 + this.QuickSearches.GetHashCode(); - if (this.Profiles != null) - hashCode = hashCode * 59 + this.Profiles.GetHashCode(); - if (this.Views != null) - hashCode = hashCode * 59 + this.Views.GetHashCode(); - if (this.Models != null) - hashCode = hashCode * 59 + this.Models.GetHashCode(); - if (this.Folders != null) - hashCode = hashCode * 59 + this.Folders.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DesktopItemDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DesktopItemDTO.cs deleted file mode 100644 index 5edaabb..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DesktopItemDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// DesktopItemDTO - /// - [DataContract] - public partial class DesktopItemDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: View 1: Profile 2: Folder 3: Model 4: QuickSearch 5: Mask . - /// Unique id of the item. - public DesktopItemDTO(int? desktopItemType = default(int?), string desktopItemId = default(string)) - { - this.DesktopItemType = desktopItemType; - this.DesktopItemId = desktopItemId; - } - - /// - /// Possible values: 0: View 1: Profile 2: Folder 3: Model 4: QuickSearch 5: Mask - /// - /// Possible values: 0: View 1: Profile 2: Folder 3: Model 4: QuickSearch 5: Mask - [DataMember(Name="desktopItemType", EmitDefaultValue=false)] - public int? DesktopItemType { get; set; } - - /// - /// Unique id of the item - /// - /// Unique id of the item - [DataMember(Name="desktopItemId", EmitDefaultValue=false)] - public string DesktopItemId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DesktopItemDTO {\n"); - sb.Append(" DesktopItemType: ").Append(DesktopItemType).Append("\n"); - sb.Append(" DesktopItemId: ").Append(DesktopItemId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DesktopItemDTO); - } - - /// - /// Returns true if DesktopItemDTO instances are equal - /// - /// Instance of DesktopItemDTO to be compared - /// Boolean - public bool Equals(DesktopItemDTO input) - { - if (input == null) - return false; - - return - ( - this.DesktopItemType == input.DesktopItemType || - (this.DesktopItemType != null && - this.DesktopItemType.Equals(input.DesktopItemType)) - ) && - ( - this.DesktopItemId == input.DesktopItemId || - (this.DesktopItemId != null && - this.DesktopItemId.Equals(input.DesktopItemId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DesktopItemType != null) - hashCode = hashCode * 59 + this.DesktopItemType.GetHashCode(); - if (this.DesktopItemId != null) - hashCode = hashCode * 59 + this.DesktopItemId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DesktopItemDeleteRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DesktopItemDeleteRequestDTO.cs deleted file mode 100644 index c2db914..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DesktopItemDeleteRequestDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class represents a delete items from desktop operation - /// - [DataContract] - public partial class DesktopItemDeleteRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Items to delete. - public DesktopItemDeleteRequestDTO(List desktopItems = default(List)) - { - this.DesktopItems = desktopItems; - } - - /// - /// Items to delete - /// - /// Items to delete - [DataMember(Name="desktopItems", EmitDefaultValue=false)] - public List DesktopItems { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DesktopItemDeleteRequestDTO {\n"); - sb.Append(" DesktopItems: ").Append(DesktopItems).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DesktopItemDeleteRequestDTO); - } - - /// - /// Returns true if DesktopItemDeleteRequestDTO instances are equal - /// - /// Instance of DesktopItemDeleteRequestDTO to be compared - /// Boolean - public bool Equals(DesktopItemDeleteRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.DesktopItems == input.DesktopItems || - this.DesktopItems != null && - this.DesktopItems.SequenceEqual(input.DesktopItems) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DesktopItems != null) - hashCode = hashCode * 59 + this.DesktopItems.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DeviceDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DeviceDTO.cs deleted file mode 100644 index b026186..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DeviceDTO.cs +++ /dev/null @@ -1,465 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of devise - /// - [DataContract] - public partial class DeviceDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Name. - /// Date. - /// User Identifier. - /// Capacity. - /// Files Quantity. - /// CPA file. - /// Possible values: 0: Conservazione 1: Outsourcing 2: ExternalEngine . - /// Unit. - /// Description. - /// Operator. - /// Fiscal Code Operator. - /// Person in charge about Aos. - /// PubBuff. - /// Fiscal Code Public. - /// Comment of volume. - /// Label. - /// Expiry Time Stamp. - /// Single Book Class of Job. - /// Last volume for the single book class document. - /// Business Unit. - /// Last Scheduled Volume. - public DeviceDTO(string name = default(string), DateTime? date = default(DateTime?), int? userId = default(int?), int? capacity = default(int?), int? qtyFile = default(int?), int? cpaFile = default(int?), int? type = default(int?), string unit = default(string), string description = default(string), string _operator = default(string), string codFisOp = default(string), string respAos = default(string), string pubBuff = default(string), string codFisPu = default(string), string comment = default(string), string label = default(string), DateTime? expDateMt = default(DateTime?), bool? isLul = default(bool?), string linkedVol = default(string), string aoo = default(string), string scheduledVolumId = default(string)) - { - this.Name = name; - this.Date = date; - this.UserId = userId; - this.Capacity = capacity; - this.QtyFile = qtyFile; - this.CpaFile = cpaFile; - this.Type = type; - this.Unit = unit; - this.Description = description; - this.Operator = _operator; - this.CodFisOp = codFisOp; - this.RespAos = respAos; - this.PubBuff = pubBuff; - this.CodFisPu = codFisPu; - this.Comment = comment; - this.Label = label; - this.ExpDateMt = expDateMt; - this.IsLul = isLul; - this.LinkedVol = linkedVol; - this.Aoo = aoo; - this.ScheduledVolumId = scheduledVolumId; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Date - /// - /// Date - [DataMember(Name="date", EmitDefaultValue=false)] - public DateTime? Date { get; set; } - - /// - /// User Identifier - /// - /// User Identifier - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Capacity - /// - /// Capacity - [DataMember(Name="capacity", EmitDefaultValue=false)] - public int? Capacity { get; set; } - - /// - /// Files Quantity - /// - /// Files Quantity - [DataMember(Name="qtyFile", EmitDefaultValue=false)] - public int? QtyFile { get; set; } - - /// - /// CPA file - /// - /// CPA file - [DataMember(Name="cpaFile", EmitDefaultValue=false)] - public int? CpaFile { get; set; } - - /// - /// Possible values: 0: Conservazione 1: Outsourcing 2: ExternalEngine - /// - /// Possible values: 0: Conservazione 1: Outsourcing 2: ExternalEngine - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Unit - /// - /// Unit - [DataMember(Name="unit", EmitDefaultValue=false)] - public string Unit { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Operator - /// - /// Operator - [DataMember(Name="operator", EmitDefaultValue=false)] - public string Operator { get; set; } - - /// - /// Fiscal Code Operator - /// - /// Fiscal Code Operator - [DataMember(Name="codFisOp", EmitDefaultValue=false)] - public string CodFisOp { get; set; } - - /// - /// Person in charge about Aos - /// - /// Person in charge about Aos - [DataMember(Name="respAos", EmitDefaultValue=false)] - public string RespAos { get; set; } - - /// - /// PubBuff - /// - /// PubBuff - [DataMember(Name="pubBuff", EmitDefaultValue=false)] - public string PubBuff { get; set; } - - /// - /// Fiscal Code Public - /// - /// Fiscal Code Public - [DataMember(Name="codFisPu", EmitDefaultValue=false)] - public string CodFisPu { get; set; } - - /// - /// Comment of volume - /// - /// Comment of volume - [DataMember(Name="comment", EmitDefaultValue=false)] - public string Comment { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Expiry Time Stamp - /// - /// Expiry Time Stamp - [DataMember(Name="expDateMt", EmitDefaultValue=false)] - public DateTime? ExpDateMt { get; set; } - - /// - /// Single Book Class of Job - /// - /// Single Book Class of Job - [DataMember(Name="isLul", EmitDefaultValue=false)] - public bool? IsLul { get; set; } - - /// - /// Last volume for the single book class document - /// - /// Last volume for the single book class document - [DataMember(Name="linkedVol", EmitDefaultValue=false)] - public string LinkedVol { get; set; } - - /// - /// Business Unit - /// - /// Business Unit - [DataMember(Name="aoo", EmitDefaultValue=false)] - public string Aoo { get; set; } - - /// - /// Last Scheduled Volume - /// - /// Last Scheduled Volume - [DataMember(Name="scheduledVolumId", EmitDefaultValue=false)] - public string ScheduledVolumId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DeviceDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" Capacity: ").Append(Capacity).Append("\n"); - sb.Append(" QtyFile: ").Append(QtyFile).Append("\n"); - sb.Append(" CpaFile: ").Append(CpaFile).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Unit: ").Append(Unit).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" CodFisOp: ").Append(CodFisOp).Append("\n"); - sb.Append(" RespAos: ").Append(RespAos).Append("\n"); - sb.Append(" PubBuff: ").Append(PubBuff).Append("\n"); - sb.Append(" CodFisPu: ").Append(CodFisPu).Append("\n"); - sb.Append(" Comment: ").Append(Comment).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" ExpDateMt: ").Append(ExpDateMt).Append("\n"); - sb.Append(" IsLul: ").Append(IsLul).Append("\n"); - sb.Append(" LinkedVol: ").Append(LinkedVol).Append("\n"); - sb.Append(" Aoo: ").Append(Aoo).Append("\n"); - sb.Append(" ScheduledVolumId: ").Append(ScheduledVolumId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DeviceDTO); - } - - /// - /// Returns true if DeviceDTO instances are equal - /// - /// Instance of DeviceDTO to be compared - /// Boolean - public bool Equals(DeviceDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.Capacity == input.Capacity || - (this.Capacity != null && - this.Capacity.Equals(input.Capacity)) - ) && - ( - this.QtyFile == input.QtyFile || - (this.QtyFile != null && - this.QtyFile.Equals(input.QtyFile)) - ) && - ( - this.CpaFile == input.CpaFile || - (this.CpaFile != null && - this.CpaFile.Equals(input.CpaFile)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Unit == input.Unit || - (this.Unit != null && - this.Unit.Equals(input.Unit)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && - ( - this.CodFisOp == input.CodFisOp || - (this.CodFisOp != null && - this.CodFisOp.Equals(input.CodFisOp)) - ) && - ( - this.RespAos == input.RespAos || - (this.RespAos != null && - this.RespAos.Equals(input.RespAos)) - ) && - ( - this.PubBuff == input.PubBuff || - (this.PubBuff != null && - this.PubBuff.Equals(input.PubBuff)) - ) && - ( - this.CodFisPu == input.CodFisPu || - (this.CodFisPu != null && - this.CodFisPu.Equals(input.CodFisPu)) - ) && - ( - this.Comment == input.Comment || - (this.Comment != null && - this.Comment.Equals(input.Comment)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.ExpDateMt == input.ExpDateMt || - (this.ExpDateMt != null && - this.ExpDateMt.Equals(input.ExpDateMt)) - ) && - ( - this.IsLul == input.IsLul || - (this.IsLul != null && - this.IsLul.Equals(input.IsLul)) - ) && - ( - this.LinkedVol == input.LinkedVol || - (this.LinkedVol != null && - this.LinkedVol.Equals(input.LinkedVol)) - ) && - ( - this.Aoo == input.Aoo || - (this.Aoo != null && - this.Aoo.Equals(input.Aoo)) - ) && - ( - this.ScheduledVolumId == input.ScheduledVolumId || - (this.ScheduledVolumId != null && - this.ScheduledVolumId.Equals(input.ScheduledVolumId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.Capacity != null) - hashCode = hashCode * 59 + this.Capacity.GetHashCode(); - if (this.QtyFile != null) - hashCode = hashCode * 59 + this.QtyFile.GetHashCode(); - if (this.CpaFile != null) - hashCode = hashCode * 59 + this.CpaFile.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Unit != null) - hashCode = hashCode * 59 + this.Unit.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.CodFisOp != null) - hashCode = hashCode * 59 + this.CodFisOp.GetHashCode(); - if (this.RespAos != null) - hashCode = hashCode * 59 + this.RespAos.GetHashCode(); - if (this.PubBuff != null) - hashCode = hashCode * 59 + this.PubBuff.GetHashCode(); - if (this.CodFisPu != null) - hashCode = hashCode * 59 + this.CodFisPu.GetHashCode(); - if (this.Comment != null) - hashCode = hashCode * 59 + this.Comment.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.ExpDateMt != null) - hashCode = hashCode * 59 + this.ExpDateMt.GetHashCode(); - if (this.IsLul != null) - hashCode = hashCode * 59 + this.IsLul.GetHashCode(); - if (this.LinkedVol != null) - hashCode = hashCode * 59 + this.LinkedVol.GetHashCode(); - if (this.Aoo != null) - hashCode = hashCode * 59 + this.Aoo.GetHashCode(); - if (this.ScheduledVolumId != null) - hashCode = hashCode * 59 + this.ScheduledVolumId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DictionaryHttpActionResult.cs b/ACUtils.AXRepository/ArxivarNext/Model/DictionaryHttpActionResult.cs deleted file mode 100644 index 9e5787e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DictionaryHttpActionResult.cs +++ /dev/null @@ -1,109 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// DictionaryHttpActionResult - /// - [DataContract] - public partial class DictionaryHttpActionResult : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - public DictionaryHttpActionResult() - { - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DictionaryHttpActionResult {\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DictionaryHttpActionResult); - } - - /// - /// Returns true if DictionaryHttpActionResult instances are equal - /// - /// Instance of DictionaryHttpActionResult to be compared - /// Boolean - public bool Equals(DictionaryHttpActionResult input) - { - if (input == null) - return false; - - return false; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DocToOcrDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DocToOcrDTO.cs deleted file mode 100644 index 1bcd370..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DocToOcrDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of optical character recognition (OCR) on a document profile. - /// - [DataContract] - public partial class DocToOcrDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document Identifier. - /// Possible values: 1: Pending 2: Failed 3: Scheduled 4: Pending_Rev 5: Failed_Rev 6: Scheduled_Rev . - /// Revision of document. - /// Schedule Date. - /// User Identifier. - /// Identifier. - /// Number of Attempts. - /// Error Message. - public DocToOcrDTO(int? docnumber = default(int?), int? status = default(int?), int? revision = default(int?), DateTime? ocrDate = default(DateTime?), int? user = default(int?), string guid = default(string), int? numAttemps = default(int?), string errorMessage = default(string)) - { - this.Docnumber = docnumber; - this.Status = status; - this.Revision = revision; - this.OcrDate = ocrDate; - this.User = user; - this.Guid = guid; - this.NumAttemps = numAttemps; - this.ErrorMessage = errorMessage; - } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Possible values: 1: Pending 2: Failed 3: Scheduled 4: Pending_Rev 5: Failed_Rev 6: Scheduled_Rev - /// - /// Possible values: 1: Pending 2: Failed 3: Scheduled 4: Pending_Rev 5: Failed_Rev 6: Scheduled_Rev - [DataMember(Name="status", EmitDefaultValue=false)] - public int? Status { get; set; } - - /// - /// Revision of document - /// - /// Revision of document - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Schedule Date - /// - /// Schedule Date - [DataMember(Name="ocrDate", EmitDefaultValue=false)] - public DateTime? OcrDate { get; set; } - - /// - /// User Identifier - /// - /// User Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="guid", EmitDefaultValue=false)] - public string Guid { get; set; } - - /// - /// Number of Attempts - /// - /// Number of Attempts - [DataMember(Name="numAttemps", EmitDefaultValue=false)] - public int? NumAttemps { get; set; } - - /// - /// Error Message - /// - /// Error Message - [DataMember(Name="errorMessage", EmitDefaultValue=false)] - public string ErrorMessage { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocToOcrDTO {\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" OcrDate: ").Append(OcrDate).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" Guid: ").Append(Guid).Append("\n"); - sb.Append(" NumAttemps: ").Append(NumAttemps).Append("\n"); - sb.Append(" ErrorMessage: ").Append(ErrorMessage).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocToOcrDTO); - } - - /// - /// Returns true if DocToOcrDTO instances are equal - /// - /// Instance of DocToOcrDTO to be compared - /// Boolean - public bool Equals(DocToOcrDTO input) - { - if (input == null) - return false; - - return - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.OcrDate == input.OcrDate || - (this.OcrDate != null && - this.OcrDate.Equals(input.OcrDate)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.Guid == input.Guid || - (this.Guid != null && - this.Guid.Equals(input.Guid)) - ) && - ( - this.NumAttemps == input.NumAttemps || - (this.NumAttemps != null && - this.NumAttemps.Equals(input.NumAttemps)) - ) && - ( - this.ErrorMessage == input.ErrorMessage || - (this.ErrorMessage != null && - this.ErrorMessage.Equals(input.ErrorMessage)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.OcrDate != null) - hashCode = hashCode * 59 + this.OcrDate.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.Guid != null) - hashCode = hashCode * 59 + this.Guid.GetHashCode(); - if (this.NumAttemps != null) - hashCode = hashCode * 59 + this.NumAttemps.GetHashCode(); - if (this.ErrorMessage != null) - hashCode = hashCode * 59 + this.ErrorMessage.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DocnumberIdErpAssociationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DocnumberIdErpAssociationDTO.cs deleted file mode 100644 index 810cefb..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DocnumberIdErpAssociationDTO.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class that represent association between Docnumber and External Id - /// - [DataContract] - public partial class DocnumberIdErpAssociationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// docnumber. - /// idErp. - public DocnumberIdErpAssociationDTO(int? id = default(int?), int? docnumber = default(int?), string idErp = default(string)) - { - this.Id = id; - this.Docnumber = docnumber; - this.IdErp = idErp; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or Sets Docnumber - /// - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Gets or Sets IdErp - /// - [DataMember(Name="idErp", EmitDefaultValue=false)] - public string IdErp { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocnumberIdErpAssociationDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" IdErp: ").Append(IdErp).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocnumberIdErpAssociationDTO); - } - - /// - /// Returns true if DocnumberIdErpAssociationDTO instances are equal - /// - /// Instance of DocnumberIdErpAssociationDTO to be compared - /// Boolean - public bool Equals(DocnumberIdErpAssociationDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.IdErp == input.IdErp || - (this.IdErp != null && - this.IdErp.Equals(input.IdErp)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.IdErp != null) - hashCode = hashCode * 59 + this.IdErp.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DocnumberLogDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DocnumberLogDTO.cs deleted file mode 100644 index 24458f3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DocnumberLogDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Model to write log document - /// - [DataContract] - public partial class DocnumberLogDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document identifier. - /// Log message. - /// Possible values: 1: INFORMATION 2: SUCCESSAUDIT 3: FAILUREAUDIT 4: WARNING 5: ERROR . - public DocnumberLogDTO(int? docnumber = default(int?), string message = default(string), int? level = default(int?)) - { - this.Docnumber = docnumber; - this.Message = message; - this.Level = level; - } - - /// - /// Document identifier - /// - /// Document identifier - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Log message - /// - /// Log message - [DataMember(Name="message", EmitDefaultValue=false)] - public string Message { get; set; } - - /// - /// Possible values: 1: INFORMATION 2: SUCCESSAUDIT 3: FAILUREAUDIT 4: WARNING 5: ERROR - /// - /// Possible values: 1: INFORMATION 2: SUCCESSAUDIT 3: FAILUREAUDIT 4: WARNING 5: ERROR - [DataMember(Name="level", EmitDefaultValue=false)] - public int? Level { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocnumberLogDTO {\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append(" Level: ").Append(Level).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocnumberLogDTO); - } - - /// - /// Returns true if DocnumberLogDTO instances are equal - /// - /// Instance of DocnumberLogDTO to be compared - /// Boolean - public bool Equals(DocnumberLogDTO input) - { - if (input == null) - return false; - - return - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Level == input.Level || - (this.Level != null && - this.Level.Equals(input.Level)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Message != null) - hashCode = hashCode * 59 + this.Message.GetHashCode(); - if (this.Level != null) - hashCode = hashCode * 59 + this.Level.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DocumentDateExpiredFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DocumentDateExpiredFieldDTO.cs deleted file mode 100644 index df11208..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DocumentDateExpiredFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of document expire date - /// - [DataContract] - public partial class DocumentDateExpiredFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected DocumentDateExpiredFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Expire datetime. - public DocumentDateExpiredFieldDTO(DateTime? value = default(DateTime?), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "DocumentDateExpiredFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Expire datetime - /// - /// Expire datetime - [DataMember(Name="value", EmitDefaultValue=false)] - public DateTime? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentDateExpiredFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentDateExpiredFieldDTO); - } - - /// - /// Returns true if DocumentDateExpiredFieldDTO instances are equal - /// - /// Instance of DocumentDateExpiredFieldDTO to be compared - /// Boolean - public bool Equals(DocumentDateExpiredFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DocumentDateFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DocumentDateFieldDTO.cs deleted file mode 100644 index e0f482d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DocumentDateFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Document datetime - /// - [DataContract] - public partial class DocumentDateFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected DocumentDateFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Document datetime. - public DocumentDateFieldDTO(DateTime? value = default(DateTime?), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "DocumentDateFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Document datetime - /// - /// Document datetime - [DataMember(Name="value", EmitDefaultValue=false)] - public DateTime? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentDateFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentDateFieldDTO); - } - - /// - /// Returns true if DocumentDateFieldDTO instances are equal - /// - /// Instance of DocumentDateFieldDTO to be compared - /// Boolean - public bool Equals(DocumentDateFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DocumentTypeBaseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DocumentTypeBaseDTO.cs deleted file mode 100644 index 754d988..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DocumentTypeBaseDTO.cs +++ /dev/null @@ -1,329 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of document type - /// - [DataContract] - public partial class DocumentTypeBaseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique identifier. - /// Identifier of the parent document type. - /// Complete key. - /// Description. - /// Identifier of the first level. - /// Identifier of the second level. - /// Identifier of the third level. - /// Default value of the document status. - /// Default value of the document inout. - /// Defines if the document type no has underlying levels. - /// Required file. - /// Required Public Administration (PA). - /// Default value of the PA protocol check,. - public DocumentTypeBaseDTO(int? id = default(int?), int? idParent = default(int?), string key = default(string), string description = default(string), int? documentType = default(int?), int? type2 = default(int?), int? type3 = default(int?), string docState = default(string), int? inOut = default(int?), bool? isLeaf = default(bool?), int? requireFile = default(int?), int? pa = default(int?), bool? paDefaultValue = default(bool?)) - { - this.Id = id; - this.IdParent = idParent; - this.Key = key; - this.Description = description; - this.DocumentType = documentType; - this.Type2 = type2; - this.Type3 = type3; - this.DocState = docState; - this.InOut = inOut; - this.IsLeaf = isLeaf; - this.RequireFile = requireFile; - this.Pa = pa; - this.PaDefaultValue = paDefaultValue; - } - - /// - /// Unique identifier - /// - /// Unique identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Identifier of the parent document type - /// - /// Identifier of the parent document type - [DataMember(Name="idParent", EmitDefaultValue=false)] - public int? IdParent { get; set; } - - /// - /// Complete key - /// - /// Complete key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Identifier of the first level - /// - /// Identifier of the first level - [DataMember(Name="documentType", EmitDefaultValue=false)] - public int? DocumentType { get; set; } - - /// - /// Identifier of the second level - /// - /// Identifier of the second level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Identifier of the third level - /// - /// Identifier of the third level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Default value of the document status - /// - /// Default value of the document status - [DataMember(Name="docState", EmitDefaultValue=false)] - public string DocState { get; set; } - - /// - /// Default value of the document inout - /// - /// Default value of the document inout - [DataMember(Name="inOut", EmitDefaultValue=false)] - public int? InOut { get; set; } - - /// - /// Defines if the document type no has underlying levels - /// - /// Defines if the document type no has underlying levels - [DataMember(Name="isLeaf", EmitDefaultValue=false)] - public bool? IsLeaf { get; set; } - - /// - /// Required file - /// - /// Required file - [DataMember(Name="requireFile", EmitDefaultValue=false)] - public int? RequireFile { get; set; } - - /// - /// Required Public Administration (PA) - /// - /// Required Public Administration (PA) - [DataMember(Name="pa", EmitDefaultValue=false)] - public int? Pa { get; set; } - - /// - /// Default value of the PA protocol check, - /// - /// Default value of the PA protocol check, - [DataMember(Name="paDefaultValue", EmitDefaultValue=false)] - public bool? PaDefaultValue { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentTypeBaseDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IdParent: ").Append(IdParent).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append(" DocState: ").Append(DocState).Append("\n"); - sb.Append(" InOut: ").Append(InOut).Append("\n"); - sb.Append(" IsLeaf: ").Append(IsLeaf).Append("\n"); - sb.Append(" RequireFile: ").Append(RequireFile).Append("\n"); - sb.Append(" Pa: ").Append(Pa).Append("\n"); - sb.Append(" PaDefaultValue: ").Append(PaDefaultValue).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentTypeBaseDTO); - } - - /// - /// Returns true if DocumentTypeBaseDTO instances are equal - /// - /// Instance of DocumentTypeBaseDTO to be compared - /// Boolean - public bool Equals(DocumentTypeBaseDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.IdParent == input.IdParent || - (this.IdParent != null && - this.IdParent.Equals(input.IdParent)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ) && - ( - this.DocState == input.DocState || - (this.DocState != null && - this.DocState.Equals(input.DocState)) - ) && - ( - this.InOut == input.InOut || - (this.InOut != null && - this.InOut.Equals(input.InOut)) - ) && - ( - this.IsLeaf == input.IsLeaf || - (this.IsLeaf != null && - this.IsLeaf.Equals(input.IsLeaf)) - ) && - ( - this.RequireFile == input.RequireFile || - (this.RequireFile != null && - this.RequireFile.Equals(input.RequireFile)) - ) && - ( - this.Pa == input.Pa || - (this.Pa != null && - this.Pa.Equals(input.Pa)) - ) && - ( - this.PaDefaultValue == input.PaDefaultValue || - (this.PaDefaultValue != null && - this.PaDefaultValue.Equals(input.PaDefaultValue)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.IdParent != null) - hashCode = hashCode * 59 + this.IdParent.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - if (this.DocState != null) - hashCode = hashCode * 59 + this.DocState.GetHashCode(); - if (this.InOut != null) - hashCode = hashCode * 59 + this.InOut.GetHashCode(); - if (this.IsLeaf != null) - hashCode = hashCode * 59 + this.IsLeaf.GetHashCode(); - if (this.RequireFile != null) - hashCode = hashCode * 59 + this.RequireFile.GetHashCode(); - if (this.Pa != null) - hashCode = hashCode * 59 + this.Pa.GetHashCode(); - if (this.PaDefaultValue != null) - hashCode = hashCode * 59 + this.PaDefaultValue.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DocumentTypeBaseTreeDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DocumentTypeBaseTreeDTO.cs deleted file mode 100644 index 8f44191..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DocumentTypeBaseTreeDTO.cs +++ /dev/null @@ -1,295 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of document type in levels form - /// - [DataContract] - public partial class DocumentTypeBaseTreeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique identifier. - /// Identifier of the parent document type. - /// Complete key. - /// Description. - /// Identifier of the first level. - /// Identifier of the second level. - /// Identifier of the third level. - /// Default value of the document status. - /// Default value of the document inout. - /// List of sublevel items. - /// Required Public Administration (PA). - public DocumentTypeBaseTreeDTO(int? id = default(int?), int? idParent = default(int?), string key = default(string), string description = default(string), int? documentType = default(int?), int? type2 = default(int?), int? type3 = default(int?), string docState = default(string), int? inOut = default(int?), List childs = default(List), int? pa = default(int?)) - { - this.Id = id; - this.IdParent = idParent; - this.Key = key; - this.Description = description; - this.DocumentType = documentType; - this.Type2 = type2; - this.Type3 = type3; - this.DocState = docState; - this.InOut = inOut; - this.Childs = childs; - this.Pa = pa; - } - - /// - /// Unique identifier - /// - /// Unique identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Identifier of the parent document type - /// - /// Identifier of the parent document type - [DataMember(Name="idParent", EmitDefaultValue=false)] - public int? IdParent { get; set; } - - /// - /// Complete key - /// - /// Complete key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Identifier of the first level - /// - /// Identifier of the first level - [DataMember(Name="documentType", EmitDefaultValue=false)] - public int? DocumentType { get; set; } - - /// - /// Identifier of the second level - /// - /// Identifier of the second level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Identifier of the third level - /// - /// Identifier of the third level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Default value of the document status - /// - /// Default value of the document status - [DataMember(Name="docState", EmitDefaultValue=false)] - public string DocState { get; set; } - - /// - /// Default value of the document inout - /// - /// Default value of the document inout - [DataMember(Name="inOut", EmitDefaultValue=false)] - public int? InOut { get; set; } - - /// - /// List of sublevel items - /// - /// List of sublevel items - [DataMember(Name="childs", EmitDefaultValue=false)] - public List Childs { get; set; } - - /// - /// Required Public Administration (PA) - /// - /// Required Public Administration (PA) - [DataMember(Name="pa", EmitDefaultValue=false)] - public int? Pa { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentTypeBaseTreeDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IdParent: ").Append(IdParent).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append(" DocState: ").Append(DocState).Append("\n"); - sb.Append(" InOut: ").Append(InOut).Append("\n"); - sb.Append(" Childs: ").Append(Childs).Append("\n"); - sb.Append(" Pa: ").Append(Pa).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentTypeBaseTreeDTO); - } - - /// - /// Returns true if DocumentTypeBaseTreeDTO instances are equal - /// - /// Instance of DocumentTypeBaseTreeDTO to be compared - /// Boolean - public bool Equals(DocumentTypeBaseTreeDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.IdParent == input.IdParent || - (this.IdParent != null && - this.IdParent.Equals(input.IdParent)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ) && - ( - this.DocState == input.DocState || - (this.DocState != null && - this.DocState.Equals(input.DocState)) - ) && - ( - this.InOut == input.InOut || - (this.InOut != null && - this.InOut.Equals(input.InOut)) - ) && - ( - this.Childs == input.Childs || - this.Childs != null && - this.Childs.SequenceEqual(input.Childs) - ) && - ( - this.Pa == input.Pa || - (this.Pa != null && - this.Pa.Equals(input.Pa)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.IdParent != null) - hashCode = hashCode * 59 + this.IdParent.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - if (this.DocState != null) - hashCode = hashCode * 59 + this.DocState.GetHashCode(); - if (this.InOut != null) - hashCode = hashCode * 59 + this.InOut.GetHashCode(); - if (this.Childs != null) - hashCode = hashCode * 59 + this.Childs.GetHashCode(); - if (this.Pa != null) - hashCode = hashCode * 59 + this.Pa.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DocumentTypeFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DocumentTypeFieldDTO.cs deleted file mode 100644 index 292e4b2..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DocumentTypeFieldDTO.cs +++ /dev/null @@ -1,183 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Document type class - /// - [DataContract] - public partial class DocumentTypeFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected DocumentTypeFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Document type id. - /// Document type display value. - /// Document type code. - /// Document type description. - public DocumentTypeFieldDTO(int? value = default(int?), string displayValue = default(string), string code = default(string), string classDescription = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "DocumentTypeFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.DisplayValue = displayValue; - this.Code = code; - this.ClassDescription = classDescription; - } - - /// - /// Document type id - /// - /// Document type id - [DataMember(Name="value", EmitDefaultValue=false)] - public int? Value { get; set; } - - /// - /// Document type display value - /// - /// Document type display value - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// Document type code - /// - /// Document type code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Document type description - /// - /// Document type description - [DataMember(Name="classDescription", EmitDefaultValue=false)] - public string ClassDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentTypeFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" ClassDescription: ").Append(ClassDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentTypeFieldDTO); - } - - /// - /// Returns true if DocumentTypeFieldDTO instances are equal - /// - /// Instance of DocumentTypeFieldDTO to be compared - /// Boolean - public bool Equals(DocumentTypeFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ) && base.Equals(input) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && base.Equals(input) && - ( - this.ClassDescription == input.ClassDescription || - (this.ClassDescription != null && - this.ClassDescription.Equals(input.ClassDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.ClassDescription != null) - hashCode = hashCode * 59 + this.ClassDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DocumentTypeSearchFilterDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/DocumentTypeSearchFilterDto.cs deleted file mode 100644 index 46de53d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DocumentTypeSearchFilterDto.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of document type filter - /// - [DataContract] - public partial class DocumentTypeSearchFilterDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document Type of first level. - /// Document Type of second level. - /// Document Type of third level. - public DocumentTypeSearchFilterDto(int? documentType = default(int?), int? type2 = default(int?), int? type3 = default(int?)) - { - this.DocumentType = documentType; - this.Type2 = type2; - this.Type3 = type3; - } - - /// - /// Document Type of first level - /// - /// Document Type of first level - [DataMember(Name="documentType", EmitDefaultValue=false)] - public int? DocumentType { get; set; } - - /// - /// Document Type of second level - /// - /// Document Type of second level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Document Type of third level - /// - /// Document Type of third level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentTypeSearchFilterDto {\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentTypeSearchFilterDto); - } - - /// - /// Returns true if DocumentTypeSearchFilterDto instances are equal - /// - /// Instance of DocumentTypeSearchFilterDto to be compared - /// Boolean - public bool Equals(DocumentTypeSearchFilterDto input) - { - if (input == null) - return false; - - return - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DocumentTypeSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DocumentTypeSimpleDTO.cs deleted file mode 100644 index 6d4198f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DocumentTypeSimpleDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of document type - /// - [DataContract] - public partial class DocumentTypeSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique identifier. - /// Description. - /// Complete key. - public DocumentTypeSimpleDTO(int? id = default(int?), string description = default(string), string key = default(string)) - { - this.Id = id; - this.Description = description; - this.Key = key; - } - - /// - /// Unique identifier - /// - /// Unique identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Complete key - /// - /// Complete key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentTypeSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentTypeSimpleDTO); - } - - /// - /// Returns true if DocumentTypeSimpleDTO instances are equal - /// - /// Instance of DocumentTypeSimpleDTO to be compared - /// Boolean - public bool Equals(DocumentTypeSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DocumentWorkInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DocumentWorkInfoDTO.cs deleted file mode 100644 index 29b5c14..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DocumentWorkInfoDTO.cs +++ /dev/null @@ -1,295 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of document of workflow process - /// - [DataContract] - public partial class DocumentWorkInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document Process Identifier. - /// Document Identifier. - /// Document Process Revision. - /// Possible values: 0: Secondario 1: Principale . - /// Important. - /// Creation Date of Document Process. - /// Document Revision. - /// User Description. - /// Internal Protocol Number. - /// Document Date. - /// Document Subject. - public DocumentWorkInfoDTO(int? processDocId = default(int?), int? docnumber = default(int?), int? processDocRevision = default(int?), int? state = default(int?), bool? important = default(bool?), DateTime? processDocDate = default(DateTime?), int? currentRevision = default(int?), string userCompleteName = default(string), string internalProtocol = default(string), DateTime? dataDoc = default(DateTime?), string subject = default(string)) - { - this.ProcessDocId = processDocId; - this.Docnumber = docnumber; - this.ProcessDocRevision = processDocRevision; - this.State = state; - this.Important = important; - this.ProcessDocDate = processDocDate; - this.CurrentRevision = currentRevision; - this.UserCompleteName = userCompleteName; - this.InternalProtocol = internalProtocol; - this.DataDoc = dataDoc; - this.Subject = subject; - } - - /// - /// Document Process Identifier - /// - /// Document Process Identifier - [DataMember(Name="processDocId", EmitDefaultValue=false)] - public int? ProcessDocId { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Document Process Revision - /// - /// Document Process Revision - [DataMember(Name="processDocRevision", EmitDefaultValue=false)] - public int? ProcessDocRevision { get; set; } - - /// - /// Possible values: 0: Secondario 1: Principale - /// - /// Possible values: 0: Secondario 1: Principale - [DataMember(Name="state", EmitDefaultValue=false)] - public int? State { get; set; } - - /// - /// Important - /// - /// Important - [DataMember(Name="important", EmitDefaultValue=false)] - public bool? Important { get; set; } - - /// - /// Creation Date of Document Process - /// - /// Creation Date of Document Process - [DataMember(Name="processDocDate", EmitDefaultValue=false)] - public DateTime? ProcessDocDate { get; set; } - - /// - /// Document Revision - /// - /// Document Revision - [DataMember(Name="currentRevision", EmitDefaultValue=false)] - public int? CurrentRevision { get; set; } - - /// - /// User Description - /// - /// User Description - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Internal Protocol Number - /// - /// Internal Protocol Number - [DataMember(Name="internalProtocol", EmitDefaultValue=false)] - public string InternalProtocol { get; set; } - - /// - /// Document Date - /// - /// Document Date - [DataMember(Name="dataDoc", EmitDefaultValue=false)] - public DateTime? DataDoc { get; set; } - - /// - /// Document Subject - /// - /// Document Subject - [DataMember(Name="subject", EmitDefaultValue=false)] - public string Subject { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentWorkInfoDTO {\n"); - sb.Append(" ProcessDocId: ").Append(ProcessDocId).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" ProcessDocRevision: ").Append(ProcessDocRevision).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" Important: ").Append(Important).Append("\n"); - sb.Append(" ProcessDocDate: ").Append(ProcessDocDate).Append("\n"); - sb.Append(" CurrentRevision: ").Append(CurrentRevision).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" InternalProtocol: ").Append(InternalProtocol).Append("\n"); - sb.Append(" DataDoc: ").Append(DataDoc).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentWorkInfoDTO); - } - - /// - /// Returns true if DocumentWorkInfoDTO instances are equal - /// - /// Instance of DocumentWorkInfoDTO to be compared - /// Boolean - public bool Equals(DocumentWorkInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.ProcessDocId == input.ProcessDocId || - (this.ProcessDocId != null && - this.ProcessDocId.Equals(input.ProcessDocId)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.ProcessDocRevision == input.ProcessDocRevision || - (this.ProcessDocRevision != null && - this.ProcessDocRevision.Equals(input.ProcessDocRevision)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && - ( - this.Important == input.Important || - (this.Important != null && - this.Important.Equals(input.Important)) - ) && - ( - this.ProcessDocDate == input.ProcessDocDate || - (this.ProcessDocDate != null && - this.ProcessDocDate.Equals(input.ProcessDocDate)) - ) && - ( - this.CurrentRevision == input.CurrentRevision || - (this.CurrentRevision != null && - this.CurrentRevision.Equals(input.CurrentRevision)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.InternalProtocol == input.InternalProtocol || - (this.InternalProtocol != null && - this.InternalProtocol.Equals(input.InternalProtocol)) - ) && - ( - this.DataDoc == input.DataDoc || - (this.DataDoc != null && - this.DataDoc.Equals(input.DataDoc)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ProcessDocId != null) - hashCode = hashCode * 59 + this.ProcessDocId.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.ProcessDocRevision != null) - hashCode = hashCode * 59 + this.ProcessDocRevision.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.Important != null) - hashCode = hashCode * 59 + this.Important.GetHashCode(); - if (this.ProcessDocDate != null) - hashCode = hashCode * 59 + this.ProcessDocDate.GetHashCode(); - if (this.CurrentRevision != null) - hashCode = hashCode * 59 + this.CurrentRevision.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.InternalProtocol != null) - hashCode = hashCode * 59 + this.InternalProtocol.GetHashCode(); - if (this.DataDoc != null) - hashCode = hashCode * 59 + this.DataDoc.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DocumentsWritingSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DocumentsWritingSettingsDTO.cs deleted file mode 100644 index f3aeb07..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DocumentsWritingSettingsDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the documents writing settings - /// - [DataContract] - public partial class DocumentsWritingSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// List of file extensions that can't be accepted. - /// List of file extensions that can be accepted. - /// Minimum writable document size. - /// Maximum writable document size. - public DocumentsWritingSettingsDTO(List blacklistFileExtensions = default(List), List whitelistFileExtensions = default(List), long? minFileSize = default(long?), long? maxFileSize = default(long?)) - { - this.BlacklistFileExtensions = blacklistFileExtensions; - this.WhitelistFileExtensions = whitelistFileExtensions; - this.MinFileSize = minFileSize; - this.MaxFileSize = maxFileSize; - } - - /// - /// List of file extensions that can't be accepted - /// - /// List of file extensions that can't be accepted - [DataMember(Name="blacklistFileExtensions", EmitDefaultValue=false)] - public List BlacklistFileExtensions { get; set; } - - /// - /// List of file extensions that can be accepted - /// - /// List of file extensions that can be accepted - [DataMember(Name="whitelistFileExtensions", EmitDefaultValue=false)] - public List WhitelistFileExtensions { get; set; } - - /// - /// Minimum writable document size - /// - /// Minimum writable document size - [DataMember(Name="minFileSize", EmitDefaultValue=false)] - public long? MinFileSize { get; set; } - - /// - /// Maximum writable document size - /// - /// Maximum writable document size - [DataMember(Name="maxFileSize", EmitDefaultValue=false)] - public long? MaxFileSize { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentsWritingSettingsDTO {\n"); - sb.Append(" BlacklistFileExtensions: ").Append(BlacklistFileExtensions).Append("\n"); - sb.Append(" WhitelistFileExtensions: ").Append(WhitelistFileExtensions).Append("\n"); - sb.Append(" MinFileSize: ").Append(MinFileSize).Append("\n"); - sb.Append(" MaxFileSize: ").Append(MaxFileSize).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentsWritingSettingsDTO); - } - - /// - /// Returns true if DocumentsWritingSettingsDTO instances are equal - /// - /// Instance of DocumentsWritingSettingsDTO to be compared - /// Boolean - public bool Equals(DocumentsWritingSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.BlacklistFileExtensions == input.BlacklistFileExtensions || - this.BlacklistFileExtensions != null && - this.BlacklistFileExtensions.SequenceEqual(input.BlacklistFileExtensions) - ) && - ( - this.WhitelistFileExtensions == input.WhitelistFileExtensions || - this.WhitelistFileExtensions != null && - this.WhitelistFileExtensions.SequenceEqual(input.WhitelistFileExtensions) - ) && - ( - this.MinFileSize == input.MinFileSize || - (this.MinFileSize != null && - this.MinFileSize.Equals(input.MinFileSize)) - ) && - ( - this.MaxFileSize == input.MaxFileSize || - (this.MaxFileSize != null && - this.MaxFileSize.Equals(input.MaxFileSize)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.BlacklistFileExtensions != null) - hashCode = hashCode * 59 + this.BlacklistFileExtensions.GetHashCode(); - if (this.WhitelistFileExtensions != null) - hashCode = hashCode * 59 + this.WhitelistFileExtensions.GetHashCode(); - if (this.MinFileSize != null) - hashCode = hashCode * 59 + this.MinFileSize.GetHashCode(); - if (this.MaxFileSize != null) - hashCode = hashCode * 59 + this.MaxFileSize.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DoubleKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DoubleKeyValueDTO.cs deleted file mode 100644 index 78bed19..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DoubleKeyValueDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Int key value - /// - [DataContract] - public partial class DoubleKeyValueDTO : GenericKeyValueDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected DoubleKeyValueDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - public DoubleKeyValueDTO(double? value = default(double?), string className = "DoubleKeyValueDTO", string key = default(string)) : base(className, key) - { - this.Value = value; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public double? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DoubleKeyValueDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DoubleKeyValueDTO); - } - - /// - /// Returns true if DoubleKeyValueDTO instances are equal - /// - /// Instance of DoubleKeyValueDTO to be compared - /// Boolean - public bool Equals(DoubleKeyValueDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/DynamicJobMultipleSetRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/DynamicJobMultipleSetRequestDTO.cs deleted file mode 100644 index a69f77b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/DynamicJobMultipleSetRequestDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Dynamic job operation multiple set request - /// - [DataContract] - public partial class DynamicJobMultipleSetRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// User id of dynamic job. - /// TaskWork id to set. - /// Values for dynamic job. - public DynamicJobMultipleSetRequestDTO(int? dynamicJobUserId = default(int?), List taskWorkIds = default(List), List users = default(List)) - { - this.DynamicJobUserId = dynamicJobUserId; - this.TaskWorkIds = taskWorkIds; - this.Users = users; - } - - /// - /// User id of dynamic job - /// - /// User id of dynamic job - [DataMember(Name="dynamicJobUserId", EmitDefaultValue=false)] - public int? DynamicJobUserId { get; set; } - - /// - /// TaskWork id to set - /// - /// TaskWork id to set - [DataMember(Name="taskWorkIds", EmitDefaultValue=false)] - public List TaskWorkIds { get; set; } - - /// - /// Values for dynamic job - /// - /// Values for dynamic job - [DataMember(Name="users", EmitDefaultValue=false)] - public List Users { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DynamicJobMultipleSetRequestDTO {\n"); - sb.Append(" DynamicJobUserId: ").Append(DynamicJobUserId).Append("\n"); - sb.Append(" TaskWorkIds: ").Append(TaskWorkIds).Append("\n"); - sb.Append(" Users: ").Append(Users).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DynamicJobMultipleSetRequestDTO); - } - - /// - /// Returns true if DynamicJobMultipleSetRequestDTO instances are equal - /// - /// Instance of DynamicJobMultipleSetRequestDTO to be compared - /// Boolean - public bool Equals(DynamicJobMultipleSetRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.DynamicJobUserId == input.DynamicJobUserId || - (this.DynamicJobUserId != null && - this.DynamicJobUserId.Equals(input.DynamicJobUserId)) - ) && - ( - this.TaskWorkIds == input.TaskWorkIds || - this.TaskWorkIds != null && - this.TaskWorkIds.SequenceEqual(input.TaskWorkIds) - ) && - ( - this.Users == input.Users || - this.Users != null && - this.Users.SequenceEqual(input.Users) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DynamicJobUserId != null) - hashCode = hashCode * 59 + this.DynamicJobUserId.GetHashCode(); - if (this.TaskWorkIds != null) - hashCode = hashCode * 59 + this.TaskWorkIds.GetHashCode(); - if (this.Users != null) - hashCode = hashCode * 59 + this.Users.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/EditDocnumberRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/EditDocnumberRequestDTO.cs deleted file mode 100644 index 06f8975..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/EditDocnumberRequestDTO.cs +++ /dev/null @@ -1,157 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Edit document for external app request - /// - [DataContract] - public partial class EditDocnumberRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accessToken. - /// docnumber. - /// Possible values: 0: Office365 . - public EditDocnumberRequestDTO(string accessToken = default(string), int? docnumber = default(int?), int? externalAppType = default(int?)) - { - this.AccessToken = accessToken; - this.Docnumber = docnumber; - this.ExternalAppType = externalAppType; - } - - /// - /// Gets or Sets AccessToken - /// - [DataMember(Name="accessToken", EmitDefaultValue=false)] - public string AccessToken { get; set; } - - /// - /// Gets or Sets Docnumber - /// - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Possible values: 0: Office365 - /// - /// Possible values: 0: Office365 - [DataMember(Name="externalAppType", EmitDefaultValue=false)] - public int? ExternalAppType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EditDocnumberRequestDTO {\n"); - sb.Append(" AccessToken: ").Append(AccessToken).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" ExternalAppType: ").Append(ExternalAppType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EditDocnumberRequestDTO); - } - - /// - /// Returns true if EditDocnumberRequestDTO instances are equal - /// - /// Instance of EditDocnumberRequestDTO to be compared - /// Boolean - public bool Equals(EditDocnumberRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.AccessToken == input.AccessToken || - (this.AccessToken != null && - this.AccessToken.Equals(input.AccessToken)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.ExternalAppType == input.ExternalAppType || - (this.ExternalAppType != null && - this.ExternalAppType.Equals(input.ExternalAppType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AccessToken != null) - hashCode = hashCode * 59 + this.AccessToken.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.ExternalAppType != null) - hashCode = hashCode * 59 + this.ExternalAppType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/EditDocumentResponseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/EditDocumentResponseDTO.cs deleted file mode 100644 index 04a7461..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/EditDocumentResponseDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Edit document for external app response - /// - [DataContract] - public partial class EditDocumentResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// idDocument. - /// redirectUrl. - public EditDocumentResponseDTO(string idDocument = default(string), string redirectUrl = default(string)) - { - this.IdDocument = idDocument; - this.RedirectUrl = redirectUrl; - } - - /// - /// Gets or Sets IdDocument - /// - [DataMember(Name="idDocument", EmitDefaultValue=false)] - public string IdDocument { get; set; } - - /// - /// Gets or Sets RedirectUrl - /// - [DataMember(Name="redirectUrl", EmitDefaultValue=false)] - public string RedirectUrl { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EditDocumentResponseDTO {\n"); - sb.Append(" IdDocument: ").Append(IdDocument).Append("\n"); - sb.Append(" RedirectUrl: ").Append(RedirectUrl).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EditDocumentResponseDTO); - } - - /// - /// Returns true if EditDocumentResponseDTO instances are equal - /// - /// Instance of EditDocumentResponseDTO to be compared - /// Boolean - public bool Equals(EditDocumentResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.IdDocument == input.IdDocument || - (this.IdDocument != null && - this.IdDocument.Equals(input.IdDocument)) - ) && - ( - this.RedirectUrl == input.RedirectUrl || - (this.RedirectUrl != null && - this.RedirectUrl.Equals(input.RedirectUrl)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IdDocument != null) - hashCode = hashCode * 59 + this.IdDocument.GetHashCode(); - if (this.RedirectUrl != null) - hashCode = hashCode * 59 + this.RedirectUrl.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/EditProcessDocRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/EditProcessDocRequestDTO.cs deleted file mode 100644 index aae2862..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/EditProcessDocRequestDTO.cs +++ /dev/null @@ -1,173 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// EditProcessDocRequestDTO - /// - [DataContract] - public partial class EditProcessDocRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accessToken. - /// processDocId. - /// taskWorkId. - /// Possible values: 0: Office365 . - public EditProcessDocRequestDTO(string accessToken = default(string), int? processDocId = default(int?), int? taskWorkId = default(int?), int? externalAppType = default(int?)) - { - this.AccessToken = accessToken; - this.ProcessDocId = processDocId; - this.TaskWorkId = taskWorkId; - this.ExternalAppType = externalAppType; - } - - /// - /// Gets or Sets AccessToken - /// - [DataMember(Name="accessToken", EmitDefaultValue=false)] - public string AccessToken { get; set; } - - /// - /// Gets or Sets ProcessDocId - /// - [DataMember(Name="processDocId", EmitDefaultValue=false)] - public int? ProcessDocId { get; set; } - - /// - /// Gets or Sets TaskWorkId - /// - [DataMember(Name="taskWorkId", EmitDefaultValue=false)] - public int? TaskWorkId { get; set; } - - /// - /// Possible values: 0: Office365 - /// - /// Possible values: 0: Office365 - [DataMember(Name="externalAppType", EmitDefaultValue=false)] - public int? ExternalAppType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EditProcessDocRequestDTO {\n"); - sb.Append(" AccessToken: ").Append(AccessToken).Append("\n"); - sb.Append(" ProcessDocId: ").Append(ProcessDocId).Append("\n"); - sb.Append(" TaskWorkId: ").Append(TaskWorkId).Append("\n"); - sb.Append(" ExternalAppType: ").Append(ExternalAppType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EditProcessDocRequestDTO); - } - - /// - /// Returns true if EditProcessDocRequestDTO instances are equal - /// - /// Instance of EditProcessDocRequestDTO to be compared - /// Boolean - public bool Equals(EditProcessDocRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.AccessToken == input.AccessToken || - (this.AccessToken != null && - this.AccessToken.Equals(input.AccessToken)) - ) && - ( - this.ProcessDocId == input.ProcessDocId || - (this.ProcessDocId != null && - this.ProcessDocId.Equals(input.ProcessDocId)) - ) && - ( - this.TaskWorkId == input.TaskWorkId || - (this.TaskWorkId != null && - this.TaskWorkId.Equals(input.TaskWorkId)) - ) && - ( - this.ExternalAppType == input.ExternalAppType || - (this.ExternalAppType != null && - this.ExternalAppType.Equals(input.ExternalAppType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AccessToken != null) - hashCode = hashCode * 59 + this.AccessToken.GetHashCode(); - if (this.ProcessDocId != null) - hashCode = hashCode * 59 + this.ProcessDocId.GetHashCode(); - if (this.TaskWorkId != null) - hashCode = hashCode * 59 + this.TaskWorkId.GetHashCode(); - if (this.ExternalAppType != null) - hashCode = hashCode * 59 + this.ExternalAppType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/EditProfileOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/EditProfileOptionsDTO.cs deleted file mode 100644 index 5a1eb3e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/EditProfileOptionsDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of options for editing profile - /// - [DataContract] - public partial class EditProfileOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Load Predefined Profile. - /// Unlock Profile. - /// Unlock Profile Message. - /// Enabled Switch. - /// Editing fields of Public Amministration (PA) information. - /// Workflow in progress. - public EditProfileOptionsDTO(bool? canLoadPredefinedProfile = default(bool?), bool? canUnlockProfile = default(bool?), string canUnlockProfileMessage = default(string), bool? canSwitch = default(bool?), bool? allowEditPaFields = default(bool?), bool? workflowSubjected = default(bool?)) - { - this.CanLoadPredefinedProfile = canLoadPredefinedProfile; - this.CanUnlockProfile = canUnlockProfile; - this.CanUnlockProfileMessage = canUnlockProfileMessage; - this.CanSwitch = canSwitch; - this.AllowEditPaFields = allowEditPaFields; - this.WorkflowSubjected = workflowSubjected; - } - - /// - /// Load Predefined Profile - /// - /// Load Predefined Profile - [DataMember(Name="canLoadPredefinedProfile", EmitDefaultValue=false)] - public bool? CanLoadPredefinedProfile { get; set; } - - /// - /// Unlock Profile - /// - /// Unlock Profile - [DataMember(Name="canUnlockProfile", EmitDefaultValue=false)] - public bool? CanUnlockProfile { get; set; } - - /// - /// Unlock Profile Message - /// - /// Unlock Profile Message - [DataMember(Name="canUnlockProfileMessage", EmitDefaultValue=false)] - public string CanUnlockProfileMessage { get; set; } - - /// - /// Enabled Switch - /// - /// Enabled Switch - [DataMember(Name="canSwitch", EmitDefaultValue=false)] - public bool? CanSwitch { get; set; } - - /// - /// Editing fields of Public Amministration (PA) information - /// - /// Editing fields of Public Amministration (PA) information - [DataMember(Name="allowEditPaFields", EmitDefaultValue=false)] - public bool? AllowEditPaFields { get; set; } - - /// - /// Workflow in progress - /// - /// Workflow in progress - [DataMember(Name="workflowSubjected", EmitDefaultValue=false)] - public bool? WorkflowSubjected { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EditProfileOptionsDTO {\n"); - sb.Append(" CanLoadPredefinedProfile: ").Append(CanLoadPredefinedProfile).Append("\n"); - sb.Append(" CanUnlockProfile: ").Append(CanUnlockProfile).Append("\n"); - sb.Append(" CanUnlockProfileMessage: ").Append(CanUnlockProfileMessage).Append("\n"); - sb.Append(" CanSwitch: ").Append(CanSwitch).Append("\n"); - sb.Append(" AllowEditPaFields: ").Append(AllowEditPaFields).Append("\n"); - sb.Append(" WorkflowSubjected: ").Append(WorkflowSubjected).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EditProfileOptionsDTO); - } - - /// - /// Returns true if EditProfileOptionsDTO instances are equal - /// - /// Instance of EditProfileOptionsDTO to be compared - /// Boolean - public bool Equals(EditProfileOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.CanLoadPredefinedProfile == input.CanLoadPredefinedProfile || - (this.CanLoadPredefinedProfile != null && - this.CanLoadPredefinedProfile.Equals(input.CanLoadPredefinedProfile)) - ) && - ( - this.CanUnlockProfile == input.CanUnlockProfile || - (this.CanUnlockProfile != null && - this.CanUnlockProfile.Equals(input.CanUnlockProfile)) - ) && - ( - this.CanUnlockProfileMessage == input.CanUnlockProfileMessage || - (this.CanUnlockProfileMessage != null && - this.CanUnlockProfileMessage.Equals(input.CanUnlockProfileMessage)) - ) && - ( - this.CanSwitch == input.CanSwitch || - (this.CanSwitch != null && - this.CanSwitch.Equals(input.CanSwitch)) - ) && - ( - this.AllowEditPaFields == input.AllowEditPaFields || - (this.AllowEditPaFields != null && - this.AllowEditPaFields.Equals(input.AllowEditPaFields)) - ) && - ( - this.WorkflowSubjected == input.WorkflowSubjected || - (this.WorkflowSubjected != null && - this.WorkflowSubjected.Equals(input.WorkflowSubjected)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CanLoadPredefinedProfile != null) - hashCode = hashCode * 59 + this.CanLoadPredefinedProfile.GetHashCode(); - if (this.CanUnlockProfile != null) - hashCode = hashCode * 59 + this.CanUnlockProfile.GetHashCode(); - if (this.CanUnlockProfileMessage != null) - hashCode = hashCode * 59 + this.CanUnlockProfileMessage.GetHashCode(); - if (this.CanSwitch != null) - hashCode = hashCode * 59 + this.CanSwitch.GetHashCode(); - if (this.AllowEditPaFields != null) - hashCode = hashCode * 59 + this.AllowEditPaFields.GetHashCode(); - if (this.WorkflowSubjected != null) - hashCode = hashCode * 59 + this.WorkflowSubjected.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/EditProfileSchemaDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/EditProfileSchemaDTO.cs deleted file mode 100644 index 79bc0eb..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/EditProfileSchemaDTO.cs +++ /dev/null @@ -1,431 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of information used to edit profile - /// - [DataContract] - public partial class EditProfileSchemaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Options. - /// Additional data. - /// Mask Identifier. - /// Mask Name. - /// Predefined Profile Identifier. - /// Options. - /// Behaviour. - /// Possible values: 0: Nothing 1: Barcode 2: Archiviazione . - /// Identifier. - /// File data. - /// Fields. - /// Post Profilation Actions. - /// Possible values: 0: None 1: ForceInsert 2: State . - /// Attachments. - /// Notes. - /// Public Amministration Notes. - /// Authority Data. - /// Defines if a protocol has been generated. - /// File Writing Settings. - public EditProfileSchemaDTO(EditProfileOptionsDTO editOptions = default(EditProfileOptionsDTO), ProfileAdditionalInfoDTO profileInfo = default(ProfileAdditionalInfoDTO), string maskId = default(string), string maskName = default(string), int? predefinedProfileId = default(int?), ProfileMaskOptionsDTO options = default(ProfileMaskOptionsDTO), ProfileMaskBehaviourDTO behaviour = default(ProfileMaskBehaviourDTO), int? maskType = default(int?), int? id = default(int?), FileDTO document = default(FileDTO), List fields = default(List), List postProfilationActions = default(List), int? constrainRoleBehaviour = default(int?), List attachments = default(List), List notes = default(List), List paNotes = default(List), AuthorityDataDTO authorityData = default(AuthorityDataDTO), bool? generatePaProtocol = default(bool?), DocumentsWritingSettingsDTO fileWritingSettings = default(DocumentsWritingSettingsDTO)) - { - this.EditOptions = editOptions; - this.ProfileInfo = profileInfo; - this.MaskId = maskId; - this.MaskName = maskName; - this.PredefinedProfileId = predefinedProfileId; - this.Options = options; - this.Behaviour = behaviour; - this.MaskType = maskType; - this.Id = id; - this.Document = document; - this.Fields = fields; - this.PostProfilationActions = postProfilationActions; - this.ConstrainRoleBehaviour = constrainRoleBehaviour; - this.Attachments = attachments; - this.Notes = notes; - this.PaNotes = paNotes; - this.AuthorityData = authorityData; - this.GeneratePaProtocol = generatePaProtocol; - this.FileWritingSettings = fileWritingSettings; - } - - /// - /// Options - /// - /// Options - [DataMember(Name="editOptions", EmitDefaultValue=false)] - public EditProfileOptionsDTO EditOptions { get; set; } - - /// - /// Additional data - /// - /// Additional data - [DataMember(Name="profileInfo", EmitDefaultValue=false)] - public ProfileAdditionalInfoDTO ProfileInfo { get; set; } - - /// - /// Mask Identifier - /// - /// Mask Identifier - [DataMember(Name="maskId", EmitDefaultValue=false)] - public string MaskId { get; set; } - - /// - /// Mask Name - /// - /// Mask Name - [DataMember(Name="maskName", EmitDefaultValue=false)] - public string MaskName { get; set; } - - /// - /// Predefined Profile Identifier - /// - /// Predefined Profile Identifier - [DataMember(Name="predefinedProfileId", EmitDefaultValue=false)] - public int? PredefinedProfileId { get; set; } - - /// - /// Options - /// - /// Options - [DataMember(Name="options", EmitDefaultValue=false)] - public ProfileMaskOptionsDTO Options { get; set; } - - /// - /// Behaviour - /// - /// Behaviour - [DataMember(Name="behaviour", EmitDefaultValue=false)] - public ProfileMaskBehaviourDTO Behaviour { get; set; } - - /// - /// Possible values: 0: Nothing 1: Barcode 2: Archiviazione - /// - /// Possible values: 0: Nothing 1: Barcode 2: Archiviazione - [DataMember(Name="maskType", EmitDefaultValue=false)] - public int? MaskType { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// File data - /// - /// File data - [DataMember(Name="document", EmitDefaultValue=false)] - public FileDTO Document { get; set; } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Post Profilation Actions - /// - /// Post Profilation Actions - [DataMember(Name="postProfilationActions", EmitDefaultValue=false)] - public List PostProfilationActions { get; set; } - - /// - /// Possible values: 0: None 1: ForceInsert 2: State - /// - /// Possible values: 0: None 1: ForceInsert 2: State - [DataMember(Name="constrainRoleBehaviour", EmitDefaultValue=false)] - public int? ConstrainRoleBehaviour { get; set; } - - /// - /// Attachments - /// - /// Attachments - [DataMember(Name="attachments", EmitDefaultValue=false)] - public List Attachments { get; set; } - - /// - /// Notes - /// - /// Notes - [DataMember(Name="notes", EmitDefaultValue=false)] - public List Notes { get; set; } - - /// - /// Public Amministration Notes - /// - /// Public Amministration Notes - [DataMember(Name="paNotes", EmitDefaultValue=false)] - public List PaNotes { get; set; } - - /// - /// Authority Data - /// - /// Authority Data - [DataMember(Name="authorityData", EmitDefaultValue=false)] - public AuthorityDataDTO AuthorityData { get; set; } - - /// - /// Defines if a protocol has been generated - /// - /// Defines if a protocol has been generated - [DataMember(Name="generatePaProtocol", EmitDefaultValue=false)] - public bool? GeneratePaProtocol { get; set; } - - /// - /// File Writing Settings - /// - /// File Writing Settings - [DataMember(Name="fileWritingSettings", EmitDefaultValue=false)] - public DocumentsWritingSettingsDTO FileWritingSettings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EditProfileSchemaDTO {\n"); - sb.Append(" EditOptions: ").Append(EditOptions).Append("\n"); - sb.Append(" ProfileInfo: ").Append(ProfileInfo).Append("\n"); - sb.Append(" MaskId: ").Append(MaskId).Append("\n"); - sb.Append(" MaskName: ").Append(MaskName).Append("\n"); - sb.Append(" PredefinedProfileId: ").Append(PredefinedProfileId).Append("\n"); - sb.Append(" Options: ").Append(Options).Append("\n"); - sb.Append(" Behaviour: ").Append(Behaviour).Append("\n"); - sb.Append(" MaskType: ").Append(MaskType).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Document: ").Append(Document).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append(" PostProfilationActions: ").Append(PostProfilationActions).Append("\n"); - sb.Append(" ConstrainRoleBehaviour: ").Append(ConstrainRoleBehaviour).Append("\n"); - sb.Append(" Attachments: ").Append(Attachments).Append("\n"); - sb.Append(" Notes: ").Append(Notes).Append("\n"); - sb.Append(" PaNotes: ").Append(PaNotes).Append("\n"); - sb.Append(" AuthorityData: ").Append(AuthorityData).Append("\n"); - sb.Append(" GeneratePaProtocol: ").Append(GeneratePaProtocol).Append("\n"); - sb.Append(" FileWritingSettings: ").Append(FileWritingSettings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EditProfileSchemaDTO); - } - - /// - /// Returns true if EditProfileSchemaDTO instances are equal - /// - /// Instance of EditProfileSchemaDTO to be compared - /// Boolean - public bool Equals(EditProfileSchemaDTO input) - { - if (input == null) - return false; - - return - ( - this.EditOptions == input.EditOptions || - (this.EditOptions != null && - this.EditOptions.Equals(input.EditOptions)) - ) && - ( - this.ProfileInfo == input.ProfileInfo || - (this.ProfileInfo != null && - this.ProfileInfo.Equals(input.ProfileInfo)) - ) && - ( - this.MaskId == input.MaskId || - (this.MaskId != null && - this.MaskId.Equals(input.MaskId)) - ) && - ( - this.MaskName == input.MaskName || - (this.MaskName != null && - this.MaskName.Equals(input.MaskName)) - ) && - ( - this.PredefinedProfileId == input.PredefinedProfileId || - (this.PredefinedProfileId != null && - this.PredefinedProfileId.Equals(input.PredefinedProfileId)) - ) && - ( - this.Options == input.Options || - (this.Options != null && - this.Options.Equals(input.Options)) - ) && - ( - this.Behaviour == input.Behaviour || - (this.Behaviour != null && - this.Behaviour.Equals(input.Behaviour)) - ) && - ( - this.MaskType == input.MaskType || - (this.MaskType != null && - this.MaskType.Equals(input.MaskType)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Document == input.Document || - (this.Document != null && - this.Document.Equals(input.Document)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ) && - ( - this.PostProfilationActions == input.PostProfilationActions || - this.PostProfilationActions != null && - this.PostProfilationActions.SequenceEqual(input.PostProfilationActions) - ) && - ( - this.ConstrainRoleBehaviour == input.ConstrainRoleBehaviour || - (this.ConstrainRoleBehaviour != null && - this.ConstrainRoleBehaviour.Equals(input.ConstrainRoleBehaviour)) - ) && - ( - this.Attachments == input.Attachments || - this.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.Notes == input.Notes || - this.Notes != null && - this.Notes.SequenceEqual(input.Notes) - ) && - ( - this.PaNotes == input.PaNotes || - this.PaNotes != null && - this.PaNotes.SequenceEqual(input.PaNotes) - ) && - ( - this.AuthorityData == input.AuthorityData || - (this.AuthorityData != null && - this.AuthorityData.Equals(input.AuthorityData)) - ) && - ( - this.GeneratePaProtocol == input.GeneratePaProtocol || - (this.GeneratePaProtocol != null && - this.GeneratePaProtocol.Equals(input.GeneratePaProtocol)) - ) && - ( - this.FileWritingSettings == input.FileWritingSettings || - (this.FileWritingSettings != null && - this.FileWritingSettings.Equals(input.FileWritingSettings)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.EditOptions != null) - hashCode = hashCode * 59 + this.EditOptions.GetHashCode(); - if (this.ProfileInfo != null) - hashCode = hashCode * 59 + this.ProfileInfo.GetHashCode(); - if (this.MaskId != null) - hashCode = hashCode * 59 + this.MaskId.GetHashCode(); - if (this.MaskName != null) - hashCode = hashCode * 59 + this.MaskName.GetHashCode(); - if (this.PredefinedProfileId != null) - hashCode = hashCode * 59 + this.PredefinedProfileId.GetHashCode(); - if (this.Options != null) - hashCode = hashCode * 59 + this.Options.GetHashCode(); - if (this.Behaviour != null) - hashCode = hashCode * 59 + this.Behaviour.GetHashCode(); - if (this.MaskType != null) - hashCode = hashCode * 59 + this.MaskType.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Document != null) - hashCode = hashCode * 59 + this.Document.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - if (this.PostProfilationActions != null) - hashCode = hashCode * 59 + this.PostProfilationActions.GetHashCode(); - if (this.ConstrainRoleBehaviour != null) - hashCode = hashCode * 59 + this.ConstrainRoleBehaviour.GetHashCode(); - if (this.Attachments != null) - hashCode = hashCode * 59 + this.Attachments.GetHashCode(); - if (this.Notes != null) - hashCode = hashCode * 59 + this.Notes.GetHashCode(); - if (this.PaNotes != null) - hashCode = hashCode * 59 + this.PaNotes.GetHashCode(); - if (this.AuthorityData != null) - hashCode = hashCode * 59 + this.AuthorityData.GetHashCode(); - if (this.GeneratePaProtocol != null) - hashCode = hashCode * 59 + this.GeneratePaProtocol.GetHashCode(); - if (this.FileWritingSettings != null) - hashCode = hashCode * 59 + this.FileWritingSettings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/EmailDestinationAddressDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/EmailDestinationAddressDTO.cs deleted file mode 100644 index 5885a09..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/EmailDestinationAddressDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// EmailDestinationAddressDTO - /// - [DataContract] - public partial class EmailDestinationAddressDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: To 1: Cc 2: Bcc . - /// Specifies if is an internal message. - /// ClassName. - /// Alias. - /// Email. - /// Arxivar user identifier. - public EmailDestinationAddressDTO(int? destinationKind = default(int?), bool? isInternal = default(bool?), string className = default(string), string alias = default(string), string email = default(string), int? userId = default(int?)) - { - this.DestinationKind = destinationKind; - this.IsInternal = isInternal; - this.ClassName = className; - this.Alias = alias; - this.Email = email; - this.UserId = userId; - } - - /// - /// Possible values: 0: To 1: Cc 2: Bcc - /// - /// Possible values: 0: To 1: Cc 2: Bcc - [DataMember(Name="destinationKind", EmitDefaultValue=false)] - public int? DestinationKind { get; set; } - - /// - /// Specifies if is an internal message - /// - /// Specifies if is an internal message - [DataMember(Name="isInternal", EmitDefaultValue=false)] - public bool? IsInternal { get; set; } - - /// - /// ClassName - /// - /// ClassName - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Alias - /// - /// Alias - [DataMember(Name="alias", EmitDefaultValue=false)] - public string Alias { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Arxivar user identifier - /// - /// Arxivar user identifier - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EmailDestinationAddressDTO {\n"); - sb.Append(" DestinationKind: ").Append(DestinationKind).Append("\n"); - sb.Append(" IsInternal: ").Append(IsInternal).Append("\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Alias: ").Append(Alias).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EmailDestinationAddressDTO); - } - - /// - /// Returns true if EmailDestinationAddressDTO instances are equal - /// - /// Instance of EmailDestinationAddressDTO to be compared - /// Boolean - public bool Equals(EmailDestinationAddressDTO input) - { - if (input == null) - return false; - - return - ( - this.DestinationKind == input.DestinationKind || - (this.DestinationKind != null && - this.DestinationKind.Equals(input.DestinationKind)) - ) && - ( - this.IsInternal == input.IsInternal || - (this.IsInternal != null && - this.IsInternal.Equals(input.IsInternal)) - ) && - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Alias == input.Alias || - (this.Alias != null && - this.Alias.Equals(input.Alias)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DestinationKind != null) - hashCode = hashCode * 59 + this.DestinationKind.GetHashCode(); - if (this.IsInternal != null) - hashCode = hashCode * 59 + this.IsInternal.GetHashCode(); - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Alias != null) - hashCode = hashCode * 59 + this.Alias.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/EmailDocumentDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/EmailDocumentDTO.cs deleted file mode 100644 index a63cceb..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/EmailDocumentDTO.cs +++ /dev/null @@ -1,153 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// EmailDocumentDTO - /// - [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] - [JsonSubtypes.KnownSubType(typeof(NewAttachDocumentoDTO), "NewAttachDocumentoDTO")] - [JsonSubtypes.KnownSubType(typeof(SavedAttachDocumentoDTO), "SavedAttachDocumentoDTO")] - [JsonSubtypes.KnownSubType(typeof(NewAttachArxDocumentoDTO), "NewAttachArxDocumentoDTO")] - public partial class EmailDocumentDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected EmailDocumentDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Class Name (required). - public EmailDocumentDTO(string className = default(string)) - { - // to ensure "className" is required (not null) - if (className == null) - { - throw new InvalidDataException("className is a required property for EmailDocumentDTO and cannot be null"); - } - else - { - this.ClassName = className; - } - } - - /// - /// Class Name - /// - /// Class Name - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EmailDocumentDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EmailDocumentDTO); - } - - /// - /// Returns true if EmailDocumentDTO instances are equal - /// - /// Instance of EmailDocumentDTO to be compared - /// Boolean - public bool Equals(EmailDocumentDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/EmailFromAddressDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/EmailFromAddressDTO.cs deleted file mode 100644 index 204eb33..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/EmailFromAddressDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// EmailFromAddressDTO - /// - [DataContract] - public partial class EmailFromAddressDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// ClassName. - /// Alias. - /// Email. - /// Arxivar user identifier. - public EmailFromAddressDTO(string className = default(string), string alias = default(string), string email = default(string), int? userId = default(int?)) - { - this.ClassName = className; - this.Alias = alias; - this.Email = email; - this.UserId = userId; - } - - /// - /// ClassName - /// - /// ClassName - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Alias - /// - /// Alias - [DataMember(Name="alias", EmitDefaultValue=false)] - public string Alias { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Arxivar user identifier - /// - /// Arxivar user identifier - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EmailFromAddressDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Alias: ").Append(Alias).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EmailFromAddressDTO); - } - - /// - /// Returns true if EmailFromAddressDTO instances are equal - /// - /// Instance of EmailFromAddressDTO to be compared - /// Boolean - public bool Equals(EmailFromAddressDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Alias == input.Alias || - (this.Alias != null && - this.Alias.Equals(input.Alias)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Alias != null) - hashCode = hashCode * 59 + this.Alias.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/EnvelopeInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/EnvelopeInfoDTO.cs deleted file mode 100644 index dbff4c6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/EnvelopeInfoDTO.cs +++ /dev/null @@ -1,220 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// EnvelopeInfoDTO - /// - [DataContract] - public partial class EnvelopeInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// signatureInfoList. - /// timestampInfoList. - /// nestedDepth. - /// envelopeSha256Hash. - /// contentSha256Hash. - /// mimeType. - /// validationMessageList. - public EnvelopeInfoDTO(List signatureInfoList = default(List), List timestampInfoList = default(List), int? nestedDepth = default(int?), string envelopeSha256Hash = default(string), string contentSha256Hash = default(string), string mimeType = default(string), List validationMessageList = default(List)) - { - this.SignatureInfoList = signatureInfoList; - this.TimestampInfoList = timestampInfoList; - this.NestedDepth = nestedDepth; - this.EnvelopeSha256Hash = envelopeSha256Hash; - this.ContentSha256Hash = contentSha256Hash; - this.MimeType = mimeType; - this.ValidationMessageList = validationMessageList; - } - - /// - /// Gets or Sets SignatureInfoList - /// - [DataMember(Name="signatureInfoList", EmitDefaultValue=false)] - public List SignatureInfoList { get; set; } - - /// - /// Gets or Sets TimestampInfoList - /// - [DataMember(Name="timestampInfoList", EmitDefaultValue=false)] - public List TimestampInfoList { get; set; } - - /// - /// Gets or Sets NestedDepth - /// - [DataMember(Name="nestedDepth", EmitDefaultValue=false)] - public int? NestedDepth { get; set; } - - /// - /// Gets or Sets EnvelopeSha256Hash - /// - [DataMember(Name="envelopeSha256Hash", EmitDefaultValue=false)] - public string EnvelopeSha256Hash { get; set; } - - /// - /// Gets or Sets ContentSha256Hash - /// - [DataMember(Name="contentSha256Hash", EmitDefaultValue=false)] - public string ContentSha256Hash { get; set; } - - /// - /// Gets or Sets MimeType - /// - [DataMember(Name="mimeType", EmitDefaultValue=false)] - public string MimeType { get; set; } - - /// - /// Gets or Sets ValidationMessageList - /// - [DataMember(Name="validationMessageList", EmitDefaultValue=false)] - public List ValidationMessageList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EnvelopeInfoDTO {\n"); - sb.Append(" SignatureInfoList: ").Append(SignatureInfoList).Append("\n"); - sb.Append(" TimestampInfoList: ").Append(TimestampInfoList).Append("\n"); - sb.Append(" NestedDepth: ").Append(NestedDepth).Append("\n"); - sb.Append(" EnvelopeSha256Hash: ").Append(EnvelopeSha256Hash).Append("\n"); - sb.Append(" ContentSha256Hash: ").Append(ContentSha256Hash).Append("\n"); - sb.Append(" MimeType: ").Append(MimeType).Append("\n"); - sb.Append(" ValidationMessageList: ").Append(ValidationMessageList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EnvelopeInfoDTO); - } - - /// - /// Returns true if EnvelopeInfoDTO instances are equal - /// - /// Instance of EnvelopeInfoDTO to be compared - /// Boolean - public bool Equals(EnvelopeInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.SignatureInfoList == input.SignatureInfoList || - this.SignatureInfoList != null && - this.SignatureInfoList.SequenceEqual(input.SignatureInfoList) - ) && - ( - this.TimestampInfoList == input.TimestampInfoList || - this.TimestampInfoList != null && - this.TimestampInfoList.SequenceEqual(input.TimestampInfoList) - ) && - ( - this.NestedDepth == input.NestedDepth || - (this.NestedDepth != null && - this.NestedDepth.Equals(input.NestedDepth)) - ) && - ( - this.EnvelopeSha256Hash == input.EnvelopeSha256Hash || - (this.EnvelopeSha256Hash != null && - this.EnvelopeSha256Hash.Equals(input.EnvelopeSha256Hash)) - ) && - ( - this.ContentSha256Hash == input.ContentSha256Hash || - (this.ContentSha256Hash != null && - this.ContentSha256Hash.Equals(input.ContentSha256Hash)) - ) && - ( - this.MimeType == input.MimeType || - (this.MimeType != null && - this.MimeType.Equals(input.MimeType)) - ) && - ( - this.ValidationMessageList == input.ValidationMessageList || - this.ValidationMessageList != null && - this.ValidationMessageList.SequenceEqual(input.ValidationMessageList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SignatureInfoList != null) - hashCode = hashCode * 59 + this.SignatureInfoList.GetHashCode(); - if (this.TimestampInfoList != null) - hashCode = hashCode * 59 + this.TimestampInfoList.GetHashCode(); - if (this.NestedDepth != null) - hashCode = hashCode * 59 + this.NestedDepth.GetHashCode(); - if (this.EnvelopeSha256Hash != null) - hashCode = hashCode * 59 + this.EnvelopeSha256Hash.GetHashCode(); - if (this.ContentSha256Hash != null) - hashCode = hashCode * 59 + this.ContentSha256Hash.GetHashCode(); - if (this.MimeType != null) - hashCode = hashCode * 59 + this.MimeType.GetHashCode(); - if (this.ValidationMessageList != null) - hashCode = hashCode * 59 + this.ValidationMessageList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ExportMassiveForProcessDocItemRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ExportMassiveForProcessDocItemRequestDTO.cs deleted file mode 100644 index 3716ff0..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ExportMassiveForProcessDocItemRequestDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ExportMassiveForProcessDocItemRequestDTO - /// - [DataContract] - public partial class ExportMassiveForProcessDocItemRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// processDocId. - /// taskId. - public ExportMassiveForProcessDocItemRequestDTO(int? processDocId = default(int?), int? taskId = default(int?)) - { - this.ProcessDocId = processDocId; - this.TaskId = taskId; - } - - /// - /// Gets or Sets ProcessDocId - /// - [DataMember(Name="processDocId", EmitDefaultValue=false)] - public int? ProcessDocId { get; set; } - - /// - /// Gets or Sets TaskId - /// - [DataMember(Name="taskId", EmitDefaultValue=false)] - public int? TaskId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExportMassiveForProcessDocItemRequestDTO {\n"); - sb.Append(" ProcessDocId: ").Append(ProcessDocId).Append("\n"); - sb.Append(" TaskId: ").Append(TaskId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExportMassiveForProcessDocItemRequestDTO); - } - - /// - /// Returns true if ExportMassiveForProcessDocItemRequestDTO instances are equal - /// - /// Instance of ExportMassiveForProcessDocItemRequestDTO to be compared - /// Boolean - public bool Equals(ExportMassiveForProcessDocItemRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.ProcessDocId == input.ProcessDocId || - (this.ProcessDocId != null && - this.ProcessDocId.Equals(input.ProcessDocId)) - ) && - ( - this.TaskId == input.TaskId || - (this.TaskId != null && - this.TaskId.Equals(input.TaskId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ProcessDocId != null) - hashCode = hashCode * 59 + this.ProcessDocId.GetHashCode(); - if (this.TaskId != null) - hashCode = hashCode * 59 + this.TaskId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ExportMassiveForProcessDocRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ExportMassiveForProcessDocRequestDTO.cs deleted file mode 100644 index 3e6ec9c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ExportMassiveForProcessDocRequestDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ExportMassiveForProcessDocRequestDTO - /// - [DataContract] - public partial class ExportMassiveForProcessDocRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// items. - /// forView. - public ExportMassiveForProcessDocRequestDTO(List items = default(List), bool? forView = default(bool?)) - { - this.Items = items; - this.ForView = forView; - } - - /// - /// Gets or Sets Items - /// - [DataMember(Name="items", EmitDefaultValue=false)] - public List Items { get; set; } - - /// - /// Gets or Sets ForView - /// - [DataMember(Name="forView", EmitDefaultValue=false)] - public bool? ForView { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExportMassiveForProcessDocRequestDTO {\n"); - sb.Append(" Items: ").Append(Items).Append("\n"); - sb.Append(" ForView: ").Append(ForView).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExportMassiveForProcessDocRequestDTO); - } - - /// - /// Returns true if ExportMassiveForProcessDocRequestDTO instances are equal - /// - /// Instance of ExportMassiveForProcessDocRequestDTO to be compared - /// Boolean - public bool Equals(ExportMassiveForProcessDocRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Items == input.Items || - this.Items != null && - this.Items.SequenceEqual(input.Items) - ) && - ( - this.ForView == input.ForView || - (this.ForView != null && - this.ForView.Equals(input.ForView)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Items != null) - hashCode = hashCode * 59 + this.Items.GetHashCode(); - if (this.ForView != null) - hashCode = hashCode * 59 + this.ForView.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ExportMassiveForProfileRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ExportMassiveForProfileRequestDTO.cs deleted file mode 100644 index bf71c84..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ExportMassiveForProfileRequestDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ExportMassiveForProfileRequestDTO - /// - [DataContract] - public partial class ExportMassiveForProfileRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// profiles. - /// forView. - public ExportMassiveForProfileRequestDTO(List profiles = default(List), bool? forView = default(bool?)) - { - this.Profiles = profiles; - this.ForView = forView; - } - - /// - /// Gets or Sets Profiles - /// - [DataMember(Name="profiles", EmitDefaultValue=false)] - public List Profiles { get; set; } - - /// - /// Gets or Sets ForView - /// - [DataMember(Name="forView", EmitDefaultValue=false)] - public bool? ForView { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExportMassiveForProfileRequestDTO {\n"); - sb.Append(" Profiles: ").Append(Profiles).Append("\n"); - sb.Append(" ForView: ").Append(ForView).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExportMassiveForProfileRequestDTO); - } - - /// - /// Returns true if ExportMassiveForProfileRequestDTO instances are equal - /// - /// Instance of ExportMassiveForProfileRequestDTO to be compared - /// Boolean - public bool Equals(ExportMassiveForProfileRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Profiles == input.Profiles || - this.Profiles != null && - this.Profiles.SequenceEqual(input.Profiles) - ) && - ( - this.ForView == input.ForView || - (this.ForView != null && - this.ForView.Equals(input.ForView)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Profiles != null) - hashCode = hashCode * 59 + this.Profiles.GetHashCode(); - if (this.ForView != null) - hashCode = hashCode * 59 + this.ForView.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ExportMassiveForProfileResponseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ExportMassiveForProfileResponseDTO.cs deleted file mode 100644 index f5a88f7..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ExportMassiveForProfileResponseDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ExportMassiveForProfileResponseDTO - /// - [DataContract] - public partial class ExportMassiveForProfileResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of export in progress. - public ExportMassiveForProfileResponseDTO(string exportRequestId = default(string)) - { - this.ExportRequestId = exportRequestId; - } - - /// - /// Identifier of export in progress - /// - /// Identifier of export in progress - [DataMember(Name="exportRequestId", EmitDefaultValue=false)] - public string ExportRequestId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExportMassiveForProfileResponseDTO {\n"); - sb.Append(" ExportRequestId: ").Append(ExportRequestId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExportMassiveForProfileResponseDTO); - } - - /// - /// Returns true if ExportMassiveForProfileResponseDTO instances are equal - /// - /// Instance of ExportMassiveForProfileResponseDTO to be compared - /// Boolean - public bool Equals(ExportMassiveForProfileResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.ExportRequestId == input.ExportRequestId || - (this.ExportRequestId != null && - this.ExportRequestId.Equals(input.ExportRequestId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ExportRequestId != null) - hashCode = hashCode * 59 + this.ExportRequestId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ExternalAppAuthParamsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ExternalAppAuthParamsDTO.cs deleted file mode 100644 index 9e57489..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ExternalAppAuthParamsDTO.cs +++ /dev/null @@ -1,172 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Authorize params for external app - /// - [DataContract] - public partial class ExternalAppAuthParamsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// clientId. - /// authorizeUrl. - /// tokenUrl. - /// scopeList. - public ExternalAppAuthParamsDTO(string clientId = default(string), string authorizeUrl = default(string), string tokenUrl = default(string), List scopeList = default(List)) - { - this.ClientId = clientId; - this.AuthorizeUrl = authorizeUrl; - this.TokenUrl = tokenUrl; - this.ScopeList = scopeList; - } - - /// - /// Gets or Sets ClientId - /// - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// Gets or Sets AuthorizeUrl - /// - [DataMember(Name="authorizeUrl", EmitDefaultValue=false)] - public string AuthorizeUrl { get; set; } - - /// - /// Gets or Sets TokenUrl - /// - [DataMember(Name="tokenUrl", EmitDefaultValue=false)] - public string TokenUrl { get; set; } - - /// - /// Gets or Sets ScopeList - /// - [DataMember(Name="scopeList", EmitDefaultValue=false)] - public List ScopeList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExternalAppAuthParamsDTO {\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" AuthorizeUrl: ").Append(AuthorizeUrl).Append("\n"); - sb.Append(" TokenUrl: ").Append(TokenUrl).Append("\n"); - sb.Append(" ScopeList: ").Append(ScopeList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExternalAppAuthParamsDTO); - } - - /// - /// Returns true if ExternalAppAuthParamsDTO instances are equal - /// - /// Instance of ExternalAppAuthParamsDTO to be compared - /// Boolean - public bool Equals(ExternalAppAuthParamsDTO input) - { - if (input == null) - return false; - - return - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.AuthorizeUrl == input.AuthorizeUrl || - (this.AuthorizeUrl != null && - this.AuthorizeUrl.Equals(input.AuthorizeUrl)) - ) && - ( - this.TokenUrl == input.TokenUrl || - (this.TokenUrl != null && - this.TokenUrl.Equals(input.TokenUrl)) - ) && - ( - this.ScopeList == input.ScopeList || - this.ScopeList != null && - this.ScopeList.SequenceEqual(input.ScopeList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.AuthorizeUrl != null) - hashCode = hashCode * 59 + this.AuthorizeUrl.GetHashCode(); - if (this.TokenUrl != null) - hashCode = hashCode * 59 + this.TokenUrl.GetHashCode(); - if (this.ScopeList != null) - hashCode = hashCode * 59 + this.ScopeList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ExternalAppProfilationModeDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ExternalAppProfilationModeDTO.cs deleted file mode 100644 index c80b5e5..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ExternalAppProfilationModeDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for external application profilation mode - /// - [DataContract] - public partial class ExternalAppProfilationModeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Profilation Identifier. - /// Profilation name. - /// Profilation description. - /// Possible values: 0: Standard 1: Mask . - /// Profilation reference. - public ExternalAppProfilationModeDTO(int? id = default(int?), string name = default(string), string description = default(string), int? mode = default(int?), string reference = default(string)) - { - this.Id = id; - this.Name = name; - this.Description = description; - this.Mode = mode; - this.Reference = reference; - } - - /// - /// Profilation Identifier - /// - /// Profilation Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Profilation name - /// - /// Profilation name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Profilation description - /// - /// Profilation description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 0: Standard 1: Mask - /// - /// Possible values: 0: Standard 1: Mask - [DataMember(Name="mode", EmitDefaultValue=false)] - public int? Mode { get; set; } - - /// - /// Profilation reference - /// - /// Profilation reference - [DataMember(Name="reference", EmitDefaultValue=false)] - public string Reference { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExternalAppProfilationModeDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Mode: ").Append(Mode).Append("\n"); - sb.Append(" Reference: ").Append(Reference).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExternalAppProfilationModeDTO); - } - - /// - /// Returns true if ExternalAppProfilationModeDTO instances are equal - /// - /// Instance of ExternalAppProfilationModeDTO to be compared - /// Boolean - public bool Equals(ExternalAppProfilationModeDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Mode == input.Mode || - (this.Mode != null && - this.Mode.Equals(input.Mode)) - ) && - ( - this.Reference == input.Reference || - (this.Reference != null && - this.Reference.Equals(input.Reference)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Mode != null) - hashCode = hashCode * 59 + this.Mode.GetHashCode(); - if (this.Reference != null) - hashCode = hashCode * 59 + this.Reference.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ExternalAuthRedirectUrlRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ExternalAuthRedirectUrlRequestDTO.cs deleted file mode 100644 index acc3dc5..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ExternalAuthRedirectUrlRequestDTO.cs +++ /dev/null @@ -1,180 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Defines the information needed to build the authorization redirect url to the external provider (Google, Microsoft, ...) - /// - [DataContract] - public partial class ExternalAuthRedirectUrlRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ExternalAuthRedirectUrlRequestDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// The {Abletech.Arxivar.Server.Dtos.Mail.MailServerSettingsDTO} information (required). - /// Possible values: 0: Send 1: Receive . - /// The portal base url (required). - public ExternalAuthRedirectUrlRequestDTO(MailServerSettingsDTO mailSettings = default(MailServerSettingsDTO), int? flowType = default(int?), string portalBaseUrl = default(string)) - { - // to ensure "mailSettings" is required (not null) - if (mailSettings == null) - { - throw new InvalidDataException("mailSettings is a required property for ExternalAuthRedirectUrlRequestDTO and cannot be null"); - } - else - { - this.MailSettings = mailSettings; - } - // to ensure "portalBaseUrl" is required (not null) - if (portalBaseUrl == null) - { - throw new InvalidDataException("portalBaseUrl is a required property for ExternalAuthRedirectUrlRequestDTO and cannot be null"); - } - else - { - this.PortalBaseUrl = portalBaseUrl; - } - this.FlowType = flowType; - } - - /// - /// The {Abletech.Arxivar.Server.Dtos.Mail.MailServerSettingsDTO} information - /// - /// The {Abletech.Arxivar.Server.Dtos.Mail.MailServerSettingsDTO} information - [DataMember(Name="mailSettings", EmitDefaultValue=false)] - public MailServerSettingsDTO MailSettings { get; set; } - - /// - /// Possible values: 0: Send 1: Receive - /// - /// Possible values: 0: Send 1: Receive - [DataMember(Name="flowType", EmitDefaultValue=false)] - public int? FlowType { get; set; } - - /// - /// The portal base url - /// - /// The portal base url - [DataMember(Name="portalBaseUrl", EmitDefaultValue=false)] - public string PortalBaseUrl { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExternalAuthRedirectUrlRequestDTO {\n"); - sb.Append(" MailSettings: ").Append(MailSettings).Append("\n"); - sb.Append(" FlowType: ").Append(FlowType).Append("\n"); - sb.Append(" PortalBaseUrl: ").Append(PortalBaseUrl).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExternalAuthRedirectUrlRequestDTO); - } - - /// - /// Returns true if ExternalAuthRedirectUrlRequestDTO instances are equal - /// - /// Instance of ExternalAuthRedirectUrlRequestDTO to be compared - /// Boolean - public bool Equals(ExternalAuthRedirectUrlRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.MailSettings == input.MailSettings || - (this.MailSettings != null && - this.MailSettings.Equals(input.MailSettings)) - ) && - ( - this.FlowType == input.FlowType || - (this.FlowType != null && - this.FlowType.Equals(input.FlowType)) - ) && - ( - this.PortalBaseUrl == input.PortalBaseUrl || - (this.PortalBaseUrl != null && - this.PortalBaseUrl.Equals(input.PortalBaseUrl)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.MailSettings != null) - hashCode = hashCode * 59 + this.MailSettings.GetHashCode(); - if (this.FlowType != null) - hashCode = hashCode * 59 + this.FlowType.GetHashCode(); - if (this.PortalBaseUrl != null) - hashCode = hashCode * 59 + this.PortalBaseUrl.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ExternalAuthRedirectUrlResponseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ExternalAuthRedirectUrlResponseDTO.cs deleted file mode 100644 index 52bb13e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ExternalAuthRedirectUrlResponseDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Defines the DTO which contains the full authorization redirect url to the external provider (Google, Microsoft, ...) - /// - [DataContract] - public partial class ExternalAuthRedirectUrlResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// The redirect url. - public ExternalAuthRedirectUrlResponseDTO(string redirectUrl = default(string)) - { - this.RedirectUrl = redirectUrl; - } - - /// - /// The redirect url - /// - /// The redirect url - [DataMember(Name="redirectUrl", EmitDefaultValue=false)] - public string RedirectUrl { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExternalAuthRedirectUrlResponseDTO {\n"); - sb.Append(" RedirectUrl: ").Append(RedirectUrl).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExternalAuthRedirectUrlResponseDTO); - } - - /// - /// Returns true if ExternalAuthRedirectUrlResponseDTO instances are equal - /// - /// Instance of ExternalAuthRedirectUrlResponseDTO to be compared - /// Boolean - public bool Equals(ExternalAuthRedirectUrlResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.RedirectUrl == input.RedirectUrl || - (this.RedirectUrl != null && - this.RedirectUrl.Equals(input.RedirectUrl)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.RedirectUrl != null) - hashCode = hashCode * 59 + this.RedirectUrl.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseDTO.cs deleted file mode 100644 index acef144..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseDTO.cs +++ /dev/null @@ -1,510 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of field item - /// - [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldDateTimeDTO), "AdditionalFieldDateTimeDTO")] - [JsonSubtypes.KnownSubType(typeof(InstructionFieldDTO), "InstructionFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(DocumentDateExpiredFieldDTO), "DocumentDateExpiredFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(ToFieldDTO), "ToFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldStringDTO), "AdditionalFieldStringDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldDoubleDTO), "AdditionalFieldDoubleDTO")] - [JsonSubtypes.KnownSubType(typeof(FolderFieldDTO), "FolderFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(NumberFieldDTO), "NumberFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(NoteFieldDTO), "NoteFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(ProtocolDateFieldDTO), "ProtocolDateFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(BinderFieldDTO), "BinderFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(CcFieldDTO), "CcFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(StringFieldDTO), "StringFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldConfigurationComboDTO), "AdditionalFieldConfigurationComboDTO")] - [JsonSubtypes.KnownSubType(typeof(FromFieldDTO), "FromFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldMultivalueDTO), "AdditionalFieldMultivalueDTO")] - [JsonSubtypes.KnownSubType(typeof(AssociationFieldDTO), "AssociationFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldIntDTO), "AdditionalFieldIntDTO")] - [JsonSubtypes.KnownSubType(typeof(BarcodeFieldDTO), "BarcodeFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(OriginalFieldDTO), "OriginalFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldGroupDTO), "AdditionalFieldGroupDTO")] - [JsonSubtypes.KnownSubType(typeof(OriginFieldDTO), "OriginFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldTableDTO), "AdditionalFieldTableDTO")] - [JsonSubtypes.KnownSubType(typeof(StateFieldDTO), "StateFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldBooleanDTO), "AdditionalFieldBooleanDTO")] - [JsonSubtypes.KnownSubType(typeof(AuthorityDataFieldDTO), "AuthorityDataFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AttachmentFieldDTO), "AttachmentFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(DocumentDateFieldDTO), "DocumentDateFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldDTO), "AdditionalFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(SendersFieldDTO), "SendersFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(BusinessUnitFieldDTO), "BusinessUnitFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldClasseDTO), "AdditionalFieldClasseDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldComboDTO), "AdditionalFieldComboDTO")] - [JsonSubtypes.KnownSubType(typeof(ImportantFieldDTO), "ImportantFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(BinderPreviewFieldDTO), "BinderPreviewFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(SubjectFieldDTO), "SubjectFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(DocumentTypeFieldDTO), "DocumentTypeFieldDTO")] - public partial class FieldBaseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Name. - /// External identifier. - /// Label. - /// Order. - /// DataSource identifier. - /// Required. - /// Formula. - /// Name of class (required). - /// Locked in read-only. - /// Data Group Identifier. - /// List of dependent fields. - /// Associated fields. - /// Field type additional. - /// Visible. - /// Formula in the context of predefined profile. - /// The visibility condition formula for this mask field. - /// The mandatory condition formula for this mask field. - /// The preferred address book for search contacts for this field. - /// Possible addressbook for selection for this field. - /// Number of display columns for the field. - public FieldBaseDTO(string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = default(string), bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) - { - // to ensure "className" is required (not null) - if (className == null) - { - throw new InvalidDataException("className is a required property for FieldBaseDTO and cannot be null"); - } - else - { - this.ClassName = className; - } - this.Name = name; - this.ExternalId = externalId; - this.Description = description; - this.Order = order; - this.DataSource = dataSource; - this.Required = required; - this.Formula = formula; - this.Locked = locked; - this.ComboGruppiId = comboGruppiId; - this.DependencyFields = dependencyFields; - this.Associations = associations; - this.IsAdditional = isAdditional; - this.Visible = visible; - this.PredefinedProfileFormula = predefinedProfileFormula; - this.VisibilityCondition = visibilityCondition; - this.MandatoryCondition = mandatoryCondition; - this.AddressBookDefaultFilter = addressBookDefaultFilter; - this.EnabledAddressBook = enabledAddressBook; - this.Columns = columns; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// External identifier - /// - /// External identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Order - /// - /// Order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// DataSource identifier - /// - /// DataSource identifier - [DataMember(Name="dataSource", EmitDefaultValue=false)] - public string DataSource { get; set; } - - /// - /// Required - /// - /// Required - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Formula - /// - /// Formula - [DataMember(Name="formula", EmitDefaultValue=false)] - public string Formula { get; set; } - - /// - /// Name of class - /// - /// Name of class - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Locked in read-only - /// - /// Locked in read-only - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Data Group Identifier - /// - /// Data Group Identifier - [DataMember(Name="comboGruppiId", EmitDefaultValue=false)] - public string ComboGruppiId { get; set; } - - /// - /// List of dependent fields - /// - /// List of dependent fields - [DataMember(Name="dependencyFields", EmitDefaultValue=false)] - public List DependencyFields { get; set; } - - /// - /// Associated fields - /// - /// Associated fields - [DataMember(Name="associations", EmitDefaultValue=false)] - public List Associations { get; set; } - - /// - /// Field type additional - /// - /// Field type additional - [DataMember(Name="isAdditional", EmitDefaultValue=false)] - public bool? IsAdditional { get; set; } - - /// - /// Visible - /// - /// Visible - [DataMember(Name="visible", EmitDefaultValue=false)] - public bool? Visible { get; set; } - - /// - /// Formula in the context of predefined profile - /// - /// Formula in the context of predefined profile - [DataMember(Name="predefinedProfileFormula", EmitDefaultValue=false)] - public string PredefinedProfileFormula { get; set; } - - /// - /// The visibility condition formula for this mask field - /// - /// The visibility condition formula for this mask field - [DataMember(Name="visibilityCondition", EmitDefaultValue=false)] - public string VisibilityCondition { get; set; } - - /// - /// The mandatory condition formula for this mask field - /// - /// The mandatory condition formula for this mask field - [DataMember(Name="mandatoryCondition", EmitDefaultValue=false)] - public string MandatoryCondition { get; set; } - - /// - /// The preferred address book for search contacts for this field - /// - /// The preferred address book for search contacts for this field - [DataMember(Name="addressBookDefaultFilter", EmitDefaultValue=false)] - public int? AddressBookDefaultFilter { get; set; } - - /// - /// Possible addressbook for selection for this field - /// - /// Possible addressbook for selection for this field - [DataMember(Name="enabledAddressBook", EmitDefaultValue=false)] - public List EnabledAddressBook { get; set; } - - /// - /// Number of display columns for the field - /// - /// Number of display columns for the field - [DataMember(Name="columns", EmitDefaultValue=false)] - public int? Columns { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" DataSource: ").Append(DataSource).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" Formula: ").Append(Formula).Append("\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" ComboGruppiId: ").Append(ComboGruppiId).Append("\n"); - sb.Append(" DependencyFields: ").Append(DependencyFields).Append("\n"); - sb.Append(" Associations: ").Append(Associations).Append("\n"); - sb.Append(" IsAdditional: ").Append(IsAdditional).Append("\n"); - sb.Append(" Visible: ").Append(Visible).Append("\n"); - sb.Append(" PredefinedProfileFormula: ").Append(PredefinedProfileFormula).Append("\n"); - sb.Append(" VisibilityCondition: ").Append(VisibilityCondition).Append("\n"); - sb.Append(" MandatoryCondition: ").Append(MandatoryCondition).Append("\n"); - sb.Append(" AddressBookDefaultFilter: ").Append(AddressBookDefaultFilter).Append("\n"); - sb.Append(" EnabledAddressBook: ").Append(EnabledAddressBook).Append("\n"); - sb.Append(" Columns: ").Append(Columns).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseDTO); - } - - /// - /// Returns true if FieldBaseDTO instances are equal - /// - /// Instance of FieldBaseDTO to be compared - /// Boolean - public bool Equals(FieldBaseDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.DataSource == input.DataSource || - (this.DataSource != null && - this.DataSource.Equals(input.DataSource)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.Formula == input.Formula || - (this.Formula != null && - this.Formula.Equals(input.Formula)) - ) && - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && - ( - this.ComboGruppiId == input.ComboGruppiId || - (this.ComboGruppiId != null && - this.ComboGruppiId.Equals(input.ComboGruppiId)) - ) && - ( - this.DependencyFields == input.DependencyFields || - this.DependencyFields != null && - this.DependencyFields.SequenceEqual(input.DependencyFields) - ) && - ( - this.Associations == input.Associations || - this.Associations != null && - this.Associations.SequenceEqual(input.Associations) - ) && - ( - this.IsAdditional == input.IsAdditional || - (this.IsAdditional != null && - this.IsAdditional.Equals(input.IsAdditional)) - ) && - ( - this.Visible == input.Visible || - (this.Visible != null && - this.Visible.Equals(input.Visible)) - ) && - ( - this.PredefinedProfileFormula == input.PredefinedProfileFormula || - (this.PredefinedProfileFormula != null && - this.PredefinedProfileFormula.Equals(input.PredefinedProfileFormula)) - ) && - ( - this.VisibilityCondition == input.VisibilityCondition || - (this.VisibilityCondition != null && - this.VisibilityCondition.Equals(input.VisibilityCondition)) - ) && - ( - this.MandatoryCondition == input.MandatoryCondition || - (this.MandatoryCondition != null && - this.MandatoryCondition.Equals(input.MandatoryCondition)) - ) && - ( - this.AddressBookDefaultFilter == input.AddressBookDefaultFilter || - (this.AddressBookDefaultFilter != null && - this.AddressBookDefaultFilter.Equals(input.AddressBookDefaultFilter)) - ) && - ( - this.EnabledAddressBook == input.EnabledAddressBook || - this.EnabledAddressBook != null && - this.EnabledAddressBook.SequenceEqual(input.EnabledAddressBook) - ) && - ( - this.Columns == input.Columns || - (this.Columns != null && - this.Columns.Equals(input.Columns)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - if (this.DataSource != null) - hashCode = hashCode * 59 + this.DataSource.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.Formula != null) - hashCode = hashCode * 59 + this.Formula.GetHashCode(); - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.ComboGruppiId != null) - hashCode = hashCode * 59 + this.ComboGruppiId.GetHashCode(); - if (this.DependencyFields != null) - hashCode = hashCode * 59 + this.DependencyFields.GetHashCode(); - if (this.Associations != null) - hashCode = hashCode * 59 + this.Associations.GetHashCode(); - if (this.IsAdditional != null) - hashCode = hashCode * 59 + this.IsAdditional.GetHashCode(); - if (this.Visible != null) - hashCode = hashCode * 59 + this.Visible.GetHashCode(); - if (this.PredefinedProfileFormula != null) - hashCode = hashCode * 59 + this.PredefinedProfileFormula.GetHashCode(); - if (this.VisibilityCondition != null) - hashCode = hashCode * 59 + this.VisibilityCondition.GetHashCode(); - if (this.MandatoryCondition != null) - hashCode = hashCode * 59 + this.MandatoryCondition.GetHashCode(); - if (this.AddressBookDefaultFilter != null) - hashCode = hashCode * 59 + this.AddressBookDefaultFilter.GetHashCode(); - if (this.EnabledAddressBook != null) - hashCode = hashCode * 59 + this.EnabledAddressBook.GetHashCode(); - if (this.Columns != null) - hashCode = hashCode * 59 + this.Columns.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchAooDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchAooDto.cs deleted file mode 100644 index 01befeb..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchAooDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Search class for AOO values - /// - [DataContract] - public partial class FieldBaseForSearchAooDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchAooDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchAooDto(int? _operator = default(int?), AooSearchFilterDto valore1 = default(AooSearchFilterDto), AooSearchFilterDto valore2 = default(AooSearchFilterDto), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchAooDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public AooSearchFilterDto Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public AooSearchFilterDto Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchAooDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchAooDto); - } - - /// - /// Returns true if FieldBaseForSearchAooDto instances are equal - /// - /// Instance of FieldBaseForSearchAooDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchAooDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchBoolDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchBoolDto.cs deleted file mode 100644 index fc48a8b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchBoolDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of search by boolean - /// - [DataContract] - public partial class FieldBaseForSearchBoolDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchBoolDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchBoolDto(int? _operator = default(int?), bool? valore1 = default(bool?), bool? valore2 = default(bool?), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchBoolDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public bool? Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public bool? Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchBoolDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchBoolDto); - } - - /// - /// Returns true if FieldBaseForSearchBoolDto instances are equal - /// - /// Instance of FieldBaseForSearchBoolDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchBoolDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchConservazioneDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchConservazioneDto.cs deleted file mode 100644 index c221903..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchConservazioneDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of search by conservation information - /// - [DataContract] - public partial class FieldBaseForSearchConservazioneDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchConservazioneDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchConservazioneDto(int? _operator = default(int?), ReplacementStorageSearchFilterDto valore1 = default(ReplacementStorageSearchFilterDto), ReplacementStorageSearchFilterDto valore2 = default(ReplacementStorageSearchFilterDto), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchConservazioneDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public ReplacementStorageSearchFilterDto Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public ReplacementStorageSearchFilterDto Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchConservazioneDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchConservazioneDto); - } - - /// - /// Returns true if FieldBaseForSearchConservazioneDto instances are equal - /// - /// Instance of FieldBaseForSearchConservazioneDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchConservazioneDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchContactDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchContactDto.cs deleted file mode 100644 index 5ebbd35..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchContactDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of search by contacts information - /// - [DataContract] - public partial class FieldBaseForSearchContactDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchContactDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchContactDto(int? _operator = default(int?), ContactSearchFilterDto valore1 = default(ContactSearchFilterDto), ContactSearchFilterDto valore2 = default(ContactSearchFilterDto), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchContactDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public ContactSearchFilterDto Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public ContactSearchFilterDto Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchContactDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchContactDto); - } - - /// - /// Returns true if FieldBaseForSearchContactDto instances are equal - /// - /// Instance of FieldBaseForSearchContactDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchContactDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchDTO.cs deleted file mode 100644 index 1140c13..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchDTO.cs +++ /dev/null @@ -1,520 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the additional field filter properties - /// - [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchMatrixDto), "FieldBaseForSearchMatrixDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchIntDto), "FieldBaseForSearchIntDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchDoubleDto), "FieldBaseForSearchDoubleDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchConservazioneDto), "FieldBaseForSearchConservazioneDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchContactDto), "FieldBaseForSearchContactDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchDocumentTypeDto), "FieldBaseForSearchDocumentTypeDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchStampDto), "FieldBaseForSearchStampDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchBoolDto), "FieldBaseForSearchBoolDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchListDto), "FieldBaseForSearchListDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchStringDto), "FieldBaseForSearchStringDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchDateTimeDto), "FieldBaseForSearchDateTimeDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchAooDto), "FieldBaseForSearchAooDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchProtocolloDto), "FieldBaseForSearchProtocolloDto")] - public partial class FieldBaseForSearchDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Group Identifier. - /// Possible values: 0: Standard 1: Group 2: Additional . - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Default Operator. - /// Table name. - /// Binder Identifier. - /// Multiple values. - /// Name. - /// External identifier. - /// Label. - /// Order. - /// DataSource identifier. - /// Required. - /// Formula. - /// Name of class (required). - /// Locked in read-only. - /// Data Group Identifier. - /// List of dependent fields. - /// Associated fields. - /// Field type additional. - /// Visible. - /// Formula in the context of predefined profile. - public FieldBaseForSearchDTO(int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = default(string), bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) - { - // to ensure "className" is required (not null) - if (className == null) - { - throw new InvalidDataException("className is a required property for FieldBaseForSearchDTO and cannot be null"); - } - else - { - this.ClassName = className; - } - this.GroupId = groupId; - this.FieldType = fieldType; - this.AdditionalFieldType = additionalFieldType; - this.DefaultOperator = defaultOperator; - this.TableName = tableName; - this.BinderFieldId = binderFieldId; - this.Multiple = multiple; - this.Name = name; - this.ExternalId = externalId; - this.Description = description; - this.Order = order; - this.DataSource = dataSource; - this.Required = required; - this.Formula = formula; - this.Locked = locked; - this.ComboGruppiId = comboGruppiId; - this.DependencyFields = dependencyFields; - this.Associations = associations; - this.IsAdditional = isAdditional; - this.Visible = visible; - this.PredefinedProfileFormula = predefinedProfileFormula; - } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Possible values: 0: Standard 1: Group 2: Additional - /// - /// Possible values: 0: Standard 1: Group 2: Additional - [DataMember(Name="fieldType", EmitDefaultValue=false)] - public int? FieldType { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Default Operator - /// - /// Default Operator - [DataMember(Name="defaultOperator", EmitDefaultValue=false)] - public int? DefaultOperator { get; set; } - - /// - /// Table name - /// - /// Table name - [DataMember(Name="tableName", EmitDefaultValue=false)] - public string TableName { get; set; } - - /// - /// Binder Identifier - /// - /// Binder Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Multiple values - /// - /// Multiple values - [DataMember(Name="multiple", EmitDefaultValue=false)] - public string Multiple { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// External identifier - /// - /// External identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Order - /// - /// Order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// DataSource identifier - /// - /// DataSource identifier - [DataMember(Name="dataSource", EmitDefaultValue=false)] - public string DataSource { get; set; } - - /// - /// Required - /// - /// Required - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Formula - /// - /// Formula - [DataMember(Name="formula", EmitDefaultValue=false)] - public string Formula { get; set; } - - /// - /// Name of class - /// - /// Name of class - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Locked in read-only - /// - /// Locked in read-only - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Data Group Identifier - /// - /// Data Group Identifier - [DataMember(Name="comboGruppiId", EmitDefaultValue=false)] - public string ComboGruppiId { get; set; } - - /// - /// List of dependent fields - /// - /// List of dependent fields - [DataMember(Name="dependencyFields", EmitDefaultValue=false)] - public List DependencyFields { get; set; } - - /// - /// Associated fields - /// - /// Associated fields - [DataMember(Name="associations", EmitDefaultValue=false)] - public Dictionary Associations { get; set; } - - /// - /// Field type additional - /// - /// Field type additional - [DataMember(Name="isAdditional", EmitDefaultValue=false)] - public bool? IsAdditional { get; set; } - - /// - /// Visible - /// - /// Visible - [DataMember(Name="visible", EmitDefaultValue=false)] - public bool? Visible { get; set; } - - /// - /// Formula in the context of predefined profile - /// - /// Formula in the context of predefined profile - [DataMember(Name="predefinedProfileFormula", EmitDefaultValue=false)] - public string PredefinedProfileFormula { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchDTO {\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" FieldType: ").Append(FieldType).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" DefaultOperator: ").Append(DefaultOperator).Append("\n"); - sb.Append(" TableName: ").Append(TableName).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" Multiple: ").Append(Multiple).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" DataSource: ").Append(DataSource).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" Formula: ").Append(Formula).Append("\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" ComboGruppiId: ").Append(ComboGruppiId).Append("\n"); - sb.Append(" DependencyFields: ").Append(DependencyFields).Append("\n"); - sb.Append(" Associations: ").Append(Associations).Append("\n"); - sb.Append(" IsAdditional: ").Append(IsAdditional).Append("\n"); - sb.Append(" Visible: ").Append(Visible).Append("\n"); - sb.Append(" PredefinedProfileFormula: ").Append(PredefinedProfileFormula).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchDTO); - } - - /// - /// Returns true if FieldBaseForSearchDTO instances are equal - /// - /// Instance of FieldBaseForSearchDTO to be compared - /// Boolean - public bool Equals(FieldBaseForSearchDTO input) - { - if (input == null) - return false; - - return - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && - ( - this.FieldType == input.FieldType || - (this.FieldType != null && - this.FieldType.Equals(input.FieldType)) - ) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && - ( - this.DefaultOperator == input.DefaultOperator || - (this.DefaultOperator != null && - this.DefaultOperator.Equals(input.DefaultOperator)) - ) && - ( - this.TableName == input.TableName || - (this.TableName != null && - this.TableName.Equals(input.TableName)) - ) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && - ( - this.Multiple == input.Multiple || - (this.Multiple != null && - this.Multiple.Equals(input.Multiple)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.DataSource == input.DataSource || - (this.DataSource != null && - this.DataSource.Equals(input.DataSource)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.Formula == input.Formula || - (this.Formula != null && - this.Formula.Equals(input.Formula)) - ) && - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && - ( - this.ComboGruppiId == input.ComboGruppiId || - (this.ComboGruppiId != null && - this.ComboGruppiId.Equals(input.ComboGruppiId)) - ) && - ( - this.DependencyFields == input.DependencyFields || - this.DependencyFields != null && - this.DependencyFields.SequenceEqual(input.DependencyFields) - ) && - ( - this.Associations == input.Associations || - this.Associations != null && - this.Associations.SequenceEqual(input.Associations) - ) && - ( - this.IsAdditional == input.IsAdditional || - (this.IsAdditional != null && - this.IsAdditional.Equals(input.IsAdditional)) - ) && - ( - this.Visible == input.Visible || - (this.Visible != null && - this.Visible.Equals(input.Visible)) - ) && - ( - this.PredefinedProfileFormula == input.PredefinedProfileFormula || - (this.PredefinedProfileFormula != null && - this.PredefinedProfileFormula.Equals(input.PredefinedProfileFormula)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.FieldType != null) - hashCode = hashCode * 59 + this.FieldType.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.DefaultOperator != null) - hashCode = hashCode * 59 + this.DefaultOperator.GetHashCode(); - if (this.TableName != null) - hashCode = hashCode * 59 + this.TableName.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.Multiple != null) - hashCode = hashCode * 59 + this.Multiple.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - if (this.DataSource != null) - hashCode = hashCode * 59 + this.DataSource.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.Formula != null) - hashCode = hashCode * 59 + this.Formula.GetHashCode(); - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.ComboGruppiId != null) - hashCode = hashCode * 59 + this.ComboGruppiId.GetHashCode(); - if (this.DependencyFields != null) - hashCode = hashCode * 59 + this.DependencyFields.GetHashCode(); - if (this.Associations != null) - hashCode = hashCode * 59 + this.Associations.GetHashCode(); - if (this.IsAdditional != null) - hashCode = hashCode * 59 + this.IsAdditional.GetHashCode(); - if (this.Visible != null) - hashCode = hashCode * 59 + this.Visible.GetHashCode(); - if (this.PredefinedProfileFormula != null) - hashCode = hashCode * 59 + this.PredefinedProfileFormula.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchDateTimeDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchDateTimeDto.cs deleted file mode 100644 index d31b592..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchDateTimeDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// FieldBaseForSearchDateTimeDto - /// - [DataContract] - public partial class FieldBaseForSearchDateTimeDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchDateTimeDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchDateTimeDto(int? _operator = default(int?), DateTime? valore1 = default(DateTime?), DateTime? valore2 = default(DateTime?), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchDateTimeDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public DateTime? Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public DateTime? Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchDateTimeDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchDateTimeDto); - } - - /// - /// Returns true if FieldBaseForSearchDateTimeDto instances are equal - /// - /// Instance of FieldBaseForSearchDateTimeDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchDateTimeDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchDocumentTypeDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchDocumentTypeDto.cs deleted file mode 100644 index 0eaf146..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchDocumentTypeDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// FieldBaseForSearchDocumentTypeDto - /// - [DataContract] - public partial class FieldBaseForSearchDocumentTypeDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchDocumentTypeDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchDocumentTypeDto(int? _operator = default(int?), DocumentTypeSearchFilterDto valore1 = default(DocumentTypeSearchFilterDto), DocumentTypeSearchFilterDto valore2 = default(DocumentTypeSearchFilterDto), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchDocumentTypeDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public DocumentTypeSearchFilterDto Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public DocumentTypeSearchFilterDto Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchDocumentTypeDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchDocumentTypeDto); - } - - /// - /// Returns true if FieldBaseForSearchDocumentTypeDto instances are equal - /// - /// Instance of FieldBaseForSearchDocumentTypeDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchDocumentTypeDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchDoubleDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchDoubleDto.cs deleted file mode 100644 index f17aff0..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchDoubleDto.cs +++ /dev/null @@ -1,182 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// FieldBaseForSearchDoubleDto - /// - [DataContract] - public partial class FieldBaseForSearchDoubleDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchDoubleDto() { } - /// - /// Initializes a new instance of the class. - /// - /// decimals. - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchDoubleDto(int? decimals = default(int?), int? _operator = default(int?), double? valore1 = default(double?), double? valore2 = default(double?), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchDoubleDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Decimals = decimals; - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Gets or Sets Decimals - /// - [DataMember(Name="decimals", EmitDefaultValue=false)] - public int? Decimals { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public double? Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public double? Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchDoubleDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Decimals: ").Append(Decimals).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchDoubleDto); - } - - /// - /// Returns true if FieldBaseForSearchDoubleDto instances are equal - /// - /// Instance of FieldBaseForSearchDoubleDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchDoubleDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Decimals == input.Decimals || - (this.Decimals != null && - this.Decimals.Equals(input.Decimals)) - ) && base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Decimals != null) - hashCode = hashCode * 59 + this.Decimals.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchIntDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchIntDto.cs deleted file mode 100644 index e4c5010..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchIntDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// FieldBaseForSearchIntDto - /// - [DataContract] - public partial class FieldBaseForSearchIntDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchIntDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchIntDto(int? _operator = default(int?), int? valore1 = default(int?), int? valore2 = default(int?), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchIntDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public int? Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public int? Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchIntDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchIntDto); - } - - /// - /// Returns true if FieldBaseForSearchIntDto instances are equal - /// - /// Instance of FieldBaseForSearchIntDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchIntDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchListDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchListDto.cs deleted file mode 100644 index 0324b02..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchListDto.cs +++ /dev/null @@ -1,183 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Field user for list search criteria - /// - [DataContract] - public partial class FieldBaseForSearchListDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchListDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like . - /// Search by and. - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchListDto(int? _operator = default(int?), bool? and = default(bool?), List valore1 = default(List), List valore2 = default(List), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchListDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.And = and; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// Search by and - /// - /// Search by and - [DataMember(Name="and", EmitDefaultValue=false)] - public bool? And { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public List Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public List Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchListDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" And: ").Append(And).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchListDto); - } - - /// - /// Returns true if FieldBaseForSearchListDto instances are equal - /// - /// Instance of FieldBaseForSearchListDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchListDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.And == input.And || - (this.And != null && - this.And.Equals(input.And)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - this.Valore1 != null && - this.Valore1.SequenceEqual(input.Valore1) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - this.Valore2 != null && - this.Valore2.SequenceEqual(input.Valore2) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.And != null) - hashCode = hashCode * 59 + this.And.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchMatrixDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchMatrixDto.cs deleted file mode 100644 index 9de1e3d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchMatrixDto.cs +++ /dev/null @@ -1,200 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Field user for list search criteria - /// - [DataContract] - public partial class FieldBaseForSearchMatrixDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchMatrixDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// Search by and. - /// Matrix name. - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchMatrixDto(int? _operator = default(int?), bool? and = default(bool?), string matrixName = default(string), List valore1 = default(List), List valore2 = default(List), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchMatrixDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.And = and; - this.MatrixName = matrixName; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// Search by and - /// - /// Search by and - [DataMember(Name="and", EmitDefaultValue=false)] - public bool? And { get; set; } - - /// - /// Matrix name - /// - /// Matrix name - [DataMember(Name="matrixName", EmitDefaultValue=false)] - public string MatrixName { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public List Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public List Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchMatrixDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" And: ").Append(And).Append("\n"); - sb.Append(" MatrixName: ").Append(MatrixName).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchMatrixDto); - } - - /// - /// Returns true if FieldBaseForSearchMatrixDto instances are equal - /// - /// Instance of FieldBaseForSearchMatrixDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchMatrixDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.And == input.And || - (this.And != null && - this.And.Equals(input.And)) - ) && base.Equals(input) && - ( - this.MatrixName == input.MatrixName || - (this.MatrixName != null && - this.MatrixName.Equals(input.MatrixName)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - this.Valore1 != null && - this.Valore1.SequenceEqual(input.Valore1) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - this.Valore2 != null && - this.Valore2.SequenceEqual(input.Valore2) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.And != null) - hashCode = hashCode * 59 + this.And.GetHashCode(); - if (this.MatrixName != null) - hashCode = hashCode * 59 + this.MatrixName.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchProtocolloDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchProtocolloDto.cs deleted file mode 100644 index bbf1717..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchProtocolloDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// FieldBaseForSearchProtocolloDto - /// - [DataContract] - public partial class FieldBaseForSearchProtocolloDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchProtocolloDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchProtocolloDto(int? _operator = default(int?), ProtocolSearchFilterDTO valore1 = default(ProtocolSearchFilterDTO), ProtocolSearchFilterDTO valore2 = default(ProtocolSearchFilterDTO), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchProtocolloDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public ProtocolSearchFilterDTO Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public ProtocolSearchFilterDTO Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchProtocolloDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchProtocolloDto); - } - - /// - /// Returns true if FieldBaseForSearchProtocolloDto instances are equal - /// - /// Instance of FieldBaseForSearchProtocolloDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchProtocolloDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchStampDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchStampDto.cs deleted file mode 100644 index c22eb3f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchStampDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// FieldBaseForSearchStampDto - /// - [DataContract] - public partial class FieldBaseForSearchStampDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchStampDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchStampDto(int? _operator = default(int?), StampSearchFilterDto valore1 = default(StampSearchFilterDto), StampSearchFilterDto valore2 = default(StampSearchFilterDto), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchStampDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public StampSearchFilterDto Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public StampSearchFilterDto Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchStampDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchStampDto); - } - - /// - /// Returns true if FieldBaseForSearchStampDto instances are equal - /// - /// Instance of FieldBaseForSearchStampDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchStampDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchStringDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchStringDto.cs deleted file mode 100644 index 8a9a2e8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSearchStringDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// FieldBaseForSearchStringDto - /// - [DataContract] - public partial class FieldBaseForSearchStringDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchStringDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchStringDto(int? _operator = default(int?), string valore1 = default(string), string valore2 = default(string), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchStringDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public string Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public string Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchStringDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchStringDto); - } - - /// - /// Returns true if FieldBaseForSearchStringDto instances are equal - /// - /// Instance of FieldBaseForSearchStringDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchStringDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSelectDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSelectDTO.cs deleted file mode 100644 index f754822..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldBaseForSelectDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of field for select in search - /// - [DataContract] - public partial class FieldBaseForSelectDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Calculate. - /// Order. - /// Selected. - /// Possible values: 0: Standard 1: Group 2: Additional . - /// Order on the results of the search. - /// External Identifier. - /// Label. - /// Name. - /// Enabled the selection. - /// Possible values: 0: Icon 1: Standard 2: Additional . - public FieldBaseForSelectDTO(bool? toCalculate = default(bool?), int? index = default(int?), bool? selected = default(bool?), int? fieldType = default(int?), OrderBy orderBy = default(OrderBy), string externalId = default(string), string label = default(string), string name = default(string), bool? userSelectionEnabled = default(bool?), int? userSelectionGroup = default(int?)) - { - this.ToCalculate = toCalculate; - this.Index = index; - this.Selected = selected; - this.FieldType = fieldType; - this.OrderBy = orderBy; - this.ExternalId = externalId; - this.Label = label; - this.Name = name; - this.UserSelectionEnabled = userSelectionEnabled; - this.UserSelectionGroup = userSelectionGroup; - } - - /// - /// Calculate - /// - /// Calculate - [DataMember(Name="toCalculate", EmitDefaultValue=false)] - public bool? ToCalculate { get; set; } - - /// - /// Order - /// - /// Order - [DataMember(Name="index", EmitDefaultValue=false)] - public int? Index { get; set; } - - /// - /// Selected - /// - /// Selected - [DataMember(Name="selected", EmitDefaultValue=false)] - public bool? Selected { get; set; } - - /// - /// Possible values: 0: Standard 1: Group 2: Additional - /// - /// Possible values: 0: Standard 1: Group 2: Additional - [DataMember(Name="fieldType", EmitDefaultValue=false)] - public int? FieldType { get; set; } - - /// - /// Order on the results of the search - /// - /// Order on the results of the search - [DataMember(Name="orderBy", EmitDefaultValue=false)] - public OrderBy OrderBy { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Enabled the selection - /// - /// Enabled the selection - [DataMember(Name="userSelectionEnabled", EmitDefaultValue=false)] - public bool? UserSelectionEnabled { get; set; } - - /// - /// Possible values: 0: Icon 1: Standard 2: Additional - /// - /// Possible values: 0: Icon 1: Standard 2: Additional - [DataMember(Name="userSelectionGroup", EmitDefaultValue=false)] - public int? UserSelectionGroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSelectDTO {\n"); - sb.Append(" ToCalculate: ").Append(ToCalculate).Append("\n"); - sb.Append(" Index: ").Append(Index).Append("\n"); - sb.Append(" Selected: ").Append(Selected).Append("\n"); - sb.Append(" FieldType: ").Append(FieldType).Append("\n"); - sb.Append(" OrderBy: ").Append(OrderBy).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" UserSelectionEnabled: ").Append(UserSelectionEnabled).Append("\n"); - sb.Append(" UserSelectionGroup: ").Append(UserSelectionGroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSelectDTO); - } - - /// - /// Returns true if FieldBaseForSelectDTO instances are equal - /// - /// Instance of FieldBaseForSelectDTO to be compared - /// Boolean - public bool Equals(FieldBaseForSelectDTO input) - { - if (input == null) - return false; - - return - ( - this.ToCalculate == input.ToCalculate || - (this.ToCalculate != null && - this.ToCalculate.Equals(input.ToCalculate)) - ) && - ( - this.Index == input.Index || - (this.Index != null && - this.Index.Equals(input.Index)) - ) && - ( - this.Selected == input.Selected || - (this.Selected != null && - this.Selected.Equals(input.Selected)) - ) && - ( - this.FieldType == input.FieldType || - (this.FieldType != null && - this.FieldType.Equals(input.FieldType)) - ) && - ( - this.OrderBy == input.OrderBy || - (this.OrderBy != null && - this.OrderBy.Equals(input.OrderBy)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.UserSelectionEnabled == input.UserSelectionEnabled || - (this.UserSelectionEnabled != null && - this.UserSelectionEnabled.Equals(input.UserSelectionEnabled)) - ) && - ( - this.UserSelectionGroup == input.UserSelectionGroup || - (this.UserSelectionGroup != null && - this.UserSelectionGroup.Equals(input.UserSelectionGroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ToCalculate != null) - hashCode = hashCode * 59 + this.ToCalculate.GetHashCode(); - if (this.Index != null) - hashCode = hashCode * 59 + this.Index.GetHashCode(); - if (this.Selected != null) - hashCode = hashCode * 59 + this.Selected.GetHashCode(); - if (this.FieldType != null) - hashCode = hashCode * 59 + this.FieldType.GetHashCode(); - if (this.OrderBy != null) - hashCode = hashCode * 59 + this.OrderBy.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.UserSelectionEnabled != null) - hashCode = hashCode * 59 + this.UserSelectionEnabled.GetHashCode(); - if (this.UserSelectionGroup != null) - hashCode = hashCode * 59 + this.UserSelectionGroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldDateTime.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldDateTime.cs deleted file mode 100644 index 2442817..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldDateTime.cs +++ /dev/null @@ -1,237 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// FieldDateTime - /// - [DataContract] - public partial class FieldDateTime : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// valore2. - /// valore. - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// nome. - /// nomeTabella. - /// externalId. - /// multiple. - /// label. - public FieldDateTime(Object valore2 = default(Object), Object valore = default(Object), int? operatore = default(int?), string nome = default(string), string nomeTabella = default(string), string externalId = default(string), string multiple = default(string), string label = default(string)) - { - this.Valore2 = valore2; - this.Valore = valore; - this.Operatore = operatore; - this.Nome = nome; - this.NomeTabella = nomeTabella; - this.ExternalId = externalId; - this.Multiple = multiple; - this.Label = label; - } - - /// - /// Gets or Sets Valore2 - /// - [DataMember(Name="valore2", EmitDefaultValue=false)] - public Object Valore2 { get; set; } - - /// - /// Gets or Sets Valore - /// - [DataMember(Name="valore", EmitDefaultValue=false)] - public Object Valore { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operatore", EmitDefaultValue=false)] - public int? Operatore { get; set; } - - /// - /// Gets or Sets Nome - /// - [DataMember(Name="nome", EmitDefaultValue=false)] - public string Nome { get; set; } - - /// - /// Gets or Sets NomeTabella - /// - [DataMember(Name="nomeTabella", EmitDefaultValue=false)] - public string NomeTabella { get; set; } - - /// - /// Gets or Sets ExternalId - /// - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Gets or Sets Multiple - /// - [DataMember(Name="multiple", EmitDefaultValue=false)] - public string Multiple { get; set; } - - /// - /// Gets or Sets Label - /// - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldDateTime {\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append(" Valore: ").Append(Valore).Append("\n"); - sb.Append(" Operatore: ").Append(Operatore).Append("\n"); - sb.Append(" Nome: ").Append(Nome).Append("\n"); - sb.Append(" NomeTabella: ").Append(NomeTabella).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Multiple: ").Append(Multiple).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldDateTime); - } - - /// - /// Returns true if FieldDateTime instances are equal - /// - /// Instance of FieldDateTime to be compared - /// Boolean - public bool Equals(FieldDateTime input) - { - if (input == null) - return false; - - return - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ) && - ( - this.Valore == input.Valore || - (this.Valore != null && - this.Valore.Equals(input.Valore)) - ) && - ( - this.Operatore == input.Operatore || - (this.Operatore != null && - this.Operatore.Equals(input.Operatore)) - ) && - ( - this.Nome == input.Nome || - (this.Nome != null && - this.Nome.Equals(input.Nome)) - ) && - ( - this.NomeTabella == input.NomeTabella || - (this.NomeTabella != null && - this.NomeTabella.Equals(input.NomeTabella)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Multiple == input.Multiple || - (this.Multiple != null && - this.Multiple.Equals(input.Multiple)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - if (this.Valore != null) - hashCode = hashCode * 59 + this.Valore.GetHashCode(); - if (this.Operatore != null) - hashCode = hashCode * 59 + this.Operatore.GetHashCode(); - if (this.Nome != null) - hashCode = hashCode * 59 + this.Nome.GetHashCode(); - if (this.NomeTabella != null) - hashCode = hashCode * 59 + this.NomeTabella.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Multiple != null) - hashCode = hashCode * 59 + this.Multiple.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldFilterConcreteDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldFilterConcreteDTO.cs deleted file mode 100644 index 64271af..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldFilterConcreteDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// This class contain information about available filters for a given additional field - /// - [DataContract] - public partial class FieldFilterConcreteDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// The column name of the property that the client have to use for set the value of the additional field. - /// The column name of the property that the client have to use for display the value of the additional field. - /// Array of avaible filters for the additional field DateTime. - /// Array of avaible filters for the additional field string. - /// Array of avaible filters for the additional field int. - /// Array of avaible filters for the additional field bool. - /// Array of avaible filters for the additional field double. - /// Array of avaible filters for the additional field stringlist. - /// This property show to client if the search for this field has to be prefilled or not. - /// The name of filter to use for this field by default. - public FieldFilterConcreteDTO(string keyField = default(string), string selectField = default(string), List dateTimeFields = default(List), List stringFields = default(List), List intFields = default(List), List boolFields = default(List), List doubleFields = default(List), List stringListFields = default(List), bool? showFilled = default(bool?), string defaultField = default(string)) - { - this.KeyField = keyField; - this.SelectField = selectField; - this.DateTimeFields = dateTimeFields; - this.StringFields = stringFields; - this.IntFields = intFields; - this.BoolFields = boolFields; - this.DoubleFields = doubleFields; - this.StringListFields = stringListFields; - this.ShowFilled = showFilled; - this.DefaultField = defaultField; - } - - /// - /// The column name of the property that the client have to use for set the value of the additional field - /// - /// The column name of the property that the client have to use for set the value of the additional field - [DataMember(Name="keyField", EmitDefaultValue=false)] - public string KeyField { get; set; } - - /// - /// The column name of the property that the client have to use for display the value of the additional field - /// - /// The column name of the property that the client have to use for display the value of the additional field - [DataMember(Name="selectField", EmitDefaultValue=false)] - public string SelectField { get; set; } - - /// - /// Array of avaible filters for the additional field DateTime - /// - /// Array of avaible filters for the additional field DateTime - [DataMember(Name="dateTimeFields", EmitDefaultValue=false)] - public List DateTimeFields { get; set; } - - /// - /// Array of avaible filters for the additional field string - /// - /// Array of avaible filters for the additional field string - [DataMember(Name="stringFields", EmitDefaultValue=false)] - public List StringFields { get; set; } - - /// - /// Array of avaible filters for the additional field int - /// - /// Array of avaible filters for the additional field int - [DataMember(Name="intFields", EmitDefaultValue=false)] - public List IntFields { get; set; } - - /// - /// Array of avaible filters for the additional field bool - /// - /// Array of avaible filters for the additional field bool - [DataMember(Name="boolFields", EmitDefaultValue=false)] - public List BoolFields { get; set; } - - /// - /// Array of avaible filters for the additional field double - /// - /// Array of avaible filters for the additional field double - [DataMember(Name="doubleFields", EmitDefaultValue=false)] - public List DoubleFields { get; set; } - - /// - /// Array of avaible filters for the additional field stringlist - /// - /// Array of avaible filters for the additional field stringlist - [DataMember(Name="stringListFields", EmitDefaultValue=false)] - public List StringListFields { get; set; } - - /// - /// This property show to client if the search for this field has to be prefilled or not - /// - /// This property show to client if the search for this field has to be prefilled or not - [DataMember(Name="showFilled", EmitDefaultValue=false)] - public bool? ShowFilled { get; set; } - - /// - /// The name of filter to use for this field by default - /// - /// The name of filter to use for this field by default - [DataMember(Name="defaultField", EmitDefaultValue=false)] - public string DefaultField { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldFilterConcreteDTO {\n"); - sb.Append(" KeyField: ").Append(KeyField).Append("\n"); - sb.Append(" SelectField: ").Append(SelectField).Append("\n"); - sb.Append(" DateTimeFields: ").Append(DateTimeFields).Append("\n"); - sb.Append(" StringFields: ").Append(StringFields).Append("\n"); - sb.Append(" IntFields: ").Append(IntFields).Append("\n"); - sb.Append(" BoolFields: ").Append(BoolFields).Append("\n"); - sb.Append(" DoubleFields: ").Append(DoubleFields).Append("\n"); - sb.Append(" StringListFields: ").Append(StringListFields).Append("\n"); - sb.Append(" ShowFilled: ").Append(ShowFilled).Append("\n"); - sb.Append(" DefaultField: ").Append(DefaultField).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldFilterConcreteDTO); - } - - /// - /// Returns true if FieldFilterConcreteDTO instances are equal - /// - /// Instance of FieldFilterConcreteDTO to be compared - /// Boolean - public bool Equals(FieldFilterConcreteDTO input) - { - if (input == null) - return false; - - return - ( - this.KeyField == input.KeyField || - (this.KeyField != null && - this.KeyField.Equals(input.KeyField)) - ) && - ( - this.SelectField == input.SelectField || - (this.SelectField != null && - this.SelectField.Equals(input.SelectField)) - ) && - ( - this.DateTimeFields == input.DateTimeFields || - this.DateTimeFields != null && - this.DateTimeFields.SequenceEqual(input.DateTimeFields) - ) && - ( - this.StringFields == input.StringFields || - this.StringFields != null && - this.StringFields.SequenceEqual(input.StringFields) - ) && - ( - this.IntFields == input.IntFields || - this.IntFields != null && - this.IntFields.SequenceEqual(input.IntFields) - ) && - ( - this.BoolFields == input.BoolFields || - this.BoolFields != null && - this.BoolFields.SequenceEqual(input.BoolFields) - ) && - ( - this.DoubleFields == input.DoubleFields || - this.DoubleFields != null && - this.DoubleFields.SequenceEqual(input.DoubleFields) - ) && - ( - this.StringListFields == input.StringListFields || - this.StringListFields != null && - this.StringListFields.SequenceEqual(input.StringListFields) - ) && - ( - this.ShowFilled == input.ShowFilled || - (this.ShowFilled != null && - this.ShowFilled.Equals(input.ShowFilled)) - ) && - ( - this.DefaultField == input.DefaultField || - (this.DefaultField != null && - this.DefaultField.Equals(input.DefaultField)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.KeyField != null) - hashCode = hashCode * 59 + this.KeyField.GetHashCode(); - if (this.SelectField != null) - hashCode = hashCode * 59 + this.SelectField.GetHashCode(); - if (this.DateTimeFields != null) - hashCode = hashCode * 59 + this.DateTimeFields.GetHashCode(); - if (this.StringFields != null) - hashCode = hashCode * 59 + this.StringFields.GetHashCode(); - if (this.IntFields != null) - hashCode = hashCode * 59 + this.IntFields.GetHashCode(); - if (this.BoolFields != null) - hashCode = hashCode * 59 + this.BoolFields.GetHashCode(); - if (this.DoubleFields != null) - hashCode = hashCode * 59 + this.DoubleFields.GetHashCode(); - if (this.StringListFields != null) - hashCode = hashCode * 59 + this.StringListFields.GetHashCode(); - if (this.ShowFilled != null) - hashCode = hashCode * 59 + this.ShowFilled.GetHashCode(); - if (this.DefaultField != null) - hashCode = hashCode * 59 + this.DefaultField.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldFilterDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldFilterDTO.cs deleted file mode 100644 index 6a31280..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldFilterDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// This class contain information about avaible filters for a given additional field - /// - [DataContract] - public partial class FieldFilterDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// The column name of the property that the client have to use for set the value of the additional field. - /// The column name of the property that the client have to use for display the value of the additional field. - /// Array of avaible filters for the additional field. - /// This property show to client if the search for this field has to be pre-filled or not. - /// The name of filter to use for this field by default. - /// Possible values: 0: Full 1: None . - public FieldFilterDTO(string keyField = default(string), string selectField = default(string), List filters = default(List), bool? showFilled = default(bool?), string defaultField = default(string), int? filteringType = default(int?)) - { - this.KeyField = keyField; - this.SelectField = selectField; - this.Filters = filters; - this.ShowFilled = showFilled; - this.DefaultField = defaultField; - this.FilteringType = filteringType; - } - - /// - /// The column name of the property that the client have to use for set the value of the additional field - /// - /// The column name of the property that the client have to use for set the value of the additional field - [DataMember(Name="keyField", EmitDefaultValue=false)] - public string KeyField { get; set; } - - /// - /// The column name of the property that the client have to use for display the value of the additional field - /// - /// The column name of the property that the client have to use for display the value of the additional field - [DataMember(Name="selectField", EmitDefaultValue=false)] - public string SelectField { get; set; } - - /// - /// Array of avaible filters for the additional field - /// - /// Array of avaible filters for the additional field - [DataMember(Name="filters", EmitDefaultValue=false)] - public List Filters { get; set; } - - /// - /// This property show to client if the search for this field has to be pre-filled or not - /// - /// This property show to client if the search for this field has to be pre-filled or not - [DataMember(Name="showFilled", EmitDefaultValue=false)] - public bool? ShowFilled { get; set; } - - /// - /// The name of filter to use for this field by default - /// - /// The name of filter to use for this field by default - [DataMember(Name="defaultField", EmitDefaultValue=false)] - public string DefaultField { get; set; } - - /// - /// Possible values: 0: Full 1: None - /// - /// Possible values: 0: Full 1: None - [DataMember(Name="filteringType", EmitDefaultValue=false)] - public int? FilteringType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldFilterDTO {\n"); - sb.Append(" KeyField: ").Append(KeyField).Append("\n"); - sb.Append(" SelectField: ").Append(SelectField).Append("\n"); - sb.Append(" Filters: ").Append(Filters).Append("\n"); - sb.Append(" ShowFilled: ").Append(ShowFilled).Append("\n"); - sb.Append(" DefaultField: ").Append(DefaultField).Append("\n"); - sb.Append(" FilteringType: ").Append(FilteringType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldFilterDTO); - } - - /// - /// Returns true if FieldFilterDTO instances are equal - /// - /// Instance of FieldFilterDTO to be compared - /// Boolean - public bool Equals(FieldFilterDTO input) - { - if (input == null) - return false; - - return - ( - this.KeyField == input.KeyField || - (this.KeyField != null && - this.KeyField.Equals(input.KeyField)) - ) && - ( - this.SelectField == input.SelectField || - (this.SelectField != null && - this.SelectField.Equals(input.SelectField)) - ) && - ( - this.Filters == input.Filters || - this.Filters != null && - this.Filters.SequenceEqual(input.Filters) - ) && - ( - this.ShowFilled == input.ShowFilled || - (this.ShowFilled != null && - this.ShowFilled.Equals(input.ShowFilled)) - ) && - ( - this.DefaultField == input.DefaultField || - (this.DefaultField != null && - this.DefaultField.Equals(input.DefaultField)) - ) && - ( - this.FilteringType == input.FilteringType || - (this.FilteringType != null && - this.FilteringType.Equals(input.FilteringType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.KeyField != null) - hashCode = hashCode * 59 + this.KeyField.GetHashCode(); - if (this.SelectField != null) - hashCode = hashCode * 59 + this.SelectField.GetHashCode(); - if (this.Filters != null) - hashCode = hashCode * 59 + this.Filters.GetHashCode(); - if (this.ShowFilled != null) - hashCode = hashCode * 59 + this.ShowFilled.GetHashCode(); - if (this.DefaultField != null) - hashCode = hashCode * 59 + this.DefaultField.GetHashCode(); - if (this.FilteringType != null) - hashCode = hashCode * 59 + this.FilteringType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldFormulaCalculateArchiveCriteriaDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldFormulaCalculateArchiveCriteriaDto.cs deleted file mode 100644 index c916411..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldFormulaCalculateArchiveCriteriaDto.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of criteria fields to calculate formula - /// - [DataContract] - public partial class FieldFormulaCalculateArchiveCriteriaDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Filter for profiling. - /// Field Name. - /// Formula. - public FieldFormulaCalculateArchiveCriteriaDto(ProfileDTO searchFilterDto = default(ProfileDTO), string fieldName = default(string), string formula = default(string)) - { - this.SearchFilterDto = searchFilterDto; - this.FieldName = fieldName; - this.Formula = formula; - } - - /// - /// Filter for profiling - /// - /// Filter for profiling - [DataMember(Name="searchFilterDto", EmitDefaultValue=false)] - public ProfileDTO SearchFilterDto { get; set; } - - /// - /// Field Name - /// - /// Field Name - [DataMember(Name="fieldName", EmitDefaultValue=false)] - public string FieldName { get; set; } - - /// - /// Formula - /// - /// Formula - [DataMember(Name="formula", EmitDefaultValue=false)] - public string Formula { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldFormulaCalculateArchiveCriteriaDto {\n"); - sb.Append(" SearchFilterDto: ").Append(SearchFilterDto).Append("\n"); - sb.Append(" FieldName: ").Append(FieldName).Append("\n"); - sb.Append(" Formula: ").Append(Formula).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldFormulaCalculateArchiveCriteriaDto); - } - - /// - /// Returns true if FieldFormulaCalculateArchiveCriteriaDto instances are equal - /// - /// Instance of FieldFormulaCalculateArchiveCriteriaDto to be compared - /// Boolean - public bool Equals(FieldFormulaCalculateArchiveCriteriaDto input) - { - if (input == null) - return false; - - return - ( - this.SearchFilterDto == input.SearchFilterDto || - (this.SearchFilterDto != null && - this.SearchFilterDto.Equals(input.SearchFilterDto)) - ) && - ( - this.FieldName == input.FieldName || - (this.FieldName != null && - this.FieldName.Equals(input.FieldName)) - ) && - ( - this.Formula == input.Formula || - (this.Formula != null && - this.Formula.Equals(input.Formula)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SearchFilterDto != null) - hashCode = hashCode * 59 + this.SearchFilterDto.GetHashCode(); - if (this.FieldName != null) - hashCode = hashCode * 59 + this.FieldName.GetHashCode(); - if (this.Formula != null) - hashCode = hashCode * 59 + this.Formula.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldFormulaCalculateCriteriaDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldFormulaCalculateCriteriaDto.cs deleted file mode 100644 index 20114de..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldFormulaCalculateCriteriaDto.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of criteria fields to calculate formula - /// - [DataContract] - public partial class FieldFormulaCalculateCriteriaDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Filter for search. - /// Field Name. - /// Formula. - public FieldFormulaCalculateCriteriaDto(SearchDTO searchFilterDto = default(SearchDTO), string fieldName = default(string), string formula = default(string)) - { - this.SearchFilterDto = searchFilterDto; - this.FieldName = fieldName; - this.Formula = formula; - } - - /// - /// Filter for search - /// - /// Filter for search - [DataMember(Name="searchFilterDto", EmitDefaultValue=false)] - public SearchDTO SearchFilterDto { get; set; } - - /// - /// Field Name - /// - /// Field Name - [DataMember(Name="fieldName", EmitDefaultValue=false)] - public string FieldName { get; set; } - - /// - /// Formula - /// - /// Formula - [DataMember(Name="formula", EmitDefaultValue=false)] - public string Formula { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldFormulaCalculateCriteriaDto {\n"); - sb.Append(" SearchFilterDto: ").Append(SearchFilterDto).Append("\n"); - sb.Append(" FieldName: ").Append(FieldName).Append("\n"); - sb.Append(" Formula: ").Append(Formula).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldFormulaCalculateCriteriaDto); - } - - /// - /// Returns true if FieldFormulaCalculateCriteriaDto instances are equal - /// - /// Instance of FieldFormulaCalculateCriteriaDto to be compared - /// Boolean - public bool Equals(FieldFormulaCalculateCriteriaDto input) - { - if (input == null) - return false; - - return - ( - this.SearchFilterDto == input.SearchFilterDto || - (this.SearchFilterDto != null && - this.SearchFilterDto.Equals(input.SearchFilterDto)) - ) && - ( - this.FieldName == input.FieldName || - (this.FieldName != null && - this.FieldName.Equals(input.FieldName)) - ) && - ( - this.Formula == input.Formula || - (this.Formula != null && - this.Formula.Equals(input.Formula)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SearchFilterDto != null) - hashCode = hashCode * 59 + this.SearchFilterDto.GetHashCode(); - if (this.FieldName != null) - hashCode = hashCode * 59 + this.FieldName.GetHashCode(); - if (this.Formula != null) - hashCode = hashCode * 59 + this.Formula.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldGroupSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldGroupSimpleDTO.cs deleted file mode 100644 index 5d0102b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldGroupSimpleDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// This class contains additional field groups - /// - [DataContract] - public partial class FieldGroupSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - public FieldGroupSimpleDTO(int? id = default(int?), string description = default(string)) - { - this.Id = id; - this.Description = description; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldGroupSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldGroupSimpleDTO); - } - - /// - /// Returns true if FieldGroupSimpleDTO instances are equal - /// - /// Instance of FieldGroupSimpleDTO to be compared - /// Boolean - public bool Equals(FieldGroupSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldInt.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldInt.cs deleted file mode 100644 index d375a2a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldInt.cs +++ /dev/null @@ -1,237 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// FieldInt - /// - [DataContract] - public partial class FieldInt : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// valore2. - /// valore. - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// nome. - /// nomeTabella. - /// externalId. - /// multiple. - /// label. - public FieldInt(Object valore2 = default(Object), Object valore = default(Object), int? operatore = default(int?), string nome = default(string), string nomeTabella = default(string), string externalId = default(string), string multiple = default(string), string label = default(string)) - { - this.Valore2 = valore2; - this.Valore = valore; - this.Operatore = operatore; - this.Nome = nome; - this.NomeTabella = nomeTabella; - this.ExternalId = externalId; - this.Multiple = multiple; - this.Label = label; - } - - /// - /// Gets or Sets Valore2 - /// - [DataMember(Name="valore2", EmitDefaultValue=false)] - public Object Valore2 { get; set; } - - /// - /// Gets or Sets Valore - /// - [DataMember(Name="valore", EmitDefaultValue=false)] - public Object Valore { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operatore", EmitDefaultValue=false)] - public int? Operatore { get; set; } - - /// - /// Gets or Sets Nome - /// - [DataMember(Name="nome", EmitDefaultValue=false)] - public string Nome { get; set; } - - /// - /// Gets or Sets NomeTabella - /// - [DataMember(Name="nomeTabella", EmitDefaultValue=false)] - public string NomeTabella { get; set; } - - /// - /// Gets or Sets ExternalId - /// - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Gets or Sets Multiple - /// - [DataMember(Name="multiple", EmitDefaultValue=false)] - public string Multiple { get; set; } - - /// - /// Gets or Sets Label - /// - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldInt {\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append(" Valore: ").Append(Valore).Append("\n"); - sb.Append(" Operatore: ").Append(Operatore).Append("\n"); - sb.Append(" Nome: ").Append(Nome).Append("\n"); - sb.Append(" NomeTabella: ").Append(NomeTabella).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Multiple: ").Append(Multiple).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldInt); - } - - /// - /// Returns true if FieldInt instances are equal - /// - /// Instance of FieldInt to be compared - /// Boolean - public bool Equals(FieldInt input) - { - if (input == null) - return false; - - return - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ) && - ( - this.Valore == input.Valore || - (this.Valore != null && - this.Valore.Equals(input.Valore)) - ) && - ( - this.Operatore == input.Operatore || - (this.Operatore != null && - this.Operatore.Equals(input.Operatore)) - ) && - ( - this.Nome == input.Nome || - (this.Nome != null && - this.Nome.Equals(input.Nome)) - ) && - ( - this.NomeTabella == input.NomeTabella || - (this.NomeTabella != null && - this.NomeTabella.Equals(input.NomeTabella)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Multiple == input.Multiple || - (this.Multiple != null && - this.Multiple.Equals(input.Multiple)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - if (this.Valore != null) - hashCode = hashCode * 59 + this.Valore.GetHashCode(); - if (this.Operatore != null) - hashCode = hashCode * 59 + this.Operatore.GetHashCode(); - if (this.Nome != null) - hashCode = hashCode * 59 + this.Nome.GetHashCode(); - if (this.NomeTabella != null) - hashCode = hashCode * 59 + this.NomeTabella.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Multiple != null) - hashCode = hashCode * 59 + this.Multiple.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldManagementDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldManagementDTO.cs deleted file mode 100644 index b971f29..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldManagementDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of field item for management - /// - [DataContract] - public partial class FieldManagementDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document type for additional field. - /// Possible values: 0: Integer 1: String 2: DateTime 3: Double 4: Boolean 5: DmDatiProfilo . - /// Name. - /// Label. - /// Possible values: 0: Empty 1: DM_PROFILE 2: DM_PROFILE_MULTIVALUES 3: DM_DATIPROFILO 4: DM_DATI_ENTE 5: _Function_ . - /// Possible values: 0: Standard 1: Additional 2: Contacts 3: PA 4: BodyData 5: Function . - public FieldManagementDTO(DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), int? dataType = default(int?), string name = default(string), string description = default(string), int? table = default(int?), int? type = default(int?)) - { - this.DocumentType = documentType; - this.DataType = dataType; - this.Name = name; - this.Description = description; - this.Table = table; - this.Type = type; - } - - /// - /// Document type for additional field - /// - /// Document type for additional field - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Possible values: 0: Integer 1: String 2: DateTime 3: Double 4: Boolean 5: DmDatiProfilo - /// - /// Possible values: 0: Integer 1: String 2: DateTime 3: Double 4: Boolean 5: DmDatiProfilo - [DataMember(Name="dataType", EmitDefaultValue=false)] - public int? DataType { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 0: Empty 1: DM_PROFILE 2: DM_PROFILE_MULTIVALUES 3: DM_DATIPROFILO 4: DM_DATI_ENTE 5: _Function_ - /// - /// Possible values: 0: Empty 1: DM_PROFILE 2: DM_PROFILE_MULTIVALUES 3: DM_DATIPROFILO 4: DM_DATI_ENTE 5: _Function_ - [DataMember(Name="table", EmitDefaultValue=false)] - public int? Table { get; set; } - - /// - /// Possible values: 0: Standard 1: Additional 2: Contacts 3: PA 4: BodyData 5: Function - /// - /// Possible values: 0: Standard 1: Additional 2: Contacts 3: PA 4: BodyData 5: Function - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldManagementDTO {\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" DataType: ").Append(DataType).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Table: ").Append(Table).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldManagementDTO); - } - - /// - /// Returns true if FieldManagementDTO instances are equal - /// - /// Instance of FieldManagementDTO to be compared - /// Boolean - public bool Equals(FieldManagementDTO input) - { - if (input == null) - return false; - - return - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.DataType == input.DataType || - (this.DataType != null && - this.DataType.Equals(input.DataType)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Table == input.Table || - (this.Table != null && - this.Table.Equals(input.Table)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.DataType != null) - hashCode = hashCode * 59 + this.DataType.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Table != null) - hashCode = hashCode * 59 + this.Table.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldString.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldString.cs deleted file mode 100644 index b2b71bb..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldString.cs +++ /dev/null @@ -1,270 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// FieldString - /// - [DataContract] - public partial class FieldString : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// valore. - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like . - /// size. - /// Possible values: 0: None 1: AesEncryption . - /// forceCaseInsensitive. - /// nome. - /// nomeTabella. - /// externalId. - /// multiple. - /// label. - public FieldString(string valore = default(string), int? operatore = default(int?), int? size = default(int?), int? encryption = default(int?), bool? forceCaseInsensitive = default(bool?), string nome = default(string), string nomeTabella = default(string), string externalId = default(string), string multiple = default(string), string label = default(string)) - { - this.Valore = valore; - this.Operatore = operatore; - this.Size = size; - this.Encryption = encryption; - this.ForceCaseInsensitive = forceCaseInsensitive; - this.Nome = nome; - this.NomeTabella = nomeTabella; - this.ExternalId = externalId; - this.Multiple = multiple; - this.Label = label; - } - - /// - /// Gets or Sets Valore - /// - [DataMember(Name="valore", EmitDefaultValue=false)] - public string Valore { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - [DataMember(Name="operatore", EmitDefaultValue=false)] - public int? Operatore { get; set; } - - /// - /// Gets or Sets Size - /// - [DataMember(Name="size", EmitDefaultValue=false)] - public int? Size { get; set; } - - /// - /// Possible values: 0: None 1: AesEncryption - /// - /// Possible values: 0: None 1: AesEncryption - [DataMember(Name="encryption", EmitDefaultValue=false)] - public int? Encryption { get; set; } - - /// - /// Gets or Sets ForceCaseInsensitive - /// - [DataMember(Name="forceCaseInsensitive", EmitDefaultValue=false)] - public bool? ForceCaseInsensitive { get; set; } - - /// - /// Gets or Sets Nome - /// - [DataMember(Name="nome", EmitDefaultValue=false)] - public string Nome { get; set; } - - /// - /// Gets or Sets NomeTabella - /// - [DataMember(Name="nomeTabella", EmitDefaultValue=false)] - public string NomeTabella { get; set; } - - /// - /// Gets or Sets ExternalId - /// - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Gets or Sets Multiple - /// - [DataMember(Name="multiple", EmitDefaultValue=false)] - public string Multiple { get; set; } - - /// - /// Gets or Sets Label - /// - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldString {\n"); - sb.Append(" Valore: ").Append(Valore).Append("\n"); - sb.Append(" Operatore: ").Append(Operatore).Append("\n"); - sb.Append(" Size: ").Append(Size).Append("\n"); - sb.Append(" Encryption: ").Append(Encryption).Append("\n"); - sb.Append(" ForceCaseInsensitive: ").Append(ForceCaseInsensitive).Append("\n"); - sb.Append(" Nome: ").Append(Nome).Append("\n"); - sb.Append(" NomeTabella: ").Append(NomeTabella).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Multiple: ").Append(Multiple).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldString); - } - - /// - /// Returns true if FieldString instances are equal - /// - /// Instance of FieldString to be compared - /// Boolean - public bool Equals(FieldString input) - { - if (input == null) - return false; - - return - ( - this.Valore == input.Valore || - (this.Valore != null && - this.Valore.Equals(input.Valore)) - ) && - ( - this.Operatore == input.Operatore || - (this.Operatore != null && - this.Operatore.Equals(input.Operatore)) - ) && - ( - this.Size == input.Size || - (this.Size != null && - this.Size.Equals(input.Size)) - ) && - ( - this.Encryption == input.Encryption || - (this.Encryption != null && - this.Encryption.Equals(input.Encryption)) - ) && - ( - this.ForceCaseInsensitive == input.ForceCaseInsensitive || - (this.ForceCaseInsensitive != null && - this.ForceCaseInsensitive.Equals(input.ForceCaseInsensitive)) - ) && - ( - this.Nome == input.Nome || - (this.Nome != null && - this.Nome.Equals(input.Nome)) - ) && - ( - this.NomeTabella == input.NomeTabella || - (this.NomeTabella != null && - this.NomeTabella.Equals(input.NomeTabella)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Multiple == input.Multiple || - (this.Multiple != null && - this.Multiple.Equals(input.Multiple)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Valore != null) - hashCode = hashCode * 59 + this.Valore.GetHashCode(); - if (this.Operatore != null) - hashCode = hashCode * 59 + this.Operatore.GetHashCode(); - if (this.Size != null) - hashCode = hashCode * 59 + this.Size.GetHashCode(); - if (this.Encryption != null) - hashCode = hashCode * 59 + this.Encryption.GetHashCode(); - if (this.ForceCaseInsensitive != null) - hashCode = hashCode * 59 + this.ForceCaseInsensitive.GetHashCode(); - if (this.Nome != null) - hashCode = hashCode * 59 + this.Nome.GetHashCode(); - if (this.NomeTabella != null) - hashCode = hashCode * 59 + this.NomeTabella.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Multiple != null) - hashCode = hashCode * 59 + this.Multiple.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldTranslation.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldTranslation.cs deleted file mode 100644 index d1eb625..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldTranslation.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// FieldTranslation - /// - [DataContract] - public partial class FieldTranslation : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Lang. - /// Value. - public FieldTranslation(string lang = default(string), string value = default(string)) - { - this.Lang = lang; - this.Value = value; - } - - /// - /// Lang - /// - /// Lang - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldTranslation {\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldTranslation); - } - - /// - /// Returns true if FieldTranslation instances are equal - /// - /// Instance of FieldTranslation to be compared - /// Boolean - public bool Equals(FieldTranslation input) - { - if (input == null) - return false; - - return - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldValidationCalculateArchiveCriteriaDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldValidationCalculateArchiveCriteriaDto.cs deleted file mode 100644 index 9af112f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldValidationCalculateArchiveCriteriaDto.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of criteria fields to calculate validation - /// - [DataContract] - public partial class FieldValidationCalculateArchiveCriteriaDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Filter for profiling. - /// Field Name. - public FieldValidationCalculateArchiveCriteriaDto(ProfileDTO searchFilterDto = default(ProfileDTO), string fieldName = default(string)) - { - this.SearchFilterDto = searchFilterDto; - this.FieldName = fieldName; - } - - /// - /// Filter for profiling - /// - /// Filter for profiling - [DataMember(Name="searchFilterDto", EmitDefaultValue=false)] - public ProfileDTO SearchFilterDto { get; set; } - - /// - /// Field Name - /// - /// Field Name - [DataMember(Name="fieldName", EmitDefaultValue=false)] - public string FieldName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldValidationCalculateArchiveCriteriaDto {\n"); - sb.Append(" SearchFilterDto: ").Append(SearchFilterDto).Append("\n"); - sb.Append(" FieldName: ").Append(FieldName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldValidationCalculateArchiveCriteriaDto); - } - - /// - /// Returns true if FieldValidationCalculateArchiveCriteriaDto instances are equal - /// - /// Instance of FieldValidationCalculateArchiveCriteriaDto to be compared - /// Boolean - public bool Equals(FieldValidationCalculateArchiveCriteriaDto input) - { - if (input == null) - return false; - - return - ( - this.SearchFilterDto == input.SearchFilterDto || - (this.SearchFilterDto != null && - this.SearchFilterDto.Equals(input.SearchFilterDto)) - ) && - ( - this.FieldName == input.FieldName || - (this.FieldName != null && - this.FieldName.Equals(input.FieldName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SearchFilterDto != null) - hashCode = hashCode * 59 + this.SearchFilterDto.GetHashCode(); - if (this.FieldName != null) - hashCode = hashCode * 59 + this.FieldName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldValuesArchiveCriteriaDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldValuesArchiveCriteriaDto.cs deleted file mode 100644 index 82c9921..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldValuesArchiveCriteriaDto.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of criteria fields for values in profiling - /// - [DataContract] - public partial class FieldValuesArchiveCriteriaDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Filter for profiling. - /// Field Name. - /// Filter Value. - /// Filter Identifier. - /// Filter Fields. - public FieldValuesArchiveCriteriaDto(ProfileDTO searchFilterDto = default(ProfileDTO), string fieldName = default(string), string filterValue = default(string), string filterId = default(string), List filters = default(List)) - { - this.SearchFilterDto = searchFilterDto; - this.FieldName = fieldName; - this.FilterValue = filterValue; - this.FilterId = filterId; - this.Filters = filters; - } - - /// - /// Filter for profiling - /// - /// Filter for profiling - [DataMember(Name="searchFilterDto", EmitDefaultValue=false)] - public ProfileDTO SearchFilterDto { get; set; } - - /// - /// Field Name - /// - /// Field Name - [DataMember(Name="fieldName", EmitDefaultValue=false)] - public string FieldName { get; set; } - - /// - /// Filter Value - /// - /// Filter Value - [DataMember(Name="filterValue", EmitDefaultValue=false)] - public string FilterValue { get; set; } - - /// - /// Filter Identifier - /// - /// Filter Identifier - [DataMember(Name="filterId", EmitDefaultValue=false)] - public string FilterId { get; set; } - - /// - /// Filter Fields - /// - /// Filter Fields - [DataMember(Name="filters", EmitDefaultValue=false)] - public List Filters { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldValuesArchiveCriteriaDto {\n"); - sb.Append(" SearchFilterDto: ").Append(SearchFilterDto).Append("\n"); - sb.Append(" FieldName: ").Append(FieldName).Append("\n"); - sb.Append(" FilterValue: ").Append(FilterValue).Append("\n"); - sb.Append(" FilterId: ").Append(FilterId).Append("\n"); - sb.Append(" Filters: ").Append(Filters).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldValuesArchiveCriteriaDto); - } - - /// - /// Returns true if FieldValuesArchiveCriteriaDto instances are equal - /// - /// Instance of FieldValuesArchiveCriteriaDto to be compared - /// Boolean - public bool Equals(FieldValuesArchiveCriteriaDto input) - { - if (input == null) - return false; - - return - ( - this.SearchFilterDto == input.SearchFilterDto || - (this.SearchFilterDto != null && - this.SearchFilterDto.Equals(input.SearchFilterDto)) - ) && - ( - this.FieldName == input.FieldName || - (this.FieldName != null && - this.FieldName.Equals(input.FieldName)) - ) && - ( - this.FilterValue == input.FilterValue || - (this.FilterValue != null && - this.FilterValue.Equals(input.FilterValue)) - ) && - ( - this.FilterId == input.FilterId || - (this.FilterId != null && - this.FilterId.Equals(input.FilterId)) - ) && - ( - this.Filters == input.Filters || - this.Filters != null && - this.Filters.SequenceEqual(input.Filters) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SearchFilterDto != null) - hashCode = hashCode * 59 + this.SearchFilterDto.GetHashCode(); - if (this.FieldName != null) - hashCode = hashCode * 59 + this.FieldName.GetHashCode(); - if (this.FilterValue != null) - hashCode = hashCode * 59 + this.FilterValue.GetHashCode(); - if (this.FilterId != null) - hashCode = hashCode * 59 + this.FilterId.GetHashCode(); - if (this.Filters != null) - hashCode = hashCode * 59 + this.Filters.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldValuesDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldValuesDTO.cs deleted file mode 100644 index bdf02ea..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldValuesDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// FieldValuesDTO - /// - [DataContract] - public partial class FieldValuesDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// KeyField. - /// SelectField. - /// Associations. - /// FieldName. - /// DataSource. - public FieldValuesDTO(string keyField = default(string), string selectField = default(string), Dictionary associations = default(Dictionary), string fieldName = default(string), List dataSource = default(List)) - { - this.KeyField = keyField; - this.SelectField = selectField; - this.Associations = associations; - this.FieldName = fieldName; - this.DataSource = dataSource; - } - - /// - /// KeyField - /// - /// KeyField - [DataMember(Name="keyField", EmitDefaultValue=false)] - public string KeyField { get; set; } - - /// - /// SelectField - /// - /// SelectField - [DataMember(Name="selectField", EmitDefaultValue=false)] - public string SelectField { get; set; } - - /// - /// Associations - /// - /// Associations - [DataMember(Name="associations", EmitDefaultValue=false)] - public Dictionary Associations { get; set; } - - /// - /// FieldName - /// - /// FieldName - [DataMember(Name="fieldName", EmitDefaultValue=false)] - public string FieldName { get; set; } - - /// - /// DataSource - /// - /// DataSource - [DataMember(Name="dataSource", EmitDefaultValue=false)] - public List DataSource { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldValuesDTO {\n"); - sb.Append(" KeyField: ").Append(KeyField).Append("\n"); - sb.Append(" SelectField: ").Append(SelectField).Append("\n"); - sb.Append(" Associations: ").Append(Associations).Append("\n"); - sb.Append(" FieldName: ").Append(FieldName).Append("\n"); - sb.Append(" DataSource: ").Append(DataSource).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldValuesDTO); - } - - /// - /// Returns true if FieldValuesDTO instances are equal - /// - /// Instance of FieldValuesDTO to be compared - /// Boolean - public bool Equals(FieldValuesDTO input) - { - if (input == null) - return false; - - return - ( - this.KeyField == input.KeyField || - (this.KeyField != null && - this.KeyField.Equals(input.KeyField)) - ) && - ( - this.SelectField == input.SelectField || - (this.SelectField != null && - this.SelectField.Equals(input.SelectField)) - ) && - ( - this.Associations == input.Associations || - this.Associations != null && - this.Associations.SequenceEqual(input.Associations) - ) && - ( - this.FieldName == input.FieldName || - (this.FieldName != null && - this.FieldName.Equals(input.FieldName)) - ) && - ( - this.DataSource == input.DataSource || - this.DataSource != null && - this.DataSource.SequenceEqual(input.DataSource) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.KeyField != null) - hashCode = hashCode * 59 + this.KeyField.GetHashCode(); - if (this.SelectField != null) - hashCode = hashCode * 59 + this.SelectField.GetHashCode(); - if (this.Associations != null) - hashCode = hashCode * 59 + this.Associations.GetHashCode(); - if (this.FieldName != null) - hashCode = hashCode * 59 + this.FieldName.GetHashCode(); - if (this.DataSource != null) - hashCode = hashCode * 59 + this.DataSource.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldValuesSearchCriteriaDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldValuesSearchCriteriaDto.cs deleted file mode 100644 index b36ed66..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldValuesSearchCriteriaDto.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Criteria for all the call that retrieve information about additional field values or additional field filters - /// - [DataContract] - public partial class FieldValuesSearchCriteriaDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Filter for search. - /// Field Name. - /// Filter Value. - /// Filter Identifier. - /// Filter Fields. - public FieldValuesSearchCriteriaDto(SearchDTO searchFilterDto = default(SearchDTO), string fieldName = default(string), string filterValue = default(string), string filterId = default(string), List filters = default(List)) - { - this.SearchFilterDto = searchFilterDto; - this.FieldName = fieldName; - this.FilterValue = filterValue; - this.FilterId = filterId; - this.Filters = filters; - } - - /// - /// Filter for search - /// - /// Filter for search - [DataMember(Name="searchFilterDto", EmitDefaultValue=false)] - public SearchDTO SearchFilterDto { get; set; } - - /// - /// Field Name - /// - /// Field Name - [DataMember(Name="fieldName", EmitDefaultValue=false)] - public string FieldName { get; set; } - - /// - /// Filter Value - /// - /// Filter Value - [DataMember(Name="filterValue", EmitDefaultValue=false)] - public string FilterValue { get; set; } - - /// - /// Filter Identifier - /// - /// Filter Identifier - [DataMember(Name="filterId", EmitDefaultValue=false)] - public string FilterId { get; set; } - - /// - /// Filter Fields - /// - /// Filter Fields - [DataMember(Name="filters", EmitDefaultValue=false)] - public List Filters { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldValuesSearchCriteriaDto {\n"); - sb.Append(" SearchFilterDto: ").Append(SearchFilterDto).Append("\n"); - sb.Append(" FieldName: ").Append(FieldName).Append("\n"); - sb.Append(" FilterValue: ").Append(FilterValue).Append("\n"); - sb.Append(" FilterId: ").Append(FilterId).Append("\n"); - sb.Append(" Filters: ").Append(Filters).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldValuesSearchCriteriaDto); - } - - /// - /// Returns true if FieldValuesSearchCriteriaDto instances are equal - /// - /// Instance of FieldValuesSearchCriteriaDto to be compared - /// Boolean - public bool Equals(FieldValuesSearchCriteriaDto input) - { - if (input == null) - return false; - - return - ( - this.SearchFilterDto == input.SearchFilterDto || - (this.SearchFilterDto != null && - this.SearchFilterDto.Equals(input.SearchFilterDto)) - ) && - ( - this.FieldName == input.FieldName || - (this.FieldName != null && - this.FieldName.Equals(input.FieldName)) - ) && - ( - this.FilterValue == input.FilterValue || - (this.FilterValue != null && - this.FilterValue.Equals(input.FilterValue)) - ) && - ( - this.FilterId == input.FilterId || - (this.FilterId != null && - this.FilterId.Equals(input.FilterId)) - ) && - ( - this.Filters == input.Filters || - this.Filters != null && - this.Filters.SequenceEqual(input.Filters) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SearchFilterDto != null) - hashCode = hashCode * 59 + this.SearchFilterDto.GetHashCode(); - if (this.FieldName != null) - hashCode = hashCode * 59 + this.FieldName.GetHashCode(); - if (this.FilterValue != null) - hashCode = hashCode * 59 + this.FilterValue.GetHashCode(); - if (this.FilterId != null) - hashCode = hashCode * 59 + this.FilterId.GetHashCode(); - if (this.Filters != null) - hashCode = hashCode * 59 + this.Filters.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldsMatrixModuleDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldsMatrixModuleDTO.cs deleted file mode 100644 index d016c47..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldsMatrixModuleDTO.cs +++ /dev/null @@ -1,209 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// FieldsMatrixModuleDTO - /// - [DataContract] - public partial class FieldsMatrixModuleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// Identificativo del modello office di riferimento.. - /// Nome del campo nel modello office.. - /// Nome del campo di profilo.. - /// Indica la posizione della colonna all'interno della tabella. - /// Descrizione campo di ARXivar. - public FieldsMatrixModuleDTO(int? id = default(int?), int? idModel = default(int?), string modelField = default(string), string profileField = default(string), int? position = default(int?), string label = default(string)) - { - this.Id = id; - this.IdModel = idModel; - this.ModelField = modelField; - this.ProfileField = profileField; - this.Position = position; - this.Label = label; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Identificativo del modello office di riferimento. - /// - /// Identificativo del modello office di riferimento. - [DataMember(Name="idModel", EmitDefaultValue=false)] - public int? IdModel { get; set; } - - /// - /// Nome del campo nel modello office. - /// - /// Nome del campo nel modello office. - [DataMember(Name="modelField", EmitDefaultValue=false)] - public string ModelField { get; set; } - - /// - /// Nome del campo di profilo. - /// - /// Nome del campo di profilo. - [DataMember(Name="profileField", EmitDefaultValue=false)] - public string ProfileField { get; set; } - - /// - /// Indica la posizione della colonna all'interno della tabella - /// - /// Indica la posizione della colonna all'interno della tabella - [DataMember(Name="position", EmitDefaultValue=false)] - public int? Position { get; set; } - - /// - /// Descrizione campo di ARXivar - /// - /// Descrizione campo di ARXivar - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldsMatrixModuleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IdModel: ").Append(IdModel).Append("\n"); - sb.Append(" ModelField: ").Append(ModelField).Append("\n"); - sb.Append(" ProfileField: ").Append(ProfileField).Append("\n"); - sb.Append(" Position: ").Append(Position).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldsMatrixModuleDTO); - } - - /// - /// Returns true if FieldsMatrixModuleDTO instances are equal - /// - /// Instance of FieldsMatrixModuleDTO to be compared - /// Boolean - public bool Equals(FieldsMatrixModuleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.IdModel == input.IdModel || - (this.IdModel != null && - this.IdModel.Equals(input.IdModel)) - ) && - ( - this.ModelField == input.ModelField || - (this.ModelField != null && - this.ModelField.Equals(input.ModelField)) - ) && - ( - this.ProfileField == input.ProfileField || - (this.ProfileField != null && - this.ProfileField.Equals(input.ProfileField)) - ) && - ( - this.Position == input.Position || - (this.Position != null && - this.Position.Equals(input.Position)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.IdModel != null) - hashCode = hashCode * 59 + this.IdModel.GetHashCode(); - if (this.ModelField != null) - hashCode = hashCode * 59 + this.ModelField.GetHashCode(); - if (this.ProfileField != null) - hashCode = hashCode * 59 + this.ProfileField.GetHashCode(); - if (this.Position != null) - hashCode = hashCode * 59 + this.Position.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FieldsModuleDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FieldsModuleDTO.cs deleted file mode 100644 index 07985ad..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FieldsModuleDTO.cs +++ /dev/null @@ -1,243 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// FieldsModuleDTO - /// - [DataContract] - public partial class FieldsModuleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Nome del campo di profilo.. - /// Etichetta dell'associazione.. - /// Nome del campo nel modello office.. - /// Classe documentale di primo livello.. - /// Classe documentale di secondo livello.. - /// Classe documentale di terso livello.. - /// Identificativo del modello office di riferimento.. - /// fieldsMatrixModule. - public FieldsModuleDTO(string profileField = default(string), string label = default(string), string modelField = default(string), int? type1 = default(int?), int? type2 = default(int?), int? type3 = default(int?), int? idModel = default(int?), List fieldsMatrixModule = default(List)) - { - this.ProfileField = profileField; - this.Label = label; - this.ModelField = modelField; - this.Type1 = type1; - this.Type2 = type2; - this.Type3 = type3; - this.IdModel = idModel; - this.FieldsMatrixModule = fieldsMatrixModule; - } - - /// - /// Nome del campo di profilo. - /// - /// Nome del campo di profilo. - [DataMember(Name="profileField", EmitDefaultValue=false)] - public string ProfileField { get; set; } - - /// - /// Etichetta dell'associazione. - /// - /// Etichetta dell'associazione. - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Nome del campo nel modello office. - /// - /// Nome del campo nel modello office. - [DataMember(Name="modelField", EmitDefaultValue=false)] - public string ModelField { get; set; } - - /// - /// Classe documentale di primo livello. - /// - /// Classe documentale di primo livello. - [DataMember(Name="type1", EmitDefaultValue=false)] - public int? Type1 { get; set; } - - /// - /// Classe documentale di secondo livello. - /// - /// Classe documentale di secondo livello. - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Classe documentale di terso livello. - /// - /// Classe documentale di terso livello. - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Identificativo del modello office di riferimento. - /// - /// Identificativo del modello office di riferimento. - [DataMember(Name="idModel", EmitDefaultValue=false)] - public int? IdModel { get; set; } - - /// - /// Gets or Sets FieldsMatrixModule - /// - [DataMember(Name="fieldsMatrixModule", EmitDefaultValue=false)] - public List FieldsMatrixModule { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldsModuleDTO {\n"); - sb.Append(" ProfileField: ").Append(ProfileField).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" ModelField: ").Append(ModelField).Append("\n"); - sb.Append(" Type1: ").Append(Type1).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append(" IdModel: ").Append(IdModel).Append("\n"); - sb.Append(" FieldsMatrixModule: ").Append(FieldsMatrixModule).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldsModuleDTO); - } - - /// - /// Returns true if FieldsModuleDTO instances are equal - /// - /// Instance of FieldsModuleDTO to be compared - /// Boolean - public bool Equals(FieldsModuleDTO input) - { - if (input == null) - return false; - - return - ( - this.ProfileField == input.ProfileField || - (this.ProfileField != null && - this.ProfileField.Equals(input.ProfileField)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.ModelField == input.ModelField || - (this.ModelField != null && - this.ModelField.Equals(input.ModelField)) - ) && - ( - this.Type1 == input.Type1 || - (this.Type1 != null && - this.Type1.Equals(input.Type1)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ) && - ( - this.IdModel == input.IdModel || - (this.IdModel != null && - this.IdModel.Equals(input.IdModel)) - ) && - ( - this.FieldsMatrixModule == input.FieldsMatrixModule || - this.FieldsMatrixModule != null && - this.FieldsMatrixModule.SequenceEqual(input.FieldsMatrixModule) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ProfileField != null) - hashCode = hashCode * 59 + this.ProfileField.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.ModelField != null) - hashCode = hashCode * 59 + this.ModelField.GetHashCode(); - if (this.Type1 != null) - hashCode = hashCode * 59 + this.Type1.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - if (this.IdModel != null) - hashCode = hashCode * 59 + this.IdModel.GetHashCode(); - if (this.FieldsMatrixModule != null) - hashCode = hashCode * 59 + this.FieldsMatrixModule.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FileDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FileDTO.cs deleted file mode 100644 index 285787b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FileDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class file dto - /// - [DataContract] - public partial class FileDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Filename list. - /// Buffer id list. - public FileDTO(List fileNames = default(List), List bufferIds = default(List)) - { - this.FileNames = fileNames; - this.BufferIds = bufferIds; - } - - /// - /// Filename list - /// - /// Filename list - [DataMember(Name="fileNames", EmitDefaultValue=false)] - public List FileNames { get; set; } - - /// - /// Buffer id list - /// - /// Buffer id list - [DataMember(Name="bufferIds", EmitDefaultValue=false)] - public List BufferIds { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FileDTO {\n"); - sb.Append(" FileNames: ").Append(FileNames).Append("\n"); - sb.Append(" BufferIds: ").Append(BufferIds).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FileDTO); - } - - /// - /// Returns true if FileDTO instances are equal - /// - /// Instance of FileDTO to be compared - /// Boolean - public bool Equals(FileDTO input) - { - if (input == null) - return false; - - return - ( - this.FileNames == input.FileNames || - this.FileNames != null && - this.FileNames.SequenceEqual(input.FileNames) - ) && - ( - this.BufferIds == input.BufferIds || - this.BufferIds != null && - this.BufferIds.SequenceEqual(input.BufferIds) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.FileNames != null) - hashCode = hashCode * 59 + this.FileNames.GetHashCode(); - if (this.BufferIds != null) - hashCode = hashCode * 59 + this.BufferIds.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FindDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FindDTO.cs deleted file mode 100644 index bb81e4d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FindDTO.cs +++ /dev/null @@ -1,312 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of find data - /// - [DataContract] - public partial class FindDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - /// Author. - /// Author Description. - /// Possible values: 0: Dm_Profile_Search 1: Dm_ElencoPratiche_Search 2: Dm_TaskWork_Search 3: Dm_UtentiBase_Search 4: Dm_Contatti_Search 5: ExternalData 6: Dm_Profile_Search_For_Fasciculation 7: Dm_Profile_Search_For_User_Default 8: Dm_Contatti_Search_For_User_Default . - /// Show Fields. - /// Open the Form. - /// Show on Desktop. - /// Folder Identifier. - /// External Identifier. - /// Table Name. - /// Table Field Identifier. - public FindDTO(string id = default(string), string description = default(string), int? owner = default(int?), string ownerDescription = default(string), int? context = default(int?), bool? showFields = default(bool?), bool? formOpen = default(bool?), bool? showOnDesktop = default(bool?), int? folderId = default(int?), string externalId = default(string), string tableName = default(string), string tableFieldId = default(string)) - { - this.Id = id; - this.Description = description; - this.Owner = owner; - this.OwnerDescription = ownerDescription; - this.Context = context; - this.ShowFields = showFields; - this.FormOpen = formOpen; - this.ShowOnDesktop = showOnDesktop; - this.FolderId = folderId; - this.ExternalId = externalId; - this.TableName = tableName; - this.TableFieldId = tableFieldId; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Author - /// - /// Author - [DataMember(Name="owner", EmitDefaultValue=false)] - public int? Owner { get; set; } - - /// - /// Author Description - /// - /// Author Description - [DataMember(Name="ownerDescription", EmitDefaultValue=false)] - public string OwnerDescription { get; set; } - - /// - /// Possible values: 0: Dm_Profile_Search 1: Dm_ElencoPratiche_Search 2: Dm_TaskWork_Search 3: Dm_UtentiBase_Search 4: Dm_Contatti_Search 5: ExternalData 6: Dm_Profile_Search_For_Fasciculation 7: Dm_Profile_Search_For_User_Default 8: Dm_Contatti_Search_For_User_Default - /// - /// Possible values: 0: Dm_Profile_Search 1: Dm_ElencoPratiche_Search 2: Dm_TaskWork_Search 3: Dm_UtentiBase_Search 4: Dm_Contatti_Search 5: ExternalData 6: Dm_Profile_Search_For_Fasciculation 7: Dm_Profile_Search_For_User_Default 8: Dm_Contatti_Search_For_User_Default - [DataMember(Name="context", EmitDefaultValue=false)] - public int? Context { get; set; } - - /// - /// Show Fields - /// - /// Show Fields - [DataMember(Name="showFields", EmitDefaultValue=false)] - public bool? ShowFields { get; set; } - - /// - /// Open the Form - /// - /// Open the Form - [DataMember(Name="formOpen", EmitDefaultValue=false)] - public bool? FormOpen { get; set; } - - /// - /// Show on Desktop - /// - /// Show on Desktop - [DataMember(Name="showOnDesktop", EmitDefaultValue=false)] - public bool? ShowOnDesktop { get; set; } - - /// - /// Folder Identifier - /// - /// Folder Identifier - [DataMember(Name="folderId", EmitDefaultValue=false)] - public int? FolderId { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Table Name - /// - /// Table Name - [DataMember(Name="tableName", EmitDefaultValue=false)] - public string TableName { get; set; } - - /// - /// Table Field Identifier - /// - /// Table Field Identifier - [DataMember(Name="tableFieldId", EmitDefaultValue=false)] - public string TableFieldId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FindDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" OwnerDescription: ").Append(OwnerDescription).Append("\n"); - sb.Append(" Context: ").Append(Context).Append("\n"); - sb.Append(" ShowFields: ").Append(ShowFields).Append("\n"); - sb.Append(" FormOpen: ").Append(FormOpen).Append("\n"); - sb.Append(" ShowOnDesktop: ").Append(ShowOnDesktop).Append("\n"); - sb.Append(" FolderId: ").Append(FolderId).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" TableName: ").Append(TableName).Append("\n"); - sb.Append(" TableFieldId: ").Append(TableFieldId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FindDTO); - } - - /// - /// Returns true if FindDTO instances are equal - /// - /// Instance of FindDTO to be compared - /// Boolean - public bool Equals(FindDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && - ( - this.OwnerDescription == input.OwnerDescription || - (this.OwnerDescription != null && - this.OwnerDescription.Equals(input.OwnerDescription)) - ) && - ( - this.Context == input.Context || - (this.Context != null && - this.Context.Equals(input.Context)) - ) && - ( - this.ShowFields == input.ShowFields || - (this.ShowFields != null && - this.ShowFields.Equals(input.ShowFields)) - ) && - ( - this.FormOpen == input.FormOpen || - (this.FormOpen != null && - this.FormOpen.Equals(input.FormOpen)) - ) && - ( - this.ShowOnDesktop == input.ShowOnDesktop || - (this.ShowOnDesktop != null && - this.ShowOnDesktop.Equals(input.ShowOnDesktop)) - ) && - ( - this.FolderId == input.FolderId || - (this.FolderId != null && - this.FolderId.Equals(input.FolderId)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.TableName == input.TableName || - (this.TableName != null && - this.TableName.Equals(input.TableName)) - ) && - ( - this.TableFieldId == input.TableFieldId || - (this.TableFieldId != null && - this.TableFieldId.Equals(input.TableFieldId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.OwnerDescription != null) - hashCode = hashCode * 59 + this.OwnerDescription.GetHashCode(); - if (this.Context != null) - hashCode = hashCode * 59 + this.Context.GetHashCode(); - if (this.ShowFields != null) - hashCode = hashCode * 59 + this.ShowFields.GetHashCode(); - if (this.FormOpen != null) - hashCode = hashCode * 59 + this.FormOpen.GetHashCode(); - if (this.ShowOnDesktop != null) - hashCode = hashCode * 59 + this.ShowOnDesktop.GetHashCode(); - if (this.FolderId != null) - hashCode = hashCode * 59 + this.FolderId.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.TableName != null) - hashCode = hashCode * 59 + this.TableName.GetHashCode(); - if (this.TableFieldId != null) - hashCode = hashCode * 59 + this.TableFieldId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FindGroupDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FindGroupDTO.cs deleted file mode 100644 index 8d779bf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FindGroupDTO.cs +++ /dev/null @@ -1,188 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Find Group - /// - [DataContract] - public partial class FindGroupDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// datasetName. - /// owner. - /// externalId. - /// description. - public FindGroupDTO(string id = default(string), string datasetName = default(string), int? owner = default(int?), string externalId = default(string), string description = default(string)) - { - this.Id = id; - this.DatasetName = datasetName; - this.Owner = owner; - this.ExternalId = externalId; - this.Description = description; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Gets or Sets DatasetName - /// - [DataMember(Name="datasetName", EmitDefaultValue=false)] - public string DatasetName { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="owner", EmitDefaultValue=false)] - public int? Owner { get; set; } - - /// - /// Gets or Sets ExternalId - /// - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FindGroupDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" DatasetName: ").Append(DatasetName).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FindGroupDTO); - } - - /// - /// Returns true if FindGroupDTO instances are equal - /// - /// Instance of FindGroupDTO to be compared - /// Boolean - public bool Equals(FindGroupDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.DatasetName == input.DatasetName || - (this.DatasetName != null && - this.DatasetName.Equals(input.DatasetName)) - ) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.DatasetName != null) - hashCode = hashCode * 59 + this.DatasetName.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FolderArchiveModeInfo.cs b/ACUtils.AXRepository/ArxivarNext/Model/FolderArchiveModeInfo.cs deleted file mode 100644 index 03c55db..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FolderArchiveModeInfo.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of information for profiling in folder - /// - [DataContract] - public partial class FolderArchiveModeInfo : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Folder Identifier. - /// Folder Name. - /// Rules. - /// Possible values: 0: None 1: AutoWithDefaultProfile 2: ManualWithMask . - public FolderArchiveModeInfo(int? folderId = default(int?), string folderName = default(string), List rules = default(List), int? archiveMode = default(int?)) - { - this.FolderId = folderId; - this.FolderName = folderName; - this.Rules = rules; - this.ArchiveMode = archiveMode; - } - - /// - /// Folder Identifier - /// - /// Folder Identifier - [DataMember(Name="folderId", EmitDefaultValue=false)] - public int? FolderId { get; set; } - - /// - /// Folder Name - /// - /// Folder Name - [DataMember(Name="folderName", EmitDefaultValue=false)] - public string FolderName { get; set; } - - /// - /// Rules - /// - /// Rules - [DataMember(Name="rules", EmitDefaultValue=false)] - public List Rules { get; set; } - - /// - /// Possible values: 0: None 1: AutoWithDefaultProfile 2: ManualWithMask - /// - /// Possible values: 0: None 1: AutoWithDefaultProfile 2: ManualWithMask - [DataMember(Name="archiveMode", EmitDefaultValue=false)] - public int? ArchiveMode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FolderArchiveModeInfo {\n"); - sb.Append(" FolderId: ").Append(FolderId).Append("\n"); - sb.Append(" FolderName: ").Append(FolderName).Append("\n"); - sb.Append(" Rules: ").Append(Rules).Append("\n"); - sb.Append(" ArchiveMode: ").Append(ArchiveMode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FolderArchiveModeInfo); - } - - /// - /// Returns true if FolderArchiveModeInfo instances are equal - /// - /// Instance of FolderArchiveModeInfo to be compared - /// Boolean - public bool Equals(FolderArchiveModeInfo input) - { - if (input == null) - return false; - - return - ( - this.FolderId == input.FolderId || - (this.FolderId != null && - this.FolderId.Equals(input.FolderId)) - ) && - ( - this.FolderName == input.FolderName || - (this.FolderName != null && - this.FolderName.Equals(input.FolderName)) - ) && - ( - this.Rules == input.Rules || - this.Rules != null && - this.Rules.SequenceEqual(input.Rules) - ) && - ( - this.ArchiveMode == input.ArchiveMode || - (this.ArchiveMode != null && - this.ArchiveMode.Equals(input.ArchiveMode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.FolderId != null) - hashCode = hashCode * 59 + this.FolderId.GetHashCode(); - if (this.FolderName != null) - hashCode = hashCode * 59 + this.FolderName.GetHashCode(); - if (this.Rules != null) - hashCode = hashCode * 59 + this.Rules.GetHashCode(); - if (this.ArchiveMode != null) - hashCode = hashCode * 59 + this.ArchiveMode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FolderArchiveModeRule.cs b/ACUtils.AXRepository/ArxivarNext/Model/FolderArchiveModeRule.cs deleted file mode 100644 index 1a27857..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FolderArchiveModeRule.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of rule in folder for profiling - /// - [DataContract] - public partial class FolderArchiveModeRule : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Item Identifier. - /// Item Name. - /// User Identifier. - /// User Name. - /// Rule. - public FolderArchiveModeRule(int? id = default(int?), string itemId = default(string), string itemName = default(string), int? userId = default(int?), string userCompleteName = default(string), FolderCompositionRule compositionRule = default(FolderCompositionRule)) - { - this.Id = id; - this.ItemId = itemId; - this.ItemName = itemName; - this.UserId = userId; - this.UserCompleteName = userCompleteName; - this.CompositionRule = compositionRule; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Item Identifier - /// - /// Item Identifier - [DataMember(Name="itemId", EmitDefaultValue=false)] - public string ItemId { get; set; } - - /// - /// Item Name - /// - /// Item Name - [DataMember(Name="itemName", EmitDefaultValue=false)] - public string ItemName { get; set; } - - /// - /// User Identifier - /// - /// User Identifier - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// User Name - /// - /// User Name - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Rule - /// - /// Rule - [DataMember(Name="compositionRule", EmitDefaultValue=false)] - public FolderCompositionRule CompositionRule { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FolderArchiveModeRule {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ItemId: ").Append(ItemId).Append("\n"); - sb.Append(" ItemName: ").Append(ItemName).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" CompositionRule: ").Append(CompositionRule).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FolderArchiveModeRule); - } - - /// - /// Returns true if FolderArchiveModeRule instances are equal - /// - /// Instance of FolderArchiveModeRule to be compared - /// Boolean - public bool Equals(FolderArchiveModeRule input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ItemId == input.ItemId || - (this.ItemId != null && - this.ItemId.Equals(input.ItemId)) - ) && - ( - this.ItemName == input.ItemName || - (this.ItemName != null && - this.ItemName.Equals(input.ItemName)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.CompositionRule == input.CompositionRule || - (this.CompositionRule != null && - this.CompositionRule.Equals(input.CompositionRule)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ItemId != null) - hashCode = hashCode * 59 + this.ItemId.GetHashCode(); - if (this.ItemName != null) - hashCode = hashCode * 59 + this.ItemName.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.CompositionRule != null) - hashCode = hashCode * 59 + this.CompositionRule.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FolderCompositionRule.cs b/ACUtils.AXRepository/ArxivarNext/Model/FolderCompositionRule.cs deleted file mode 100644 index 5ec0cc9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FolderCompositionRule.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of rule of folder - /// - [DataContract] - public partial class FolderCompositionRule : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Folder Identifier. - /// User Identifier. - /// Possible values: 0: ByPosition 1: BySeparator 2: None . - /// Character Separator. - /// Creation Date. - /// Details. - public FolderCompositionRule(int? id = default(int?), int? folderId = default(int?), int? userId = default(int?), int? parseMode = default(int?), string character = default(string), DateTime? creationDateTime = default(DateTime?), List compositionRuleDetails = default(List)) - { - this.Id = id; - this.FolderId = folderId; - this.UserId = userId; - this.ParseMode = parseMode; - this.Character = character; - this.CreationDateTime = creationDateTime; - this.CompositionRuleDetails = compositionRuleDetails; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Folder Identifier - /// - /// Folder Identifier - [DataMember(Name="folderId", EmitDefaultValue=false)] - public int? FolderId { get; set; } - - /// - /// User Identifier - /// - /// User Identifier - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Possible values: 0: ByPosition 1: BySeparator 2: None - /// - /// Possible values: 0: ByPosition 1: BySeparator 2: None - [DataMember(Name="parseMode", EmitDefaultValue=false)] - public int? ParseMode { get; set; } - - /// - /// Character Separator - /// - /// Character Separator - [DataMember(Name="character", EmitDefaultValue=false)] - public string Character { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="creationDateTime", EmitDefaultValue=false)] - public DateTime? CreationDateTime { get; set; } - - /// - /// Details - /// - /// Details - [DataMember(Name="compositionRuleDetails", EmitDefaultValue=false)] - public List CompositionRuleDetails { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FolderCompositionRule {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" FolderId: ").Append(FolderId).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" ParseMode: ").Append(ParseMode).Append("\n"); - sb.Append(" Character: ").Append(Character).Append("\n"); - sb.Append(" CreationDateTime: ").Append(CreationDateTime).Append("\n"); - sb.Append(" CompositionRuleDetails: ").Append(CompositionRuleDetails).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FolderCompositionRule); - } - - /// - /// Returns true if FolderCompositionRule instances are equal - /// - /// Instance of FolderCompositionRule to be compared - /// Boolean - public bool Equals(FolderCompositionRule input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.FolderId == input.FolderId || - (this.FolderId != null && - this.FolderId.Equals(input.FolderId)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.ParseMode == input.ParseMode || - (this.ParseMode != null && - this.ParseMode.Equals(input.ParseMode)) - ) && - ( - this.Character == input.Character || - (this.Character != null && - this.Character.Equals(input.Character)) - ) && - ( - this.CreationDateTime == input.CreationDateTime || - (this.CreationDateTime != null && - this.CreationDateTime.Equals(input.CreationDateTime)) - ) && - ( - this.CompositionRuleDetails == input.CompositionRuleDetails || - this.CompositionRuleDetails != null && - this.CompositionRuleDetails.SequenceEqual(input.CompositionRuleDetails) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.FolderId != null) - hashCode = hashCode * 59 + this.FolderId.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.ParseMode != null) - hashCode = hashCode * 59 + this.ParseMode.GetHashCode(); - if (this.Character != null) - hashCode = hashCode * 59 + this.Character.GetHashCode(); - if (this.CreationDateTime != null) - hashCode = hashCode * 59 + this.CreationDateTime.GetHashCode(); - if (this.CompositionRuleDetails != null) - hashCode = hashCode * 59 + this.CompositionRuleDetails.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FolderCompositionRuleDetail.cs b/ACUtils.AXRepository/ArxivarNext/Model/FolderCompositionRuleDetail.cs deleted file mode 100644 index 28ac108..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FolderCompositionRuleDetail.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of rule detail for folder - /// - [DataContract] - public partial class FolderCompositionRuleDetail : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Rule Identifier. - /// Field Identifier. - /// Possible values: 0: NonImpostato 1: From 2: To 3: Cc 4: Aoo 5: DocumentType 6: DataDoc 7: Numero 8: Oggetto 9: Origine 10: Stato 11: Pratiche 12: Scadenza 13: Importante 14: AbilitaWeb 15: AvviaWorkFlow 16: InviaPerFax 17: InviaPerMail 18: AllegaATaskAttivo 19: InserisciInAssociazione 20: InserisciInFascicolo 21: InserisciInRelazioneManuale 22: GestisciRevisioni 23: Note 24: Allegati 25: Aggiuntivo 26: File 27: Scanner 28: Barcode 29: SicurezzaSingoloDocumento 30: ExternalId 31: AllegaMemo 32: Senders 33: AvviaCollaboration 34: ScansioneImmediata 35: NegaCommuta 36: From_Cap 37: From_Cell 38: From_Codfis 39: From_Codice 40: From_Contatti 41: From_Email 42: From_Fax 43: From_Faxnome 44: From_Indirizzo 45: From_Localita 46: From_Mail 47: From_Mansione 48: From_Nazione 49: From_Partiva 50: From_Provincia 51: From_Reparto 52: From_Riferimento 53: From_Tel 54: From_Telnome 55: From_Ufficio 56: From_Valore 57: From_Abitazione 58: To_Cap 59: To_Cell 60: To_Codfis 61: To_Codice 62: To_Contatti 63: To_Email 64: To_Fax 65: To_Faxnome 66: To_Indirizzo 67: To_Localita 68: To_Mail 69: To_Mansione 70: To_Nazione 71: To_Partiva 72: To_Provincia 73: To_Reparto 74: To_Riferimento 75: To_Tel 76: To_Telnome 77: To_Ufficio 78: To_Valore 79: To_Abitazione 80: Cc_Cap 81: Cc_Cell 82: Cc_Codfis 83: Cc_Codice 84: Cc_Contatti 85: Cc_Email 86: Cc_Fax 87: Cc_Faxnome 88: Cc_Indirizzo 89: Cc_Localita 90: Cc_Mail 91: Cc_Mansione 92: Cc_Nazione 93: Cc_Partiva 94: Cc_Provincia 95: Cc_Reparto 96: Cc_Riferimento 97: Cc_Tel 98: Cc_Telnome 99: Cc_Ufficio 100: Cc_Valore 101: Cc_Abitazione 102: Senders_Cap 103: Senders_Cell 104: Senders_Codfis 105: Senders_Codice 106: Senders_Contatti 107: Senders_Email 108: Senders_Fax 109: Senders_Faxnome 110: Senders_Indirizzo 111: Senders_Localita 112: Senders_Mail 113: Senders_Mansione 114: Senders_Nazione 115: Senders_Partiva 116: Senders_Provincia 117: Senders_Reparto 118: Senders_Riferimento 119: Senders_Tel 120: Senders_Telnome 121: Senders_Ufficio 122: Senders_Valore 123: Senders_Abitazione 124: From_Priorita 125: To_Priorita 126: Cc_Priorita 127: Senders_Priorita 128: Instruction . - /// Position. - /// Sender. - /// Recivier. - public FolderCompositionRuleDetail(int? id = default(int?), int? folderRuleId = default(int?), string fieldId = default(string), int? fieldKind = default(int?), int? position = default(int?), int? from = default(int?), int? to = default(int?)) - { - this.Id = id; - this.FolderRuleId = folderRuleId; - this.FieldId = fieldId; - this.FieldKind = fieldKind; - this.Position = position; - this.From = from; - this.To = to; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Rule Identifier - /// - /// Rule Identifier - [DataMember(Name="folderRuleId", EmitDefaultValue=false)] - public int? FolderRuleId { get; set; } - - /// - /// Field Identifier - /// - /// Field Identifier - [DataMember(Name="fieldId", EmitDefaultValue=false)] - public string FieldId { get; set; } - - /// - /// Possible values: 0: NonImpostato 1: From 2: To 3: Cc 4: Aoo 5: DocumentType 6: DataDoc 7: Numero 8: Oggetto 9: Origine 10: Stato 11: Pratiche 12: Scadenza 13: Importante 14: AbilitaWeb 15: AvviaWorkFlow 16: InviaPerFax 17: InviaPerMail 18: AllegaATaskAttivo 19: InserisciInAssociazione 20: InserisciInFascicolo 21: InserisciInRelazioneManuale 22: GestisciRevisioni 23: Note 24: Allegati 25: Aggiuntivo 26: File 27: Scanner 28: Barcode 29: SicurezzaSingoloDocumento 30: ExternalId 31: AllegaMemo 32: Senders 33: AvviaCollaboration 34: ScansioneImmediata 35: NegaCommuta 36: From_Cap 37: From_Cell 38: From_Codfis 39: From_Codice 40: From_Contatti 41: From_Email 42: From_Fax 43: From_Faxnome 44: From_Indirizzo 45: From_Localita 46: From_Mail 47: From_Mansione 48: From_Nazione 49: From_Partiva 50: From_Provincia 51: From_Reparto 52: From_Riferimento 53: From_Tel 54: From_Telnome 55: From_Ufficio 56: From_Valore 57: From_Abitazione 58: To_Cap 59: To_Cell 60: To_Codfis 61: To_Codice 62: To_Contatti 63: To_Email 64: To_Fax 65: To_Faxnome 66: To_Indirizzo 67: To_Localita 68: To_Mail 69: To_Mansione 70: To_Nazione 71: To_Partiva 72: To_Provincia 73: To_Reparto 74: To_Riferimento 75: To_Tel 76: To_Telnome 77: To_Ufficio 78: To_Valore 79: To_Abitazione 80: Cc_Cap 81: Cc_Cell 82: Cc_Codfis 83: Cc_Codice 84: Cc_Contatti 85: Cc_Email 86: Cc_Fax 87: Cc_Faxnome 88: Cc_Indirizzo 89: Cc_Localita 90: Cc_Mail 91: Cc_Mansione 92: Cc_Nazione 93: Cc_Partiva 94: Cc_Provincia 95: Cc_Reparto 96: Cc_Riferimento 97: Cc_Tel 98: Cc_Telnome 99: Cc_Ufficio 100: Cc_Valore 101: Cc_Abitazione 102: Senders_Cap 103: Senders_Cell 104: Senders_Codfis 105: Senders_Codice 106: Senders_Contatti 107: Senders_Email 108: Senders_Fax 109: Senders_Faxnome 110: Senders_Indirizzo 111: Senders_Localita 112: Senders_Mail 113: Senders_Mansione 114: Senders_Nazione 115: Senders_Partiva 116: Senders_Provincia 117: Senders_Reparto 118: Senders_Riferimento 119: Senders_Tel 120: Senders_Telnome 121: Senders_Ufficio 122: Senders_Valore 123: Senders_Abitazione 124: From_Priorita 125: To_Priorita 126: Cc_Priorita 127: Senders_Priorita 128: Instruction - /// - /// Possible values: 0: NonImpostato 1: From 2: To 3: Cc 4: Aoo 5: DocumentType 6: DataDoc 7: Numero 8: Oggetto 9: Origine 10: Stato 11: Pratiche 12: Scadenza 13: Importante 14: AbilitaWeb 15: AvviaWorkFlow 16: InviaPerFax 17: InviaPerMail 18: AllegaATaskAttivo 19: InserisciInAssociazione 20: InserisciInFascicolo 21: InserisciInRelazioneManuale 22: GestisciRevisioni 23: Note 24: Allegati 25: Aggiuntivo 26: File 27: Scanner 28: Barcode 29: SicurezzaSingoloDocumento 30: ExternalId 31: AllegaMemo 32: Senders 33: AvviaCollaboration 34: ScansioneImmediata 35: NegaCommuta 36: From_Cap 37: From_Cell 38: From_Codfis 39: From_Codice 40: From_Contatti 41: From_Email 42: From_Fax 43: From_Faxnome 44: From_Indirizzo 45: From_Localita 46: From_Mail 47: From_Mansione 48: From_Nazione 49: From_Partiva 50: From_Provincia 51: From_Reparto 52: From_Riferimento 53: From_Tel 54: From_Telnome 55: From_Ufficio 56: From_Valore 57: From_Abitazione 58: To_Cap 59: To_Cell 60: To_Codfis 61: To_Codice 62: To_Contatti 63: To_Email 64: To_Fax 65: To_Faxnome 66: To_Indirizzo 67: To_Localita 68: To_Mail 69: To_Mansione 70: To_Nazione 71: To_Partiva 72: To_Provincia 73: To_Reparto 74: To_Riferimento 75: To_Tel 76: To_Telnome 77: To_Ufficio 78: To_Valore 79: To_Abitazione 80: Cc_Cap 81: Cc_Cell 82: Cc_Codfis 83: Cc_Codice 84: Cc_Contatti 85: Cc_Email 86: Cc_Fax 87: Cc_Faxnome 88: Cc_Indirizzo 89: Cc_Localita 90: Cc_Mail 91: Cc_Mansione 92: Cc_Nazione 93: Cc_Partiva 94: Cc_Provincia 95: Cc_Reparto 96: Cc_Riferimento 97: Cc_Tel 98: Cc_Telnome 99: Cc_Ufficio 100: Cc_Valore 101: Cc_Abitazione 102: Senders_Cap 103: Senders_Cell 104: Senders_Codfis 105: Senders_Codice 106: Senders_Contatti 107: Senders_Email 108: Senders_Fax 109: Senders_Faxnome 110: Senders_Indirizzo 111: Senders_Localita 112: Senders_Mail 113: Senders_Mansione 114: Senders_Nazione 115: Senders_Partiva 116: Senders_Provincia 117: Senders_Reparto 118: Senders_Riferimento 119: Senders_Tel 120: Senders_Telnome 121: Senders_Ufficio 122: Senders_Valore 123: Senders_Abitazione 124: From_Priorita 125: To_Priorita 126: Cc_Priorita 127: Senders_Priorita 128: Instruction - [DataMember(Name="fieldKind", EmitDefaultValue=false)] - public int? FieldKind { get; set; } - - /// - /// Position - /// - /// Position - [DataMember(Name="position", EmitDefaultValue=false)] - public int? Position { get; set; } - - /// - /// Sender - /// - /// Sender - [DataMember(Name="from", EmitDefaultValue=false)] - public int? From { get; set; } - - /// - /// Recivier - /// - /// Recivier - [DataMember(Name="to", EmitDefaultValue=false)] - public int? To { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FolderCompositionRuleDetail {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" FolderRuleId: ").Append(FolderRuleId).Append("\n"); - sb.Append(" FieldId: ").Append(FieldId).Append("\n"); - sb.Append(" FieldKind: ").Append(FieldKind).Append("\n"); - sb.Append(" Position: ").Append(Position).Append("\n"); - sb.Append(" From: ").Append(From).Append("\n"); - sb.Append(" To: ").Append(To).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FolderCompositionRuleDetail); - } - - /// - /// Returns true if FolderCompositionRuleDetail instances are equal - /// - /// Instance of FolderCompositionRuleDetail to be compared - /// Boolean - public bool Equals(FolderCompositionRuleDetail input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.FolderRuleId == input.FolderRuleId || - (this.FolderRuleId != null && - this.FolderRuleId.Equals(input.FolderRuleId)) - ) && - ( - this.FieldId == input.FieldId || - (this.FieldId != null && - this.FieldId.Equals(input.FieldId)) - ) && - ( - this.FieldKind == input.FieldKind || - (this.FieldKind != null && - this.FieldKind.Equals(input.FieldKind)) - ) && - ( - this.Position == input.Position || - (this.Position != null && - this.Position.Equals(input.Position)) - ) && - ( - this.From == input.From || - (this.From != null && - this.From.Equals(input.From)) - ) && - ( - this.To == input.To || - (this.To != null && - this.To.Equals(input.To)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.FolderRuleId != null) - hashCode = hashCode * 59 + this.FolderRuleId.GetHashCode(); - if (this.FieldId != null) - hashCode = hashCode * 59 + this.FieldId.GetHashCode(); - if (this.FieldKind != null) - hashCode = hashCode * 59 + this.FieldKind.GetHashCode(); - if (this.Position != null) - hashCode = hashCode * 59 + this.Position.GetHashCode(); - if (this.From != null) - hashCode = hashCode * 59 + this.From.GetHashCode(); - if (this.To != null) - hashCode = hashCode * 59 + this.To.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FolderDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FolderDTO.cs deleted file mode 100644 index de1aec3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FolderDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Folder - /// - [DataContract] - public partial class FolderDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Parent Identifier. - /// Author. - /// Has Sub-Level Folders. - /// Author Name. - /// Full Path. - /// Creation Date. - /// Name. - /// Possible values: 0: None 1: AutoWithDefaultProfile 2: ManualWithMask . - /// ArxDrive Folder. - public FolderDTO(int? id = default(int?), int? parentId = default(int?), int? author = default(int?), bool? hasChilds = default(bool?), string authorCompleteName = default(string), string fullPath = default(string), DateTime? creationDate = default(DateTime?), string name = default(string), int? archiveMode = default(int?), bool? isArxdriveSynced = default(bool?)) - { - this.Id = id; - this.ParentId = parentId; - this.Author = author; - this.HasChilds = hasChilds; - this.AuthorCompleteName = authorCompleteName; - this.FullPath = fullPath; - this.CreationDate = creationDate; - this.Name = name; - this.ArchiveMode = archiveMode; - this.IsArxdriveSynced = isArxdriveSynced; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Parent Identifier - /// - /// Parent Identifier - [DataMember(Name="parentId", EmitDefaultValue=false)] - public int? ParentId { get; set; } - - /// - /// Author - /// - /// Author - [DataMember(Name="author", EmitDefaultValue=false)] - public int? Author { get; set; } - - /// - /// Has Sub-Level Folders - /// - /// Has Sub-Level Folders - [DataMember(Name="hasChilds", EmitDefaultValue=false)] - public bool? HasChilds { get; set; } - - /// - /// Author Name - /// - /// Author Name - [DataMember(Name="authorCompleteName", EmitDefaultValue=false)] - public string AuthorCompleteName { get; set; } - - /// - /// Full Path - /// - /// Full Path - [DataMember(Name="fullPath", EmitDefaultValue=false)] - public string FullPath { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Possible values: 0: None 1: AutoWithDefaultProfile 2: ManualWithMask - /// - /// Possible values: 0: None 1: AutoWithDefaultProfile 2: ManualWithMask - [DataMember(Name="archiveMode", EmitDefaultValue=false)] - public int? ArchiveMode { get; set; } - - /// - /// ArxDrive Folder - /// - /// ArxDrive Folder - [DataMember(Name="isArxdriveSynced", EmitDefaultValue=false)] - public bool? IsArxdriveSynced { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FolderDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ParentId: ").Append(ParentId).Append("\n"); - sb.Append(" Author: ").Append(Author).Append("\n"); - sb.Append(" HasChilds: ").Append(HasChilds).Append("\n"); - sb.Append(" AuthorCompleteName: ").Append(AuthorCompleteName).Append("\n"); - sb.Append(" FullPath: ").Append(FullPath).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ArchiveMode: ").Append(ArchiveMode).Append("\n"); - sb.Append(" IsArxdriveSynced: ").Append(IsArxdriveSynced).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FolderDTO); - } - - /// - /// Returns true if FolderDTO instances are equal - /// - /// Instance of FolderDTO to be compared - /// Boolean - public bool Equals(FolderDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ParentId == input.ParentId || - (this.ParentId != null && - this.ParentId.Equals(input.ParentId)) - ) && - ( - this.Author == input.Author || - (this.Author != null && - this.Author.Equals(input.Author)) - ) && - ( - this.HasChilds == input.HasChilds || - (this.HasChilds != null && - this.HasChilds.Equals(input.HasChilds)) - ) && - ( - this.AuthorCompleteName == input.AuthorCompleteName || - (this.AuthorCompleteName != null && - this.AuthorCompleteName.Equals(input.AuthorCompleteName)) - ) && - ( - this.FullPath == input.FullPath || - (this.FullPath != null && - this.FullPath.Equals(input.FullPath)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.ArchiveMode == input.ArchiveMode || - (this.ArchiveMode != null && - this.ArchiveMode.Equals(input.ArchiveMode)) - ) && - ( - this.IsArxdriveSynced == input.IsArxdriveSynced || - (this.IsArxdriveSynced != null && - this.IsArxdriveSynced.Equals(input.IsArxdriveSynced)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ParentId != null) - hashCode = hashCode * 59 + this.ParentId.GetHashCode(); - if (this.Author != null) - hashCode = hashCode * 59 + this.Author.GetHashCode(); - if (this.HasChilds != null) - hashCode = hashCode * 59 + this.HasChilds.GetHashCode(); - if (this.AuthorCompleteName != null) - hashCode = hashCode * 59 + this.AuthorCompleteName.GetHashCode(); - if (this.FullPath != null) - hashCode = hashCode * 59 + this.FullPath.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.ArchiveMode != null) - hashCode = hashCode * 59 + this.ArchiveMode.GetHashCode(); - if (this.IsArxdriveSynced != null) - hashCode = hashCode * 59 + this.IsArxdriveSynced.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FolderFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FolderFieldDTO.cs deleted file mode 100644 index fe6825d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FolderFieldDTO.cs +++ /dev/null @@ -1,131 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// FolderFieldDTO - /// - [DataContract] - public partial class FolderFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FolderFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// value. - public FolderFieldDTO(FolderDTO value = default(FolderDTO), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FolderFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public FolderDTO Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FolderFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FolderFieldDTO); - } - - /// - /// Returns true if FolderFieldDTO instances are equal - /// - /// Instance of FolderFieldDTO to be compared - /// Boolean - public bool Equals(FolderFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FolderPermissionsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FolderPermissionsDTO.cs deleted file mode 100644 index 09667ff..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FolderPermissionsDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of folder permission - /// - [DataContract] - public partial class FolderPermissionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Spread to sub-levels folders. - /// List of user permissions. - /// Permission Properties. - public FolderPermissionsDTO(bool? spread = default(bool?), List usersPermissions = default(List), List permissionsProperties = default(List)) - { - this.Spread = spread; - this.UsersPermissions = usersPermissions; - this.PermissionsProperties = permissionsProperties; - } - - /// - /// Spread to sub-levels folders - /// - /// Spread to sub-levels folders - [DataMember(Name="spread", EmitDefaultValue=false)] - public bool? Spread { get; set; } - - /// - /// List of user permissions - /// - /// List of user permissions - [DataMember(Name="usersPermissions", EmitDefaultValue=false)] - public List UsersPermissions { get; set; } - - /// - /// Permission Properties - /// - /// Permission Properties - [DataMember(Name="permissionsProperties", EmitDefaultValue=false)] - public List PermissionsProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FolderPermissionsDTO {\n"); - sb.Append(" Spread: ").Append(Spread).Append("\n"); - sb.Append(" UsersPermissions: ").Append(UsersPermissions).Append("\n"); - sb.Append(" PermissionsProperties: ").Append(PermissionsProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FolderPermissionsDTO); - } - - /// - /// Returns true if FolderPermissionsDTO instances are equal - /// - /// Instance of FolderPermissionsDTO to be compared - /// Boolean - public bool Equals(FolderPermissionsDTO input) - { - if (input == null) - return false; - - return - ( - this.Spread == input.Spread || - (this.Spread != null && - this.Spread.Equals(input.Spread)) - ) && - ( - this.UsersPermissions == input.UsersPermissions || - this.UsersPermissions != null && - this.UsersPermissions.SequenceEqual(input.UsersPermissions) - ) && - ( - this.PermissionsProperties == input.PermissionsProperties || - this.PermissionsProperties != null && - this.PermissionsProperties.SequenceEqual(input.PermissionsProperties) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Spread != null) - hashCode = hashCode * 59 + this.Spread.GetHashCode(); - if (this.UsersPermissions != null) - hashCode = hashCode * 59 + this.UsersPermissions.GetHashCode(); - if (this.PermissionsProperties != null) - hashCode = hashCode * 59 + this.PermissionsProperties.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FromFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FromFieldDTO.cs deleted file mode 100644 index e416a47..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FromFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of sender contact field - /// - [DataContract] - public partial class FromFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FromFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - public FromFieldDTO(UserProfileDTO value = default(UserProfileDTO), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FromFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public UserProfileDTO Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FromFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FromFieldDTO); - } - - /// - /// Returns true if FromFieldDTO instances are equal - /// - /// Instance of FromFieldDTO to be compared - /// Boolean - public bool Equals(FromFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FullIndexSearchRequestDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/FullIndexSearchRequestDto.cs deleted file mode 100644 index b810798..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FullIndexSearchRequestDto.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of request for full index search - /// - [DataContract] - public partial class FullIndexSearchRequestDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Filter. - /// Select filter. - public FullIndexSearchRequestDto(string filterText = default(string), SelectDTO selectFilterDto = default(SelectDTO)) - { - this.FilterText = filterText; - this.SelectFilterDto = selectFilterDto; - } - - /// - /// Filter - /// - /// Filter - [DataMember(Name="filterText", EmitDefaultValue=false)] - public string FilterText { get; set; } - - /// - /// Select filter - /// - /// Select filter - [DataMember(Name="selectFilterDto", EmitDefaultValue=false)] - public SelectDTO SelectFilterDto { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FullIndexSearchRequestDto {\n"); - sb.Append(" FilterText: ").Append(FilterText).Append("\n"); - sb.Append(" SelectFilterDto: ").Append(SelectFilterDto).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FullIndexSearchRequestDto); - } - - /// - /// Returns true if FullIndexSearchRequestDto instances are equal - /// - /// Instance of FullIndexSearchRequestDto to be compared - /// Boolean - public bool Equals(FullIndexSearchRequestDto input) - { - if (input == null) - return false; - - return - ( - this.FilterText == input.FilterText || - (this.FilterText != null && - this.FilterText.Equals(input.FilterText)) - ) && - ( - this.SelectFilterDto == input.SelectFilterDto || - (this.SelectFilterDto != null && - this.SelectFilterDto.Equals(input.SelectFilterDto)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.FilterText != null) - hashCode = hashCode * 59 + this.FilterText.GetHashCode(); - if (this.SelectFilterDto != null) - hashCode = hashCode * 59 + this.SelectFilterDto.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/FullTextDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/FullTextDTO.cs deleted file mode 100644 index bc5da0e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/FullTextDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Full Text Item - /// - [DataContract] - public partial class FullTextDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Document Identifier. - /// Revision Number. - /// Text recognition by the OCR operation. - public FullTextDTO(int? id = default(int?), int? docnumber = default(int?), int? revision = default(int?), string text = default(string)) - { - this.Id = id; - this.Docnumber = docnumber; - this.Revision = revision; - this.Text = text; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Revision Number - /// - /// Revision Number - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Text recognition by the OCR operation - /// - /// Text recognition by the OCR operation - [DataMember(Name="text", EmitDefaultValue=false)] - public string Text { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FullTextDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" Text: ").Append(Text).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FullTextDTO); - } - - /// - /// Returns true if FullTextDTO instances are equal - /// - /// Instance of FullTextDTO to be compared - /// Boolean - public bool Equals(FullTextDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.Text == input.Text || - (this.Text != null && - this.Text.Equals(input.Text)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.Text != null) - hashCode = hashCode * 59 + this.Text.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/GenericItemDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/GenericItemDTO.cs deleted file mode 100644 index a5fa444..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/GenericItemDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of generic item - /// - [DataContract] - public partial class GenericItemDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Table Type. - /// Description. - /// Additional Field. - /// User Name. - public GenericItemDTO(string itemId = default(string), int? itemType = default(int?), string description = default(string), string addtionalInfo = default(string), string userDescription = default(string)) - { - this.ItemId = itemId; - this.ItemType = itemType; - this.Description = description; - this.AddtionalInfo = addtionalInfo; - this.UserDescription = userDescription; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="itemId", EmitDefaultValue=false)] - public string ItemId { get; set; } - - /// - /// Table Type - /// - /// Table Type - [DataMember(Name="itemType", EmitDefaultValue=false)] - public int? ItemType { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Additional Field - /// - /// Additional Field - [DataMember(Name="addtionalInfo", EmitDefaultValue=false)] - public string AddtionalInfo { get; set; } - - /// - /// User Name - /// - /// User Name - [DataMember(Name="userDescription", EmitDefaultValue=false)] - public string UserDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class GenericItemDTO {\n"); - sb.Append(" ItemId: ").Append(ItemId).Append("\n"); - sb.Append(" ItemType: ").Append(ItemType).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" AddtionalInfo: ").Append(AddtionalInfo).Append("\n"); - sb.Append(" UserDescription: ").Append(UserDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as GenericItemDTO); - } - - /// - /// Returns true if GenericItemDTO instances are equal - /// - /// Instance of GenericItemDTO to be compared - /// Boolean - public bool Equals(GenericItemDTO input) - { - if (input == null) - return false; - - return - ( - this.ItemId == input.ItemId || - (this.ItemId != null && - this.ItemId.Equals(input.ItemId)) - ) && - ( - this.ItemType == input.ItemType || - (this.ItemType != null && - this.ItemType.Equals(input.ItemType)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.AddtionalInfo == input.AddtionalInfo || - (this.AddtionalInfo != null && - this.AddtionalInfo.Equals(input.AddtionalInfo)) - ) && - ( - this.UserDescription == input.UserDescription || - (this.UserDescription != null && - this.UserDescription.Equals(input.UserDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ItemId != null) - hashCode = hashCode * 59 + this.ItemId.GetHashCode(); - if (this.ItemType != null) - hashCode = hashCode * 59 + this.ItemType.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.AddtionalInfo != null) - hashCode = hashCode * 59 + this.AddtionalInfo.GetHashCode(); - if (this.UserDescription != null) - hashCode = hashCode * 59 + this.UserDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/GenericKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/GenericKeyValueDTO.cs deleted file mode 100644 index e86213d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/GenericKeyValueDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Generic key value - /// - [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] - [JsonSubtypes.KnownSubType(typeof(DecimalKeyValueDTO), "DecimalKeyValueDTO")] - [JsonSubtypes.KnownSubType(typeof(DateTimeKeyValueDTO), "DateTimeKeyValueDTO")] - [JsonSubtypes.KnownSubType(typeof(StringKeyValueDTO), "StringKeyValueDTO")] - [JsonSubtypes.KnownSubType(typeof(GuidKeyValueDTO), "GuidKeyValueDTO")] - [JsonSubtypes.KnownSubType(typeof(DoubleKeyValueDTO), "DoubleKeyValueDTO")] - [JsonSubtypes.KnownSubType(typeof(BooleanKeyValueDTO), "BooleanKeyValueDTO")] - [JsonSubtypes.KnownSubType(typeof(ArrayKeyValueDTO), "ArrayKeyValueDTO")] - [JsonSubtypes.KnownSubType(typeof(NullKeyValueDTO), "NullKeyValueDTO")] - [JsonSubtypes.KnownSubType(typeof(IntKeyValueDTO), "IntKeyValueDTO")] - public partial class GenericKeyValueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected GenericKeyValueDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// ClassName (required). - /// Key. - public GenericKeyValueDTO(string className = default(string), string key = default(string)) - { - // to ensure "className" is required (not null) - if (className == null) - { - throw new InvalidDataException("className is a required property for GenericKeyValueDTO and cannot be null"); - } - else - { - this.ClassName = className; - } - this.Key = key; - } - - /// - /// ClassName - /// - /// ClassName - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Key - /// - /// Key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class GenericKeyValueDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as GenericKeyValueDTO); - } - - /// - /// Returns true if GenericKeyValueDTO instances are equal - /// - /// Instance of GenericKeyValueDTO to be compared - /// Boolean - public bool Equals(GenericKeyValueDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/GetByDocumentTypeRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/GetByDocumentTypeRequestDTO.cs deleted file mode 100644 index 4716cad..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/GetByDocumentTypeRequestDTO.cs +++ /dev/null @@ -1,124 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// GetByDocumentTypeRequestDTO - /// - [DataContract] - public partial class GetByDocumentTypeRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// documentTypeCode. - public GetByDocumentTypeRequestDTO(string documentTypeCode = default(string)) - { - this.DocumentTypeCode = documentTypeCode; - } - - /// - /// Gets or Sets DocumentTypeCode - /// - [DataMember(Name="documentTypeCode", EmitDefaultValue=false)] - public string DocumentTypeCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class GetByDocumentTypeRequestDTO {\n"); - sb.Append(" DocumentTypeCode: ").Append(DocumentTypeCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as GetByDocumentTypeRequestDTO); - } - - /// - /// Returns true if GetByDocumentTypeRequestDTO instances are equal - /// - /// Instance of GetByDocumentTypeRequestDTO to be compared - /// Boolean - public bool Equals(GetByDocumentTypeRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.DocumentTypeCode == input.DocumentTypeCode || - (this.DocumentTypeCode != null && - this.DocumentTypeCode.Equals(input.DocumentTypeCode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentTypeCode != null) - hashCode = hashCode * 59 + this.DocumentTypeCode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/GetNewSharingRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/GetNewSharingRequestDTO.cs deleted file mode 100644 index f0974d2..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/GetNewSharingRequestDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// GetNewSharingRequestDTO - /// - [DataContract] - public partial class GetNewSharingRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// businessUnitCode. - /// documentTypeSystemId. - public GetNewSharingRequestDTO(string businessUnitCode = default(string), int? documentTypeSystemId = default(int?)) - { - this.BusinessUnitCode = businessUnitCode; - this.DocumentTypeSystemId = documentTypeSystemId; - } - - /// - /// Gets or Sets BusinessUnitCode - /// - [DataMember(Name="businessUnitCode", EmitDefaultValue=false)] - public string BusinessUnitCode { get; set; } - - /// - /// Gets or Sets DocumentTypeSystemId - /// - [DataMember(Name="documentTypeSystemId", EmitDefaultValue=false)] - public int? DocumentTypeSystemId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class GetNewSharingRequestDTO {\n"); - sb.Append(" BusinessUnitCode: ").Append(BusinessUnitCode).Append("\n"); - sb.Append(" DocumentTypeSystemId: ").Append(DocumentTypeSystemId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as GetNewSharingRequestDTO); - } - - /// - /// Returns true if GetNewSharingRequestDTO instances are equal - /// - /// Instance of GetNewSharingRequestDTO to be compared - /// Boolean - public bool Equals(GetNewSharingRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.BusinessUnitCode == input.BusinessUnitCode || - (this.BusinessUnitCode != null && - this.BusinessUnitCode.Equals(input.BusinessUnitCode)) - ) && - ( - this.DocumentTypeSystemId == input.DocumentTypeSystemId || - (this.DocumentTypeSystemId != null && - this.DocumentTypeSystemId.Equals(input.DocumentTypeSystemId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.BusinessUnitCode != null) - hashCode = hashCode * 59 + this.BusinessUnitCode.GetHashCode(); - if (this.DocumentTypeSystemId != null) - hashCode = hashCode * 59 + this.DocumentTypeSystemId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/GetQueueInfoDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/GetQueueInfoDto.cs deleted file mode 100644 index f7da890..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/GetQueueInfoDto.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of queue information - /// - [DataContract] - public partial class GetQueueInfoDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Start Date. - /// Type Name. - /// Start Item. - /// Count. - public GetQueueInfoDto(DateTime? dateFrom = default(DateTime?), string typeFullName = default(string), int? startItem = default(int?), int? count = default(int?)) - { - this.DateFrom = dateFrom; - this.TypeFullName = typeFullName; - this.StartItem = startItem; - this.Count = count; - } - - /// - /// Start Date - /// - /// Start Date - [DataMember(Name="dateFrom", EmitDefaultValue=false)] - public DateTime? DateFrom { get; set; } - - /// - /// Type Name - /// - /// Type Name - [DataMember(Name="typeFullName", EmitDefaultValue=false)] - public string TypeFullName { get; set; } - - /// - /// Start Item - /// - /// Start Item - [DataMember(Name="startItem", EmitDefaultValue=false)] - public int? StartItem { get; set; } - - /// - /// Count - /// - /// Count - [DataMember(Name="count", EmitDefaultValue=false)] - public int? Count { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class GetQueueInfoDto {\n"); - sb.Append(" DateFrom: ").Append(DateFrom).Append("\n"); - sb.Append(" TypeFullName: ").Append(TypeFullName).Append("\n"); - sb.Append(" StartItem: ").Append(StartItem).Append("\n"); - sb.Append(" Count: ").Append(Count).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as GetQueueInfoDto); - } - - /// - /// Returns true if GetQueueInfoDto instances are equal - /// - /// Instance of GetQueueInfoDto to be compared - /// Boolean - public bool Equals(GetQueueInfoDto input) - { - if (input == null) - return false; - - return - ( - this.DateFrom == input.DateFrom || - (this.DateFrom != null && - this.DateFrom.Equals(input.DateFrom)) - ) && - ( - this.TypeFullName == input.TypeFullName || - (this.TypeFullName != null && - this.TypeFullName.Equals(input.TypeFullName)) - ) && - ( - this.StartItem == input.StartItem || - (this.StartItem != null && - this.StartItem.Equals(input.StartItem)) - ) && - ( - this.Count == input.Count || - (this.Count != null && - this.Count.Equals(input.Count)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DateFrom != null) - hashCode = hashCode * 59 + this.DateFrom.GetHashCode(); - if (this.TypeFullName != null) - hashCode = hashCode * 59 + this.TypeFullName.GetHashCode(); - if (this.StartItem != null) - hashCode = hashCode * 59 + this.StartItem.GetHashCode(); - if (this.Count != null) - hashCode = hashCode * 59 + this.Count.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/GetQueueJobInfoDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/GetQueueJobInfoDto.cs deleted file mode 100644 index 69df601..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/GetQueueJobInfoDto.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// GetQueueJobInfoDto - /// - [DataContract] - public partial class GetQueueJobInfoDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Awaiting 1: Deleted 2: Enqueued 3: Failed 4: Processing 5: Scheduled 6: SucceededKo 7: SucceededOk . - /// Possible values: 0: Work 1: WorkItem 2: End . - /// startItem. - /// count. - public GetQueueJobInfoDto(int? jobStateEnum = default(int?), int? queueMethod = default(int?), int? startItem = default(int?), int? count = default(int?)) - { - this.JobStateEnum = jobStateEnum; - this.QueueMethod = queueMethod; - this.StartItem = startItem; - this.Count = count; - } - - /// - /// Possible values: 0: Awaiting 1: Deleted 2: Enqueued 3: Failed 4: Processing 5: Scheduled 6: SucceededKo 7: SucceededOk - /// - /// Possible values: 0: Awaiting 1: Deleted 2: Enqueued 3: Failed 4: Processing 5: Scheduled 6: SucceededKo 7: SucceededOk - [DataMember(Name="jobStateEnum", EmitDefaultValue=false)] - public int? JobStateEnum { get; set; } - - /// - /// Possible values: 0: Work 1: WorkItem 2: End - /// - /// Possible values: 0: Work 1: WorkItem 2: End - [DataMember(Name="queueMethod", EmitDefaultValue=false)] - public int? QueueMethod { get; set; } - - /// - /// Gets or Sets StartItem - /// - [DataMember(Name="startItem", EmitDefaultValue=false)] - public int? StartItem { get; set; } - - /// - /// Gets or Sets Count - /// - [DataMember(Name="count", EmitDefaultValue=false)] - public int? Count { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class GetQueueJobInfoDto {\n"); - sb.Append(" JobStateEnum: ").Append(JobStateEnum).Append("\n"); - sb.Append(" QueueMethod: ").Append(QueueMethod).Append("\n"); - sb.Append(" StartItem: ").Append(StartItem).Append("\n"); - sb.Append(" Count: ").Append(Count).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as GetQueueJobInfoDto); - } - - /// - /// Returns true if GetQueueJobInfoDto instances are equal - /// - /// Instance of GetQueueJobInfoDto to be compared - /// Boolean - public bool Equals(GetQueueJobInfoDto input) - { - if (input == null) - return false; - - return - ( - this.JobStateEnum == input.JobStateEnum || - (this.JobStateEnum != null && - this.JobStateEnum.Equals(input.JobStateEnum)) - ) && - ( - this.QueueMethod == input.QueueMethod || - (this.QueueMethod != null && - this.QueueMethod.Equals(input.QueueMethod)) - ) && - ( - this.StartItem == input.StartItem || - (this.StartItem != null && - this.StartItem.Equals(input.StartItem)) - ) && - ( - this.Count == input.Count || - (this.Count != null && - this.Count.Equals(input.Count)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.JobStateEnum != null) - hashCode = hashCode * 59 + this.JobStateEnum.GetHashCode(); - if (this.QueueMethod != null) - hashCode = hashCode * 59 + this.QueueMethod.GetHashCode(); - if (this.StartItem != null) - hashCode = hashCode * 59 + this.StartItem.GetHashCode(); - if (this.Count != null) - hashCode = hashCode * 59 + this.Count.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO.cs deleted file mode 100644 index 7b5ec31..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO - /// - [DataContract] - public partial class GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// aooCode. - /// documentTypeSystemId. - public GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO(string aooCode = default(string), int? documentTypeSystemId = default(int?)) - { - this.AooCode = aooCode; - this.DocumentTypeSystemId = documentTypeSystemId; - } - - /// - /// Gets or Sets AooCode - /// - [DataMember(Name="aooCode", EmitDefaultValue=false)] - public string AooCode { get; set; } - - /// - /// Gets or Sets DocumentTypeSystemId - /// - [DataMember(Name="documentTypeSystemId", EmitDefaultValue=false)] - public int? DocumentTypeSystemId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO {\n"); - sb.Append(" AooCode: ").Append(AooCode).Append("\n"); - sb.Append(" DocumentTypeSystemId: ").Append(DocumentTypeSystemId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO); - } - - /// - /// Returns true if GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO instances are equal - /// - /// Instance of GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO to be compared - /// Boolean - public bool Equals(GetSharingDefinitionsByDocumentTypeIdAndAooCodeRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.AooCode == input.AooCode || - (this.AooCode != null && - this.AooCode.Equals(input.AooCode)) - ) && - ( - this.DocumentTypeSystemId == input.DocumentTypeSystemId || - (this.DocumentTypeSystemId != null && - this.DocumentTypeSystemId.Equals(input.DocumentTypeSystemId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AooCode != null) - hashCode = hashCode * 59 + this.AooCode.GetHashCode(); - if (this.DocumentTypeSystemId != null) - hashCode = hashCode * 59 + this.DocumentTypeSystemId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/GroupModelDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/GroupModelDTO.cs deleted file mode 100644 index 8182e51..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/GroupModelDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of group model - /// - [DataContract] - public partial class GroupModelDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// User Identifier. - /// Name. - public GroupModelDTO(int? id = default(int?), int? user = default(int?), string name = default(string)) - { - this.Id = id; - this.User = user; - this.Name = name; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// User Identifier - /// - /// User Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class GroupModelDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as GroupModelDTO); - } - - /// - /// Returns true if GroupModelDTO instances are equal - /// - /// Instance of GroupModelDTO to be compared - /// Boolean - public bool Equals(GroupModelDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/GuidKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/GuidKeyValueDTO.cs deleted file mode 100644 index 665d831..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/GuidKeyValueDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Guid key value - /// - [DataContract] - public partial class GuidKeyValueDTO : GenericKeyValueDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected GuidKeyValueDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - public GuidKeyValueDTO(Guid? value = default(Guid?), string className = "GuidKeyValueDTO", string key = default(string)) : base(className, key) - { - this.Value = value; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public Guid? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class GuidKeyValueDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as GuidKeyValueDTO); - } - - /// - /// Returns true if GuidKeyValueDTO instances are equal - /// - /// Instance of GuidKeyValueDTO to be compared - /// Boolean - public bool Equals(GuidKeyValueDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/IdValuePairDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/IdValuePairDTO.cs deleted file mode 100644 index 584eef9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/IdValuePairDTO.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// IdValuePairDTO - /// - [DataContract] - public partial class IdValuePairDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// value. - /// type. - public IdValuePairDTO(string id = default(string), string value = default(string), string type = default(string)) - { - this.Id = id; - this.Value = value; - this.Type = type; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="type", EmitDefaultValue=false)] - public string Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IdValuePairDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IdValuePairDTO); - } - - /// - /// Returns true if IdValuePairDTO instances are equal - /// - /// Instance of IdValuePairDTO to be compared - /// Boolean - public bool Equals(IdValuePairDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/IdentityInfoDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/IdentityInfoDto.cs deleted file mode 100644 index ca47e11..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/IdentityInfoDto.cs +++ /dev/null @@ -1,380 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Authenticated user info - /// - [DataContract] - public partial class IdentityInfoDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Authentication type (i.e. ApplicationCookie, Bearer). - /// Client id. - /// User id. - /// User name. - /// User type. - /// User aoo. - /// User role. - /// User language. - /// Grantor user id. - /// Grantor user name. - /// Grantor user aoo. - /// Grantor user role. - /// Expiration time. - /// Issued time. - /// ARXivar version. - /// Claims info. - public IdentityInfoDto(string authenticationType = default(string), string clientId = default(string), string userId = default(string), string userName = default(string), string userType = default(string), string userAoo = default(string), string userRole = default(string), string lang = default(string), string grantorUserId = default(string), string grantorUserName = default(string), string grantorUserAoo = default(string), string grantorUserRole = default(string), DateTime? expiresUtc = default(DateTime?), DateTime? issuedUtc = default(DateTime?), string version = default(string), List claimInfoList = default(List)) - { - this.AuthenticationType = authenticationType; - this.ClientId = clientId; - this.UserId = userId; - this.UserName = userName; - this.UserType = userType; - this.UserAoo = userAoo; - this.UserRole = userRole; - this.Lang = lang; - this.GrantorUserId = grantorUserId; - this.GrantorUserName = grantorUserName; - this.GrantorUserAoo = grantorUserAoo; - this.GrantorUserRole = grantorUserRole; - this.ExpiresUtc = expiresUtc; - this.IssuedUtc = issuedUtc; - this.Version = version; - this.ClaimInfoList = claimInfoList; - } - - /// - /// Authentication type (i.e. ApplicationCookie, Bearer) - /// - /// Authentication type (i.e. ApplicationCookie, Bearer) - [DataMember(Name="authenticationType", EmitDefaultValue=false)] - public string AuthenticationType { get; set; } - - /// - /// Client id - /// - /// Client id - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// User id - /// - /// User id - [DataMember(Name="userId", EmitDefaultValue=false)] - public string UserId { get; set; } - - /// - /// User name - /// - /// User name - [DataMember(Name="userName", EmitDefaultValue=false)] - public string UserName { get; set; } - - /// - /// User type - /// - /// User type - [DataMember(Name="userType", EmitDefaultValue=false)] - public string UserType { get; set; } - - /// - /// User aoo - /// - /// User aoo - [DataMember(Name="userAoo", EmitDefaultValue=false)] - public string UserAoo { get; set; } - - /// - /// User role - /// - /// User role - [DataMember(Name="userRole", EmitDefaultValue=false)] - public string UserRole { get; set; } - - /// - /// User language - /// - /// User language - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Grantor user id - /// - /// Grantor user id - [DataMember(Name="grantorUserId", EmitDefaultValue=false)] - public string GrantorUserId { get; set; } - - /// - /// Grantor user name - /// - /// Grantor user name - [DataMember(Name="grantorUserName", EmitDefaultValue=false)] - public string GrantorUserName { get; set; } - - /// - /// Grantor user aoo - /// - /// Grantor user aoo - [DataMember(Name="grantorUserAoo", EmitDefaultValue=false)] - public string GrantorUserAoo { get; set; } - - /// - /// Grantor user role - /// - /// Grantor user role - [DataMember(Name="grantorUserRole", EmitDefaultValue=false)] - public string GrantorUserRole { get; set; } - - /// - /// Expiration time - /// - /// Expiration time - [DataMember(Name="expiresUtc", EmitDefaultValue=false)] - public DateTime? ExpiresUtc { get; set; } - - /// - /// Issued time - /// - /// Issued time - [DataMember(Name="issuedUtc", EmitDefaultValue=false)] - public DateTime? IssuedUtc { get; set; } - - /// - /// ARXivar version - /// - /// ARXivar version - [DataMember(Name="version", EmitDefaultValue=false)] - public string Version { get; set; } - - /// - /// Claims info - /// - /// Claims info - [DataMember(Name="claimInfoList", EmitDefaultValue=false)] - public List ClaimInfoList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IdentityInfoDto {\n"); - sb.Append(" AuthenticationType: ").Append(AuthenticationType).Append("\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" UserName: ").Append(UserName).Append("\n"); - sb.Append(" UserType: ").Append(UserType).Append("\n"); - sb.Append(" UserAoo: ").Append(UserAoo).Append("\n"); - sb.Append(" UserRole: ").Append(UserRole).Append("\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append(" GrantorUserId: ").Append(GrantorUserId).Append("\n"); - sb.Append(" GrantorUserName: ").Append(GrantorUserName).Append("\n"); - sb.Append(" GrantorUserAoo: ").Append(GrantorUserAoo).Append("\n"); - sb.Append(" GrantorUserRole: ").Append(GrantorUserRole).Append("\n"); - sb.Append(" ExpiresUtc: ").Append(ExpiresUtc).Append("\n"); - sb.Append(" IssuedUtc: ").Append(IssuedUtc).Append("\n"); - sb.Append(" Version: ").Append(Version).Append("\n"); - sb.Append(" ClaimInfoList: ").Append(ClaimInfoList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IdentityInfoDto); - } - - /// - /// Returns true if IdentityInfoDto instances are equal - /// - /// Instance of IdentityInfoDto to be compared - /// Boolean - public bool Equals(IdentityInfoDto input) - { - if (input == null) - return false; - - return - ( - this.AuthenticationType == input.AuthenticationType || - (this.AuthenticationType != null && - this.AuthenticationType.Equals(input.AuthenticationType)) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.UserName == input.UserName || - (this.UserName != null && - this.UserName.Equals(input.UserName)) - ) && - ( - this.UserType == input.UserType || - (this.UserType != null && - this.UserType.Equals(input.UserType)) - ) && - ( - this.UserAoo == input.UserAoo || - (this.UserAoo != null && - this.UserAoo.Equals(input.UserAoo)) - ) && - ( - this.UserRole == input.UserRole || - (this.UserRole != null && - this.UserRole.Equals(input.UserRole)) - ) && - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ) && - ( - this.GrantorUserId == input.GrantorUserId || - (this.GrantorUserId != null && - this.GrantorUserId.Equals(input.GrantorUserId)) - ) && - ( - this.GrantorUserName == input.GrantorUserName || - (this.GrantorUserName != null && - this.GrantorUserName.Equals(input.GrantorUserName)) - ) && - ( - this.GrantorUserAoo == input.GrantorUserAoo || - (this.GrantorUserAoo != null && - this.GrantorUserAoo.Equals(input.GrantorUserAoo)) - ) && - ( - this.GrantorUserRole == input.GrantorUserRole || - (this.GrantorUserRole != null && - this.GrantorUserRole.Equals(input.GrantorUserRole)) - ) && - ( - this.ExpiresUtc == input.ExpiresUtc || - (this.ExpiresUtc != null && - this.ExpiresUtc.Equals(input.ExpiresUtc)) - ) && - ( - this.IssuedUtc == input.IssuedUtc || - (this.IssuedUtc != null && - this.IssuedUtc.Equals(input.IssuedUtc)) - ) && - ( - this.Version == input.Version || - (this.Version != null && - this.Version.Equals(input.Version)) - ) && - ( - this.ClaimInfoList == input.ClaimInfoList || - this.ClaimInfoList != null && - this.ClaimInfoList.SequenceEqual(input.ClaimInfoList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AuthenticationType != null) - hashCode = hashCode * 59 + this.AuthenticationType.GetHashCode(); - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.UserName != null) - hashCode = hashCode * 59 + this.UserName.GetHashCode(); - if (this.UserType != null) - hashCode = hashCode * 59 + this.UserType.GetHashCode(); - if (this.UserAoo != null) - hashCode = hashCode * 59 + this.UserAoo.GetHashCode(); - if (this.UserRole != null) - hashCode = hashCode * 59 + this.UserRole.GetHashCode(); - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - if (this.GrantorUserId != null) - hashCode = hashCode * 59 + this.GrantorUserId.GetHashCode(); - if (this.GrantorUserName != null) - hashCode = hashCode * 59 + this.GrantorUserName.GetHashCode(); - if (this.GrantorUserAoo != null) - hashCode = hashCode * 59 + this.GrantorUserAoo.GetHashCode(); - if (this.GrantorUserRole != null) - hashCode = hashCode * 59 + this.GrantorUserRole.GetHashCode(); - if (this.ExpiresUtc != null) - hashCode = hashCode * 59 + this.ExpiresUtc.GetHashCode(); - if (this.IssuedUtc != null) - hashCode = hashCode * 59 + this.IssuedUtc.GetHashCode(); - if (this.Version != null) - hashCode = hashCode * 59 + this.Version.GetHashCode(); - if (this.ClaimInfoList != null) - hashCode = hashCode * 59 + this.ClaimInfoList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ImportantFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ImportantFieldDTO.cs deleted file mode 100644 index 70a8d6c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ImportantFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Important class - /// - [DataContract] - public partial class ImportantFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ImportantFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Important value. - public ImportantFieldDTO(bool? value = default(bool?), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "ImportantFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Important value - /// - /// Important value - [DataMember(Name="value", EmitDefaultValue=false)] - public bool? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ImportantFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ImportantFieldDTO); - } - - /// - /// Returns true if ImportantFieldDTO instances are equal - /// - /// Instance of ImportantFieldDTO to be compared - /// Boolean - public bool Equals(ImportantFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/InfoDocumentResponseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/InfoDocumentResponseDTO.cs deleted file mode 100644 index 7e6e5f0..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/InfoDocumentResponseDTO.cs +++ /dev/null @@ -1,243 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Document info for external app request - /// - [DataContract] - public partial class InfoDocumentResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// profileSchema. - /// If the document has already been closed. - /// Profile System Id. - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_CONV_MESSAGES 173: DM_CONVERSATION 174: DM_MAILWF_ARCHIVE . - /// Docnumber [DM_PROFILE (14)] or ProcessDocId [DM_PROCESSDOC (74)]. - /// TaskId in case of Table = DM_PROCESSDOC (74). - /// Deve essere specificata la scelta di profilazione al momento dell'update del checkin del documento. - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite . - public InfoDocumentResponseDTO(EditProfileSchemaDTO profileSchema = default(EditProfileSchemaDTO), DateTime? closeDate = default(DateTime?), int? docnumber = default(int?), int? table = default(int?), int? documentId = default(int?), int? documentExtraId = default(int?), bool? updateOptionRequired = default(bool?), int? defaultUpdateOption = default(int?)) - { - this.ProfileSchema = profileSchema; - this.CloseDate = closeDate; - this.Docnumber = docnumber; - this.Table = table; - this.DocumentId = documentId; - this.DocumentExtraId = documentExtraId; - this.UpdateOptionRequired = updateOptionRequired; - this.DefaultUpdateOption = defaultUpdateOption; - } - - /// - /// Gets or Sets ProfileSchema - /// - [DataMember(Name="profileSchema", EmitDefaultValue=false)] - public EditProfileSchemaDTO ProfileSchema { get; set; } - - /// - /// If the document has already been closed - /// - /// If the document has already been closed - [DataMember(Name="closeDate", EmitDefaultValue=false)] - public DateTime? CloseDate { get; set; } - - /// - /// Profile System Id - /// - /// Profile System Id - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_CONV_MESSAGES 173: DM_CONVERSATION 174: DM_MAILWF_ARCHIVE - /// - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_CONV_MESSAGES 173: DM_CONVERSATION 174: DM_MAILWF_ARCHIVE - [DataMember(Name="table", EmitDefaultValue=false)] - public int? Table { get; set; } - - /// - /// Docnumber [DM_PROFILE (14)] or ProcessDocId [DM_PROCESSDOC (74)] - /// - /// Docnumber [DM_PROFILE (14)] or ProcessDocId [DM_PROCESSDOC (74)] - [DataMember(Name="documentId", EmitDefaultValue=false)] - public int? DocumentId { get; set; } - - /// - /// TaskId in case of Table = DM_PROCESSDOC (74) - /// - /// TaskId in case of Table = DM_PROCESSDOC (74) - [DataMember(Name="documentExtraId", EmitDefaultValue=false)] - public int? DocumentExtraId { get; set; } - - /// - /// Deve essere specificata la scelta di profilazione al momento dell'update del checkin del documento - /// - /// Deve essere specificata la scelta di profilazione al momento dell'update del checkin del documento - [DataMember(Name="updateOptionRequired", EmitDefaultValue=false)] - public bool? UpdateOptionRequired { get; set; } - - /// - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - [DataMember(Name="defaultUpdateOption", EmitDefaultValue=false)] - public int? DefaultUpdateOption { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InfoDocumentResponseDTO {\n"); - sb.Append(" ProfileSchema: ").Append(ProfileSchema).Append("\n"); - sb.Append(" CloseDate: ").Append(CloseDate).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Table: ").Append(Table).Append("\n"); - sb.Append(" DocumentId: ").Append(DocumentId).Append("\n"); - sb.Append(" DocumentExtraId: ").Append(DocumentExtraId).Append("\n"); - sb.Append(" UpdateOptionRequired: ").Append(UpdateOptionRequired).Append("\n"); - sb.Append(" DefaultUpdateOption: ").Append(DefaultUpdateOption).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InfoDocumentResponseDTO); - } - - /// - /// Returns true if InfoDocumentResponseDTO instances are equal - /// - /// Instance of InfoDocumentResponseDTO to be compared - /// Boolean - public bool Equals(InfoDocumentResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.ProfileSchema == input.ProfileSchema || - (this.ProfileSchema != null && - this.ProfileSchema.Equals(input.ProfileSchema)) - ) && - ( - this.CloseDate == input.CloseDate || - (this.CloseDate != null && - this.CloseDate.Equals(input.CloseDate)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Table == input.Table || - (this.Table != null && - this.Table.Equals(input.Table)) - ) && - ( - this.DocumentId == input.DocumentId || - (this.DocumentId != null && - this.DocumentId.Equals(input.DocumentId)) - ) && - ( - this.DocumentExtraId == input.DocumentExtraId || - (this.DocumentExtraId != null && - this.DocumentExtraId.Equals(input.DocumentExtraId)) - ) && - ( - this.UpdateOptionRequired == input.UpdateOptionRequired || - (this.UpdateOptionRequired != null && - this.UpdateOptionRequired.Equals(input.UpdateOptionRequired)) - ) && - ( - this.DefaultUpdateOption == input.DefaultUpdateOption || - (this.DefaultUpdateOption != null && - this.DefaultUpdateOption.Equals(input.DefaultUpdateOption)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ProfileSchema != null) - hashCode = hashCode * 59 + this.ProfileSchema.GetHashCode(); - if (this.CloseDate != null) - hashCode = hashCode * 59 + this.CloseDate.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Table != null) - hashCode = hashCode * 59 + this.Table.GetHashCode(); - if (this.DocumentId != null) - hashCode = hashCode * 59 + this.DocumentId.GetHashCode(); - if (this.DocumentExtraId != null) - hashCode = hashCode * 59 + this.DocumentExtraId.GetHashCode(); - if (this.UpdateOptionRequired != null) - hashCode = hashCode * 59 + this.UpdateOptionRequired.GetHashCode(); - if (this.DefaultUpdateOption != null) - hashCode = hashCode * 59 + this.DefaultUpdateOption.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/InstructionFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/InstructionFieldDTO.cs deleted file mode 100644 index e905326..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/InstructionFieldDTO.cs +++ /dev/null @@ -1,115 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// InstructionFieldDTO - /// - [DataContract] - public partial class InstructionFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected InstructionFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - public InstructionFieldDTO(string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "InstructionFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InstructionFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InstructionFieldDTO); - } - - /// - /// Returns true if InstructionFieldDTO instances are equal - /// - /// Instance of InstructionFieldDTO to be compared - /// Boolean - public bool Equals(InstructionFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/IntKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/IntKeyValueDTO.cs deleted file mode 100644 index 4106b4c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/IntKeyValueDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Int key value - /// - [DataContract] - public partial class IntKeyValueDTO : GenericKeyValueDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected IntKeyValueDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - public IntKeyValueDTO(int? value = default(int?), string className = "IntKeyValueDTO", string key = default(string)) : base(className, key) - { - this.Value = value; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public int? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IntKeyValueDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IntKeyValueDTO); - } - - /// - /// Returns true if IntKeyValueDTO instances are equal - /// - /// Instance of IntKeyValueDTO to be compared - /// Boolean - public bool Equals(IntKeyValueDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/IxCeDocumentCompleteDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/IxCeDocumentCompleteDTO.cs deleted file mode 100644 index 2180e07..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/IxCeDocumentCompleteDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// IxCeDocumentCompleteDTO - /// - [DataContract] - public partial class IxCeDocumentCompleteDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// ixCeDocument. - /// details. - public IxCeDocumentCompleteDTO(IxCeDocumentDTO ixCeDocument = default(IxCeDocumentDTO), List details = default(List)) - { - this.IxCeDocument = ixCeDocument; - this.Details = details; - } - - /// - /// Gets or Sets IxCeDocument - /// - [DataMember(Name="ixCeDocument", EmitDefaultValue=false)] - public IxCeDocumentDTO IxCeDocument { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxCeDocumentCompleteDTO {\n"); - sb.Append(" IxCeDocument: ").Append(IxCeDocument).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxCeDocumentCompleteDTO); - } - - /// - /// Returns true if IxCeDocumentCompleteDTO instances are equal - /// - /// Instance of IxCeDocumentCompleteDTO to be compared - /// Boolean - public bool Equals(IxCeDocumentCompleteDTO input) - { - if (input == null) - return false; - - return - ( - this.IxCeDocument == input.IxCeDocument || - (this.IxCeDocument != null && - this.IxCeDocument.Equals(input.IxCeDocument)) - ) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IxCeDocument != null) - hashCode = hashCode * 59 + this.IxCeDocument.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/IxCeDocumentDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/IxCeDocumentDTO.cs deleted file mode 100644 index 8d0b3a6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/IxCeDocumentDTO.cs +++ /dev/null @@ -1,494 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// IxCeDocumentDTO - /// - [DataContract] - public partial class IxCeDocumentDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// attachmentId. - /// noteId. - /// fatherId. - /// ixceId. - /// vatNumber. - /// documentTypeSystemId. - /// documentTypeDescription. - /// docnumber. - /// revision. - /// creationDate. - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: TakeChargeError 5: IxceTakeCharge 6: ToValidate 7: Validated 8: InError 9: Discarded 10: Preserved . - /// insertionHash. - /// receiveHash. - /// accumulationPackageId. - /// accumulationPackageDescription. - /// modified. - /// lastUpdate. - /// description. - /// userId. - /// userDescription. - /// Possible values: 0: IX 1: IXCE 2: IXCE_V2 3: IX_V2 . - /// ixDocumentId. - /// ixceIndex. - public IxCeDocumentDTO(int? id = default(int?), int? attachmentId = default(int?), int? noteId = default(int?), int? fatherId = default(int?), string ixceId = default(string), string vatNumber = default(string), int? documentTypeSystemId = default(int?), string documentTypeDescription = default(string), int? docnumber = default(int?), int? revision = default(int?), DateTime? creationDate = default(DateTime?), int? status = default(int?), string insertionHash = default(string), string receiveHash = default(string), int? accumulationPackageId = default(int?), string accumulationPackageDescription = default(string), bool? modified = default(bool?), DateTime? lastUpdate = default(DateTime?), string description = default(string), int? userId = default(int?), string userDescription = default(string), int? serviceType = default(int?), int? ixDocumentId = default(int?), int? ixceIndex = default(int?)) - { - this.Id = id; - this.AttachmentId = attachmentId; - this.NoteId = noteId; - this.FatherId = fatherId; - this.IxceId = ixceId; - this.VatNumber = vatNumber; - this.DocumentTypeSystemId = documentTypeSystemId; - this.DocumentTypeDescription = documentTypeDescription; - this.Docnumber = docnumber; - this.Revision = revision; - this.CreationDate = creationDate; - this.Status = status; - this.InsertionHash = insertionHash; - this.ReceiveHash = receiveHash; - this.AccumulationPackageId = accumulationPackageId; - this.AccumulationPackageDescription = accumulationPackageDescription; - this.Modified = modified; - this.LastUpdate = lastUpdate; - this.Description = description; - this.UserId = userId; - this.UserDescription = userDescription; - this.ServiceType = serviceType; - this.IxDocumentId = ixDocumentId; - this.IxceIndex = ixceIndex; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or Sets AttachmentId - /// - [DataMember(Name="attachmentId", EmitDefaultValue=false)] - public int? AttachmentId { get; set; } - - /// - /// Gets or Sets NoteId - /// - [DataMember(Name="noteId", EmitDefaultValue=false)] - public int? NoteId { get; set; } - - /// - /// Gets or Sets FatherId - /// - [DataMember(Name="fatherId", EmitDefaultValue=false)] - public int? FatherId { get; set; } - - /// - /// Gets or Sets IxceId - /// - [DataMember(Name="ixceId", EmitDefaultValue=false)] - public string IxceId { get; set; } - - /// - /// Gets or Sets VatNumber - /// - [DataMember(Name="vatNumber", EmitDefaultValue=false)] - public string VatNumber { get; set; } - - /// - /// Gets or Sets DocumentTypeSystemId - /// - [DataMember(Name="documentTypeSystemId", EmitDefaultValue=false)] - public int? DocumentTypeSystemId { get; set; } - - /// - /// Gets or Sets DocumentTypeDescription - /// - [DataMember(Name="documentTypeDescription", EmitDefaultValue=false)] - public string DocumentTypeDescription { get; set; } - - /// - /// Gets or Sets Docnumber - /// - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Gets or Sets Revision - /// - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Gets or Sets CreationDate - /// - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: TakeChargeError 5: IxceTakeCharge 6: ToValidate 7: Validated 8: InError 9: Discarded 10: Preserved - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: TakeChargeError 5: IxceTakeCharge 6: ToValidate 7: Validated 8: InError 9: Discarded 10: Preserved - [DataMember(Name="status", EmitDefaultValue=false)] - public int? Status { get; set; } - - /// - /// Gets or Sets InsertionHash - /// - [DataMember(Name="insertionHash", EmitDefaultValue=false)] - public string InsertionHash { get; set; } - - /// - /// Gets or Sets ReceiveHash - /// - [DataMember(Name="receiveHash", EmitDefaultValue=false)] - public string ReceiveHash { get; set; } - - /// - /// Gets or Sets AccumulationPackageId - /// - [DataMember(Name="accumulationPackageId", EmitDefaultValue=false)] - public int? AccumulationPackageId { get; set; } - - /// - /// Gets or Sets AccumulationPackageDescription - /// - [DataMember(Name="accumulationPackageDescription", EmitDefaultValue=false)] - public string AccumulationPackageDescription { get; set; } - - /// - /// Gets or Sets Modified - /// - [DataMember(Name="modified", EmitDefaultValue=false)] - public bool? Modified { get; set; } - - /// - /// Gets or Sets LastUpdate - /// - [DataMember(Name="lastUpdate", EmitDefaultValue=false)] - public DateTime? LastUpdate { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Gets or Sets UserId - /// - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Gets or Sets UserDescription - /// - [DataMember(Name="userDescription", EmitDefaultValue=false)] - public string UserDescription { get; set; } - - /// - /// Possible values: 0: IX 1: IXCE 2: IXCE_V2 3: IX_V2 - /// - /// Possible values: 0: IX 1: IXCE 2: IXCE_V2 3: IX_V2 - [DataMember(Name="serviceType", EmitDefaultValue=false)] - public int? ServiceType { get; set; } - - /// - /// Gets or Sets IxDocumentId - /// - [DataMember(Name="ixDocumentId", EmitDefaultValue=false)] - public int? IxDocumentId { get; set; } - - /// - /// Gets or Sets IxceIndex - /// - [DataMember(Name="ixceIndex", EmitDefaultValue=false)] - public int? IxceIndex { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxCeDocumentDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" AttachmentId: ").Append(AttachmentId).Append("\n"); - sb.Append(" NoteId: ").Append(NoteId).Append("\n"); - sb.Append(" FatherId: ").Append(FatherId).Append("\n"); - sb.Append(" IxceId: ").Append(IxceId).Append("\n"); - sb.Append(" VatNumber: ").Append(VatNumber).Append("\n"); - sb.Append(" DocumentTypeSystemId: ").Append(DocumentTypeSystemId).Append("\n"); - sb.Append(" DocumentTypeDescription: ").Append(DocumentTypeDescription).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" InsertionHash: ").Append(InsertionHash).Append("\n"); - sb.Append(" ReceiveHash: ").Append(ReceiveHash).Append("\n"); - sb.Append(" AccumulationPackageId: ").Append(AccumulationPackageId).Append("\n"); - sb.Append(" AccumulationPackageDescription: ").Append(AccumulationPackageDescription).Append("\n"); - sb.Append(" Modified: ").Append(Modified).Append("\n"); - sb.Append(" LastUpdate: ").Append(LastUpdate).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" UserDescription: ").Append(UserDescription).Append("\n"); - sb.Append(" ServiceType: ").Append(ServiceType).Append("\n"); - sb.Append(" IxDocumentId: ").Append(IxDocumentId).Append("\n"); - sb.Append(" IxceIndex: ").Append(IxceIndex).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxCeDocumentDTO); - } - - /// - /// Returns true if IxCeDocumentDTO instances are equal - /// - /// Instance of IxCeDocumentDTO to be compared - /// Boolean - public bool Equals(IxCeDocumentDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.AttachmentId == input.AttachmentId || - (this.AttachmentId != null && - this.AttachmentId.Equals(input.AttachmentId)) - ) && - ( - this.NoteId == input.NoteId || - (this.NoteId != null && - this.NoteId.Equals(input.NoteId)) - ) && - ( - this.FatherId == input.FatherId || - (this.FatherId != null && - this.FatherId.Equals(input.FatherId)) - ) && - ( - this.IxceId == input.IxceId || - (this.IxceId != null && - this.IxceId.Equals(input.IxceId)) - ) && - ( - this.VatNumber == input.VatNumber || - (this.VatNumber != null && - this.VatNumber.Equals(input.VatNumber)) - ) && - ( - this.DocumentTypeSystemId == input.DocumentTypeSystemId || - (this.DocumentTypeSystemId != null && - this.DocumentTypeSystemId.Equals(input.DocumentTypeSystemId)) - ) && - ( - this.DocumentTypeDescription == input.DocumentTypeDescription || - (this.DocumentTypeDescription != null && - this.DocumentTypeDescription.Equals(input.DocumentTypeDescription)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && - ( - this.InsertionHash == input.InsertionHash || - (this.InsertionHash != null && - this.InsertionHash.Equals(input.InsertionHash)) - ) && - ( - this.ReceiveHash == input.ReceiveHash || - (this.ReceiveHash != null && - this.ReceiveHash.Equals(input.ReceiveHash)) - ) && - ( - this.AccumulationPackageId == input.AccumulationPackageId || - (this.AccumulationPackageId != null && - this.AccumulationPackageId.Equals(input.AccumulationPackageId)) - ) && - ( - this.AccumulationPackageDescription == input.AccumulationPackageDescription || - (this.AccumulationPackageDescription != null && - this.AccumulationPackageDescription.Equals(input.AccumulationPackageDescription)) - ) && - ( - this.Modified == input.Modified || - (this.Modified != null && - this.Modified.Equals(input.Modified)) - ) && - ( - this.LastUpdate == input.LastUpdate || - (this.LastUpdate != null && - this.LastUpdate.Equals(input.LastUpdate)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.UserDescription == input.UserDescription || - (this.UserDescription != null && - this.UserDescription.Equals(input.UserDescription)) - ) && - ( - this.ServiceType == input.ServiceType || - (this.ServiceType != null && - this.ServiceType.Equals(input.ServiceType)) - ) && - ( - this.IxDocumentId == input.IxDocumentId || - (this.IxDocumentId != null && - this.IxDocumentId.Equals(input.IxDocumentId)) - ) && - ( - this.IxceIndex == input.IxceIndex || - (this.IxceIndex != null && - this.IxceIndex.Equals(input.IxceIndex)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.AttachmentId != null) - hashCode = hashCode * 59 + this.AttachmentId.GetHashCode(); - if (this.NoteId != null) - hashCode = hashCode * 59 + this.NoteId.GetHashCode(); - if (this.FatherId != null) - hashCode = hashCode * 59 + this.FatherId.GetHashCode(); - if (this.IxceId != null) - hashCode = hashCode * 59 + this.IxceId.GetHashCode(); - if (this.VatNumber != null) - hashCode = hashCode * 59 + this.VatNumber.GetHashCode(); - if (this.DocumentTypeSystemId != null) - hashCode = hashCode * 59 + this.DocumentTypeSystemId.GetHashCode(); - if (this.DocumentTypeDescription != null) - hashCode = hashCode * 59 + this.DocumentTypeDescription.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.InsertionHash != null) - hashCode = hashCode * 59 + this.InsertionHash.GetHashCode(); - if (this.ReceiveHash != null) - hashCode = hashCode * 59 + this.ReceiveHash.GetHashCode(); - if (this.AccumulationPackageId != null) - hashCode = hashCode * 59 + this.AccumulationPackageId.GetHashCode(); - if (this.AccumulationPackageDescription != null) - hashCode = hashCode * 59 + this.AccumulationPackageDescription.GetHashCode(); - if (this.Modified != null) - hashCode = hashCode * 59 + this.Modified.GetHashCode(); - if (this.LastUpdate != null) - hashCode = hashCode * 59 + this.LastUpdate.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.UserDescription != null) - hashCode = hashCode * 59 + this.UserDescription.GetHashCode(); - if (this.ServiceType != null) - hashCode = hashCode * 59 + this.ServiceType.GetHashCode(); - if (this.IxDocumentId != null) - hashCode = hashCode * 59 + this.IxDocumentId.GetHashCode(); - if (this.IxceIndex != null) - hashCode = hashCode * 59 + this.IxceIndex.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/IxCeDocumentDetailDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/IxCeDocumentDetailDTO.cs deleted file mode 100644 index 6b543cc..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/IxCeDocumentDetailDTO.cs +++ /dev/null @@ -1,189 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// IxCeDocumentDetailDTO - /// - [DataContract] - public partial class IxCeDocumentDetailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// ixCeServiceId. - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: TakeChargeError 5: IxceTakeCharge 6: ToValidate 7: Validated 8: InError 9: Discarded 10: Preserved . - /// message. - /// creationDate. - public IxCeDocumentDetailDTO(int? id = default(int?), int? ixCeServiceId = default(int?), int? status = default(int?), string message = default(string), DateTime? creationDate = default(DateTime?)) - { - this.Id = id; - this.IxCeServiceId = ixCeServiceId; - this.Status = status; - this.Message = message; - this.CreationDate = creationDate; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or Sets IxCeServiceId - /// - [DataMember(Name="ixCeServiceId", EmitDefaultValue=false)] - public int? IxCeServiceId { get; set; } - - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: TakeChargeError 5: IxceTakeCharge 6: ToValidate 7: Validated 8: InError 9: Discarded 10: Preserved - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: TakeChargeError 5: IxceTakeCharge 6: ToValidate 7: Validated 8: InError 9: Discarded 10: Preserved - [DataMember(Name="status", EmitDefaultValue=false)] - public int? Status { get; set; } - - /// - /// Gets or Sets Message - /// - [DataMember(Name="message", EmitDefaultValue=false)] - public string Message { get; set; } - - /// - /// Gets or Sets CreationDate - /// - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxCeDocumentDetailDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IxCeServiceId: ").Append(IxCeServiceId).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxCeDocumentDetailDTO); - } - - /// - /// Returns true if IxCeDocumentDetailDTO instances are equal - /// - /// Instance of IxCeDocumentDetailDTO to be compared - /// Boolean - public bool Equals(IxCeDocumentDetailDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.IxCeServiceId == input.IxCeServiceId || - (this.IxCeServiceId != null && - this.IxCeServiceId.Equals(input.IxCeServiceId)) - ) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.IxCeServiceId != null) - hashCode = hashCode * 59 + this.IxCeServiceId.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Message != null) - hashCode = hashCode * 59 + this.Message.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/IxFeDocumentCompleteDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/IxFeDocumentCompleteDTO.cs deleted file mode 100644 index c50be90..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/IxFeDocumentCompleteDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// IxFeDocumentCompleteDTO - /// - [DataContract] - public partial class IxFeDocumentCompleteDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// ixFeDocument. - /// details. - public IxFeDocumentCompleteDTO(IxFeDocumentDTO ixFeDocument = default(IxFeDocumentDTO), List details = default(List)) - { - this.IxFeDocument = ixFeDocument; - this.Details = details; - } - - /// - /// Gets or Sets IxFeDocument - /// - [DataMember(Name="ixFeDocument", EmitDefaultValue=false)] - public IxFeDocumentDTO IxFeDocument { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeDocumentCompleteDTO {\n"); - sb.Append(" IxFeDocument: ").Append(IxFeDocument).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeDocumentCompleteDTO); - } - - /// - /// Returns true if IxFeDocumentCompleteDTO instances are equal - /// - /// Instance of IxFeDocumentCompleteDTO to be compared - /// Boolean - public bool Equals(IxFeDocumentCompleteDTO input) - { - if (input == null) - return false; - - return - ( - this.IxFeDocument == input.IxFeDocument || - (this.IxFeDocument != null && - this.IxFeDocument.Equals(input.IxFeDocument)) - ) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IxFeDocument != null) - hashCode = hashCode * 59 + this.IxFeDocument.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/IxFeDocumentDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/IxFeDocumentDTO.cs deleted file mode 100644 index 338f1bc..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/IxFeDocumentDTO.cs +++ /dev/null @@ -1,334 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// IxFeDocumentDTO - /// - [DataContract] - public partial class IxFeDocumentDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// description. - /// userId. - /// userDescription. - /// documentTypeSystemId. - /// docnumber. - /// revision. - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification . - /// ixDocumentId. - /// creationDate. - /// ixBusinessUnitVatNumber. - /// vatSectional. - /// ixRuleId. - /// Possible values: 0: IX 1: IXCE 2: IXCE_V2 3: IX_V2 . - public IxFeDocumentDTO(int? id = default(int?), string description = default(string), int? userId = default(int?), string userDescription = default(string), int? documentTypeSystemId = default(int?), int? docnumber = default(int?), int? revision = default(int?), int? status = default(int?), string ixDocumentId = default(string), DateTime? creationDate = default(DateTime?), string ixBusinessUnitVatNumber = default(string), string vatSectional = default(string), int? ixRuleId = default(int?), int? serviceType = default(int?)) - { - this.Id = id; - this.Description = description; - this.UserId = userId; - this.UserDescription = userDescription; - this.DocumentTypeSystemId = documentTypeSystemId; - this.Docnumber = docnumber; - this.Revision = revision; - this.Status = status; - this.IxDocumentId = ixDocumentId; - this.CreationDate = creationDate; - this.IxBusinessUnitVatNumber = ixBusinessUnitVatNumber; - this.VatSectional = vatSectional; - this.IxRuleId = ixRuleId; - this.ServiceType = serviceType; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Gets or Sets UserId - /// - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Gets or Sets UserDescription - /// - [DataMember(Name="userDescription", EmitDefaultValue=false)] - public string UserDescription { get; set; } - - /// - /// Gets or Sets DocumentTypeSystemId - /// - [DataMember(Name="documentTypeSystemId", EmitDefaultValue=false)] - public int? DocumentTypeSystemId { get; set; } - - /// - /// Gets or Sets Docnumber - /// - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Gets or Sets Revision - /// - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification - [DataMember(Name="status", EmitDefaultValue=false)] - public int? Status { get; set; } - - /// - /// Gets or Sets IxDocumentId - /// - [DataMember(Name="ixDocumentId", EmitDefaultValue=false)] - public string IxDocumentId { get; set; } - - /// - /// Gets or Sets CreationDate - /// - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Gets or Sets IxBusinessUnitVatNumber - /// - [DataMember(Name="ixBusinessUnitVatNumber", EmitDefaultValue=false)] - public string IxBusinessUnitVatNumber { get; set; } - - /// - /// Gets or Sets VatSectional - /// - [DataMember(Name="vatSectional", EmitDefaultValue=false)] - public string VatSectional { get; set; } - - /// - /// Gets or Sets IxRuleId - /// - [DataMember(Name="ixRuleId", EmitDefaultValue=false)] - public int? IxRuleId { get; set; } - - /// - /// Possible values: 0: IX 1: IXCE 2: IXCE_V2 3: IX_V2 - /// - /// Possible values: 0: IX 1: IXCE 2: IXCE_V2 3: IX_V2 - [DataMember(Name="serviceType", EmitDefaultValue=false)] - public int? ServiceType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeDocumentDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" UserDescription: ").Append(UserDescription).Append("\n"); - sb.Append(" DocumentTypeSystemId: ").Append(DocumentTypeSystemId).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" IxDocumentId: ").Append(IxDocumentId).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" IxBusinessUnitVatNumber: ").Append(IxBusinessUnitVatNumber).Append("\n"); - sb.Append(" VatSectional: ").Append(VatSectional).Append("\n"); - sb.Append(" IxRuleId: ").Append(IxRuleId).Append("\n"); - sb.Append(" ServiceType: ").Append(ServiceType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeDocumentDTO); - } - - /// - /// Returns true if IxFeDocumentDTO instances are equal - /// - /// Instance of IxFeDocumentDTO to be compared - /// Boolean - public bool Equals(IxFeDocumentDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.UserDescription == input.UserDescription || - (this.UserDescription != null && - this.UserDescription.Equals(input.UserDescription)) - ) && - ( - this.DocumentTypeSystemId == input.DocumentTypeSystemId || - (this.DocumentTypeSystemId != null && - this.DocumentTypeSystemId.Equals(input.DocumentTypeSystemId)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && - ( - this.IxDocumentId == input.IxDocumentId || - (this.IxDocumentId != null && - this.IxDocumentId.Equals(input.IxDocumentId)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.IxBusinessUnitVatNumber == input.IxBusinessUnitVatNumber || - (this.IxBusinessUnitVatNumber != null && - this.IxBusinessUnitVatNumber.Equals(input.IxBusinessUnitVatNumber)) - ) && - ( - this.VatSectional == input.VatSectional || - (this.VatSectional != null && - this.VatSectional.Equals(input.VatSectional)) - ) && - ( - this.IxRuleId == input.IxRuleId || - (this.IxRuleId != null && - this.IxRuleId.Equals(input.IxRuleId)) - ) && - ( - this.ServiceType == input.ServiceType || - (this.ServiceType != null && - this.ServiceType.Equals(input.ServiceType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.UserDescription != null) - hashCode = hashCode * 59 + this.UserDescription.GetHashCode(); - if (this.DocumentTypeSystemId != null) - hashCode = hashCode * 59 + this.DocumentTypeSystemId.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.IxDocumentId != null) - hashCode = hashCode * 59 + this.IxDocumentId.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.IxBusinessUnitVatNumber != null) - hashCode = hashCode * 59 + this.IxBusinessUnitVatNumber.GetHashCode(); - if (this.VatSectional != null) - hashCode = hashCode * 59 + this.VatSectional.GetHashCode(); - if (this.IxRuleId != null) - hashCode = hashCode * 59 + this.IxRuleId.GetHashCode(); - if (this.ServiceType != null) - hashCode = hashCode * 59 + this.ServiceType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/IxFeDocumentDetailDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/IxFeDocumentDetailDTO.cs deleted file mode 100644 index a9a586e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/IxFeDocumentDetailDTO.cs +++ /dev/null @@ -1,189 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// IxFeDocumentDetailDTO - /// - [DataContract] - public partial class IxFeDocumentDetailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// ixServiceId. - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification . - /// message. - /// creationDate. - public IxFeDocumentDetailDTO(int? id = default(int?), int? ixServiceId = default(int?), int? status = default(int?), string message = default(string), DateTime? creationDate = default(DateTime?)) - { - this.Id = id; - this.IxServiceId = ixServiceId; - this.Status = status; - this.Message = message; - this.CreationDate = creationDate; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or Sets IxServiceId - /// - [DataMember(Name="ixServiceId", EmitDefaultValue=false)] - public int? IxServiceId { get; set; } - - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification - [DataMember(Name="status", EmitDefaultValue=false)] - public int? Status { get; set; } - - /// - /// Gets or Sets Message - /// - [DataMember(Name="message", EmitDefaultValue=false)] - public string Message { get; set; } - - /// - /// Gets or Sets CreationDate - /// - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeDocumentDetailDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IxServiceId: ").Append(IxServiceId).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeDocumentDetailDTO); - } - - /// - /// Returns true if IxFeDocumentDetailDTO instances are equal - /// - /// Instance of IxFeDocumentDetailDTO to be compared - /// Boolean - public bool Equals(IxFeDocumentDetailDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.IxServiceId == input.IxServiceId || - (this.IxServiceId != null && - this.IxServiceId.Equals(input.IxServiceId)) - ) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.IxServiceId != null) - hashCode = hashCode * 59 + this.IxServiceId.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Message != null) - hashCode = hashCode * 59 + this.Message.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/IxFeSendRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/IxFeSendRequestDTO.cs deleted file mode 100644 index f837bed..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/IxFeSendRequestDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of remote IxFe Send signature request - /// - [DataContract] - public partial class IxFeSendRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Credential for document signing. - /// Document list to send. - public IxFeSendRequestDTO(IxFeSignCredential ixFeSignCredential = default(IxFeSignCredential), List documentList = default(List)) - { - this.IxFeSignCredential = ixFeSignCredential; - this.DocumentList = documentList; - } - - /// - /// Credential for document signing - /// - /// Credential for document signing - [DataMember(Name="ixFeSignCredential", EmitDefaultValue=false)] - public IxFeSignCredential IxFeSignCredential { get; set; } - - /// - /// Document list to send - /// - /// Document list to send - [DataMember(Name="documentList", EmitDefaultValue=false)] - public List DocumentList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeSendRequestDTO {\n"); - sb.Append(" IxFeSignCredential: ").Append(IxFeSignCredential).Append("\n"); - sb.Append(" DocumentList: ").Append(DocumentList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeSendRequestDTO); - } - - /// - /// Returns true if IxFeSendRequestDTO instances are equal - /// - /// Instance of IxFeSendRequestDTO to be compared - /// Boolean - public bool Equals(IxFeSendRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.IxFeSignCredential == input.IxFeSignCredential || - (this.IxFeSignCredential != null && - this.IxFeSignCredential.Equals(input.IxFeSignCredential)) - ) && - ( - this.DocumentList == input.DocumentList || - this.DocumentList != null && - this.DocumentList.SequenceEqual(input.DocumentList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IxFeSignCredential != null) - hashCode = hashCode * 59 + this.IxFeSignCredential.GetHashCode(); - if (this.DocumentList != null) - hashCode = hashCode * 59 + this.DocumentList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/IxFeSendResponseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/IxFeSendResponseDTO.cs deleted file mode 100644 index 1fe906f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/IxFeSendResponseDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// IxFe Send response - /// - [DataContract] - public partial class IxFeSendResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Signature Certificate. - /// Identifier of asynchronous activity (QueueId). - public IxFeSendResponseDTO(SignCertDTO signCert = default(SignCertDTO), string sendRequestId = default(string)) - { - this.SignCert = signCert; - this.SendRequestId = sendRequestId; - } - - /// - /// Signature Certificate - /// - /// Signature Certificate - [DataMember(Name="signCert", EmitDefaultValue=false)] - public SignCertDTO SignCert { get; set; } - - /// - /// Identifier of asynchronous activity (QueueId) - /// - /// Identifier of asynchronous activity (QueueId) - [DataMember(Name="sendRequestId", EmitDefaultValue=false)] - public string SendRequestId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeSendResponseDTO {\n"); - sb.Append(" SignCert: ").Append(SignCert).Append("\n"); - sb.Append(" SendRequestId: ").Append(SendRequestId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeSendResponseDTO); - } - - /// - /// Returns true if IxFeSendResponseDTO instances are equal - /// - /// Instance of IxFeSendResponseDTO to be compared - /// Boolean - public bool Equals(IxFeSendResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.SignCert == input.SignCert || - (this.SignCert != null && - this.SignCert.Equals(input.SignCert)) - ) && - ( - this.SendRequestId == input.SendRequestId || - (this.SendRequestId != null && - this.SendRequestId.Equals(input.SendRequestId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SignCert != null) - hashCode = hashCode * 59 + this.SignCert.GetHashCode(); - if (this.SendRequestId != null) - hashCode = hashCode * 59 + this.SendRequestId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/IxFeSignCredential.cs b/ACUtils.AXRepository/ArxivarNext/Model/IxFeSignCredential.cs deleted file mode 100644 index 807cac9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/IxFeSignCredential.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// IxFeSignCredential - /// - [DataContract] - public partial class IxFeSignCredential : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of signature certificate. - /// Password. - /// Releted Cetificate Identifier. - /// OPT. - public IxFeSignCredential(int? signCertId = default(int?), string password = default(string), string relatedCertId = default(string), string otp = default(string)) - { - this.SignCertId = signCertId; - this.Password = password; - this.RelatedCertId = relatedCertId; - this.Otp = otp; - } - - /// - /// Identifier of signature certificate - /// - /// Identifier of signature certificate - [DataMember(Name="signCertId", EmitDefaultValue=false)] - public int? SignCertId { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Releted Cetificate Identifier - /// - /// Releted Cetificate Identifier - [DataMember(Name="relatedCertId", EmitDefaultValue=false)] - public string RelatedCertId { get; set; } - - /// - /// OPT - /// - /// OPT - [DataMember(Name="otp", EmitDefaultValue=false)] - public string Otp { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeSignCredential {\n"); - sb.Append(" SignCertId: ").Append(SignCertId).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" RelatedCertId: ").Append(RelatedCertId).Append("\n"); - sb.Append(" Otp: ").Append(Otp).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeSignCredential); - } - - /// - /// Returns true if IxFeSignCredential instances are equal - /// - /// Instance of IxFeSignCredential to be compared - /// Boolean - public bool Equals(IxFeSignCredential input) - { - if (input == null) - return false; - - return - ( - this.SignCertId == input.SignCertId || - (this.SignCertId != null && - this.SignCertId.Equals(input.SignCertId)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.RelatedCertId == input.RelatedCertId || - (this.RelatedCertId != null && - this.RelatedCertId.Equals(input.RelatedCertId)) - ) && - ( - this.Otp == input.Otp || - (this.Otp != null && - this.Otp.Equals(input.Otp)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SignCertId != null) - hashCode = hashCode * 59 + this.SignCertId.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.RelatedCertId != null) - hashCode = hashCode * 59 + this.RelatedCertId.GetHashCode(); - if (this.Otp != null) - hashCode = hashCode * 59 + this.Otp.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/JobErrorDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/JobErrorDto.cs deleted file mode 100644 index 5d10ace..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/JobErrorDto.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// JobErrorDto - /// - [DataContract] - public partial class JobErrorDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// message. - /// code. - public JobErrorDto(string message = default(string), string code = default(string)) - { - this.Message = message; - this.Code = code; - } - - /// - /// Gets or Sets Message - /// - [DataMember(Name="message", EmitDefaultValue=false)] - public string Message { get; set; } - - /// - /// Gets or Sets Code - /// - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JobErrorDto {\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JobErrorDto); - } - - /// - /// Returns true if JobErrorDto instances are equal - /// - /// Instance of JobErrorDto to be compared - /// Boolean - public bool Equals(JobErrorDto input) - { - if (input == null) - return false; - - return - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Message != null) - hashCode = hashCode * 59 + this.Message.GetHashCode(); - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/JobResultDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/JobResultDto.cs deleted file mode 100644 index 7f2e864..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/JobResultDto.cs +++ /dev/null @@ -1,173 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Oggetto per tenere il risultato della coda - /// - [DataContract] - public partial class JobResultDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Queue Job. - /// jobError. - /// keyValueParameters. - /// isError. - public JobResultDto(QueueJobDto queueJob = default(QueueJobDto), JobErrorDto jobError = default(JobErrorDto), List keyValueParameters = default(List), bool? isError = default(bool?)) - { - this.QueueJob = queueJob; - this.JobError = jobError; - this.KeyValueParameters = keyValueParameters; - this.IsError = isError; - } - - /// - /// Queue Job - /// - /// Queue Job - [DataMember(Name="queueJob", EmitDefaultValue=false)] - public QueueJobDto QueueJob { get; set; } - - /// - /// Gets or Sets JobError - /// - [DataMember(Name="jobError", EmitDefaultValue=false)] - public JobErrorDto JobError { get; set; } - - /// - /// Gets or Sets KeyValueParameters - /// - [DataMember(Name="keyValueParameters", EmitDefaultValue=false)] - public List KeyValueParameters { get; set; } - - /// - /// Gets or Sets IsError - /// - [DataMember(Name="isError", EmitDefaultValue=false)] - public bool? IsError { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JobResultDto {\n"); - sb.Append(" QueueJob: ").Append(QueueJob).Append("\n"); - sb.Append(" JobError: ").Append(JobError).Append("\n"); - sb.Append(" KeyValueParameters: ").Append(KeyValueParameters).Append("\n"); - sb.Append(" IsError: ").Append(IsError).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JobResultDto); - } - - /// - /// Returns true if JobResultDto instances are equal - /// - /// Instance of JobResultDto to be compared - /// Boolean - public bool Equals(JobResultDto input) - { - if (input == null) - return false; - - return - ( - this.QueueJob == input.QueueJob || - (this.QueueJob != null && - this.QueueJob.Equals(input.QueueJob)) - ) && - ( - this.JobError == input.JobError || - (this.JobError != null && - this.JobError.Equals(input.JobError)) - ) && - ( - this.KeyValueParameters == input.KeyValueParameters || - this.KeyValueParameters != null && - this.KeyValueParameters.SequenceEqual(input.KeyValueParameters) - ) && - ( - this.IsError == input.IsError || - (this.IsError != null && - this.IsError.Equals(input.IsError)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.QueueJob != null) - hashCode = hashCode * 59 + this.QueueJob.GetHashCode(); - if (this.JobError != null) - hashCode = hashCode * 59 + this.JobError.GetHashCode(); - if (this.KeyValueParameters != null) - hashCode = hashCode * 59 + this.KeyValueParameters.GetHashCode(); - if (this.IsError != null) - hashCode = hashCode * 59 + this.IsError.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/JoinDmDatiProfilo.cs b/ACUtils.AXRepository/ArxivarNext/Model/JoinDmDatiProfilo.cs deleted file mode 100644 index 02de682..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/JoinDmDatiProfilo.cs +++ /dev/null @@ -1,765 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// JoinDmDatiProfilo - /// - [DataContract] - public partial class JoinDmDatiProfilo : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// legameTabella. - /// id. - /// docnumber. - /// campo. - /// valore. - /// contatti. - /// fax. - /// tel. - /// indirizzo. - /// mail. - /// localita. - /// cap. - /// provincia. - /// nazione. - /// codice. - /// contatto. - /// mansione. - /// telnome. - /// faxnome. - /// cell. - /// abitazione. - /// reparto. - /// ufficio. - /// email. - /// riferimento. - /// codfis. - /// partiva. - /// priorita. - /// idrubrica. - /// idcontatto. - /// codiceufficio. - /// codiceipa. - /// pecrubrica. - /// feaenabled. - /// feaexpiredate. - /// nome. - /// cognome. - /// pec. - /// forceCaseInsensitive. - /// Possible values: 0: INNER 1: LEFT 2: RIGHT . - /// nomeTabella. - public JoinDmDatiProfilo(string legameTabella = default(string), FieldInt id = default(FieldInt), FieldInt docnumber = default(FieldInt), FieldString campo = default(FieldString), FieldString valore = default(FieldString), FieldString contatti = default(FieldString), FieldString fax = default(FieldString), FieldString tel = default(FieldString), FieldString indirizzo = default(FieldString), FieldString mail = default(FieldString), FieldString localita = default(FieldString), FieldString cap = default(FieldString), FieldString provincia = default(FieldString), FieldString nazione = default(FieldString), FieldString codice = default(FieldString), FieldString contatto = default(FieldString), FieldString mansione = default(FieldString), FieldString telnome = default(FieldString), FieldString faxnome = default(FieldString), FieldString cell = default(FieldString), FieldString abitazione = default(FieldString), FieldString reparto = default(FieldString), FieldString ufficio = default(FieldString), FieldString email = default(FieldString), FieldString riferimento = default(FieldString), FieldString codfis = default(FieldString), FieldString partiva = default(FieldString), FieldString priorita = default(FieldString), FieldInt idrubrica = default(FieldInt), FieldInt idcontatto = default(FieldInt), FieldString codiceufficio = default(FieldString), FieldString codiceipa = default(FieldString), FieldString pecrubrica = default(FieldString), FieldInt feaenabled = default(FieldInt), FieldDateTime feaexpiredate = default(FieldDateTime), FieldString nome = default(FieldString), FieldString cognome = default(FieldString), FieldString pec = default(FieldString), bool? forceCaseInsensitive = default(bool?), int? joinMode = default(int?), string nomeTabella = default(string)) - { - this.LegameTabella = legameTabella; - this.Id = id; - this.Docnumber = docnumber; - this.Campo = campo; - this.Valore = valore; - this.Contatti = contatti; - this.Fax = fax; - this.Tel = tel; - this.Indirizzo = indirizzo; - this.Mail = mail; - this.Localita = localita; - this.Cap = cap; - this.Provincia = provincia; - this.Nazione = nazione; - this.Codice = codice; - this.Contatto = contatto; - this.Mansione = mansione; - this.Telnome = telnome; - this.Faxnome = faxnome; - this.Cell = cell; - this.Abitazione = abitazione; - this.Reparto = reparto; - this.Ufficio = ufficio; - this.Email = email; - this.Riferimento = riferimento; - this.Codfis = codfis; - this.Partiva = partiva; - this.Priorita = priorita; - this.Idrubrica = idrubrica; - this.Idcontatto = idcontatto; - this.Codiceufficio = codiceufficio; - this.Codiceipa = codiceipa; - this.Pecrubrica = pecrubrica; - this.Feaenabled = feaenabled; - this.Feaexpiredate = feaexpiredate; - this.Nome = nome; - this.Cognome = cognome; - this.Pec = pec; - this.ForceCaseInsensitive = forceCaseInsensitive; - this.JoinMode = joinMode; - this.NomeTabella = nomeTabella; - } - - /// - /// Gets or Sets LegameTabella - /// - [DataMember(Name="legameTabella", EmitDefaultValue=false)] - public string LegameTabella { get; set; } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public FieldInt Id { get; set; } - - /// - /// Gets or Sets Docnumber - /// - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public FieldInt Docnumber { get; set; } - - /// - /// Gets or Sets Campo - /// - [DataMember(Name="campo", EmitDefaultValue=false)] - public FieldString Campo { get; set; } - - /// - /// Gets or Sets Valore - /// - [DataMember(Name="valore", EmitDefaultValue=false)] - public FieldString Valore { get; set; } - - /// - /// Gets or Sets Contatti - /// - [DataMember(Name="contatti", EmitDefaultValue=false)] - public FieldString Contatti { get; set; } - - /// - /// Gets or Sets Fax - /// - [DataMember(Name="fax", EmitDefaultValue=false)] - public FieldString Fax { get; set; } - - /// - /// Gets or Sets Tel - /// - [DataMember(Name="tel", EmitDefaultValue=false)] - public FieldString Tel { get; set; } - - /// - /// Gets or Sets Indirizzo - /// - [DataMember(Name="indirizzo", EmitDefaultValue=false)] - public FieldString Indirizzo { get; set; } - - /// - /// Gets or Sets Mail - /// - [DataMember(Name="mail", EmitDefaultValue=false)] - public FieldString Mail { get; set; } - - /// - /// Gets or Sets Localita - /// - [DataMember(Name="localita", EmitDefaultValue=false)] - public FieldString Localita { get; set; } - - /// - /// Gets or Sets Cap - /// - [DataMember(Name="cap", EmitDefaultValue=false)] - public FieldString Cap { get; set; } - - /// - /// Gets or Sets Provincia - /// - [DataMember(Name="provincia", EmitDefaultValue=false)] - public FieldString Provincia { get; set; } - - /// - /// Gets or Sets Nazione - /// - [DataMember(Name="nazione", EmitDefaultValue=false)] - public FieldString Nazione { get; set; } - - /// - /// Gets or Sets Codice - /// - [DataMember(Name="codice", EmitDefaultValue=false)] - public FieldString Codice { get; set; } - - /// - /// Gets or Sets Contatto - /// - [DataMember(Name="contatto", EmitDefaultValue=false)] - public FieldString Contatto { get; set; } - - /// - /// Gets or Sets Mansione - /// - [DataMember(Name="mansione", EmitDefaultValue=false)] - public FieldString Mansione { get; set; } - - /// - /// Gets or Sets Telnome - /// - [DataMember(Name="telnome", EmitDefaultValue=false)] - public FieldString Telnome { get; set; } - - /// - /// Gets or Sets Faxnome - /// - [DataMember(Name="faxnome", EmitDefaultValue=false)] - public FieldString Faxnome { get; set; } - - /// - /// Gets or Sets Cell - /// - [DataMember(Name="cell", EmitDefaultValue=false)] - public FieldString Cell { get; set; } - - /// - /// Gets or Sets Abitazione - /// - [DataMember(Name="abitazione", EmitDefaultValue=false)] - public FieldString Abitazione { get; set; } - - /// - /// Gets or Sets Reparto - /// - [DataMember(Name="reparto", EmitDefaultValue=false)] - public FieldString Reparto { get; set; } - - /// - /// Gets or Sets Ufficio - /// - [DataMember(Name="ufficio", EmitDefaultValue=false)] - public FieldString Ufficio { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="email", EmitDefaultValue=false)] - public FieldString Email { get; set; } - - /// - /// Gets or Sets Riferimento - /// - [DataMember(Name="riferimento", EmitDefaultValue=false)] - public FieldString Riferimento { get; set; } - - /// - /// Gets or Sets Codfis - /// - [DataMember(Name="codfis", EmitDefaultValue=false)] - public FieldString Codfis { get; set; } - - /// - /// Gets or Sets Partiva - /// - [DataMember(Name="partiva", EmitDefaultValue=false)] - public FieldString Partiva { get; set; } - - /// - /// Gets or Sets Priorita - /// - [DataMember(Name="priorita", EmitDefaultValue=false)] - public FieldString Priorita { get; set; } - - /// - /// Gets or Sets Idrubrica - /// - [DataMember(Name="idrubrica", EmitDefaultValue=false)] - public FieldInt Idrubrica { get; set; } - - /// - /// Gets or Sets Idcontatto - /// - [DataMember(Name="idcontatto", EmitDefaultValue=false)] - public FieldInt Idcontatto { get; set; } - - /// - /// Gets or Sets Codiceufficio - /// - [DataMember(Name="codiceufficio", EmitDefaultValue=false)] - public FieldString Codiceufficio { get; set; } - - /// - /// Gets or Sets Codiceipa - /// - [DataMember(Name="codiceipa", EmitDefaultValue=false)] - public FieldString Codiceipa { get; set; } - - /// - /// Gets or Sets Pecrubrica - /// - [DataMember(Name="pecrubrica", EmitDefaultValue=false)] - public FieldString Pecrubrica { get; set; } - - /// - /// Gets or Sets Feaenabled - /// - [DataMember(Name="feaenabled", EmitDefaultValue=false)] - public FieldInt Feaenabled { get; set; } - - /// - /// Gets or Sets Feaexpiredate - /// - [DataMember(Name="feaexpiredate", EmitDefaultValue=false)] - public FieldDateTime Feaexpiredate { get; set; } - - /// - /// Gets or Sets Nome - /// - [DataMember(Name="nome", EmitDefaultValue=false)] - public FieldString Nome { get; set; } - - /// - /// Gets or Sets Cognome - /// - [DataMember(Name="cognome", EmitDefaultValue=false)] - public FieldString Cognome { get; set; } - - /// - /// Gets or Sets Pec - /// - [DataMember(Name="pec", EmitDefaultValue=false)] - public FieldString Pec { get; set; } - - /// - /// Gets or Sets ForceCaseInsensitive - /// - [DataMember(Name="forceCaseInsensitive", EmitDefaultValue=false)] - public bool? ForceCaseInsensitive { get; set; } - - /// - /// Possible values: 0: INNER 1: LEFT 2: RIGHT - /// - /// Possible values: 0: INNER 1: LEFT 2: RIGHT - [DataMember(Name="joinMode", EmitDefaultValue=false)] - public int? JoinMode { get; set; } - - /// - /// Gets or Sets NomeTabella - /// - [DataMember(Name="nomeTabella", EmitDefaultValue=false)] - public string NomeTabella { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JoinDmDatiProfilo {\n"); - sb.Append(" LegameTabella: ").Append(LegameTabella).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Campo: ").Append(Campo).Append("\n"); - sb.Append(" Valore: ").Append(Valore).Append("\n"); - sb.Append(" Contatti: ").Append(Contatti).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" Tel: ").Append(Tel).Append("\n"); - sb.Append(" Indirizzo: ").Append(Indirizzo).Append("\n"); - sb.Append(" Mail: ").Append(Mail).Append("\n"); - sb.Append(" Localita: ").Append(Localita).Append("\n"); - sb.Append(" Cap: ").Append(Cap).Append("\n"); - sb.Append(" Provincia: ").Append(Provincia).Append("\n"); - sb.Append(" Nazione: ").Append(Nazione).Append("\n"); - sb.Append(" Codice: ").Append(Codice).Append("\n"); - sb.Append(" Contatto: ").Append(Contatto).Append("\n"); - sb.Append(" Mansione: ").Append(Mansione).Append("\n"); - sb.Append(" Telnome: ").Append(Telnome).Append("\n"); - sb.Append(" Faxnome: ").Append(Faxnome).Append("\n"); - sb.Append(" Cell: ").Append(Cell).Append("\n"); - sb.Append(" Abitazione: ").Append(Abitazione).Append("\n"); - sb.Append(" Reparto: ").Append(Reparto).Append("\n"); - sb.Append(" Ufficio: ").Append(Ufficio).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Riferimento: ").Append(Riferimento).Append("\n"); - sb.Append(" Codfis: ").Append(Codfis).Append("\n"); - sb.Append(" Partiva: ").Append(Partiva).Append("\n"); - sb.Append(" Priorita: ").Append(Priorita).Append("\n"); - sb.Append(" Idrubrica: ").Append(Idrubrica).Append("\n"); - sb.Append(" Idcontatto: ").Append(Idcontatto).Append("\n"); - sb.Append(" Codiceufficio: ").Append(Codiceufficio).Append("\n"); - sb.Append(" Codiceipa: ").Append(Codiceipa).Append("\n"); - sb.Append(" Pecrubrica: ").Append(Pecrubrica).Append("\n"); - sb.Append(" Feaenabled: ").Append(Feaenabled).Append("\n"); - sb.Append(" Feaexpiredate: ").Append(Feaexpiredate).Append("\n"); - sb.Append(" Nome: ").Append(Nome).Append("\n"); - sb.Append(" Cognome: ").Append(Cognome).Append("\n"); - sb.Append(" Pec: ").Append(Pec).Append("\n"); - sb.Append(" ForceCaseInsensitive: ").Append(ForceCaseInsensitive).Append("\n"); - sb.Append(" JoinMode: ").Append(JoinMode).Append("\n"); - sb.Append(" NomeTabella: ").Append(NomeTabella).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JoinDmDatiProfilo); - } - - /// - /// Returns true if JoinDmDatiProfilo instances are equal - /// - /// Instance of JoinDmDatiProfilo to be compared - /// Boolean - public bool Equals(JoinDmDatiProfilo input) - { - if (input == null) - return false; - - return - ( - this.LegameTabella == input.LegameTabella || - (this.LegameTabella != null && - this.LegameTabella.Equals(input.LegameTabella)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Campo == input.Campo || - (this.Campo != null && - this.Campo.Equals(input.Campo)) - ) && - ( - this.Valore == input.Valore || - (this.Valore != null && - this.Valore.Equals(input.Valore)) - ) && - ( - this.Contatti == input.Contatti || - (this.Contatti != null && - this.Contatti.Equals(input.Contatti)) - ) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && - ( - this.Tel == input.Tel || - (this.Tel != null && - this.Tel.Equals(input.Tel)) - ) && - ( - this.Indirizzo == input.Indirizzo || - (this.Indirizzo != null && - this.Indirizzo.Equals(input.Indirizzo)) - ) && - ( - this.Mail == input.Mail || - (this.Mail != null && - this.Mail.Equals(input.Mail)) - ) && - ( - this.Localita == input.Localita || - (this.Localita != null && - this.Localita.Equals(input.Localita)) - ) && - ( - this.Cap == input.Cap || - (this.Cap != null && - this.Cap.Equals(input.Cap)) - ) && - ( - this.Provincia == input.Provincia || - (this.Provincia != null && - this.Provincia.Equals(input.Provincia)) - ) && - ( - this.Nazione == input.Nazione || - (this.Nazione != null && - this.Nazione.Equals(input.Nazione)) - ) && - ( - this.Codice == input.Codice || - (this.Codice != null && - this.Codice.Equals(input.Codice)) - ) && - ( - this.Contatto == input.Contatto || - (this.Contatto != null && - this.Contatto.Equals(input.Contatto)) - ) && - ( - this.Mansione == input.Mansione || - (this.Mansione != null && - this.Mansione.Equals(input.Mansione)) - ) && - ( - this.Telnome == input.Telnome || - (this.Telnome != null && - this.Telnome.Equals(input.Telnome)) - ) && - ( - this.Faxnome == input.Faxnome || - (this.Faxnome != null && - this.Faxnome.Equals(input.Faxnome)) - ) && - ( - this.Cell == input.Cell || - (this.Cell != null && - this.Cell.Equals(input.Cell)) - ) && - ( - this.Abitazione == input.Abitazione || - (this.Abitazione != null && - this.Abitazione.Equals(input.Abitazione)) - ) && - ( - this.Reparto == input.Reparto || - (this.Reparto != null && - this.Reparto.Equals(input.Reparto)) - ) && - ( - this.Ufficio == input.Ufficio || - (this.Ufficio != null && - this.Ufficio.Equals(input.Ufficio)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.Riferimento == input.Riferimento || - (this.Riferimento != null && - this.Riferimento.Equals(input.Riferimento)) - ) && - ( - this.Codfis == input.Codfis || - (this.Codfis != null && - this.Codfis.Equals(input.Codfis)) - ) && - ( - this.Partiva == input.Partiva || - (this.Partiva != null && - this.Partiva.Equals(input.Partiva)) - ) && - ( - this.Priorita == input.Priorita || - (this.Priorita != null && - this.Priorita.Equals(input.Priorita)) - ) && - ( - this.Idrubrica == input.Idrubrica || - (this.Idrubrica != null && - this.Idrubrica.Equals(input.Idrubrica)) - ) && - ( - this.Idcontatto == input.Idcontatto || - (this.Idcontatto != null && - this.Idcontatto.Equals(input.Idcontatto)) - ) && - ( - this.Codiceufficio == input.Codiceufficio || - (this.Codiceufficio != null && - this.Codiceufficio.Equals(input.Codiceufficio)) - ) && - ( - this.Codiceipa == input.Codiceipa || - (this.Codiceipa != null && - this.Codiceipa.Equals(input.Codiceipa)) - ) && - ( - this.Pecrubrica == input.Pecrubrica || - (this.Pecrubrica != null && - this.Pecrubrica.Equals(input.Pecrubrica)) - ) && - ( - this.Feaenabled == input.Feaenabled || - (this.Feaenabled != null && - this.Feaenabled.Equals(input.Feaenabled)) - ) && - ( - this.Feaexpiredate == input.Feaexpiredate || - (this.Feaexpiredate != null && - this.Feaexpiredate.Equals(input.Feaexpiredate)) - ) && - ( - this.Nome == input.Nome || - (this.Nome != null && - this.Nome.Equals(input.Nome)) - ) && - ( - this.Cognome == input.Cognome || - (this.Cognome != null && - this.Cognome.Equals(input.Cognome)) - ) && - ( - this.Pec == input.Pec || - (this.Pec != null && - this.Pec.Equals(input.Pec)) - ) && - ( - this.ForceCaseInsensitive == input.ForceCaseInsensitive || - (this.ForceCaseInsensitive != null && - this.ForceCaseInsensitive.Equals(input.ForceCaseInsensitive)) - ) && - ( - this.JoinMode == input.JoinMode || - (this.JoinMode != null && - this.JoinMode.Equals(input.JoinMode)) - ) && - ( - this.NomeTabella == input.NomeTabella || - (this.NomeTabella != null && - this.NomeTabella.Equals(input.NomeTabella)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.LegameTabella != null) - hashCode = hashCode * 59 + this.LegameTabella.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Campo != null) - hashCode = hashCode * 59 + this.Campo.GetHashCode(); - if (this.Valore != null) - hashCode = hashCode * 59 + this.Valore.GetHashCode(); - if (this.Contatti != null) - hashCode = hashCode * 59 + this.Contatti.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.Tel != null) - hashCode = hashCode * 59 + this.Tel.GetHashCode(); - if (this.Indirizzo != null) - hashCode = hashCode * 59 + this.Indirizzo.GetHashCode(); - if (this.Mail != null) - hashCode = hashCode * 59 + this.Mail.GetHashCode(); - if (this.Localita != null) - hashCode = hashCode * 59 + this.Localita.GetHashCode(); - if (this.Cap != null) - hashCode = hashCode * 59 + this.Cap.GetHashCode(); - if (this.Provincia != null) - hashCode = hashCode * 59 + this.Provincia.GetHashCode(); - if (this.Nazione != null) - hashCode = hashCode * 59 + this.Nazione.GetHashCode(); - if (this.Codice != null) - hashCode = hashCode * 59 + this.Codice.GetHashCode(); - if (this.Contatto != null) - hashCode = hashCode * 59 + this.Contatto.GetHashCode(); - if (this.Mansione != null) - hashCode = hashCode * 59 + this.Mansione.GetHashCode(); - if (this.Telnome != null) - hashCode = hashCode * 59 + this.Telnome.GetHashCode(); - if (this.Faxnome != null) - hashCode = hashCode * 59 + this.Faxnome.GetHashCode(); - if (this.Cell != null) - hashCode = hashCode * 59 + this.Cell.GetHashCode(); - if (this.Abitazione != null) - hashCode = hashCode * 59 + this.Abitazione.GetHashCode(); - if (this.Reparto != null) - hashCode = hashCode * 59 + this.Reparto.GetHashCode(); - if (this.Ufficio != null) - hashCode = hashCode * 59 + this.Ufficio.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Riferimento != null) - hashCode = hashCode * 59 + this.Riferimento.GetHashCode(); - if (this.Codfis != null) - hashCode = hashCode * 59 + this.Codfis.GetHashCode(); - if (this.Partiva != null) - hashCode = hashCode * 59 + this.Partiva.GetHashCode(); - if (this.Priorita != null) - hashCode = hashCode * 59 + this.Priorita.GetHashCode(); - if (this.Idrubrica != null) - hashCode = hashCode * 59 + this.Idrubrica.GetHashCode(); - if (this.Idcontatto != null) - hashCode = hashCode * 59 + this.Idcontatto.GetHashCode(); - if (this.Codiceufficio != null) - hashCode = hashCode * 59 + this.Codiceufficio.GetHashCode(); - if (this.Codiceipa != null) - hashCode = hashCode * 59 + this.Codiceipa.GetHashCode(); - if (this.Pecrubrica != null) - hashCode = hashCode * 59 + this.Pecrubrica.GetHashCode(); - if (this.Feaenabled != null) - hashCode = hashCode * 59 + this.Feaenabled.GetHashCode(); - if (this.Feaexpiredate != null) - hashCode = hashCode * 59 + this.Feaexpiredate.GetHashCode(); - if (this.Nome != null) - hashCode = hashCode * 59 + this.Nome.GetHashCode(); - if (this.Cognome != null) - hashCode = hashCode * 59 + this.Cognome.GetHashCode(); - if (this.Pec != null) - hashCode = hashCode * 59 + this.Pec.GetHashCode(); - if (this.ForceCaseInsensitive != null) - hashCode = hashCode * 59 + this.ForceCaseInsensitive.GetHashCode(); - if (this.JoinMode != null) - hashCode = hashCode * 59 + this.JoinMode.GetHashCode(); - if (this.NomeTabella != null) - hashCode = hashCode * 59 + this.NomeTabella.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/KeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/KeyValueDTO.cs deleted file mode 100644 index ec660b5..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/KeyValueDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Common object that define a set of key and value - /// - [DataContract] - public partial class KeyValueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Name of the field.. - /// Value of field.. - public KeyValueDTO(string name = default(string), string value = default(string)) - { - this.Name = name; - this.Value = value; - } - - /// - /// Name of the field. - /// - /// Name of the field. - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Value of field. - /// - /// Value of field. - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KeyValueDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KeyValueDTO); - } - - /// - /// Returns true if KeyValueDTO instances are equal - /// - /// Instance of KeyValueDTO to be compared - /// Boolean - public bool Equals(KeyValueDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/KeyValueElementDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/KeyValueElementDto.cs deleted file mode 100644 index 1638a4b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/KeyValueElementDto.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of element key\\value - /// - [DataContract] - public partial class KeyValueElementDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Value. - public KeyValueElementDto(string id = default(string), string value = default(string)) - { - this.Id = id; - this.Value = value; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KeyValueElementDto {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KeyValueElementDto); - } - - /// - /// Returns true if KeyValueElementDto instances are equal - /// - /// Instance of KeyValueElementDto to be compared - /// Boolean - public bool Equals(KeyValueElementDto input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/KeyValuePairStringString.cs b/ACUtils.AXRepository/ArxivarNext/Model/KeyValuePairStringString.cs deleted file mode 100644 index 1fc27e3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/KeyValuePairStringString.cs +++ /dev/null @@ -1,137 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// KeyValuePairStringString - /// - [DataContract] - public partial class KeyValuePairStringString : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - public KeyValuePairStringString() - { - } - - /// - /// Gets or Sets Key - /// - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; private set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; private set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KeyValuePairStringString {\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KeyValuePairStringString); - } - - /// - /// Returns true if KeyValuePairStringString instances are equal - /// - /// Instance of KeyValuePairStringString to be compared - /// Boolean - public bool Equals(KeyValuePairStringString input) - { - if (input == null) - return false; - - return - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/KeyValueParameterDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/KeyValueParameterDto.cs deleted file mode 100644 index f8eb2a1..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/KeyValueParameterDto.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// KeyValueParameterDto - /// - [DataContract] - public partial class KeyValueParameterDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// key. - /// value. - /// valueType. - public KeyValueParameterDto(string key = default(string), Object value = default(Object), string valueType = default(string)) - { - this.Key = key; - this.Value = value; - this.ValueType = valueType; - } - - /// - /// Gets or Sets Key - /// - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public Object Value { get; set; } - - /// - /// Gets or Sets ValueType - /// - [DataMember(Name="valueType", EmitDefaultValue=false)] - public string ValueType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KeyValueParameterDto {\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" ValueType: ").Append(ValueType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KeyValueParameterDto); - } - - /// - /// Returns true if KeyValueParameterDto instances are equal - /// - /// Instance of KeyValueParameterDto to be compared - /// Boolean - public bool Equals(KeyValueParameterDto input) - { - if (input == null) - return false; - - return - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && - ( - this.ValueType == input.ValueType || - (this.ValueType != null && - this.ValueType.Equals(input.ValueType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.ValueType != null) - hashCode = hashCode * 59 + this.ValueType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LabelTranslationsDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/LabelTranslationsDto.cs deleted file mode 100644 index 4945145..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LabelTranslationsDto.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of traslated label - /// - [DataContract] - public partial class LabelTranslationsDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Code. - /// Traslated Label. - public LabelTranslationsDto(string langCode = default(string), string labelTranslation = default(string)) - { - this.LangCode = langCode; - this.LabelTranslation = labelTranslation; - } - - /// - /// Code - /// - /// Code - [DataMember(Name="langCode", EmitDefaultValue=false)] - public string LangCode { get; set; } - - /// - /// Traslated Label - /// - /// Traslated Label - [DataMember(Name="labelTranslation", EmitDefaultValue=false)] - public string LabelTranslation { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LabelTranslationsDto {\n"); - sb.Append(" LangCode: ").Append(LangCode).Append("\n"); - sb.Append(" LabelTranslation: ").Append(LabelTranslation).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LabelTranslationsDto); - } - - /// - /// Returns true if LabelTranslationsDto instances are equal - /// - /// Instance of LabelTranslationsDto to be compared - /// Boolean - public bool Equals(LabelTranslationsDto input) - { - if (input == null) - return false; - - return - ( - this.LangCode == input.LangCode || - (this.LangCode != null && - this.LangCode.Equals(input.LangCode)) - ) && - ( - this.LabelTranslation == input.LabelTranslation || - (this.LabelTranslation != null && - this.LabelTranslation.Equals(input.LabelTranslation)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.LangCode != null) - hashCode = hashCode * 59 + this.LangCode.GetHashCode(); - if (this.LabelTranslation != null) - hashCode = hashCode * 59 + this.LabelTranslation.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LanguageDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/LanguageDto.cs deleted file mode 100644 index 8520935..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LanguageDto.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of language - /// - [DataContract] - public partial class LanguageDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Code. - /// Description. - public LanguageDto(string code = default(string), string description = default(string)) - { - this.Code = code; - this.Description = description; - } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LanguageDto {\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LanguageDto); - } - - /// - /// Returns true if LanguageDto instances are equal - /// - /// Instance of LanguageDto to be compared - /// Boolean - public bool Equals(LanguageDto input) - { - if (input == null) - return false; - - return - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LayoutDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/LayoutDTO.cs deleted file mode 100644 index eda4e2d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LayoutDTO.cs +++ /dev/null @@ -1,295 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of layout - /// - [DataContract] - public partial class LayoutDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Possible values: 1: DesktopMenu 2: CommandsPanel . - /// Name. - /// Author user. - /// Author name. - /// Creation Date. - /// Priority. - /// Details. - /// Possible values: 2: Computer 4: Tablet 8: Smartphone . - /// Users. - /// System Layout. - public LayoutDTO(int? id = default(int?), int? type = default(int?), string name = default(string), int? author = default(int?), string authorCompleteName = default(string), DateTime? creationDate = default(DateTime?), int? priority = default(int?), List details = default(List), int? usingType = default(int?), List users = default(List), bool? isSystem = default(bool?)) - { - this.Id = id; - this.Type = type; - this.Name = name; - this.Author = author; - this.AuthorCompleteName = authorCompleteName; - this.CreationDate = creationDate; - this.Priority = priority; - this.Details = details; - this.UsingType = usingType; - this.Users = users; - this.IsSystem = isSystem; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Possible values: 1: DesktopMenu 2: CommandsPanel - /// - /// Possible values: 1: DesktopMenu 2: CommandsPanel - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Author user - /// - /// Author user - [DataMember(Name="author", EmitDefaultValue=false)] - public int? Author { get; set; } - - /// - /// Author name - /// - /// Author name - [DataMember(Name="authorCompleteName", EmitDefaultValue=false)] - public string AuthorCompleteName { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Priority - /// - /// Priority - [DataMember(Name="priority", EmitDefaultValue=false)] - public int? Priority { get; set; } - - /// - /// Details - /// - /// Details - [DataMember(Name="details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - /// - /// Possible values: 2: Computer 4: Tablet 8: Smartphone - [DataMember(Name="usingType", EmitDefaultValue=false)] - public int? UsingType { get; set; } - - /// - /// Users - /// - /// Users - [DataMember(Name="users", EmitDefaultValue=false)] - public List Users { get; set; } - - /// - /// System Layout - /// - /// System Layout - [DataMember(Name="isSystem", EmitDefaultValue=false)] - public bool? IsSystem { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LayoutDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Author: ").Append(Author).Append("\n"); - sb.Append(" AuthorCompleteName: ").Append(AuthorCompleteName).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" UsingType: ").Append(UsingType).Append("\n"); - sb.Append(" Users: ").Append(Users).Append("\n"); - sb.Append(" IsSystem: ").Append(IsSystem).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LayoutDTO); - } - - /// - /// Returns true if LayoutDTO instances are equal - /// - /// Instance of LayoutDTO to be compared - /// Boolean - public bool Equals(LayoutDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Author == input.Author || - (this.Author != null && - this.Author.Equals(input.Author)) - ) && - ( - this.AuthorCompleteName == input.AuthorCompleteName || - (this.AuthorCompleteName != null && - this.AuthorCompleteName.Equals(input.AuthorCompleteName)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && - ( - this.UsingType == input.UsingType || - (this.UsingType != null && - this.UsingType.Equals(input.UsingType)) - ) && - ( - this.Users == input.Users || - this.Users != null && - this.Users.SequenceEqual(input.Users) - ) && - ( - this.IsSystem == input.IsSystem || - (this.IsSystem != null && - this.IsSystem.Equals(input.IsSystem)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Author != null) - hashCode = hashCode * 59 + this.Author.GetHashCode(); - if (this.AuthorCompleteName != null) - hashCode = hashCode * 59 + this.AuthorCompleteName.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.UsingType != null) - hashCode = hashCode * 59 + this.UsingType.GetHashCode(); - if (this.Users != null) - hashCode = hashCode * 59 + this.Users.GetHashCode(); - if (this.IsSystem != null) - hashCode = hashCode * 59 + this.IsSystem.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LayoutDesktopDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/LayoutDesktopDTO.cs deleted file mode 100644 index 0e46a93..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LayoutDesktopDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Layout - /// - [DataContract] - public partial class LayoutDesktopDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// Author user. - /// Author name. - /// Creation Date. - /// Details. - /// System Layout. - public LayoutDesktopDTO(int? id = default(int?), string name = default(string), int? author = default(int?), string authorCompleteName = default(string), DateTime? creationDate = default(DateTime?), List details = default(List), bool? isSystem = default(bool?)) - { - this.Id = id; - this.Name = name; - this.Author = author; - this.AuthorCompleteName = authorCompleteName; - this.CreationDate = creationDate; - this.Details = details; - this.IsSystem = isSystem; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Author user - /// - /// Author user - [DataMember(Name="author", EmitDefaultValue=false)] - public int? Author { get; set; } - - /// - /// Author name - /// - /// Author name - [DataMember(Name="authorCompleteName", EmitDefaultValue=false)] - public string AuthorCompleteName { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Details - /// - /// Details - [DataMember(Name="details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// System Layout - /// - /// System Layout - [DataMember(Name="isSystem", EmitDefaultValue=false)] - public bool? IsSystem { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LayoutDesktopDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Author: ").Append(Author).Append("\n"); - sb.Append(" AuthorCompleteName: ").Append(AuthorCompleteName).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" IsSystem: ").Append(IsSystem).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LayoutDesktopDTO); - } - - /// - /// Returns true if LayoutDesktopDTO instances are equal - /// - /// Instance of LayoutDesktopDTO to be compared - /// Boolean - public bool Equals(LayoutDesktopDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Author == input.Author || - (this.Author != null && - this.Author.Equals(input.Author)) - ) && - ( - this.AuthorCompleteName == input.AuthorCompleteName || - (this.AuthorCompleteName != null && - this.AuthorCompleteName.Equals(input.AuthorCompleteName)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && - ( - this.IsSystem == input.IsSystem || - (this.IsSystem != null && - this.IsSystem.Equals(input.IsSystem)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Author != null) - hashCode = hashCode * 59 + this.Author.GetHashCode(); - if (this.AuthorCompleteName != null) - hashCode = hashCode * 59 + this.AuthorCompleteName.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.IsSystem != null) - hashCode = hashCode * 59 + this.IsSystem.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LayoutDesktopDetailDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/LayoutDesktopDetailDTO.cs deleted file mode 100644 index a9a97cf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LayoutDesktopDetailDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of layout detail in desktop - /// - [DataContract] - public partial class LayoutDesktopDetailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Item Identifier. - /// X Coordinates. - /// Y Coordinates. - /// Width. - /// Heigth. - /// Instance Identifier. - /// Layout Identifier. - public LayoutDesktopDetailDTO(int? id = default(int?), string elementId = default(string), int? x = default(int?), int? y = default(int?), int? w = default(int?), int? h = default(int?), string instanceId = default(string), int? layoutId = default(int?)) - { - this.Id = id; - this.ElementId = elementId; - this.X = x; - this.Y = y; - this.W = w; - this.H = h; - this.InstanceId = instanceId; - this.LayoutId = layoutId; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Item Identifier - /// - /// Item Identifier - [DataMember(Name="elementId", EmitDefaultValue=false)] - public string ElementId { get; set; } - - /// - /// X Coordinates - /// - /// X Coordinates - [DataMember(Name="x", EmitDefaultValue=false)] - public int? X { get; set; } - - /// - /// Y Coordinates - /// - /// Y Coordinates - [DataMember(Name="y", EmitDefaultValue=false)] - public int? Y { get; set; } - - /// - /// Width - /// - /// Width - [DataMember(Name="w", EmitDefaultValue=false)] - public int? W { get; set; } - - /// - /// Heigth - /// - /// Heigth - [DataMember(Name="h", EmitDefaultValue=false)] - public int? H { get; set; } - - /// - /// Instance Identifier - /// - /// Instance Identifier - [DataMember(Name="instanceId", EmitDefaultValue=false)] - public string InstanceId { get; set; } - - /// - /// Layout Identifier - /// - /// Layout Identifier - [DataMember(Name="layoutId", EmitDefaultValue=false)] - public int? LayoutId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LayoutDesktopDetailDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ElementId: ").Append(ElementId).Append("\n"); - sb.Append(" X: ").Append(X).Append("\n"); - sb.Append(" Y: ").Append(Y).Append("\n"); - sb.Append(" W: ").Append(W).Append("\n"); - sb.Append(" H: ").Append(H).Append("\n"); - sb.Append(" InstanceId: ").Append(InstanceId).Append("\n"); - sb.Append(" LayoutId: ").Append(LayoutId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LayoutDesktopDetailDTO); - } - - /// - /// Returns true if LayoutDesktopDetailDTO instances are equal - /// - /// Instance of LayoutDesktopDetailDTO to be compared - /// Boolean - public bool Equals(LayoutDesktopDetailDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ElementId == input.ElementId || - (this.ElementId != null && - this.ElementId.Equals(input.ElementId)) - ) && - ( - this.X == input.X || - (this.X != null && - this.X.Equals(input.X)) - ) && - ( - this.Y == input.Y || - (this.Y != null && - this.Y.Equals(input.Y)) - ) && - ( - this.W == input.W || - (this.W != null && - this.W.Equals(input.W)) - ) && - ( - this.H == input.H || - (this.H != null && - this.H.Equals(input.H)) - ) && - ( - this.InstanceId == input.InstanceId || - (this.InstanceId != null && - this.InstanceId.Equals(input.InstanceId)) - ) && - ( - this.LayoutId == input.LayoutId || - (this.LayoutId != null && - this.LayoutId.Equals(input.LayoutId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ElementId != null) - hashCode = hashCode * 59 + this.ElementId.GetHashCode(); - if (this.X != null) - hashCode = hashCode * 59 + this.X.GetHashCode(); - if (this.Y != null) - hashCode = hashCode * 59 + this.Y.GetHashCode(); - if (this.W != null) - hashCode = hashCode * 59 + this.W.GetHashCode(); - if (this.H != null) - hashCode = hashCode * 59 + this.H.GetHashCode(); - if (this.InstanceId != null) - hashCode = hashCode * 59 + this.InstanceId.GetHashCode(); - if (this.LayoutId != null) - hashCode = hashCode * 59 + this.LayoutId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LayoutDetailDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/LayoutDetailDTO.cs deleted file mode 100644 index ecfe5ab..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LayoutDetailDTO.cs +++ /dev/null @@ -1,310 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of layout deatil - /// - [DataContract] - public partial class LayoutDetailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// label. - /// Element Type. - /// Element Identifier. - /// Element Action. - /// Order. - /// Parent Identifier. - /// Layout Identifier. - /// Operation Type. - /// favourite. - /// Translated Labels. - /// Details of child layout. - public LayoutDetailDTO(int? id = default(int?), string label = default(string), int? elementType = default(int?), string elementId = default(string), int? elementAction = default(int?), int? orderIndex = default(int?), int? parentId = default(int?), int? layoutId = default(int?), int? operation = default(int?), bool? favourite = default(bool?), List translations = default(List), List childs = default(List)) - { - this.Id = id; - this.Label = label; - this.ElementType = elementType; - this.ElementId = elementId; - this.ElementAction = elementAction; - this.OrderIndex = orderIndex; - this.ParentId = parentId; - this.LayoutId = layoutId; - this.Operation = operation; - this.Favourite = favourite; - this.Translations = translations; - this.Childs = childs; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or Sets Label - /// - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Element Type - /// - /// Element Type - [DataMember(Name="elementType", EmitDefaultValue=false)] - public int? ElementType { get; set; } - - /// - /// Element Identifier - /// - /// Element Identifier - [DataMember(Name="elementId", EmitDefaultValue=false)] - public string ElementId { get; set; } - - /// - /// Element Action - /// - /// Element Action - [DataMember(Name="elementAction", EmitDefaultValue=false)] - public int? ElementAction { get; set; } - - /// - /// Order - /// - /// Order - [DataMember(Name="orderIndex", EmitDefaultValue=false)] - public int? OrderIndex { get; set; } - - /// - /// Parent Identifier - /// - /// Parent Identifier - [DataMember(Name="parentId", EmitDefaultValue=false)] - public int? ParentId { get; set; } - - /// - /// Layout Identifier - /// - /// Layout Identifier - [DataMember(Name="layoutId", EmitDefaultValue=false)] - public int? LayoutId { get; set; } - - /// - /// Operation Type - /// - /// Operation Type - [DataMember(Name="operation", EmitDefaultValue=false)] - public int? Operation { get; set; } - - /// - /// Gets or Sets Favourite - /// - [DataMember(Name="favourite", EmitDefaultValue=false)] - public bool? Favourite { get; set; } - - /// - /// Translated Labels - /// - /// Translated Labels - [DataMember(Name="translations", EmitDefaultValue=false)] - public List Translations { get; set; } - - /// - /// Details of child layout - /// - /// Details of child layout - [DataMember(Name="childs", EmitDefaultValue=false)] - public List Childs { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LayoutDetailDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" ElementType: ").Append(ElementType).Append("\n"); - sb.Append(" ElementId: ").Append(ElementId).Append("\n"); - sb.Append(" ElementAction: ").Append(ElementAction).Append("\n"); - sb.Append(" OrderIndex: ").Append(OrderIndex).Append("\n"); - sb.Append(" ParentId: ").Append(ParentId).Append("\n"); - sb.Append(" LayoutId: ").Append(LayoutId).Append("\n"); - sb.Append(" Operation: ").Append(Operation).Append("\n"); - sb.Append(" Favourite: ").Append(Favourite).Append("\n"); - sb.Append(" Translations: ").Append(Translations).Append("\n"); - sb.Append(" Childs: ").Append(Childs).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LayoutDetailDTO); - } - - /// - /// Returns true if LayoutDetailDTO instances are equal - /// - /// Instance of LayoutDetailDTO to be compared - /// Boolean - public bool Equals(LayoutDetailDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.ElementType == input.ElementType || - (this.ElementType != null && - this.ElementType.Equals(input.ElementType)) - ) && - ( - this.ElementId == input.ElementId || - (this.ElementId != null && - this.ElementId.Equals(input.ElementId)) - ) && - ( - this.ElementAction == input.ElementAction || - (this.ElementAction != null && - this.ElementAction.Equals(input.ElementAction)) - ) && - ( - this.OrderIndex == input.OrderIndex || - (this.OrderIndex != null && - this.OrderIndex.Equals(input.OrderIndex)) - ) && - ( - this.ParentId == input.ParentId || - (this.ParentId != null && - this.ParentId.Equals(input.ParentId)) - ) && - ( - this.LayoutId == input.LayoutId || - (this.LayoutId != null && - this.LayoutId.Equals(input.LayoutId)) - ) && - ( - this.Operation == input.Operation || - (this.Operation != null && - this.Operation.Equals(input.Operation)) - ) && - ( - this.Favourite == input.Favourite || - (this.Favourite != null && - this.Favourite.Equals(input.Favourite)) - ) && - ( - this.Translations == input.Translations || - this.Translations != null && - this.Translations.SequenceEqual(input.Translations) - ) && - ( - this.Childs == input.Childs || - this.Childs != null && - this.Childs.SequenceEqual(input.Childs) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.ElementType != null) - hashCode = hashCode * 59 + this.ElementType.GetHashCode(); - if (this.ElementId != null) - hashCode = hashCode * 59 + this.ElementId.GetHashCode(); - if (this.ElementAction != null) - hashCode = hashCode * 59 + this.ElementAction.GetHashCode(); - if (this.OrderIndex != null) - hashCode = hashCode * 59 + this.OrderIndex.GetHashCode(); - if (this.ParentId != null) - hashCode = hashCode * 59 + this.ParentId.GetHashCode(); - if (this.LayoutId != null) - hashCode = hashCode * 59 + this.LayoutId.GetHashCode(); - if (this.Operation != null) - hashCode = hashCode * 59 + this.Operation.GetHashCode(); - if (this.Favourite != null) - hashCode = hashCode * 59 + this.Favourite.GetHashCode(); - if (this.Translations != null) - hashCode = hashCode * 59 + this.Translations.GetHashCode(); - if (this.Childs != null) - hashCode = hashCode * 59 + this.Childs.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LayoutUsersDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/LayoutUsersDto.cs deleted file mode 100644 index c09537a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LayoutUsersDto.cs +++ /dev/null @@ -1,192 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of users layout - /// - [DataContract] - public partial class LayoutUsersDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Layout Identifier. - /// User Identifier. - /// User Name. - /// User Category. - /// isUserDisabled. - public LayoutUsersDto(int? layoutId = default(int?), int? userId = default(int?), string completeName = default(string), int? category = default(int?), bool? isUserDisabled = default(bool?)) - { - this.LayoutId = layoutId; - this.UserId = userId; - this.CompleteName = completeName; - this.Category = category; - this.IsUserDisabled = isUserDisabled; - } - - /// - /// Layout Identifier - /// - /// Layout Identifier - [DataMember(Name="layoutId", EmitDefaultValue=false)] - public int? LayoutId { get; set; } - - /// - /// User Identifier - /// - /// User Identifier - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// User Name - /// - /// User Name - [DataMember(Name="completeName", EmitDefaultValue=false)] - public string CompleteName { get; set; } - - /// - /// User Category - /// - /// User Category - [DataMember(Name="category", EmitDefaultValue=false)] - public int? Category { get; set; } - - /// - /// Gets or Sets IsUserDisabled - /// - [DataMember(Name="isUserDisabled", EmitDefaultValue=false)] - public bool? IsUserDisabled { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LayoutUsersDto {\n"); - sb.Append(" LayoutId: ").Append(LayoutId).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" CompleteName: ").Append(CompleteName).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" IsUserDisabled: ").Append(IsUserDisabled).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LayoutUsersDto); - } - - /// - /// Returns true if LayoutUsersDto instances are equal - /// - /// Instance of LayoutUsersDto to be compared - /// Boolean - public bool Equals(LayoutUsersDto input) - { - if (input == null) - return false; - - return - ( - this.LayoutId == input.LayoutId || - (this.LayoutId != null && - this.LayoutId.Equals(input.LayoutId)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.CompleteName == input.CompleteName || - (this.CompleteName != null && - this.CompleteName.Equals(input.CompleteName)) - ) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && - ( - this.IsUserDisabled == input.IsUserDisabled || - (this.IsUserDisabled != null && - this.IsUserDisabled.Equals(input.IsUserDisabled)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.LayoutId != null) - hashCode = hashCode * 59 + this.LayoutId.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.CompleteName != null) - hashCode = hashCode * 59 + this.CompleteName.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.IsUserDisabled != null) - hashCode = hashCode * 59 + this.IsUserDisabled.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LicenseCustomer.cs b/ACUtils.AXRepository/ArxivarNext/Model/LicenseCustomer.cs deleted file mode 100644 index f6d08d6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LicenseCustomer.cs +++ /dev/null @@ -1,188 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// LicenseCustomer - /// - [DataContract] - public partial class LicenseCustomer : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// name. - /// specification. - /// piva. - /// codFiscale. - /// rivenditoriList. - public LicenseCustomer(string name = default(string), string specification = default(string), string piva = default(string), string codFiscale = default(string), List rivenditoriList = default(List)) - { - this.Name = name; - this.Specification = specification; - this.Piva = piva; - this.CodFiscale = codFiscale; - this.RivenditoriList = rivenditoriList; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Gets or Sets Specification - /// - [DataMember(Name="specification", EmitDefaultValue=false)] - public string Specification { get; set; } - - /// - /// Gets or Sets Piva - /// - [DataMember(Name="piva", EmitDefaultValue=false)] - public string Piva { get; set; } - - /// - /// Gets or Sets CodFiscale - /// - [DataMember(Name="codFiscale", EmitDefaultValue=false)] - public string CodFiscale { get; set; } - - /// - /// Gets or Sets RivenditoriList - /// - [DataMember(Name="rivenditoriList", EmitDefaultValue=false)] - public List RivenditoriList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LicenseCustomer {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Specification: ").Append(Specification).Append("\n"); - sb.Append(" Piva: ").Append(Piva).Append("\n"); - sb.Append(" CodFiscale: ").Append(CodFiscale).Append("\n"); - sb.Append(" RivenditoriList: ").Append(RivenditoriList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LicenseCustomer); - } - - /// - /// Returns true if LicenseCustomer instances are equal - /// - /// Instance of LicenseCustomer to be compared - /// Boolean - public bool Equals(LicenseCustomer input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Specification == input.Specification || - (this.Specification != null && - this.Specification.Equals(input.Specification)) - ) && - ( - this.Piva == input.Piva || - (this.Piva != null && - this.Piva.Equals(input.Piva)) - ) && - ( - this.CodFiscale == input.CodFiscale || - (this.CodFiscale != null && - this.CodFiscale.Equals(input.CodFiscale)) - ) && - ( - this.RivenditoriList == input.RivenditoriList || - this.RivenditoriList != null && - this.RivenditoriList.SequenceEqual(input.RivenditoriList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Specification != null) - hashCode = hashCode * 59 + this.Specification.GetHashCode(); - if (this.Piva != null) - hashCode = hashCode * 59 + this.Piva.GetHashCode(); - if (this.CodFiscale != null) - hashCode = hashCode * 59 + this.CodFiscale.GetHashCode(); - if (this.RivenditoriList != null) - hashCode = hashCode * 59 + this.RivenditoriList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LicenseExpiration.cs b/ACUtils.AXRepository/ArxivarNext/Model/LicenseExpiration.cs deleted file mode 100644 index 48f9c54..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LicenseExpiration.cs +++ /dev/null @@ -1,172 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// LicenseExpiration - /// - [DataContract] - public partial class LicenseExpiration : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// utcValidFrom. - /// utcValidTo. - /// isActive. - /// isExpired. - public LicenseExpiration(DateTime? utcValidFrom = default(DateTime?), DateTime? utcValidTo = default(DateTime?), bool? isActive = default(bool?), bool? isExpired = default(bool?)) - { - this.UtcValidFrom = utcValidFrom; - this.UtcValidTo = utcValidTo; - this.IsActive = isActive; - this.IsExpired = isExpired; - } - - /// - /// Gets or Sets UtcValidFrom - /// - [DataMember(Name="utcValidFrom", EmitDefaultValue=false)] - public DateTime? UtcValidFrom { get; set; } - - /// - /// Gets or Sets UtcValidTo - /// - [DataMember(Name="utcValidTo", EmitDefaultValue=false)] - public DateTime? UtcValidTo { get; set; } - - /// - /// Gets or Sets IsActive - /// - [DataMember(Name="isActive", EmitDefaultValue=false)] - public bool? IsActive { get; set; } - - /// - /// Gets or Sets IsExpired - /// - [DataMember(Name="isExpired", EmitDefaultValue=false)] - public bool? IsExpired { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LicenseExpiration {\n"); - sb.Append(" UtcValidFrom: ").Append(UtcValidFrom).Append("\n"); - sb.Append(" UtcValidTo: ").Append(UtcValidTo).Append("\n"); - sb.Append(" IsActive: ").Append(IsActive).Append("\n"); - sb.Append(" IsExpired: ").Append(IsExpired).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LicenseExpiration); - } - - /// - /// Returns true if LicenseExpiration instances are equal - /// - /// Instance of LicenseExpiration to be compared - /// Boolean - public bool Equals(LicenseExpiration input) - { - if (input == null) - return false; - - return - ( - this.UtcValidFrom == input.UtcValidFrom || - (this.UtcValidFrom != null && - this.UtcValidFrom.Equals(input.UtcValidFrom)) - ) && - ( - this.UtcValidTo == input.UtcValidTo || - (this.UtcValidTo != null && - this.UtcValidTo.Equals(input.UtcValidTo)) - ) && - ( - this.IsActive == input.IsActive || - (this.IsActive != null && - this.IsActive.Equals(input.IsActive)) - ) && - ( - this.IsExpired == input.IsExpired || - (this.IsExpired != null && - this.IsExpired.Equals(input.IsExpired)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.UtcValidFrom != null) - hashCode = hashCode * 59 + this.UtcValidFrom.GetHashCode(); - if (this.UtcValidTo != null) - hashCode = hashCode * 59 + this.UtcValidTo.GetHashCode(); - if (this.IsActive != null) - hashCode = hashCode * 59 + this.IsActive.GetHashCode(); - if (this.IsExpired != null) - hashCode = hashCode * 59 + this.IsExpired.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LicenseModule.cs b/ACUtils.AXRepository/ArxivarNext/Model/LicenseModule.cs deleted file mode 100644 index f595437..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LicenseModule.cs +++ /dev/null @@ -1,172 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// LicenseModule - /// - [DataContract] - public partial class LicenseModule : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// name. - /// specification. - /// quantity. - /// expiration. - public LicenseModule(string name = default(string), string specification = default(string), int? quantity = default(int?), LicenseExpiration expiration = default(LicenseExpiration)) - { - this.Name = name; - this.Specification = specification; - this.Quantity = quantity; - this.Expiration = expiration; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Gets or Sets Specification - /// - [DataMember(Name="specification", EmitDefaultValue=false)] - public string Specification { get; set; } - - /// - /// Gets or Sets Quantity - /// - [DataMember(Name="quantity", EmitDefaultValue=false)] - public int? Quantity { get; set; } - - /// - /// Gets or Sets Expiration - /// - [DataMember(Name="expiration", EmitDefaultValue=false)] - public LicenseExpiration Expiration { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LicenseModule {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Specification: ").Append(Specification).Append("\n"); - sb.Append(" Quantity: ").Append(Quantity).Append("\n"); - sb.Append(" Expiration: ").Append(Expiration).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LicenseModule); - } - - /// - /// Returns true if LicenseModule instances are equal - /// - /// Instance of LicenseModule to be compared - /// Boolean - public bool Equals(LicenseModule input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Specification == input.Specification || - (this.Specification != null && - this.Specification.Equals(input.Specification)) - ) && - ( - this.Quantity == input.Quantity || - (this.Quantity != null && - this.Quantity.Equals(input.Quantity)) - ) && - ( - this.Expiration == input.Expiration || - (this.Expiration != null && - this.Expiration.Equals(input.Expiration)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Specification != null) - hashCode = hashCode * 59 + this.Specification.GetHashCode(); - if (this.Quantity != null) - hashCode = hashCode * 59 + this.Quantity.GetHashCode(); - if (this.Expiration != null) - hashCode = hashCode * 59 + this.Expiration.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LicenseModuleInstallation.cs b/ACUtils.AXRepository/ArxivarNext/Model/LicenseModuleInstallation.cs deleted file mode 100644 index 2d2a695..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LicenseModuleInstallation.cs +++ /dev/null @@ -1,220 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// LicenseModuleInstallation - /// - [DataContract] - public partial class LicenseModuleInstallation : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// name. - /// specification. - /// machineKey. - /// utcDateTime. - /// version. - /// versionString. - /// state. - public LicenseModuleInstallation(string name = default(string), string specification = default(string), string machineKey = default(string), DateTime? utcDateTime = default(DateTime?), Version version = default(Version), string versionString = default(string), string state = default(string)) - { - this.Name = name; - this.Specification = specification; - this.MachineKey = machineKey; - this.UtcDateTime = utcDateTime; - this.Version = version; - this.VersionString = versionString; - this.State = state; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Gets or Sets Specification - /// - [DataMember(Name="specification", EmitDefaultValue=false)] - public string Specification { get; set; } - - /// - /// Gets or Sets MachineKey - /// - [DataMember(Name="machineKey", EmitDefaultValue=false)] - public string MachineKey { get; set; } - - /// - /// Gets or Sets UtcDateTime - /// - [DataMember(Name="utcDateTime", EmitDefaultValue=false)] - public DateTime? UtcDateTime { get; set; } - - /// - /// Gets or Sets Version - /// - [DataMember(Name="version", EmitDefaultValue=false)] - public Version Version { get; set; } - - /// - /// Gets or Sets VersionString - /// - [DataMember(Name="versionString", EmitDefaultValue=false)] - public string VersionString { get; set; } - - /// - /// Gets or Sets State - /// - [DataMember(Name="state", EmitDefaultValue=false)] - public string State { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LicenseModuleInstallation {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Specification: ").Append(Specification).Append("\n"); - sb.Append(" MachineKey: ").Append(MachineKey).Append("\n"); - sb.Append(" UtcDateTime: ").Append(UtcDateTime).Append("\n"); - sb.Append(" Version: ").Append(Version).Append("\n"); - sb.Append(" VersionString: ").Append(VersionString).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LicenseModuleInstallation); - } - - /// - /// Returns true if LicenseModuleInstallation instances are equal - /// - /// Instance of LicenseModuleInstallation to be compared - /// Boolean - public bool Equals(LicenseModuleInstallation input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Specification == input.Specification || - (this.Specification != null && - this.Specification.Equals(input.Specification)) - ) && - ( - this.MachineKey == input.MachineKey || - (this.MachineKey != null && - this.MachineKey.Equals(input.MachineKey)) - ) && - ( - this.UtcDateTime == input.UtcDateTime || - (this.UtcDateTime != null && - this.UtcDateTime.Equals(input.UtcDateTime)) - ) && - ( - this.Version == input.Version || - (this.Version != null && - this.Version.Equals(input.Version)) - ) && - ( - this.VersionString == input.VersionString || - (this.VersionString != null && - this.VersionString.Equals(input.VersionString)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Specification != null) - hashCode = hashCode * 59 + this.Specification.GetHashCode(); - if (this.MachineKey != null) - hashCode = hashCode * 59 + this.MachineKey.GetHashCode(); - if (this.UtcDateTime != null) - hashCode = hashCode * 59 + this.UtcDateTime.GetHashCode(); - if (this.Version != null) - hashCode = hashCode * 59 + this.Version.GetHashCode(); - if (this.VersionString != null) - hashCode = hashCode * 59 + this.VersionString.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LicensePermission.cs b/ACUtils.AXRepository/ArxivarNext/Model/LicensePermission.cs deleted file mode 100644 index 17d4379..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LicensePermission.cs +++ /dev/null @@ -1,224 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// LicensePermission - /// - [DataContract] - public partial class LicensePermission : IEquatable, IValidatableObject - { - /// - /// Defines Mode - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum ModeEnum - { - - /// - /// Enum Deny for value: Deny - /// - [EnumMember(Value = "Deny")] - Deny = 1, - - /// - /// Enum Allow for value: Allow - /// - [EnumMember(Value = "Allow")] - Allow = 2 - } - - /// - /// Gets or Sets Mode - /// - [DataMember(Name="mode", EmitDefaultValue=false)] - public ModeEnum? Mode { get; set; } - /// - /// Initializes a new instance of the class. - /// - /// mode. - /// name. - /// specification. - /// utcDateTime. - /// values. - /// value. - public LicensePermission(ModeEnum? mode = default(ModeEnum?), string name = default(string), string specification = default(string), DateTime? utcDateTime = default(DateTime?), List values = default(List), string value = default(string)) - { - this.Mode = mode; - this.Name = name; - this.Specification = specification; - this.UtcDateTime = utcDateTime; - this.Values = values; - this.Value = value; - } - - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Gets or Sets Specification - /// - [DataMember(Name="specification", EmitDefaultValue=false)] - public string Specification { get; set; } - - /// - /// Gets or Sets UtcDateTime - /// - [DataMember(Name="utcDateTime", EmitDefaultValue=false)] - public DateTime? UtcDateTime { get; set; } - - /// - /// Gets or Sets Values - /// - [DataMember(Name="values", EmitDefaultValue=false)] - public List Values { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LicensePermission {\n"); - sb.Append(" Mode: ").Append(Mode).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Specification: ").Append(Specification).Append("\n"); - sb.Append(" UtcDateTime: ").Append(UtcDateTime).Append("\n"); - sb.Append(" Values: ").Append(Values).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LicensePermission); - } - - /// - /// Returns true if LicensePermission instances are equal - /// - /// Instance of LicensePermission to be compared - /// Boolean - public bool Equals(LicensePermission input) - { - if (input == null) - return false; - - return - ( - this.Mode == input.Mode || - (this.Mode != null && - this.Mode.Equals(input.Mode)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Specification == input.Specification || - (this.Specification != null && - this.Specification.Equals(input.Specification)) - ) && - ( - this.UtcDateTime == input.UtcDateTime || - (this.UtcDateTime != null && - this.UtcDateTime.Equals(input.UtcDateTime)) - ) && - ( - this.Values == input.Values || - this.Values != null && - this.Values.SequenceEqual(input.Values) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Mode != null) - hashCode = hashCode * 59 + this.Mode.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Specification != null) - hashCode = hashCode * 59 + this.Specification.GetHashCode(); - if (this.UtcDateTime != null) - hashCode = hashCode * 59 + this.UtcDateTime.GetHashCode(); - if (this.Values != null) - hashCode = hashCode * 59 + this.Values.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LogDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/LogDTO.cs deleted file mode 100644 index 61b1c1d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LogDTO.cs +++ /dev/null @@ -1,431 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of log item - /// - [DataContract] - public partial class LogDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Possible values: 1: INFORMATION 2: SUCCESSAUDIT 3: FAILUREAUDIT 4: WARNING 5: ERROR . - /// Message. - /// Creation Date. - /// Author. - /// Author Name. - /// Ip Address. - /// Possible values: 0: Nothing 1: WcfService 2: LogInClient 3: LogOutClient 4: LogInServer 5: LogOutServer 6: LogInSPR 7: LogOutSPR 8: LogInWEB 9: LogOutWEB 10: LogInGeneric 11: LogOutGeneric 12: LogInOCR 13: LogOutOCR 14: WcfServiceDmModuliDelete 15: LogIn 16: LogOut 17: GetDocument 18: SetDocument 19: DmNoteUpdated 20: PluginQueueLogInfo 21: SdAssocDocInserted 22: SdAssocDocDeleted 23: DmBarcodeDeleted 24: DmBarcodeUnMatchProfile 25: DmAllegatiFaxInsertDocument 26: DmDocOpenCheckOut 27: DocumentInsertRelationship 28: RevisioniGetDocument 29: RevisioniDelete 30: DmNpceOutInsert 31: DmNpceOutUpdate 32: DmNpceOutDelete 33: DmAssociazioniInsert 34: DmAllegatiWorkInsert 35: DmProcessDocSetDocumentInEditBuffer 36: DmProcessDocSetDocumentInLine 37: DmProcessDocSetDocumentForProfile 38: DmAllegatiDocInsert 39: DmAllegatiDocUpdate 40: DmAllegatiDocDelete 41: ProfileUpdateProtocollo 42: ProfileDeleted 43: ExternalCall 44: ProfileUndoCheckOut 45: ProfileInserted 46: ProfileLogReaded 47: ProfileUpdate 48: Profile_Field_DocName 49: Profile_Field_Aoo 50: Profile_Field_Numero 51: Profile_Field_DataDoc 52: Profile_Field_Mittente 53: Profile_Field_Destinatario 54: Profile_Field_Cc 55: Profile_Field_CreationDate 56: Profile_Field_Impronta 57: Profile_Field_Device 58: Profile_Field_DataFile 59: Profile_Field_Importante 60: Profile_Field_Revisione 61: Profile_Field_Autore 62: Profile_Field_Protocollo 63: Profile_Field_Anno 64: Profile_Field_Bloccato 65: Profile_Field_Stato 66: Profile_Field_InOut 67: Profile_Field_Scadenza 68: Profile_Field_Flag 69: Profile_Field_WorkFlow 70: Profile_Field_GestRev 71: Profile_Field_EtichettaCd 72: Profile_Field_EtichettaAos 73: Profile_Field_Associazioni 74: Profile_Field_OpenDoc 75: Profile_Field_Allegati 76: Profile_Field_Emergenza 77: Profile_Field_IsAos 78: Profile_Field_EtiReader 79: Profile_Field_ScadAos 80: Profile_Field_Aggiuntivi 81: Profile_Field_DataProt 82: Profile_Field_Compressed 83: ProfileLogMigrated 84: Profile_Field_Originale 85: ProfileSigned 86: ProfileInsertedInFolder 87: ProfileInsertedInFaxOut 88: ProfileInsertedInPratica 89: ProfileInsertedNote 90: LicenseViolated 91: BarcodePrinted 92: WorkflowStarted 93: WorkflowEnded 94: WorkflowEndedForced 95: WorkflowDeleted 96: DmAllegatiDocSignOtpSent 97: DmProfileSignOtpSent 98: ProfileRemovedFromFolder 99: ProfileRemovedFromPratica 100: Dm_Sharing_Insert 101: Dm_Sharing_Update 102: Dm_Sharing_Expiration 103: Dm_Sharing_Read 104: Dm_Sharing_Delete 105: Dm_Sharing_Expiration_NpceOut 106: RemoveDocument 107: Dm_Sharing_Alert 108: Dm_Sharing_MailOut 109: DocumentRemovedFromRelationship 110: DmAssociazioniDelete 111: Dm_Queue_Start 112: Dm_Queue_Change_Progress 113: Dm_Queue_Scheduled 114: Dm_Queue_Terminated 115: Dm_Queue_Cancelled 116: Dm_Queue_Waiting 117: Dm_Queue_Warning 118: Dm_Queue_Info 119: Dm_Instructions_Insert 120: Dm_Instructions_Update 121: Dm_Instructions_Delete 122: Dm_DatiProfilo_Field_Id 123: Dm_DatiProfilo_Field_Valore 124: Dm_DatiProfilo_Field_Contatti 125: Dm_DatiProfilo_Field_Fax 126: Dm_DatiProfilo_Field_Tel 127: Dm_DatiProfilo_Field_Indirizzo 128: Dm_DatiProfilo_Field_Mail 129: Dm_DatiProfilo_Field_Localita 130: Dm_DatiProfilo_Field_Cap 131: Dm_DatiProfilo_Field_Provincia 132: Dm_DatiProfilo_Field_Nazione 133: Dm_DatiProfilo_Field_Contatto 134: Dm_DatiProfilo_Field_Mansione 135: Dm_DatiProfilo_Field_TelNome 136: Dm_DatiProfilo_Field_FaxNome 137: Dm_DatiProfilo_Field_Cell 138: Dm_DatiProfilo_Field_Abitazione 139: Dm_DatiProfilo_Field_Reparto 140: Dm_DatiProfilo_Field_Ufficio 141: Dm_DatiProfilo_Field_Email 142: Dm_DatiProfilo_Field_Riferimento 143: Dm_DatiProfilo_Field_CodFis 144: Dm_DatiProfilo_Field_PartIva 145: Dm_DatiProfilo_Field_Priorita 146: Dm_DatiProfilo_Field_Codice 147: Profile_Field_Senders 148: Dm_Collaboration_Create 149: Dm_Collaboration_ReCollaborate 150: Dm_Collaboration_TakeOff 151: Dm_Collaboration_Delete 152: Profile_Field_DocumentType 153: Profile_Field_Tipo2 154: Profile_Field_Tipo3 155: Dm_Collaboration_Terminate 156: AllegatiDocSigned 157: LogInFailed . - /// Message Type. - /// Information in integer format. - /// Session Identifier. - /// Software Name. - /// Software Type. - /// Information in string format. - /// Identifier of the reference object. - /// Possible values: 0: None 1: Profile 2: Sharing 3: Queue 4: Instruction 5: Collaboration . - /// Integer for Deleting Rules. - /// String for Deleting Rules. - /// Sublevel Items. - public LogDTO(string id = default(string), int? logLevel = default(int?), string logMessage = default(string), DateTime? logDate = default(DateTime?), int? userId = default(int?), string userNameComplete = default(string), string ipLogger = default(string), int? infoType = default(int?), string infoTypeMessage = default(string), int? infoInt = default(int?), string sessionId = default(string), string softwareName = default(string), string softwareType = default(string), string infoString = default(string), string parentId = default(string), int? logKind = default(int?), int? historyInt = default(int?), string historyString = default(string), List childs = default(List)) - { - this.Id = id; - this.LogLevel = logLevel; - this.LogMessage = logMessage; - this.LogDate = logDate; - this.UserId = userId; - this.UserNameComplete = userNameComplete; - this.IpLogger = ipLogger; - this.InfoType = infoType; - this.InfoTypeMessage = infoTypeMessage; - this.InfoInt = infoInt; - this.SessionId = sessionId; - this.SoftwareName = softwareName; - this.SoftwareType = softwareType; - this.InfoString = infoString; - this.ParentId = parentId; - this.LogKind = logKind; - this.HistoryInt = historyInt; - this.HistoryString = historyString; - this.Childs = childs; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Possible values: 1: INFORMATION 2: SUCCESSAUDIT 3: FAILUREAUDIT 4: WARNING 5: ERROR - /// - /// Possible values: 1: INFORMATION 2: SUCCESSAUDIT 3: FAILUREAUDIT 4: WARNING 5: ERROR - [DataMember(Name="logLevel", EmitDefaultValue=false)] - public int? LogLevel { get; set; } - - /// - /// Message - /// - /// Message - [DataMember(Name="logMessage", EmitDefaultValue=false)] - public string LogMessage { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="logDate", EmitDefaultValue=false)] - public DateTime? LogDate { get; set; } - - /// - /// Author - /// - /// Author - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Author Name - /// - /// Author Name - [DataMember(Name="userNameComplete", EmitDefaultValue=false)] - public string UserNameComplete { get; set; } - - /// - /// Ip Address - /// - /// Ip Address - [DataMember(Name="ipLogger", EmitDefaultValue=false)] - public string IpLogger { get; set; } - - /// - /// Possible values: 0: Nothing 1: WcfService 2: LogInClient 3: LogOutClient 4: LogInServer 5: LogOutServer 6: LogInSPR 7: LogOutSPR 8: LogInWEB 9: LogOutWEB 10: LogInGeneric 11: LogOutGeneric 12: LogInOCR 13: LogOutOCR 14: WcfServiceDmModuliDelete 15: LogIn 16: LogOut 17: GetDocument 18: SetDocument 19: DmNoteUpdated 20: PluginQueueLogInfo 21: SdAssocDocInserted 22: SdAssocDocDeleted 23: DmBarcodeDeleted 24: DmBarcodeUnMatchProfile 25: DmAllegatiFaxInsertDocument 26: DmDocOpenCheckOut 27: DocumentInsertRelationship 28: RevisioniGetDocument 29: RevisioniDelete 30: DmNpceOutInsert 31: DmNpceOutUpdate 32: DmNpceOutDelete 33: DmAssociazioniInsert 34: DmAllegatiWorkInsert 35: DmProcessDocSetDocumentInEditBuffer 36: DmProcessDocSetDocumentInLine 37: DmProcessDocSetDocumentForProfile 38: DmAllegatiDocInsert 39: DmAllegatiDocUpdate 40: DmAllegatiDocDelete 41: ProfileUpdateProtocollo 42: ProfileDeleted 43: ExternalCall 44: ProfileUndoCheckOut 45: ProfileInserted 46: ProfileLogReaded 47: ProfileUpdate 48: Profile_Field_DocName 49: Profile_Field_Aoo 50: Profile_Field_Numero 51: Profile_Field_DataDoc 52: Profile_Field_Mittente 53: Profile_Field_Destinatario 54: Profile_Field_Cc 55: Profile_Field_CreationDate 56: Profile_Field_Impronta 57: Profile_Field_Device 58: Profile_Field_DataFile 59: Profile_Field_Importante 60: Profile_Field_Revisione 61: Profile_Field_Autore 62: Profile_Field_Protocollo 63: Profile_Field_Anno 64: Profile_Field_Bloccato 65: Profile_Field_Stato 66: Profile_Field_InOut 67: Profile_Field_Scadenza 68: Profile_Field_Flag 69: Profile_Field_WorkFlow 70: Profile_Field_GestRev 71: Profile_Field_EtichettaCd 72: Profile_Field_EtichettaAos 73: Profile_Field_Associazioni 74: Profile_Field_OpenDoc 75: Profile_Field_Allegati 76: Profile_Field_Emergenza 77: Profile_Field_IsAos 78: Profile_Field_EtiReader 79: Profile_Field_ScadAos 80: Profile_Field_Aggiuntivi 81: Profile_Field_DataProt 82: Profile_Field_Compressed 83: ProfileLogMigrated 84: Profile_Field_Originale 85: ProfileSigned 86: ProfileInsertedInFolder 87: ProfileInsertedInFaxOut 88: ProfileInsertedInPratica 89: ProfileInsertedNote 90: LicenseViolated 91: BarcodePrinted 92: WorkflowStarted 93: WorkflowEnded 94: WorkflowEndedForced 95: WorkflowDeleted 96: DmAllegatiDocSignOtpSent 97: DmProfileSignOtpSent 98: ProfileRemovedFromFolder 99: ProfileRemovedFromPratica 100: Dm_Sharing_Insert 101: Dm_Sharing_Update 102: Dm_Sharing_Expiration 103: Dm_Sharing_Read 104: Dm_Sharing_Delete 105: Dm_Sharing_Expiration_NpceOut 106: RemoveDocument 107: Dm_Sharing_Alert 108: Dm_Sharing_MailOut 109: DocumentRemovedFromRelationship 110: DmAssociazioniDelete 111: Dm_Queue_Start 112: Dm_Queue_Change_Progress 113: Dm_Queue_Scheduled 114: Dm_Queue_Terminated 115: Dm_Queue_Cancelled 116: Dm_Queue_Waiting 117: Dm_Queue_Warning 118: Dm_Queue_Info 119: Dm_Instructions_Insert 120: Dm_Instructions_Update 121: Dm_Instructions_Delete 122: Dm_DatiProfilo_Field_Id 123: Dm_DatiProfilo_Field_Valore 124: Dm_DatiProfilo_Field_Contatti 125: Dm_DatiProfilo_Field_Fax 126: Dm_DatiProfilo_Field_Tel 127: Dm_DatiProfilo_Field_Indirizzo 128: Dm_DatiProfilo_Field_Mail 129: Dm_DatiProfilo_Field_Localita 130: Dm_DatiProfilo_Field_Cap 131: Dm_DatiProfilo_Field_Provincia 132: Dm_DatiProfilo_Field_Nazione 133: Dm_DatiProfilo_Field_Contatto 134: Dm_DatiProfilo_Field_Mansione 135: Dm_DatiProfilo_Field_TelNome 136: Dm_DatiProfilo_Field_FaxNome 137: Dm_DatiProfilo_Field_Cell 138: Dm_DatiProfilo_Field_Abitazione 139: Dm_DatiProfilo_Field_Reparto 140: Dm_DatiProfilo_Field_Ufficio 141: Dm_DatiProfilo_Field_Email 142: Dm_DatiProfilo_Field_Riferimento 143: Dm_DatiProfilo_Field_CodFis 144: Dm_DatiProfilo_Field_PartIva 145: Dm_DatiProfilo_Field_Priorita 146: Dm_DatiProfilo_Field_Codice 147: Profile_Field_Senders 148: Dm_Collaboration_Create 149: Dm_Collaboration_ReCollaborate 150: Dm_Collaboration_TakeOff 151: Dm_Collaboration_Delete 152: Profile_Field_DocumentType 153: Profile_Field_Tipo2 154: Profile_Field_Tipo3 155: Dm_Collaboration_Terminate 156: AllegatiDocSigned 157: LogInFailed - /// - /// Possible values: 0: Nothing 1: WcfService 2: LogInClient 3: LogOutClient 4: LogInServer 5: LogOutServer 6: LogInSPR 7: LogOutSPR 8: LogInWEB 9: LogOutWEB 10: LogInGeneric 11: LogOutGeneric 12: LogInOCR 13: LogOutOCR 14: WcfServiceDmModuliDelete 15: LogIn 16: LogOut 17: GetDocument 18: SetDocument 19: DmNoteUpdated 20: PluginQueueLogInfo 21: SdAssocDocInserted 22: SdAssocDocDeleted 23: DmBarcodeDeleted 24: DmBarcodeUnMatchProfile 25: DmAllegatiFaxInsertDocument 26: DmDocOpenCheckOut 27: DocumentInsertRelationship 28: RevisioniGetDocument 29: RevisioniDelete 30: DmNpceOutInsert 31: DmNpceOutUpdate 32: DmNpceOutDelete 33: DmAssociazioniInsert 34: DmAllegatiWorkInsert 35: DmProcessDocSetDocumentInEditBuffer 36: DmProcessDocSetDocumentInLine 37: DmProcessDocSetDocumentForProfile 38: DmAllegatiDocInsert 39: DmAllegatiDocUpdate 40: DmAllegatiDocDelete 41: ProfileUpdateProtocollo 42: ProfileDeleted 43: ExternalCall 44: ProfileUndoCheckOut 45: ProfileInserted 46: ProfileLogReaded 47: ProfileUpdate 48: Profile_Field_DocName 49: Profile_Field_Aoo 50: Profile_Field_Numero 51: Profile_Field_DataDoc 52: Profile_Field_Mittente 53: Profile_Field_Destinatario 54: Profile_Field_Cc 55: Profile_Field_CreationDate 56: Profile_Field_Impronta 57: Profile_Field_Device 58: Profile_Field_DataFile 59: Profile_Field_Importante 60: Profile_Field_Revisione 61: Profile_Field_Autore 62: Profile_Field_Protocollo 63: Profile_Field_Anno 64: Profile_Field_Bloccato 65: Profile_Field_Stato 66: Profile_Field_InOut 67: Profile_Field_Scadenza 68: Profile_Field_Flag 69: Profile_Field_WorkFlow 70: Profile_Field_GestRev 71: Profile_Field_EtichettaCd 72: Profile_Field_EtichettaAos 73: Profile_Field_Associazioni 74: Profile_Field_OpenDoc 75: Profile_Field_Allegati 76: Profile_Field_Emergenza 77: Profile_Field_IsAos 78: Profile_Field_EtiReader 79: Profile_Field_ScadAos 80: Profile_Field_Aggiuntivi 81: Profile_Field_DataProt 82: Profile_Field_Compressed 83: ProfileLogMigrated 84: Profile_Field_Originale 85: ProfileSigned 86: ProfileInsertedInFolder 87: ProfileInsertedInFaxOut 88: ProfileInsertedInPratica 89: ProfileInsertedNote 90: LicenseViolated 91: BarcodePrinted 92: WorkflowStarted 93: WorkflowEnded 94: WorkflowEndedForced 95: WorkflowDeleted 96: DmAllegatiDocSignOtpSent 97: DmProfileSignOtpSent 98: ProfileRemovedFromFolder 99: ProfileRemovedFromPratica 100: Dm_Sharing_Insert 101: Dm_Sharing_Update 102: Dm_Sharing_Expiration 103: Dm_Sharing_Read 104: Dm_Sharing_Delete 105: Dm_Sharing_Expiration_NpceOut 106: RemoveDocument 107: Dm_Sharing_Alert 108: Dm_Sharing_MailOut 109: DocumentRemovedFromRelationship 110: DmAssociazioniDelete 111: Dm_Queue_Start 112: Dm_Queue_Change_Progress 113: Dm_Queue_Scheduled 114: Dm_Queue_Terminated 115: Dm_Queue_Cancelled 116: Dm_Queue_Waiting 117: Dm_Queue_Warning 118: Dm_Queue_Info 119: Dm_Instructions_Insert 120: Dm_Instructions_Update 121: Dm_Instructions_Delete 122: Dm_DatiProfilo_Field_Id 123: Dm_DatiProfilo_Field_Valore 124: Dm_DatiProfilo_Field_Contatti 125: Dm_DatiProfilo_Field_Fax 126: Dm_DatiProfilo_Field_Tel 127: Dm_DatiProfilo_Field_Indirizzo 128: Dm_DatiProfilo_Field_Mail 129: Dm_DatiProfilo_Field_Localita 130: Dm_DatiProfilo_Field_Cap 131: Dm_DatiProfilo_Field_Provincia 132: Dm_DatiProfilo_Field_Nazione 133: Dm_DatiProfilo_Field_Contatto 134: Dm_DatiProfilo_Field_Mansione 135: Dm_DatiProfilo_Field_TelNome 136: Dm_DatiProfilo_Field_FaxNome 137: Dm_DatiProfilo_Field_Cell 138: Dm_DatiProfilo_Field_Abitazione 139: Dm_DatiProfilo_Field_Reparto 140: Dm_DatiProfilo_Field_Ufficio 141: Dm_DatiProfilo_Field_Email 142: Dm_DatiProfilo_Field_Riferimento 143: Dm_DatiProfilo_Field_CodFis 144: Dm_DatiProfilo_Field_PartIva 145: Dm_DatiProfilo_Field_Priorita 146: Dm_DatiProfilo_Field_Codice 147: Profile_Field_Senders 148: Dm_Collaboration_Create 149: Dm_Collaboration_ReCollaborate 150: Dm_Collaboration_TakeOff 151: Dm_Collaboration_Delete 152: Profile_Field_DocumentType 153: Profile_Field_Tipo2 154: Profile_Field_Tipo3 155: Dm_Collaboration_Terminate 156: AllegatiDocSigned 157: LogInFailed - [DataMember(Name="infoType", EmitDefaultValue=false)] - public int? InfoType { get; set; } - - /// - /// Message Type - /// - /// Message Type - [DataMember(Name="infoTypeMessage", EmitDefaultValue=false)] - public string InfoTypeMessage { get; set; } - - /// - /// Information in integer format - /// - /// Information in integer format - [DataMember(Name="infoInt", EmitDefaultValue=false)] - public int? InfoInt { get; set; } - - /// - /// Session Identifier - /// - /// Session Identifier - [DataMember(Name="sessionId", EmitDefaultValue=false)] - public string SessionId { get; set; } - - /// - /// Software Name - /// - /// Software Name - [DataMember(Name="softwareName", EmitDefaultValue=false)] - public string SoftwareName { get; set; } - - /// - /// Software Type - /// - /// Software Type - [DataMember(Name="softwareType", EmitDefaultValue=false)] - public string SoftwareType { get; set; } - - /// - /// Information in string format - /// - /// Information in string format - [DataMember(Name="infoString", EmitDefaultValue=false)] - public string InfoString { get; set; } - - /// - /// Identifier of the reference object - /// - /// Identifier of the reference object - [DataMember(Name="parentId", EmitDefaultValue=false)] - public string ParentId { get; set; } - - /// - /// Possible values: 0: None 1: Profile 2: Sharing 3: Queue 4: Instruction 5: Collaboration - /// - /// Possible values: 0: None 1: Profile 2: Sharing 3: Queue 4: Instruction 5: Collaboration - [DataMember(Name="logKind", EmitDefaultValue=false)] - public int? LogKind { get; set; } - - /// - /// Integer for Deleting Rules - /// - /// Integer for Deleting Rules - [DataMember(Name="historyInt", EmitDefaultValue=false)] - public int? HistoryInt { get; set; } - - /// - /// String for Deleting Rules - /// - /// String for Deleting Rules - [DataMember(Name="historyString", EmitDefaultValue=false)] - public string HistoryString { get; set; } - - /// - /// Sublevel Items - /// - /// Sublevel Items - [DataMember(Name="childs", EmitDefaultValue=false)] - public List Childs { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LogDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" LogLevel: ").Append(LogLevel).Append("\n"); - sb.Append(" LogMessage: ").Append(LogMessage).Append("\n"); - sb.Append(" LogDate: ").Append(LogDate).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" UserNameComplete: ").Append(UserNameComplete).Append("\n"); - sb.Append(" IpLogger: ").Append(IpLogger).Append("\n"); - sb.Append(" InfoType: ").Append(InfoType).Append("\n"); - sb.Append(" InfoTypeMessage: ").Append(InfoTypeMessage).Append("\n"); - sb.Append(" InfoInt: ").Append(InfoInt).Append("\n"); - sb.Append(" SessionId: ").Append(SessionId).Append("\n"); - sb.Append(" SoftwareName: ").Append(SoftwareName).Append("\n"); - sb.Append(" SoftwareType: ").Append(SoftwareType).Append("\n"); - sb.Append(" InfoString: ").Append(InfoString).Append("\n"); - sb.Append(" ParentId: ").Append(ParentId).Append("\n"); - sb.Append(" LogKind: ").Append(LogKind).Append("\n"); - sb.Append(" HistoryInt: ").Append(HistoryInt).Append("\n"); - sb.Append(" HistoryString: ").Append(HistoryString).Append("\n"); - sb.Append(" Childs: ").Append(Childs).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LogDTO); - } - - /// - /// Returns true if LogDTO instances are equal - /// - /// Instance of LogDTO to be compared - /// Boolean - public bool Equals(LogDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.LogLevel == input.LogLevel || - (this.LogLevel != null && - this.LogLevel.Equals(input.LogLevel)) - ) && - ( - this.LogMessage == input.LogMessage || - (this.LogMessage != null && - this.LogMessage.Equals(input.LogMessage)) - ) && - ( - this.LogDate == input.LogDate || - (this.LogDate != null && - this.LogDate.Equals(input.LogDate)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.UserNameComplete == input.UserNameComplete || - (this.UserNameComplete != null && - this.UserNameComplete.Equals(input.UserNameComplete)) - ) && - ( - this.IpLogger == input.IpLogger || - (this.IpLogger != null && - this.IpLogger.Equals(input.IpLogger)) - ) && - ( - this.InfoType == input.InfoType || - (this.InfoType != null && - this.InfoType.Equals(input.InfoType)) - ) && - ( - this.InfoTypeMessage == input.InfoTypeMessage || - (this.InfoTypeMessage != null && - this.InfoTypeMessage.Equals(input.InfoTypeMessage)) - ) && - ( - this.InfoInt == input.InfoInt || - (this.InfoInt != null && - this.InfoInt.Equals(input.InfoInt)) - ) && - ( - this.SessionId == input.SessionId || - (this.SessionId != null && - this.SessionId.Equals(input.SessionId)) - ) && - ( - this.SoftwareName == input.SoftwareName || - (this.SoftwareName != null && - this.SoftwareName.Equals(input.SoftwareName)) - ) && - ( - this.SoftwareType == input.SoftwareType || - (this.SoftwareType != null && - this.SoftwareType.Equals(input.SoftwareType)) - ) && - ( - this.InfoString == input.InfoString || - (this.InfoString != null && - this.InfoString.Equals(input.InfoString)) - ) && - ( - this.ParentId == input.ParentId || - (this.ParentId != null && - this.ParentId.Equals(input.ParentId)) - ) && - ( - this.LogKind == input.LogKind || - (this.LogKind != null && - this.LogKind.Equals(input.LogKind)) - ) && - ( - this.HistoryInt == input.HistoryInt || - (this.HistoryInt != null && - this.HistoryInt.Equals(input.HistoryInt)) - ) && - ( - this.HistoryString == input.HistoryString || - (this.HistoryString != null && - this.HistoryString.Equals(input.HistoryString)) - ) && - ( - this.Childs == input.Childs || - this.Childs != null && - this.Childs.SequenceEqual(input.Childs) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.LogLevel != null) - hashCode = hashCode * 59 + this.LogLevel.GetHashCode(); - if (this.LogMessage != null) - hashCode = hashCode * 59 + this.LogMessage.GetHashCode(); - if (this.LogDate != null) - hashCode = hashCode * 59 + this.LogDate.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.UserNameComplete != null) - hashCode = hashCode * 59 + this.UserNameComplete.GetHashCode(); - if (this.IpLogger != null) - hashCode = hashCode * 59 + this.IpLogger.GetHashCode(); - if (this.InfoType != null) - hashCode = hashCode * 59 + this.InfoType.GetHashCode(); - if (this.InfoTypeMessage != null) - hashCode = hashCode * 59 + this.InfoTypeMessage.GetHashCode(); - if (this.InfoInt != null) - hashCode = hashCode * 59 + this.InfoInt.GetHashCode(); - if (this.SessionId != null) - hashCode = hashCode * 59 + this.SessionId.GetHashCode(); - if (this.SoftwareName != null) - hashCode = hashCode * 59 + this.SoftwareName.GetHashCode(); - if (this.SoftwareType != null) - hashCode = hashCode * 59 + this.SoftwareType.GetHashCode(); - if (this.InfoString != null) - hashCode = hashCode * 59 + this.InfoString.GetHashCode(); - if (this.ParentId != null) - hashCode = hashCode * 59 + this.ParentId.GetHashCode(); - if (this.LogKind != null) - hashCode = hashCode * 59 + this.LogKind.GetHashCode(); - if (this.HistoryInt != null) - hashCode = hashCode * 59 + this.HistoryInt.GetHashCode(); - if (this.HistoryString != null) - hashCode = hashCode * 59 + this.HistoryString.GetHashCode(); - if (this.Childs != null) - hashCode = hashCode * 59 + this.Childs.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LogonProviderInfoDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/LogonProviderInfoDto.cs deleted file mode 100644 index c03e58d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LogonProviderInfoDto.cs +++ /dev/null @@ -1,220 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// LogonProviderInfoDto - /// - [DataContract] - public partial class LogonProviderInfoDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// logonProviderId. - /// description. - /// version. - /// iconB64. - /// isDefault. - /// implicitFlow. - /// visible. - public LogonProviderInfoDto(string logonProviderId = default(string), string description = default(string), string version = default(string), string iconB64 = default(string), bool? isDefault = default(bool?), bool? implicitFlow = default(bool?), bool? visible = default(bool?)) - { - this.LogonProviderId = logonProviderId; - this.Description = description; - this.Version = version; - this.IconB64 = iconB64; - this.IsDefault = isDefault; - this.ImplicitFlow = implicitFlow; - this.Visible = visible; - } - - /// - /// Gets or Sets LogonProviderId - /// - [DataMember(Name="logonProviderId", EmitDefaultValue=false)] - public string LogonProviderId { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Gets or Sets Version - /// - [DataMember(Name="version", EmitDefaultValue=false)] - public string Version { get; set; } - - /// - /// Gets or Sets IconB64 - /// - [DataMember(Name="iconB64", EmitDefaultValue=false)] - public string IconB64 { get; set; } - - /// - /// Gets or Sets IsDefault - /// - [DataMember(Name="isDefault", EmitDefaultValue=false)] - public bool? IsDefault { get; set; } - - /// - /// Gets or Sets ImplicitFlow - /// - [DataMember(Name="implicitFlow", EmitDefaultValue=false)] - public bool? ImplicitFlow { get; set; } - - /// - /// Gets or Sets Visible - /// - [DataMember(Name="visible", EmitDefaultValue=false)] - public bool? Visible { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LogonProviderInfoDto {\n"); - sb.Append(" LogonProviderId: ").Append(LogonProviderId).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Version: ").Append(Version).Append("\n"); - sb.Append(" IconB64: ").Append(IconB64).Append("\n"); - sb.Append(" IsDefault: ").Append(IsDefault).Append("\n"); - sb.Append(" ImplicitFlow: ").Append(ImplicitFlow).Append("\n"); - sb.Append(" Visible: ").Append(Visible).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LogonProviderInfoDto); - } - - /// - /// Returns true if LogonProviderInfoDto instances are equal - /// - /// Instance of LogonProviderInfoDto to be compared - /// Boolean - public bool Equals(LogonProviderInfoDto input) - { - if (input == null) - return false; - - return - ( - this.LogonProviderId == input.LogonProviderId || - (this.LogonProviderId != null && - this.LogonProviderId.Equals(input.LogonProviderId)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Version == input.Version || - (this.Version != null && - this.Version.Equals(input.Version)) - ) && - ( - this.IconB64 == input.IconB64 || - (this.IconB64 != null && - this.IconB64.Equals(input.IconB64)) - ) && - ( - this.IsDefault == input.IsDefault || - (this.IsDefault != null && - this.IsDefault.Equals(input.IsDefault)) - ) && - ( - this.ImplicitFlow == input.ImplicitFlow || - (this.ImplicitFlow != null && - this.ImplicitFlow.Equals(input.ImplicitFlow)) - ) && - ( - this.Visible == input.Visible || - (this.Visible != null && - this.Visible.Equals(input.Visible)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.LogonProviderId != null) - hashCode = hashCode * 59 + this.LogonProviderId.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Version != null) - hashCode = hashCode * 59 + this.Version.GetHashCode(); - if (this.IconB64 != null) - hashCode = hashCode * 59 + this.IconB64.GetHashCode(); - if (this.IsDefault != null) - hashCode = hashCode * 59 + this.IsDefault.GetHashCode(); - if (this.ImplicitFlow != null) - hashCode = hashCode * 59 + this.ImplicitFlow.GetHashCode(); - if (this.Visible != null) - hashCode = hashCode * 59 + this.Visible.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LogonTicketDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/LogonTicketDto.cs deleted file mode 100644 index a7e437a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LogonTicketDto.cs +++ /dev/null @@ -1,316 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// LogonTicketDto - /// - [DataContract] - public partial class LogonTicketDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// userId. - /// requestorUserId. - /// validFrom. - /// validTo. - /// useMaxCount. - /// useCount. - /// logonTicket. - /// lastUpdate. - /// clientId. - /// requestIp. - /// scope. - /// lang. - public LogonTicketDto(int? id = default(int?), int? userId = default(int?), int? requestorUserId = default(int?), DateTime? validFrom = default(DateTime?), DateTime? validTo = default(DateTime?), int? useMaxCount = default(int?), int? useCount = default(int?), string logonTicket = default(string), DateTime? lastUpdate = default(DateTime?), string clientId = default(string), string requestIp = default(string), string scope = default(string), string lang = default(string)) - { - this.Id = id; - this.UserId = userId; - this.RequestorUserId = requestorUserId; - this.ValidFrom = validFrom; - this.ValidTo = validTo; - this.UseMaxCount = useMaxCount; - this.UseCount = useCount; - this.LogonTicket = logonTicket; - this.LastUpdate = lastUpdate; - this.ClientId = clientId; - this.RequestIp = requestIp; - this.Scope = scope; - this.Lang = lang; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or Sets UserId - /// - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Gets or Sets RequestorUserId - /// - [DataMember(Name="requestorUserId", EmitDefaultValue=false)] - public int? RequestorUserId { get; set; } - - /// - /// Gets or Sets ValidFrom - /// - [DataMember(Name="validFrom", EmitDefaultValue=false)] - public DateTime? ValidFrom { get; set; } - - /// - /// Gets or Sets ValidTo - /// - [DataMember(Name="validTo", EmitDefaultValue=false)] - public DateTime? ValidTo { get; set; } - - /// - /// Gets or Sets UseMaxCount - /// - [DataMember(Name="useMaxCount", EmitDefaultValue=false)] - public int? UseMaxCount { get; set; } - - /// - /// Gets or Sets UseCount - /// - [DataMember(Name="useCount", EmitDefaultValue=false)] - public int? UseCount { get; set; } - - /// - /// Gets or Sets LogonTicket - /// - [DataMember(Name="logonTicket", EmitDefaultValue=false)] - public string LogonTicket { get; set; } - - /// - /// Gets or Sets LastUpdate - /// - [DataMember(Name="lastUpdate", EmitDefaultValue=false)] - public DateTime? LastUpdate { get; set; } - - /// - /// Gets or Sets ClientId - /// - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// Gets or Sets RequestIp - /// - [DataMember(Name="requestIp", EmitDefaultValue=false)] - public string RequestIp { get; set; } - - /// - /// Gets or Sets Scope - /// - [DataMember(Name="scope", EmitDefaultValue=false)] - public string Scope { get; set; } - - /// - /// Gets or Sets Lang - /// - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LogonTicketDto {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" RequestorUserId: ").Append(RequestorUserId).Append("\n"); - sb.Append(" ValidFrom: ").Append(ValidFrom).Append("\n"); - sb.Append(" ValidTo: ").Append(ValidTo).Append("\n"); - sb.Append(" UseMaxCount: ").Append(UseMaxCount).Append("\n"); - sb.Append(" UseCount: ").Append(UseCount).Append("\n"); - sb.Append(" LogonTicket: ").Append(LogonTicket).Append("\n"); - sb.Append(" LastUpdate: ").Append(LastUpdate).Append("\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" RequestIp: ").Append(RequestIp).Append("\n"); - sb.Append(" Scope: ").Append(Scope).Append("\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LogonTicketDto); - } - - /// - /// Returns true if LogonTicketDto instances are equal - /// - /// Instance of LogonTicketDto to be compared - /// Boolean - public bool Equals(LogonTicketDto input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.RequestorUserId == input.RequestorUserId || - (this.RequestorUserId != null && - this.RequestorUserId.Equals(input.RequestorUserId)) - ) && - ( - this.ValidFrom == input.ValidFrom || - (this.ValidFrom != null && - this.ValidFrom.Equals(input.ValidFrom)) - ) && - ( - this.ValidTo == input.ValidTo || - (this.ValidTo != null && - this.ValidTo.Equals(input.ValidTo)) - ) && - ( - this.UseMaxCount == input.UseMaxCount || - (this.UseMaxCount != null && - this.UseMaxCount.Equals(input.UseMaxCount)) - ) && - ( - this.UseCount == input.UseCount || - (this.UseCount != null && - this.UseCount.Equals(input.UseCount)) - ) && - ( - this.LogonTicket == input.LogonTicket || - (this.LogonTicket != null && - this.LogonTicket.Equals(input.LogonTicket)) - ) && - ( - this.LastUpdate == input.LastUpdate || - (this.LastUpdate != null && - this.LastUpdate.Equals(input.LastUpdate)) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.RequestIp == input.RequestIp || - (this.RequestIp != null && - this.RequestIp.Equals(input.RequestIp)) - ) && - ( - this.Scope == input.Scope || - (this.Scope != null && - this.Scope.Equals(input.Scope)) - ) && - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.RequestorUserId != null) - hashCode = hashCode * 59 + this.RequestorUserId.GetHashCode(); - if (this.ValidFrom != null) - hashCode = hashCode * 59 + this.ValidFrom.GetHashCode(); - if (this.ValidTo != null) - hashCode = hashCode * 59 + this.ValidTo.GetHashCode(); - if (this.UseMaxCount != null) - hashCode = hashCode * 59 + this.UseMaxCount.GetHashCode(); - if (this.UseCount != null) - hashCode = hashCode * 59 + this.UseCount.GetHashCode(); - if (this.LogonTicket != null) - hashCode = hashCode * 59 + this.LogonTicket.GetHashCode(); - if (this.LastUpdate != null) - hashCode = hashCode * 59 + this.LastUpdate.GetHashCode(); - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.RequestIp != null) - hashCode = hashCode * 59 + this.RequestIp.GetHashCode(); - if (this.Scope != null) - hashCode = hashCode * 59 + this.Scope.GetHashCode(); - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/LogonTicketRequestDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/LogonTicketRequestDto.cs deleted file mode 100644 index b0795bc..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/LogonTicketRequestDto.cs +++ /dev/null @@ -1,252 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// LogonTicketRequestDto - /// - [DataContract] - public partial class LogonTicketRequestDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// userId. - /// impersonateExternalId. - /// maxUseCount. - /// validTo. - /// clientId. - /// clientSecret. - /// clientIpAddress. - /// scope. - /// lang. - public LogonTicketRequestDto(int? userId = default(int?), string impersonateExternalId = default(string), int? maxUseCount = default(int?), DateTime? validTo = default(DateTime?), string clientId = default(string), string clientSecret = default(string), string clientIpAddress = default(string), string scope = default(string), string lang = default(string)) - { - this.UserId = userId; - this.ImpersonateExternalId = impersonateExternalId; - this.MaxUseCount = maxUseCount; - this.ValidTo = validTo; - this.ClientId = clientId; - this.ClientSecret = clientSecret; - this.ClientIpAddress = clientIpAddress; - this.Scope = scope; - this.Lang = lang; - } - - /// - /// Gets or Sets UserId - /// - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Gets or Sets ImpersonateExternalId - /// - [DataMember(Name="impersonateExternalId", EmitDefaultValue=false)] - public string ImpersonateExternalId { get; set; } - - /// - /// Gets or Sets MaxUseCount - /// - [DataMember(Name="maxUseCount", EmitDefaultValue=false)] - public int? MaxUseCount { get; set; } - - /// - /// Gets or Sets ValidTo - /// - [DataMember(Name="validTo", EmitDefaultValue=false)] - public DateTime? ValidTo { get; set; } - - /// - /// Gets or Sets ClientId - /// - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// Gets or Sets ClientSecret - /// - [DataMember(Name="clientSecret", EmitDefaultValue=false)] - public string ClientSecret { get; set; } - - /// - /// Gets or Sets ClientIpAddress - /// - [DataMember(Name="clientIpAddress", EmitDefaultValue=false)] - public string ClientIpAddress { get; set; } - - /// - /// Gets or Sets Scope - /// - [DataMember(Name="scope", EmitDefaultValue=false)] - public string Scope { get; set; } - - /// - /// Gets or Sets Lang - /// - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LogonTicketRequestDto {\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" ImpersonateExternalId: ").Append(ImpersonateExternalId).Append("\n"); - sb.Append(" MaxUseCount: ").Append(MaxUseCount).Append("\n"); - sb.Append(" ValidTo: ").Append(ValidTo).Append("\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n"); - sb.Append(" ClientIpAddress: ").Append(ClientIpAddress).Append("\n"); - sb.Append(" Scope: ").Append(Scope).Append("\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LogonTicketRequestDto); - } - - /// - /// Returns true if LogonTicketRequestDto instances are equal - /// - /// Instance of LogonTicketRequestDto to be compared - /// Boolean - public bool Equals(LogonTicketRequestDto input) - { - if (input == null) - return false; - - return - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.ImpersonateExternalId == input.ImpersonateExternalId || - (this.ImpersonateExternalId != null && - this.ImpersonateExternalId.Equals(input.ImpersonateExternalId)) - ) && - ( - this.MaxUseCount == input.MaxUseCount || - (this.MaxUseCount != null && - this.MaxUseCount.Equals(input.MaxUseCount)) - ) && - ( - this.ValidTo == input.ValidTo || - (this.ValidTo != null && - this.ValidTo.Equals(input.ValidTo)) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.ClientSecret == input.ClientSecret || - (this.ClientSecret != null && - this.ClientSecret.Equals(input.ClientSecret)) - ) && - ( - this.ClientIpAddress == input.ClientIpAddress || - (this.ClientIpAddress != null && - this.ClientIpAddress.Equals(input.ClientIpAddress)) - ) && - ( - this.Scope == input.Scope || - (this.Scope != null && - this.Scope.Equals(input.Scope)) - ) && - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.ImpersonateExternalId != null) - hashCode = hashCode * 59 + this.ImpersonateExternalId.GetHashCode(); - if (this.MaxUseCount != null) - hashCode = hashCode * 59 + this.MaxUseCount.GetHashCode(); - if (this.ValidTo != null) - hashCode = hashCode * 59 + this.ValidTo.GetHashCode(); - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.ClientSecret != null) - hashCode = hashCode * 59 + this.ClientSecret.GetHashCode(); - if (this.ClientIpAddress != null) - hashCode = hashCode * 59 + this.ClientIpAddress.GetHashCode(); - if (this.Scope != null) - hashCode = hashCode * 59 + this.Scope.GetHashCode(); - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailAccountDTO.cs deleted file mode 100644 index 0538d3e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountDTO.cs +++ /dev/null @@ -1,282 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for mail account settings - /// - [DataContract] - public partial class MailAccountDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected MailAccountDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Account Identifier. - /// User identifier. - /// Alias (required). - /// Mail (required). - /// Boolean indicating whether the account is the default account. - /// Boolean indicating whether the account is active. - /// Boolean indicating if the account is the system account. - /// Setting for sending mail (SMTP). - /// Setting for sending mail (POP3 or IMAP). - public MailAccountDTO(int? id = default(int?), int? userId = default(int?), string alias = default(string), string mail = default(string), bool? isDefault = default(bool?), bool? enabled = default(bool?), bool? isSystemAccount = default(bool?), MailAccountSendSettingsDTO sendSettings = default(MailAccountSendSettingsDTO), MailAccountReceiveSettingsDTO receiveSettings = default(MailAccountReceiveSettingsDTO)) - { - // to ensure "alias" is required (not null) - if (alias == null) - { - throw new InvalidDataException("alias is a required property for MailAccountDTO and cannot be null"); - } - else - { - this.Alias = alias; - } - // to ensure "mail" is required (not null) - if (mail == null) - { - throw new InvalidDataException("mail is a required property for MailAccountDTO and cannot be null"); - } - else - { - this.Mail = mail; - } - this.Id = id; - this.UserId = userId; - this.IsDefault = isDefault; - this.Enabled = enabled; - this.IsSystemAccount = isSystemAccount; - this.SendSettings = sendSettings; - this.ReceiveSettings = receiveSettings; - } - - /// - /// Account Identifier - /// - /// Account Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// User identifier - /// - /// User identifier - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Alias - /// - /// Alias - [DataMember(Name="alias", EmitDefaultValue=false)] - public string Alias { get; set; } - - /// - /// Mail - /// - /// Mail - [DataMember(Name="mail", EmitDefaultValue=false)] - public string Mail { get; set; } - - /// - /// Boolean indicating whether the account is the default account - /// - /// Boolean indicating whether the account is the default account - [DataMember(Name="isDefault", EmitDefaultValue=false)] - public bool? IsDefault { get; set; } - - /// - /// Boolean indicating whether the account is active - /// - /// Boolean indicating whether the account is active - [DataMember(Name="enabled", EmitDefaultValue=false)] - public bool? Enabled { get; set; } - - /// - /// Boolean indicating if the account is the system account - /// - /// Boolean indicating if the account is the system account - [DataMember(Name="isSystemAccount", EmitDefaultValue=false)] - public bool? IsSystemAccount { get; set; } - - /// - /// Setting for sending mail (SMTP) - /// - /// Setting for sending mail (SMTP) - [DataMember(Name="sendSettings", EmitDefaultValue=false)] - public MailAccountSendSettingsDTO SendSettings { get; set; } - - /// - /// Setting for sending mail (POP3 or IMAP) - /// - /// Setting for sending mail (POP3 or IMAP) - [DataMember(Name="receiveSettings", EmitDefaultValue=false)] - public MailAccountReceiveSettingsDTO ReceiveSettings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" Alias: ").Append(Alias).Append("\n"); - sb.Append(" Mail: ").Append(Mail).Append("\n"); - sb.Append(" IsDefault: ").Append(IsDefault).Append("\n"); - sb.Append(" Enabled: ").Append(Enabled).Append("\n"); - sb.Append(" IsSystemAccount: ").Append(IsSystemAccount).Append("\n"); - sb.Append(" SendSettings: ").Append(SendSettings).Append("\n"); - sb.Append(" ReceiveSettings: ").Append(ReceiveSettings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountDTO); - } - - /// - /// Returns true if MailAccountDTO instances are equal - /// - /// Instance of MailAccountDTO to be compared - /// Boolean - public bool Equals(MailAccountDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.Alias == input.Alias || - (this.Alias != null && - this.Alias.Equals(input.Alias)) - ) && - ( - this.Mail == input.Mail || - (this.Mail != null && - this.Mail.Equals(input.Mail)) - ) && - ( - this.IsDefault == input.IsDefault || - (this.IsDefault != null && - this.IsDefault.Equals(input.IsDefault)) - ) && - ( - this.Enabled == input.Enabled || - (this.Enabled != null && - this.Enabled.Equals(input.Enabled)) - ) && - ( - this.IsSystemAccount == input.IsSystemAccount || - (this.IsSystemAccount != null && - this.IsSystemAccount.Equals(input.IsSystemAccount)) - ) && - ( - this.SendSettings == input.SendSettings || - (this.SendSettings != null && - this.SendSettings.Equals(input.SendSettings)) - ) && - ( - this.ReceiveSettings == input.ReceiveSettings || - (this.ReceiveSettings != null && - this.ReceiveSettings.Equals(input.ReceiveSettings)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.Alias != null) - hashCode = hashCode * 59 + this.Alias.GetHashCode(); - if (this.Mail != null) - hashCode = hashCode * 59 + this.Mail.GetHashCode(); - if (this.IsDefault != null) - hashCode = hashCode * 59 + this.IsDefault.GetHashCode(); - if (this.Enabled != null) - hashCode = hashCode * 59 + this.Enabled.GetHashCode(); - if (this.IsSystemAccount != null) - hashCode = hashCode * 59 + this.IsSystemAccount.GetHashCode(); - if (this.SendSettings != null) - hashCode = hashCode * 59 + this.SendSettings.GetHashCode(); - if (this.ReceiveSettings != null) - hashCode = hashCode * 59 + this.ReceiveSettings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountImapFolderDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailAccountImapFolderDTO.cs deleted file mode 100644 index 568eced..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountImapFolderDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// IMAP Folders configuration - /// - [DataContract] - public partial class MailAccountImapFolderDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Source folder. - /// Destination folder. - /// Possible values: 0: None 1: DeleteMessage 2: MoveToDestinationFolder . - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite . - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite . - /// Boolean indicating whether to leave the email as unread. - /// Fields mapping. - public MailAccountImapFolderDTO(string sourceFolder = default(string), string destinationFolder = default(string), int? afterDownloadAction = default(int?), int? pecSubject = default(int?), int? pecSender = default(int?), bool? peekMode = default(bool?), MailAccountStoreSettingsDTO mapping = default(MailAccountStoreSettingsDTO)) - { - this.SourceFolder = sourceFolder; - this.DestinationFolder = destinationFolder; - this.AfterDownloadAction = afterDownloadAction; - this.PecSubject = pecSubject; - this.PecSender = pecSender; - this.PeekMode = peekMode; - this.Mapping = mapping; - } - - /// - /// Source folder - /// - /// Source folder - [DataMember(Name="sourceFolder", EmitDefaultValue=false)] - public string SourceFolder { get; set; } - - /// - /// Destination folder - /// - /// Destination folder - [DataMember(Name="destinationFolder", EmitDefaultValue=false)] - public string DestinationFolder { get; set; } - - /// - /// Possible values: 0: None 1: DeleteMessage 2: MoveToDestinationFolder - /// - /// Possible values: 0: None 1: DeleteMessage 2: MoveToDestinationFolder - [DataMember(Name="afterDownloadAction", EmitDefaultValue=false)] - public int? AfterDownloadAction { get; set; } - - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - [DataMember(Name="pecSubject", EmitDefaultValue=false)] - public int? PecSubject { get; set; } - - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - [DataMember(Name="pecSender", EmitDefaultValue=false)] - public int? PecSender { get; set; } - - /// - /// Boolean indicating whether to leave the email as unread - /// - /// Boolean indicating whether to leave the email as unread - [DataMember(Name="peekMode", EmitDefaultValue=false)] - public bool? PeekMode { get; set; } - - /// - /// Fields mapping - /// - /// Fields mapping - [DataMember(Name="mapping", EmitDefaultValue=false)] - public MailAccountStoreSettingsDTO Mapping { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountImapFolderDTO {\n"); - sb.Append(" SourceFolder: ").Append(SourceFolder).Append("\n"); - sb.Append(" DestinationFolder: ").Append(DestinationFolder).Append("\n"); - sb.Append(" AfterDownloadAction: ").Append(AfterDownloadAction).Append("\n"); - sb.Append(" PecSubject: ").Append(PecSubject).Append("\n"); - sb.Append(" PecSender: ").Append(PecSender).Append("\n"); - sb.Append(" PeekMode: ").Append(PeekMode).Append("\n"); - sb.Append(" Mapping: ").Append(Mapping).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountImapFolderDTO); - } - - /// - /// Returns true if MailAccountImapFolderDTO instances are equal - /// - /// Instance of MailAccountImapFolderDTO to be compared - /// Boolean - public bool Equals(MailAccountImapFolderDTO input) - { - if (input == null) - return false; - - return - ( - this.SourceFolder == input.SourceFolder || - (this.SourceFolder != null && - this.SourceFolder.Equals(input.SourceFolder)) - ) && - ( - this.DestinationFolder == input.DestinationFolder || - (this.DestinationFolder != null && - this.DestinationFolder.Equals(input.DestinationFolder)) - ) && - ( - this.AfterDownloadAction == input.AfterDownloadAction || - (this.AfterDownloadAction != null && - this.AfterDownloadAction.Equals(input.AfterDownloadAction)) - ) && - ( - this.PecSubject == input.PecSubject || - (this.PecSubject != null && - this.PecSubject.Equals(input.PecSubject)) - ) && - ( - this.PecSender == input.PecSender || - (this.PecSender != null && - this.PecSender.Equals(input.PecSender)) - ) && - ( - this.PeekMode == input.PeekMode || - (this.PeekMode != null && - this.PeekMode.Equals(input.PeekMode)) - ) && - ( - this.Mapping == input.Mapping || - (this.Mapping != null && - this.Mapping.Equals(input.Mapping)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SourceFolder != null) - hashCode = hashCode * 59 + this.SourceFolder.GetHashCode(); - if (this.DestinationFolder != null) - hashCode = hashCode * 59 + this.DestinationFolder.GetHashCode(); - if (this.AfterDownloadAction != null) - hashCode = hashCode * 59 + this.AfterDownloadAction.GetHashCode(); - if (this.PecSubject != null) - hashCode = hashCode * 59 + this.PecSubject.GetHashCode(); - if (this.PecSender != null) - hashCode = hashCode * 59 + this.PecSender.GetHashCode(); - if (this.PeekMode != null) - hashCode = hashCode * 59 + this.PeekMode.GetHashCode(); - if (this.Mapping != null) - hashCode = hashCode * 59 + this.Mapping.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountReceiveSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailAccountReceiveSettingsDTO.cs deleted file mode 100644 index fc33856..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountReceiveSettingsDTO.cs +++ /dev/null @@ -1,271 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Abstract class for receiving mail - /// - [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] - [JsonSubtypes.KnownSubType(typeof(MailAccountReceiveSettingsImapDTO), "MailAccountReceiveSettingsImapDTO")] - [JsonSubtypes.KnownSubType(typeof(MailAccountReceiveSettingsPop3DTO), "MailAccountReceiveSettingsPop3DTO")] - public partial class MailAccountReceiveSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected MailAccountReceiveSettingsDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Name of class (required). - /// Possible values: 0: Basic 1: Microsoft 2: Google . - /// The tenant ID. - /// The client ID. - /// The client Secret. - /// Gets or sets whether the client secret is set. - /// Gets or sets whether the authorization response is set. - /// The authorization response. - public MailAccountReceiveSettingsDTO(string className = default(string), int? authenticationMode = default(int?), string tenantId = default(string), string clientId = default(string), string clientSecret = default(string), bool? isClientSecretSet = default(bool?), bool? isAuthorizationResponseSet = default(bool?), string authorizationResponse = default(string)) - { - // to ensure "className" is required (not null) - if (className == null) - { - throw new InvalidDataException("className is a required property for MailAccountReceiveSettingsDTO and cannot be null"); - } - else - { - this.ClassName = className; - } - this.AuthenticationMode = authenticationMode; - this.TenantId = tenantId; - this.ClientId = clientId; - this.ClientSecret = clientSecret; - this.IsClientSecretSet = isClientSecretSet; - this.IsAuthorizationResponseSet = isAuthorizationResponseSet; - this.AuthorizationResponse = authorizationResponse; - } - - /// - /// Name of class - /// - /// Name of class - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Possible values: 0: Basic 1: Microsoft 2: Google - /// - /// Possible values: 0: Basic 1: Microsoft 2: Google - [DataMember(Name="authenticationMode", EmitDefaultValue=false)] - public int? AuthenticationMode { get; set; } - - /// - /// The tenant ID - /// - /// The tenant ID - [DataMember(Name="tenantId", EmitDefaultValue=false)] - public string TenantId { get; set; } - - /// - /// The client ID - /// - /// The client ID - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// The client Secret - /// - /// The client Secret - [DataMember(Name="clientSecret", EmitDefaultValue=false)] - public string ClientSecret { get; set; } - - /// - /// Gets or sets whether the client secret is set - /// - /// Gets or sets whether the client secret is set - [DataMember(Name="isClientSecretSet", EmitDefaultValue=false)] - public bool? IsClientSecretSet { get; set; } - - /// - /// Gets or sets whether the authorization response is set - /// - /// Gets or sets whether the authorization response is set - [DataMember(Name="isAuthorizationResponseSet", EmitDefaultValue=false)] - public bool? IsAuthorizationResponseSet { get; set; } - - /// - /// The authorization response - /// - /// The authorization response - [DataMember(Name="authorizationResponse", EmitDefaultValue=false)] - public string AuthorizationResponse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountReceiveSettingsDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" AuthenticationMode: ").Append(AuthenticationMode).Append("\n"); - sb.Append(" TenantId: ").Append(TenantId).Append("\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n"); - sb.Append(" IsClientSecretSet: ").Append(IsClientSecretSet).Append("\n"); - sb.Append(" IsAuthorizationResponseSet: ").Append(IsAuthorizationResponseSet).Append("\n"); - sb.Append(" AuthorizationResponse: ").Append(AuthorizationResponse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountReceiveSettingsDTO); - } - - /// - /// Returns true if MailAccountReceiveSettingsDTO instances are equal - /// - /// Instance of MailAccountReceiveSettingsDTO to be compared - /// Boolean - public bool Equals(MailAccountReceiveSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.AuthenticationMode == input.AuthenticationMode || - (this.AuthenticationMode != null && - this.AuthenticationMode.Equals(input.AuthenticationMode)) - ) && - ( - this.TenantId == input.TenantId || - (this.TenantId != null && - this.TenantId.Equals(input.TenantId)) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.ClientSecret == input.ClientSecret || - (this.ClientSecret != null && - this.ClientSecret.Equals(input.ClientSecret)) - ) && - ( - this.IsClientSecretSet == input.IsClientSecretSet || - (this.IsClientSecretSet != null && - this.IsClientSecretSet.Equals(input.IsClientSecretSet)) - ) && - ( - this.IsAuthorizationResponseSet == input.IsAuthorizationResponseSet || - (this.IsAuthorizationResponseSet != null && - this.IsAuthorizationResponseSet.Equals(input.IsAuthorizationResponseSet)) - ) && - ( - this.AuthorizationResponse == input.AuthorizationResponse || - (this.AuthorizationResponse != null && - this.AuthorizationResponse.Equals(input.AuthorizationResponse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.AuthenticationMode != null) - hashCode = hashCode * 59 + this.AuthenticationMode.GetHashCode(); - if (this.TenantId != null) - hashCode = hashCode * 59 + this.TenantId.GetHashCode(); - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.ClientSecret != null) - hashCode = hashCode * 59 + this.ClientSecret.GetHashCode(); - if (this.IsClientSecretSet != null) - hashCode = hashCode * 59 + this.IsClientSecretSet.GetHashCode(); - if (this.IsAuthorizationResponseSet != null) - hashCode = hashCode * 59 + this.IsAuthorizationResponseSet.GetHashCode(); - if (this.AuthorizationResponse != null) - hashCode = hashCode * 59 + this.AuthorizationResponse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountReceiveSettingsImapDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailAccountReceiveSettingsImapDTO.cs deleted file mode 100644 index 03f636a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountReceiveSettingsImapDTO.cs +++ /dev/null @@ -1,250 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// IMAP Settings - /// - [DataContract] - public partial class MailAccountReceiveSettingsImapDTO : MailAccountReceiveSettingsDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected MailAccountReceiveSettingsImapDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Source folder (required). - /// Source folder (required). - /// Source folder. - /// Source folder. - /// Source folder. - /// Possible values: 0: None 1: TLS 2: SSL . - /// Source folder. - public MailAccountReceiveSettingsImapDTO(string server = default(string), string username = default(string), string password = default(string), int? port = default(int?), int? connectionTimeout = default(int?), int? securityProtocol = default(int?), List foldersConfiguration = default(List), string className = "MailAccountReceiveSettingsImapDTO", int? authenticationMode = default(int?), string tenantId = default(string), string clientId = default(string), string clientSecret = default(string), bool? isClientSecretSet = default(bool?), bool? isAuthorizationResponseSet = default(bool?), string authorizationResponse = default(string)) : base(className, authenticationMode, tenantId, clientId, clientSecret, isClientSecretSet, isAuthorizationResponseSet, authorizationResponse) - { - // to ensure "server" is required (not null) - if (server == null) - { - throw new InvalidDataException("server is a required property for MailAccountReceiveSettingsImapDTO and cannot be null"); - } - else - { - this.Server = server; - } - // to ensure "username" is required (not null) - if (username == null) - { - throw new InvalidDataException("username is a required property for MailAccountReceiveSettingsImapDTO and cannot be null"); - } - else - { - this.Username = username; - } - this.Password = password; - this.Port = port; - this.ConnectionTimeout = connectionTimeout; - this.SecurityProtocol = securityProtocol; - this.FoldersConfiguration = foldersConfiguration; - } - - /// - /// Source folder - /// - /// Source folder - [DataMember(Name="server", EmitDefaultValue=false)] - public string Server { get; set; } - - /// - /// Source folder - /// - /// Source folder - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Source folder - /// - /// Source folder - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Source folder - /// - /// Source folder - [DataMember(Name="port", EmitDefaultValue=false)] - public int? Port { get; set; } - - /// - /// Source folder - /// - /// Source folder - [DataMember(Name="connectionTimeout", EmitDefaultValue=false)] - public int? ConnectionTimeout { get; set; } - - /// - /// Possible values: 0: None 1: TLS 2: SSL - /// - /// Possible values: 0: None 1: TLS 2: SSL - [DataMember(Name="securityProtocol", EmitDefaultValue=false)] - public int? SecurityProtocol { get; set; } - - /// - /// Source folder - /// - /// Source folder - [DataMember(Name="foldersConfiguration", EmitDefaultValue=false)] - public List FoldersConfiguration { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountReceiveSettingsImapDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Server: ").Append(Server).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Port: ").Append(Port).Append("\n"); - sb.Append(" ConnectionTimeout: ").Append(ConnectionTimeout).Append("\n"); - sb.Append(" SecurityProtocol: ").Append(SecurityProtocol).Append("\n"); - sb.Append(" FoldersConfiguration: ").Append(FoldersConfiguration).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountReceiveSettingsImapDTO); - } - - /// - /// Returns true if MailAccountReceiveSettingsImapDTO instances are equal - /// - /// Instance of MailAccountReceiveSettingsImapDTO to be compared - /// Boolean - public bool Equals(MailAccountReceiveSettingsImapDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Server == input.Server || - (this.Server != null && - this.Server.Equals(input.Server)) - ) && base.Equals(input) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && base.Equals(input) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && base.Equals(input) && - ( - this.Port == input.Port || - (this.Port != null && - this.Port.Equals(input.Port)) - ) && base.Equals(input) && - ( - this.ConnectionTimeout == input.ConnectionTimeout || - (this.ConnectionTimeout != null && - this.ConnectionTimeout.Equals(input.ConnectionTimeout)) - ) && base.Equals(input) && - ( - this.SecurityProtocol == input.SecurityProtocol || - (this.SecurityProtocol != null && - this.SecurityProtocol.Equals(input.SecurityProtocol)) - ) && base.Equals(input) && - ( - this.FoldersConfiguration == input.FoldersConfiguration || - this.FoldersConfiguration != null && - this.FoldersConfiguration.SequenceEqual(input.FoldersConfiguration) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Server != null) - hashCode = hashCode * 59 + this.Server.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Port != null) - hashCode = hashCode * 59 + this.Port.GetHashCode(); - if (this.ConnectionTimeout != null) - hashCode = hashCode * 59 + this.ConnectionTimeout.GetHashCode(); - if (this.SecurityProtocol != null) - hashCode = hashCode * 59 + this.SecurityProtocol.GetHashCode(); - if (this.FoldersConfiguration != null) - hashCode = hashCode * 59 + this.FoldersConfiguration.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountReceiveSettingsPop3DTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailAccountReceiveSettingsPop3DTO.cs deleted file mode 100644 index cdc1526..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountReceiveSettingsPop3DTO.cs +++ /dev/null @@ -1,318 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// POP3 Settings - /// - [DataContract] - public partial class MailAccountReceiveSettingsPop3DTO : MailAccountReceiveSettingsDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected MailAccountReceiveSettingsPop3DTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Server address (required). - /// Username (required). - /// Password. - /// Port. - /// SSL. - /// Boolean indicating whether to use the password protection (SPA). - /// Possible values: 0: None 1: Immediately 2: AfterNumDays . - /// Number of days before deleting the message if DeleteEmailMode is set to AfterNumDays. - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite . - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite . - /// Fields mapping. - public MailAccountReceiveSettingsPop3DTO(string server = default(string), string username = default(string), string password = default(string), int? port = default(int?), bool? ssl = default(bool?), bool? passwordProtection = default(bool?), int? deleteEmailMode = default(int?), int? numDayDelete = default(int?), int? pecSubject = default(int?), int? pecSender = default(int?), MailAccountStoreSettingsDTO mapping = default(MailAccountStoreSettingsDTO), string className = "MailAccountReceiveSettingsPop3DTO", int? authenticationMode = default(int?), string tenantId = default(string), string clientId = default(string), string clientSecret = default(string), bool? isClientSecretSet = default(bool?), bool? isAuthorizationResponseSet = default(bool?), string authorizationResponse = default(string)) : base(className, authenticationMode, tenantId, clientId, clientSecret, isClientSecretSet, isAuthorizationResponseSet, authorizationResponse) - { - // to ensure "server" is required (not null) - if (server == null) - { - throw new InvalidDataException("server is a required property for MailAccountReceiveSettingsPop3DTO and cannot be null"); - } - else - { - this.Server = server; - } - // to ensure "username" is required (not null) - if (username == null) - { - throw new InvalidDataException("username is a required property for MailAccountReceiveSettingsPop3DTO and cannot be null"); - } - else - { - this.Username = username; - } - this.Password = password; - this.Port = port; - this.Ssl = ssl; - this.PasswordProtection = passwordProtection; - this.DeleteEmailMode = deleteEmailMode; - this.NumDayDelete = numDayDelete; - this.PecSubject = pecSubject; - this.PecSender = pecSender; - this.Mapping = mapping; - } - - /// - /// Server address - /// - /// Server address - [DataMember(Name="server", EmitDefaultValue=false)] - public string Server { get; set; } - - /// - /// Username - /// - /// Username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Port - /// - /// Port - [DataMember(Name="port", EmitDefaultValue=false)] - public int? Port { get; set; } - - /// - /// SSL - /// - /// SSL - [DataMember(Name="ssl", EmitDefaultValue=false)] - public bool? Ssl { get; set; } - - /// - /// Boolean indicating whether to use the password protection (SPA) - /// - /// Boolean indicating whether to use the password protection (SPA) - [DataMember(Name="passwordProtection", EmitDefaultValue=false)] - public bool? PasswordProtection { get; set; } - - /// - /// Possible values: 0: None 1: Immediately 2: AfterNumDays - /// - /// Possible values: 0: None 1: Immediately 2: AfterNumDays - [DataMember(Name="deleteEmailMode", EmitDefaultValue=false)] - public int? DeleteEmailMode { get; set; } - - /// - /// Number of days before deleting the message if DeleteEmailMode is set to AfterNumDays - /// - /// Number of days before deleting the message if DeleteEmailMode is set to AfterNumDays - [DataMember(Name="numDayDelete", EmitDefaultValue=false)] - public int? NumDayDelete { get; set; } - - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - [DataMember(Name="pecSubject", EmitDefaultValue=false)] - public int? PecSubject { get; set; } - - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - [DataMember(Name="pecSender", EmitDefaultValue=false)] - public int? PecSender { get; set; } - - /// - /// Fields mapping - /// - /// Fields mapping - [DataMember(Name="mapping", EmitDefaultValue=false)] - public MailAccountStoreSettingsDTO Mapping { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountReceiveSettingsPop3DTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Server: ").Append(Server).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Port: ").Append(Port).Append("\n"); - sb.Append(" Ssl: ").Append(Ssl).Append("\n"); - sb.Append(" PasswordProtection: ").Append(PasswordProtection).Append("\n"); - sb.Append(" DeleteEmailMode: ").Append(DeleteEmailMode).Append("\n"); - sb.Append(" NumDayDelete: ").Append(NumDayDelete).Append("\n"); - sb.Append(" PecSubject: ").Append(PecSubject).Append("\n"); - sb.Append(" PecSender: ").Append(PecSender).Append("\n"); - sb.Append(" Mapping: ").Append(Mapping).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountReceiveSettingsPop3DTO); - } - - /// - /// Returns true if MailAccountReceiveSettingsPop3DTO instances are equal - /// - /// Instance of MailAccountReceiveSettingsPop3DTO to be compared - /// Boolean - public bool Equals(MailAccountReceiveSettingsPop3DTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Server == input.Server || - (this.Server != null && - this.Server.Equals(input.Server)) - ) && base.Equals(input) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && base.Equals(input) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && base.Equals(input) && - ( - this.Port == input.Port || - (this.Port != null && - this.Port.Equals(input.Port)) - ) && base.Equals(input) && - ( - this.Ssl == input.Ssl || - (this.Ssl != null && - this.Ssl.Equals(input.Ssl)) - ) && base.Equals(input) && - ( - this.PasswordProtection == input.PasswordProtection || - (this.PasswordProtection != null && - this.PasswordProtection.Equals(input.PasswordProtection)) - ) && base.Equals(input) && - ( - this.DeleteEmailMode == input.DeleteEmailMode || - (this.DeleteEmailMode != null && - this.DeleteEmailMode.Equals(input.DeleteEmailMode)) - ) && base.Equals(input) && - ( - this.NumDayDelete == input.NumDayDelete || - (this.NumDayDelete != null && - this.NumDayDelete.Equals(input.NumDayDelete)) - ) && base.Equals(input) && - ( - this.PecSubject == input.PecSubject || - (this.PecSubject != null && - this.PecSubject.Equals(input.PecSubject)) - ) && base.Equals(input) && - ( - this.PecSender == input.PecSender || - (this.PecSender != null && - this.PecSender.Equals(input.PecSender)) - ) && base.Equals(input) && - ( - this.Mapping == input.Mapping || - (this.Mapping != null && - this.Mapping.Equals(input.Mapping)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Server != null) - hashCode = hashCode * 59 + this.Server.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Port != null) - hashCode = hashCode * 59 + this.Port.GetHashCode(); - if (this.Ssl != null) - hashCode = hashCode * 59 + this.Ssl.GetHashCode(); - if (this.PasswordProtection != null) - hashCode = hashCode * 59 + this.PasswordProtection.GetHashCode(); - if (this.DeleteEmailMode != null) - hashCode = hashCode * 59 + this.DeleteEmailMode.GetHashCode(); - if (this.NumDayDelete != null) - hashCode = hashCode * 59 + this.NumDayDelete.GetHashCode(); - if (this.PecSubject != null) - hashCode = hashCode * 59 + this.PecSubject.GetHashCode(); - if (this.PecSender != null) - hashCode = hashCode * 59 + this.PecSender.GetHashCode(); - if (this.Mapping != null) - hashCode = hashCode * 59 + this.Mapping.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountSendSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailAccountSendSettingsDTO.cs deleted file mode 100644 index 5528b99..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountSendSettingsDTO.cs +++ /dev/null @@ -1,270 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Abstract class for sending mail - /// - [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] - [JsonSubtypes.KnownSubType(typeof(MailAccountSendSettingsSmtpDTO), "MailAccountSendSettingsSmtpDTO")] - public partial class MailAccountSendSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected MailAccountSendSettingsDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Name of class (required). - /// Possible values: 0: Basic 1: Microsoft 2: Google . - /// The tenant ID. - /// The client ID. - /// The client Secret. - /// Gets or sets whether the client secret is set. - /// Gets or sets whether the authorization response is set. - /// The authorization response. - public MailAccountSendSettingsDTO(string className = default(string), int? authenticationMode = default(int?), string tenantId = default(string), string clientId = default(string), string clientSecret = default(string), bool? isClientSecretSet = default(bool?), bool? isAuthorizationResponseSet = default(bool?), string authorizationResponse = default(string)) - { - // to ensure "className" is required (not null) - if (className == null) - { - throw new InvalidDataException("className is a required property for MailAccountSendSettingsDTO and cannot be null"); - } - else - { - this.ClassName = className; - } - this.AuthenticationMode = authenticationMode; - this.TenantId = tenantId; - this.ClientId = clientId; - this.ClientSecret = clientSecret; - this.IsClientSecretSet = isClientSecretSet; - this.IsAuthorizationResponseSet = isAuthorizationResponseSet; - this.AuthorizationResponse = authorizationResponse; - } - - /// - /// Name of class - /// - /// Name of class - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Possible values: 0: Basic 1: Microsoft 2: Google - /// - /// Possible values: 0: Basic 1: Microsoft 2: Google - [DataMember(Name="authenticationMode", EmitDefaultValue=false)] - public int? AuthenticationMode { get; set; } - - /// - /// The tenant ID - /// - /// The tenant ID - [DataMember(Name="tenantId", EmitDefaultValue=false)] - public string TenantId { get; set; } - - /// - /// The client ID - /// - /// The client ID - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// The client Secret - /// - /// The client Secret - [DataMember(Name="clientSecret", EmitDefaultValue=false)] - public string ClientSecret { get; set; } - - /// - /// Gets or sets whether the client secret is set - /// - /// Gets or sets whether the client secret is set - [DataMember(Name="isClientSecretSet", EmitDefaultValue=false)] - public bool? IsClientSecretSet { get; set; } - - /// - /// Gets or sets whether the authorization response is set - /// - /// Gets or sets whether the authorization response is set - [DataMember(Name="isAuthorizationResponseSet", EmitDefaultValue=false)] - public bool? IsAuthorizationResponseSet { get; set; } - - /// - /// The authorization response - /// - /// The authorization response - [DataMember(Name="authorizationResponse", EmitDefaultValue=false)] - public string AuthorizationResponse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountSendSettingsDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" AuthenticationMode: ").Append(AuthenticationMode).Append("\n"); - sb.Append(" TenantId: ").Append(TenantId).Append("\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n"); - sb.Append(" IsClientSecretSet: ").Append(IsClientSecretSet).Append("\n"); - sb.Append(" IsAuthorizationResponseSet: ").Append(IsAuthorizationResponseSet).Append("\n"); - sb.Append(" AuthorizationResponse: ").Append(AuthorizationResponse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountSendSettingsDTO); - } - - /// - /// Returns true if MailAccountSendSettingsDTO instances are equal - /// - /// Instance of MailAccountSendSettingsDTO to be compared - /// Boolean - public bool Equals(MailAccountSendSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.AuthenticationMode == input.AuthenticationMode || - (this.AuthenticationMode != null && - this.AuthenticationMode.Equals(input.AuthenticationMode)) - ) && - ( - this.TenantId == input.TenantId || - (this.TenantId != null && - this.TenantId.Equals(input.TenantId)) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.ClientSecret == input.ClientSecret || - (this.ClientSecret != null && - this.ClientSecret.Equals(input.ClientSecret)) - ) && - ( - this.IsClientSecretSet == input.IsClientSecretSet || - (this.IsClientSecretSet != null && - this.IsClientSecretSet.Equals(input.IsClientSecretSet)) - ) && - ( - this.IsAuthorizationResponseSet == input.IsAuthorizationResponseSet || - (this.IsAuthorizationResponseSet != null && - this.IsAuthorizationResponseSet.Equals(input.IsAuthorizationResponseSet)) - ) && - ( - this.AuthorizationResponse == input.AuthorizationResponse || - (this.AuthorizationResponse != null && - this.AuthorizationResponse.Equals(input.AuthorizationResponse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.AuthenticationMode != null) - hashCode = hashCode * 59 + this.AuthenticationMode.GetHashCode(); - if (this.TenantId != null) - hashCode = hashCode * 59 + this.TenantId.GetHashCode(); - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.ClientSecret != null) - hashCode = hashCode * 59 + this.ClientSecret.GetHashCode(); - if (this.IsClientSecretSet != null) - hashCode = hashCode * 59 + this.IsClientSecretSet.GetHashCode(); - if (this.IsAuthorizationResponseSet != null) - hashCode = hashCode * 59 + this.IsAuthorizationResponseSet.GetHashCode(); - if (this.AuthorizationResponse != null) - hashCode = hashCode * 59 + this.AuthorizationResponse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountSendSettingsSmtpDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailAccountSendSettingsSmtpDTO.cs deleted file mode 100644 index 04a4fdc..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountSendSettingsSmtpDTO.cs +++ /dev/null @@ -1,242 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SMTP Settings - /// - [DataContract] - public partial class MailAccountSendSettingsSmtpDTO : MailAccountSendSettingsDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected MailAccountSendSettingsSmtpDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Server address (required). - /// Boolean indicating whether to use authentication. - /// Username. - /// Password. - /// Password. - /// Maximum number of mail to send each time. - /// Possible values: 0: None 1: TLS 2: SSL . - public MailAccountSendSettingsSmtpDTO(string server = default(string), bool? useAuthentication = default(bool?), string username = default(string), string password = default(string), int? port = default(int?), int? maxNumMailToSend = default(int?), int? securityProtocol = default(int?), string className = "MailAccountSendSettingsSmtpDTO", int? authenticationMode = default(int?), string tenantId = default(string), string clientId = default(string), string clientSecret = default(string), bool? isClientSecretSet = default(bool?), bool? isAuthorizationResponseSet = default(bool?), string authorizationResponse = default(string)) : base(className, authenticationMode, tenantId, clientId, clientSecret, isClientSecretSet, isAuthorizationResponseSet, authorizationResponse) - { - // to ensure "server" is required (not null) - if (server == null) - { - throw new InvalidDataException("server is a required property for MailAccountSendSettingsSmtpDTO and cannot be null"); - } - else - { - this.Server = server; - } - this.UseAuthentication = useAuthentication; - this.Username = username; - this.Password = password; - this.Port = port; - this.MaxNumMailToSend = maxNumMailToSend; - this.SecurityProtocol = securityProtocol; - } - - /// - /// Server address - /// - /// Server address - [DataMember(Name="server", EmitDefaultValue=false)] - public string Server { get; set; } - - /// - /// Boolean indicating whether to use authentication - /// - /// Boolean indicating whether to use authentication - [DataMember(Name="useAuthentication", EmitDefaultValue=false)] - public bool? UseAuthentication { get; set; } - - /// - /// Username - /// - /// Username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="port", EmitDefaultValue=false)] - public int? Port { get; set; } - - /// - /// Maximum number of mail to send each time - /// - /// Maximum number of mail to send each time - [DataMember(Name="maxNumMailToSend", EmitDefaultValue=false)] - public int? MaxNumMailToSend { get; set; } - - /// - /// Possible values: 0: None 1: TLS 2: SSL - /// - /// Possible values: 0: None 1: TLS 2: SSL - [DataMember(Name="securityProtocol", EmitDefaultValue=false)] - public int? SecurityProtocol { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountSendSettingsSmtpDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Server: ").Append(Server).Append("\n"); - sb.Append(" UseAuthentication: ").Append(UseAuthentication).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Port: ").Append(Port).Append("\n"); - sb.Append(" MaxNumMailToSend: ").Append(MaxNumMailToSend).Append("\n"); - sb.Append(" SecurityProtocol: ").Append(SecurityProtocol).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountSendSettingsSmtpDTO); - } - - /// - /// Returns true if MailAccountSendSettingsSmtpDTO instances are equal - /// - /// Instance of MailAccountSendSettingsSmtpDTO to be compared - /// Boolean - public bool Equals(MailAccountSendSettingsSmtpDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Server == input.Server || - (this.Server != null && - this.Server.Equals(input.Server)) - ) && base.Equals(input) && - ( - this.UseAuthentication == input.UseAuthentication || - (this.UseAuthentication != null && - this.UseAuthentication.Equals(input.UseAuthentication)) - ) && base.Equals(input) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && base.Equals(input) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && base.Equals(input) && - ( - this.Port == input.Port || - (this.Port != null && - this.Port.Equals(input.Port)) - ) && base.Equals(input) && - ( - this.MaxNumMailToSend == input.MaxNumMailToSend || - (this.MaxNumMailToSend != null && - this.MaxNumMailToSend.Equals(input.MaxNumMailToSend)) - ) && base.Equals(input) && - ( - this.SecurityProtocol == input.SecurityProtocol || - (this.SecurityProtocol != null && - this.SecurityProtocol.Equals(input.SecurityProtocol)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Server != null) - hashCode = hashCode * 59 + this.Server.GetHashCode(); - if (this.UseAuthentication != null) - hashCode = hashCode * 59 + this.UseAuthentication.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Port != null) - hashCode = hashCode * 59 + this.Port.GetHashCode(); - if (this.MaxNumMailToSend != null) - hashCode = hashCode * 59 + this.MaxNumMailToSend.GetHashCode(); - if (this.SecurityProtocol != null) - hashCode = hashCode * 59 + this.SecurityProtocol.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountStoreSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailAccountStoreSettingsDTO.cs deleted file mode 100644 index 81253a3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailAccountStoreSettingsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Action type after download a mail - /// - [DataContract] - public partial class MailAccountStoreSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Action type after download a mail. - /// Action type after download a mail. - public MailAccountStoreSettingsDTO(int? predefinedProfileId = default(int?), List mapping = default(List)) - { - this.PredefinedProfileId = predefinedProfileId; - this.Mapping = mapping; - } - - /// - /// Action type after download a mail - /// - /// Action type after download a mail - [DataMember(Name="predefinedProfileId", EmitDefaultValue=false)] - public int? PredefinedProfileId { get; set; } - - /// - /// Action type after download a mail - /// - /// Action type after download a mail - [DataMember(Name="mapping", EmitDefaultValue=false)] - public List Mapping { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountStoreSettingsDTO {\n"); - sb.Append(" PredefinedProfileId: ").Append(PredefinedProfileId).Append("\n"); - sb.Append(" Mapping: ").Append(Mapping).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountStoreSettingsDTO); - } - - /// - /// Returns true if MailAccountStoreSettingsDTO instances are equal - /// - /// Instance of MailAccountStoreSettingsDTO to be compared - /// Boolean - public bool Equals(MailAccountStoreSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.PredefinedProfileId == input.PredefinedProfileId || - (this.PredefinedProfileId != null && - this.PredefinedProfileId.Equals(input.PredefinedProfileId)) - ) && - ( - this.Mapping == input.Mapping || - this.Mapping != null && - this.Mapping.SequenceEqual(input.Mapping) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.PredefinedProfileId != null) - hashCode = hashCode * 59 + this.PredefinedProfileId.GetHashCode(); - if (this.Mapping != null) - hashCode = hashCode * 59 + this.Mapping.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailBoxFolderDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailBoxFolderDTO.cs deleted file mode 100644 index c33f6b2..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailBoxFolderDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for mail box folder information - /// - [DataContract] - public partial class MailBoxFolderDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Folder name. - /// Folder path. - /// Subfolders. - public MailBoxFolderDTO(string name = default(string), string fullName = default(string), List subFolders = default(List)) - { - this.Name = name; - this.FullName = fullName; - this.SubFolders = subFolders; - } - - /// - /// Folder name - /// - /// Folder name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Folder path - /// - /// Folder path - [DataMember(Name="fullName", EmitDefaultValue=false)] - public string FullName { get; set; } - - /// - /// Subfolders - /// - /// Subfolders - [DataMember(Name="subFolders", EmitDefaultValue=false)] - public List SubFolders { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailBoxFolderDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" FullName: ").Append(FullName).Append("\n"); - sb.Append(" SubFolders: ").Append(SubFolders).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailBoxFolderDTO); - } - - /// - /// Returns true if MailBoxFolderDTO instances are equal - /// - /// Instance of MailBoxFolderDTO to be compared - /// Boolean - public bool Equals(MailBoxFolderDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.FullName == input.FullName || - (this.FullName != null && - this.FullName.Equals(input.FullName)) - ) && - ( - this.SubFolders == input.SubFolders || - this.SubFolders != null && - this.SubFolders.SequenceEqual(input.SubFolders) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.FullName != null) - hashCode = hashCode * 59 + this.FullName.GetHashCode(); - if (this.SubFolders != null) - hashCode = hashCode * 59 + this.SubFolders.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailContactDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailContactDTO.cs deleted file mode 100644 index 349cd65..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailContactDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// MailContactDTO - /// - [DataContract] - public partial class MailContactDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Contact name. - /// Contact email. - public MailContactDTO(string name = default(string), string email = default(string)) - { - this.Name = name; - this.Email = email; - } - - /// - /// Contact name - /// - /// Contact name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Contact email - /// - /// Contact email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailContactDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailContactDTO); - } - - /// - /// Returns true if MailContactDTO instances are equal - /// - /// Instance of MailContactDTO to be compared - /// Boolean - public bool Equals(MailContactDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailDTO.cs deleted file mode 100644 index f3191dd..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailDTO.cs +++ /dev/null @@ -1,265 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// MailDTO - /// - [DataContract] - public partial class MailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected MailDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Mail from contact. - /// Mail to contact list. - /// Mail Cc contact list. - /// Mail subject. - /// Mail datetime. - /// Possible values: 0: Incoming 1: Outcoming 2: ManualIncoming 3: ManualOutcoming (required). - /// Buffer id of mail file (required). - /// Additional request option list. - public MailDTO(MailContactDTO from = default(MailContactDTO), List to = default(List), List cc = default(List), string subject = default(string), DateTime? mailDateTime = default(DateTime?), int? mode = default(int?), string bufferId = default(string), List optionList = default(List)) - { - // to ensure "mode" is required (not null) - if (mode == null) - { - throw new InvalidDataException("mode is a required property for MailDTO and cannot be null"); - } - else - { - this.Mode = mode; - } - // to ensure "bufferId" is required (not null) - if (bufferId == null) - { - throw new InvalidDataException("bufferId is a required property for MailDTO and cannot be null"); - } - else - { - this.BufferId = bufferId; - } - this.From = from; - this.To = to; - this.Cc = cc; - this.Subject = subject; - this.MailDateTime = mailDateTime; - this.OptionList = optionList; - } - - /// - /// Mail from contact - /// - /// Mail from contact - [DataMember(Name="from", EmitDefaultValue=false)] - public MailContactDTO From { get; set; } - - /// - /// Mail to contact list - /// - /// Mail to contact list - [DataMember(Name="to", EmitDefaultValue=false)] - public List To { get; set; } - - /// - /// Mail Cc contact list - /// - /// Mail Cc contact list - [DataMember(Name="cc", EmitDefaultValue=false)] - public List Cc { get; set; } - - /// - /// Mail subject - /// - /// Mail subject - [DataMember(Name="subject", EmitDefaultValue=false)] - public string Subject { get; set; } - - /// - /// Mail datetime - /// - /// Mail datetime - [DataMember(Name="mailDateTime", EmitDefaultValue=false)] - public DateTime? MailDateTime { get; set; } - - /// - /// Possible values: 0: Incoming 1: Outcoming 2: ManualIncoming 3: ManualOutcoming - /// - /// Possible values: 0: Incoming 1: Outcoming 2: ManualIncoming 3: ManualOutcoming - [DataMember(Name="mode", EmitDefaultValue=false)] - public int? Mode { get; set; } - - /// - /// Buffer id of mail file - /// - /// Buffer id of mail file - [DataMember(Name="bufferId", EmitDefaultValue=false)] - public string BufferId { get; set; } - - /// - /// Additional request option list - /// - /// Additional request option list - [DataMember(Name="optionList", EmitDefaultValue=false)] - public List OptionList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailDTO {\n"); - sb.Append(" From: ").Append(From).Append("\n"); - sb.Append(" To: ").Append(To).Append("\n"); - sb.Append(" Cc: ").Append(Cc).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" MailDateTime: ").Append(MailDateTime).Append("\n"); - sb.Append(" Mode: ").Append(Mode).Append("\n"); - sb.Append(" BufferId: ").Append(BufferId).Append("\n"); - sb.Append(" OptionList: ").Append(OptionList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailDTO); - } - - /// - /// Returns true if MailDTO instances are equal - /// - /// Instance of MailDTO to be compared - /// Boolean - public bool Equals(MailDTO input) - { - if (input == null) - return false; - - return - ( - this.From == input.From || - (this.From != null && - this.From.Equals(input.From)) - ) && - ( - this.To == input.To || - this.To != null && - this.To.SequenceEqual(input.To) - ) && - ( - this.Cc == input.Cc || - this.Cc != null && - this.Cc.SequenceEqual(input.Cc) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.MailDateTime == input.MailDateTime || - (this.MailDateTime != null && - this.MailDateTime.Equals(input.MailDateTime)) - ) && - ( - this.Mode == input.Mode || - (this.Mode != null && - this.Mode.Equals(input.Mode)) - ) && - ( - this.BufferId == input.BufferId || - (this.BufferId != null && - this.BufferId.Equals(input.BufferId)) - ) && - ( - this.OptionList == input.OptionList || - this.OptionList != null && - this.OptionList.SequenceEqual(input.OptionList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.From != null) - hashCode = hashCode * 59 + this.From.GetHashCode(); - if (this.To != null) - hashCode = hashCode * 59 + this.To.GetHashCode(); - if (this.Cc != null) - hashCode = hashCode * 59 + this.Cc.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.MailDateTime != null) - hashCode = hashCode * 59 + this.MailDateTime.GetHashCode(); - if (this.Mode != null) - hashCode = hashCode * 59 + this.Mode.GetHashCode(); - if (this.BufferId != null) - hashCode = hashCode * 59 + this.BufferId.GetHashCode(); - if (this.OptionList != null) - hashCode = hashCode * 59 + this.OptionList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailMassiveForProcessDocItemRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailMassiveForProcessDocItemRequestDTO.cs deleted file mode 100644 index 0bd524a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailMassiveForProcessDocItemRequestDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// MailMassiveForProcessDocItemRequestDTO - /// - [DataContract] - public partial class MailMassiveForProcessDocItemRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// processDocId. - /// taskId. - public MailMassiveForProcessDocItemRequestDTO(int? processDocId = default(int?), int? taskId = default(int?)) - { - this.ProcessDocId = processDocId; - this.TaskId = taskId; - } - - /// - /// Gets or Sets ProcessDocId - /// - [DataMember(Name="processDocId", EmitDefaultValue=false)] - public int? ProcessDocId { get; set; } - - /// - /// Gets or Sets TaskId - /// - [DataMember(Name="taskId", EmitDefaultValue=false)] - public int? TaskId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailMassiveForProcessDocItemRequestDTO {\n"); - sb.Append(" ProcessDocId: ").Append(ProcessDocId).Append("\n"); - sb.Append(" TaskId: ").Append(TaskId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailMassiveForProcessDocItemRequestDTO); - } - - /// - /// Returns true if MailMassiveForProcessDocItemRequestDTO instances are equal - /// - /// Instance of MailMassiveForProcessDocItemRequestDTO to be compared - /// Boolean - public bool Equals(MailMassiveForProcessDocItemRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.ProcessDocId == input.ProcessDocId || - (this.ProcessDocId != null && - this.ProcessDocId.Equals(input.ProcessDocId)) - ) && - ( - this.TaskId == input.TaskId || - (this.TaskId != null && - this.TaskId.Equals(input.TaskId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ProcessDocId != null) - hashCode = hashCode * 59 + this.ProcessDocId.GetHashCode(); - if (this.TaskId != null) - hashCode = hashCode * 59 + this.TaskId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailMassiveForProcessDocRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailMassiveForProcessDocRequestDTO.cs deleted file mode 100644 index cd8d0bc..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailMassiveForProcessDocRequestDTO.cs +++ /dev/null @@ -1,172 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// MailMassiveForProcessDocRequestDTO - /// - [DataContract] - public partial class MailMassiveForProcessDocRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// items. - /// forView. - /// createZip. - /// addAttachments. - public MailMassiveForProcessDocRequestDTO(List items = default(List), bool? forView = default(bool?), bool? createZip = default(bool?), bool? addAttachments = default(bool?)) - { - this.Items = items; - this.ForView = forView; - this.CreateZip = createZip; - this.AddAttachments = addAttachments; - } - - /// - /// Gets or Sets Items - /// - [DataMember(Name="items", EmitDefaultValue=false)] - public List Items { get; set; } - - /// - /// Gets or Sets ForView - /// - [DataMember(Name="forView", EmitDefaultValue=false)] - public bool? ForView { get; set; } - - /// - /// Gets or Sets CreateZip - /// - [DataMember(Name="createZip", EmitDefaultValue=false)] - public bool? CreateZip { get; set; } - - /// - /// Gets or Sets AddAttachments - /// - [DataMember(Name="addAttachments", EmitDefaultValue=false)] - public bool? AddAttachments { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailMassiveForProcessDocRequestDTO {\n"); - sb.Append(" Items: ").Append(Items).Append("\n"); - sb.Append(" ForView: ").Append(ForView).Append("\n"); - sb.Append(" CreateZip: ").Append(CreateZip).Append("\n"); - sb.Append(" AddAttachments: ").Append(AddAttachments).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailMassiveForProcessDocRequestDTO); - } - - /// - /// Returns true if MailMassiveForProcessDocRequestDTO instances are equal - /// - /// Instance of MailMassiveForProcessDocRequestDTO to be compared - /// Boolean - public bool Equals(MailMassiveForProcessDocRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Items == input.Items || - this.Items != null && - this.Items.SequenceEqual(input.Items) - ) && - ( - this.ForView == input.ForView || - (this.ForView != null && - this.ForView.Equals(input.ForView)) - ) && - ( - this.CreateZip == input.CreateZip || - (this.CreateZip != null && - this.CreateZip.Equals(input.CreateZip)) - ) && - ( - this.AddAttachments == input.AddAttachments || - (this.AddAttachments != null && - this.AddAttachments.Equals(input.AddAttachments)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Items != null) - hashCode = hashCode * 59 + this.Items.GetHashCode(); - if (this.ForView != null) - hashCode = hashCode * 59 + this.ForView.GetHashCode(); - if (this.CreateZip != null) - hashCode = hashCode * 59 + this.CreateZip.GetHashCode(); - if (this.AddAttachments != null) - hashCode = hashCode * 59 + this.AddAttachments.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailMassiveForProfileRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailMassiveForProfileRequestDTO.cs deleted file mode 100644 index 2251996..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailMassiveForProfileRequestDTO.cs +++ /dev/null @@ -1,172 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// MailMassiveForProfileRequestDTO - /// - [DataContract] - public partial class MailMassiveForProfileRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// items. - /// forView. - /// createZip. - /// addAttachments. - public MailMassiveForProfileRequestDTO(List items = default(List), bool? forView = default(bool?), bool? createZip = default(bool?), bool? addAttachments = default(bool?)) - { - this.Items = items; - this.ForView = forView; - this.CreateZip = createZip; - this.AddAttachments = addAttachments; - } - - /// - /// Gets or Sets Items - /// - [DataMember(Name="items", EmitDefaultValue=false)] - public List Items { get; set; } - - /// - /// Gets or Sets ForView - /// - [DataMember(Name="forView", EmitDefaultValue=false)] - public bool? ForView { get; set; } - - /// - /// Gets or Sets CreateZip - /// - [DataMember(Name="createZip", EmitDefaultValue=false)] - public bool? CreateZip { get; set; } - - /// - /// Gets or Sets AddAttachments - /// - [DataMember(Name="addAttachments", EmitDefaultValue=false)] - public bool? AddAttachments { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailMassiveForProfileRequestDTO {\n"); - sb.Append(" Items: ").Append(Items).Append("\n"); - sb.Append(" ForView: ").Append(ForView).Append("\n"); - sb.Append(" CreateZip: ").Append(CreateZip).Append("\n"); - sb.Append(" AddAttachments: ").Append(AddAttachments).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailMassiveForProfileRequestDTO); - } - - /// - /// Returns true if MailMassiveForProfileRequestDTO instances are equal - /// - /// Instance of MailMassiveForProfileRequestDTO to be compared - /// Boolean - public bool Equals(MailMassiveForProfileRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Items == input.Items || - this.Items != null && - this.Items.SequenceEqual(input.Items) - ) && - ( - this.ForView == input.ForView || - (this.ForView != null && - this.ForView.Equals(input.ForView)) - ) && - ( - this.CreateZip == input.CreateZip || - (this.CreateZip != null && - this.CreateZip.Equals(input.CreateZip)) - ) && - ( - this.AddAttachments == input.AddAttachments || - (this.AddAttachments != null && - this.AddAttachments.Equals(input.AddAttachments)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Items != null) - hashCode = hashCode * 59 + this.Items.GetHashCode(); - if (this.ForView != null) - hashCode = hashCode * 59 + this.ForView.GetHashCode(); - if (this.CreateZip != null) - hashCode = hashCode * 59 + this.CreateZip.GetHashCode(); - if (this.AddAttachments != null) - hashCode = hashCode * 59 + this.AddAttachments.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailMassiveForProfileResponseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailMassiveForProfileResponseDTO.cs deleted file mode 100644 index 64e47d6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailMassiveForProfileResponseDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// MailMassiveForProfileResponseDTO - /// - [DataContract] - public partial class MailMassiveForProfileResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of export in progress. - public MailMassiveForProfileResponseDTO(string requestId = default(string)) - { - this.RequestId = requestId; - } - - /// - /// Identifier of export in progress - /// - /// Identifier of export in progress - [DataMember(Name="requestId", EmitDefaultValue=false)] - public string RequestId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailMassiveForProfileResponseDTO {\n"); - sb.Append(" RequestId: ").Append(RequestId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailMassiveForProfileResponseDTO); - } - - /// - /// Returns true if MailMassiveForProfileResponseDTO instances are equal - /// - /// Instance of MailMassiveForProfileResponseDTO to be compared - /// Boolean - public bool Equals(MailMassiveForProfileResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.RequestId == input.RequestId || - (this.RequestId != null && - this.RequestId.Equals(input.RequestId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.RequestId != null) - hashCode = hashCode * 59 + this.RequestId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailOutDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailOutDTO.cs deleted file mode 100644 index 4562335..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailOutDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class mail enqueud for send - /// - [DataContract] - public partial class MailOutDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique Id of mail out. - /// Unique id for sender (Arxivar user). - /// Message Unique Id. - /// Possible values: 0: To_send 1: Sent 2: Not_Sent . - /// Retry count for send. - /// Smtp rule Id. - public MailOutDTO(int? id = default(int?), int? senderId = default(int?), int? messageId = default(int?), int? state = default(int?), int? retryCount = default(int?), int? smtpId = default(int?)) - { - this.Id = id; - this.SenderId = senderId; - this.MessageId = messageId; - this.State = state; - this.RetryCount = retryCount; - this.SmtpId = smtpId; - } - - /// - /// Unique Id of mail out - /// - /// Unique Id of mail out - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Unique id for sender (Arxivar user) - /// - /// Unique id for sender (Arxivar user) - [DataMember(Name="senderId", EmitDefaultValue=false)] - public int? SenderId { get; set; } - - /// - /// Message Unique Id - /// - /// Message Unique Id - [DataMember(Name="messageId", EmitDefaultValue=false)] - public int? MessageId { get; set; } - - /// - /// Possible values: 0: To_send 1: Sent 2: Not_Sent - /// - /// Possible values: 0: To_send 1: Sent 2: Not_Sent - [DataMember(Name="state", EmitDefaultValue=false)] - public int? State { get; set; } - - /// - /// Retry count for send - /// - /// Retry count for send - [DataMember(Name="retryCount", EmitDefaultValue=false)] - public int? RetryCount { get; set; } - - /// - /// Smtp rule Id - /// - /// Smtp rule Id - [DataMember(Name="smtpId", EmitDefaultValue=false)] - public int? SmtpId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailOutDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" SenderId: ").Append(SenderId).Append("\n"); - sb.Append(" MessageId: ").Append(MessageId).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" RetryCount: ").Append(RetryCount).Append("\n"); - sb.Append(" SmtpId: ").Append(SmtpId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailOutDTO); - } - - /// - /// Returns true if MailOutDTO instances are equal - /// - /// Instance of MailOutDTO to be compared - /// Boolean - public bool Equals(MailOutDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.SenderId == input.SenderId || - (this.SenderId != null && - this.SenderId.Equals(input.SenderId)) - ) && - ( - this.MessageId == input.MessageId || - (this.MessageId != null && - this.MessageId.Equals(input.MessageId)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && - ( - this.RetryCount == input.RetryCount || - (this.RetryCount != null && - this.RetryCount.Equals(input.RetryCount)) - ) && - ( - this.SmtpId == input.SmtpId || - (this.SmtpId != null && - this.SmtpId.Equals(input.SmtpId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.SenderId != null) - hashCode = hashCode * 59 + this.SenderId.GetHashCode(); - if (this.MessageId != null) - hashCode = hashCode * 59 + this.MessageId.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.RetryCount != null) - hashCode = hashCode * 59 + this.RetryCount.GetHashCode(); - if (this.SmtpId != null) - hashCode = hashCode * 59 + this.SmtpId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailOutInsertRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailOutInsertRequestDTO.cs deleted file mode 100644 index 43f6d1f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailOutInsertRequestDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class that represents a new mail insert request - /// - [DataContract] - public partial class MailOutInsertRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Alias for Recipient. - /// Mail of Recipient. - /// Mail subject. - /// Mail Body. - /// Is mail Html. - /// Attachments cache ids (refer to cache insert for save). - public MailOutInsertRequestDTO(string recipientAlias = default(string), string recipientMail = default(string), string subject = default(string), string body = default(string), bool? isHtmlMail = default(bool?), List attachmentsCahceIds = default(List)) - { - this.RecipientAlias = recipientAlias; - this.RecipientMail = recipientMail; - this.Subject = subject; - this.Body = body; - this.IsHtmlMail = isHtmlMail; - this.AttachmentsCahceIds = attachmentsCahceIds; - } - - /// - /// Alias for Recipient - /// - /// Alias for Recipient - [DataMember(Name="recipientAlias", EmitDefaultValue=false)] - public string RecipientAlias { get; set; } - - /// - /// Mail of Recipient - /// - /// Mail of Recipient - [DataMember(Name="recipientMail", EmitDefaultValue=false)] - public string RecipientMail { get; set; } - - /// - /// Mail subject - /// - /// Mail subject - [DataMember(Name="subject", EmitDefaultValue=false)] - public string Subject { get; set; } - - /// - /// Mail Body - /// - /// Mail Body - [DataMember(Name="body", EmitDefaultValue=false)] - public string Body { get; set; } - - /// - /// Is mail Html - /// - /// Is mail Html - [DataMember(Name="isHtmlMail", EmitDefaultValue=false)] - public bool? IsHtmlMail { get; set; } - - /// - /// Attachments cache ids (refer to cache insert for save) - /// - /// Attachments cache ids (refer to cache insert for save) - [DataMember(Name="attachmentsCahceIds", EmitDefaultValue=false)] - public List AttachmentsCahceIds { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailOutInsertRequestDTO {\n"); - sb.Append(" RecipientAlias: ").Append(RecipientAlias).Append("\n"); - sb.Append(" RecipientMail: ").Append(RecipientMail).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" Body: ").Append(Body).Append("\n"); - sb.Append(" IsHtmlMail: ").Append(IsHtmlMail).Append("\n"); - sb.Append(" AttachmentsCahceIds: ").Append(AttachmentsCahceIds).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailOutInsertRequestDTO); - } - - /// - /// Returns true if MailOutInsertRequestDTO instances are equal - /// - /// Instance of MailOutInsertRequestDTO to be compared - /// Boolean - public bool Equals(MailOutInsertRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.RecipientAlias == input.RecipientAlias || - (this.RecipientAlias != null && - this.RecipientAlias.Equals(input.RecipientAlias)) - ) && - ( - this.RecipientMail == input.RecipientMail || - (this.RecipientMail != null && - this.RecipientMail.Equals(input.RecipientMail)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.Body == input.Body || - (this.Body != null && - this.Body.Equals(input.Body)) - ) && - ( - this.IsHtmlMail == input.IsHtmlMail || - (this.IsHtmlMail != null && - this.IsHtmlMail.Equals(input.IsHtmlMail)) - ) && - ( - this.AttachmentsCahceIds == input.AttachmentsCahceIds || - this.AttachmentsCahceIds != null && - this.AttachmentsCahceIds.SequenceEqual(input.AttachmentsCahceIds) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.RecipientAlias != null) - hashCode = hashCode * 59 + this.RecipientAlias.GetHashCode(); - if (this.RecipientMail != null) - hashCode = hashCode * 59 + this.RecipientMail.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.Body != null) - hashCode = hashCode * 59 + this.Body.GetHashCode(); - if (this.IsHtmlMail != null) - hashCode = hashCode * 59 + this.IsHtmlMail.GetHashCode(); - if (this.AttachmentsCahceIds != null) - hashCode = hashCode * 59 + this.AttachmentsCahceIds.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailPluginConfigurationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailPluginConfigurationDTO.cs deleted file mode 100644 index 72e742d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailPluginConfigurationDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Configuration parameters for mail plugin - /// - [DataContract] - public partial class MailPluginConfigurationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Incoming mail is enable. - /// Internal outcoming mail is enabled. - /// External outcoming mail is enabled. - /// Use unicode format when saving emails. - /// Incoming sender white list. If empty, all senders are allowed. - public MailPluginConfigurationDTO(bool? incomingMail = default(bool?), bool? internalOutcomingMail = default(bool?), bool? externalOutcomingMail = default(bool?), bool? useUnicode = default(bool?), List incomingSenderWhiteList = default(List)) - { - this.IncomingMail = incomingMail; - this.InternalOutcomingMail = internalOutcomingMail; - this.ExternalOutcomingMail = externalOutcomingMail; - this.UseUnicode = useUnicode; - this.IncomingSenderWhiteList = incomingSenderWhiteList; - } - - /// - /// Incoming mail is enable - /// - /// Incoming mail is enable - [DataMember(Name="incomingMail", EmitDefaultValue=false)] - public bool? IncomingMail { get; set; } - - /// - /// Internal outcoming mail is enabled - /// - /// Internal outcoming mail is enabled - [DataMember(Name="internalOutcomingMail", EmitDefaultValue=false)] - public bool? InternalOutcomingMail { get; set; } - - /// - /// External outcoming mail is enabled - /// - /// External outcoming mail is enabled - [DataMember(Name="externalOutcomingMail", EmitDefaultValue=false)] - public bool? ExternalOutcomingMail { get; set; } - - /// - /// Use unicode format when saving emails - /// - /// Use unicode format when saving emails - [DataMember(Name="useUnicode", EmitDefaultValue=false)] - public bool? UseUnicode { get; set; } - - /// - /// Incoming sender white list. If empty, all senders are allowed - /// - /// Incoming sender white list. If empty, all senders are allowed - [DataMember(Name="incomingSenderWhiteList", EmitDefaultValue=false)] - public List IncomingSenderWhiteList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailPluginConfigurationDTO {\n"); - sb.Append(" IncomingMail: ").Append(IncomingMail).Append("\n"); - sb.Append(" InternalOutcomingMail: ").Append(InternalOutcomingMail).Append("\n"); - sb.Append(" ExternalOutcomingMail: ").Append(ExternalOutcomingMail).Append("\n"); - sb.Append(" UseUnicode: ").Append(UseUnicode).Append("\n"); - sb.Append(" IncomingSenderWhiteList: ").Append(IncomingSenderWhiteList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailPluginConfigurationDTO); - } - - /// - /// Returns true if MailPluginConfigurationDTO instances are equal - /// - /// Instance of MailPluginConfigurationDTO to be compared - /// Boolean - public bool Equals(MailPluginConfigurationDTO input) - { - if (input == null) - return false; - - return - ( - this.IncomingMail == input.IncomingMail || - (this.IncomingMail != null && - this.IncomingMail.Equals(input.IncomingMail)) - ) && - ( - this.InternalOutcomingMail == input.InternalOutcomingMail || - (this.InternalOutcomingMail != null && - this.InternalOutcomingMail.Equals(input.InternalOutcomingMail)) - ) && - ( - this.ExternalOutcomingMail == input.ExternalOutcomingMail || - (this.ExternalOutcomingMail != null && - this.ExternalOutcomingMail.Equals(input.ExternalOutcomingMail)) - ) && - ( - this.UseUnicode == input.UseUnicode || - (this.UseUnicode != null && - this.UseUnicode.Equals(input.UseUnicode)) - ) && - ( - this.IncomingSenderWhiteList == input.IncomingSenderWhiteList || - this.IncomingSenderWhiteList != null && - this.IncomingSenderWhiteList.SequenceEqual(input.IncomingSenderWhiteList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IncomingMail != null) - hashCode = hashCode * 59 + this.IncomingMail.GetHashCode(); - if (this.InternalOutcomingMail != null) - hashCode = hashCode * 59 + this.InternalOutcomingMail.GetHashCode(); - if (this.ExternalOutcomingMail != null) - hashCode = hashCode * 59 + this.ExternalOutcomingMail.GetHashCode(); - if (this.UseUnicode != null) - hashCode = hashCode * 59 + this.UseUnicode.GetHashCode(); - if (this.IncomingSenderWhiteList != null) - hashCode = hashCode * 59 + this.IncomingSenderWhiteList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MailServerSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MailServerSettingsDTO.cs deleted file mode 100644 index 03be244..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MailServerSettingsDTO.cs +++ /dev/null @@ -1,329 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for mail settings - /// - [DataContract] - public partial class MailServerSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Server address. - /// Username. - /// Password. - /// Port. - /// Possible values: 0: None 1: TLS 2: SSL . - /// Possible values: 0: Imap 1: Smtp 2: Pop3 . - /// Connection timeout. - /// The mail account id. - /// Possible values: 0: Basic 1: Microsoft 2: Google . - /// The tenant ID. - /// The client ID. - /// The client Secret. - /// The authorization response. - public MailServerSettingsDTO(string server = default(string), string username = default(string), string password = default(string), int? port = default(int?), int? securityProtocol = default(int?), int? type = default(int?), int? timeoutConnect = default(int?), int? mailAccountId = default(int?), int? authenticationMode = default(int?), string tenantId = default(string), string clientId = default(string), string clientSecret = default(string), string authorizationResponse = default(string)) - { - this.Server = server; - this.Username = username; - this.Password = password; - this.Port = port; - this.SecurityProtocol = securityProtocol; - this.Type = type; - this.TimeoutConnect = timeoutConnect; - this.MailAccountId = mailAccountId; - this.AuthenticationMode = authenticationMode; - this.TenantId = tenantId; - this.ClientId = clientId; - this.ClientSecret = clientSecret; - this.AuthorizationResponse = authorizationResponse; - } - - /// - /// Server address - /// - /// Server address - [DataMember(Name="server", EmitDefaultValue=false)] - public string Server { get; set; } - - /// - /// Username - /// - /// Username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Port - /// - /// Port - [DataMember(Name="port", EmitDefaultValue=false)] - public int? Port { get; set; } - - /// - /// Possible values: 0: None 1: TLS 2: SSL - /// - /// Possible values: 0: None 1: TLS 2: SSL - [DataMember(Name="securityProtocol", EmitDefaultValue=false)] - public int? SecurityProtocol { get; set; } - - /// - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Connection timeout - /// - /// Connection timeout - [DataMember(Name="timeoutConnect", EmitDefaultValue=false)] - public int? TimeoutConnect { get; set; } - - /// - /// The mail account id - /// - /// The mail account id - [DataMember(Name="mailAccountId", EmitDefaultValue=false)] - public int? MailAccountId { get; set; } - - /// - /// Possible values: 0: Basic 1: Microsoft 2: Google - /// - /// Possible values: 0: Basic 1: Microsoft 2: Google - [DataMember(Name="authenticationMode", EmitDefaultValue=false)] - public int? AuthenticationMode { get; set; } - - /// - /// The tenant ID - /// - /// The tenant ID - [DataMember(Name="tenantId", EmitDefaultValue=false)] - public string TenantId { get; set; } - - /// - /// The client ID - /// - /// The client ID - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// The client Secret - /// - /// The client Secret - [DataMember(Name="clientSecret", EmitDefaultValue=false)] - public string ClientSecret { get; set; } - - /// - /// The authorization response - /// - /// The authorization response - [DataMember(Name="authorizationResponse", EmitDefaultValue=false)] - public string AuthorizationResponse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailServerSettingsDTO {\n"); - sb.Append(" Server: ").Append(Server).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Port: ").Append(Port).Append("\n"); - sb.Append(" SecurityProtocol: ").Append(SecurityProtocol).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" TimeoutConnect: ").Append(TimeoutConnect).Append("\n"); - sb.Append(" MailAccountId: ").Append(MailAccountId).Append("\n"); - sb.Append(" AuthenticationMode: ").Append(AuthenticationMode).Append("\n"); - sb.Append(" TenantId: ").Append(TenantId).Append("\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n"); - sb.Append(" AuthorizationResponse: ").Append(AuthorizationResponse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailServerSettingsDTO); - } - - /// - /// Returns true if MailServerSettingsDTO instances are equal - /// - /// Instance of MailServerSettingsDTO to be compared - /// Boolean - public bool Equals(MailServerSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.Server == input.Server || - (this.Server != null && - this.Server.Equals(input.Server)) - ) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.Port == input.Port || - (this.Port != null && - this.Port.Equals(input.Port)) - ) && - ( - this.SecurityProtocol == input.SecurityProtocol || - (this.SecurityProtocol != null && - this.SecurityProtocol.Equals(input.SecurityProtocol)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.TimeoutConnect == input.TimeoutConnect || - (this.TimeoutConnect != null && - this.TimeoutConnect.Equals(input.TimeoutConnect)) - ) && - ( - this.MailAccountId == input.MailAccountId || - (this.MailAccountId != null && - this.MailAccountId.Equals(input.MailAccountId)) - ) && - ( - this.AuthenticationMode == input.AuthenticationMode || - (this.AuthenticationMode != null && - this.AuthenticationMode.Equals(input.AuthenticationMode)) - ) && - ( - this.TenantId == input.TenantId || - (this.TenantId != null && - this.TenantId.Equals(input.TenantId)) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.ClientSecret == input.ClientSecret || - (this.ClientSecret != null && - this.ClientSecret.Equals(input.ClientSecret)) - ) && - ( - this.AuthorizationResponse == input.AuthorizationResponse || - (this.AuthorizationResponse != null && - this.AuthorizationResponse.Equals(input.AuthorizationResponse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Server != null) - hashCode = hashCode * 59 + this.Server.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Port != null) - hashCode = hashCode * 59 + this.Port.GetHashCode(); - if (this.SecurityProtocol != null) - hashCode = hashCode * 59 + this.SecurityProtocol.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.TimeoutConnect != null) - hashCode = hashCode * 59 + this.TimeoutConnect.GetHashCode(); - if (this.MailAccountId != null) - hashCode = hashCode * 59 + this.MailAccountId.GetHashCode(); - if (this.AuthenticationMode != null) - hashCode = hashCode * 59 + this.AuthenticationMode.GetHashCode(); - if (this.TenantId != null) - hashCode = hashCode * 59 + this.TenantId.GetHashCode(); - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.ClientSecret != null) - hashCode = hashCode * 59 + this.ClientSecret.GetHashCode(); - if (this.AuthorizationResponse != null) - hashCode = hashCode * 59 + this.AuthorizationResponse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MaskClassOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MaskClassOptionsDTO.cs deleted file mode 100644 index 65104e7..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MaskClassOptionsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the permissions on the document types in the mask - /// - [DataContract] - public partial class MaskClassOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document Type Identifier. - /// Deny. - public MaskClassOptionsDTO(int? documentTypeId = default(int?), bool? deny = default(bool?)) - { - this.DocumentTypeId = documentTypeId; - this.Deny = deny; - } - - /// - /// Document Type Identifier - /// - /// Document Type Identifier - [DataMember(Name="documentTypeId", EmitDefaultValue=false)] - public int? DocumentTypeId { get; set; } - - /// - /// Deny - /// - /// Deny - [DataMember(Name="deny", EmitDefaultValue=false)] - public bool? Deny { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MaskClassOptionsDTO {\n"); - sb.Append(" DocumentTypeId: ").Append(DocumentTypeId).Append("\n"); - sb.Append(" Deny: ").Append(Deny).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MaskClassOptionsDTO); - } - - /// - /// Returns true if MaskClassOptionsDTO instances are equal - /// - /// Instance of MaskClassOptionsDTO to be compared - /// Boolean - public bool Equals(MaskClassOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.DocumentTypeId == input.DocumentTypeId || - (this.DocumentTypeId != null && - this.DocumentTypeId.Equals(input.DocumentTypeId)) - ) && - ( - this.Deny == input.Deny || - (this.Deny != null && - this.Deny.Equals(input.Deny)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentTypeId != null) - hashCode = hashCode * 59 + this.DocumentTypeId.GetHashCode(); - if (this.Deny != null) - hashCode = hashCode * 59 + this.Deny.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MaskCloneOptionsDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/MaskCloneOptionsDto.cs deleted file mode 100644 index f8e96cd..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MaskCloneOptionsDto.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of options used to clone a mask - /// - [DataContract] - public partial class MaskCloneOptionsDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Clone the Predefined Profile. - /// Predefined Profile Name. - /// Name. - /// Parent Identifier. - public MaskCloneOptionsDto(bool? clonePredefinedProfile = default(bool?), string predefinedProfileName = default(string), string maskName = default(string), string originalMaskId = default(string)) - { - this.ClonePredefinedProfile = clonePredefinedProfile; - this.PredefinedProfileName = predefinedProfileName; - this.MaskName = maskName; - this.OriginalMaskId = originalMaskId; - } - - /// - /// Clone the Predefined Profile - /// - /// Clone the Predefined Profile - [DataMember(Name="clonePredefinedProfile", EmitDefaultValue=false)] - public bool? ClonePredefinedProfile { get; set; } - - /// - /// Predefined Profile Name - /// - /// Predefined Profile Name - [DataMember(Name="predefinedProfileName", EmitDefaultValue=false)] - public string PredefinedProfileName { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="maskName", EmitDefaultValue=false)] - public string MaskName { get; set; } - - /// - /// Parent Identifier - /// - /// Parent Identifier - [DataMember(Name="originalMaskId", EmitDefaultValue=false)] - public string OriginalMaskId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MaskCloneOptionsDto {\n"); - sb.Append(" ClonePredefinedProfile: ").Append(ClonePredefinedProfile).Append("\n"); - sb.Append(" PredefinedProfileName: ").Append(PredefinedProfileName).Append("\n"); - sb.Append(" MaskName: ").Append(MaskName).Append("\n"); - sb.Append(" OriginalMaskId: ").Append(OriginalMaskId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MaskCloneOptionsDto); - } - - /// - /// Returns true if MaskCloneOptionsDto instances are equal - /// - /// Instance of MaskCloneOptionsDto to be compared - /// Boolean - public bool Equals(MaskCloneOptionsDto input) - { - if (input == null) - return false; - - return - ( - this.ClonePredefinedProfile == input.ClonePredefinedProfile || - (this.ClonePredefinedProfile != null && - this.ClonePredefinedProfile.Equals(input.ClonePredefinedProfile)) - ) && - ( - this.PredefinedProfileName == input.PredefinedProfileName || - (this.PredefinedProfileName != null && - this.PredefinedProfileName.Equals(input.PredefinedProfileName)) - ) && - ( - this.MaskName == input.MaskName || - (this.MaskName != null && - this.MaskName.Equals(input.MaskName)) - ) && - ( - this.OriginalMaskId == input.OriginalMaskId || - (this.OriginalMaskId != null && - this.OriginalMaskId.Equals(input.OriginalMaskId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClonePredefinedProfile != null) - hashCode = hashCode * 59 + this.ClonePredefinedProfile.GetHashCode(); - if (this.PredefinedProfileName != null) - hashCode = hashCode * 59 + this.PredefinedProfileName.GetHashCode(); - if (this.MaskName != null) - hashCode = hashCode * 59 + this.MaskName.GetHashCode(); - if (this.OriginalMaskId != null) - hashCode = hashCode * 59 + this.OriginalMaskId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MaskDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MaskDTO.cs deleted file mode 100644 index 5b77955..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MaskDTO.cs +++ /dev/null @@ -1,465 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of mask to archive documents - /// - [DataContract] - public partial class MaskDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// Description. - /// Predefined Profile Identifier. - /// Author Identifier. - /// External Identifier. - /// Root. - /// Possible values: 0: Nothing 1: Barcode 2: Archiviazione . - /// Possible values: 0: None 1: OnlyNever 2: OnlyOptionally 3: NeverOrOptionally 4: OnlyAlways 5: AlwaysOrNever 6: AlwaysOrOptionally 7: All . - /// Show Additional. - /// Possible values: 0: UserMask 1: SystemMask . - /// Show Groups. - /// Author Complete Name. - /// Whitelist Extension. - /// Blacklist Extension. - /// File size minimum value. - /// File size maximum value. - /// Predefined Profile associated with the mask. - /// Details. - /// Options on document type. - /// This option indicates if the mask use new features for ARXivar Next Portal. - public MaskDTO(string id = default(string), string maskName = default(string), string maskDescription = default(string), int? predefinedProfileId = default(int?), int? user = default(int?), string externalId = default(string), bool? isRoot = default(bool?), int? type = default(int?), int? paMode = default(int?), bool? showAdditional = default(bool?), int? kind = default(int?), bool? showGroups = default(bool?), string userCompleteName = default(string), List whitelistFileExtensions = default(List), List blacklistFileExtensions = default(List), long? minFileSize = default(long?), long? maxFileSize = default(long?), PredefinedProfileDTO predefinedProfile = default(PredefinedProfileDTO), List maskDetails = default(List), List maskClassOptions = default(List), bool? useAdvancedTool = default(bool?)) - { - this.Id = id; - this.MaskName = maskName; - this.MaskDescription = maskDescription; - this.PredefinedProfileId = predefinedProfileId; - this.User = user; - this.ExternalId = externalId; - this.IsRoot = isRoot; - this.Type = type; - this.PaMode = paMode; - this.ShowAdditional = showAdditional; - this.Kind = kind; - this.ShowGroups = showGroups; - this.UserCompleteName = userCompleteName; - this.WhitelistFileExtensions = whitelistFileExtensions; - this.BlacklistFileExtensions = blacklistFileExtensions; - this.MinFileSize = minFileSize; - this.MaxFileSize = maxFileSize; - this.PredefinedProfile = predefinedProfile; - this.MaskDetails = maskDetails; - this.MaskClassOptions = maskClassOptions; - this.UseAdvancedTool = useAdvancedTool; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="maskName", EmitDefaultValue=false)] - public string MaskName { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="maskDescription", EmitDefaultValue=false)] - public string MaskDescription { get; set; } - - /// - /// Predefined Profile Identifier - /// - /// Predefined Profile Identifier - [DataMember(Name="predefinedProfileId", EmitDefaultValue=false)] - public int? PredefinedProfileId { get; set; } - - /// - /// Author Identifier - /// - /// Author Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Root - /// - /// Root - [DataMember(Name="isRoot", EmitDefaultValue=false)] - public bool? IsRoot { get; set; } - - /// - /// Possible values: 0: Nothing 1: Barcode 2: Archiviazione - /// - /// Possible values: 0: Nothing 1: Barcode 2: Archiviazione - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Possible values: 0: None 1: OnlyNever 2: OnlyOptionally 3: NeverOrOptionally 4: OnlyAlways 5: AlwaysOrNever 6: AlwaysOrOptionally 7: All - /// - /// Possible values: 0: None 1: OnlyNever 2: OnlyOptionally 3: NeverOrOptionally 4: OnlyAlways 5: AlwaysOrNever 6: AlwaysOrOptionally 7: All - [DataMember(Name="paMode", EmitDefaultValue=false)] - public int? PaMode { get; set; } - - /// - /// Show Additional - /// - /// Show Additional - [DataMember(Name="showAdditional", EmitDefaultValue=false)] - public bool? ShowAdditional { get; set; } - - /// - /// Possible values: 0: UserMask 1: SystemMask - /// - /// Possible values: 0: UserMask 1: SystemMask - [DataMember(Name="kind", EmitDefaultValue=false)] - public int? Kind { get; set; } - - /// - /// Show Groups - /// - /// Show Groups - [DataMember(Name="showGroups", EmitDefaultValue=false)] - public bool? ShowGroups { get; set; } - - /// - /// Author Complete Name - /// - /// Author Complete Name - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Whitelist Extension - /// - /// Whitelist Extension - [DataMember(Name="whitelistFileExtensions", EmitDefaultValue=false)] - public List WhitelistFileExtensions { get; set; } - - /// - /// Blacklist Extension - /// - /// Blacklist Extension - [DataMember(Name="blacklistFileExtensions", EmitDefaultValue=false)] - public List BlacklistFileExtensions { get; set; } - - /// - /// File size minimum value - /// - /// File size minimum value - [DataMember(Name="minFileSize", EmitDefaultValue=false)] - public long? MinFileSize { get; set; } - - /// - /// File size maximum value - /// - /// File size maximum value - [DataMember(Name="maxFileSize", EmitDefaultValue=false)] - public long? MaxFileSize { get; set; } - - /// - /// Predefined Profile associated with the mask - /// - /// Predefined Profile associated with the mask - [DataMember(Name="predefinedProfile", EmitDefaultValue=false)] - public PredefinedProfileDTO PredefinedProfile { get; set; } - - /// - /// Details - /// - /// Details - [DataMember(Name="maskDetails", EmitDefaultValue=false)] - public List MaskDetails { get; set; } - - /// - /// Options on document type - /// - /// Options on document type - [DataMember(Name="maskClassOptions", EmitDefaultValue=false)] - public List MaskClassOptions { get; set; } - - /// - /// This option indicates if the mask use new features for ARXivar Next Portal - /// - /// This option indicates if the mask use new features for ARXivar Next Portal - [DataMember(Name="useAdvancedTool", EmitDefaultValue=false)] - public bool? UseAdvancedTool { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MaskDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" MaskName: ").Append(MaskName).Append("\n"); - sb.Append(" MaskDescription: ").Append(MaskDescription).Append("\n"); - sb.Append(" PredefinedProfileId: ").Append(PredefinedProfileId).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" IsRoot: ").Append(IsRoot).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" PaMode: ").Append(PaMode).Append("\n"); - sb.Append(" ShowAdditional: ").Append(ShowAdditional).Append("\n"); - sb.Append(" Kind: ").Append(Kind).Append("\n"); - sb.Append(" ShowGroups: ").Append(ShowGroups).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" WhitelistFileExtensions: ").Append(WhitelistFileExtensions).Append("\n"); - sb.Append(" BlacklistFileExtensions: ").Append(BlacklistFileExtensions).Append("\n"); - sb.Append(" MinFileSize: ").Append(MinFileSize).Append("\n"); - sb.Append(" MaxFileSize: ").Append(MaxFileSize).Append("\n"); - sb.Append(" PredefinedProfile: ").Append(PredefinedProfile).Append("\n"); - sb.Append(" MaskDetails: ").Append(MaskDetails).Append("\n"); - sb.Append(" MaskClassOptions: ").Append(MaskClassOptions).Append("\n"); - sb.Append(" UseAdvancedTool: ").Append(UseAdvancedTool).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MaskDTO); - } - - /// - /// Returns true if MaskDTO instances are equal - /// - /// Instance of MaskDTO to be compared - /// Boolean - public bool Equals(MaskDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.MaskName == input.MaskName || - (this.MaskName != null && - this.MaskName.Equals(input.MaskName)) - ) && - ( - this.MaskDescription == input.MaskDescription || - (this.MaskDescription != null && - this.MaskDescription.Equals(input.MaskDescription)) - ) && - ( - this.PredefinedProfileId == input.PredefinedProfileId || - (this.PredefinedProfileId != null && - this.PredefinedProfileId.Equals(input.PredefinedProfileId)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.IsRoot == input.IsRoot || - (this.IsRoot != null && - this.IsRoot.Equals(input.IsRoot)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.PaMode == input.PaMode || - (this.PaMode != null && - this.PaMode.Equals(input.PaMode)) - ) && - ( - this.ShowAdditional == input.ShowAdditional || - (this.ShowAdditional != null && - this.ShowAdditional.Equals(input.ShowAdditional)) - ) && - ( - this.Kind == input.Kind || - (this.Kind != null && - this.Kind.Equals(input.Kind)) - ) && - ( - this.ShowGroups == input.ShowGroups || - (this.ShowGroups != null && - this.ShowGroups.Equals(input.ShowGroups)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.WhitelistFileExtensions == input.WhitelistFileExtensions || - this.WhitelistFileExtensions != null && - this.WhitelistFileExtensions.SequenceEqual(input.WhitelistFileExtensions) - ) && - ( - this.BlacklistFileExtensions == input.BlacklistFileExtensions || - this.BlacklistFileExtensions != null && - this.BlacklistFileExtensions.SequenceEqual(input.BlacklistFileExtensions) - ) && - ( - this.MinFileSize == input.MinFileSize || - (this.MinFileSize != null && - this.MinFileSize.Equals(input.MinFileSize)) - ) && - ( - this.MaxFileSize == input.MaxFileSize || - (this.MaxFileSize != null && - this.MaxFileSize.Equals(input.MaxFileSize)) - ) && - ( - this.PredefinedProfile == input.PredefinedProfile || - (this.PredefinedProfile != null && - this.PredefinedProfile.Equals(input.PredefinedProfile)) - ) && - ( - this.MaskDetails == input.MaskDetails || - this.MaskDetails != null && - this.MaskDetails.SequenceEqual(input.MaskDetails) - ) && - ( - this.MaskClassOptions == input.MaskClassOptions || - this.MaskClassOptions != null && - this.MaskClassOptions.SequenceEqual(input.MaskClassOptions) - ) && - ( - this.UseAdvancedTool == input.UseAdvancedTool || - (this.UseAdvancedTool != null && - this.UseAdvancedTool.Equals(input.UseAdvancedTool)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.MaskName != null) - hashCode = hashCode * 59 + this.MaskName.GetHashCode(); - if (this.MaskDescription != null) - hashCode = hashCode * 59 + this.MaskDescription.GetHashCode(); - if (this.PredefinedProfileId != null) - hashCode = hashCode * 59 + this.PredefinedProfileId.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.IsRoot != null) - hashCode = hashCode * 59 + this.IsRoot.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.PaMode != null) - hashCode = hashCode * 59 + this.PaMode.GetHashCode(); - if (this.ShowAdditional != null) - hashCode = hashCode * 59 + this.ShowAdditional.GetHashCode(); - if (this.Kind != null) - hashCode = hashCode * 59 + this.Kind.GetHashCode(); - if (this.ShowGroups != null) - hashCode = hashCode * 59 + this.ShowGroups.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.WhitelistFileExtensions != null) - hashCode = hashCode * 59 + this.WhitelistFileExtensions.GetHashCode(); - if (this.BlacklistFileExtensions != null) - hashCode = hashCode * 59 + this.BlacklistFileExtensions.GetHashCode(); - if (this.MinFileSize != null) - hashCode = hashCode * 59 + this.MinFileSize.GetHashCode(); - if (this.MaxFileSize != null) - hashCode = hashCode * 59 + this.MaxFileSize.GetHashCode(); - if (this.PredefinedProfile != null) - hashCode = hashCode * 59 + this.PredefinedProfile.GetHashCode(); - if (this.MaskDetails != null) - hashCode = hashCode * 59 + this.MaskDetails.GetHashCode(); - if (this.MaskClassOptions != null) - hashCode = hashCode * 59 + this.MaskClassOptions.GetHashCode(); - if (this.UseAdvancedTool != null) - hashCode = hashCode * 59 + this.UseAdvancedTool.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MaskDetailDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MaskDetailDTO.cs deleted file mode 100644 index f1adf08..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MaskDetailDTO.cs +++ /dev/null @@ -1,346 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// MaskDetailDTO - /// - [DataContract] - public partial class MaskDetailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Detail Identifier. - /// Mask Identifier. - /// Name of the field.. - /// Label. - /// Mask detail order. - /// Read Only. - /// Required. - /// Possible values: 0: NonImpostato 1: From 2: To 3: Cc 4: Aoo 5: DocumentType 6: DataDoc 7: Numero 8: Oggetto 9: Origine 10: Stato 11: Pratiche 12: Scadenza 13: Importante 14: AbilitaWeb 15: AvviaWorkFlow 16: InviaPerFax 17: InviaPerMail 18: AllegaATaskAttivo 19: InserisciInAssociazione 20: InserisciInFascicolo 21: InserisciInRelazioneManuale 22: GestisciRevisioni 23: Note 24: Allegati 25: Aggiuntivo 26: File 27: Scanner 28: Barcode 29: SicurezzaSingoloDocumento 30: ExternalId 31: AllegaMemo 32: Senders 33: AvviaCollaboration 34: ScansioneImmediata 35: NegaCommuta 36: From_Cap 37: From_Cell 38: From_Codfis 39: From_Codice 40: From_Contatti 41: From_Email 42: From_Fax 43: From_Faxnome 44: From_Indirizzo 45: From_Localita 46: From_Mail 47: From_Mansione 48: From_Nazione 49: From_Partiva 50: From_Provincia 51: From_Reparto 52: From_Riferimento 53: From_Tel 54: From_Telnome 55: From_Ufficio 56: From_Valore 57: From_Abitazione 58: To_Cap 59: To_Cell 60: To_Codfis 61: To_Codice 62: To_Contatti 63: To_Email 64: To_Fax 65: To_Faxnome 66: To_Indirizzo 67: To_Localita 68: To_Mail 69: To_Mansione 70: To_Nazione 71: To_Partiva 72: To_Provincia 73: To_Reparto 74: To_Riferimento 75: To_Tel 76: To_Telnome 77: To_Ufficio 78: To_Valore 79: To_Abitazione 80: Cc_Cap 81: Cc_Cell 82: Cc_Codfis 83: Cc_Codice 84: Cc_Contatti 85: Cc_Email 86: Cc_Fax 87: Cc_Faxnome 88: Cc_Indirizzo 89: Cc_Localita 90: Cc_Mail 91: Cc_Mansione 92: Cc_Nazione 93: Cc_Partiva 94: Cc_Provincia 95: Cc_Reparto 96: Cc_Riferimento 97: Cc_Tel 98: Cc_Telnome 99: Cc_Ufficio 100: Cc_Valore 101: Cc_Abitazione 102: Senders_Cap 103: Senders_Cell 104: Senders_Codfis 105: Senders_Codice 106: Senders_Contatti 107: Senders_Email 108: Senders_Fax 109: Senders_Faxnome 110: Senders_Indirizzo 111: Senders_Localita 112: Senders_Mail 113: Senders_Mansione 114: Senders_Nazione 115: Senders_Partiva 116: Senders_Provincia 117: Senders_Reparto 118: Senders_Riferimento 119: Senders_Tel 120: Senders_Telnome 121: Senders_Ufficio 122: Senders_Valore 123: Senders_Abitazione 124: From_Priorita 125: To_Priorita 126: Cc_Priorita 127: Senders_Priorita 128: Instruction . - /// The visibility condition formula for this mask field. - /// The mandatory condition formula for this mask field. - /// The preferred address book for search contacts for this field. - /// Possible addressbook for selection for this field. - /// Translations for the field label. - /// Number of display columns for the field. - public MaskDetailDTO(string id = default(string), string maskId = default(string), string fieldName = default(string), string label = default(string), int? order = default(int?), bool? readOnly = default(bool?), bool? required = default(bool?), int? detailKind = default(int?), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), List translations = default(List), int? columns = default(int?)) - { - this.Id = id; - this.MaskId = maskId; - this.FieldName = fieldName; - this.Label = label; - this.Order = order; - this.ReadOnly = readOnly; - this.Required = required; - this.DetailKind = detailKind; - this.VisibilityCondition = visibilityCondition; - this.MandatoryCondition = mandatoryCondition; - this.AddressBookDefaultFilter = addressBookDefaultFilter; - this.EnabledAddressBook = enabledAddressBook; - this.Translations = translations; - this.Columns = columns; - } - - /// - /// Detail Identifier - /// - /// Detail Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Mask Identifier - /// - /// Mask Identifier - [DataMember(Name="maskId", EmitDefaultValue=false)] - public string MaskId { get; set; } - - /// - /// Name of the field. - /// - /// Name of the field. - [DataMember(Name="fieldName", EmitDefaultValue=false)] - public string FieldName { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Mask detail order - /// - /// Mask detail order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// Read Only - /// - /// Read Only - [DataMember(Name="readOnly", EmitDefaultValue=false)] - public bool? ReadOnly { get; set; } - - /// - /// Required - /// - /// Required - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Possible values: 0: NonImpostato 1: From 2: To 3: Cc 4: Aoo 5: DocumentType 6: DataDoc 7: Numero 8: Oggetto 9: Origine 10: Stato 11: Pratiche 12: Scadenza 13: Importante 14: AbilitaWeb 15: AvviaWorkFlow 16: InviaPerFax 17: InviaPerMail 18: AllegaATaskAttivo 19: InserisciInAssociazione 20: InserisciInFascicolo 21: InserisciInRelazioneManuale 22: GestisciRevisioni 23: Note 24: Allegati 25: Aggiuntivo 26: File 27: Scanner 28: Barcode 29: SicurezzaSingoloDocumento 30: ExternalId 31: AllegaMemo 32: Senders 33: AvviaCollaboration 34: ScansioneImmediata 35: NegaCommuta 36: From_Cap 37: From_Cell 38: From_Codfis 39: From_Codice 40: From_Contatti 41: From_Email 42: From_Fax 43: From_Faxnome 44: From_Indirizzo 45: From_Localita 46: From_Mail 47: From_Mansione 48: From_Nazione 49: From_Partiva 50: From_Provincia 51: From_Reparto 52: From_Riferimento 53: From_Tel 54: From_Telnome 55: From_Ufficio 56: From_Valore 57: From_Abitazione 58: To_Cap 59: To_Cell 60: To_Codfis 61: To_Codice 62: To_Contatti 63: To_Email 64: To_Fax 65: To_Faxnome 66: To_Indirizzo 67: To_Localita 68: To_Mail 69: To_Mansione 70: To_Nazione 71: To_Partiva 72: To_Provincia 73: To_Reparto 74: To_Riferimento 75: To_Tel 76: To_Telnome 77: To_Ufficio 78: To_Valore 79: To_Abitazione 80: Cc_Cap 81: Cc_Cell 82: Cc_Codfis 83: Cc_Codice 84: Cc_Contatti 85: Cc_Email 86: Cc_Fax 87: Cc_Faxnome 88: Cc_Indirizzo 89: Cc_Localita 90: Cc_Mail 91: Cc_Mansione 92: Cc_Nazione 93: Cc_Partiva 94: Cc_Provincia 95: Cc_Reparto 96: Cc_Riferimento 97: Cc_Tel 98: Cc_Telnome 99: Cc_Ufficio 100: Cc_Valore 101: Cc_Abitazione 102: Senders_Cap 103: Senders_Cell 104: Senders_Codfis 105: Senders_Codice 106: Senders_Contatti 107: Senders_Email 108: Senders_Fax 109: Senders_Faxnome 110: Senders_Indirizzo 111: Senders_Localita 112: Senders_Mail 113: Senders_Mansione 114: Senders_Nazione 115: Senders_Partiva 116: Senders_Provincia 117: Senders_Reparto 118: Senders_Riferimento 119: Senders_Tel 120: Senders_Telnome 121: Senders_Ufficio 122: Senders_Valore 123: Senders_Abitazione 124: From_Priorita 125: To_Priorita 126: Cc_Priorita 127: Senders_Priorita 128: Instruction - /// - /// Possible values: 0: NonImpostato 1: From 2: To 3: Cc 4: Aoo 5: DocumentType 6: DataDoc 7: Numero 8: Oggetto 9: Origine 10: Stato 11: Pratiche 12: Scadenza 13: Importante 14: AbilitaWeb 15: AvviaWorkFlow 16: InviaPerFax 17: InviaPerMail 18: AllegaATaskAttivo 19: InserisciInAssociazione 20: InserisciInFascicolo 21: InserisciInRelazioneManuale 22: GestisciRevisioni 23: Note 24: Allegati 25: Aggiuntivo 26: File 27: Scanner 28: Barcode 29: SicurezzaSingoloDocumento 30: ExternalId 31: AllegaMemo 32: Senders 33: AvviaCollaboration 34: ScansioneImmediata 35: NegaCommuta 36: From_Cap 37: From_Cell 38: From_Codfis 39: From_Codice 40: From_Contatti 41: From_Email 42: From_Fax 43: From_Faxnome 44: From_Indirizzo 45: From_Localita 46: From_Mail 47: From_Mansione 48: From_Nazione 49: From_Partiva 50: From_Provincia 51: From_Reparto 52: From_Riferimento 53: From_Tel 54: From_Telnome 55: From_Ufficio 56: From_Valore 57: From_Abitazione 58: To_Cap 59: To_Cell 60: To_Codfis 61: To_Codice 62: To_Contatti 63: To_Email 64: To_Fax 65: To_Faxnome 66: To_Indirizzo 67: To_Localita 68: To_Mail 69: To_Mansione 70: To_Nazione 71: To_Partiva 72: To_Provincia 73: To_Reparto 74: To_Riferimento 75: To_Tel 76: To_Telnome 77: To_Ufficio 78: To_Valore 79: To_Abitazione 80: Cc_Cap 81: Cc_Cell 82: Cc_Codfis 83: Cc_Codice 84: Cc_Contatti 85: Cc_Email 86: Cc_Fax 87: Cc_Faxnome 88: Cc_Indirizzo 89: Cc_Localita 90: Cc_Mail 91: Cc_Mansione 92: Cc_Nazione 93: Cc_Partiva 94: Cc_Provincia 95: Cc_Reparto 96: Cc_Riferimento 97: Cc_Tel 98: Cc_Telnome 99: Cc_Ufficio 100: Cc_Valore 101: Cc_Abitazione 102: Senders_Cap 103: Senders_Cell 104: Senders_Codfis 105: Senders_Codice 106: Senders_Contatti 107: Senders_Email 108: Senders_Fax 109: Senders_Faxnome 110: Senders_Indirizzo 111: Senders_Localita 112: Senders_Mail 113: Senders_Mansione 114: Senders_Nazione 115: Senders_Partiva 116: Senders_Provincia 117: Senders_Reparto 118: Senders_Riferimento 119: Senders_Tel 120: Senders_Telnome 121: Senders_Ufficio 122: Senders_Valore 123: Senders_Abitazione 124: From_Priorita 125: To_Priorita 126: Cc_Priorita 127: Senders_Priorita 128: Instruction - [DataMember(Name="detailKind", EmitDefaultValue=false)] - public int? DetailKind { get; set; } - - /// - /// The visibility condition formula for this mask field - /// - /// The visibility condition formula for this mask field - [DataMember(Name="visibilityCondition", EmitDefaultValue=false)] - public string VisibilityCondition { get; set; } - - /// - /// The mandatory condition formula for this mask field - /// - /// The mandatory condition formula for this mask field - [DataMember(Name="mandatoryCondition", EmitDefaultValue=false)] - public string MandatoryCondition { get; set; } - - /// - /// The preferred address book for search contacts for this field - /// - /// The preferred address book for search contacts for this field - [DataMember(Name="addressBookDefaultFilter", EmitDefaultValue=false)] - public int? AddressBookDefaultFilter { get; set; } - - /// - /// Possible addressbook for selection for this field - /// - /// Possible addressbook for selection for this field - [DataMember(Name="enabledAddressBook", EmitDefaultValue=false)] - public List EnabledAddressBook { get; set; } - - /// - /// Translations for the field label - /// - /// Translations for the field label - [DataMember(Name="translations", EmitDefaultValue=false)] - public List Translations { get; set; } - - /// - /// Number of display columns for the field - /// - /// Number of display columns for the field - [DataMember(Name="columns", EmitDefaultValue=false)] - public int? Columns { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MaskDetailDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" MaskId: ").Append(MaskId).Append("\n"); - sb.Append(" FieldName: ").Append(FieldName).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" ReadOnly: ").Append(ReadOnly).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" DetailKind: ").Append(DetailKind).Append("\n"); - sb.Append(" VisibilityCondition: ").Append(VisibilityCondition).Append("\n"); - sb.Append(" MandatoryCondition: ").Append(MandatoryCondition).Append("\n"); - sb.Append(" AddressBookDefaultFilter: ").Append(AddressBookDefaultFilter).Append("\n"); - sb.Append(" EnabledAddressBook: ").Append(EnabledAddressBook).Append("\n"); - sb.Append(" Translations: ").Append(Translations).Append("\n"); - sb.Append(" Columns: ").Append(Columns).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MaskDetailDTO); - } - - /// - /// Returns true if MaskDetailDTO instances are equal - /// - /// Instance of MaskDetailDTO to be compared - /// Boolean - public bool Equals(MaskDetailDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.MaskId == input.MaskId || - (this.MaskId != null && - this.MaskId.Equals(input.MaskId)) - ) && - ( - this.FieldName == input.FieldName || - (this.FieldName != null && - this.FieldName.Equals(input.FieldName)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.ReadOnly == input.ReadOnly || - (this.ReadOnly != null && - this.ReadOnly.Equals(input.ReadOnly)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.DetailKind == input.DetailKind || - (this.DetailKind != null && - this.DetailKind.Equals(input.DetailKind)) - ) && - ( - this.VisibilityCondition == input.VisibilityCondition || - (this.VisibilityCondition != null && - this.VisibilityCondition.Equals(input.VisibilityCondition)) - ) && - ( - this.MandatoryCondition == input.MandatoryCondition || - (this.MandatoryCondition != null && - this.MandatoryCondition.Equals(input.MandatoryCondition)) - ) && - ( - this.AddressBookDefaultFilter == input.AddressBookDefaultFilter || - (this.AddressBookDefaultFilter != null && - this.AddressBookDefaultFilter.Equals(input.AddressBookDefaultFilter)) - ) && - ( - this.EnabledAddressBook == input.EnabledAddressBook || - this.EnabledAddressBook != null && - this.EnabledAddressBook.SequenceEqual(input.EnabledAddressBook) - ) && - ( - this.Translations == input.Translations || - this.Translations != null && - this.Translations.SequenceEqual(input.Translations) - ) && - ( - this.Columns == input.Columns || - (this.Columns != null && - this.Columns.Equals(input.Columns)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.MaskId != null) - hashCode = hashCode * 59 + this.MaskId.GetHashCode(); - if (this.FieldName != null) - hashCode = hashCode * 59 + this.FieldName.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - if (this.ReadOnly != null) - hashCode = hashCode * 59 + this.ReadOnly.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.DetailKind != null) - hashCode = hashCode * 59 + this.DetailKind.GetHashCode(); - if (this.VisibilityCondition != null) - hashCode = hashCode * 59 + this.VisibilityCondition.GetHashCode(); - if (this.MandatoryCondition != null) - hashCode = hashCode * 59 + this.MandatoryCondition.GetHashCode(); - if (this.AddressBookDefaultFilter != null) - hashCode = hashCode * 59 + this.AddressBookDefaultFilter.GetHashCode(); - if (this.EnabledAddressBook != null) - hashCode = hashCode * 59 + this.EnabledAddressBook.GetHashCode(); - if (this.Translations != null) - hashCode = hashCode * 59 + this.Translations.GetHashCode(); - if (this.Columns != null) - hashCode = hashCode * 59 + this.Columns.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MaskDetailTranslationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MaskDetailTranslationDTO.cs deleted file mode 100644 index 65e3fe0..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MaskDetailTranslationDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// MaskDetailTranslationDTO - /// - [DataContract] - public partial class MaskDetailTranslationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Arxivar lang code. - /// Culture code. - /// Translation value. - public MaskDetailTranslationDTO(string langCode = default(string), string cultureCode = default(string), string value = default(string)) - { - this.LangCode = langCode; - this.CultureCode = cultureCode; - this.Value = value; - } - - /// - /// Arxivar lang code - /// - /// Arxivar lang code - [DataMember(Name="langCode", EmitDefaultValue=false)] - public string LangCode { get; set; } - - /// - /// Culture code - /// - /// Culture code - [DataMember(Name="cultureCode", EmitDefaultValue=false)] - public string CultureCode { get; set; } - - /// - /// Translation value - /// - /// Translation value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MaskDetailTranslationDTO {\n"); - sb.Append(" LangCode: ").Append(LangCode).Append("\n"); - sb.Append(" CultureCode: ").Append(CultureCode).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MaskDetailTranslationDTO); - } - - /// - /// Returns true if MaskDetailTranslationDTO instances are equal - /// - /// Instance of MaskDetailTranslationDTO to be compared - /// Boolean - public bool Equals(MaskDetailTranslationDTO input) - { - if (input == null) - return false; - - return - ( - this.LangCode == input.LangCode || - (this.LangCode != null && - this.LangCode.Equals(input.LangCode)) - ) && - ( - this.CultureCode == input.CultureCode || - (this.CultureCode != null && - this.CultureCode.Equals(input.CultureCode)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.LangCode != null) - hashCode = hashCode * 59 + this.LangCode.GetHashCode(); - if (this.CultureCode != null) - hashCode = hashCode * 59 + this.CultureCode.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MaskProfileSchemaDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MaskProfileSchemaDTO.cs deleted file mode 100644 index f9ce525..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MaskProfileSchemaDTO.cs +++ /dev/null @@ -1,397 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of profiling mask schema - /// - [DataContract] - public partial class MaskProfileSchemaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Mask Identifier. - /// Mask Name. - /// Predefined Profile Identifier. - /// Options. - /// Behaviour. - /// Possible values: 0: Nothing 1: Barcode 2: Archiviazione . - /// Identifier. - /// File data. - /// Fields. - /// Post Profilation Actions. - /// Possible values: 0: None 1: ForceInsert 2: State . - /// Attachments. - /// Notes. - /// Public Amministration Notes. - /// Authority Data. - /// Defines if a protocol has been generated. - /// File Writing Settings. - public MaskProfileSchemaDTO(string maskId = default(string), string maskName = default(string), int? predefinedProfileId = default(int?), ProfileMaskOptionsDTO options = default(ProfileMaskOptionsDTO), ProfileMaskBehaviourDTO behaviour = default(ProfileMaskBehaviourDTO), int? maskType = default(int?), int? id = default(int?), FileDTO document = default(FileDTO), List fields = default(List), List postProfilationActions = default(List), int? constrainRoleBehaviour = default(int?), List attachments = default(List), List notes = default(List), List paNotes = default(List), AuthorityDataDTO authorityData = default(AuthorityDataDTO), bool? generatePaProtocol = default(bool?), DocumentsWritingSettingsDTO fileWritingSettings = default(DocumentsWritingSettingsDTO)) - { - this.MaskId = maskId; - this.MaskName = maskName; - this.PredefinedProfileId = predefinedProfileId; - this.Options = options; - this.Behaviour = behaviour; - this.MaskType = maskType; - this.Id = id; - this.Document = document; - this.Fields = fields; - this.PostProfilationActions = postProfilationActions; - this.ConstrainRoleBehaviour = constrainRoleBehaviour; - this.Attachments = attachments; - this.Notes = notes; - this.PaNotes = paNotes; - this.AuthorityData = authorityData; - this.GeneratePaProtocol = generatePaProtocol; - this.FileWritingSettings = fileWritingSettings; - } - - /// - /// Mask Identifier - /// - /// Mask Identifier - [DataMember(Name="maskId", EmitDefaultValue=false)] - public string MaskId { get; set; } - - /// - /// Mask Name - /// - /// Mask Name - [DataMember(Name="maskName", EmitDefaultValue=false)] - public string MaskName { get; set; } - - /// - /// Predefined Profile Identifier - /// - /// Predefined Profile Identifier - [DataMember(Name="predefinedProfileId", EmitDefaultValue=false)] - public int? PredefinedProfileId { get; set; } - - /// - /// Options - /// - /// Options - [DataMember(Name="options", EmitDefaultValue=false)] - public ProfileMaskOptionsDTO Options { get; set; } - - /// - /// Behaviour - /// - /// Behaviour - [DataMember(Name="behaviour", EmitDefaultValue=false)] - public ProfileMaskBehaviourDTO Behaviour { get; set; } - - /// - /// Possible values: 0: Nothing 1: Barcode 2: Archiviazione - /// - /// Possible values: 0: Nothing 1: Barcode 2: Archiviazione - [DataMember(Name="maskType", EmitDefaultValue=false)] - public int? MaskType { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// File data - /// - /// File data - [DataMember(Name="document", EmitDefaultValue=false)] - public FileDTO Document { get; set; } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Post Profilation Actions - /// - /// Post Profilation Actions - [DataMember(Name="postProfilationActions", EmitDefaultValue=false)] - public List PostProfilationActions { get; set; } - - /// - /// Possible values: 0: None 1: ForceInsert 2: State - /// - /// Possible values: 0: None 1: ForceInsert 2: State - [DataMember(Name="constrainRoleBehaviour", EmitDefaultValue=false)] - public int? ConstrainRoleBehaviour { get; set; } - - /// - /// Attachments - /// - /// Attachments - [DataMember(Name="attachments", EmitDefaultValue=false)] - public List Attachments { get; set; } - - /// - /// Notes - /// - /// Notes - [DataMember(Name="notes", EmitDefaultValue=false)] - public List Notes { get; set; } - - /// - /// Public Amministration Notes - /// - /// Public Amministration Notes - [DataMember(Name="paNotes", EmitDefaultValue=false)] - public List PaNotes { get; set; } - - /// - /// Authority Data - /// - /// Authority Data - [DataMember(Name="authorityData", EmitDefaultValue=false)] - public AuthorityDataDTO AuthorityData { get; set; } - - /// - /// Defines if a protocol has been generated - /// - /// Defines if a protocol has been generated - [DataMember(Name="generatePaProtocol", EmitDefaultValue=false)] - public bool? GeneratePaProtocol { get; set; } - - /// - /// File Writing Settings - /// - /// File Writing Settings - [DataMember(Name="fileWritingSettings", EmitDefaultValue=false)] - public DocumentsWritingSettingsDTO FileWritingSettings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MaskProfileSchemaDTO {\n"); - sb.Append(" MaskId: ").Append(MaskId).Append("\n"); - sb.Append(" MaskName: ").Append(MaskName).Append("\n"); - sb.Append(" PredefinedProfileId: ").Append(PredefinedProfileId).Append("\n"); - sb.Append(" Options: ").Append(Options).Append("\n"); - sb.Append(" Behaviour: ").Append(Behaviour).Append("\n"); - sb.Append(" MaskType: ").Append(MaskType).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Document: ").Append(Document).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append(" PostProfilationActions: ").Append(PostProfilationActions).Append("\n"); - sb.Append(" ConstrainRoleBehaviour: ").Append(ConstrainRoleBehaviour).Append("\n"); - sb.Append(" Attachments: ").Append(Attachments).Append("\n"); - sb.Append(" Notes: ").Append(Notes).Append("\n"); - sb.Append(" PaNotes: ").Append(PaNotes).Append("\n"); - sb.Append(" AuthorityData: ").Append(AuthorityData).Append("\n"); - sb.Append(" GeneratePaProtocol: ").Append(GeneratePaProtocol).Append("\n"); - sb.Append(" FileWritingSettings: ").Append(FileWritingSettings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MaskProfileSchemaDTO); - } - - /// - /// Returns true if MaskProfileSchemaDTO instances are equal - /// - /// Instance of MaskProfileSchemaDTO to be compared - /// Boolean - public bool Equals(MaskProfileSchemaDTO input) - { - if (input == null) - return false; - - return - ( - this.MaskId == input.MaskId || - (this.MaskId != null && - this.MaskId.Equals(input.MaskId)) - ) && - ( - this.MaskName == input.MaskName || - (this.MaskName != null && - this.MaskName.Equals(input.MaskName)) - ) && - ( - this.PredefinedProfileId == input.PredefinedProfileId || - (this.PredefinedProfileId != null && - this.PredefinedProfileId.Equals(input.PredefinedProfileId)) - ) && - ( - this.Options == input.Options || - (this.Options != null && - this.Options.Equals(input.Options)) - ) && - ( - this.Behaviour == input.Behaviour || - (this.Behaviour != null && - this.Behaviour.Equals(input.Behaviour)) - ) && - ( - this.MaskType == input.MaskType || - (this.MaskType != null && - this.MaskType.Equals(input.MaskType)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Document == input.Document || - (this.Document != null && - this.Document.Equals(input.Document)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ) && - ( - this.PostProfilationActions == input.PostProfilationActions || - this.PostProfilationActions != null && - this.PostProfilationActions.SequenceEqual(input.PostProfilationActions) - ) && - ( - this.ConstrainRoleBehaviour == input.ConstrainRoleBehaviour || - (this.ConstrainRoleBehaviour != null && - this.ConstrainRoleBehaviour.Equals(input.ConstrainRoleBehaviour)) - ) && - ( - this.Attachments == input.Attachments || - this.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.Notes == input.Notes || - this.Notes != null && - this.Notes.SequenceEqual(input.Notes) - ) && - ( - this.PaNotes == input.PaNotes || - this.PaNotes != null && - this.PaNotes.SequenceEqual(input.PaNotes) - ) && - ( - this.AuthorityData == input.AuthorityData || - (this.AuthorityData != null && - this.AuthorityData.Equals(input.AuthorityData)) - ) && - ( - this.GeneratePaProtocol == input.GeneratePaProtocol || - (this.GeneratePaProtocol != null && - this.GeneratePaProtocol.Equals(input.GeneratePaProtocol)) - ) && - ( - this.FileWritingSettings == input.FileWritingSettings || - (this.FileWritingSettings != null && - this.FileWritingSettings.Equals(input.FileWritingSettings)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.MaskId != null) - hashCode = hashCode * 59 + this.MaskId.GetHashCode(); - if (this.MaskName != null) - hashCode = hashCode * 59 + this.MaskName.GetHashCode(); - if (this.PredefinedProfileId != null) - hashCode = hashCode * 59 + this.PredefinedProfileId.GetHashCode(); - if (this.Options != null) - hashCode = hashCode * 59 + this.Options.GetHashCode(); - if (this.Behaviour != null) - hashCode = hashCode * 59 + this.Behaviour.GetHashCode(); - if (this.MaskType != null) - hashCode = hashCode * 59 + this.MaskType.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Document != null) - hashCode = hashCode * 59 + this.Document.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - if (this.PostProfilationActions != null) - hashCode = hashCode * 59 + this.PostProfilationActions.GetHashCode(); - if (this.ConstrainRoleBehaviour != null) - hashCode = hashCode * 59 + this.ConstrainRoleBehaviour.GetHashCode(); - if (this.Attachments != null) - hashCode = hashCode * 59 + this.Attachments.GetHashCode(); - if (this.Notes != null) - hashCode = hashCode * 59 + this.Notes.GetHashCode(); - if (this.PaNotes != null) - hashCode = hashCode * 59 + this.PaNotes.GetHashCode(); - if (this.AuthorityData != null) - hashCode = hashCode * 59 + this.AuthorityData.GetHashCode(); - if (this.GeneratePaProtocol != null) - hashCode = hashCode * 59 + this.GeneratePaProtocol.GetHashCode(); - if (this.FileWritingSettings != null) - hashCode = hashCode * 59 + this.FileWritingSettings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MaskSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MaskSimpleDTO.cs deleted file mode 100644 index 0412093..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MaskSimpleDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of mask - /// - [DataContract] - public partial class MaskSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique identifier. - /// Name. - /// Description. - public MaskSimpleDTO(string id = default(string), string name = default(string), string description = default(string)) - { - this.Id = id; - this.Name = name; - this.Description = description; - } - - /// - /// Unique identifier - /// - /// Unique identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MaskSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MaskSimpleDTO); - } - - /// - /// Returns true if MaskSimpleDTO instances are equal - /// - /// Instance of MaskSimpleDTO to be compared - /// Boolean - public bool Equals(MaskSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MassiveChangeCanExecuteRequest.cs b/ACUtils.AXRepository/ArxivarNext/Model/MassiveChangeCanExecuteRequest.cs deleted file mode 100644 index e2a1f87..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MassiveChangeCanExecuteRequest.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Dto for check massive change operation for the user - /// - [DataContract] - public partial class MassiveChangeCanExecuteRequest : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Docnumbers to massive change. - public MassiveChangeCanExecuteRequest(List docnumbers = default(List)) - { - this.Docnumbers = docnumbers; - } - - /// - /// Docnumbers to massive change - /// - /// Docnumbers to massive change - [DataMember(Name="docnumbers", EmitDefaultValue=false)] - public List Docnumbers { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MassiveChangeCanExecuteRequest {\n"); - sb.Append(" Docnumbers: ").Append(Docnumbers).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MassiveChangeCanExecuteRequest); - } - - /// - /// Returns true if MassiveChangeCanExecuteRequest instances are equal - /// - /// Instance of MassiveChangeCanExecuteRequest to be compared - /// Boolean - public bool Equals(MassiveChangeCanExecuteRequest input) - { - if (input == null) - return false; - - return - ( - this.Docnumbers == input.Docnumbers || - this.Docnumbers != null && - this.Docnumbers.SequenceEqual(input.Docnumbers) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Docnumbers != null) - hashCode = hashCode * 59 + this.Docnumbers.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MassiveChangeCanExecuteResult.cs b/ACUtils.AXRepository/ArxivarNext/Model/MassiveChangeCanExecuteResult.cs deleted file mode 100644 index 8465ad1..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MassiveChangeCanExecuteResult.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Dto for possible start of a massive change - /// - [DataContract] - public partial class MassiveChangeCanExecuteResult : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Can execute information for the user. - /// Optional message for the user. - public MassiveChangeCanExecuteResult(bool? canExecute = default(bool?), string errorMEssage = default(string)) - { - this.CanExecute = canExecute; - this.ErrorMEssage = errorMEssage; - } - - /// - /// Can execute information for the user - /// - /// Can execute information for the user - [DataMember(Name="canExecute", EmitDefaultValue=false)] - public bool? CanExecute { get; set; } - - /// - /// Optional message for the user - /// - /// Optional message for the user - [DataMember(Name="errorMEssage", EmitDefaultValue=false)] - public string ErrorMEssage { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MassiveChangeCanExecuteResult {\n"); - sb.Append(" CanExecute: ").Append(CanExecute).Append("\n"); - sb.Append(" ErrorMEssage: ").Append(ErrorMEssage).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MassiveChangeCanExecuteResult); - } - - /// - /// Returns true if MassiveChangeCanExecuteResult instances are equal - /// - /// Instance of MassiveChangeCanExecuteResult to be compared - /// Boolean - public bool Equals(MassiveChangeCanExecuteResult input) - { - if (input == null) - return false; - - return - ( - this.CanExecute == input.CanExecute || - (this.CanExecute != null && - this.CanExecute.Equals(input.CanExecute)) - ) && - ( - this.ErrorMEssage == input.ErrorMEssage || - (this.ErrorMEssage != null && - this.ErrorMEssage.Equals(input.ErrorMEssage)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CanExecute != null) - hashCode = hashCode * 59 + this.CanExecute.GetHashCode(); - if (this.ErrorMEssage != null) - hashCode = hashCode * 59 + this.ErrorMEssage.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MassiveChangeRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MassiveChangeRequestDTO.cs deleted file mode 100644 index 461bcfe..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MassiveChangeRequestDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for options for insert new Massive Change of profiles job - /// - [DataContract] - public partial class MassiveChangeRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Docnumber to modify. - /// Indicates if the user want a mail message at the end of the operation. - /// Fields. - public MassiveChangeRequestDTO(List docnumbers = default(List), bool? sendMailAtComplete = default(bool?), List fields = default(List)) - { - this.Docnumbers = docnumbers; - this.SendMailAtComplete = sendMailAtComplete; - this.Fields = fields; - } - - /// - /// Docnumber to modify - /// - /// Docnumber to modify - [DataMember(Name="docnumbers", EmitDefaultValue=false)] - public List Docnumbers { get; set; } - - /// - /// Indicates if the user want a mail message at the end of the operation - /// - /// Indicates if the user want a mail message at the end of the operation - [DataMember(Name="sendMailAtComplete", EmitDefaultValue=false)] - public bool? SendMailAtComplete { get; set; } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MassiveChangeRequestDTO {\n"); - sb.Append(" Docnumbers: ").Append(Docnumbers).Append("\n"); - sb.Append(" SendMailAtComplete: ").Append(SendMailAtComplete).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MassiveChangeRequestDTO); - } - - /// - /// Returns true if MassiveChangeRequestDTO instances are equal - /// - /// Instance of MassiveChangeRequestDTO to be compared - /// Boolean - public bool Equals(MassiveChangeRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Docnumbers == input.Docnumbers || - this.Docnumbers != null && - this.Docnumbers.SequenceEqual(input.Docnumbers) - ) && - ( - this.SendMailAtComplete == input.SendMailAtComplete || - (this.SendMailAtComplete != null && - this.SendMailAtComplete.Equals(input.SendMailAtComplete)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Docnumbers != null) - hashCode = hashCode * 59 + this.Docnumbers.GetHashCode(); - if (this.SendMailAtComplete != null) - hashCode = hashCode * 59 + this.SendMailAtComplete.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MassiveChangeResponseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MassiveChangeResponseDTO.cs deleted file mode 100644 index 96c6959..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MassiveChangeResponseDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Response class for new massive change inserted - /// - [DataContract] - public partial class MassiveChangeResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of massive change in progress. - public MassiveChangeResponseDTO(string massiveChangeRequestId = default(string)) - { - this.MassiveChangeRequestId = massiveChangeRequestId; - } - - /// - /// Identifier of massive change in progress - /// - /// Identifier of massive change in progress - [DataMember(Name="massiveChangeRequestId", EmitDefaultValue=false)] - public string MassiveChangeRequestId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MassiveChangeResponseDTO {\n"); - sb.Append(" MassiveChangeRequestId: ").Append(MassiveChangeRequestId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MassiveChangeResponseDTO); - } - - /// - /// Returns true if MassiveChangeResponseDTO instances are equal - /// - /// Instance of MassiveChangeResponseDTO to be compared - /// Boolean - public bool Equals(MassiveChangeResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.MassiveChangeRequestId == input.MassiveChangeRequestId || - (this.MassiveChangeRequestId != null && - this.MassiveChangeRequestId.Equals(input.MassiveChangeRequestId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.MassiveChangeRequestId != null) - hashCode = hashCode * 59 + this.MassiveChangeRequestId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MessageErrorDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MessageErrorDTO.cs deleted file mode 100644 index 1c7a176..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MessageErrorDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of error message - /// - [DataContract] - public partial class MessageErrorDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Message. - /// Error Code. - public MessageErrorDTO(string message = default(string), string errorCode = default(string)) - { - this.Message = message; - this.ErrorCode = errorCode; - } - - /// - /// Message - /// - /// Message - [DataMember(Name="message", EmitDefaultValue=false)] - public string Message { get; set; } - - /// - /// Error Code - /// - /// Error Code - [DataMember(Name="errorCode", EmitDefaultValue=false)] - public string ErrorCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MessageErrorDTO {\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append(" ErrorCode: ").Append(ErrorCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MessageErrorDTO); - } - - /// - /// Returns true if MessageErrorDTO instances are equal - /// - /// Instance of MessageErrorDTO to be compared - /// Boolean - public bool Equals(MessageErrorDTO input) - { - if (input == null) - return false; - - return - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.ErrorCode == input.ErrorCode || - (this.ErrorCode != null && - this.ErrorCode.Equals(input.ErrorCode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Message != null) - hashCode = hashCode * 59 + this.Message.GetHashCode(); - if (this.ErrorCode != null) - hashCode = hashCode * 59 + this.ErrorCode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ModelConfigurationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ModelConfigurationDTO.cs deleted file mode 100644 index 5616c31..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ModelConfigurationDTO.cs +++ /dev/null @@ -1,448 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ModelConfigurationDTO - /// - [DataContract] - public partial class ModelConfigurationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Predefined profile for model. - /// Predefined Profile. - /// Possible values: 0: EmptyProfile 1: PredefinedProfile 2: Mask . - /// File in cache for template. - /// File in cache for preview template. - /// Fields. - /// Identifier. - /// Description. - /// Author. - /// Author's model name. - /// Possible values: 1: Public 2: Private . - /// Original File Name. - /// Possible values: 0: Unblocked 1: Blocked . - /// Predefined Profile Identifier. - /// Group Identifier. - /// Model's group name. - /// Extensione File. - /// Open File After to Profiliing. - /// Mask Identifier. - /// File Name of the original preview file. - public ModelConfigurationDTO(PredefinedProfileDTO predefinedProfile = default(PredefinedProfileDTO), MaskDTO mask = default(MaskDTO), int? showOption = default(int?), string documentCacheId = default(string), string previewDocumentCacheId = default(string), List fieldsModule = default(List), int? id = default(int?), string description = default(string), int? user = default(int?), string userDescription = default(string), int? type = default(int?), string fileName = default(string), int? lockModality = default(int?), int? predefinedProfileId = default(int?), int? groupId = default(int?), string groupName = default(string), string extension = default(string), bool? openAfterProfilation = default(bool?), string maskId = default(string), string previewFileName = default(string)) - { - this.PredefinedProfile = predefinedProfile; - this.Mask = mask; - this.ShowOption = showOption; - this.DocumentCacheId = documentCacheId; - this.PreviewDocumentCacheId = previewDocumentCacheId; - this.FieldsModule = fieldsModule; - this.Id = id; - this.Description = description; - this.User = user; - this.UserDescription = userDescription; - this.Type = type; - this.FileName = fileName; - this.LockModality = lockModality; - this.PredefinedProfileId = predefinedProfileId; - this.GroupId = groupId; - this.GroupName = groupName; - this.Extension = extension; - this.OpenAfterProfilation = openAfterProfilation; - this.MaskId = maskId; - this.PreviewFileName = previewFileName; - } - - /// - /// Predefined profile for model - /// - /// Predefined profile for model - [DataMember(Name="predefinedProfile", EmitDefaultValue=false)] - public PredefinedProfileDTO PredefinedProfile { get; set; } - - /// - /// Predefined Profile - /// - /// Predefined Profile - [DataMember(Name="mask", EmitDefaultValue=false)] - public MaskDTO Mask { get; set; } - - /// - /// Possible values: 0: EmptyProfile 1: PredefinedProfile 2: Mask - /// - /// Possible values: 0: EmptyProfile 1: PredefinedProfile 2: Mask - [DataMember(Name="showOption", EmitDefaultValue=false)] - public int? ShowOption { get; set; } - - /// - /// File in cache for template - /// - /// File in cache for template - [DataMember(Name="documentCacheId", EmitDefaultValue=false)] - public string DocumentCacheId { get; set; } - - /// - /// File in cache for preview template - /// - /// File in cache for preview template - [DataMember(Name="previewDocumentCacheId", EmitDefaultValue=false)] - public string PreviewDocumentCacheId { get; set; } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="fieldsModule", EmitDefaultValue=false)] - public List FieldsModule { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Author - /// - /// Author - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Author's model name - /// - /// Author's model name - [DataMember(Name="userDescription", EmitDefaultValue=false)] - public string UserDescription { get; set; } - - /// - /// Possible values: 1: Public 2: Private - /// - /// Possible values: 1: Public 2: Private - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Original File Name - /// - /// Original File Name - [DataMember(Name="fileName", EmitDefaultValue=false)] - public string FileName { get; set; } - - /// - /// Possible values: 0: Unblocked 1: Blocked - /// - /// Possible values: 0: Unblocked 1: Blocked - [DataMember(Name="lockModality", EmitDefaultValue=false)] - public int? LockModality { get; set; } - - /// - /// Predefined Profile Identifier - /// - /// Predefined Profile Identifier - [DataMember(Name="predefinedProfileId", EmitDefaultValue=false)] - public int? PredefinedProfileId { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Model's group name - /// - /// Model's group name - [DataMember(Name="groupName", EmitDefaultValue=false)] - public string GroupName { get; set; } - - /// - /// Extensione File - /// - /// Extensione File - [DataMember(Name="extension", EmitDefaultValue=false)] - public string Extension { get; set; } - - /// - /// Open File After to Profiliing - /// - /// Open File After to Profiliing - [DataMember(Name="openAfterProfilation", EmitDefaultValue=false)] - public bool? OpenAfterProfilation { get; set; } - - /// - /// Mask Identifier - /// - /// Mask Identifier - [DataMember(Name="maskId", EmitDefaultValue=false)] - public string MaskId { get; set; } - - /// - /// File Name of the original preview file - /// - /// File Name of the original preview file - [DataMember(Name="previewFileName", EmitDefaultValue=false)] - public string PreviewFileName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ModelConfigurationDTO {\n"); - sb.Append(" PredefinedProfile: ").Append(PredefinedProfile).Append("\n"); - sb.Append(" Mask: ").Append(Mask).Append("\n"); - sb.Append(" ShowOption: ").Append(ShowOption).Append("\n"); - sb.Append(" DocumentCacheId: ").Append(DocumentCacheId).Append("\n"); - sb.Append(" PreviewDocumentCacheId: ").Append(PreviewDocumentCacheId).Append("\n"); - sb.Append(" FieldsModule: ").Append(FieldsModule).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" UserDescription: ").Append(UserDescription).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" FileName: ").Append(FileName).Append("\n"); - sb.Append(" LockModality: ").Append(LockModality).Append("\n"); - sb.Append(" PredefinedProfileId: ").Append(PredefinedProfileId).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" GroupName: ").Append(GroupName).Append("\n"); - sb.Append(" Extension: ").Append(Extension).Append("\n"); - sb.Append(" OpenAfterProfilation: ").Append(OpenAfterProfilation).Append("\n"); - sb.Append(" MaskId: ").Append(MaskId).Append("\n"); - sb.Append(" PreviewFileName: ").Append(PreviewFileName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ModelConfigurationDTO); - } - - /// - /// Returns true if ModelConfigurationDTO instances are equal - /// - /// Instance of ModelConfigurationDTO to be compared - /// Boolean - public bool Equals(ModelConfigurationDTO input) - { - if (input == null) - return false; - - return - ( - this.PredefinedProfile == input.PredefinedProfile || - (this.PredefinedProfile != null && - this.PredefinedProfile.Equals(input.PredefinedProfile)) - ) && - ( - this.Mask == input.Mask || - (this.Mask != null && - this.Mask.Equals(input.Mask)) - ) && - ( - this.ShowOption == input.ShowOption || - (this.ShowOption != null && - this.ShowOption.Equals(input.ShowOption)) - ) && - ( - this.DocumentCacheId == input.DocumentCacheId || - (this.DocumentCacheId != null && - this.DocumentCacheId.Equals(input.DocumentCacheId)) - ) && - ( - this.PreviewDocumentCacheId == input.PreviewDocumentCacheId || - (this.PreviewDocumentCacheId != null && - this.PreviewDocumentCacheId.Equals(input.PreviewDocumentCacheId)) - ) && - ( - this.FieldsModule == input.FieldsModule || - this.FieldsModule != null && - this.FieldsModule.SequenceEqual(input.FieldsModule) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.UserDescription == input.UserDescription || - (this.UserDescription != null && - this.UserDescription.Equals(input.UserDescription)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.FileName == input.FileName || - (this.FileName != null && - this.FileName.Equals(input.FileName)) - ) && - ( - this.LockModality == input.LockModality || - (this.LockModality != null && - this.LockModality.Equals(input.LockModality)) - ) && - ( - this.PredefinedProfileId == input.PredefinedProfileId || - (this.PredefinedProfileId != null && - this.PredefinedProfileId.Equals(input.PredefinedProfileId)) - ) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && - ( - this.GroupName == input.GroupName || - (this.GroupName != null && - this.GroupName.Equals(input.GroupName)) - ) && - ( - this.Extension == input.Extension || - (this.Extension != null && - this.Extension.Equals(input.Extension)) - ) && - ( - this.OpenAfterProfilation == input.OpenAfterProfilation || - (this.OpenAfterProfilation != null && - this.OpenAfterProfilation.Equals(input.OpenAfterProfilation)) - ) && - ( - this.MaskId == input.MaskId || - (this.MaskId != null && - this.MaskId.Equals(input.MaskId)) - ) && - ( - this.PreviewFileName == input.PreviewFileName || - (this.PreviewFileName != null && - this.PreviewFileName.Equals(input.PreviewFileName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.PredefinedProfile != null) - hashCode = hashCode * 59 + this.PredefinedProfile.GetHashCode(); - if (this.Mask != null) - hashCode = hashCode * 59 + this.Mask.GetHashCode(); - if (this.ShowOption != null) - hashCode = hashCode * 59 + this.ShowOption.GetHashCode(); - if (this.DocumentCacheId != null) - hashCode = hashCode * 59 + this.DocumentCacheId.GetHashCode(); - if (this.PreviewDocumentCacheId != null) - hashCode = hashCode * 59 + this.PreviewDocumentCacheId.GetHashCode(); - if (this.FieldsModule != null) - hashCode = hashCode * 59 + this.FieldsModule.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.UserDescription != null) - hashCode = hashCode * 59 + this.UserDescription.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.FileName != null) - hashCode = hashCode * 59 + this.FileName.GetHashCode(); - if (this.LockModality != null) - hashCode = hashCode * 59 + this.LockModality.GetHashCode(); - if (this.PredefinedProfileId != null) - hashCode = hashCode * 59 + this.PredefinedProfileId.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.GroupName != null) - hashCode = hashCode * 59 + this.GroupName.GetHashCode(); - if (this.Extension != null) - hashCode = hashCode * 59 + this.Extension.GetHashCode(); - if (this.OpenAfterProfilation != null) - hashCode = hashCode * 59 + this.OpenAfterProfilation.GetHashCode(); - if (this.MaskId != null) - hashCode = hashCode * 59 + this.MaskId.GetHashCode(); - if (this.PreviewFileName != null) - hashCode = hashCode * 59 + this.PreviewFileName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ModelDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ModelDTO.cs deleted file mode 100644 index fed9009..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ModelDTO.cs +++ /dev/null @@ -1,346 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Model for profiling - /// - [DataContract] - public partial class ModelDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - /// Author. - /// Author's model name. - /// Possible values: 1: Public 2: Private . - /// Original File Name. - /// Possible values: 0: Unblocked 1: Blocked . - /// Predefined Profile Identifier. - /// Group Identifier. - /// Model's group name. - /// Extensione File. - /// Open File After to Profiliing. - /// Mask Identifier. - /// File Name of the original preview file. - public ModelDTO(int? id = default(int?), string description = default(string), int? user = default(int?), string userDescription = default(string), int? type = default(int?), string fileName = default(string), int? lockModality = default(int?), int? predefinedProfileId = default(int?), int? groupId = default(int?), string groupName = default(string), string extension = default(string), bool? openAfterProfilation = default(bool?), string maskId = default(string), string previewFileName = default(string)) - { - this.Id = id; - this.Description = description; - this.User = user; - this.UserDescription = userDescription; - this.Type = type; - this.FileName = fileName; - this.LockModality = lockModality; - this.PredefinedProfileId = predefinedProfileId; - this.GroupId = groupId; - this.GroupName = groupName; - this.Extension = extension; - this.OpenAfterProfilation = openAfterProfilation; - this.MaskId = maskId; - this.PreviewFileName = previewFileName; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Author - /// - /// Author - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Author's model name - /// - /// Author's model name - [DataMember(Name="userDescription", EmitDefaultValue=false)] - public string UserDescription { get; set; } - - /// - /// Possible values: 1: Public 2: Private - /// - /// Possible values: 1: Public 2: Private - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Original File Name - /// - /// Original File Name - [DataMember(Name="fileName", EmitDefaultValue=false)] - public string FileName { get; set; } - - /// - /// Possible values: 0: Unblocked 1: Blocked - /// - /// Possible values: 0: Unblocked 1: Blocked - [DataMember(Name="lockModality", EmitDefaultValue=false)] - public int? LockModality { get; set; } - - /// - /// Predefined Profile Identifier - /// - /// Predefined Profile Identifier - [DataMember(Name="predefinedProfileId", EmitDefaultValue=false)] - public int? PredefinedProfileId { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Model's group name - /// - /// Model's group name - [DataMember(Name="groupName", EmitDefaultValue=false)] - public string GroupName { get; set; } - - /// - /// Extensione File - /// - /// Extensione File - [DataMember(Name="extension", EmitDefaultValue=false)] - public string Extension { get; set; } - - /// - /// Open File After to Profiliing - /// - /// Open File After to Profiliing - [DataMember(Name="openAfterProfilation", EmitDefaultValue=false)] - public bool? OpenAfterProfilation { get; set; } - - /// - /// Mask Identifier - /// - /// Mask Identifier - [DataMember(Name="maskId", EmitDefaultValue=false)] - public string MaskId { get; set; } - - /// - /// File Name of the original preview file - /// - /// File Name of the original preview file - [DataMember(Name="previewFileName", EmitDefaultValue=false)] - public string PreviewFileName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ModelDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" UserDescription: ").Append(UserDescription).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" FileName: ").Append(FileName).Append("\n"); - sb.Append(" LockModality: ").Append(LockModality).Append("\n"); - sb.Append(" PredefinedProfileId: ").Append(PredefinedProfileId).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" GroupName: ").Append(GroupName).Append("\n"); - sb.Append(" Extension: ").Append(Extension).Append("\n"); - sb.Append(" OpenAfterProfilation: ").Append(OpenAfterProfilation).Append("\n"); - sb.Append(" MaskId: ").Append(MaskId).Append("\n"); - sb.Append(" PreviewFileName: ").Append(PreviewFileName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ModelDTO); - } - - /// - /// Returns true if ModelDTO instances are equal - /// - /// Instance of ModelDTO to be compared - /// Boolean - public bool Equals(ModelDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.UserDescription == input.UserDescription || - (this.UserDescription != null && - this.UserDescription.Equals(input.UserDescription)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.FileName == input.FileName || - (this.FileName != null && - this.FileName.Equals(input.FileName)) - ) && - ( - this.LockModality == input.LockModality || - (this.LockModality != null && - this.LockModality.Equals(input.LockModality)) - ) && - ( - this.PredefinedProfileId == input.PredefinedProfileId || - (this.PredefinedProfileId != null && - this.PredefinedProfileId.Equals(input.PredefinedProfileId)) - ) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && - ( - this.GroupName == input.GroupName || - (this.GroupName != null && - this.GroupName.Equals(input.GroupName)) - ) && - ( - this.Extension == input.Extension || - (this.Extension != null && - this.Extension.Equals(input.Extension)) - ) && - ( - this.OpenAfterProfilation == input.OpenAfterProfilation || - (this.OpenAfterProfilation != null && - this.OpenAfterProfilation.Equals(input.OpenAfterProfilation)) - ) && - ( - this.MaskId == input.MaskId || - (this.MaskId != null && - this.MaskId.Equals(input.MaskId)) - ) && - ( - this.PreviewFileName == input.PreviewFileName || - (this.PreviewFileName != null && - this.PreviewFileName.Equals(input.PreviewFileName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.UserDescription != null) - hashCode = hashCode * 59 + this.UserDescription.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.FileName != null) - hashCode = hashCode * 59 + this.FileName.GetHashCode(); - if (this.LockModality != null) - hashCode = hashCode * 59 + this.LockModality.GetHashCode(); - if (this.PredefinedProfileId != null) - hashCode = hashCode * 59 + this.PredefinedProfileId.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.GroupName != null) - hashCode = hashCode * 59 + this.GroupName.GetHashCode(); - if (this.Extension != null) - hashCode = hashCode * 59 + this.Extension.GetHashCode(); - if (this.OpenAfterProfilation != null) - hashCode = hashCode * 59 + this.OpenAfterProfilation.GetHashCode(); - if (this.MaskId != null) - hashCode = hashCode * 59 + this.MaskId.GetHashCode(); - if (this.PreviewFileName != null) - hashCode = hashCode * 59 + this.PreviewFileName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ModelProfileSchemaDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ModelProfileSchemaDTO.cs deleted file mode 100644 index 6ccda70..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ModelProfileSchemaDTO.cs +++ /dev/null @@ -1,431 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of profiling by template - /// - [DataContract] - public partial class ModelProfileSchemaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Template Identifier. - /// Description. - /// Options. - /// Behaviour. - /// Open file after profiling.. - /// Editing file after profiling.. - /// Mask Identifier. - /// Possible values: 0: EmptyProfile 1: PredefinedProfile 2: Mask . - /// Identifier. - /// File data. - /// Fields. - /// Post Profilation Actions. - /// Possible values: 0: None 1: ForceInsert 2: State . - /// Attachments. - /// Notes. - /// Public Amministration Notes. - /// Authority Data. - /// Defines if a protocol has been generated. - /// File Writing Settings. - public ModelProfileSchemaDTO(int? modelId = default(int?), string modelDescription = default(string), ProfileMaskOptionsDTO options = default(ProfileMaskOptionsDTO), ProfileMaskBehaviourDTO behaviour = default(ProfileMaskBehaviourDTO), bool? openModelAfterProfilation = default(bool?), bool? editModelAfterProfilation = default(bool?), string maskId = default(string), int? showOption = default(int?), int? id = default(int?), FileDTO document = default(FileDTO), List fields = default(List), List postProfilationActions = default(List), int? constrainRoleBehaviour = default(int?), List attachments = default(List), List notes = default(List), List paNotes = default(List), AuthorityDataDTO authorityData = default(AuthorityDataDTO), bool? generatePaProtocol = default(bool?), DocumentsWritingSettingsDTO fileWritingSettings = default(DocumentsWritingSettingsDTO)) - { - this.ModelId = modelId; - this.ModelDescription = modelDescription; - this.Options = options; - this.Behaviour = behaviour; - this.OpenModelAfterProfilation = openModelAfterProfilation; - this.EditModelAfterProfilation = editModelAfterProfilation; - this.MaskId = maskId; - this.ShowOption = showOption; - this.Id = id; - this.Document = document; - this.Fields = fields; - this.PostProfilationActions = postProfilationActions; - this.ConstrainRoleBehaviour = constrainRoleBehaviour; - this.Attachments = attachments; - this.Notes = notes; - this.PaNotes = paNotes; - this.AuthorityData = authorityData; - this.GeneratePaProtocol = generatePaProtocol; - this.FileWritingSettings = fileWritingSettings; - } - - /// - /// Template Identifier - /// - /// Template Identifier - [DataMember(Name="modelId", EmitDefaultValue=false)] - public int? ModelId { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="modelDescription", EmitDefaultValue=false)] - public string ModelDescription { get; set; } - - /// - /// Options - /// - /// Options - [DataMember(Name="options", EmitDefaultValue=false)] - public ProfileMaskOptionsDTO Options { get; set; } - - /// - /// Behaviour - /// - /// Behaviour - [DataMember(Name="behaviour", EmitDefaultValue=false)] - public ProfileMaskBehaviourDTO Behaviour { get; set; } - - /// - /// Open file after profiling. - /// - /// Open file after profiling. - [DataMember(Name="openModelAfterProfilation", EmitDefaultValue=false)] - public bool? OpenModelAfterProfilation { get; set; } - - /// - /// Editing file after profiling. - /// - /// Editing file after profiling. - [DataMember(Name="editModelAfterProfilation", EmitDefaultValue=false)] - public bool? EditModelAfterProfilation { get; set; } - - /// - /// Mask Identifier - /// - /// Mask Identifier - [DataMember(Name="maskId", EmitDefaultValue=false)] - public string MaskId { get; set; } - - /// - /// Possible values: 0: EmptyProfile 1: PredefinedProfile 2: Mask - /// - /// Possible values: 0: EmptyProfile 1: PredefinedProfile 2: Mask - [DataMember(Name="showOption", EmitDefaultValue=false)] - public int? ShowOption { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// File data - /// - /// File data - [DataMember(Name="document", EmitDefaultValue=false)] - public FileDTO Document { get; set; } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Post Profilation Actions - /// - /// Post Profilation Actions - [DataMember(Name="postProfilationActions", EmitDefaultValue=false)] - public List PostProfilationActions { get; set; } - - /// - /// Possible values: 0: None 1: ForceInsert 2: State - /// - /// Possible values: 0: None 1: ForceInsert 2: State - [DataMember(Name="constrainRoleBehaviour", EmitDefaultValue=false)] - public int? ConstrainRoleBehaviour { get; set; } - - /// - /// Attachments - /// - /// Attachments - [DataMember(Name="attachments", EmitDefaultValue=false)] - public List Attachments { get; set; } - - /// - /// Notes - /// - /// Notes - [DataMember(Name="notes", EmitDefaultValue=false)] - public List Notes { get; set; } - - /// - /// Public Amministration Notes - /// - /// Public Amministration Notes - [DataMember(Name="paNotes", EmitDefaultValue=false)] - public List PaNotes { get; set; } - - /// - /// Authority Data - /// - /// Authority Data - [DataMember(Name="authorityData", EmitDefaultValue=false)] - public AuthorityDataDTO AuthorityData { get; set; } - - /// - /// Defines if a protocol has been generated - /// - /// Defines if a protocol has been generated - [DataMember(Name="generatePaProtocol", EmitDefaultValue=false)] - public bool? GeneratePaProtocol { get; set; } - - /// - /// File Writing Settings - /// - /// File Writing Settings - [DataMember(Name="fileWritingSettings", EmitDefaultValue=false)] - public DocumentsWritingSettingsDTO FileWritingSettings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ModelProfileSchemaDTO {\n"); - sb.Append(" ModelId: ").Append(ModelId).Append("\n"); - sb.Append(" ModelDescription: ").Append(ModelDescription).Append("\n"); - sb.Append(" Options: ").Append(Options).Append("\n"); - sb.Append(" Behaviour: ").Append(Behaviour).Append("\n"); - sb.Append(" OpenModelAfterProfilation: ").Append(OpenModelAfterProfilation).Append("\n"); - sb.Append(" EditModelAfterProfilation: ").Append(EditModelAfterProfilation).Append("\n"); - sb.Append(" MaskId: ").Append(MaskId).Append("\n"); - sb.Append(" ShowOption: ").Append(ShowOption).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Document: ").Append(Document).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append(" PostProfilationActions: ").Append(PostProfilationActions).Append("\n"); - sb.Append(" ConstrainRoleBehaviour: ").Append(ConstrainRoleBehaviour).Append("\n"); - sb.Append(" Attachments: ").Append(Attachments).Append("\n"); - sb.Append(" Notes: ").Append(Notes).Append("\n"); - sb.Append(" PaNotes: ").Append(PaNotes).Append("\n"); - sb.Append(" AuthorityData: ").Append(AuthorityData).Append("\n"); - sb.Append(" GeneratePaProtocol: ").Append(GeneratePaProtocol).Append("\n"); - sb.Append(" FileWritingSettings: ").Append(FileWritingSettings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ModelProfileSchemaDTO); - } - - /// - /// Returns true if ModelProfileSchemaDTO instances are equal - /// - /// Instance of ModelProfileSchemaDTO to be compared - /// Boolean - public bool Equals(ModelProfileSchemaDTO input) - { - if (input == null) - return false; - - return - ( - this.ModelId == input.ModelId || - (this.ModelId != null && - this.ModelId.Equals(input.ModelId)) - ) && - ( - this.ModelDescription == input.ModelDescription || - (this.ModelDescription != null && - this.ModelDescription.Equals(input.ModelDescription)) - ) && - ( - this.Options == input.Options || - (this.Options != null && - this.Options.Equals(input.Options)) - ) && - ( - this.Behaviour == input.Behaviour || - (this.Behaviour != null && - this.Behaviour.Equals(input.Behaviour)) - ) && - ( - this.OpenModelAfterProfilation == input.OpenModelAfterProfilation || - (this.OpenModelAfterProfilation != null && - this.OpenModelAfterProfilation.Equals(input.OpenModelAfterProfilation)) - ) && - ( - this.EditModelAfterProfilation == input.EditModelAfterProfilation || - (this.EditModelAfterProfilation != null && - this.EditModelAfterProfilation.Equals(input.EditModelAfterProfilation)) - ) && - ( - this.MaskId == input.MaskId || - (this.MaskId != null && - this.MaskId.Equals(input.MaskId)) - ) && - ( - this.ShowOption == input.ShowOption || - (this.ShowOption != null && - this.ShowOption.Equals(input.ShowOption)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Document == input.Document || - (this.Document != null && - this.Document.Equals(input.Document)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ) && - ( - this.PostProfilationActions == input.PostProfilationActions || - this.PostProfilationActions != null && - this.PostProfilationActions.SequenceEqual(input.PostProfilationActions) - ) && - ( - this.ConstrainRoleBehaviour == input.ConstrainRoleBehaviour || - (this.ConstrainRoleBehaviour != null && - this.ConstrainRoleBehaviour.Equals(input.ConstrainRoleBehaviour)) - ) && - ( - this.Attachments == input.Attachments || - this.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.Notes == input.Notes || - this.Notes != null && - this.Notes.SequenceEqual(input.Notes) - ) && - ( - this.PaNotes == input.PaNotes || - this.PaNotes != null && - this.PaNotes.SequenceEqual(input.PaNotes) - ) && - ( - this.AuthorityData == input.AuthorityData || - (this.AuthorityData != null && - this.AuthorityData.Equals(input.AuthorityData)) - ) && - ( - this.GeneratePaProtocol == input.GeneratePaProtocol || - (this.GeneratePaProtocol != null && - this.GeneratePaProtocol.Equals(input.GeneratePaProtocol)) - ) && - ( - this.FileWritingSettings == input.FileWritingSettings || - (this.FileWritingSettings != null && - this.FileWritingSettings.Equals(input.FileWritingSettings)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ModelId != null) - hashCode = hashCode * 59 + this.ModelId.GetHashCode(); - if (this.ModelDescription != null) - hashCode = hashCode * 59 + this.ModelDescription.GetHashCode(); - if (this.Options != null) - hashCode = hashCode * 59 + this.Options.GetHashCode(); - if (this.Behaviour != null) - hashCode = hashCode * 59 + this.Behaviour.GetHashCode(); - if (this.OpenModelAfterProfilation != null) - hashCode = hashCode * 59 + this.OpenModelAfterProfilation.GetHashCode(); - if (this.EditModelAfterProfilation != null) - hashCode = hashCode * 59 + this.EditModelAfterProfilation.GetHashCode(); - if (this.MaskId != null) - hashCode = hashCode * 59 + this.MaskId.GetHashCode(); - if (this.ShowOption != null) - hashCode = hashCode * 59 + this.ShowOption.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Document != null) - hashCode = hashCode * 59 + this.Document.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - if (this.PostProfilationActions != null) - hashCode = hashCode * 59 + this.PostProfilationActions.GetHashCode(); - if (this.ConstrainRoleBehaviour != null) - hashCode = hashCode * 59 + this.ConstrainRoleBehaviour.GetHashCode(); - if (this.Attachments != null) - hashCode = hashCode * 59 + this.Attachments.GetHashCode(); - if (this.Notes != null) - hashCode = hashCode * 59 + this.Notes.GetHashCode(); - if (this.PaNotes != null) - hashCode = hashCode * 59 + this.PaNotes.GetHashCode(); - if (this.AuthorityData != null) - hashCode = hashCode * 59 + this.AuthorityData.GetHashCode(); - if (this.GeneratePaProtocol != null) - hashCode = hashCode * 59 + this.GeneratePaProtocol.GetHashCode(); - if (this.FileWritingSettings != null) - hashCode = hashCode * 59 + this.FileWritingSettings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MonitoredFolderDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MonitoredFolderDTO.cs deleted file mode 100644 index 7a05f59..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MonitoredFolderDTO.cs +++ /dev/null @@ -1,288 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// MonitoredFolderDTO - /// - [DataContract] - public partial class MonitoredFolderDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// userId. - /// Possible values: 0: Manual 1: Automatic 2: Wizard . - /// maskId. - /// predefinedProfileId. - /// useSubFolders. - /// path. - /// Possible values: 0: ByPosition 1: BySeparator 2: None . - /// characterSeparator. - /// Possible values: 0: Generic 1: ArxivarServer 2: ArxivarOcr 3: ArxivarFax 4: ArxivarBarcode 5: ArxivarSpoolRecPro 6: ArxivarSpoolPdf 7: ArxivarSpoolConsole 8: ArxivarWeb 9: ArxivarPmArchiviazione 10: ArxivarPmRubrica 11: ArxivarPmUsersAndGroups 12: ArxivarPmAllegati 13: ArxivarUnitTest 14: ArxivarStartWorkflow 15: ArxivarMailer 16: ArxivarArxService 17: ArxivarPostalizzatore 18: ArxivarSigner 19: ArxivarSdk 20: SAPR3 21: ArxivarThumbnail 22: ArxivarSharedDocument 23: ArxivarDownloaderDocument 24: ArxivarClient 25: ArxivarAWP 26: ArxivarPmOrganizationChart 27: ArxivarMobile 28: Credemtel 29: ArxivarRelationService 30: ArxivarPmLogonProviderAssoc 31: ArxivarMassiveUpdates 32: ArxivarMobileService 33: ArxivarMobileApp 34: ArxivarFasciculationService 35: ArxivarPushNotificationsService 36: ArxivarIX 37: ArxivarPmDocumentDeleting 38: ArxivarMobileOfficeSign 39: GenericWebService 40: ArxivarIndex 41: ArxDrive 42: ArxDriveExtension 43: ArxivarSmartTaskApp 44: ArxDriveMobile 45: Unimatica 46: Eni 47: ArxivarSwapOutService 48: ArxivarSuiteClient 49: ArxivarServerWcf 50: ArxAuthService 51: ArxivarSuiteServer 52: ArxivarSetup 53: ImapPlugin 54: ArxLinkClient 55: BiometricSign 56: ArxCommand 57: ArxivarPmFlatFileTextWriter 58: ArxAssistant 59: ArxLocalSign 60: ArxNode 61: ArxOutsourcer 62: ArxWorkflowCore 63: ArxivarNextMobile 64: ArxAssistantMacOs . - /// Possible values: 0: AskConfirm 1: Proceed 2: Buffer . - public MonitoredFolderDTO(string id = default(string), int? userId = default(int?), int? type = default(int?), string maskId = default(string), int? predefinedProfileId = default(int?), bool? useSubFolders = default(bool?), string path = default(string), int? parseMode = default(int?), string characterSeparator = default(string), int? softwareType = default(int?), int? operativity = default(int?)) - { - this.Id = id; - this.UserId = userId; - this.Type = type; - this.MaskId = maskId; - this.PredefinedProfileId = predefinedProfileId; - this.UseSubFolders = useSubFolders; - this.Path = path; - this.ParseMode = parseMode; - this.CharacterSeparator = characterSeparator; - this.SoftwareType = softwareType; - this.Operativity = operativity; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Gets or Sets UserId - /// - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Possible values: 0: Manual 1: Automatic 2: Wizard - /// - /// Possible values: 0: Manual 1: Automatic 2: Wizard - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Gets or Sets MaskId - /// - [DataMember(Name="maskId", EmitDefaultValue=false)] - public string MaskId { get; set; } - - /// - /// Gets or Sets PredefinedProfileId - /// - [DataMember(Name="predefinedProfileId", EmitDefaultValue=false)] - public int? PredefinedProfileId { get; set; } - - /// - /// Gets or Sets UseSubFolders - /// - [DataMember(Name="useSubFolders", EmitDefaultValue=false)] - public bool? UseSubFolders { get; set; } - - /// - /// Gets or Sets Path - /// - [DataMember(Name="path", EmitDefaultValue=false)] - public string Path { get; set; } - - /// - /// Possible values: 0: ByPosition 1: BySeparator 2: None - /// - /// Possible values: 0: ByPosition 1: BySeparator 2: None - [DataMember(Name="parseMode", EmitDefaultValue=false)] - public int? ParseMode { get; set; } - - /// - /// Gets or Sets CharacterSeparator - /// - [DataMember(Name="characterSeparator", EmitDefaultValue=false)] - public string CharacterSeparator { get; set; } - - /// - /// Possible values: 0: Generic 1: ArxivarServer 2: ArxivarOcr 3: ArxivarFax 4: ArxivarBarcode 5: ArxivarSpoolRecPro 6: ArxivarSpoolPdf 7: ArxivarSpoolConsole 8: ArxivarWeb 9: ArxivarPmArchiviazione 10: ArxivarPmRubrica 11: ArxivarPmUsersAndGroups 12: ArxivarPmAllegati 13: ArxivarUnitTest 14: ArxivarStartWorkflow 15: ArxivarMailer 16: ArxivarArxService 17: ArxivarPostalizzatore 18: ArxivarSigner 19: ArxivarSdk 20: SAPR3 21: ArxivarThumbnail 22: ArxivarSharedDocument 23: ArxivarDownloaderDocument 24: ArxivarClient 25: ArxivarAWP 26: ArxivarPmOrganizationChart 27: ArxivarMobile 28: Credemtel 29: ArxivarRelationService 30: ArxivarPmLogonProviderAssoc 31: ArxivarMassiveUpdates 32: ArxivarMobileService 33: ArxivarMobileApp 34: ArxivarFasciculationService 35: ArxivarPushNotificationsService 36: ArxivarIX 37: ArxivarPmDocumentDeleting 38: ArxivarMobileOfficeSign 39: GenericWebService 40: ArxivarIndex 41: ArxDrive 42: ArxDriveExtension 43: ArxivarSmartTaskApp 44: ArxDriveMobile 45: Unimatica 46: Eni 47: ArxivarSwapOutService 48: ArxivarSuiteClient 49: ArxivarServerWcf 50: ArxAuthService 51: ArxivarSuiteServer 52: ArxivarSetup 53: ImapPlugin 54: ArxLinkClient 55: BiometricSign 56: ArxCommand 57: ArxivarPmFlatFileTextWriter 58: ArxAssistant 59: ArxLocalSign 60: ArxNode 61: ArxOutsourcer 62: ArxWorkflowCore 63: ArxivarNextMobile 64: ArxAssistantMacOs - /// - /// Possible values: 0: Generic 1: ArxivarServer 2: ArxivarOcr 3: ArxivarFax 4: ArxivarBarcode 5: ArxivarSpoolRecPro 6: ArxivarSpoolPdf 7: ArxivarSpoolConsole 8: ArxivarWeb 9: ArxivarPmArchiviazione 10: ArxivarPmRubrica 11: ArxivarPmUsersAndGroups 12: ArxivarPmAllegati 13: ArxivarUnitTest 14: ArxivarStartWorkflow 15: ArxivarMailer 16: ArxivarArxService 17: ArxivarPostalizzatore 18: ArxivarSigner 19: ArxivarSdk 20: SAPR3 21: ArxivarThumbnail 22: ArxivarSharedDocument 23: ArxivarDownloaderDocument 24: ArxivarClient 25: ArxivarAWP 26: ArxivarPmOrganizationChart 27: ArxivarMobile 28: Credemtel 29: ArxivarRelationService 30: ArxivarPmLogonProviderAssoc 31: ArxivarMassiveUpdates 32: ArxivarMobileService 33: ArxivarMobileApp 34: ArxivarFasciculationService 35: ArxivarPushNotificationsService 36: ArxivarIX 37: ArxivarPmDocumentDeleting 38: ArxivarMobileOfficeSign 39: GenericWebService 40: ArxivarIndex 41: ArxDrive 42: ArxDriveExtension 43: ArxivarSmartTaskApp 44: ArxDriveMobile 45: Unimatica 46: Eni 47: ArxivarSwapOutService 48: ArxivarSuiteClient 49: ArxivarServerWcf 50: ArxAuthService 51: ArxivarSuiteServer 52: ArxivarSetup 53: ImapPlugin 54: ArxLinkClient 55: BiometricSign 56: ArxCommand 57: ArxivarPmFlatFileTextWriter 58: ArxAssistant 59: ArxLocalSign 60: ArxNode 61: ArxOutsourcer 62: ArxWorkflowCore 63: ArxivarNextMobile 64: ArxAssistantMacOs - [DataMember(Name="softwareType", EmitDefaultValue=false)] - public int? SoftwareType { get; set; } - - /// - /// Possible values: 0: AskConfirm 1: Proceed 2: Buffer - /// - /// Possible values: 0: AskConfirm 1: Proceed 2: Buffer - [DataMember(Name="operativity", EmitDefaultValue=false)] - public int? Operativity { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MonitoredFolderDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" MaskId: ").Append(MaskId).Append("\n"); - sb.Append(" PredefinedProfileId: ").Append(PredefinedProfileId).Append("\n"); - sb.Append(" UseSubFolders: ").Append(UseSubFolders).Append("\n"); - sb.Append(" Path: ").Append(Path).Append("\n"); - sb.Append(" ParseMode: ").Append(ParseMode).Append("\n"); - sb.Append(" CharacterSeparator: ").Append(CharacterSeparator).Append("\n"); - sb.Append(" SoftwareType: ").Append(SoftwareType).Append("\n"); - sb.Append(" Operativity: ").Append(Operativity).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MonitoredFolderDTO); - } - - /// - /// Returns true if MonitoredFolderDTO instances are equal - /// - /// Instance of MonitoredFolderDTO to be compared - /// Boolean - public bool Equals(MonitoredFolderDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.MaskId == input.MaskId || - (this.MaskId != null && - this.MaskId.Equals(input.MaskId)) - ) && - ( - this.PredefinedProfileId == input.PredefinedProfileId || - (this.PredefinedProfileId != null && - this.PredefinedProfileId.Equals(input.PredefinedProfileId)) - ) && - ( - this.UseSubFolders == input.UseSubFolders || - (this.UseSubFolders != null && - this.UseSubFolders.Equals(input.UseSubFolders)) - ) && - ( - this.Path == input.Path || - (this.Path != null && - this.Path.Equals(input.Path)) - ) && - ( - this.ParseMode == input.ParseMode || - (this.ParseMode != null && - this.ParseMode.Equals(input.ParseMode)) - ) && - ( - this.CharacterSeparator == input.CharacterSeparator || - (this.CharacterSeparator != null && - this.CharacterSeparator.Equals(input.CharacterSeparator)) - ) && - ( - this.SoftwareType == input.SoftwareType || - (this.SoftwareType != null && - this.SoftwareType.Equals(input.SoftwareType)) - ) && - ( - this.Operativity == input.Operativity || - (this.Operativity != null && - this.Operativity.Equals(input.Operativity)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.MaskId != null) - hashCode = hashCode * 59 + this.MaskId.GetHashCode(); - if (this.PredefinedProfileId != null) - hashCode = hashCode * 59 + this.PredefinedProfileId.GetHashCode(); - if (this.UseSubFolders != null) - hashCode = hashCode * 59 + this.UseSubFolders.GetHashCode(); - if (this.Path != null) - hashCode = hashCode * 59 + this.Path.GetHashCode(); - if (this.ParseMode != null) - hashCode = hashCode * 59 + this.ParseMode.GetHashCode(); - if (this.CharacterSeparator != null) - hashCode = hashCode * 59 + this.CharacterSeparator.GetHashCode(); - if (this.SoftwareType != null) - hashCode = hashCode * 59 + this.SoftwareType.GetHashCode(); - if (this.Operativity != null) - hashCode = hashCode * 59 + this.Operativity.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/MonitoredFolderDetailDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/MonitoredFolderDetailDTO.cs deleted file mode 100644 index 6618666..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/MonitoredFolderDetailDTO.cs +++ /dev/null @@ -1,226 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// MonitoredFolderDetailDTO - /// - [DataContract] - public partial class MonitoredFolderDetailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// Id of the monitored folder. - /// Index based 1 for the start of the field value (positional parse mode).. - /// Index based 1 for the end of the field value (positional parse mode).. - /// Index for the value of the field, for character separator monitored folder type.. - /// Name of the field (only for additional fields).. - /// Possible values: 0: NonImpostato 1: From 2: To 3: Cc 4: Aoo 5: DocumentType 6: DataDoc 7: Numero 8: Oggetto 9: Origine 10: Stato 11: Pratiche 12: Scadenza 13: Importante 14: AbilitaWeb 15: AvviaWorkFlow 16: InviaPerFax 17: InviaPerMail 18: AllegaATaskAttivo 19: InserisciInAssociazione 20: InserisciInFascicolo 21: InserisciInRelazioneManuale 22: GestisciRevisioni 23: Note 24: Allegati 25: Aggiuntivo 26: File 27: Scanner 28: Barcode 29: SicurezzaSingoloDocumento 30: ExternalId 31: AllegaMemo 32: Senders 33: AvviaCollaboration 34: ScansioneImmediata 35: NegaCommuta 36: From_Cap 37: From_Cell 38: From_Codfis 39: From_Codice 40: From_Contatti 41: From_Email 42: From_Fax 43: From_Faxnome 44: From_Indirizzo 45: From_Localita 46: From_Mail 47: From_Mansione 48: From_Nazione 49: From_Partiva 50: From_Provincia 51: From_Reparto 52: From_Riferimento 53: From_Tel 54: From_Telnome 55: From_Ufficio 56: From_Valore 57: From_Abitazione 58: To_Cap 59: To_Cell 60: To_Codfis 61: To_Codice 62: To_Contatti 63: To_Email 64: To_Fax 65: To_Faxnome 66: To_Indirizzo 67: To_Localita 68: To_Mail 69: To_Mansione 70: To_Nazione 71: To_Partiva 72: To_Provincia 73: To_Reparto 74: To_Riferimento 75: To_Tel 76: To_Telnome 77: To_Ufficio 78: To_Valore 79: To_Abitazione 80: Cc_Cap 81: Cc_Cell 82: Cc_Codfis 83: Cc_Codice 84: Cc_Contatti 85: Cc_Email 86: Cc_Fax 87: Cc_Faxnome 88: Cc_Indirizzo 89: Cc_Localita 90: Cc_Mail 91: Cc_Mansione 92: Cc_Nazione 93: Cc_Partiva 94: Cc_Provincia 95: Cc_Reparto 96: Cc_Riferimento 97: Cc_Tel 98: Cc_Telnome 99: Cc_Ufficio 100: Cc_Valore 101: Cc_Abitazione 102: Senders_Cap 103: Senders_Cell 104: Senders_Codfis 105: Senders_Codice 106: Senders_Contatti 107: Senders_Email 108: Senders_Fax 109: Senders_Faxnome 110: Senders_Indirizzo 111: Senders_Localita 112: Senders_Mail 113: Senders_Mansione 114: Senders_Nazione 115: Senders_Partiva 116: Senders_Provincia 117: Senders_Reparto 118: Senders_Riferimento 119: Senders_Tel 120: Senders_Telnome 121: Senders_Ufficio 122: Senders_Valore 123: Senders_Abitazione 124: From_Priorita 125: To_Priorita 126: Cc_Priorita 127: Senders_Priorita 128: Instruction . - public MonitoredFolderDetailDTO(string id = default(string), string monitoredFolderId = default(string), int? from = default(int?), int? to = default(int?), int? position = default(int?), string fieldName = default(string), int? fieldKind = default(int?)) - { - this.Id = id; - this.MonitoredFolderId = monitoredFolderId; - this.From = from; - this.To = to; - this.Position = position; - this.FieldName = fieldName; - this.FieldKind = fieldKind; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Id of the monitored folder - /// - /// Id of the monitored folder - [DataMember(Name="monitoredFolderId", EmitDefaultValue=false)] - public string MonitoredFolderId { get; set; } - - /// - /// Index based 1 for the start of the field value (positional parse mode). - /// - /// Index based 1 for the start of the field value (positional parse mode). - [DataMember(Name="from", EmitDefaultValue=false)] - public int? From { get; set; } - - /// - /// Index based 1 for the end of the field value (positional parse mode). - /// - /// Index based 1 for the end of the field value (positional parse mode). - [DataMember(Name="to", EmitDefaultValue=false)] - public int? To { get; set; } - - /// - /// Index for the value of the field, for character separator monitored folder type. - /// - /// Index for the value of the field, for character separator monitored folder type. - [DataMember(Name="position", EmitDefaultValue=false)] - public int? Position { get; set; } - - /// - /// Name of the field (only for additional fields). - /// - /// Name of the field (only for additional fields). - [DataMember(Name="fieldName", EmitDefaultValue=false)] - public string FieldName { get; set; } - - /// - /// Possible values: 0: NonImpostato 1: From 2: To 3: Cc 4: Aoo 5: DocumentType 6: DataDoc 7: Numero 8: Oggetto 9: Origine 10: Stato 11: Pratiche 12: Scadenza 13: Importante 14: AbilitaWeb 15: AvviaWorkFlow 16: InviaPerFax 17: InviaPerMail 18: AllegaATaskAttivo 19: InserisciInAssociazione 20: InserisciInFascicolo 21: InserisciInRelazioneManuale 22: GestisciRevisioni 23: Note 24: Allegati 25: Aggiuntivo 26: File 27: Scanner 28: Barcode 29: SicurezzaSingoloDocumento 30: ExternalId 31: AllegaMemo 32: Senders 33: AvviaCollaboration 34: ScansioneImmediata 35: NegaCommuta 36: From_Cap 37: From_Cell 38: From_Codfis 39: From_Codice 40: From_Contatti 41: From_Email 42: From_Fax 43: From_Faxnome 44: From_Indirizzo 45: From_Localita 46: From_Mail 47: From_Mansione 48: From_Nazione 49: From_Partiva 50: From_Provincia 51: From_Reparto 52: From_Riferimento 53: From_Tel 54: From_Telnome 55: From_Ufficio 56: From_Valore 57: From_Abitazione 58: To_Cap 59: To_Cell 60: To_Codfis 61: To_Codice 62: To_Contatti 63: To_Email 64: To_Fax 65: To_Faxnome 66: To_Indirizzo 67: To_Localita 68: To_Mail 69: To_Mansione 70: To_Nazione 71: To_Partiva 72: To_Provincia 73: To_Reparto 74: To_Riferimento 75: To_Tel 76: To_Telnome 77: To_Ufficio 78: To_Valore 79: To_Abitazione 80: Cc_Cap 81: Cc_Cell 82: Cc_Codfis 83: Cc_Codice 84: Cc_Contatti 85: Cc_Email 86: Cc_Fax 87: Cc_Faxnome 88: Cc_Indirizzo 89: Cc_Localita 90: Cc_Mail 91: Cc_Mansione 92: Cc_Nazione 93: Cc_Partiva 94: Cc_Provincia 95: Cc_Reparto 96: Cc_Riferimento 97: Cc_Tel 98: Cc_Telnome 99: Cc_Ufficio 100: Cc_Valore 101: Cc_Abitazione 102: Senders_Cap 103: Senders_Cell 104: Senders_Codfis 105: Senders_Codice 106: Senders_Contatti 107: Senders_Email 108: Senders_Fax 109: Senders_Faxnome 110: Senders_Indirizzo 111: Senders_Localita 112: Senders_Mail 113: Senders_Mansione 114: Senders_Nazione 115: Senders_Partiva 116: Senders_Provincia 117: Senders_Reparto 118: Senders_Riferimento 119: Senders_Tel 120: Senders_Telnome 121: Senders_Ufficio 122: Senders_Valore 123: Senders_Abitazione 124: From_Priorita 125: To_Priorita 126: Cc_Priorita 127: Senders_Priorita 128: Instruction - /// - /// Possible values: 0: NonImpostato 1: From 2: To 3: Cc 4: Aoo 5: DocumentType 6: DataDoc 7: Numero 8: Oggetto 9: Origine 10: Stato 11: Pratiche 12: Scadenza 13: Importante 14: AbilitaWeb 15: AvviaWorkFlow 16: InviaPerFax 17: InviaPerMail 18: AllegaATaskAttivo 19: InserisciInAssociazione 20: InserisciInFascicolo 21: InserisciInRelazioneManuale 22: GestisciRevisioni 23: Note 24: Allegati 25: Aggiuntivo 26: File 27: Scanner 28: Barcode 29: SicurezzaSingoloDocumento 30: ExternalId 31: AllegaMemo 32: Senders 33: AvviaCollaboration 34: ScansioneImmediata 35: NegaCommuta 36: From_Cap 37: From_Cell 38: From_Codfis 39: From_Codice 40: From_Contatti 41: From_Email 42: From_Fax 43: From_Faxnome 44: From_Indirizzo 45: From_Localita 46: From_Mail 47: From_Mansione 48: From_Nazione 49: From_Partiva 50: From_Provincia 51: From_Reparto 52: From_Riferimento 53: From_Tel 54: From_Telnome 55: From_Ufficio 56: From_Valore 57: From_Abitazione 58: To_Cap 59: To_Cell 60: To_Codfis 61: To_Codice 62: To_Contatti 63: To_Email 64: To_Fax 65: To_Faxnome 66: To_Indirizzo 67: To_Localita 68: To_Mail 69: To_Mansione 70: To_Nazione 71: To_Partiva 72: To_Provincia 73: To_Reparto 74: To_Riferimento 75: To_Tel 76: To_Telnome 77: To_Ufficio 78: To_Valore 79: To_Abitazione 80: Cc_Cap 81: Cc_Cell 82: Cc_Codfis 83: Cc_Codice 84: Cc_Contatti 85: Cc_Email 86: Cc_Fax 87: Cc_Faxnome 88: Cc_Indirizzo 89: Cc_Localita 90: Cc_Mail 91: Cc_Mansione 92: Cc_Nazione 93: Cc_Partiva 94: Cc_Provincia 95: Cc_Reparto 96: Cc_Riferimento 97: Cc_Tel 98: Cc_Telnome 99: Cc_Ufficio 100: Cc_Valore 101: Cc_Abitazione 102: Senders_Cap 103: Senders_Cell 104: Senders_Codfis 105: Senders_Codice 106: Senders_Contatti 107: Senders_Email 108: Senders_Fax 109: Senders_Faxnome 110: Senders_Indirizzo 111: Senders_Localita 112: Senders_Mail 113: Senders_Mansione 114: Senders_Nazione 115: Senders_Partiva 116: Senders_Provincia 117: Senders_Reparto 118: Senders_Riferimento 119: Senders_Tel 120: Senders_Telnome 121: Senders_Ufficio 122: Senders_Valore 123: Senders_Abitazione 124: From_Priorita 125: To_Priorita 126: Cc_Priorita 127: Senders_Priorita 128: Instruction - [DataMember(Name="fieldKind", EmitDefaultValue=false)] - public int? FieldKind { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MonitoredFolderDetailDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" MonitoredFolderId: ").Append(MonitoredFolderId).Append("\n"); - sb.Append(" From: ").Append(From).Append("\n"); - sb.Append(" To: ").Append(To).Append("\n"); - sb.Append(" Position: ").Append(Position).Append("\n"); - sb.Append(" FieldName: ").Append(FieldName).Append("\n"); - sb.Append(" FieldKind: ").Append(FieldKind).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MonitoredFolderDetailDTO); - } - - /// - /// Returns true if MonitoredFolderDetailDTO instances are equal - /// - /// Instance of MonitoredFolderDetailDTO to be compared - /// Boolean - public bool Equals(MonitoredFolderDetailDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.MonitoredFolderId == input.MonitoredFolderId || - (this.MonitoredFolderId != null && - this.MonitoredFolderId.Equals(input.MonitoredFolderId)) - ) && - ( - this.From == input.From || - (this.From != null && - this.From.Equals(input.From)) - ) && - ( - this.To == input.To || - (this.To != null && - this.To.Equals(input.To)) - ) && - ( - this.Position == input.Position || - (this.Position != null && - this.Position.Equals(input.Position)) - ) && - ( - this.FieldName == input.FieldName || - (this.FieldName != null && - this.FieldName.Equals(input.FieldName)) - ) && - ( - this.FieldKind == input.FieldKind || - (this.FieldKind != null && - this.FieldKind.Equals(input.FieldKind)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.MonitoredFolderId != null) - hashCode = hashCode * 59 + this.MonitoredFolderId.GetHashCode(); - if (this.From != null) - hashCode = hashCode * 59 + this.From.GetHashCode(); - if (this.To != null) - hashCode = hashCode * 59 + this.To.GetHashCode(); - if (this.Position != null) - hashCode = hashCode * 59 + this.Position.GetHashCode(); - if (this.FieldName != null) - hashCode = hashCode * 59 + this.FieldName.GetHashCode(); - if (this.FieldKind != null) - hashCode = hashCode * 59 + this.FieldKind.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/NewAttachArxDocumentoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/NewAttachArxDocumentoDTO.cs deleted file mode 100644 index 982d768..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/NewAttachArxDocumentoDTO.cs +++ /dev/null @@ -1,149 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// NewAttachArxDocumentoDTO - /// - [DataContract] - public partial class NewAttachArxDocumentoDTO : EmailDocumentDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected NewAttachArxDocumentoDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Arxivar document identifier. - /// Arxivar documetn revision. - public NewAttachArxDocumentoDTO(int? docnumber = default(int?), int? revision = default(int?), string className = "NewAttachArxDocumentoDTO") : base(className) - { - this.Docnumber = docnumber; - this.Revision = revision; - } - - /// - /// Arxivar document identifier - /// - /// Arxivar document identifier - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Arxivar documetn revision - /// - /// Arxivar documetn revision - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NewAttachArxDocumentoDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NewAttachArxDocumentoDTO); - } - - /// - /// Returns true if NewAttachArxDocumentoDTO instances are equal - /// - /// Instance of NewAttachArxDocumentoDTO to be compared - /// Boolean - public bool Equals(NewAttachArxDocumentoDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && base.Equals(input) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/NewAttachDocumentoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/NewAttachDocumentoDTO.cs deleted file mode 100644 index 9f53c9c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/NewAttachDocumentoDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// NewAttachDocumentoDTO - /// - [DataContract] - public partial class NewAttachDocumentoDTO : EmailDocumentDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected NewAttachDocumentoDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Buffer document identifier. - public NewAttachDocumentoDTO(string cacheIdentifier = default(string), string className = "NewAttachDocumentoDTO") : base(className) - { - this.CacheIdentifier = cacheIdentifier; - } - - /// - /// Buffer document identifier - /// - /// Buffer document identifier - [DataMember(Name="cacheIdentifier", EmitDefaultValue=false)] - public string CacheIdentifier { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NewAttachDocumentoDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CacheIdentifier: ").Append(CacheIdentifier).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NewAttachDocumentoDTO); - } - - /// - /// Returns true if NewAttachDocumentoDTO instances are equal - /// - /// Instance of NewAttachDocumentoDTO to be compared - /// Boolean - public bool Equals(NewAttachDocumentoDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CacheIdentifier == input.CacheIdentifier || - (this.CacheIdentifier != null && - this.CacheIdentifier.Equals(input.CacheIdentifier)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CacheIdentifier != null) - hashCode = hashCode * 59 + this.CacheIdentifier.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/NoteDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/NoteDTO.cs deleted file mode 100644 index 5f9716e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/NoteDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of note - /// - [DataContract] - public partial class NoteDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Document Identifier. - /// Author. - /// Author Name. - /// Creation Date. - /// Text. - /// Document Revision. - /// Conservation. - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_CONV_MESSAGES 173: DM_CONVERSATION 174: DM_MAILWF_ARCHIVE . - /// External Identifier. - public NoteDTO(int? id = default(int?), int? docnumber = default(int?), int? user = default(int?), string userCompleteName = default(string), DateTime? creationDate = default(DateTime?), string comment = default(string), int? revision = default(int?), bool? aosflag = default(bool?), int? countersTable = default(int?), int? externalId = default(int?)) - { - this.Id = id; - this.Docnumber = docnumber; - this.User = user; - this.UserCompleteName = userCompleteName; - this.CreationDate = creationDate; - this.Comment = comment; - this.Revision = revision; - this.Aosflag = aosflag; - this.CountersTable = countersTable; - this.ExternalId = externalId; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Author - /// - /// Author - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Author Name - /// - /// Author Name - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Text - /// - /// Text - [DataMember(Name="comment", EmitDefaultValue=false)] - public string Comment { get; set; } - - /// - /// Document Revision - /// - /// Document Revision - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Conservation - /// - /// Conservation - [DataMember(Name="aosflag", EmitDefaultValue=false)] - public bool? Aosflag { get; set; } - - /// - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_CONV_MESSAGES 173: DM_CONVERSATION 174: DM_MAILWF_ARCHIVE - /// - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_CONV_MESSAGES 173: DM_CONVERSATION 174: DM_MAILWF_ARCHIVE - [DataMember(Name="countersTable", EmitDefaultValue=false)] - public int? CountersTable { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public int? ExternalId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NoteDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" Comment: ").Append(Comment).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" Aosflag: ").Append(Aosflag).Append("\n"); - sb.Append(" CountersTable: ").Append(CountersTable).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NoteDTO); - } - - /// - /// Returns true if NoteDTO instances are equal - /// - /// Instance of NoteDTO to be compared - /// Boolean - public bool Equals(NoteDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.Comment == input.Comment || - (this.Comment != null && - this.Comment.Equals(input.Comment)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.Aosflag == input.Aosflag || - (this.Aosflag != null && - this.Aosflag.Equals(input.Aosflag)) - ) && - ( - this.CountersTable == input.CountersTable || - (this.CountersTable != null && - this.CountersTable.Equals(input.CountersTable)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.Comment != null) - hashCode = hashCode * 59 + this.Comment.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.Aosflag != null) - hashCode = hashCode * 59 + this.Aosflag.GetHashCode(); - if (this.CountersTable != null) - hashCode = hashCode * 59 + this.CountersTable.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/NoteFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/NoteFieldDTO.cs deleted file mode 100644 index 7a2b158..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/NoteFieldDTO.cs +++ /dev/null @@ -1,131 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// NoteFieldDTO - /// - [DataContract] - public partial class NoteFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected NoteFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// value. - public NoteFieldDTO(NoteDTO value = default(NoteDTO), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "NoteFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public NoteDTO Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NoteFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NoteFieldDTO); - } - - /// - /// Returns true if NoteFieldDTO instances are equal - /// - /// Instance of NoteFieldDTO to be compared - /// Boolean - public bool Equals(NoteFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/NoteWorkInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/NoteWorkInfoDTO.cs deleted file mode 100644 index 34e1441..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/NoteWorkInfoDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of note of process - /// - [DataContract] - public partial class NoteWorkInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name of workflow. - /// User Description. - /// Creation Date. - /// Text. - public NoteWorkInfoDTO(int? id = default(int?), string taskName = default(string), string userCompleteName = default(string), DateTime? date = default(DateTime?), string text = default(string)) - { - this.Id = id; - this.TaskName = taskName; - this.UserCompleteName = userCompleteName; - this.Date = date; - this.Text = text; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Name of workflow - /// - /// Name of workflow - [DataMember(Name="taskName", EmitDefaultValue=false)] - public string TaskName { get; set; } - - /// - /// User Description - /// - /// User Description - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="date", EmitDefaultValue=false)] - public DateTime? Date { get; set; } - - /// - /// Text - /// - /// Text - [DataMember(Name="text", EmitDefaultValue=false)] - public string Text { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NoteWorkInfoDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" TaskName: ").Append(TaskName).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Text: ").Append(Text).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NoteWorkInfoDTO); - } - - /// - /// Returns true if NoteWorkInfoDTO instances are equal - /// - /// Instance of NoteWorkInfoDTO to be compared - /// Boolean - public bool Equals(NoteWorkInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.TaskName == input.TaskName || - (this.TaskName != null && - this.TaskName.Equals(input.TaskName)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && - ( - this.Text == input.Text || - (this.Text != null && - this.Text.Equals(input.Text)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.TaskName != null) - hashCode = hashCode * 59 + this.TaskName.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Text != null) - hashCode = hashCode * 59 + this.Text.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/NullKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/NullKeyValueDTO.cs deleted file mode 100644 index e761733..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/NullKeyValueDTO.cs +++ /dev/null @@ -1,115 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Null key value - /// - [DataContract] - public partial class NullKeyValueDTO : GenericKeyValueDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected NullKeyValueDTO() { } - /// - /// Initializes a new instance of the class. - /// - public NullKeyValueDTO(string className = "NullKeyValueDTO", string key = default(string)) : base(className, key) - { - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NullKeyValueDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NullKeyValueDTO); - } - - /// - /// Returns true if NullKeyValueDTO instances are equal - /// - /// Instance of NullKeyValueDTO to be compared - /// Boolean - public bool Equals(NullKeyValueDTO input) - { - if (input == null) - return false; - - return base.Equals(input); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/NumberFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/NumberFieldDTO.cs deleted file mode 100644 index 9e74212..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/NumberFieldDTO.cs +++ /dev/null @@ -1,147 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// NumberFieldDTO - /// - [DataContract] - public partial class NumberFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected NumberFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// value. - /// numMaxChar. - public NumberFieldDTO(string value = default(string), int? numMaxChar = default(int?), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "NumberFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.NumMaxChar = numMaxChar; - } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Gets or Sets NumMaxChar - /// - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NumberFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NumberFieldDTO); - } - - /// - /// Returns true if NumberFieldDTO instances are equal - /// - /// Instance of NumberFieldDTO to be compared - /// Boolean - public bool Equals(NumberFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/OptionsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/OptionsDTO.cs deleted file mode 100644 index bb7b515..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/OptionsDTO.cs +++ /dev/null @@ -1,346 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of arxivar options - /// - [DataContract] - public partial class OptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// User Identifier. - /// Argument. - /// Visibility. - /// Sequence Number. - /// Label. - /// Size. - /// Possible values: 0: Nessuno 1: Ascendente 2: Descrescente . - /// Table Name. - /// Alias. - /// Value. - /// Value in datetime format. - /// Field Name. - /// Value in stream format. - public OptionsDTO(int? id = default(int?), int? user = default(int?), string argument = default(string), bool? visible = default(bool?), int? sequence = default(int?), string label = default(string), int? size = default(int?), int? order = default(int?), string table = default(string), string alias = default(string), string value = default(string), DateTime? ldata = default(DateTime?), string field = default(string), byte[] content = default(byte[])) - { - this.Id = id; - this.User = user; - this.Argument = argument; - this.Visible = visible; - this.Sequence = sequence; - this.Label = label; - this.Size = size; - this.Order = order; - this.Table = table; - this.Alias = alias; - this.Value = value; - this.Ldata = ldata; - this.Field = field; - this.Content = content; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// User Identifier - /// - /// User Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Argument - /// - /// Argument - [DataMember(Name="argument", EmitDefaultValue=false)] - public string Argument { get; set; } - - /// - /// Visibility - /// - /// Visibility - [DataMember(Name="visible", EmitDefaultValue=false)] - public bool? Visible { get; set; } - - /// - /// Sequence Number - /// - /// Sequence Number - [DataMember(Name="sequence", EmitDefaultValue=false)] - public int? Sequence { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Size - /// - /// Size - [DataMember(Name="size", EmitDefaultValue=false)] - public int? Size { get; set; } - - /// - /// Possible values: 0: Nessuno 1: Ascendente 2: Descrescente - /// - /// Possible values: 0: Nessuno 1: Ascendente 2: Descrescente - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// Table Name - /// - /// Table Name - [DataMember(Name="table", EmitDefaultValue=false)] - public string Table { get; set; } - - /// - /// Alias - /// - /// Alias - [DataMember(Name="alias", EmitDefaultValue=false)] - public string Alias { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Value in datetime format - /// - /// Value in datetime format - [DataMember(Name="ldata", EmitDefaultValue=false)] - public DateTime? Ldata { get; set; } - - /// - /// Field Name - /// - /// Field Name - [DataMember(Name="field", EmitDefaultValue=false)] - public string Field { get; set; } - - /// - /// Value in stream format - /// - /// Value in stream format - [DataMember(Name="content", EmitDefaultValue=false)] - public byte[] Content { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OptionsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" Argument: ").Append(Argument).Append("\n"); - sb.Append(" Visible: ").Append(Visible).Append("\n"); - sb.Append(" Sequence: ").Append(Sequence).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" Size: ").Append(Size).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" Table: ").Append(Table).Append("\n"); - sb.Append(" Alias: ").Append(Alias).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" Ldata: ").Append(Ldata).Append("\n"); - sb.Append(" Field: ").Append(Field).Append("\n"); - sb.Append(" Content: ").Append(Content).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OptionsDTO); - } - - /// - /// Returns true if OptionsDTO instances are equal - /// - /// Instance of OptionsDTO to be compared - /// Boolean - public bool Equals(OptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.Argument == input.Argument || - (this.Argument != null && - this.Argument.Equals(input.Argument)) - ) && - ( - this.Visible == input.Visible || - (this.Visible != null && - this.Visible.Equals(input.Visible)) - ) && - ( - this.Sequence == input.Sequence || - (this.Sequence != null && - this.Sequence.Equals(input.Sequence)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.Size == input.Size || - (this.Size != null && - this.Size.Equals(input.Size)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.Table == input.Table || - (this.Table != null && - this.Table.Equals(input.Table)) - ) && - ( - this.Alias == input.Alias || - (this.Alias != null && - this.Alias.Equals(input.Alias)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && - ( - this.Ldata == input.Ldata || - (this.Ldata != null && - this.Ldata.Equals(input.Ldata)) - ) && - ( - this.Field == input.Field || - (this.Field != null && - this.Field.Equals(input.Field)) - ) && - ( - this.Content == input.Content || - (this.Content != null && - this.Content.Equals(input.Content)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.Argument != null) - hashCode = hashCode * 59 + this.Argument.GetHashCode(); - if (this.Visible != null) - hashCode = hashCode * 59 + this.Visible.GetHashCode(); - if (this.Sequence != null) - hashCode = hashCode * 59 + this.Sequence.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.Size != null) - hashCode = hashCode * 59 + this.Size.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - if (this.Table != null) - hashCode = hashCode * 59 + this.Table.GetHashCode(); - if (this.Alias != null) - hashCode = hashCode * 59 + this.Alias.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.Ldata != null) - hashCode = hashCode * 59 + this.Ldata.GetHashCode(); - if (this.Field != null) - hashCode = hashCode * 59 + this.Field.GetHashCode(); - if (this.Content != null) - hashCode = hashCode * 59 + this.Content.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/OptionsFieldRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/OptionsFieldRequestDTO.cs deleted file mode 100644 index f3b9751..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/OptionsFieldRequestDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for options value update by argument and field for user connected - /// - [DataContract] - public partial class OptionsFieldRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Argument. - /// Field. - /// Value. - public OptionsFieldRequestDTO(string argument = default(string), string field = default(string), string value = default(string)) - { - this.Argument = argument; - this.Field = field; - this.Value = value; - } - - /// - /// Argument - /// - /// Argument - [DataMember(Name="argument", EmitDefaultValue=false)] - public string Argument { get; set; } - - /// - /// Field - /// - /// Field - [DataMember(Name="field", EmitDefaultValue=false)] - public string Field { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OptionsFieldRequestDTO {\n"); - sb.Append(" Argument: ").Append(Argument).Append("\n"); - sb.Append(" Field: ").Append(Field).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OptionsFieldRequestDTO); - } - - /// - /// Returns true if OptionsFieldRequestDTO instances are equal - /// - /// Instance of OptionsFieldRequestDTO to be compared - /// Boolean - public bool Equals(OptionsFieldRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Argument == input.Argument || - (this.Argument != null && - this.Argument.Equals(input.Argument)) - ) && - ( - this.Field == input.Field || - (this.Field != null && - this.Field.Equals(input.Field)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Argument != null) - hashCode = hashCode * 59 + this.Argument.GetHashCode(); - if (this.Field != null) - hashCode = hashCode * 59 + this.Field.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/OptionsRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/OptionsRequestDTO.cs deleted file mode 100644 index 33c2a0b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/OptionsRequestDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of options information - /// - [DataContract] - public partial class OptionsRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Argument. - /// Value. - public OptionsRequestDTO(string argument = default(string), string value = default(string)) - { - this.Argument = argument; - this.Value = value; - } - - /// - /// Argument - /// - /// Argument - [DataMember(Name="argument", EmitDefaultValue=false)] - public string Argument { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OptionsRequestDTO {\n"); - sb.Append(" Argument: ").Append(Argument).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OptionsRequestDTO); - } - - /// - /// Returns true if OptionsRequestDTO instances are equal - /// - /// Instance of OptionsRequestDTO to be compared - /// Boolean - public bool Equals(OptionsRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Argument == input.Argument || - (this.Argument != null && - this.Argument.Equals(input.Argument)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Argument != null) - hashCode = hashCode * 59 + this.Argument.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/OptionsVisibleRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/OptionsVisibleRequestDTO.cs deleted file mode 100644 index c6f520e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/OptionsVisibleRequestDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of options information - /// - [DataContract] - public partial class OptionsVisibleRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Argument. - /// Visible. - public OptionsVisibleRequestDTO(string argument = default(string), bool? visible = default(bool?)) - { - this.Argument = argument; - this.Visible = visible; - } - - /// - /// Argument - /// - /// Argument - [DataMember(Name="argument", EmitDefaultValue=false)] - public string Argument { get; set; } - - /// - /// Visible - /// - /// Visible - [DataMember(Name="visible", EmitDefaultValue=false)] - public bool? Visible { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OptionsVisibleRequestDTO {\n"); - sb.Append(" Argument: ").Append(Argument).Append("\n"); - sb.Append(" Visible: ").Append(Visible).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OptionsVisibleRequestDTO); - } - - /// - /// Returns true if OptionsVisibleRequestDTO instances are equal - /// - /// Instance of OptionsVisibleRequestDTO to be compared - /// Boolean - public bool Equals(OptionsVisibleRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Argument == input.Argument || - (this.Argument != null && - this.Argument.Equals(input.Argument)) - ) && - ( - this.Visible == input.Visible || - (this.Visible != null && - this.Visible.Equals(input.Visible)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Argument != null) - hashCode = hashCode * 59 + this.Argument.GetHashCode(); - if (this.Visible != null) - hashCode = hashCode * 59 + this.Visible.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/OrderBy.cs b/ACUtils.AXRepository/ArxivarNext/Model/OrderBy.cs deleted file mode 100644 index 7320b0a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/OrderBy.cs +++ /dev/null @@ -1,141 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// OrderBy - /// - [DataContract] - public partial class OrderBy : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Nothing 1: Ascending 2: Descending . - /// index. - public OrderBy(int? direction = default(int?), int? index = default(int?)) - { - this.Direction = direction; - this.Index = index; - } - - /// - /// Possible values: 0: Nothing 1: Ascending 2: Descending - /// - /// Possible values: 0: Nothing 1: Ascending 2: Descending - [DataMember(Name="direction", EmitDefaultValue=false)] - public int? Direction { get; set; } - - /// - /// Gets or Sets Index - /// - [DataMember(Name="index", EmitDefaultValue=false)] - public int? Index { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OrderBy {\n"); - sb.Append(" Direction: ").Append(Direction).Append("\n"); - sb.Append(" Index: ").Append(Index).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OrderBy); - } - - /// - /// Returns true if OrderBy instances are equal - /// - /// Instance of OrderBy to be compared - /// Boolean - public bool Equals(OrderBy input) - { - if (input == null) - return false; - - return - ( - this.Direction == input.Direction || - (this.Direction != null && - this.Direction.Equals(input.Direction)) - ) && - ( - this.Index == input.Index || - (this.Index != null && - this.Index.Equals(input.Index)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Direction != null) - hashCode = hashCode * 59 + this.Direction.GetHashCode(); - if (this.Index != null) - hashCode = hashCode * 59 + this.Index.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/OriginFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/OriginFieldDTO.cs deleted file mode 100644 index 04d0db8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/OriginFieldDTO.cs +++ /dev/null @@ -1,147 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// OriginFieldDTO - /// - [DataContract] - public partial class OriginFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected OriginFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// displayValue. - /// value. - public OriginFieldDTO(string displayValue = default(string), int? value = default(int?), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "OriginFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.DisplayValue = displayValue; - this.Value = value; - } - - /// - /// Gets or Sets DisplayValue - /// - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public int? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OriginFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OriginFieldDTO); - } - - /// - /// Returns true if OriginFieldDTO instances are equal - /// - /// Instance of OriginFieldDTO to be compared - /// Boolean - public bool Equals(OriginFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/OriginalFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/OriginalFieldDTO.cs deleted file mode 100644 index 7a52c0b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/OriginalFieldDTO.cs +++ /dev/null @@ -1,131 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// OriginalFieldDTO - /// - [DataContract] - public partial class OriginalFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected OriginalFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// value. - public OriginalFieldDTO(string value = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "OriginalFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OriginalFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OriginalFieldDTO); - } - - /// - /// Returns true if OriginalFieldDTO instances are equal - /// - /// Instance of OriginalFieldDTO to be compared - /// Boolean - public bool Equals(OriginalFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/PasswordRetrieveExceptionDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/PasswordRetrieveExceptionDTO.cs deleted file mode 100644 index 9c96e74..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/PasswordRetrieveExceptionDTO.cs +++ /dev/null @@ -1,141 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// PasswordRetrieveExceptionDTO - /// - [DataContract] - public partial class PasswordRetrieveExceptionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// userMessage. - /// Possible values: 0: Generic 1: EmailNotUnique 2: EmailNotConfigured 3: EmailWrongFormat . - public PasswordRetrieveExceptionDTO(string userMessage = default(string), int? exceptionCode = default(int?)) - { - this.UserMessage = userMessage; - this.ExceptionCode = exceptionCode; - } - - /// - /// Gets or Sets UserMessage - /// - [DataMember(Name="userMessage", EmitDefaultValue=false)] - public string UserMessage { get; set; } - - /// - /// Possible values: 0: Generic 1: EmailNotUnique 2: EmailNotConfigured 3: EmailWrongFormat - /// - /// Possible values: 0: Generic 1: EmailNotUnique 2: EmailNotConfigured 3: EmailWrongFormat - [DataMember(Name="exceptionCode", EmitDefaultValue=false)] - public int? ExceptionCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PasswordRetrieveExceptionDTO {\n"); - sb.Append(" UserMessage: ").Append(UserMessage).Append("\n"); - sb.Append(" ExceptionCode: ").Append(ExceptionCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PasswordRetrieveExceptionDTO); - } - - /// - /// Returns true if PasswordRetrieveExceptionDTO instances are equal - /// - /// Instance of PasswordRetrieveExceptionDTO to be compared - /// Boolean - public bool Equals(PasswordRetrieveExceptionDTO input) - { - if (input == null) - return false; - - return - ( - this.UserMessage == input.UserMessage || - (this.UserMessage != null && - this.UserMessage.Equals(input.UserMessage)) - ) && - ( - this.ExceptionCode == input.ExceptionCode || - (this.ExceptionCode != null && - this.ExceptionCode.Equals(input.ExceptionCode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.UserMessage != null) - hashCode = hashCode * 59 + this.UserMessage.GetHashCode(); - if (this.ExceptionCode != null) - hashCode = hashCode * 59 + this.ExceptionCode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/PeriodDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/PeriodDTO.cs deleted file mode 100644 index 2e36f85..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/PeriodDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of periods for electronic storage - /// - [DataContract] - public partial class PeriodDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Description. - /// Possible values: 0: Giorno 1: Mese . - /// Start. - /// End. - public PeriodDTO(string period = default(string), int? type = default(int?), int? start = default(int?), int? end = default(int?)) - { - this.Period = period; - this.Type = type; - this.Start = start; - this.End = end; - } - - /// - /// Description - /// - /// Description - [DataMember(Name="period", EmitDefaultValue=false)] - public string Period { get; set; } - - /// - /// Possible values: 0: Giorno 1: Mese - /// - /// Possible values: 0: Giorno 1: Mese - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Start - /// - /// Start - [DataMember(Name="start", EmitDefaultValue=false)] - public int? Start { get; set; } - - /// - /// End - /// - /// End - [DataMember(Name="end", EmitDefaultValue=false)] - public int? End { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PeriodDTO {\n"); - sb.Append(" Period: ").Append(Period).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Start: ").Append(Start).Append("\n"); - sb.Append(" End: ").Append(End).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PeriodDTO); - } - - /// - /// Returns true if PeriodDTO instances are equal - /// - /// Instance of PeriodDTO to be compared - /// Boolean - public bool Equals(PeriodDTO input) - { - if (input == null) - return false; - - return - ( - this.Period == input.Period || - (this.Period != null && - this.Period.Equals(input.Period)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Start == input.Start || - (this.Start != null && - this.Start.Equals(input.Start)) - ) && - ( - this.End == input.End || - (this.End != null && - this.End.Equals(input.End)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Period != null) - hashCode = hashCode * 59 + this.Period.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Start != null) - hashCode = hashCode * 59 + this.Start.GetHashCode(); - if (this.End != null) - hashCode = hashCode * 59 + this.End.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/PermissionItemDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/PermissionItemDTO.cs deleted file mode 100644 index 9e63f17..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/PermissionItemDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of permission item - /// - [DataContract] - public partial class PermissionItemDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Allow. - /// Deny. - public PermissionItemDTO(int? permission = default(int?), bool? allow = default(bool?), bool? deny = default(bool?)) - { - this.Permission = permission; - this.Allow = allow; - this.Deny = deny; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="permission", EmitDefaultValue=false)] - public int? Permission { get; set; } - - /// - /// Allow - /// - /// Allow - [DataMember(Name="allow", EmitDefaultValue=false)] - public bool? Allow { get; set; } - - /// - /// Deny - /// - /// Deny - [DataMember(Name="deny", EmitDefaultValue=false)] - public bool? Deny { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PermissionItemDTO {\n"); - sb.Append(" Permission: ").Append(Permission).Append("\n"); - sb.Append(" Allow: ").Append(Allow).Append("\n"); - sb.Append(" Deny: ").Append(Deny).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PermissionItemDTO); - } - - /// - /// Returns true if PermissionItemDTO instances are equal - /// - /// Instance of PermissionItemDTO to be compared - /// Boolean - public bool Equals(PermissionItemDTO input) - { - if (input == null) - return false; - - return - ( - this.Permission == input.Permission || - (this.Permission != null && - this.Permission.Equals(input.Permission)) - ) && - ( - this.Allow == input.Allow || - (this.Allow != null && - this.Allow.Equals(input.Allow)) - ) && - ( - this.Deny == input.Deny || - (this.Deny != null && - this.Deny.Equals(input.Deny)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Permission != null) - hashCode = hashCode * 59 + this.Permission.GetHashCode(); - if (this.Allow != null) - hashCode = hashCode * 59 + this.Allow.GetHashCode(); - if (this.Deny != null) - hashCode = hashCode * 59 + this.Deny.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/PermissionPropertiesDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/PermissionPropertiesDTO.cs deleted file mode 100644 index 2462576..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/PermissionPropertiesDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of permission properties - /// - [DataContract] - public partial class PermissionPropertiesDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - public PermissionPropertiesDTO(int? permission = default(int?), string description = default(string)) - { - this.Permission = permission; - this.Description = description; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="permission", EmitDefaultValue=false)] - public int? Permission { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PermissionPropertiesDTO {\n"); - sb.Append(" Permission: ").Append(Permission).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PermissionPropertiesDTO); - } - - /// - /// Returns true if PermissionPropertiesDTO instances are equal - /// - /// Instance of PermissionPropertiesDTO to be compared - /// Boolean - public bool Equals(PermissionPropertiesDTO input) - { - if (input == null) - return false; - - return - ( - this.Permission == input.Permission || - (this.Permission != null && - this.Permission.Equals(input.Permission)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Permission != null) - hashCode = hashCode * 59 + this.Permission.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/PermissionsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/PermissionsDTO.cs deleted file mode 100644 index 440bac6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/PermissionsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of permissions data - /// - [DataContract] - public partial class PermissionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// List of user permissions. - /// Permission Properties. - public PermissionsDTO(List usersPermissions = default(List), List permissionsProperties = default(List)) - { - this.UsersPermissions = usersPermissions; - this.PermissionsProperties = permissionsProperties; - } - - /// - /// List of user permissions - /// - /// List of user permissions - [DataMember(Name="usersPermissions", EmitDefaultValue=false)] - public List UsersPermissions { get; set; } - - /// - /// Permission Properties - /// - /// Permission Properties - [DataMember(Name="permissionsProperties", EmitDefaultValue=false)] - public List PermissionsProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PermissionsDTO {\n"); - sb.Append(" UsersPermissions: ").Append(UsersPermissions).Append("\n"); - sb.Append(" PermissionsProperties: ").Append(PermissionsProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PermissionsDTO); - } - - /// - /// Returns true if PermissionsDTO instances are equal - /// - /// Instance of PermissionsDTO to be compared - /// Boolean - public bool Equals(PermissionsDTO input) - { - if (input == null) - return false; - - return - ( - this.UsersPermissions == input.UsersPermissions || - this.UsersPermissions != null && - this.UsersPermissions.SequenceEqual(input.UsersPermissions) - ) && - ( - this.PermissionsProperties == input.PermissionsProperties || - this.PermissionsProperties != null && - this.PermissionsProperties.SequenceEqual(input.PermissionsProperties) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.UsersPermissions != null) - hashCode = hashCode * 59 + this.UsersPermissions.GetHashCode(); - if (this.PermissionsProperties != null) - hashCode = hashCode * 59 + this.PermissionsProperties.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/PluginAdvancedCommandRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/PluginAdvancedCommandRequestDTO.cs deleted file mode 100644 index 992e33f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/PluginAdvancedCommandRequestDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for Plugin advanced command request - /// - [DataContract] - public partial class PluginAdvancedCommandRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Parameters. - /// Command. - public PluginAdvancedCommandRequestDTO(string parameters = default(string), string command = default(string)) - { - this.Parameters = parameters; - this.Command = command; - } - - /// - /// Parameters - /// - /// Parameters - [DataMember(Name="parameters", EmitDefaultValue=false)] - public string Parameters { get; set; } - - /// - /// Command - /// - /// Command - [DataMember(Name="command", EmitDefaultValue=false)] - public string Command { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PluginAdvancedCommandRequestDTO {\n"); - sb.Append(" Parameters: ").Append(Parameters).Append("\n"); - sb.Append(" Command: ").Append(Command).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PluginAdvancedCommandRequestDTO); - } - - /// - /// Returns true if PluginAdvancedCommandRequestDTO instances are equal - /// - /// Instance of PluginAdvancedCommandRequestDTO to be compared - /// Boolean - public bool Equals(PluginAdvancedCommandRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Parameters == input.Parameters || - (this.Parameters != null && - this.Parameters.Equals(input.Parameters)) - ) && - ( - this.Command == input.Command || - (this.Command != null && - this.Command.Equals(input.Command)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Parameters != null) - hashCode = hashCode * 59 + this.Parameters.GetHashCode(); - if (this.Command != null) - hashCode = hashCode * 59 + this.Command.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/PluginCommandRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/PluginCommandRequestDTO.cs deleted file mode 100644 index e3eaeb4..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/PluginCommandRequestDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for Plugin command request - /// - [DataContract] - public partial class PluginCommandRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Command. - public PluginCommandRequestDTO(string command = default(string)) - { - this.Command = command; - } - - /// - /// Command - /// - /// Command - [DataMember(Name="command", EmitDefaultValue=false)] - public string Command { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PluginCommandRequestDTO {\n"); - sb.Append(" Command: ").Append(Command).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PluginCommandRequestDTO); - } - - /// - /// Returns true if PluginCommandRequestDTO instances are equal - /// - /// Instance of PluginCommandRequestDTO to be compared - /// Boolean - public bool Equals(PluginCommandRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Command == input.Command || - (this.Command != null && - this.Command.Equals(input.Command)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Command != null) - hashCode = hashCode * 59 + this.Command.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/PluginCommandResponseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/PluginCommandResponseDTO.cs deleted file mode 100644 index 65f38d8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/PluginCommandResponseDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for Server Plugin command response - /// - [DataContract] - public partial class PluginCommandResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Response. - public PluginCommandResponseDTO(string response = default(string)) - { - this.Response = response; - } - - /// - /// Response - /// - /// Response - [DataMember(Name="response", EmitDefaultValue=false)] - public string Response { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PluginCommandResponseDTO {\n"); - sb.Append(" Response: ").Append(Response).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PluginCommandResponseDTO); - } - - /// - /// Returns true if PluginCommandResponseDTO instances are equal - /// - /// Instance of PluginCommandResponseDTO to be compared - /// Boolean - public bool Equals(PluginCommandResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.Response == input.Response || - (this.Response != null && - this.Response.Equals(input.Response)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Response != null) - hashCode = hashCode * 59 + this.Response.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/PluginSettingRequest.cs b/ACUtils.AXRepository/ArxivarNext/Model/PluginSettingRequest.cs deleted file mode 100644 index f14c73c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/PluginSettingRequest.cs +++ /dev/null @@ -1,172 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// PluginSettingRequest - /// - [DataContract] - public partial class PluginSettingRequest : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// pluginId. - /// desktopId. - /// instanceId. - /// settings. - public PluginSettingRequest(string pluginId = default(string), string desktopId = default(string), string instanceId = default(string), Dictionary settings = default(Dictionary)) - { - this.PluginId = pluginId; - this.DesktopId = desktopId; - this.InstanceId = instanceId; - this.Settings = settings; - } - - /// - /// Gets or Sets PluginId - /// - [DataMember(Name="pluginId", EmitDefaultValue=false)] - public string PluginId { get; set; } - - /// - /// Gets or Sets DesktopId - /// - [DataMember(Name="desktopId", EmitDefaultValue=false)] - public string DesktopId { get; set; } - - /// - /// Gets or Sets InstanceId - /// - [DataMember(Name="instanceId", EmitDefaultValue=false)] - public string InstanceId { get; set; } - - /// - /// Gets or Sets Settings - /// - [DataMember(Name="settings", EmitDefaultValue=false)] - public Dictionary Settings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PluginSettingRequest {\n"); - sb.Append(" PluginId: ").Append(PluginId).Append("\n"); - sb.Append(" DesktopId: ").Append(DesktopId).Append("\n"); - sb.Append(" InstanceId: ").Append(InstanceId).Append("\n"); - sb.Append(" Settings: ").Append(Settings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PluginSettingRequest); - } - - /// - /// Returns true if PluginSettingRequest instances are equal - /// - /// Instance of PluginSettingRequest to be compared - /// Boolean - public bool Equals(PluginSettingRequest input) - { - if (input == null) - return false; - - return - ( - this.PluginId == input.PluginId || - (this.PluginId != null && - this.PluginId.Equals(input.PluginId)) - ) && - ( - this.DesktopId == input.DesktopId || - (this.DesktopId != null && - this.DesktopId.Equals(input.DesktopId)) - ) && - ( - this.InstanceId == input.InstanceId || - (this.InstanceId != null && - this.InstanceId.Equals(input.InstanceId)) - ) && - ( - this.Settings == input.Settings || - this.Settings != null && - this.Settings.SequenceEqual(input.Settings) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.PluginId != null) - hashCode = hashCode * 59 + this.PluginId.GetHashCode(); - if (this.DesktopId != null) - hashCode = hashCode * 59 + this.DesktopId.GetHashCode(); - if (this.InstanceId != null) - hashCode = hashCode * 59 + this.InstanceId.GetHashCode(); - if (this.Settings != null) - hashCode = hashCode * 59 + this.Settings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/PnDeviceDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/PnDeviceDTO.cs deleted file mode 100644 index d8a8414..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/PnDeviceDTO.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// PnDeviceDTO - /// - [DataContract] - public partial class PnDeviceDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// userId. - /// Possible values: 0: Ios 1: Android 2: WindowsPhone . - /// token. - /// enabled. - /// Possible values: 0: ArxMobile 1: ArxMobileTasks 2: ArxMobileNext . - public PnDeviceDTO(int? id = default(int?), int? userId = default(int?), int? deviceKind = default(int?), string token = default(string), bool? enabled = default(bool?), int? appKind = default(int?)) - { - this.Id = id; - this.UserId = userId; - this.DeviceKind = deviceKind; - this.Token = token; - this.Enabled = enabled; - this.AppKind = appKind; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or Sets UserId - /// - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Possible values: 0: Ios 1: Android 2: WindowsPhone - /// - /// Possible values: 0: Ios 1: Android 2: WindowsPhone - [DataMember(Name="deviceKind", EmitDefaultValue=false)] - public int? DeviceKind { get; set; } - - /// - /// Gets or Sets Token - /// - [DataMember(Name="token", EmitDefaultValue=false)] - public string Token { get; set; } - - /// - /// Gets or Sets Enabled - /// - [DataMember(Name="enabled", EmitDefaultValue=false)] - public bool? Enabled { get; set; } - - /// - /// Possible values: 0: ArxMobile 1: ArxMobileTasks 2: ArxMobileNext - /// - /// Possible values: 0: ArxMobile 1: ArxMobileTasks 2: ArxMobileNext - [DataMember(Name="appKind", EmitDefaultValue=false)] - public int? AppKind { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PnDeviceDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" DeviceKind: ").Append(DeviceKind).Append("\n"); - sb.Append(" Token: ").Append(Token).Append("\n"); - sb.Append(" Enabled: ").Append(Enabled).Append("\n"); - sb.Append(" AppKind: ").Append(AppKind).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PnDeviceDTO); - } - - /// - /// Returns true if PnDeviceDTO instances are equal - /// - /// Instance of PnDeviceDTO to be compared - /// Boolean - public bool Equals(PnDeviceDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.DeviceKind == input.DeviceKind || - (this.DeviceKind != null && - this.DeviceKind.Equals(input.DeviceKind)) - ) && - ( - this.Token == input.Token || - (this.Token != null && - this.Token.Equals(input.Token)) - ) && - ( - this.Enabled == input.Enabled || - (this.Enabled != null && - this.Enabled.Equals(input.Enabled)) - ) && - ( - this.AppKind == input.AppKind || - (this.AppKind != null && - this.AppKind.Equals(input.AppKind)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.DeviceKind != null) - hashCode = hashCode * 59 + this.DeviceKind.GetHashCode(); - if (this.Token != null) - hashCode = hashCode * 59 + this.Token.GetHashCode(); - if (this.Enabled != null) - hashCode = hashCode * 59 + this.Enabled.GetHashCode(); - if (this.AppKind != null) - hashCode = hashCode * 59 + this.AppKind.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/PortalLogoutRequestDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/PortalLogoutRequestDto.cs deleted file mode 100644 index 4995fff..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/PortalLogoutRequestDto.cs +++ /dev/null @@ -1,172 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// PortalLogoutRequestDto - /// - [DataContract] - public partial class PortalLogoutRequestDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected PortalLogoutRequestDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Client id (required). - /// Machine Key. - /// Request Ip Address. - public PortalLogoutRequestDto(string clientId = default(string), string userId = default(string), string ipAddress = default(string)) - { - // to ensure "clientId" is required (not null) - if (clientId == null) - { - throw new InvalidDataException("clientId is a required property for PortalLogoutRequestDto and cannot be null"); - } - else - { - this.ClientId = clientId; - } - this.UserId = userId; - this.IpAddress = ipAddress; - } - - /// - /// Client id - /// - /// Client id - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// Machine Key - /// - /// Machine Key - [DataMember(Name="userId", EmitDefaultValue=false)] - public string UserId { get; set; } - - /// - /// Request Ip Address - /// - /// Request Ip Address - [DataMember(Name="ipAddress", EmitDefaultValue=false)] - public string IpAddress { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PortalLogoutRequestDto {\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PortalLogoutRequestDto); - } - - /// - /// Returns true if PortalLogoutRequestDto instances are equal - /// - /// Instance of PortalLogoutRequestDto to be compared - /// Boolean - public bool Equals(PortalLogoutRequestDto input) - { - if (input == null) - return false; - - return - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.IpAddress == input.IpAddress || - (this.IpAddress != null && - this.IpAddress.Equals(input.IpAddress)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.IpAddress != null) - hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/PostProfilationActionDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/PostProfilationActionDTO.cs deleted file mode 100644 index eb7e470..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/PostProfilationActionDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of a action in post profilation - /// - [DataContract] - public partial class PostProfilationActionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Short description. - /// Description. - /// Possible values: 15: StartWorkFlow 16: SendViaFax 17: SendViaMail 18: AttachToActiveWorkflow 19: InsertInAssociation 20: InsertInFolder 21: InsertInManualRelation 29: SetPermissions 31: AttachMemo 33: StartCollaboration 34: ImmediatlyScan . - /// Visible. - /// Active. - public PostProfilationActionDTO(string shortDescription = default(string), string description = default(string), int? action = default(int?), bool? visible = default(bool?), bool? value = default(bool?)) - { - this.ShortDescription = shortDescription; - this.Description = description; - this.Action = action; - this.Visible = visible; - this.Value = value; - } - - /// - /// Short description - /// - /// Short description - [DataMember(Name="shortDescription", EmitDefaultValue=false)] - public string ShortDescription { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 15: StartWorkFlow 16: SendViaFax 17: SendViaMail 18: AttachToActiveWorkflow 19: InsertInAssociation 20: InsertInFolder 21: InsertInManualRelation 29: SetPermissions 31: AttachMemo 33: StartCollaboration 34: ImmediatlyScan - /// - /// Possible values: 15: StartWorkFlow 16: SendViaFax 17: SendViaMail 18: AttachToActiveWorkflow 19: InsertInAssociation 20: InsertInFolder 21: InsertInManualRelation 29: SetPermissions 31: AttachMemo 33: StartCollaboration 34: ImmediatlyScan - [DataMember(Name="action", EmitDefaultValue=false)] - public int? Action { get; set; } - - /// - /// Visible - /// - /// Visible - [DataMember(Name="visible", EmitDefaultValue=false)] - public bool? Visible { get; set; } - - /// - /// Active - /// - /// Active - [DataMember(Name="value", EmitDefaultValue=false)] - public bool? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PostProfilationActionDTO {\n"); - sb.Append(" ShortDescription: ").Append(ShortDescription).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Action: ").Append(Action).Append("\n"); - sb.Append(" Visible: ").Append(Visible).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PostProfilationActionDTO); - } - - /// - /// Returns true if PostProfilationActionDTO instances are equal - /// - /// Instance of PostProfilationActionDTO to be compared - /// Boolean - public bool Equals(PostProfilationActionDTO input) - { - if (input == null) - return false; - - return - ( - this.ShortDescription == input.ShortDescription || - (this.ShortDescription != null && - this.ShortDescription.Equals(input.ShortDescription)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Action == input.Action || - (this.Action != null && - this.Action.Equals(input.Action)) - ) && - ( - this.Visible == input.Visible || - (this.Visible != null && - this.Visible.Equals(input.Visible)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ShortDescription != null) - hashCode = hashCode * 59 + this.ShortDescription.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Action != null) - hashCode = hashCode * 59 + this.Action.GetHashCode(); - if (this.Visible != null) - hashCode = hashCode * 59 + this.Visible.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/PredefinedProfileDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/PredefinedProfileDTO.cs deleted file mode 100644 index f464b74..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/PredefinedProfileDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of predefined profile data - /// - [DataContract] - public partial class PredefinedProfileDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// List of post profilation actions. - /// Full name of the user who created the predefined profile. - /// Creation date. - /// Document type identifier. - /// Business code. - /// User identifier. - /// Collaboration Identifier. - /// List of fields. - public PredefinedProfileDTO(int? id = default(int?), string name = default(string), List postProfilationActions = default(List), string userCompleteName = default(string), DateTime? creationDate = default(DateTime?), int? documentType = default(int?), string aoo = default(string), int? user = default(int?), string collaborationTemplateId = default(string), List fields = default(List)) - { - this.Id = id; - this.Name = name; - this.PostProfilationActions = postProfilationActions; - this.UserCompleteName = userCompleteName; - this.CreationDate = creationDate; - this.DocumentType = documentType; - this.Aoo = aoo; - this.User = user; - this.CollaborationTemplateId = collaborationTemplateId; - this.Fields = fields; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// List of post profilation actions - /// - /// List of post profilation actions - [DataMember(Name="postProfilationActions", EmitDefaultValue=false)] - public List PostProfilationActions { get; set; } - - /// - /// Full name of the user who created the predefined profile - /// - /// Full name of the user who created the predefined profile - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Creation date - /// - /// Creation date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Document type identifier - /// - /// Document type identifier - [DataMember(Name="documentType", EmitDefaultValue=false)] - public int? DocumentType { get; set; } - - /// - /// Business code - /// - /// Business code - [DataMember(Name="aoo", EmitDefaultValue=false)] - public string Aoo { get; set; } - - /// - /// User identifier - /// - /// User identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Collaboration Identifier - /// - /// Collaboration Identifier - [DataMember(Name="collaborationTemplateId", EmitDefaultValue=false)] - public string CollaborationTemplateId { get; set; } - - /// - /// List of fields - /// - /// List of fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PredefinedProfileDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" PostProfilationActions: ").Append(PostProfilationActions).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Aoo: ").Append(Aoo).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" CollaborationTemplateId: ").Append(CollaborationTemplateId).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PredefinedProfileDTO); - } - - /// - /// Returns true if PredefinedProfileDTO instances are equal - /// - /// Instance of PredefinedProfileDTO to be compared - /// Boolean - public bool Equals(PredefinedProfileDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.PostProfilationActions == input.PostProfilationActions || - this.PostProfilationActions != null && - this.PostProfilationActions.SequenceEqual(input.PostProfilationActions) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Aoo == input.Aoo || - (this.Aoo != null && - this.Aoo.Equals(input.Aoo)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.CollaborationTemplateId == input.CollaborationTemplateId || - (this.CollaborationTemplateId != null && - this.CollaborationTemplateId.Equals(input.CollaborationTemplateId)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.PostProfilationActions != null) - hashCode = hashCode * 59 + this.PostProfilationActions.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Aoo != null) - hashCode = hashCode * 59 + this.Aoo.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.CollaborationTemplateId != null) - hashCode = hashCode * 59 + this.CollaborationTemplateId.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/PredefinedProfileSchemaDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/PredefinedProfileSchemaDTO.cs deleted file mode 100644 index 0a9cb12..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/PredefinedProfileSchemaDTO.cs +++ /dev/null @@ -1,312 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of predefined profile schema - /// - [DataContract] - public partial class PredefinedProfileSchemaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Predefined Profile Identifier. - /// Identifier. - /// File data. - /// Fields. - /// Post Profilation Actions. - /// Possible values: 0: None 1: ForceInsert 2: State . - /// Attachments. - /// Notes. - /// Public Amministration Notes. - /// Authority Data. - /// Defines if a protocol has been generated. - /// File Writing Settings. - public PredefinedProfileSchemaDTO(int? predefinedProfileId = default(int?), int? id = default(int?), FileDTO document = default(FileDTO), List fields = default(List), List postProfilationActions = default(List), int? constrainRoleBehaviour = default(int?), List attachments = default(List), List notes = default(List), List paNotes = default(List), AuthorityDataDTO authorityData = default(AuthorityDataDTO), bool? generatePaProtocol = default(bool?), DocumentsWritingSettingsDTO fileWritingSettings = default(DocumentsWritingSettingsDTO)) - { - this.PredefinedProfileId = predefinedProfileId; - this.Id = id; - this.Document = document; - this.Fields = fields; - this.PostProfilationActions = postProfilationActions; - this.ConstrainRoleBehaviour = constrainRoleBehaviour; - this.Attachments = attachments; - this.Notes = notes; - this.PaNotes = paNotes; - this.AuthorityData = authorityData; - this.GeneratePaProtocol = generatePaProtocol; - this.FileWritingSettings = fileWritingSettings; - } - - /// - /// Predefined Profile Identifier - /// - /// Predefined Profile Identifier - [DataMember(Name="predefinedProfileId", EmitDefaultValue=false)] - public int? PredefinedProfileId { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// File data - /// - /// File data - [DataMember(Name="document", EmitDefaultValue=false)] - public FileDTO Document { get; set; } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Post Profilation Actions - /// - /// Post Profilation Actions - [DataMember(Name="postProfilationActions", EmitDefaultValue=false)] - public List PostProfilationActions { get; set; } - - /// - /// Possible values: 0: None 1: ForceInsert 2: State - /// - /// Possible values: 0: None 1: ForceInsert 2: State - [DataMember(Name="constrainRoleBehaviour", EmitDefaultValue=false)] - public int? ConstrainRoleBehaviour { get; set; } - - /// - /// Attachments - /// - /// Attachments - [DataMember(Name="attachments", EmitDefaultValue=false)] - public List Attachments { get; set; } - - /// - /// Notes - /// - /// Notes - [DataMember(Name="notes", EmitDefaultValue=false)] - public List Notes { get; set; } - - /// - /// Public Amministration Notes - /// - /// Public Amministration Notes - [DataMember(Name="paNotes", EmitDefaultValue=false)] - public List PaNotes { get; set; } - - /// - /// Authority Data - /// - /// Authority Data - [DataMember(Name="authorityData", EmitDefaultValue=false)] - public AuthorityDataDTO AuthorityData { get; set; } - - /// - /// Defines if a protocol has been generated - /// - /// Defines if a protocol has been generated - [DataMember(Name="generatePaProtocol", EmitDefaultValue=false)] - public bool? GeneratePaProtocol { get; set; } - - /// - /// File Writing Settings - /// - /// File Writing Settings - [DataMember(Name="fileWritingSettings", EmitDefaultValue=false)] - public DocumentsWritingSettingsDTO FileWritingSettings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PredefinedProfileSchemaDTO {\n"); - sb.Append(" PredefinedProfileId: ").Append(PredefinedProfileId).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Document: ").Append(Document).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append(" PostProfilationActions: ").Append(PostProfilationActions).Append("\n"); - sb.Append(" ConstrainRoleBehaviour: ").Append(ConstrainRoleBehaviour).Append("\n"); - sb.Append(" Attachments: ").Append(Attachments).Append("\n"); - sb.Append(" Notes: ").Append(Notes).Append("\n"); - sb.Append(" PaNotes: ").Append(PaNotes).Append("\n"); - sb.Append(" AuthorityData: ").Append(AuthorityData).Append("\n"); - sb.Append(" GeneratePaProtocol: ").Append(GeneratePaProtocol).Append("\n"); - sb.Append(" FileWritingSettings: ").Append(FileWritingSettings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PredefinedProfileSchemaDTO); - } - - /// - /// Returns true if PredefinedProfileSchemaDTO instances are equal - /// - /// Instance of PredefinedProfileSchemaDTO to be compared - /// Boolean - public bool Equals(PredefinedProfileSchemaDTO input) - { - if (input == null) - return false; - - return - ( - this.PredefinedProfileId == input.PredefinedProfileId || - (this.PredefinedProfileId != null && - this.PredefinedProfileId.Equals(input.PredefinedProfileId)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Document == input.Document || - (this.Document != null && - this.Document.Equals(input.Document)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ) && - ( - this.PostProfilationActions == input.PostProfilationActions || - this.PostProfilationActions != null && - this.PostProfilationActions.SequenceEqual(input.PostProfilationActions) - ) && - ( - this.ConstrainRoleBehaviour == input.ConstrainRoleBehaviour || - (this.ConstrainRoleBehaviour != null && - this.ConstrainRoleBehaviour.Equals(input.ConstrainRoleBehaviour)) - ) && - ( - this.Attachments == input.Attachments || - this.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.Notes == input.Notes || - this.Notes != null && - this.Notes.SequenceEqual(input.Notes) - ) && - ( - this.PaNotes == input.PaNotes || - this.PaNotes != null && - this.PaNotes.SequenceEqual(input.PaNotes) - ) && - ( - this.AuthorityData == input.AuthorityData || - (this.AuthorityData != null && - this.AuthorityData.Equals(input.AuthorityData)) - ) && - ( - this.GeneratePaProtocol == input.GeneratePaProtocol || - (this.GeneratePaProtocol != null && - this.GeneratePaProtocol.Equals(input.GeneratePaProtocol)) - ) && - ( - this.FileWritingSettings == input.FileWritingSettings || - (this.FileWritingSettings != null && - this.FileWritingSettings.Equals(input.FileWritingSettings)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.PredefinedProfileId != null) - hashCode = hashCode * 59 + this.PredefinedProfileId.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Document != null) - hashCode = hashCode * 59 + this.Document.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - if (this.PostProfilationActions != null) - hashCode = hashCode * 59 + this.PostProfilationActions.GetHashCode(); - if (this.ConstrainRoleBehaviour != null) - hashCode = hashCode * 59 + this.ConstrainRoleBehaviour.GetHashCode(); - if (this.Attachments != null) - hashCode = hashCode * 59 + this.Attachments.GetHashCode(); - if (this.Notes != null) - hashCode = hashCode * 59 + this.Notes.GetHashCode(); - if (this.PaNotes != null) - hashCode = hashCode * 59 + this.PaNotes.GetHashCode(); - if (this.AuthorityData != null) - hashCode = hashCode * 59 + this.AuthorityData.GetHashCode(); - if (this.GeneratePaProtocol != null) - hashCode = hashCode * 59 + this.GeneratePaProtocol.GetHashCode(); - if (this.FileWritingSettings != null) - hashCode = hashCode * 59 + this.FileWritingSettings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/PreviewSchemaDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/PreviewSchemaDTO.cs deleted file mode 100644 index 709f8fc..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/PreviewSchemaDTO.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of preview schema - /// - [DataContract] - public partial class PreviewSchemaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Number of pages. - /// Possible values: 0: Ok 1: Error 2: Pending . - /// errorMessage. - public PreviewSchemaDTO(int? countPages = default(int?), int? status = default(int?), string errorMessage = default(string)) - { - this.CountPages = countPages; - this.Status = status; - this.ErrorMessage = errorMessage; - } - - /// - /// Number of pages - /// - /// Number of pages - [DataMember(Name="countPages", EmitDefaultValue=false)] - public int? CountPages { get; set; } - - /// - /// Possible values: 0: Ok 1: Error 2: Pending - /// - /// Possible values: 0: Ok 1: Error 2: Pending - [DataMember(Name="status", EmitDefaultValue=false)] - public int? Status { get; set; } - - /// - /// Gets or Sets ErrorMessage - /// - [DataMember(Name="errorMessage", EmitDefaultValue=false)] - public string ErrorMessage { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PreviewSchemaDTO {\n"); - sb.Append(" CountPages: ").Append(CountPages).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" ErrorMessage: ").Append(ErrorMessage).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PreviewSchemaDTO); - } - - /// - /// Returns true if PreviewSchemaDTO instances are equal - /// - /// Instance of PreviewSchemaDTO to be compared - /// Boolean - public bool Equals(PreviewSchemaDTO input) - { - if (input == null) - return false; - - return - ( - this.CountPages == input.CountPages || - (this.CountPages != null && - this.CountPages.Equals(input.CountPages)) - ) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && - ( - this.ErrorMessage == input.ErrorMessage || - (this.ErrorMessage != null && - this.ErrorMessage.Equals(input.ErrorMessage)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CountPages != null) - hashCode = hashCode * 59 + this.CountPages.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.ErrorMessage != null) - hashCode = hashCode * 59 + this.ErrorMessage.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProcessAttachmentInsertDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProcessAttachmentInsertDto.cs deleted file mode 100644 index 49f60bc..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProcessAttachmentInsertDto.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of insert a process attachment - /// - [DataContract] - public partial class ProcessAttachmentInsertDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Taskwork Identifier. - /// Document Identifier. - /// Set the attachment \"tosend\" flag. - /// Create a link. - public ProcessAttachmentInsertDto(int? taskworkId = default(int?), int? docnumber = default(int?), bool? toSend = default(bool?), bool? link = default(bool?)) - { - this.TaskworkId = taskworkId; - this.Docnumber = docnumber; - this.ToSend = toSend; - this.Link = link; - } - - /// - /// Taskwork Identifier - /// - /// Taskwork Identifier - [DataMember(Name="taskworkId", EmitDefaultValue=false)] - public int? TaskworkId { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Set the attachment \"tosend\" flag - /// - /// Set the attachment \"tosend\" flag - [DataMember(Name="toSend", EmitDefaultValue=false)] - public bool? ToSend { get; set; } - - /// - /// Create a link - /// - /// Create a link - [DataMember(Name="link", EmitDefaultValue=false)] - public bool? Link { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProcessAttachmentInsertDto {\n"); - sb.Append(" TaskworkId: ").Append(TaskworkId).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" ToSend: ").Append(ToSend).Append("\n"); - sb.Append(" Link: ").Append(Link).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProcessAttachmentInsertDto); - } - - /// - /// Returns true if ProcessAttachmentInsertDto instances are equal - /// - /// Instance of ProcessAttachmentInsertDto to be compared - /// Boolean - public bool Equals(ProcessAttachmentInsertDto input) - { - if (input == null) - return false; - - return - ( - this.TaskworkId == input.TaskworkId || - (this.TaskworkId != null && - this.TaskworkId.Equals(input.TaskworkId)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.ToSend == input.ToSend || - (this.ToSend != null && - this.ToSend.Equals(input.ToSend)) - ) && - ( - this.Link == input.Link || - (this.Link != null && - this.Link.Equals(input.Link)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.TaskworkId != null) - hashCode = hashCode * 59 + this.TaskworkId.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.ToSend != null) - hashCode = hashCode * 59 + this.ToSend.GetHashCode(); - if (this.Link != null) - hashCode = hashCode * 59 + this.Link.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProcessInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProcessInfoDTO.cs deleted file mode 100644 index 3f65635..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProcessInfoDTO.cs +++ /dev/null @@ -1,220 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ProcessInfoDTO - /// - [DataContract] - public partial class ProcessInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// taskInfoList. - /// documentInfoList. - /// noteInfoList. - /// attachmentInfoList. - /// professionalRoleInfoList. - /// chronoInfoList. - /// variableInfo. - public ProcessInfoDTO(List taskInfoList = default(List), List documentInfoList = default(List), List noteInfoList = default(List), List attachmentInfoList = default(List), List professionalRoleInfoList = default(List), List chronoInfoList = default(List), ProcessInfoVariableDTO variableInfo = default(ProcessInfoVariableDTO)) - { - this.TaskInfoList = taskInfoList; - this.DocumentInfoList = documentInfoList; - this.NoteInfoList = noteInfoList; - this.AttachmentInfoList = attachmentInfoList; - this.ProfessionalRoleInfoList = professionalRoleInfoList; - this.ChronoInfoList = chronoInfoList; - this.VariableInfo = variableInfo; - } - - /// - /// Gets or Sets TaskInfoList - /// - [DataMember(Name="taskInfoList", EmitDefaultValue=false)] - public List TaskInfoList { get; set; } - - /// - /// Gets or Sets DocumentInfoList - /// - [DataMember(Name="documentInfoList", EmitDefaultValue=false)] - public List DocumentInfoList { get; set; } - - /// - /// Gets or Sets NoteInfoList - /// - [DataMember(Name="noteInfoList", EmitDefaultValue=false)] - public List NoteInfoList { get; set; } - - /// - /// Gets or Sets AttachmentInfoList - /// - [DataMember(Name="attachmentInfoList", EmitDefaultValue=false)] - public List AttachmentInfoList { get; set; } - - /// - /// Gets or Sets ProfessionalRoleInfoList - /// - [DataMember(Name="professionalRoleInfoList", EmitDefaultValue=false)] - public List ProfessionalRoleInfoList { get; set; } - - /// - /// Gets or Sets ChronoInfoList - /// - [DataMember(Name="chronoInfoList", EmitDefaultValue=false)] - public List ChronoInfoList { get; set; } - - /// - /// Gets or Sets VariableInfo - /// - [DataMember(Name="variableInfo", EmitDefaultValue=false)] - public ProcessInfoVariableDTO VariableInfo { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProcessInfoDTO {\n"); - sb.Append(" TaskInfoList: ").Append(TaskInfoList).Append("\n"); - sb.Append(" DocumentInfoList: ").Append(DocumentInfoList).Append("\n"); - sb.Append(" NoteInfoList: ").Append(NoteInfoList).Append("\n"); - sb.Append(" AttachmentInfoList: ").Append(AttachmentInfoList).Append("\n"); - sb.Append(" ProfessionalRoleInfoList: ").Append(ProfessionalRoleInfoList).Append("\n"); - sb.Append(" ChronoInfoList: ").Append(ChronoInfoList).Append("\n"); - sb.Append(" VariableInfo: ").Append(VariableInfo).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProcessInfoDTO); - } - - /// - /// Returns true if ProcessInfoDTO instances are equal - /// - /// Instance of ProcessInfoDTO to be compared - /// Boolean - public bool Equals(ProcessInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.TaskInfoList == input.TaskInfoList || - this.TaskInfoList != null && - this.TaskInfoList.SequenceEqual(input.TaskInfoList) - ) && - ( - this.DocumentInfoList == input.DocumentInfoList || - this.DocumentInfoList != null && - this.DocumentInfoList.SequenceEqual(input.DocumentInfoList) - ) && - ( - this.NoteInfoList == input.NoteInfoList || - this.NoteInfoList != null && - this.NoteInfoList.SequenceEqual(input.NoteInfoList) - ) && - ( - this.AttachmentInfoList == input.AttachmentInfoList || - this.AttachmentInfoList != null && - this.AttachmentInfoList.SequenceEqual(input.AttachmentInfoList) - ) && - ( - this.ProfessionalRoleInfoList == input.ProfessionalRoleInfoList || - this.ProfessionalRoleInfoList != null && - this.ProfessionalRoleInfoList.SequenceEqual(input.ProfessionalRoleInfoList) - ) && - ( - this.ChronoInfoList == input.ChronoInfoList || - this.ChronoInfoList != null && - this.ChronoInfoList.SequenceEqual(input.ChronoInfoList) - ) && - ( - this.VariableInfo == input.VariableInfo || - (this.VariableInfo != null && - this.VariableInfo.Equals(input.VariableInfo)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.TaskInfoList != null) - hashCode = hashCode * 59 + this.TaskInfoList.GetHashCode(); - if (this.DocumentInfoList != null) - hashCode = hashCode * 59 + this.DocumentInfoList.GetHashCode(); - if (this.NoteInfoList != null) - hashCode = hashCode * 59 + this.NoteInfoList.GetHashCode(); - if (this.AttachmentInfoList != null) - hashCode = hashCode * 59 + this.AttachmentInfoList.GetHashCode(); - if (this.ProfessionalRoleInfoList != null) - hashCode = hashCode * 59 + this.ProfessionalRoleInfoList.GetHashCode(); - if (this.ChronoInfoList != null) - hashCode = hashCode * 59 + this.ChronoInfoList.GetHashCode(); - if (this.VariableInfo != null) - hashCode = hashCode * 59 + this.VariableInfo.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProcessInfoVariableDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProcessInfoVariableDTO.cs deleted file mode 100644 index 4d784bb..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProcessInfoVariableDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of process variables information - /// - [DataContract] - public partial class ProcessInfoVariableDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// List of process variables. - /// Fields. - public ProcessInfoVariableDTO(List processVariables = default(List), ProcessVariablesFieldsDTO processVariablesFields = default(ProcessVariablesFieldsDTO)) - { - this.ProcessVariables = processVariables; - this.ProcessVariablesFields = processVariablesFields; - } - - /// - /// List of process variables - /// - /// List of process variables - [DataMember(Name="processVariables", EmitDefaultValue=false)] - public List ProcessVariables { get; set; } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="processVariablesFields", EmitDefaultValue=false)] - public ProcessVariablesFieldsDTO ProcessVariablesFields { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProcessInfoVariableDTO {\n"); - sb.Append(" ProcessVariables: ").Append(ProcessVariables).Append("\n"); - sb.Append(" ProcessVariablesFields: ").Append(ProcessVariablesFields).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProcessInfoVariableDTO); - } - - /// - /// Returns true if ProcessInfoVariableDTO instances are equal - /// - /// Instance of ProcessInfoVariableDTO to be compared - /// Boolean - public bool Equals(ProcessInfoVariableDTO input) - { - if (input == null) - return false; - - return - ( - this.ProcessVariables == input.ProcessVariables || - this.ProcessVariables != null && - this.ProcessVariables.SequenceEqual(input.ProcessVariables) - ) && - ( - this.ProcessVariablesFields == input.ProcessVariablesFields || - (this.ProcessVariablesFields != null && - this.ProcessVariablesFields.Equals(input.ProcessVariablesFields)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ProcessVariables != null) - hashCode = hashCode * 59 + this.ProcessVariables.GetHashCode(); - if (this.ProcessVariablesFields != null) - hashCode = hashCode * 59 + this.ProcessVariablesFields.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProcessNoteDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProcessNoteDTO.cs deleted file mode 100644 index d252f9e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProcessNoteDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of process note - /// - [DataContract] - public partial class ProcessNoteDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Creation Date. - /// Identifier. - /// Process Identifier. - /// Text. - /// User Description. - /// User Identifier. - public ProcessNoteDTO(DateTime? date = default(DateTime?), int? id = default(int?), int? processId = default(int?), string note = default(string), string userCompleteName = default(string), int? user = default(int?)) - { - this.Date = date; - this.Id = id; - this.ProcessId = processId; - this.Note = note; - this.UserCompleteName = userCompleteName; - this.User = user; - } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="date", EmitDefaultValue=false)] - public DateTime? Date { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Process Identifier - /// - /// Process Identifier - [DataMember(Name="processId", EmitDefaultValue=false)] - public int? ProcessId { get; set; } - - /// - /// Text - /// - /// Text - [DataMember(Name="note", EmitDefaultValue=false)] - public string Note { get; set; } - - /// - /// User Description - /// - /// User Description - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// User Identifier - /// - /// User Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProcessNoteDTO {\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ProcessId: ").Append(ProcessId).Append("\n"); - sb.Append(" Note: ").Append(Note).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProcessNoteDTO); - } - - /// - /// Returns true if ProcessNoteDTO instances are equal - /// - /// Instance of ProcessNoteDTO to be compared - /// Boolean - public bool Equals(ProcessNoteDTO input) - { - if (input == null) - return false; - - return - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ProcessId == input.ProcessId || - (this.ProcessId != null && - this.ProcessId.Equals(input.ProcessId)) - ) && - ( - this.Note == input.Note || - (this.Note != null && - this.Note.Equals(input.Note)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ProcessId != null) - hashCode = hashCode * 59 + this.ProcessId.GetHashCode(); - if (this.Note != null) - hashCode = hashCode * 59 + this.Note.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProcessVariableDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProcessVariableDTO.cs deleted file mode 100644 index 821a275..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProcessVariableDTO.cs +++ /dev/null @@ -1,363 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Process Variable information - /// - [DataContract] - public partial class ProcessVariableDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// Description. - /// Process Identifier. - /// Label. - /// Value. - /// Parent Matrix Variable Identifier. - /// Translated Label Identifier. - /// Trasnlated description Identifier. - /// Format for visualization. - /// Maximun number of row of text. - /// Is limit to list. - /// Possible values: 1: Text 2: Number 3: DateTime 4: Boolean 5: Combo 6: Matrix 7: TextArea 8: TableBox . - /// The validation string of the variable. - /// Possible values: 0: None 1: Regex 2: Formula . - public ProcessVariableDTO(int? id = default(int?), string name = default(string), string description = default(string), int? processId = default(int?), string label = default(string), string value = default(string), int? parentId = default(int?), int? labelTranslatedId = default(int?), int? descriptionTranslatedId = default(int?), int? textFormat = default(int?), int? maxRowNumber = default(int?), bool? isLimitToList = default(bool?), int? processVariableFormat = default(int?), string validationString = default(string), int? validationType = default(int?)) - { - this.Id = id; - this.Name = name; - this.Description = description; - this.ProcessId = processId; - this.Label = label; - this.Value = value; - this.ParentId = parentId; - this.LabelTranslatedId = labelTranslatedId; - this.DescriptionTranslatedId = descriptionTranslatedId; - this.TextFormat = textFormat; - this.MaxRowNumber = maxRowNumber; - this.IsLimitToList = isLimitToList; - this.ProcessVariableFormat = processVariableFormat; - this.ValidationString = validationString; - this.ValidationType = validationType; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Process Identifier - /// - /// Process Identifier - [DataMember(Name="processId", EmitDefaultValue=false)] - public int? ProcessId { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Parent Matrix Variable Identifier - /// - /// Parent Matrix Variable Identifier - [DataMember(Name="parentId", EmitDefaultValue=false)] - public int? ParentId { get; set; } - - /// - /// Translated Label Identifier - /// - /// Translated Label Identifier - [DataMember(Name="labelTranslatedId", EmitDefaultValue=false)] - public int? LabelTranslatedId { get; set; } - - /// - /// Trasnlated description Identifier - /// - /// Trasnlated description Identifier - [DataMember(Name="descriptionTranslatedId", EmitDefaultValue=false)] - public int? DescriptionTranslatedId { get; set; } - - /// - /// Format for visualization - /// - /// Format for visualization - [DataMember(Name="textFormat", EmitDefaultValue=false)] - public int? TextFormat { get; set; } - - /// - /// Maximun number of row of text - /// - /// Maximun number of row of text - [DataMember(Name="maxRowNumber", EmitDefaultValue=false)] - public int? MaxRowNumber { get; set; } - - /// - /// Is limit to list - /// - /// Is limit to list - [DataMember(Name="isLimitToList", EmitDefaultValue=false)] - public bool? IsLimitToList { get; set; } - - /// - /// Possible values: 1: Text 2: Number 3: DateTime 4: Boolean 5: Combo 6: Matrix 7: TextArea 8: TableBox - /// - /// Possible values: 1: Text 2: Number 3: DateTime 4: Boolean 5: Combo 6: Matrix 7: TextArea 8: TableBox - [DataMember(Name="processVariableFormat", EmitDefaultValue=false)] - public int? ProcessVariableFormat { get; set; } - - /// - /// The validation string of the variable - /// - /// The validation string of the variable - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProcessVariableDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ProcessId: ").Append(ProcessId).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" ParentId: ").Append(ParentId).Append("\n"); - sb.Append(" LabelTranslatedId: ").Append(LabelTranslatedId).Append("\n"); - sb.Append(" DescriptionTranslatedId: ").Append(DescriptionTranslatedId).Append("\n"); - sb.Append(" TextFormat: ").Append(TextFormat).Append("\n"); - sb.Append(" MaxRowNumber: ").Append(MaxRowNumber).Append("\n"); - sb.Append(" IsLimitToList: ").Append(IsLimitToList).Append("\n"); - sb.Append(" ProcessVariableFormat: ").Append(ProcessVariableFormat).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProcessVariableDTO); - } - - /// - /// Returns true if ProcessVariableDTO instances are equal - /// - /// Instance of ProcessVariableDTO to be compared - /// Boolean - public bool Equals(ProcessVariableDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.ProcessId == input.ProcessId || - (this.ProcessId != null && - this.ProcessId.Equals(input.ProcessId)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && - ( - this.ParentId == input.ParentId || - (this.ParentId != null && - this.ParentId.Equals(input.ParentId)) - ) && - ( - this.LabelTranslatedId == input.LabelTranslatedId || - (this.LabelTranslatedId != null && - this.LabelTranslatedId.Equals(input.LabelTranslatedId)) - ) && - ( - this.DescriptionTranslatedId == input.DescriptionTranslatedId || - (this.DescriptionTranslatedId != null && - this.DescriptionTranslatedId.Equals(input.DescriptionTranslatedId)) - ) && - ( - this.TextFormat == input.TextFormat || - (this.TextFormat != null && - this.TextFormat.Equals(input.TextFormat)) - ) && - ( - this.MaxRowNumber == input.MaxRowNumber || - (this.MaxRowNumber != null && - this.MaxRowNumber.Equals(input.MaxRowNumber)) - ) && - ( - this.IsLimitToList == input.IsLimitToList || - (this.IsLimitToList != null && - this.IsLimitToList.Equals(input.IsLimitToList)) - ) && - ( - this.ProcessVariableFormat == input.ProcessVariableFormat || - (this.ProcessVariableFormat != null && - this.ProcessVariableFormat.Equals(input.ProcessVariableFormat)) - ) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ProcessId != null) - hashCode = hashCode * 59 + this.ProcessId.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.ParentId != null) - hashCode = hashCode * 59 + this.ParentId.GetHashCode(); - if (this.LabelTranslatedId != null) - hashCode = hashCode * 59 + this.LabelTranslatedId.GetHashCode(); - if (this.DescriptionTranslatedId != null) - hashCode = hashCode * 59 + this.DescriptionTranslatedId.GetHashCode(); - if (this.TextFormat != null) - hashCode = hashCode * 59 + this.TextFormat.GetHashCode(); - if (this.MaxRowNumber != null) - hashCode = hashCode * 59 + this.MaxRowNumber.GetHashCode(); - if (this.IsLimitToList != null) - hashCode = hashCode * 59 + this.IsLimitToList.GetHashCode(); - if (this.ProcessVariableFormat != null) - hashCode = hashCode * 59 + this.ProcessVariableFormat.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProcessVariableValidationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProcessVariableValidationDTO.cs deleted file mode 100644 index 4151c05..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProcessVariableValidationDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for process validation - /// - [DataContract] - public partial class ProcessVariableValidationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// The variable the must be validated. - /// The complete list of the process variables. - public ProcessVariableValidationDTO(string variableName = default(string), ProcessVariablesFieldsDTO currentData = default(ProcessVariablesFieldsDTO)) - { - this.VariableName = variableName; - this.CurrentData = currentData; - } - - /// - /// The variable the must be validated - /// - /// The variable the must be validated - [DataMember(Name="variableName", EmitDefaultValue=false)] - public string VariableName { get; set; } - - /// - /// The complete list of the process variables - /// - /// The complete list of the process variables - [DataMember(Name="currentData", EmitDefaultValue=false)] - public ProcessVariablesFieldsDTO CurrentData { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProcessVariableValidationDTO {\n"); - sb.Append(" VariableName: ").Append(VariableName).Append("\n"); - sb.Append(" CurrentData: ").Append(CurrentData).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProcessVariableValidationDTO); - } - - /// - /// Returns true if ProcessVariableValidationDTO instances are equal - /// - /// Instance of ProcessVariableValidationDTO to be compared - /// Boolean - public bool Equals(ProcessVariableValidationDTO input) - { - if (input == null) - return false; - - return - ( - this.VariableName == input.VariableName || - (this.VariableName != null && - this.VariableName.Equals(input.VariableName)) - ) && - ( - this.CurrentData == input.CurrentData || - (this.CurrentData != null && - this.CurrentData.Equals(input.CurrentData)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.VariableName != null) - hashCode = hashCode * 59 + this.VariableName.GetHashCode(); - if (this.CurrentData != null) - hashCode = hashCode * 59 + this.CurrentData.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProcessVariablesFieldsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProcessVariablesFieldsDTO.cs deleted file mode 100644 index cbd6e04..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProcessVariablesFieldsDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of fields of process variable - /// - [DataContract] - public partial class ProcessVariablesFieldsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// List of variables in boolean format. - /// List of variables in string format. - /// List of variables in list format. - /// List of variables in datetime format. - /// List of variables in decimal format. - /// List of variables in table format. - public ProcessVariablesFieldsDTO(List booleanVariables = default(List), List stringVariables = default(List), List comboVariables = default(List), List dateTimeVariables = default(List), List doubleVariables = default(List), List tableVariables = default(List)) - { - this.BooleanVariables = booleanVariables; - this.StringVariables = stringVariables; - this.ComboVariables = comboVariables; - this.DateTimeVariables = dateTimeVariables; - this.DoubleVariables = doubleVariables; - this.TableVariables = tableVariables; - } - - /// - /// List of variables in boolean format - /// - /// List of variables in boolean format - [DataMember(Name="booleanVariables", EmitDefaultValue=false)] - public List BooleanVariables { get; set; } - - /// - /// List of variables in string format - /// - /// List of variables in string format - [DataMember(Name="stringVariables", EmitDefaultValue=false)] - public List StringVariables { get; set; } - - /// - /// List of variables in list format - /// - /// List of variables in list format - [DataMember(Name="comboVariables", EmitDefaultValue=false)] - public List ComboVariables { get; set; } - - /// - /// List of variables in datetime format - /// - /// List of variables in datetime format - [DataMember(Name="dateTimeVariables", EmitDefaultValue=false)] - public List DateTimeVariables { get; set; } - - /// - /// List of variables in decimal format - /// - /// List of variables in decimal format - [DataMember(Name="doubleVariables", EmitDefaultValue=false)] - public List DoubleVariables { get; set; } - - /// - /// List of variables in table format - /// - /// List of variables in table format - [DataMember(Name="tableVariables", EmitDefaultValue=false)] - public List TableVariables { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProcessVariablesFieldsDTO {\n"); - sb.Append(" BooleanVariables: ").Append(BooleanVariables).Append("\n"); - sb.Append(" StringVariables: ").Append(StringVariables).Append("\n"); - sb.Append(" ComboVariables: ").Append(ComboVariables).Append("\n"); - sb.Append(" DateTimeVariables: ").Append(DateTimeVariables).Append("\n"); - sb.Append(" DoubleVariables: ").Append(DoubleVariables).Append("\n"); - sb.Append(" TableVariables: ").Append(TableVariables).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProcessVariablesFieldsDTO); - } - - /// - /// Returns true if ProcessVariablesFieldsDTO instances are equal - /// - /// Instance of ProcessVariablesFieldsDTO to be compared - /// Boolean - public bool Equals(ProcessVariablesFieldsDTO input) - { - if (input == null) - return false; - - return - ( - this.BooleanVariables == input.BooleanVariables || - this.BooleanVariables != null && - this.BooleanVariables.SequenceEqual(input.BooleanVariables) - ) && - ( - this.StringVariables == input.StringVariables || - this.StringVariables != null && - this.StringVariables.SequenceEqual(input.StringVariables) - ) && - ( - this.ComboVariables == input.ComboVariables || - this.ComboVariables != null && - this.ComboVariables.SequenceEqual(input.ComboVariables) - ) && - ( - this.DateTimeVariables == input.DateTimeVariables || - this.DateTimeVariables != null && - this.DateTimeVariables.SequenceEqual(input.DateTimeVariables) - ) && - ( - this.DoubleVariables == input.DoubleVariables || - this.DoubleVariables != null && - this.DoubleVariables.SequenceEqual(input.DoubleVariables) - ) && - ( - this.TableVariables == input.TableVariables || - this.TableVariables != null && - this.TableVariables.SequenceEqual(input.TableVariables) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.BooleanVariables != null) - hashCode = hashCode * 59 + this.BooleanVariables.GetHashCode(); - if (this.StringVariables != null) - hashCode = hashCode * 59 + this.StringVariables.GetHashCode(); - if (this.ComboVariables != null) - hashCode = hashCode * 59 + this.ComboVariables.GetHashCode(); - if (this.DateTimeVariables != null) - hashCode = hashCode * 59 + this.DateTimeVariables.GetHashCode(); - if (this.DoubleVariables != null) - hashCode = hashCode * 59 + this.DoubleVariables.GetHashCode(); - if (this.TableVariables != null) - hashCode = hashCode * 59 + this.TableVariables.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProcessVariablesMappingDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProcessVariablesMappingDTO.cs deleted file mode 100644 index 8a84b4f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProcessVariablesMappingDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Process Variables mapping - /// - [DataContract] - public partial class ProcessVariablesMappingDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Process variable list. - public ProcessVariablesMappingDTO(List processVariableList = default(List)) - { - this.ProcessVariableList = processVariableList; - } - - /// - /// Process variable list - /// - /// Process variable list - [DataMember(Name="processVariableList", EmitDefaultValue=false)] - public List ProcessVariableList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProcessVariablesMappingDTO {\n"); - sb.Append(" ProcessVariableList: ").Append(ProcessVariableList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProcessVariablesMappingDTO); - } - - /// - /// Returns true if ProcessVariablesMappingDTO instances are equal - /// - /// Instance of ProcessVariablesMappingDTO to be compared - /// Boolean - public bool Equals(ProcessVariablesMappingDTO input) - { - if (input == null) - return false; - - return - ( - this.ProcessVariableList == input.ProcessVariableList || - this.ProcessVariableList != null && - this.ProcessVariableList.SequenceEqual(input.ProcessVariableList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ProcessVariableList != null) - hashCode = hashCode * 59 + this.ProcessVariableList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProfessionalRoleInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProfessionalRoleInfoDTO.cs deleted file mode 100644 index 6b21099..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProfessionalRoleInfoDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of professional role - /// - [DataContract] - public partial class ProfessionalRoleInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// User Identifier. - /// User Description. - /// Professional Role Identifier. - /// Professional Role Description. - public ProfessionalRoleInfoDTO(int? id = default(int?), int? userId = default(int?), string userCompleteName = default(string), int? professionalRoleId = default(int?), string professionalRoleCompleteName = default(string)) - { - this.Id = id; - this.UserId = userId; - this.UserCompleteName = userCompleteName; - this.ProfessionalRoleId = professionalRoleId; - this.ProfessionalRoleCompleteName = professionalRoleCompleteName; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// User Identifier - /// - /// User Identifier - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// User Description - /// - /// User Description - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Professional Role Identifier - /// - /// Professional Role Identifier - [DataMember(Name="professionalRoleId", EmitDefaultValue=false)] - public int? ProfessionalRoleId { get; set; } - - /// - /// Professional Role Description - /// - /// Professional Role Description - [DataMember(Name="professionalRoleCompleteName", EmitDefaultValue=false)] - public string ProfessionalRoleCompleteName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProfessionalRoleInfoDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" ProfessionalRoleId: ").Append(ProfessionalRoleId).Append("\n"); - sb.Append(" ProfessionalRoleCompleteName: ").Append(ProfessionalRoleCompleteName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProfessionalRoleInfoDTO); - } - - /// - /// Returns true if ProfessionalRoleInfoDTO instances are equal - /// - /// Instance of ProfessionalRoleInfoDTO to be compared - /// Boolean - public bool Equals(ProfessionalRoleInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.ProfessionalRoleId == input.ProfessionalRoleId || - (this.ProfessionalRoleId != null && - this.ProfessionalRoleId.Equals(input.ProfessionalRoleId)) - ) && - ( - this.ProfessionalRoleCompleteName == input.ProfessionalRoleCompleteName || - (this.ProfessionalRoleCompleteName != null && - this.ProfessionalRoleCompleteName.Equals(input.ProfessionalRoleCompleteName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.ProfessionalRoleId != null) - hashCode = hashCode * 59 + this.ProfessionalRoleId.GetHashCode(); - if (this.ProfessionalRoleCompleteName != null) - hashCode = hashCode * 59 + this.ProfessionalRoleCompleteName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProfessionalRoleOperationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProfessionalRoleOperationDTO.cs deleted file mode 100644 index 2bc5047..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProfessionalRoleOperationDTO.cs +++ /dev/null @@ -1,295 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Professional Role operation. - /// - [DataContract] - public partial class ProfessionalRoleOperationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Professional role operation id.. - /// Process Id.. - /// Professional Role Id. - /// User Id.. - /// User complete name.. - /// Organization chart Id.. - /// Delegation Id.. - /// Original user Id .. - /// Original user organization chart Id.. - /// Professional role name.. - /// ExitCode related to this professional role in the task. - public ProfessionalRoleOperationDTO(int? id = default(int?), int? processId = default(int?), int? professionalRoleId = default(int?), int? userId = default(int?), string userCompleteName = default(string), int? organizationChartId = default(int?), int? delegationId = default(int?), int? originalUserId = default(int?), int? originalOrganizationChartId = default(int?), string professionalRoleName = default(string), string exitCode = default(string)) - { - this.Id = id; - this.ProcessId = processId; - this.ProfessionalRoleId = professionalRoleId; - this.UserId = userId; - this.UserCompleteName = userCompleteName; - this.OrganizationChartId = organizationChartId; - this.DelegationId = delegationId; - this.OriginalUserId = originalUserId; - this.OriginalOrganizationChartId = originalOrganizationChartId; - this.ProfessionalRoleName = professionalRoleName; - this.ExitCode = exitCode; - } - - /// - /// Professional role operation id. - /// - /// Professional role operation id. - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Process Id. - /// - /// Process Id. - [DataMember(Name="processId", EmitDefaultValue=false)] - public int? ProcessId { get; set; } - - /// - /// Professional Role Id - /// - /// Professional Role Id - [DataMember(Name="professionalRoleId", EmitDefaultValue=false)] - public int? ProfessionalRoleId { get; set; } - - /// - /// User Id. - /// - /// User Id. - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// User complete name. - /// - /// User complete name. - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Organization chart Id. - /// - /// Organization chart Id. - [DataMember(Name="organizationChartId", EmitDefaultValue=false)] - public int? OrganizationChartId { get; set; } - - /// - /// Delegation Id. - /// - /// Delegation Id. - [DataMember(Name="delegationId", EmitDefaultValue=false)] - public int? DelegationId { get; set; } - - /// - /// Original user Id . - /// - /// Original user Id . - [DataMember(Name="originalUserId", EmitDefaultValue=false)] - public int? OriginalUserId { get; set; } - - /// - /// Original user organization chart Id. - /// - /// Original user organization chart Id. - [DataMember(Name="originalOrganizationChartId", EmitDefaultValue=false)] - public int? OriginalOrganizationChartId { get; set; } - - /// - /// Professional role name. - /// - /// Professional role name. - [DataMember(Name="professionalRoleName", EmitDefaultValue=false)] - public string ProfessionalRoleName { get; set; } - - /// - /// ExitCode related to this professional role in the task - /// - /// ExitCode related to this professional role in the task - [DataMember(Name="exitCode", EmitDefaultValue=false)] - public string ExitCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProfessionalRoleOperationDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ProcessId: ").Append(ProcessId).Append("\n"); - sb.Append(" ProfessionalRoleId: ").Append(ProfessionalRoleId).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" OrganizationChartId: ").Append(OrganizationChartId).Append("\n"); - sb.Append(" DelegationId: ").Append(DelegationId).Append("\n"); - sb.Append(" OriginalUserId: ").Append(OriginalUserId).Append("\n"); - sb.Append(" OriginalOrganizationChartId: ").Append(OriginalOrganizationChartId).Append("\n"); - sb.Append(" ProfessionalRoleName: ").Append(ProfessionalRoleName).Append("\n"); - sb.Append(" ExitCode: ").Append(ExitCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProfessionalRoleOperationDTO); - } - - /// - /// Returns true if ProfessionalRoleOperationDTO instances are equal - /// - /// Instance of ProfessionalRoleOperationDTO to be compared - /// Boolean - public bool Equals(ProfessionalRoleOperationDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ProcessId == input.ProcessId || - (this.ProcessId != null && - this.ProcessId.Equals(input.ProcessId)) - ) && - ( - this.ProfessionalRoleId == input.ProfessionalRoleId || - (this.ProfessionalRoleId != null && - this.ProfessionalRoleId.Equals(input.ProfessionalRoleId)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.OrganizationChartId == input.OrganizationChartId || - (this.OrganizationChartId != null && - this.OrganizationChartId.Equals(input.OrganizationChartId)) - ) && - ( - this.DelegationId == input.DelegationId || - (this.DelegationId != null && - this.DelegationId.Equals(input.DelegationId)) - ) && - ( - this.OriginalUserId == input.OriginalUserId || - (this.OriginalUserId != null && - this.OriginalUserId.Equals(input.OriginalUserId)) - ) && - ( - this.OriginalOrganizationChartId == input.OriginalOrganizationChartId || - (this.OriginalOrganizationChartId != null && - this.OriginalOrganizationChartId.Equals(input.OriginalOrganizationChartId)) - ) && - ( - this.ProfessionalRoleName == input.ProfessionalRoleName || - (this.ProfessionalRoleName != null && - this.ProfessionalRoleName.Equals(input.ProfessionalRoleName)) - ) && - ( - this.ExitCode == input.ExitCode || - (this.ExitCode != null && - this.ExitCode.Equals(input.ExitCode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ProcessId != null) - hashCode = hashCode * 59 + this.ProcessId.GetHashCode(); - if (this.ProfessionalRoleId != null) - hashCode = hashCode * 59 + this.ProfessionalRoleId.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.OrganizationChartId != null) - hashCode = hashCode * 59 + this.OrganizationChartId.GetHashCode(); - if (this.DelegationId != null) - hashCode = hashCode * 59 + this.DelegationId.GetHashCode(); - if (this.OriginalUserId != null) - hashCode = hashCode * 59 + this.OriginalUserId.GetHashCode(); - if (this.OriginalOrganizationChartId != null) - hashCode = hashCode * 59 + this.OriginalOrganizationChartId.GetHashCode(); - if (this.ProfessionalRoleName != null) - hashCode = hashCode * 59 + this.ProfessionalRoleName.GetHashCode(); - if (this.ExitCode != null) - hashCode = hashCode * 59 + this.ExitCode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProfessionalRoleOperationsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProfessionalRoleOperationsDTO.cs deleted file mode 100644 index 1caef09..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProfessionalRoleOperationsDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ProfessionalRoleOperationsDTO - /// - [DataContract] - public partial class ProfessionalRoleOperationsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// operations. - /// description. - public ProfessionalRoleOperationsDTO(List operations = default(List), string description = default(string)) - { - this.Operations = operations; - this.Description = description; - } - - /// - /// Gets or Sets Operations - /// - [DataMember(Name="operations", EmitDefaultValue=false)] - public List Operations { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProfessionalRoleOperationsDTO {\n"); - sb.Append(" Operations: ").Append(Operations).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProfessionalRoleOperationsDTO); - } - - /// - /// Returns true if ProfessionalRoleOperationsDTO instances are equal - /// - /// Instance of ProfessionalRoleOperationsDTO to be compared - /// Boolean - public bool Equals(ProfessionalRoleOperationsDTO input) - { - if (input == null) - return false; - - return - ( - this.Operations == input.Operations || - this.Operations != null && - this.Operations.SequenceEqual(input.Operations) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Operations != null) - hashCode = hashCode * 59 + this.Operations.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProfileAdditionalInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProfileAdditionalInfoDTO.cs deleted file mode 100644 index 2ac307c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProfileAdditionalInfoDTO.cs +++ /dev/null @@ -1,261 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of additional data for editing profile - /// - [DataContract] - public partial class ProfileAdditionalInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Enabled Protocol. - /// Protocol. - /// File name. - /// Document Identifier. - /// File Revision. - /// Creation Date. - /// Protocol Date. - /// User to create the profile. - /// User to create the profile. - public ProfileAdditionalInfoDTO(bool? isProtocolEnabled = default(bool?), string protocolNumber = default(string), string fileName = default(string), int? docNumber = default(int?), int? revision = default(int?), DateTime? creationDate = default(DateTime?), DateTime? protocolDate = default(DateTime?), string author = default(string), int? userId = default(int?)) - { - this.IsProtocolEnabled = isProtocolEnabled; - this.ProtocolNumber = protocolNumber; - this.FileName = fileName; - this.DocNumber = docNumber; - this.Revision = revision; - this.CreationDate = creationDate; - this.ProtocolDate = protocolDate; - this.Author = author; - this.UserId = userId; - } - - /// - /// Enabled Protocol - /// - /// Enabled Protocol - [DataMember(Name="isProtocolEnabled", EmitDefaultValue=false)] - public bool? IsProtocolEnabled { get; set; } - - /// - /// Protocol - /// - /// Protocol - [DataMember(Name="protocolNumber", EmitDefaultValue=false)] - public string ProtocolNumber { get; set; } - - /// - /// File name - /// - /// File name - [DataMember(Name="fileName", EmitDefaultValue=false)] - public string FileName { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docNumber", EmitDefaultValue=false)] - public int? DocNumber { get; set; } - - /// - /// File Revision - /// - /// File Revision - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Protocol Date - /// - /// Protocol Date - [DataMember(Name="protocolDate", EmitDefaultValue=false)] - public DateTime? ProtocolDate { get; set; } - - /// - /// User to create the profile - /// - /// User to create the profile - [DataMember(Name="author", EmitDefaultValue=false)] - public string Author { get; set; } - - /// - /// User to create the profile - /// - /// User to create the profile - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProfileAdditionalInfoDTO {\n"); - sb.Append(" IsProtocolEnabled: ").Append(IsProtocolEnabled).Append("\n"); - sb.Append(" ProtocolNumber: ").Append(ProtocolNumber).Append("\n"); - sb.Append(" FileName: ").Append(FileName).Append("\n"); - sb.Append(" DocNumber: ").Append(DocNumber).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" ProtocolDate: ").Append(ProtocolDate).Append("\n"); - sb.Append(" Author: ").Append(Author).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProfileAdditionalInfoDTO); - } - - /// - /// Returns true if ProfileAdditionalInfoDTO instances are equal - /// - /// Instance of ProfileAdditionalInfoDTO to be compared - /// Boolean - public bool Equals(ProfileAdditionalInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.IsProtocolEnabled == input.IsProtocolEnabled || - (this.IsProtocolEnabled != null && - this.IsProtocolEnabled.Equals(input.IsProtocolEnabled)) - ) && - ( - this.ProtocolNumber == input.ProtocolNumber || - (this.ProtocolNumber != null && - this.ProtocolNumber.Equals(input.ProtocolNumber)) - ) && - ( - this.FileName == input.FileName || - (this.FileName != null && - this.FileName.Equals(input.FileName)) - ) && - ( - this.DocNumber == input.DocNumber || - (this.DocNumber != null && - this.DocNumber.Equals(input.DocNumber)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.ProtocolDate == input.ProtocolDate || - (this.ProtocolDate != null && - this.ProtocolDate.Equals(input.ProtocolDate)) - ) && - ( - this.Author == input.Author || - (this.Author != null && - this.Author.Equals(input.Author)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IsProtocolEnabled != null) - hashCode = hashCode * 59 + this.IsProtocolEnabled.GetHashCode(); - if (this.ProtocolNumber != null) - hashCode = hashCode * 59 + this.ProtocolNumber.GetHashCode(); - if (this.FileName != null) - hashCode = hashCode * 59 + this.FileName.GetHashCode(); - if (this.DocNumber != null) - hashCode = hashCode * 59 + this.DocNumber.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.ProtocolDate != null) - hashCode = hashCode * 59 + this.ProtocolDate.GetHashCode(); - if (this.Author != null) - hashCode = hashCode * 59 + this.Author.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProfileDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProfileDTO.cs deleted file mode 100644 index 1e15b40..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProfileDTO.cs +++ /dev/null @@ -1,295 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of profile - /// - [DataContract] - public partial class ProfileDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// File data. - /// Fields. - /// Post Profilation Actions. - /// Possible values: 0: None 1: ForceInsert 2: State . - /// Attachments. - /// Notes. - /// Public Amministration Notes. - /// Authority Data. - /// Defines if a protocol has been generated. - /// File Writing Settings. - public ProfileDTO(int? id = default(int?), FileDTO document = default(FileDTO), List fields = default(List), List postProfilationActions = default(List), int? constrainRoleBehaviour = default(int?), List attachments = default(List), List notes = default(List), List paNotes = default(List), AuthorityDataDTO authorityData = default(AuthorityDataDTO), bool? generatePaProtocol = default(bool?), DocumentsWritingSettingsDTO fileWritingSettings = default(DocumentsWritingSettingsDTO)) - { - this.Id = id; - this.Document = document; - this.Fields = fields; - this.PostProfilationActions = postProfilationActions; - this.ConstrainRoleBehaviour = constrainRoleBehaviour; - this.Attachments = attachments; - this.Notes = notes; - this.PaNotes = paNotes; - this.AuthorityData = authorityData; - this.GeneratePaProtocol = generatePaProtocol; - this.FileWritingSettings = fileWritingSettings; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// File data - /// - /// File data - [DataMember(Name="document", EmitDefaultValue=false)] - public FileDTO Document { get; set; } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Post Profilation Actions - /// - /// Post Profilation Actions - [DataMember(Name="postProfilationActions", EmitDefaultValue=false)] - public List PostProfilationActions { get; set; } - - /// - /// Possible values: 0: None 1: ForceInsert 2: State - /// - /// Possible values: 0: None 1: ForceInsert 2: State - [DataMember(Name="constrainRoleBehaviour", EmitDefaultValue=false)] - public int? ConstrainRoleBehaviour { get; set; } - - /// - /// Attachments - /// - /// Attachments - [DataMember(Name="attachments", EmitDefaultValue=false)] - public List Attachments { get; set; } - - /// - /// Notes - /// - /// Notes - [DataMember(Name="notes", EmitDefaultValue=false)] - public List Notes { get; set; } - - /// - /// Public Amministration Notes - /// - /// Public Amministration Notes - [DataMember(Name="paNotes", EmitDefaultValue=false)] - public List PaNotes { get; set; } - - /// - /// Authority Data - /// - /// Authority Data - [DataMember(Name="authorityData", EmitDefaultValue=false)] - public AuthorityDataDTO AuthorityData { get; set; } - - /// - /// Defines if a protocol has been generated - /// - /// Defines if a protocol has been generated - [DataMember(Name="generatePaProtocol", EmitDefaultValue=false)] - public bool? GeneratePaProtocol { get; set; } - - /// - /// File Writing Settings - /// - /// File Writing Settings - [DataMember(Name="fileWritingSettings", EmitDefaultValue=false)] - public DocumentsWritingSettingsDTO FileWritingSettings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProfileDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Document: ").Append(Document).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append(" PostProfilationActions: ").Append(PostProfilationActions).Append("\n"); - sb.Append(" ConstrainRoleBehaviour: ").Append(ConstrainRoleBehaviour).Append("\n"); - sb.Append(" Attachments: ").Append(Attachments).Append("\n"); - sb.Append(" Notes: ").Append(Notes).Append("\n"); - sb.Append(" PaNotes: ").Append(PaNotes).Append("\n"); - sb.Append(" AuthorityData: ").Append(AuthorityData).Append("\n"); - sb.Append(" GeneratePaProtocol: ").Append(GeneratePaProtocol).Append("\n"); - sb.Append(" FileWritingSettings: ").Append(FileWritingSettings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProfileDTO); - } - - /// - /// Returns true if ProfileDTO instances are equal - /// - /// Instance of ProfileDTO to be compared - /// Boolean - public bool Equals(ProfileDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Document == input.Document || - (this.Document != null && - this.Document.Equals(input.Document)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ) && - ( - this.PostProfilationActions == input.PostProfilationActions || - this.PostProfilationActions != null && - this.PostProfilationActions.SequenceEqual(input.PostProfilationActions) - ) && - ( - this.ConstrainRoleBehaviour == input.ConstrainRoleBehaviour || - (this.ConstrainRoleBehaviour != null && - this.ConstrainRoleBehaviour.Equals(input.ConstrainRoleBehaviour)) - ) && - ( - this.Attachments == input.Attachments || - this.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.Notes == input.Notes || - this.Notes != null && - this.Notes.SequenceEqual(input.Notes) - ) && - ( - this.PaNotes == input.PaNotes || - this.PaNotes != null && - this.PaNotes.SequenceEqual(input.PaNotes) - ) && - ( - this.AuthorityData == input.AuthorityData || - (this.AuthorityData != null && - this.AuthorityData.Equals(input.AuthorityData)) - ) && - ( - this.GeneratePaProtocol == input.GeneratePaProtocol || - (this.GeneratePaProtocol != null && - this.GeneratePaProtocol.Equals(input.GeneratePaProtocol)) - ) && - ( - this.FileWritingSettings == input.FileWritingSettings || - (this.FileWritingSettings != null && - this.FileWritingSettings.Equals(input.FileWritingSettings)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Document != null) - hashCode = hashCode * 59 + this.Document.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - if (this.PostProfilationActions != null) - hashCode = hashCode * 59 + this.PostProfilationActions.GetHashCode(); - if (this.ConstrainRoleBehaviour != null) - hashCode = hashCode * 59 + this.ConstrainRoleBehaviour.GetHashCode(); - if (this.Attachments != null) - hashCode = hashCode * 59 + this.Attachments.GetHashCode(); - if (this.Notes != null) - hashCode = hashCode * 59 + this.Notes.GetHashCode(); - if (this.PaNotes != null) - hashCode = hashCode * 59 + this.PaNotes.GetHashCode(); - if (this.AuthorityData != null) - hashCode = hashCode * 59 + this.AuthorityData.GetHashCode(); - if (this.GeneratePaProtocol != null) - hashCode = hashCode * 59 + this.GeneratePaProtocol.GetHashCode(); - if (this.FileWritingSettings != null) - hashCode = hashCode * 59 + this.FileWritingSettings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProfileForDesktopDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProfileForDesktopDTO.cs deleted file mode 100644 index 20c4560..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProfileForDesktopDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of profile desktop information - /// - [DataContract] - public partial class ProfileForDesktopDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Revision. - /// Document Identifier. - /// Internal Protocol. - /// Subject. - /// Date of document. - /// Reciviers. - /// Sender. - /// File name associated with the profile. - public ProfileForDesktopDTO(int? revision = default(int?), int? docNumber = default(int?), string number = default(string), string subject = default(string), DateTime? documentDate = default(DateTime?), string to = default(string), string from = default(string), string fileName = default(string)) - { - this.Revision = revision; - this.DocNumber = docNumber; - this.Number = number; - this.Subject = subject; - this.DocumentDate = documentDate; - this.To = to; - this.From = from; - this.FileName = fileName; - } - - /// - /// Revision - /// - /// Revision - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docNumber", EmitDefaultValue=false)] - public int? DocNumber { get; set; } - - /// - /// Internal Protocol - /// - /// Internal Protocol - [DataMember(Name="number", EmitDefaultValue=false)] - public string Number { get; set; } - - /// - /// Subject - /// - /// Subject - [DataMember(Name="subject", EmitDefaultValue=false)] - public string Subject { get; set; } - - /// - /// Date of document - /// - /// Date of document - [DataMember(Name="documentDate", EmitDefaultValue=false)] - public DateTime? DocumentDate { get; set; } - - /// - /// Reciviers - /// - /// Reciviers - [DataMember(Name="to", EmitDefaultValue=false)] - public string To { get; set; } - - /// - /// Sender - /// - /// Sender - [DataMember(Name="from", EmitDefaultValue=false)] - public string From { get; set; } - - /// - /// File name associated with the profile - /// - /// File name associated with the profile - [DataMember(Name="fileName", EmitDefaultValue=false)] - public string FileName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProfileForDesktopDTO {\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" DocNumber: ").Append(DocNumber).Append("\n"); - sb.Append(" Number: ").Append(Number).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" DocumentDate: ").Append(DocumentDate).Append("\n"); - sb.Append(" To: ").Append(To).Append("\n"); - sb.Append(" From: ").Append(From).Append("\n"); - sb.Append(" FileName: ").Append(FileName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProfileForDesktopDTO); - } - - /// - /// Returns true if ProfileForDesktopDTO instances are equal - /// - /// Instance of ProfileForDesktopDTO to be compared - /// Boolean - public bool Equals(ProfileForDesktopDTO input) - { - if (input == null) - return false; - - return - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.DocNumber == input.DocNumber || - (this.DocNumber != null && - this.DocNumber.Equals(input.DocNumber)) - ) && - ( - this.Number == input.Number || - (this.Number != null && - this.Number.Equals(input.Number)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.DocumentDate == input.DocumentDate || - (this.DocumentDate != null && - this.DocumentDate.Equals(input.DocumentDate)) - ) && - ( - this.To == input.To || - (this.To != null && - this.To.Equals(input.To)) - ) && - ( - this.From == input.From || - (this.From != null && - this.From.Equals(input.From)) - ) && - ( - this.FileName == input.FileName || - (this.FileName != null && - this.FileName.Equals(input.FileName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.DocNumber != null) - hashCode = hashCode * 59 + this.DocNumber.GetHashCode(); - if (this.Number != null) - hashCode = hashCode * 59 + this.Number.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.DocumentDate != null) - hashCode = hashCode * 59 + this.DocumentDate.GetHashCode(); - if (this.To != null) - hashCode = hashCode * 59 + this.To.GetHashCode(); - if (this.From != null) - hashCode = hashCode * 59 + this.From.GetHashCode(); - if (this.FileName != null) - hashCode = hashCode * 59 + this.FileName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProfileMailResponseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProfileMailResponseDTO.cs deleted file mode 100644 index 556c417..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProfileMailResponseDTO.cs +++ /dev/null @@ -1,141 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ProfileMailResponseDTO - /// - [DataContract] - public partial class ProfileMailResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Automatic 1: Interactive 2: Asynchronous . - /// responseItemList. - public ProfileMailResponseDTO(int? processingMode = default(int?), List responseItemList = default(List)) - { - this.ProcessingMode = processingMode; - this.ResponseItemList = responseItemList; - } - - /// - /// Possible values: 0: Automatic 1: Interactive 2: Asynchronous - /// - /// Possible values: 0: Automatic 1: Interactive 2: Asynchronous - [DataMember(Name="processingMode", EmitDefaultValue=false)] - public int? ProcessingMode { get; set; } - - /// - /// Gets or Sets ResponseItemList - /// - [DataMember(Name="responseItemList", EmitDefaultValue=false)] - public List ResponseItemList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProfileMailResponseDTO {\n"); - sb.Append(" ProcessingMode: ").Append(ProcessingMode).Append("\n"); - sb.Append(" ResponseItemList: ").Append(ResponseItemList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProfileMailResponseDTO); - } - - /// - /// Returns true if ProfileMailResponseDTO instances are equal - /// - /// Instance of ProfileMailResponseDTO to be compared - /// Boolean - public bool Equals(ProfileMailResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.ProcessingMode == input.ProcessingMode || - (this.ProcessingMode != null && - this.ProcessingMode.Equals(input.ProcessingMode)) - ) && - ( - this.ResponseItemList == input.ResponseItemList || - this.ResponseItemList != null && - this.ResponseItemList.SequenceEqual(input.ResponseItemList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ProcessingMode != null) - hashCode = hashCode * 59 + this.ProcessingMode.GetHashCode(); - if (this.ResponseItemList != null) - hashCode = hashCode * 59 + this.ResponseItemList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProfileMailResponseItem.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProfileMailResponseItem.cs deleted file mode 100644 index 3b5496a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProfileMailResponseItem.cs +++ /dev/null @@ -1,141 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ProfileMailResponseItem - /// - [DataContract] - public partial class ProfileMailResponseItem : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 1: Docnumber 2: JobId 3: ProfileSkipped 4: BufferId 5: ExistingDocnumber 6: ProtocolYear 7: InternalProtocolNumber 8: ProtocolNumber . - /// message. - public ProfileMailResponseItem(int? responseProperty = default(int?), string message = default(string)) - { - this.ResponseProperty = responseProperty; - this.Message = message; - } - - /// - /// Possible values: 1: Docnumber 2: JobId 3: ProfileSkipped 4: BufferId 5: ExistingDocnumber 6: ProtocolYear 7: InternalProtocolNumber 8: ProtocolNumber - /// - /// Possible values: 1: Docnumber 2: JobId 3: ProfileSkipped 4: BufferId 5: ExistingDocnumber 6: ProtocolYear 7: InternalProtocolNumber 8: ProtocolNumber - [DataMember(Name="responseProperty", EmitDefaultValue=false)] - public int? ResponseProperty { get; set; } - - /// - /// Gets or Sets Message - /// - [DataMember(Name="message", EmitDefaultValue=false)] - public string Message { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProfileMailResponseItem {\n"); - sb.Append(" ResponseProperty: ").Append(ResponseProperty).Append("\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProfileMailResponseItem); - } - - /// - /// Returns true if ProfileMailResponseItem instances are equal - /// - /// Instance of ProfileMailResponseItem to be compared - /// Boolean - public bool Equals(ProfileMailResponseItem input) - { - if (input == null) - return false; - - return - ( - this.ResponseProperty == input.ResponseProperty || - (this.ResponseProperty != null && - this.ResponseProperty.Equals(input.ResponseProperty)) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ResponseProperty != null) - hashCode = hashCode * 59 + this.ResponseProperty.GetHashCode(); - if (this.Message != null) - hashCode = hashCode * 59 + this.Message.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProfileMaskBehaviourDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProfileMaskBehaviourDTO.cs deleted file mode 100644 index 7e8452f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProfileMaskBehaviourDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of behaviour associated with a profiling mask - /// - [DataContract] - public partial class ProfileMaskBehaviourDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Load the additional fields. - /// Show groups. - /// Possible values: 0: None 1: OnlyNever 2: OnlyOptionally 3: NeverOrOptionally 4: OnlyAlways 5: AlwaysOrNever 6: AlwaysOrOptionally 7: All . - public ProfileMaskBehaviourDTO(bool? loadAdditional = default(bool?), bool? showGroups = default(bool?), int? paMode = default(int?)) - { - this.LoadAdditional = loadAdditional; - this.ShowGroups = showGroups; - this.PaMode = paMode; - } - - /// - /// Load the additional fields - /// - /// Load the additional fields - [DataMember(Name="loadAdditional", EmitDefaultValue=false)] - public bool? LoadAdditional { get; set; } - - /// - /// Show groups - /// - /// Show groups - [DataMember(Name="showGroups", EmitDefaultValue=false)] - public bool? ShowGroups { get; set; } - - /// - /// Possible values: 0: None 1: OnlyNever 2: OnlyOptionally 3: NeverOrOptionally 4: OnlyAlways 5: AlwaysOrNever 6: AlwaysOrOptionally 7: All - /// - /// Possible values: 0: None 1: OnlyNever 2: OnlyOptionally 3: NeverOrOptionally 4: OnlyAlways 5: AlwaysOrNever 6: AlwaysOrOptionally 7: All - [DataMember(Name="paMode", EmitDefaultValue=false)] - public int? PaMode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProfileMaskBehaviourDTO {\n"); - sb.Append(" LoadAdditional: ").Append(LoadAdditional).Append("\n"); - sb.Append(" ShowGroups: ").Append(ShowGroups).Append("\n"); - sb.Append(" PaMode: ").Append(PaMode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProfileMaskBehaviourDTO); - } - - /// - /// Returns true if ProfileMaskBehaviourDTO instances are equal - /// - /// Instance of ProfileMaskBehaviourDTO to be compared - /// Boolean - public bool Equals(ProfileMaskBehaviourDTO input) - { - if (input == null) - return false; - - return - ( - this.LoadAdditional == input.LoadAdditional || - (this.LoadAdditional != null && - this.LoadAdditional.Equals(input.LoadAdditional)) - ) && - ( - this.ShowGroups == input.ShowGroups || - (this.ShowGroups != null && - this.ShowGroups.Equals(input.ShowGroups)) - ) && - ( - this.PaMode == input.PaMode || - (this.PaMode != null && - this.PaMode.Equals(input.PaMode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.LoadAdditional != null) - hashCode = hashCode * 59 + this.LoadAdditional.GetHashCode(); - if (this.ShowGroups != null) - hashCode = hashCode * 59 + this.ShowGroups.GetHashCode(); - if (this.PaMode != null) - hashCode = hashCode * 59 + this.PaMode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProfileMaskOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProfileMaskOptionsDTO.cs deleted file mode 100644 index edd9fc8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProfileMaskOptionsDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of options associated with a profiling mask. - /// - [DataContract] - public partial class ProfileMaskOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Show notes. - /// Show attachments. - /// Show file selection. - /// Show scanner selection. - /// Show barcode selection. - public ProfileMaskOptionsDTO(bool? showNotes = default(bool?), bool? showAttachments = default(bool?), bool? showFileSelection = default(bool?), bool? showScannerSelection = default(bool?), bool? showBarcodeSelection = default(bool?)) - { - this.ShowNotes = showNotes; - this.ShowAttachments = showAttachments; - this.ShowFileSelection = showFileSelection; - this.ShowScannerSelection = showScannerSelection; - this.ShowBarcodeSelection = showBarcodeSelection; - } - - /// - /// Show notes - /// - /// Show notes - [DataMember(Name="showNotes", EmitDefaultValue=false)] - public bool? ShowNotes { get; set; } - - /// - /// Show attachments - /// - /// Show attachments - [DataMember(Name="showAttachments", EmitDefaultValue=false)] - public bool? ShowAttachments { get; set; } - - /// - /// Show file selection - /// - /// Show file selection - [DataMember(Name="showFileSelection", EmitDefaultValue=false)] - public bool? ShowFileSelection { get; set; } - - /// - /// Show scanner selection - /// - /// Show scanner selection - [DataMember(Name="showScannerSelection", EmitDefaultValue=false)] - public bool? ShowScannerSelection { get; set; } - - /// - /// Show barcode selection - /// - /// Show barcode selection - [DataMember(Name="showBarcodeSelection", EmitDefaultValue=false)] - public bool? ShowBarcodeSelection { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProfileMaskOptionsDTO {\n"); - sb.Append(" ShowNotes: ").Append(ShowNotes).Append("\n"); - sb.Append(" ShowAttachments: ").Append(ShowAttachments).Append("\n"); - sb.Append(" ShowFileSelection: ").Append(ShowFileSelection).Append("\n"); - sb.Append(" ShowScannerSelection: ").Append(ShowScannerSelection).Append("\n"); - sb.Append(" ShowBarcodeSelection: ").Append(ShowBarcodeSelection).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProfileMaskOptionsDTO); - } - - /// - /// Returns true if ProfileMaskOptionsDTO instances are equal - /// - /// Instance of ProfileMaskOptionsDTO to be compared - /// Boolean - public bool Equals(ProfileMaskOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.ShowNotes == input.ShowNotes || - (this.ShowNotes != null && - this.ShowNotes.Equals(input.ShowNotes)) - ) && - ( - this.ShowAttachments == input.ShowAttachments || - (this.ShowAttachments != null && - this.ShowAttachments.Equals(input.ShowAttachments)) - ) && - ( - this.ShowFileSelection == input.ShowFileSelection || - (this.ShowFileSelection != null && - this.ShowFileSelection.Equals(input.ShowFileSelection)) - ) && - ( - this.ShowScannerSelection == input.ShowScannerSelection || - (this.ShowScannerSelection != null && - this.ShowScannerSelection.Equals(input.ShowScannerSelection)) - ) && - ( - this.ShowBarcodeSelection == input.ShowBarcodeSelection || - (this.ShowBarcodeSelection != null && - this.ShowBarcodeSelection.Equals(input.ShowBarcodeSelection)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ShowNotes != null) - hashCode = hashCode * 59 + this.ShowNotes.GetHashCode(); - if (this.ShowAttachments != null) - hashCode = hashCode * 59 + this.ShowAttachments.GetHashCode(); - if (this.ShowFileSelection != null) - hashCode = hashCode * 59 + this.ShowFileSelection.GetHashCode(); - if (this.ShowScannerSelection != null) - hashCode = hashCode * 59 + this.ShowScannerSelection.GetHashCode(); - if (this.ShowBarcodeSelection != null) - hashCode = hashCode * 59 + this.ShowBarcodeSelection.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProfilePostExceptionDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProfilePostExceptionDTO.cs deleted file mode 100644 index 4b4a4aa..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProfilePostExceptionDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of exception of profiling - /// - [DataContract] - public partial class ProfilePostExceptionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Message. - /// Possible values: 0: Generico 1: RegolaDiUnivocità . - public ProfilePostExceptionDTO(string userMessage = default(string), int? exceptionCode = default(int?)) - { - this.UserMessage = userMessage; - this.ExceptionCode = exceptionCode; - } - - /// - /// Message - /// - /// Message - [DataMember(Name="userMessage", EmitDefaultValue=false)] - public string UserMessage { get; set; } - - /// - /// Possible values: 0: Generico 1: RegolaDiUnivocità - /// - /// Possible values: 0: Generico 1: RegolaDiUnivocità - [DataMember(Name="exceptionCode", EmitDefaultValue=false)] - public int? ExceptionCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProfilePostExceptionDTO {\n"); - sb.Append(" UserMessage: ").Append(UserMessage).Append("\n"); - sb.Append(" ExceptionCode: ").Append(ExceptionCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProfilePostExceptionDTO); - } - - /// - /// Returns true if ProfilePostExceptionDTO instances are equal - /// - /// Instance of ProfilePostExceptionDTO to be compared - /// Boolean - public bool Equals(ProfilePostExceptionDTO input) - { - if (input == null) - return false; - - return - ( - this.UserMessage == input.UserMessage || - (this.UserMessage != null && - this.UserMessage.Equals(input.UserMessage)) - ) && - ( - this.ExceptionCode == input.ExceptionCode || - (this.ExceptionCode != null && - this.ExceptionCode.Equals(input.ExceptionCode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.UserMessage != null) - hashCode = hashCode * 59 + this.UserMessage.GetHashCode(); - if (this.ExceptionCode != null) - hashCode = hashCode * 59 + this.ExceptionCode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProfilePreviewDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProfilePreviewDTO.cs deleted file mode 100644 index 4e766db..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProfilePreviewDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of document preview - /// - [DataContract] - public partial class ProfilePreviewDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// List of preview groups. - /// If true all the additional fileds are returned. - public ProfilePreviewDTO(List fieldsGroups = default(List), bool? showAllAggiuntivi = default(bool?)) - { - this.FieldsGroups = fieldsGroups; - this.ShowAllAggiuntivi = showAllAggiuntivi; - } - - /// - /// List of preview groups - /// - /// List of preview groups - [DataMember(Name="fieldsGroups", EmitDefaultValue=false)] - public List FieldsGroups { get; set; } - - /// - /// If true all the additional fileds are returned - /// - /// If true all the additional fileds are returned - [DataMember(Name="showAllAggiuntivi", EmitDefaultValue=false)] - public bool? ShowAllAggiuntivi { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProfilePreviewDTO {\n"); - sb.Append(" FieldsGroups: ").Append(FieldsGroups).Append("\n"); - sb.Append(" ShowAllAggiuntivi: ").Append(ShowAllAggiuntivi).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProfilePreviewDTO); - } - - /// - /// Returns true if ProfilePreviewDTO instances are equal - /// - /// Instance of ProfilePreviewDTO to be compared - /// Boolean - public bool Equals(ProfilePreviewDTO input) - { - if (input == null) - return false; - - return - ( - this.FieldsGroups == input.FieldsGroups || - this.FieldsGroups != null && - this.FieldsGroups.SequenceEqual(input.FieldsGroups) - ) && - ( - this.ShowAllAggiuntivi == input.ShowAllAggiuntivi || - (this.ShowAllAggiuntivi != null && - this.ShowAllAggiuntivi.Equals(input.ShowAllAggiuntivi)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.FieldsGroups != null) - hashCode = hashCode * 59 + this.FieldsGroups.GetHashCode(); - if (this.ShowAllAggiuntivi != null) - hashCode = hashCode * 59 + this.ShowAllAggiuntivi.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProfilePreviewGroupDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProfilePreviewGroupDTO.cs deleted file mode 100644 index cc8c6c6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProfilePreviewGroupDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of preview group for documents - /// - [DataContract] - public partial class ProfilePreviewGroupDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Label of Group. - /// Label. - /// Order. - /// List of Fields. - /// Possible values: 0: Standard 1: From 2: To 3: CC 4: Senders 5: Additionals 6: Notes 7: InternalAttachments 8: ExternalAttachments 9: Folders 10: Binders 11: Associations . - /// Group Id. - public ProfilePreviewGroupDTO(string labelGroup = default(string), string label = default(string), int? order = default(int?), List fields = default(List), int? groupType = default(int?), int? groupId = default(int?)) - { - this.LabelGroup = labelGroup; - this.Label = label; - this.Order = order; - this.Fields = fields; - this.GroupType = groupType; - this.GroupId = groupId; - } - - /// - /// Label of Group - /// - /// Label of Group - [DataMember(Name="labelGroup", EmitDefaultValue=false)] - public string LabelGroup { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Order - /// - /// Order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// List of Fields - /// - /// List of Fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Possible values: 0: Standard 1: From 2: To 3: CC 4: Senders 5: Additionals 6: Notes 7: InternalAttachments 8: ExternalAttachments 9: Folders 10: Binders 11: Associations - /// - /// Possible values: 0: Standard 1: From 2: To 3: CC 4: Senders 5: Additionals 6: Notes 7: InternalAttachments 8: ExternalAttachments 9: Folders 10: Binders 11: Associations - [DataMember(Name="groupType", EmitDefaultValue=false)] - public int? GroupType { get; set; } - - /// - /// Group Id - /// - /// Group Id - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProfilePreviewGroupDTO {\n"); - sb.Append(" LabelGroup: ").Append(LabelGroup).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append(" GroupType: ").Append(GroupType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProfilePreviewGroupDTO); - } - - /// - /// Returns true if ProfilePreviewGroupDTO instances are equal - /// - /// Instance of ProfilePreviewGroupDTO to be compared - /// Boolean - public bool Equals(ProfilePreviewGroupDTO input) - { - if (input == null) - return false; - - return - ( - this.LabelGroup == input.LabelGroup || - (this.LabelGroup != null && - this.LabelGroup.Equals(input.LabelGroup)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ) && - ( - this.GroupType == input.GroupType || - (this.GroupType != null && - this.GroupType.Equals(input.GroupType)) - ) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.LabelGroup != null) - hashCode = hashCode * 59 + this.LabelGroup.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - if (this.GroupType != null) - hashCode = hashCode * 59 + this.GroupType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProfileResultDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProfileResultDTO.cs deleted file mode 100644 index 5a24307..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProfileResultDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of result to profiling - /// - [DataContract] - public partial class ProfileResultDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document Identifier. - /// Internal Protocol. - /// Protocol Year. - /// Protocol. - /// Defines if show the messages of the result.. - public ProfileResultDTO(int? docNumber = default(int?), string internalProtocolNumber = default(string), string year = default(string), string protocolNumber = default(string), bool? showMessage = default(bool?)) - { - this.DocNumber = docNumber; - this.InternalProtocolNumber = internalProtocolNumber; - this.Year = year; - this.ProtocolNumber = protocolNumber; - this.ShowMessage = showMessage; - } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docNumber", EmitDefaultValue=false)] - public int? DocNumber { get; set; } - - /// - /// Internal Protocol - /// - /// Internal Protocol - [DataMember(Name="internalProtocolNumber", EmitDefaultValue=false)] - public string InternalProtocolNumber { get; set; } - - /// - /// Protocol Year - /// - /// Protocol Year - [DataMember(Name="year", EmitDefaultValue=false)] - public string Year { get; set; } - - /// - /// Protocol - /// - /// Protocol - [DataMember(Name="protocolNumber", EmitDefaultValue=false)] - public string ProtocolNumber { get; set; } - - /// - /// Defines if show the messages of the result. - /// - /// Defines if show the messages of the result. - [DataMember(Name="showMessage", EmitDefaultValue=false)] - public bool? ShowMessage { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProfileResultDTO {\n"); - sb.Append(" DocNumber: ").Append(DocNumber).Append("\n"); - sb.Append(" InternalProtocolNumber: ").Append(InternalProtocolNumber).Append("\n"); - sb.Append(" Year: ").Append(Year).Append("\n"); - sb.Append(" ProtocolNumber: ").Append(ProtocolNumber).Append("\n"); - sb.Append(" ShowMessage: ").Append(ShowMessage).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProfileResultDTO); - } - - /// - /// Returns true if ProfileResultDTO instances are equal - /// - /// Instance of ProfileResultDTO to be compared - /// Boolean - public bool Equals(ProfileResultDTO input) - { - if (input == null) - return false; - - return - ( - this.DocNumber == input.DocNumber || - (this.DocNumber != null && - this.DocNumber.Equals(input.DocNumber)) - ) && - ( - this.InternalProtocolNumber == input.InternalProtocolNumber || - (this.InternalProtocolNumber != null && - this.InternalProtocolNumber.Equals(input.InternalProtocolNumber)) - ) && - ( - this.Year == input.Year || - (this.Year != null && - this.Year.Equals(input.Year)) - ) && - ( - this.ProtocolNumber == input.ProtocolNumber || - (this.ProtocolNumber != null && - this.ProtocolNumber.Equals(input.ProtocolNumber)) - ) && - ( - this.ShowMessage == input.ShowMessage || - (this.ShowMessage != null && - this.ShowMessage.Equals(input.ShowMessage)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocNumber != null) - hashCode = hashCode * 59 + this.DocNumber.GetHashCode(); - if (this.InternalProtocolNumber != null) - hashCode = hashCode * 59 + this.InternalProtocolNumber.GetHashCode(); - if (this.Year != null) - hashCode = hashCode * 59 + this.Year.GetHashCode(); - if (this.ProtocolNumber != null) - hashCode = hashCode * 59 + this.ProtocolNumber.GetHashCode(); - if (this.ShowMessage != null) - hashCode = hashCode * 59 + this.ShowMessage.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProtocolDateFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProtocolDateFieldDTO.cs deleted file mode 100644 index 2678353..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProtocolDateFieldDTO.cs +++ /dev/null @@ -1,149 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Protoco date - /// - [DataContract] - public partial class ProtocolDateFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ProtocolDateFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Protocol date value. - /// Last edit time of the document. - public ProtocolDateFieldDTO(DateTime? value = default(DateTime?), bool? editTime = default(bool?), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "ProtocolDateFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.EditTime = editTime; - } - - /// - /// Protocol date value - /// - /// Protocol date value - [DataMember(Name="value", EmitDefaultValue=false)] - public DateTime? Value { get; set; } - - /// - /// Last edit time of the document - /// - /// Last edit time of the document - [DataMember(Name="editTime", EmitDefaultValue=false)] - public bool? EditTime { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProtocolDateFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" EditTime: ").Append(EditTime).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProtocolDateFieldDTO); - } - - /// - /// Returns true if ProtocolDateFieldDTO instances are equal - /// - /// Instance of ProtocolDateFieldDTO to be compared - /// Boolean - public bool Equals(ProtocolDateFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.EditTime == input.EditTime || - (this.EditTime != null && - this.EditTime.Equals(input.EditTime)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.EditTime != null) - hashCode = hashCode * 59 + this.EditTime.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ProtocolSearchFilterDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ProtocolSearchFilterDTO.cs deleted file mode 100644 index a66b27c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ProtocolSearchFilterDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of protocol filter - /// - [DataContract] - public partial class ProtocolSearchFilterDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Protocol Number. - /// Protocol Year. - public ProtocolSearchFilterDTO(string protocol = default(string), string year = default(string)) - { - this.Protocol = protocol; - this.Year = year; - } - - /// - /// Protocol Number - /// - /// Protocol Number - [DataMember(Name="protocol", EmitDefaultValue=false)] - public string Protocol { get; set; } - - /// - /// Protocol Year - /// - /// Protocol Year - [DataMember(Name="year", EmitDefaultValue=false)] - public string Year { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProtocolSearchFilterDTO {\n"); - sb.Append(" Protocol: ").Append(Protocol).Append("\n"); - sb.Append(" Year: ").Append(Year).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProtocolSearchFilterDTO); - } - - /// - /// Returns true if ProtocolSearchFilterDTO instances are equal - /// - /// Instance of ProtocolSearchFilterDTO to be compared - /// Boolean - public bool Equals(ProtocolSearchFilterDTO input) - { - if (input == null) - return false; - - return - ( - this.Protocol == input.Protocol || - (this.Protocol != null && - this.Protocol.Equals(input.Protocol)) - ) && - ( - this.Year == input.Year || - (this.Year != null && - this.Year.Equals(input.Year)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Protocol != null) - hashCode = hashCode * 59 + this.Protocol.GetHashCode(); - if (this.Year != null) - hashCode = hashCode * 59 + this.Year.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/QueueAggregationInfoDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/QueueAggregationInfoDto.cs deleted file mode 100644 index 8fa586b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/QueueAggregationInfoDto.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of queue aggregation information - /// - [DataContract] - public partial class QueueAggregationInfoDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Queue Identifier. - /// Queue Name. - /// Queue Type. - /// Creation Date. - /// Expiration Date. - /// Items. - /// Status of items. - public QueueAggregationInfoDto(string queueId = default(string), string queueName = default(string), string queueType = default(string), DateTime? createdAt = default(DateTime?), DateTime? expireAt = default(DateTime?), int? workItemCount = default(int?), QueueStateAggregationInfoDto stateCount = default(QueueStateAggregationInfoDto)) - { - this.QueueId = queueId; - this.QueueName = queueName; - this.QueueType = queueType; - this.CreatedAt = createdAt; - this.ExpireAt = expireAt; - this.WorkItemCount = workItemCount; - this.StateCount = stateCount; - } - - /// - /// Queue Identifier - /// - /// Queue Identifier - [DataMember(Name="queueId", EmitDefaultValue=false)] - public string QueueId { get; set; } - - /// - /// Queue Name - /// - /// Queue Name - [DataMember(Name="queueName", EmitDefaultValue=false)] - public string QueueName { get; set; } - - /// - /// Queue Type - /// - /// Queue Type - [DataMember(Name="queueType", EmitDefaultValue=false)] - public string QueueType { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="createdAt", EmitDefaultValue=false)] - public DateTime? CreatedAt { get; set; } - - /// - /// Expiration Date - /// - /// Expiration Date - [DataMember(Name="expireAt", EmitDefaultValue=false)] - public DateTime? ExpireAt { get; set; } - - /// - /// Items - /// - /// Items - [DataMember(Name="workItemCount", EmitDefaultValue=false)] - public int? WorkItemCount { get; set; } - - /// - /// Status of items - /// - /// Status of items - [DataMember(Name="stateCount", EmitDefaultValue=false)] - public QueueStateAggregationInfoDto StateCount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class QueueAggregationInfoDto {\n"); - sb.Append(" QueueId: ").Append(QueueId).Append("\n"); - sb.Append(" QueueName: ").Append(QueueName).Append("\n"); - sb.Append(" QueueType: ").Append(QueueType).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" ExpireAt: ").Append(ExpireAt).Append("\n"); - sb.Append(" WorkItemCount: ").Append(WorkItemCount).Append("\n"); - sb.Append(" StateCount: ").Append(StateCount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as QueueAggregationInfoDto); - } - - /// - /// Returns true if QueueAggregationInfoDto instances are equal - /// - /// Instance of QueueAggregationInfoDto to be compared - /// Boolean - public bool Equals(QueueAggregationInfoDto input) - { - if (input == null) - return false; - - return - ( - this.QueueId == input.QueueId || - (this.QueueId != null && - this.QueueId.Equals(input.QueueId)) - ) && - ( - this.QueueName == input.QueueName || - (this.QueueName != null && - this.QueueName.Equals(input.QueueName)) - ) && - ( - this.QueueType == input.QueueType || - (this.QueueType != null && - this.QueueType.Equals(input.QueueType)) - ) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && - ( - this.ExpireAt == input.ExpireAt || - (this.ExpireAt != null && - this.ExpireAt.Equals(input.ExpireAt)) - ) && - ( - this.WorkItemCount == input.WorkItemCount || - (this.WorkItemCount != null && - this.WorkItemCount.Equals(input.WorkItemCount)) - ) && - ( - this.StateCount == input.StateCount || - (this.StateCount != null && - this.StateCount.Equals(input.StateCount)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.QueueId != null) - hashCode = hashCode * 59 + this.QueueId.GetHashCode(); - if (this.QueueName != null) - hashCode = hashCode * 59 + this.QueueName.GetHashCode(); - if (this.QueueType != null) - hashCode = hashCode * 59 + this.QueueType.GetHashCode(); - if (this.CreatedAt != null) - hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); - if (this.ExpireAt != null) - hashCode = hashCode * 59 + this.ExpireAt.GetHashCode(); - if (this.WorkItemCount != null) - hashCode = hashCode * 59 + this.WorkItemCount.GetHashCode(); - if (this.StateCount != null) - hashCode = hashCode * 59 + this.StateCount.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/QueueAggregationStatusInfoDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/QueueAggregationStatusInfoDto.cs deleted file mode 100644 index 4d4b8cd..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/QueueAggregationStatusInfoDto.cs +++ /dev/null @@ -1,276 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// QueueAggregationStatusInfoDto - /// - [DataContract] - public partial class QueueAggregationStatusInfoDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// workingProgress. - /// Possible values: 0: CompletedOk 1: CompletedPartialOk 2: CompletedKo 3: Deleted 4: Processing 5: Enqueued 6: Waiting 7: Failed . - /// isCompleted. - /// Queue Identifier. - /// Queue Name. - /// Queue Type. - /// Creation Date. - /// Expiration Date. - /// Items. - /// Status of items. - public QueueAggregationStatusInfoDto(int? workingProgress = default(int?), int? queueStatus = default(int?), bool? isCompleted = default(bool?), string queueId = default(string), string queueName = default(string), string queueType = default(string), DateTime? createdAt = default(DateTime?), DateTime? expireAt = default(DateTime?), int? workItemCount = default(int?), QueueStateAggregationInfoDto stateCount = default(QueueStateAggregationInfoDto)) - { - this.WorkingProgress = workingProgress; - this.QueueStatus = queueStatus; - this.IsCompleted = isCompleted; - this.QueueId = queueId; - this.QueueName = queueName; - this.QueueType = queueType; - this.CreatedAt = createdAt; - this.ExpireAt = expireAt; - this.WorkItemCount = workItemCount; - this.StateCount = stateCount; - } - - /// - /// Gets or Sets WorkingProgress - /// - [DataMember(Name="workingProgress", EmitDefaultValue=false)] - public int? WorkingProgress { get; set; } - - /// - /// Possible values: 0: CompletedOk 1: CompletedPartialOk 2: CompletedKo 3: Deleted 4: Processing 5: Enqueued 6: Waiting 7: Failed - /// - /// Possible values: 0: CompletedOk 1: CompletedPartialOk 2: CompletedKo 3: Deleted 4: Processing 5: Enqueued 6: Waiting 7: Failed - [DataMember(Name="queueStatus", EmitDefaultValue=false)] - public int? QueueStatus { get; set; } - - /// - /// Gets or Sets IsCompleted - /// - [DataMember(Name="isCompleted", EmitDefaultValue=false)] - public bool? IsCompleted { get; set; } - - /// - /// Queue Identifier - /// - /// Queue Identifier - [DataMember(Name="queueId", EmitDefaultValue=false)] - public string QueueId { get; set; } - - /// - /// Queue Name - /// - /// Queue Name - [DataMember(Name="queueName", EmitDefaultValue=false)] - public string QueueName { get; set; } - - /// - /// Queue Type - /// - /// Queue Type - [DataMember(Name="queueType", EmitDefaultValue=false)] - public string QueueType { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="createdAt", EmitDefaultValue=false)] - public DateTime? CreatedAt { get; set; } - - /// - /// Expiration Date - /// - /// Expiration Date - [DataMember(Name="expireAt", EmitDefaultValue=false)] - public DateTime? ExpireAt { get; set; } - - /// - /// Items - /// - /// Items - [DataMember(Name="workItemCount", EmitDefaultValue=false)] - public int? WorkItemCount { get; set; } - - /// - /// Status of items - /// - /// Status of items - [DataMember(Name="stateCount", EmitDefaultValue=false)] - public QueueStateAggregationInfoDto StateCount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class QueueAggregationStatusInfoDto {\n"); - sb.Append(" WorkingProgress: ").Append(WorkingProgress).Append("\n"); - sb.Append(" QueueStatus: ").Append(QueueStatus).Append("\n"); - sb.Append(" IsCompleted: ").Append(IsCompleted).Append("\n"); - sb.Append(" QueueId: ").Append(QueueId).Append("\n"); - sb.Append(" QueueName: ").Append(QueueName).Append("\n"); - sb.Append(" QueueType: ").Append(QueueType).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" ExpireAt: ").Append(ExpireAt).Append("\n"); - sb.Append(" WorkItemCount: ").Append(WorkItemCount).Append("\n"); - sb.Append(" StateCount: ").Append(StateCount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as QueueAggregationStatusInfoDto); - } - - /// - /// Returns true if QueueAggregationStatusInfoDto instances are equal - /// - /// Instance of QueueAggregationStatusInfoDto to be compared - /// Boolean - public bool Equals(QueueAggregationStatusInfoDto input) - { - if (input == null) - return false; - - return - ( - this.WorkingProgress == input.WorkingProgress || - (this.WorkingProgress != null && - this.WorkingProgress.Equals(input.WorkingProgress)) - ) && - ( - this.QueueStatus == input.QueueStatus || - (this.QueueStatus != null && - this.QueueStatus.Equals(input.QueueStatus)) - ) && - ( - this.IsCompleted == input.IsCompleted || - (this.IsCompleted != null && - this.IsCompleted.Equals(input.IsCompleted)) - ) && - ( - this.QueueId == input.QueueId || - (this.QueueId != null && - this.QueueId.Equals(input.QueueId)) - ) && - ( - this.QueueName == input.QueueName || - (this.QueueName != null && - this.QueueName.Equals(input.QueueName)) - ) && - ( - this.QueueType == input.QueueType || - (this.QueueType != null && - this.QueueType.Equals(input.QueueType)) - ) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && - ( - this.ExpireAt == input.ExpireAt || - (this.ExpireAt != null && - this.ExpireAt.Equals(input.ExpireAt)) - ) && - ( - this.WorkItemCount == input.WorkItemCount || - (this.WorkItemCount != null && - this.WorkItemCount.Equals(input.WorkItemCount)) - ) && - ( - this.StateCount == input.StateCount || - (this.StateCount != null && - this.StateCount.Equals(input.StateCount)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.WorkingProgress != null) - hashCode = hashCode * 59 + this.WorkingProgress.GetHashCode(); - if (this.QueueStatus != null) - hashCode = hashCode * 59 + this.QueueStatus.GetHashCode(); - if (this.IsCompleted != null) - hashCode = hashCode * 59 + this.IsCompleted.GetHashCode(); - if (this.QueueId != null) - hashCode = hashCode * 59 + this.QueueId.GetHashCode(); - if (this.QueueName != null) - hashCode = hashCode * 59 + this.QueueName.GetHashCode(); - if (this.QueueType != null) - hashCode = hashCode * 59 + this.QueueType.GetHashCode(); - if (this.CreatedAt != null) - hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); - if (this.ExpireAt != null) - hashCode = hashCode * 59 + this.ExpireAt.GetHashCode(); - if (this.WorkItemCount != null) - hashCode = hashCode * 59 + this.WorkItemCount.GetHashCode(); - if (this.StateCount != null) - hashCode = hashCode * 59 + this.StateCount.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/QueueJobDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/QueueJobDto.cs deleted file mode 100644 index ee08f73..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/QueueJobDto.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of queue job information - /// - [DataContract] - public partial class QueueJobDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Name. - /// Identifier. - /// Type. - /// Name of method. - public QueueJobDto(string jobName = default(string), string jobId = default(string), string queueType = default(string), string methodName = default(string)) - { - this.JobName = jobName; - this.JobId = jobId; - this.QueueType = queueType; - this.MethodName = methodName; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="jobName", EmitDefaultValue=false)] - public string JobName { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="jobId", EmitDefaultValue=false)] - public string JobId { get; set; } - - /// - /// Type - /// - /// Type - [DataMember(Name="queueType", EmitDefaultValue=false)] - public string QueueType { get; set; } - - /// - /// Name of method - /// - /// Name of method - [DataMember(Name="methodName", EmitDefaultValue=false)] - public string MethodName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class QueueJobDto {\n"); - sb.Append(" JobName: ").Append(JobName).Append("\n"); - sb.Append(" JobId: ").Append(JobId).Append("\n"); - sb.Append(" QueueType: ").Append(QueueType).Append("\n"); - sb.Append(" MethodName: ").Append(MethodName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as QueueJobDto); - } - - /// - /// Returns true if QueueJobDto instances are equal - /// - /// Instance of QueueJobDto to be compared - /// Boolean - public bool Equals(QueueJobDto input) - { - if (input == null) - return false; - - return - ( - this.JobName == input.JobName || - (this.JobName != null && - this.JobName.Equals(input.JobName)) - ) && - ( - this.JobId == input.JobId || - (this.JobId != null && - this.JobId.Equals(input.JobId)) - ) && - ( - this.QueueType == input.QueueType || - (this.QueueType != null && - this.QueueType.Equals(input.QueueType)) - ) && - ( - this.MethodName == input.MethodName || - (this.MethodName != null && - this.MethodName.Equals(input.MethodName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.JobName != null) - hashCode = hashCode * 59 + this.JobName.GetHashCode(); - if (this.JobId != null) - hashCode = hashCode * 59 + this.JobId.GetHashCode(); - if (this.QueueType != null) - hashCode = hashCode * 59 + this.QueueType.GetHashCode(); - if (this.MethodName != null) - hashCode = hashCode * 59 + this.MethodName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/QueueJobInfoDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/QueueJobInfoDto.cs deleted file mode 100644 index c48f9f4..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/QueueJobInfoDto.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of queue job - /// - [DataContract] - public partial class QueueJobInfoDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Queue Job. - /// Creation Date. - /// List of history queue status. - /// Expiration Date. - public QueueJobInfoDto(QueueJobDto queueJob = default(QueueJobDto), DateTime? createdAt = default(DateTime?), List history = default(List), DateTime? expireAt = default(DateTime?)) - { - this.QueueJob = queueJob; - this.CreatedAt = createdAt; - this.History = history; - this.ExpireAt = expireAt; - } - - /// - /// Queue Job - /// - /// Queue Job - [DataMember(Name="queueJob", EmitDefaultValue=false)] - public QueueJobDto QueueJob { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="createdAt", EmitDefaultValue=false)] - public DateTime? CreatedAt { get; set; } - - /// - /// List of history queue status - /// - /// List of history queue status - [DataMember(Name="history", EmitDefaultValue=false)] - public List History { get; set; } - - /// - /// Expiration Date - /// - /// Expiration Date - [DataMember(Name="expireAt", EmitDefaultValue=false)] - public DateTime? ExpireAt { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class QueueJobInfoDto {\n"); - sb.Append(" QueueJob: ").Append(QueueJob).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" History: ").Append(History).Append("\n"); - sb.Append(" ExpireAt: ").Append(ExpireAt).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as QueueJobInfoDto); - } - - /// - /// Returns true if QueueJobInfoDto instances are equal - /// - /// Instance of QueueJobInfoDto to be compared - /// Boolean - public bool Equals(QueueJobInfoDto input) - { - if (input == null) - return false; - - return - ( - this.QueueJob == input.QueueJob || - (this.QueueJob != null && - this.QueueJob.Equals(input.QueueJob)) - ) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && - ( - this.History == input.History || - this.History != null && - this.History.SequenceEqual(input.History) - ) && - ( - this.ExpireAt == input.ExpireAt || - (this.ExpireAt != null && - this.ExpireAt.Equals(input.ExpireAt)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.QueueJob != null) - hashCode = hashCode * 59 + this.QueueJob.GetHashCode(); - if (this.CreatedAt != null) - hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); - if (this.History != null) - hashCode = hashCode * 59 + this.History.GetHashCode(); - if (this.ExpireAt != null) - hashCode = hashCode * 59 + this.ExpireAt.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/QueueStateAggregationInfoDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/QueueStateAggregationInfoDto.cs deleted file mode 100644 index 55a6973..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/QueueStateAggregationInfoDto.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of status for queue aggregation - /// - [DataContract] - public partial class QueueStateAggregationInfoDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Wainting. - /// Enqueued. - /// Processing. - /// Scheduled. - /// Failed. - /// Successful. - /// Unsuccessful. - /// Deleted. - public QueueStateAggregationInfoDto(int? awaiting = default(int?), int? enqueued = default(int?), int? processing = default(int?), int? scheduled = default(int?), int? failed = default(int?), int? succededOk = default(int?), int? succededKo = default(int?), int? deleted = default(int?)) - { - this.Awaiting = awaiting; - this.Enqueued = enqueued; - this.Processing = processing; - this.Scheduled = scheduled; - this.Failed = failed; - this.SuccededOk = succededOk; - this.SuccededKo = succededKo; - this.Deleted = deleted; - } - - /// - /// Wainting - /// - /// Wainting - [DataMember(Name="awaiting", EmitDefaultValue=false)] - public int? Awaiting { get; set; } - - /// - /// Enqueued - /// - /// Enqueued - [DataMember(Name="enqueued", EmitDefaultValue=false)] - public int? Enqueued { get; set; } - - /// - /// Processing - /// - /// Processing - [DataMember(Name="processing", EmitDefaultValue=false)] - public int? Processing { get; set; } - - /// - /// Scheduled - /// - /// Scheduled - [DataMember(Name="scheduled", EmitDefaultValue=false)] - public int? Scheduled { get; set; } - - /// - /// Failed - /// - /// Failed - [DataMember(Name="failed", EmitDefaultValue=false)] - public int? Failed { get; set; } - - /// - /// Successful - /// - /// Successful - [DataMember(Name="succededOk", EmitDefaultValue=false)] - public int? SuccededOk { get; set; } - - /// - /// Unsuccessful - /// - /// Unsuccessful - [DataMember(Name="succededKo", EmitDefaultValue=false)] - public int? SuccededKo { get; set; } - - /// - /// Deleted - /// - /// Deleted - [DataMember(Name="deleted", EmitDefaultValue=false)] - public int? Deleted { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class QueueStateAggregationInfoDto {\n"); - sb.Append(" Awaiting: ").Append(Awaiting).Append("\n"); - sb.Append(" Enqueued: ").Append(Enqueued).Append("\n"); - sb.Append(" Processing: ").Append(Processing).Append("\n"); - sb.Append(" Scheduled: ").Append(Scheduled).Append("\n"); - sb.Append(" Failed: ").Append(Failed).Append("\n"); - sb.Append(" SuccededOk: ").Append(SuccededOk).Append("\n"); - sb.Append(" SuccededKo: ").Append(SuccededKo).Append("\n"); - sb.Append(" Deleted: ").Append(Deleted).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as QueueStateAggregationInfoDto); - } - - /// - /// Returns true if QueueStateAggregationInfoDto instances are equal - /// - /// Instance of QueueStateAggregationInfoDto to be compared - /// Boolean - public bool Equals(QueueStateAggregationInfoDto input) - { - if (input == null) - return false; - - return - ( - this.Awaiting == input.Awaiting || - (this.Awaiting != null && - this.Awaiting.Equals(input.Awaiting)) - ) && - ( - this.Enqueued == input.Enqueued || - (this.Enqueued != null && - this.Enqueued.Equals(input.Enqueued)) - ) && - ( - this.Processing == input.Processing || - (this.Processing != null && - this.Processing.Equals(input.Processing)) - ) && - ( - this.Scheduled == input.Scheduled || - (this.Scheduled != null && - this.Scheduled.Equals(input.Scheduled)) - ) && - ( - this.Failed == input.Failed || - (this.Failed != null && - this.Failed.Equals(input.Failed)) - ) && - ( - this.SuccededOk == input.SuccededOk || - (this.SuccededOk != null && - this.SuccededOk.Equals(input.SuccededOk)) - ) && - ( - this.SuccededKo == input.SuccededKo || - (this.SuccededKo != null && - this.SuccededKo.Equals(input.SuccededKo)) - ) && - ( - this.Deleted == input.Deleted || - (this.Deleted != null && - this.Deleted.Equals(input.Deleted)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Awaiting != null) - hashCode = hashCode * 59 + this.Awaiting.GetHashCode(); - if (this.Enqueued != null) - hashCode = hashCode * 59 + this.Enqueued.GetHashCode(); - if (this.Processing != null) - hashCode = hashCode * 59 + this.Processing.GetHashCode(); - if (this.Scheduled != null) - hashCode = hashCode * 59 + this.Scheduled.GetHashCode(); - if (this.Failed != null) - hashCode = hashCode * 59 + this.Failed.GetHashCode(); - if (this.SuccededOk != null) - hashCode = hashCode * 59 + this.SuccededOk.GetHashCode(); - if (this.SuccededKo != null) - hashCode = hashCode * 59 + this.SuccededKo.GetHashCode(); - if (this.Deleted != null) - hashCode = hashCode * 59 + this.Deleted.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/QueueStateHistoryDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/QueueStateHistoryDto.cs deleted file mode 100644 index 9417b44..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/QueueStateHistoryDto.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of queue status - /// - [DataContract] - public partial class QueueStateHistoryDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Status. - /// Reason. - /// Creation Date. - /// Key\\Value Items. - public QueueStateHistoryDto(string stateName = default(string), string reason = default(string), DateTime? createdAt = default(DateTime?), List data = default(List)) - { - this.StateName = stateName; - this.Reason = reason; - this.CreatedAt = createdAt; - this.Data = data; - } - - /// - /// Status - /// - /// Status - [DataMember(Name="stateName", EmitDefaultValue=false)] - public string StateName { get; set; } - - /// - /// Reason - /// - /// Reason - [DataMember(Name="reason", EmitDefaultValue=false)] - public string Reason { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="createdAt", EmitDefaultValue=false)] - public DateTime? CreatedAt { get; set; } - - /// - /// Key\\Value Items - /// - /// Key\\Value Items - [DataMember(Name="data", EmitDefaultValue=false)] - public List Data { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class QueueStateHistoryDto {\n"); - sb.Append(" StateName: ").Append(StateName).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as QueueStateHistoryDto); - } - - /// - /// Returns true if QueueStateHistoryDto instances are equal - /// - /// Instance of QueueStateHistoryDto to be compared - /// Boolean - public bool Equals(QueueStateHistoryDto input) - { - if (input == null) - return false; - - return - ( - this.StateName == input.StateName || - (this.StateName != null && - this.StateName.Equals(input.StateName)) - ) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && - ( - this.Data == input.Data || - this.Data != null && - this.Data.SequenceEqual(input.Data) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.StateName != null) - hashCode = hashCode * 59 + this.StateName.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - if (this.CreatedAt != null) - hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); - if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/QuickSearchDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/QuickSearchDto.cs deleted file mode 100644 index 7b02792..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/QuickSearchDto.cs +++ /dev/null @@ -1,157 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of quick search - /// - [DataContract] - public partial class QuickSearchDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Find information. - /// searchFilterDtoList. - /// selectFilterDto. - public QuickSearchDto(FindDTO find = default(FindDTO), List searchFilterDtoList = default(List), SelectDTO selectFilterDto = default(SelectDTO)) - { - this.Find = find; - this.SearchFilterDtoList = searchFilterDtoList; - this.SelectFilterDto = selectFilterDto; - } - - /// - /// Find information - /// - /// Find information - [DataMember(Name="find", EmitDefaultValue=false)] - public FindDTO Find { get; set; } - - /// - /// Gets or Sets SearchFilterDtoList - /// - [DataMember(Name="searchFilterDtoList", EmitDefaultValue=false)] - public List SearchFilterDtoList { get; set; } - - /// - /// Gets or Sets SelectFilterDto - /// - [DataMember(Name="selectFilterDto", EmitDefaultValue=false)] - public SelectDTO SelectFilterDto { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class QuickSearchDto {\n"); - sb.Append(" Find: ").Append(Find).Append("\n"); - sb.Append(" SearchFilterDtoList: ").Append(SearchFilterDtoList).Append("\n"); - sb.Append(" SelectFilterDto: ").Append(SelectFilterDto).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as QuickSearchDto); - } - - /// - /// Returns true if QuickSearchDto instances are equal - /// - /// Instance of QuickSearchDto to be compared - /// Boolean - public bool Equals(QuickSearchDto input) - { - if (input == null) - return false; - - return - ( - this.Find == input.Find || - (this.Find != null && - this.Find.Equals(input.Find)) - ) && - ( - this.SearchFilterDtoList == input.SearchFilterDtoList || - this.SearchFilterDtoList != null && - this.SearchFilterDtoList.SequenceEqual(input.SearchFilterDtoList) - ) && - ( - this.SelectFilterDto == input.SelectFilterDto || - (this.SelectFilterDto != null && - this.SelectFilterDto.Equals(input.SelectFilterDto)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Find != null) - hashCode = hashCode * 59 + this.Find.GetHashCode(); - if (this.SearchFilterDtoList != null) - hashCode = hashCode * 59 + this.SearchFilterDtoList.GetHashCode(); - if (this.SelectFilterDto != null) - hashCode = hashCode * 59 + this.SelectFilterDto.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ReceiptPAResultDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ReceiptPAResultDTO.cs deleted file mode 100644 index 95beb55..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ReceiptPAResultDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Receipt PA configuration result message - /// - [DataContract] - public partial class ReceiptPAResultDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Boolean that is true if the user has inserted or updated a receipt PA, otherwise false. - public ReceiptPAResultDTO(bool? completed = default(bool?)) - { - this.Completed = completed; - } - - /// - /// Boolean that is true if the user has inserted or updated a receipt PA, otherwise false - /// - /// Boolean that is true if the user has inserted or updated a receipt PA, otherwise false - [DataMember(Name="completed", EmitDefaultValue=false)] - public bool? Completed { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReceiptPAResultDTO {\n"); - sb.Append(" Completed: ").Append(Completed).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReceiptPAResultDTO); - } - - /// - /// Returns true if ReceiptPAResultDTO instances are equal - /// - /// Instance of ReceiptPAResultDTO to be compared - /// Boolean - public bool Equals(ReceiptPAResultDTO input) - { - if (input == null) - return false; - - return - ( - this.Completed == input.Completed || - (this.Completed != null && - this.Completed.Equals(input.Completed)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Completed != null) - hashCode = hashCode * 59 + this.Completed.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RefreshTokenRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/RefreshTokenRequestDTO.cs deleted file mode 100644 index d399afb..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RefreshTokenRequestDTO.cs +++ /dev/null @@ -1,188 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Refresh token request - /// - [DataContract] - public partial class RefreshTokenRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected RefreshTokenRequestDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Client id (required). - /// Client secret (required). - /// Refresh token to be refreshed (required). - public RefreshTokenRequestDTO(string clientId = default(string), string clientSecret = default(string), string refreshToken = default(string)) - { - // to ensure "clientId" is required (not null) - if (clientId == null) - { - throw new InvalidDataException("clientId is a required property for RefreshTokenRequestDTO and cannot be null"); - } - else - { - this.ClientId = clientId; - } - // to ensure "clientSecret" is required (not null) - if (clientSecret == null) - { - throw new InvalidDataException("clientSecret is a required property for RefreshTokenRequestDTO and cannot be null"); - } - else - { - this.ClientSecret = clientSecret; - } - // to ensure "refreshToken" is required (not null) - if (refreshToken == null) - { - throw new InvalidDataException("refreshToken is a required property for RefreshTokenRequestDTO and cannot be null"); - } - else - { - this.RefreshToken = refreshToken; - } - } - - /// - /// Client id - /// - /// Client id - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// Client secret - /// - /// Client secret - [DataMember(Name="clientSecret", EmitDefaultValue=false)] - public string ClientSecret { get; set; } - - /// - /// Refresh token to be refreshed - /// - /// Refresh token to be refreshed - [DataMember(Name="refreshToken", EmitDefaultValue=false)] - public string RefreshToken { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RefreshTokenRequestDTO {\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n"); - sb.Append(" RefreshToken: ").Append(RefreshToken).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RefreshTokenRequestDTO); - } - - /// - /// Returns true if RefreshTokenRequestDTO instances are equal - /// - /// Instance of RefreshTokenRequestDTO to be compared - /// Boolean - public bool Equals(RefreshTokenRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.ClientSecret == input.ClientSecret || - (this.ClientSecret != null && - this.ClientSecret.Equals(input.ClientSecret)) - ) && - ( - this.RefreshToken == input.RefreshToken || - (this.RefreshToken != null && - this.RefreshToken.Equals(input.RefreshToken)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.ClientSecret != null) - hashCode = hashCode * 59 + this.ClientSecret.GetHashCode(); - if (this.RefreshToken != null) - hashCode = hashCode * 59 + this.RefreshToken.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RelationCriteriaDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/RelationCriteriaDTO.cs deleted file mode 100644 index 7044750..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RelationCriteriaDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// RelationCriteriaDTO - /// - [DataContract] - public partial class RelationCriteriaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document Identifier. - /// Possible values: 0: Class 1: Fathers 2: childs . - /// Columns to show for the documents contained. - public RelationCriteriaDTO(int? docNumber = default(int?), int? relationExploringMethod = default(int?), SelectDTO select = default(SelectDTO)) - { - this.DocNumber = docNumber; - this.RelationExploringMethod = relationExploringMethod; - this.Select = select; - } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docNumber", EmitDefaultValue=false)] - public int? DocNumber { get; set; } - - /// - /// Possible values: 0: Class 1: Fathers 2: childs - /// - /// Possible values: 0: Class 1: Fathers 2: childs - [DataMember(Name="relationExploringMethod", EmitDefaultValue=false)] - public int? RelationExploringMethod { get; set; } - - /// - /// Columns to show for the documents contained - /// - /// Columns to show for the documents contained - [DataMember(Name="select", EmitDefaultValue=false)] - public SelectDTO Select { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RelationCriteriaDTO {\n"); - sb.Append(" DocNumber: ").Append(DocNumber).Append("\n"); - sb.Append(" RelationExploringMethod: ").Append(RelationExploringMethod).Append("\n"); - sb.Append(" Select: ").Append(Select).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RelationCriteriaDTO); - } - - /// - /// Returns true if RelationCriteriaDTO instances are equal - /// - /// Instance of RelationCriteriaDTO to be compared - /// Boolean - public bool Equals(RelationCriteriaDTO input) - { - if (input == null) - return false; - - return - ( - this.DocNumber == input.DocNumber || - (this.DocNumber != null && - this.DocNumber.Equals(input.DocNumber)) - ) && - ( - this.RelationExploringMethod == input.RelationExploringMethod || - (this.RelationExploringMethod != null && - this.RelationExploringMethod.Equals(input.RelationExploringMethod)) - ) && - ( - this.Select == input.Select || - (this.Select != null && - this.Select.Equals(input.Select)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocNumber != null) - hashCode = hashCode * 59 + this.DocNumber.GetHashCode(); - if (this.RelationExploringMethod != null) - hashCode = hashCode * 59 + this.RelationExploringMethod.GetHashCode(); - if (this.Select != null) - hashCode = hashCode * 59 + this.Select.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RelationExploredDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/RelationExploredDTO.cs deleted file mode 100644 index cd319fc..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RelationExploredDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// RelationExploredDTO - /// - [DataContract] - public partial class RelationExploredDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Root node. - /// Entire datasource of contained profiles. - public RelationExploredDTO(RelationNodeDTO rootNode = default(RelationNodeDTO), List composedValues = default(List)) - { - this.RootNode = rootNode; - this.ComposedValues = composedValues; - } - - /// - /// Root node - /// - /// Root node - [DataMember(Name="rootNode", EmitDefaultValue=false)] - public RelationNodeDTO RootNode { get; set; } - - /// - /// Entire datasource of contained profiles - /// - /// Entire datasource of contained profiles - [DataMember(Name="composedValues", EmitDefaultValue=false)] - public List ComposedValues { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RelationExploredDTO {\n"); - sb.Append(" RootNode: ").Append(RootNode).Append("\n"); - sb.Append(" ComposedValues: ").Append(ComposedValues).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RelationExploredDTO); - } - - /// - /// Returns true if RelationExploredDTO instances are equal - /// - /// Instance of RelationExploredDTO to be compared - /// Boolean - public bool Equals(RelationExploredDTO input) - { - if (input == null) - return false; - - return - ( - this.RootNode == input.RootNode || - (this.RootNode != null && - this.RootNode.Equals(input.RootNode)) - ) && - ( - this.ComposedValues == input.ComposedValues || - this.ComposedValues != null && - this.ComposedValues.SequenceEqual(input.ComposedValues) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.RootNode != null) - hashCode = hashCode * 59 + this.RootNode.GetHashCode(); - if (this.ComposedValues != null) - hashCode = hashCode * 59 + this.ComposedValues.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RelationInsertDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/RelationInsertDTO.cs deleted file mode 100644 index c870aaa..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RelationInsertDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// RelationInsertDTO - /// - [DataContract] - public partial class RelationInsertDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document Identifier. - /// Items. - public RelationInsertDTO(int? docNumber = default(int?), List items = default(List)) - { - this.DocNumber = docNumber; - this.Items = items; - } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docNumber", EmitDefaultValue=false)] - public int? DocNumber { get; set; } - - /// - /// Items - /// - /// Items - [DataMember(Name="items", EmitDefaultValue=false)] - public List Items { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RelationInsertDTO {\n"); - sb.Append(" DocNumber: ").Append(DocNumber).Append("\n"); - sb.Append(" Items: ").Append(Items).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RelationInsertDTO); - } - - /// - /// Returns true if RelationInsertDTO instances are equal - /// - /// Instance of RelationInsertDTO to be compared - /// Boolean - public bool Equals(RelationInsertDTO input) - { - if (input == null) - return false; - - return - ( - this.DocNumber == input.DocNumber || - (this.DocNumber != null && - this.DocNumber.Equals(input.DocNumber)) - ) && - ( - this.Items == input.Items || - this.Items != null && - this.Items.SequenceEqual(input.Items) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocNumber != null) - hashCode = hashCode * 59 + this.DocNumber.GetHashCode(); - if (this.Items != null) - hashCode = hashCode * 59 + this.Items.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RelationInsertItemDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/RelationInsertItemDTO.cs deleted file mode 100644 index 96e135e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RelationInsertItemDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// RelationInsertItemDTO - /// - [DataContract] - public partial class RelationInsertItemDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document Identifier. - /// Possible values: 0: Date 1: Father 2: Child . - public RelationInsertItemDTO(int? docNumber = default(int?), int? relationType = default(int?)) - { - this.DocNumber = docNumber; - this.RelationType = relationType; - } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docNumber", EmitDefaultValue=false)] - public int? DocNumber { get; set; } - - /// - /// Possible values: 0: Date 1: Father 2: Child - /// - /// Possible values: 0: Date 1: Father 2: Child - [DataMember(Name="relationType", EmitDefaultValue=false)] - public int? RelationType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RelationInsertItemDTO {\n"); - sb.Append(" DocNumber: ").Append(DocNumber).Append("\n"); - sb.Append(" RelationType: ").Append(RelationType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RelationInsertItemDTO); - } - - /// - /// Returns true if RelationInsertItemDTO instances are equal - /// - /// Instance of RelationInsertItemDTO to be compared - /// Boolean - public bool Equals(RelationInsertItemDTO input) - { - if (input == null) - return false; - - return - ( - this.DocNumber == input.DocNumber || - (this.DocNumber != null && - this.DocNumber.Equals(input.DocNumber)) - ) && - ( - this.RelationType == input.RelationType || - (this.RelationType != null && - this.RelationType.Equals(input.RelationType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocNumber != null) - hashCode = hashCode * 59 + this.DocNumber.GetHashCode(); - if (this.RelationType != null) - hashCode = hashCode * 59 + this.RelationType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RelationNodeDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/RelationNodeDTO.cs deleted file mode 100644 index e9a3267..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RelationNodeDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// RelationNodeDTO - /// - [DataContract] - public partial class RelationNodeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Docnumber of profile. - /// Document type system id. - /// Description of this node. - /// Id group. - /// Access denied for the user. - /// Child nodes. - public RelationNodeDTO(int? docNumber = default(int?), int? documentType = default(int?), string description = default(string), bool? isGroup = default(bool?), bool? accessDenied = default(bool?), List childs = default(List)) - { - this.DocNumber = docNumber; - this.DocumentType = documentType; - this.Description = description; - this.IsGroup = isGroup; - this.AccessDenied = accessDenied; - this.Childs = childs; - } - - /// - /// Docnumber of profile - /// - /// Docnumber of profile - [DataMember(Name="docNumber", EmitDefaultValue=false)] - public int? DocNumber { get; set; } - - /// - /// Document type system id - /// - /// Document type system id - [DataMember(Name="documentType", EmitDefaultValue=false)] - public int? DocumentType { get; set; } - - /// - /// Description of this node - /// - /// Description of this node - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Id group - /// - /// Id group - [DataMember(Name="isGroup", EmitDefaultValue=false)] - public bool? IsGroup { get; set; } - - /// - /// Access denied for the user - /// - /// Access denied for the user - [DataMember(Name="accessDenied", EmitDefaultValue=false)] - public bool? AccessDenied { get; set; } - - /// - /// Child nodes - /// - /// Child nodes - [DataMember(Name="childs", EmitDefaultValue=false)] - public List Childs { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RelationNodeDTO {\n"); - sb.Append(" DocNumber: ").Append(DocNumber).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IsGroup: ").Append(IsGroup).Append("\n"); - sb.Append(" AccessDenied: ").Append(AccessDenied).Append("\n"); - sb.Append(" Childs: ").Append(Childs).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RelationNodeDTO); - } - - /// - /// Returns true if RelationNodeDTO instances are equal - /// - /// Instance of RelationNodeDTO to be compared - /// Boolean - public bool Equals(RelationNodeDTO input) - { - if (input == null) - return false; - - return - ( - this.DocNumber == input.DocNumber || - (this.DocNumber != null && - this.DocNumber.Equals(input.DocNumber)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.IsGroup == input.IsGroup || - (this.IsGroup != null && - this.IsGroup.Equals(input.IsGroup)) - ) && - ( - this.AccessDenied == input.AccessDenied || - (this.AccessDenied != null && - this.AccessDenied.Equals(input.AccessDenied)) - ) && - ( - this.Childs == input.Childs || - this.Childs != null && - this.Childs.SequenceEqual(input.Childs) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocNumber != null) - hashCode = hashCode * 59 + this.DocNumber.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.IsGroup != null) - hashCode = hashCode * 59 + this.IsGroup.GetHashCode(); - if (this.AccessDenied != null) - hashCode = hashCode * 59 + this.AccessDenied.GetHashCode(); - if (this.Childs != null) - hashCode = hashCode * 59 + this.Childs.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RemoteSignElementRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/RemoteSignElementRequestDTO.cs deleted file mode 100644 index d152d2f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RemoteSignElementRequestDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of remote signature field - /// - [DataContract] - public partial class RemoteSignElementRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Attachment 2: TaskWorkAttachment 14: Profile 74: ProcessDoc . - /// Document Identifier. - /// Document External Identifier. - /// Enabled Pdf Embedded Signature. - /// Settings of pdf signature. - public RemoteSignElementRequestDTO(int? tableType = default(int?), string docId = default(string), string docExtraId = default(string), bool? pdfEmbeddedMode = default(bool?), SignPdfPropertiesDTO signPdfProperties = default(SignPdfPropertiesDTO)) - { - this.TableType = tableType; - this.DocId = docId; - this.DocExtraId = docExtraId; - this.PdfEmbeddedMode = pdfEmbeddedMode; - this.SignPdfProperties = signPdfProperties; - } - - /// - /// Possible values: 0: Attachment 2: TaskWorkAttachment 14: Profile 74: ProcessDoc - /// - /// Possible values: 0: Attachment 2: TaskWorkAttachment 14: Profile 74: ProcessDoc - [DataMember(Name="tableType", EmitDefaultValue=false)] - public int? TableType { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docId", EmitDefaultValue=false)] - public string DocId { get; set; } - - /// - /// Document External Identifier - /// - /// Document External Identifier - [DataMember(Name="docExtraId", EmitDefaultValue=false)] - public string DocExtraId { get; set; } - - /// - /// Enabled Pdf Embedded Signature - /// - /// Enabled Pdf Embedded Signature - [DataMember(Name="pdfEmbeddedMode", EmitDefaultValue=false)] - public bool? PdfEmbeddedMode { get; set; } - - /// - /// Settings of pdf signature - /// - /// Settings of pdf signature - [DataMember(Name="signPdfProperties", EmitDefaultValue=false)] - public SignPdfPropertiesDTO SignPdfProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RemoteSignElementRequestDTO {\n"); - sb.Append(" TableType: ").Append(TableType).Append("\n"); - sb.Append(" DocId: ").Append(DocId).Append("\n"); - sb.Append(" DocExtraId: ").Append(DocExtraId).Append("\n"); - sb.Append(" PdfEmbeddedMode: ").Append(PdfEmbeddedMode).Append("\n"); - sb.Append(" SignPdfProperties: ").Append(SignPdfProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RemoteSignElementRequestDTO); - } - - /// - /// Returns true if RemoteSignElementRequestDTO instances are equal - /// - /// Instance of RemoteSignElementRequestDTO to be compared - /// Boolean - public bool Equals(RemoteSignElementRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.TableType == input.TableType || - (this.TableType != null && - this.TableType.Equals(input.TableType)) - ) && - ( - this.DocId == input.DocId || - (this.DocId != null && - this.DocId.Equals(input.DocId)) - ) && - ( - this.DocExtraId == input.DocExtraId || - (this.DocExtraId != null && - this.DocExtraId.Equals(input.DocExtraId)) - ) && - ( - this.PdfEmbeddedMode == input.PdfEmbeddedMode || - (this.PdfEmbeddedMode != null && - this.PdfEmbeddedMode.Equals(input.PdfEmbeddedMode)) - ) && - ( - this.SignPdfProperties == input.SignPdfProperties || - (this.SignPdfProperties != null && - this.SignPdfProperties.Equals(input.SignPdfProperties)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.TableType != null) - hashCode = hashCode * 59 + this.TableType.GetHashCode(); - if (this.DocId != null) - hashCode = hashCode * 59 + this.DocId.GetHashCode(); - if (this.DocExtraId != null) - hashCode = hashCode * 59 + this.DocExtraId.GetHashCode(); - if (this.PdfEmbeddedMode != null) - hashCode = hashCode * 59 + this.PdfEmbeddedMode.GetHashCode(); - if (this.SignPdfProperties != null) - hashCode = hashCode * 59 + this.SignPdfProperties.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RemoteSignRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/RemoteSignRequestDTO.cs deleted file mode 100644 index 26a6940..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RemoteSignRequestDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of remote signature request - /// - [DataContract] - public partial class RemoteSignRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of signature certificate. - /// Password. - /// Releted Cetificate Identifier. - /// OPT. - /// Fields. - public RemoteSignRequestDTO(int? signCertId = default(int?), string password = default(string), string relatedCertId = default(string), string otp = default(string), List signElementList = default(List)) - { - this.SignCertId = signCertId; - this.Password = password; - this.RelatedCertId = relatedCertId; - this.Otp = otp; - this.SignElementList = signElementList; - } - - /// - /// Identifier of signature certificate - /// - /// Identifier of signature certificate - [DataMember(Name="signCertId", EmitDefaultValue=false)] - public int? SignCertId { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Releted Cetificate Identifier - /// - /// Releted Cetificate Identifier - [DataMember(Name="relatedCertId", EmitDefaultValue=false)] - public string RelatedCertId { get; set; } - - /// - /// OPT - /// - /// OPT - [DataMember(Name="otp", EmitDefaultValue=false)] - public string Otp { get; set; } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="signElementList", EmitDefaultValue=false)] - public List SignElementList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RemoteSignRequestDTO {\n"); - sb.Append(" SignCertId: ").Append(SignCertId).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" RelatedCertId: ").Append(RelatedCertId).Append("\n"); - sb.Append(" Otp: ").Append(Otp).Append("\n"); - sb.Append(" SignElementList: ").Append(SignElementList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RemoteSignRequestDTO); - } - - /// - /// Returns true if RemoteSignRequestDTO instances are equal - /// - /// Instance of RemoteSignRequestDTO to be compared - /// Boolean - public bool Equals(RemoteSignRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.SignCertId == input.SignCertId || - (this.SignCertId != null && - this.SignCertId.Equals(input.SignCertId)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.RelatedCertId == input.RelatedCertId || - (this.RelatedCertId != null && - this.RelatedCertId.Equals(input.RelatedCertId)) - ) && - ( - this.Otp == input.Otp || - (this.Otp != null && - this.Otp.Equals(input.Otp)) - ) && - ( - this.SignElementList == input.SignElementList || - this.SignElementList != null && - this.SignElementList.SequenceEqual(input.SignElementList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SignCertId != null) - hashCode = hashCode * 59 + this.SignCertId.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.RelatedCertId != null) - hashCode = hashCode * 59 + this.RelatedCertId.GetHashCode(); - if (this.Otp != null) - hashCode = hashCode * 59 + this.Otp.GetHashCode(); - if (this.SignElementList != null) - hashCode = hashCode * 59 + this.SignElementList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RemoteSignResponseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/RemoteSignResponseDTO.cs deleted file mode 100644 index f1ebcd8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RemoteSignResponseDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of remote signature response - /// - [DataContract] - public partial class RemoteSignResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Signature Certificate. - /// Identifier of signature in progress. - public RemoteSignResponseDTO(SignCertDTO signCert = default(SignCertDTO), string signRequestId = default(string)) - { - this.SignCert = signCert; - this.SignRequestId = signRequestId; - } - - /// - /// Signature Certificate - /// - /// Signature Certificate - [DataMember(Name="signCert", EmitDefaultValue=false)] - public SignCertDTO SignCert { get; set; } - - /// - /// Identifier of signature in progress - /// - /// Identifier of signature in progress - [DataMember(Name="signRequestId", EmitDefaultValue=false)] - public string SignRequestId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RemoteSignResponseDTO {\n"); - sb.Append(" SignCert: ").Append(SignCert).Append("\n"); - sb.Append(" SignRequestId: ").Append(SignRequestId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RemoteSignResponseDTO); - } - - /// - /// Returns true if RemoteSignResponseDTO instances are equal - /// - /// Instance of RemoteSignResponseDTO to be compared - /// Boolean - public bool Equals(RemoteSignResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.SignCert == input.SignCert || - (this.SignCert != null && - this.SignCert.Equals(input.SignCert)) - ) && - ( - this.SignRequestId == input.SignRequestId || - (this.SignRequestId != null && - this.SignRequestId.Equals(input.SignRequestId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SignCert != null) - hashCode = hashCode * 59 + this.SignCert.GetHashCode(); - if (this.SignRequestId != null) - hashCode = hashCode * 59 + this.SignRequestId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RemoteSignTaskWorkElementRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/RemoteSignTaskWorkElementRequestDTO.cs deleted file mode 100644 index 59f63eb..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RemoteSignTaskWorkElementRequestDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of remote signature field - /// - [DataContract] - public partial class RemoteSignTaskWorkElementRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// TaskWork id. - /// Enabled Pdf Embedded Signature. - /// Settings of pdf signature. - public RemoteSignTaskWorkElementRequestDTO(int? taskWorkId = default(int?), bool? pdfEmbeddedMode = default(bool?), SignPdfPropertiesDTO signPdfProperties = default(SignPdfPropertiesDTO)) - { - this.TaskWorkId = taskWorkId; - this.PdfEmbeddedMode = pdfEmbeddedMode; - this.SignPdfProperties = signPdfProperties; - } - - /// - /// TaskWork id - /// - /// TaskWork id - [DataMember(Name="taskWorkId", EmitDefaultValue=false)] - public int? TaskWorkId { get; set; } - - /// - /// Enabled Pdf Embedded Signature - /// - /// Enabled Pdf Embedded Signature - [DataMember(Name="pdfEmbeddedMode", EmitDefaultValue=false)] - public bool? PdfEmbeddedMode { get; set; } - - /// - /// Settings of pdf signature - /// - /// Settings of pdf signature - [DataMember(Name="signPdfProperties", EmitDefaultValue=false)] - public SignPdfPropertiesDTO SignPdfProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RemoteSignTaskWorkElementRequestDTO {\n"); - sb.Append(" TaskWorkId: ").Append(TaskWorkId).Append("\n"); - sb.Append(" PdfEmbeddedMode: ").Append(PdfEmbeddedMode).Append("\n"); - sb.Append(" SignPdfProperties: ").Append(SignPdfProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RemoteSignTaskWorkElementRequestDTO); - } - - /// - /// Returns true if RemoteSignTaskWorkElementRequestDTO instances are equal - /// - /// Instance of RemoteSignTaskWorkElementRequestDTO to be compared - /// Boolean - public bool Equals(RemoteSignTaskWorkElementRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.TaskWorkId == input.TaskWorkId || - (this.TaskWorkId != null && - this.TaskWorkId.Equals(input.TaskWorkId)) - ) && - ( - this.PdfEmbeddedMode == input.PdfEmbeddedMode || - (this.PdfEmbeddedMode != null && - this.PdfEmbeddedMode.Equals(input.PdfEmbeddedMode)) - ) && - ( - this.SignPdfProperties == input.SignPdfProperties || - (this.SignPdfProperties != null && - this.SignPdfProperties.Equals(input.SignPdfProperties)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.TaskWorkId != null) - hashCode = hashCode * 59 + this.TaskWorkId.GetHashCode(); - if (this.PdfEmbeddedMode != null) - hashCode = hashCode * 59 + this.PdfEmbeddedMode.GetHashCode(); - if (this.SignPdfProperties != null) - hashCode = hashCode * 59 + this.SignPdfProperties.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RemoteSignTaskWorkRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/RemoteSignTaskWorkRequestDTO.cs deleted file mode 100644 index 5698954..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RemoteSignTaskWorkRequestDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of remote taskwork signature request - /// - [DataContract] - public partial class RemoteSignTaskWorkRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of signature certificate. - /// Password. - /// Releted Cetificate Identifier. - /// OPT. - /// TaskWork list to sign. - public RemoteSignTaskWorkRequestDTO(int? signCertId = default(int?), string password = default(string), string relatedCertId = default(string), string otp = default(string), List signElementList = default(List)) - { - this.SignCertId = signCertId; - this.Password = password; - this.RelatedCertId = relatedCertId; - this.Otp = otp; - this.SignElementList = signElementList; - } - - /// - /// Identifier of signature certificate - /// - /// Identifier of signature certificate - [DataMember(Name="signCertId", EmitDefaultValue=false)] - public int? SignCertId { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Releted Cetificate Identifier - /// - /// Releted Cetificate Identifier - [DataMember(Name="relatedCertId", EmitDefaultValue=false)] - public string RelatedCertId { get; set; } - - /// - /// OPT - /// - /// OPT - [DataMember(Name="otp", EmitDefaultValue=false)] - public string Otp { get; set; } - - /// - /// TaskWork list to sign - /// - /// TaskWork list to sign - [DataMember(Name="signElementList", EmitDefaultValue=false)] - public List SignElementList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RemoteSignTaskWorkRequestDTO {\n"); - sb.Append(" SignCertId: ").Append(SignCertId).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" RelatedCertId: ").Append(RelatedCertId).Append("\n"); - sb.Append(" Otp: ").Append(Otp).Append("\n"); - sb.Append(" SignElementList: ").Append(SignElementList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RemoteSignTaskWorkRequestDTO); - } - - /// - /// Returns true if RemoteSignTaskWorkRequestDTO instances are equal - /// - /// Instance of RemoteSignTaskWorkRequestDTO to be compared - /// Boolean - public bool Equals(RemoteSignTaskWorkRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.SignCertId == input.SignCertId || - (this.SignCertId != null && - this.SignCertId.Equals(input.SignCertId)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.RelatedCertId == input.RelatedCertId || - (this.RelatedCertId != null && - this.RelatedCertId.Equals(input.RelatedCertId)) - ) && - ( - this.Otp == input.Otp || - (this.Otp != null && - this.Otp.Equals(input.Otp)) - ) && - ( - this.SignElementList == input.SignElementList || - this.SignElementList != null && - this.SignElementList.SequenceEqual(input.SignElementList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SignCertId != null) - hashCode = hashCode * 59 + this.SignCertId.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.RelatedCertId != null) - hashCode = hashCode * 59 + this.RelatedCertId.GetHashCode(); - if (this.Otp != null) - hashCode = hashCode * 59 + this.Otp.GetHashCode(); - if (this.SignElementList != null) - hashCode = hashCode * 59 + this.SignElementList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RenamedQuickSearchDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/RenamedQuickSearchDto.cs deleted file mode 100644 index a40bbbf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RenamedQuickSearchDto.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of to rename a quick search - /// - [DataContract] - public partial class RenamedQuickSearchDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of quick search. - /// Description. - public RenamedQuickSearchDto(string quickSearchId = default(string), string description = default(string)) - { - this.QuickSearchId = quickSearchId; - this.Description = description; - } - - /// - /// Identifier of quick search - /// - /// Identifier of quick search - [DataMember(Name="quickSearchId", EmitDefaultValue=false)] - public string QuickSearchId { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RenamedQuickSearchDto {\n"); - sb.Append(" QuickSearchId: ").Append(QuickSearchId).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RenamedQuickSearchDto); - } - - /// - /// Returns true if RenamedQuickSearchDto instances are equal - /// - /// Instance of RenamedQuickSearchDto to be compared - /// Boolean - public bool Equals(RenamedQuickSearchDto input) - { - if (input == null) - return false; - - return - ( - this.QuickSearchId == input.QuickSearchId || - (this.QuickSearchId != null && - this.QuickSearchId.Equals(input.QuickSearchId)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.QuickSearchId != null) - hashCode = hashCode * 59 + this.QuickSearchId.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ReplacementStorageSearchFilterDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ReplacementStorageSearchFilterDto.cs deleted file mode 100644 index b1e3e62..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ReplacementStorageSearchFilterDto.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ReplacementStorageSearchFilterDto - /// - [DataContract] - public partial class ReplacementStorageSearchFilterDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// isAos. - /// period. - /// dmDevDocDevice. - public ReplacementStorageSearchFilterDto(int? isAos = default(int?), string period = default(string), string dmDevDocDevice = default(string)) - { - this.IsAos = isAos; - this.Period = period; - this.DmDevDocDevice = dmDevDocDevice; - } - - /// - /// Gets or Sets IsAos - /// - [DataMember(Name="isAos", EmitDefaultValue=false)] - public int? IsAos { get; set; } - - /// - /// Gets or Sets Period - /// - [DataMember(Name="period", EmitDefaultValue=false)] - public string Period { get; set; } - - /// - /// Gets or Sets DmDevDocDevice - /// - [DataMember(Name="dm_DevDoc_Device", EmitDefaultValue=false)] - public string DmDevDocDevice { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReplacementStorageSearchFilterDto {\n"); - sb.Append(" IsAos: ").Append(IsAos).Append("\n"); - sb.Append(" Period: ").Append(Period).Append("\n"); - sb.Append(" DmDevDocDevice: ").Append(DmDevDocDevice).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReplacementStorageSearchFilterDto); - } - - /// - /// Returns true if ReplacementStorageSearchFilterDto instances are equal - /// - /// Instance of ReplacementStorageSearchFilterDto to be compared - /// Boolean - public bool Equals(ReplacementStorageSearchFilterDto input) - { - if (input == null) - return false; - - return - ( - this.IsAos == input.IsAos || - (this.IsAos != null && - this.IsAos.Equals(input.IsAos)) - ) && - ( - this.Period == input.Period || - (this.Period != null && - this.Period.Equals(input.Period)) - ) && - ( - this.DmDevDocDevice == input.DmDevDocDevice || - (this.DmDevDocDevice != null && - this.DmDevDocDevice.Equals(input.DmDevDocDevice)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IsAos != null) - hashCode = hashCode * 59 + this.IsAos.GetHashCode(); - if (this.Period != null) - hashCode = hashCode * 59 + this.Period.GetHashCode(); - if (this.DmDevDocDevice != null) - hashCode = hashCode * 59 + this.DmDevDocDevice.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ReportBaseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ReportBaseDTO.cs deleted file mode 100644 index 7060580..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ReportBaseDTO.cs +++ /dev/null @@ -1,329 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ReportBaseDTO - /// - [DataContract] - public partial class ReportBaseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Report Id. - /// Report external id. - /// Name of the report. - /// Description of the report. - /// Author user. - /// Author name. - /// Modifier user. - /// Modifier name. - /// The report has a template file set. - /// Creation date of the report. - /// The last update of the report. - /// Id of the find group of the source. - /// Information about the report security. - public ReportBaseDTO(string id = default(string), string externalId = default(string), string name = default(string), string description = default(string), int? author = default(int?), string authorCompleteName = default(string), int? modifier = default(int?), string modifierCompleteName = default(string), bool? hasReportFile = default(bool?), DateTime? creationDate = default(DateTime?), DateTime? lastUpdateDate = default(DateTime?), string idFindGroup = default(string), ReportSecurityDTO security = default(ReportSecurityDTO)) - { - this.Id = id; - this.ExternalId = externalId; - this.Name = name; - this.Description = description; - this.Author = author; - this.AuthorCompleteName = authorCompleteName; - this.Modifier = modifier; - this.ModifierCompleteName = modifierCompleteName; - this.HasReportFile = hasReportFile; - this.CreationDate = creationDate; - this.LastUpdateDate = lastUpdateDate; - this.IdFindGroup = idFindGroup; - this.Security = security; - } - - /// - /// Report Id - /// - /// Report Id - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Report external id - /// - /// Report external id - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Name of the report - /// - /// Name of the report - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description of the report - /// - /// Description of the report - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Author user - /// - /// Author user - [DataMember(Name="author", EmitDefaultValue=false)] - public int? Author { get; set; } - - /// - /// Author name - /// - /// Author name - [DataMember(Name="authorCompleteName", EmitDefaultValue=false)] - public string AuthorCompleteName { get; set; } - - /// - /// Modifier user - /// - /// Modifier user - [DataMember(Name="modifier", EmitDefaultValue=false)] - public int? Modifier { get; set; } - - /// - /// Modifier name - /// - /// Modifier name - [DataMember(Name="modifierCompleteName", EmitDefaultValue=false)] - public string ModifierCompleteName { get; set; } - - /// - /// The report has a template file set - /// - /// The report has a template file set - [DataMember(Name="hasReportFile", EmitDefaultValue=false)] - public bool? HasReportFile { get; set; } - - /// - /// Creation date of the report - /// - /// Creation date of the report - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// The last update of the report - /// - /// The last update of the report - [DataMember(Name="lastUpdateDate", EmitDefaultValue=false)] - public DateTime? LastUpdateDate { get; set; } - - /// - /// Id of the find group of the source - /// - /// Id of the find group of the source - [DataMember(Name="idFindGroup", EmitDefaultValue=false)] - public string IdFindGroup { get; set; } - - /// - /// Information about the report security - /// - /// Information about the report security - [DataMember(Name="security", EmitDefaultValue=false)] - public ReportSecurityDTO Security { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReportBaseDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Author: ").Append(Author).Append("\n"); - sb.Append(" AuthorCompleteName: ").Append(AuthorCompleteName).Append("\n"); - sb.Append(" Modifier: ").Append(Modifier).Append("\n"); - sb.Append(" ModifierCompleteName: ").Append(ModifierCompleteName).Append("\n"); - sb.Append(" HasReportFile: ").Append(HasReportFile).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" LastUpdateDate: ").Append(LastUpdateDate).Append("\n"); - sb.Append(" IdFindGroup: ").Append(IdFindGroup).Append("\n"); - sb.Append(" Security: ").Append(Security).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReportBaseDTO); - } - - /// - /// Returns true if ReportBaseDTO instances are equal - /// - /// Instance of ReportBaseDTO to be compared - /// Boolean - public bool Equals(ReportBaseDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Author == input.Author || - (this.Author != null && - this.Author.Equals(input.Author)) - ) && - ( - this.AuthorCompleteName == input.AuthorCompleteName || - (this.AuthorCompleteName != null && - this.AuthorCompleteName.Equals(input.AuthorCompleteName)) - ) && - ( - this.Modifier == input.Modifier || - (this.Modifier != null && - this.Modifier.Equals(input.Modifier)) - ) && - ( - this.ModifierCompleteName == input.ModifierCompleteName || - (this.ModifierCompleteName != null && - this.ModifierCompleteName.Equals(input.ModifierCompleteName)) - ) && - ( - this.HasReportFile == input.HasReportFile || - (this.HasReportFile != null && - this.HasReportFile.Equals(input.HasReportFile)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.LastUpdateDate == input.LastUpdateDate || - (this.LastUpdateDate != null && - this.LastUpdateDate.Equals(input.LastUpdateDate)) - ) && - ( - this.IdFindGroup == input.IdFindGroup || - (this.IdFindGroup != null && - this.IdFindGroup.Equals(input.IdFindGroup)) - ) && - ( - this.Security == input.Security || - (this.Security != null && - this.Security.Equals(input.Security)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Author != null) - hashCode = hashCode * 59 + this.Author.GetHashCode(); - if (this.AuthorCompleteName != null) - hashCode = hashCode * 59 + this.AuthorCompleteName.GetHashCode(); - if (this.Modifier != null) - hashCode = hashCode * 59 + this.Modifier.GetHashCode(); - if (this.ModifierCompleteName != null) - hashCode = hashCode * 59 + this.ModifierCompleteName.GetHashCode(); - if (this.HasReportFile != null) - hashCode = hashCode * 59 + this.HasReportFile.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.LastUpdateDate != null) - hashCode = hashCode * 59 + this.LastUpdateDate.GetHashCode(); - if (this.IdFindGroup != null) - hashCode = hashCode * 59 + this.IdFindGroup.GetHashCode(); - if (this.Security != null) - hashCode = hashCode * 59 + this.Security.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ReportDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ReportDTO.cs deleted file mode 100644 index 7437c98..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ReportDTO.cs +++ /dev/null @@ -1,346 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ReportDTO - /// - [DataContract] - public partial class ReportDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Parameters to input for the execution. - /// Report Id. - /// Report external id. - /// Name of the report. - /// Description of the report. - /// Author user. - /// Author name. - /// Modifier user. - /// Modifier name. - /// The report has a template file set. - /// Creation date of the report. - /// The last update of the report. - /// Id of the find group of the source. - /// Information about the report security. - public ReportDTO(List parameters = default(List), string id = default(string), string externalId = default(string), string name = default(string), string description = default(string), int? author = default(int?), string authorCompleteName = default(string), int? modifier = default(int?), string modifierCompleteName = default(string), bool? hasReportFile = default(bool?), DateTime? creationDate = default(DateTime?), DateTime? lastUpdateDate = default(DateTime?), string idFindGroup = default(string), ReportSecurityDTO security = default(ReportSecurityDTO)) - { - this.Parameters = parameters; - this.Id = id; - this.ExternalId = externalId; - this.Name = name; - this.Description = description; - this.Author = author; - this.AuthorCompleteName = authorCompleteName; - this.Modifier = modifier; - this.ModifierCompleteName = modifierCompleteName; - this.HasReportFile = hasReportFile; - this.CreationDate = creationDate; - this.LastUpdateDate = lastUpdateDate; - this.IdFindGroup = idFindGroup; - this.Security = security; - } - - /// - /// Parameters to input for the execution - /// - /// Parameters to input for the execution - [DataMember(Name="parameters", EmitDefaultValue=false)] - public List Parameters { get; set; } - - /// - /// Report Id - /// - /// Report Id - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Report external id - /// - /// Report external id - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Name of the report - /// - /// Name of the report - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description of the report - /// - /// Description of the report - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Author user - /// - /// Author user - [DataMember(Name="author", EmitDefaultValue=false)] - public int? Author { get; set; } - - /// - /// Author name - /// - /// Author name - [DataMember(Name="authorCompleteName", EmitDefaultValue=false)] - public string AuthorCompleteName { get; set; } - - /// - /// Modifier user - /// - /// Modifier user - [DataMember(Name="modifier", EmitDefaultValue=false)] - public int? Modifier { get; set; } - - /// - /// Modifier name - /// - /// Modifier name - [DataMember(Name="modifierCompleteName", EmitDefaultValue=false)] - public string ModifierCompleteName { get; set; } - - /// - /// The report has a template file set - /// - /// The report has a template file set - [DataMember(Name="hasReportFile", EmitDefaultValue=false)] - public bool? HasReportFile { get; set; } - - /// - /// Creation date of the report - /// - /// Creation date of the report - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// The last update of the report - /// - /// The last update of the report - [DataMember(Name="lastUpdateDate", EmitDefaultValue=false)] - public DateTime? LastUpdateDate { get; set; } - - /// - /// Id of the find group of the source - /// - /// Id of the find group of the source - [DataMember(Name="idFindGroup", EmitDefaultValue=false)] - public string IdFindGroup { get; set; } - - /// - /// Information about the report security - /// - /// Information about the report security - [DataMember(Name="security", EmitDefaultValue=false)] - public ReportSecurityDTO Security { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReportDTO {\n"); - sb.Append(" Parameters: ").Append(Parameters).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Author: ").Append(Author).Append("\n"); - sb.Append(" AuthorCompleteName: ").Append(AuthorCompleteName).Append("\n"); - sb.Append(" Modifier: ").Append(Modifier).Append("\n"); - sb.Append(" ModifierCompleteName: ").Append(ModifierCompleteName).Append("\n"); - sb.Append(" HasReportFile: ").Append(HasReportFile).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" LastUpdateDate: ").Append(LastUpdateDate).Append("\n"); - sb.Append(" IdFindGroup: ").Append(IdFindGroup).Append("\n"); - sb.Append(" Security: ").Append(Security).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReportDTO); - } - - /// - /// Returns true if ReportDTO instances are equal - /// - /// Instance of ReportDTO to be compared - /// Boolean - public bool Equals(ReportDTO input) - { - if (input == null) - return false; - - return - ( - this.Parameters == input.Parameters || - this.Parameters != null && - this.Parameters.SequenceEqual(input.Parameters) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Author == input.Author || - (this.Author != null && - this.Author.Equals(input.Author)) - ) && - ( - this.AuthorCompleteName == input.AuthorCompleteName || - (this.AuthorCompleteName != null && - this.AuthorCompleteName.Equals(input.AuthorCompleteName)) - ) && - ( - this.Modifier == input.Modifier || - (this.Modifier != null && - this.Modifier.Equals(input.Modifier)) - ) && - ( - this.ModifierCompleteName == input.ModifierCompleteName || - (this.ModifierCompleteName != null && - this.ModifierCompleteName.Equals(input.ModifierCompleteName)) - ) && - ( - this.HasReportFile == input.HasReportFile || - (this.HasReportFile != null && - this.HasReportFile.Equals(input.HasReportFile)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.LastUpdateDate == input.LastUpdateDate || - (this.LastUpdateDate != null && - this.LastUpdateDate.Equals(input.LastUpdateDate)) - ) && - ( - this.IdFindGroup == input.IdFindGroup || - (this.IdFindGroup != null && - this.IdFindGroup.Equals(input.IdFindGroup)) - ) && - ( - this.Security == input.Security || - (this.Security != null && - this.Security.Equals(input.Security)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Parameters != null) - hashCode = hashCode * 59 + this.Parameters.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Author != null) - hashCode = hashCode * 59 + this.Author.GetHashCode(); - if (this.AuthorCompleteName != null) - hashCode = hashCode * 59 + this.AuthorCompleteName.GetHashCode(); - if (this.Modifier != null) - hashCode = hashCode * 59 + this.Modifier.GetHashCode(); - if (this.ModifierCompleteName != null) - hashCode = hashCode * 59 + this.ModifierCompleteName.GetHashCode(); - if (this.HasReportFile != null) - hashCode = hashCode * 59 + this.HasReportFile.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.LastUpdateDate != null) - hashCode = hashCode * 59 + this.LastUpdateDate.GetHashCode(); - if (this.IdFindGroup != null) - hashCode = hashCode * 59 + this.IdFindGroup.GetHashCode(); - if (this.Security != null) - hashCode = hashCode * 59 + this.Security.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ReportExecuteAsyncResponseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ReportExecuteAsyncResponseDTO.cs deleted file mode 100644 index bf7c530..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ReportExecuteAsyncResponseDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of report execute async response - /// - [DataContract] - public partial class ReportExecuteAsyncResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of asynchronous activity (QueueId). - public ReportExecuteAsyncResponseDTO(string asyncRequestId = default(string)) - { - this.AsyncRequestId = asyncRequestId; - } - - /// - /// Identifier of asynchronous activity (QueueId) - /// - /// Identifier of asynchronous activity (QueueId) - [DataMember(Name="asyncRequestId", EmitDefaultValue=false)] - public string AsyncRequestId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReportExecuteAsyncResponseDTO {\n"); - sb.Append(" AsyncRequestId: ").Append(AsyncRequestId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReportExecuteAsyncResponseDTO); - } - - /// - /// Returns true if ReportExecuteAsyncResponseDTO instances are equal - /// - /// Instance of ReportExecuteAsyncResponseDTO to be compared - /// Boolean - public bool Equals(ReportExecuteAsyncResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.AsyncRequestId == input.AsyncRequestId || - (this.AsyncRequestId != null && - this.AsyncRequestId.Equals(input.AsyncRequestId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AsyncRequestId != null) - hashCode = hashCode * 59 + this.AsyncRequestId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ReportExecuteMultipleRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ReportExecuteMultipleRequestDTO.cs deleted file mode 100644 index 3172b99..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ReportExecuteMultipleRequestDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ReportExecuteMultipleRequestDTO - /// - [DataContract] - public partial class ReportExecuteMultipleRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Report Id. - /// Report output formats. - /// Parameters to input for the execution. - public ReportExecuteMultipleRequestDTO(ReportIdentifier identifier = default(ReportIdentifier), List formats = default(List), List parameters = default(List)) - { - this.Identifier = identifier; - this.Formats = formats; - this.Parameters = parameters; - } - - /// - /// Report Id - /// - /// Report Id - [DataMember(Name="identifier", EmitDefaultValue=false)] - public ReportIdentifier Identifier { get; set; } - - /// - /// Report output formats - /// - /// Report output formats - [DataMember(Name="formats", EmitDefaultValue=false)] - public List Formats { get; set; } - - /// - /// Parameters to input for the execution - /// - /// Parameters to input for the execution - [DataMember(Name="parameters", EmitDefaultValue=false)] - public List Parameters { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReportExecuteMultipleRequestDTO {\n"); - sb.Append(" Identifier: ").Append(Identifier).Append("\n"); - sb.Append(" Formats: ").Append(Formats).Append("\n"); - sb.Append(" Parameters: ").Append(Parameters).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReportExecuteMultipleRequestDTO); - } - - /// - /// Returns true if ReportExecuteMultipleRequestDTO instances are equal - /// - /// Instance of ReportExecuteMultipleRequestDTO to be compared - /// Boolean - public bool Equals(ReportExecuteMultipleRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Identifier == input.Identifier || - (this.Identifier != null && - this.Identifier.Equals(input.Identifier)) - ) && - ( - this.Formats == input.Formats || - this.Formats != null && - this.Formats.SequenceEqual(input.Formats) - ) && - ( - this.Parameters == input.Parameters || - this.Parameters != null && - this.Parameters.SequenceEqual(input.Parameters) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Identifier != null) - hashCode = hashCode * 59 + this.Identifier.GetHashCode(); - if (this.Formats != null) - hashCode = hashCode * 59 + this.Formats.GetHashCode(); - if (this.Parameters != null) - hashCode = hashCode * 59 + this.Parameters.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ReportExecuteRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ReportExecuteRequestDTO.cs deleted file mode 100644 index 69767de..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ReportExecuteRequestDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ReportExecuteRequestDTO - /// - [DataContract] - public partial class ReportExecuteRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Report Id. - /// Possible values: 1: Pdf 2: Xps 3: HtmlTable 4: HtmlSpan 5: HtmlDiv 6: Rtf 7: RtfTable 8: RtfFrame 9: RtfWinWord 10: RtfTabbedText 11: Text 12: Excel 13: ExcelXml 14: Excel2007 15: Word2007 16: Xml 17: Csv 18: Dif 19: Sylk 20: ImageGif 21: ImageBmp 22: ImagePng 23: ImageTiff 24: ImageJpeg 25: ImagePcx 26: ImageEmf 27: Mht 28: Dbf 29: Html 30: Ods 31: Odt 32: Ppt2007 33: ImageSvg 34: ImageSvgz . - /// Parameters to input for the execution. - public ReportExecuteRequestDTO(ReportIdentifier identifier = default(ReportIdentifier), int? format = default(int?), List parameters = default(List)) - { - this.Identifier = identifier; - this.Format = format; - this.Parameters = parameters; - } - - /// - /// Report Id - /// - /// Report Id - [DataMember(Name="identifier", EmitDefaultValue=false)] - public ReportIdentifier Identifier { get; set; } - - /// - /// Possible values: 1: Pdf 2: Xps 3: HtmlTable 4: HtmlSpan 5: HtmlDiv 6: Rtf 7: RtfTable 8: RtfFrame 9: RtfWinWord 10: RtfTabbedText 11: Text 12: Excel 13: ExcelXml 14: Excel2007 15: Word2007 16: Xml 17: Csv 18: Dif 19: Sylk 20: ImageGif 21: ImageBmp 22: ImagePng 23: ImageTiff 24: ImageJpeg 25: ImagePcx 26: ImageEmf 27: Mht 28: Dbf 29: Html 30: Ods 31: Odt 32: Ppt2007 33: ImageSvg 34: ImageSvgz - /// - /// Possible values: 1: Pdf 2: Xps 3: HtmlTable 4: HtmlSpan 5: HtmlDiv 6: Rtf 7: RtfTable 8: RtfFrame 9: RtfWinWord 10: RtfTabbedText 11: Text 12: Excel 13: ExcelXml 14: Excel2007 15: Word2007 16: Xml 17: Csv 18: Dif 19: Sylk 20: ImageGif 21: ImageBmp 22: ImagePng 23: ImageTiff 24: ImageJpeg 25: ImagePcx 26: ImageEmf 27: Mht 28: Dbf 29: Html 30: Ods 31: Odt 32: Ppt2007 33: ImageSvg 34: ImageSvgz - [DataMember(Name="format", EmitDefaultValue=false)] - public int? Format { get; set; } - - /// - /// Parameters to input for the execution - /// - /// Parameters to input for the execution - [DataMember(Name="parameters", EmitDefaultValue=false)] - public List Parameters { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReportExecuteRequestDTO {\n"); - sb.Append(" Identifier: ").Append(Identifier).Append("\n"); - sb.Append(" Format: ").Append(Format).Append("\n"); - sb.Append(" Parameters: ").Append(Parameters).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReportExecuteRequestDTO); - } - - /// - /// Returns true if ReportExecuteRequestDTO instances are equal - /// - /// Instance of ReportExecuteRequestDTO to be compared - /// Boolean - public bool Equals(ReportExecuteRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Identifier == input.Identifier || - (this.Identifier != null && - this.Identifier.Equals(input.Identifier)) - ) && - ( - this.Format == input.Format || - (this.Format != null && - this.Format.Equals(input.Format)) - ) && - ( - this.Parameters == input.Parameters || - this.Parameters != null && - this.Parameters.SequenceEqual(input.Parameters) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Identifier != null) - hashCode = hashCode * 59 + this.Identifier.GetHashCode(); - if (this.Format != null) - hashCode = hashCode * 59 + this.Format.GetHashCode(); - if (this.Parameters != null) - hashCode = hashCode * 59 + this.Parameters.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ReportIdentifier.cs b/ACUtils.AXRepository/ArxivarNext/Model/ReportIdentifier.cs deleted file mode 100644 index 4850c08..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ReportIdentifier.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ReportIdentifier - /// - [DataContract] - public partial class ReportIdentifier : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// The Id or ExternalId of the report. - /// Possible values: 1: Id 2: ExternalId . - public ReportIdentifier(string identifier = default(string), int? identifierType = default(int?)) - { - this.Identifier = identifier; - this.IdentifierType = identifierType; - } - - /// - /// The Id or ExternalId of the report - /// - /// The Id or ExternalId of the report - [DataMember(Name="identifier", EmitDefaultValue=false)] - public string Identifier { get; set; } - - /// - /// Possible values: 1: Id 2: ExternalId - /// - /// Possible values: 1: Id 2: ExternalId - [DataMember(Name="identifierType", EmitDefaultValue=false)] - public int? IdentifierType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReportIdentifier {\n"); - sb.Append(" Identifier: ").Append(Identifier).Append("\n"); - sb.Append(" IdentifierType: ").Append(IdentifierType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReportIdentifier); - } - - /// - /// Returns true if ReportIdentifier instances are equal - /// - /// Instance of ReportIdentifier to be compared - /// Boolean - public bool Equals(ReportIdentifier input) - { - if (input == null) - return false; - - return - ( - this.Identifier == input.Identifier || - (this.Identifier != null && - this.Identifier.Equals(input.Identifier)) - ) && - ( - this.IdentifierType == input.IdentifierType || - (this.IdentifierType != null && - this.IdentifierType.Equals(input.IdentifierType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Identifier != null) - hashCode = hashCode * 59 + this.Identifier.GetHashCode(); - if (this.IdentifierType != null) - hashCode = hashCode * 59 + this.IdentifierType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ReportParamDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ReportParamDTO.cs deleted file mode 100644 index 25d5274..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ReportParamDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ReportParamDTO - /// - [DataContract] - public partial class ReportParamDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Parameter id. - /// Parameter configuration. - /// List of parameter details. - public ReportParamDTO(string id = default(string), FieldBaseForSearchDTO configuration = default(FieldBaseForSearchDTO), List paramDetailList = default(List)) - { - this.Id = id; - this.Configuration = configuration; - this.ParamDetailList = paramDetailList; - } - - /// - /// Parameter id - /// - /// Parameter id - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Parameter configuration - /// - /// Parameter configuration - [DataMember(Name="configuration", EmitDefaultValue=false)] - public FieldBaseForSearchDTO Configuration { get; set; } - - /// - /// List of parameter details - /// - /// List of parameter details - [DataMember(Name="paramDetailList", EmitDefaultValue=false)] - public List ParamDetailList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReportParamDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Configuration: ").Append(Configuration).Append("\n"); - sb.Append(" ParamDetailList: ").Append(ParamDetailList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReportParamDTO); - } - - /// - /// Returns true if ReportParamDTO instances are equal - /// - /// Instance of ReportParamDTO to be compared - /// Boolean - public bool Equals(ReportParamDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Configuration == input.Configuration || - (this.Configuration != null && - this.Configuration.Equals(input.Configuration)) - ) && - ( - this.ParamDetailList == input.ParamDetailList || - this.ParamDetailList != null && - this.ParamDetailList.SequenceEqual(input.ParamDetailList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Configuration != null) - hashCode = hashCode * 59 + this.Configuration.GetHashCode(); - if (this.ParamDetailList != null) - hashCode = hashCode * 59 + this.ParamDetailList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ReportParamDataSourceColumnDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ReportParamDataSourceColumnDTO.cs deleted file mode 100644 index 96e2885..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ReportParamDataSourceColumnDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ReportParamDataSourceColumnDTO - /// - [DataContract] - public partial class ReportParamDataSourceColumnDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// description. - public ReportParamDataSourceColumnDTO(string id = default(string), string description = default(string)) - { - this.Id = id; - this.Description = description; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReportParamDataSourceColumnDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReportParamDataSourceColumnDTO); - } - - /// - /// Returns true if ReportParamDataSourceColumnDTO instances are equal - /// - /// Instance of ReportParamDataSourceColumnDTO to be compared - /// Boolean - public bool Equals(ReportParamDataSourceColumnDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ReportParamDataSourceDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ReportParamDataSourceDTO.cs deleted file mode 100644 index cbc4b0a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ReportParamDataSourceDTO.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ReportParamDataSourceDTO - /// - [DataContract] - public partial class ReportParamDataSourceDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// description. - /// columnList. - public ReportParamDataSourceDTO(string id = default(string), string description = default(string), List columnList = default(List)) - { - this.Id = id; - this.Description = description; - this.ColumnList = columnList; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Gets or Sets ColumnList - /// - [DataMember(Name="columnList", EmitDefaultValue=false)] - public List ColumnList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReportParamDataSourceDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ColumnList: ").Append(ColumnList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReportParamDataSourceDTO); - } - - /// - /// Returns true if ReportParamDataSourceDTO instances are equal - /// - /// Instance of ReportParamDataSourceDTO to be compared - /// Boolean - public bool Equals(ReportParamDataSourceDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.ColumnList == input.ColumnList || - this.ColumnList != null && - this.ColumnList.SequenceEqual(input.ColumnList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ColumnList != null) - hashCode = hashCode * 59 + this.ColumnList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ReportParamDetailDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ReportParamDetailDTO.cs deleted file mode 100644 index dcff085..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ReportParamDetailDTO.cs +++ /dev/null @@ -1,172 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ReportParamDetailDTO - /// - [DataContract] - public partial class ReportParamDetailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// tableId. - /// tableDescription. - /// columnId. - /// columnDescription. - public ReportParamDetailDTO(string tableId = default(string), string tableDescription = default(string), string columnId = default(string), string columnDescription = default(string)) - { - this.TableId = tableId; - this.TableDescription = tableDescription; - this.ColumnId = columnId; - this.ColumnDescription = columnDescription; - } - - /// - /// Gets or Sets TableId - /// - [DataMember(Name="tableId", EmitDefaultValue=false)] - public string TableId { get; set; } - - /// - /// Gets or Sets TableDescription - /// - [DataMember(Name="tableDescription", EmitDefaultValue=false)] - public string TableDescription { get; set; } - - /// - /// Gets or Sets ColumnId - /// - [DataMember(Name="columnId", EmitDefaultValue=false)] - public string ColumnId { get; set; } - - /// - /// Gets or Sets ColumnDescription - /// - [DataMember(Name="columnDescription", EmitDefaultValue=false)] - public string ColumnDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReportParamDetailDTO {\n"); - sb.Append(" TableId: ").Append(TableId).Append("\n"); - sb.Append(" TableDescription: ").Append(TableDescription).Append("\n"); - sb.Append(" ColumnId: ").Append(ColumnId).Append("\n"); - sb.Append(" ColumnDescription: ").Append(ColumnDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReportParamDetailDTO); - } - - /// - /// Returns true if ReportParamDetailDTO instances are equal - /// - /// Instance of ReportParamDetailDTO to be compared - /// Boolean - public bool Equals(ReportParamDetailDTO input) - { - if (input == null) - return false; - - return - ( - this.TableId == input.TableId || - (this.TableId != null && - this.TableId.Equals(input.TableId)) - ) && - ( - this.TableDescription == input.TableDescription || - (this.TableDescription != null && - this.TableDescription.Equals(input.TableDescription)) - ) && - ( - this.ColumnId == input.ColumnId || - (this.ColumnId != null && - this.ColumnId.Equals(input.ColumnId)) - ) && - ( - this.ColumnDescription == input.ColumnDescription || - (this.ColumnDescription != null && - this.ColumnDescription.Equals(input.ColumnDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.TableId != null) - hashCode = hashCode * 59 + this.TableId.GetHashCode(); - if (this.TableDescription != null) - hashCode = hashCode * 59 + this.TableDescription.GetHashCode(); - if (this.ColumnId != null) - hashCode = hashCode * 59 + this.ColumnId.GetHashCode(); - if (this.ColumnDescription != null) - hashCode = hashCode * 59 + this.ColumnDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ReportSecurityDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ReportSecurityDTO.cs deleted file mode 100644 index f065dd8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ReportSecurityDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ReportSecurityDTO - /// - [DataContract] - public partial class ReportSecurityDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Can execute report. - /// Can update report. - /// Can delete report. - /// Can Manage security. - public ReportSecurityDTO(bool? canExecute = default(bool?), bool? canUpdate = default(bool?), bool? canDelete = default(bool?), bool? canManagerSecurity = default(bool?)) - { - this.CanExecute = canExecute; - this.CanUpdate = canUpdate; - this.CanDelete = canDelete; - this.CanManagerSecurity = canManagerSecurity; - } - - /// - /// Can execute report - /// - /// Can execute report - [DataMember(Name="canExecute", EmitDefaultValue=false)] - public bool? CanExecute { get; set; } - - /// - /// Can update report - /// - /// Can update report - [DataMember(Name="canUpdate", EmitDefaultValue=false)] - public bool? CanUpdate { get; set; } - - /// - /// Can delete report - /// - /// Can delete report - [DataMember(Name="canDelete", EmitDefaultValue=false)] - public bool? CanDelete { get; set; } - - /// - /// Can Manage security - /// - /// Can Manage security - [DataMember(Name="canManagerSecurity", EmitDefaultValue=false)] - public bool? CanManagerSecurity { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReportSecurityDTO {\n"); - sb.Append(" CanExecute: ").Append(CanExecute).Append("\n"); - sb.Append(" CanUpdate: ").Append(CanUpdate).Append("\n"); - sb.Append(" CanDelete: ").Append(CanDelete).Append("\n"); - sb.Append(" CanManagerSecurity: ").Append(CanManagerSecurity).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReportSecurityDTO); - } - - /// - /// Returns true if ReportSecurityDTO instances are equal - /// - /// Instance of ReportSecurityDTO to be compared - /// Boolean - public bool Equals(ReportSecurityDTO input) - { - if (input == null) - return false; - - return - ( - this.CanExecute == input.CanExecute || - (this.CanExecute != null && - this.CanExecute.Equals(input.CanExecute)) - ) && - ( - this.CanUpdate == input.CanUpdate || - (this.CanUpdate != null && - this.CanUpdate.Equals(input.CanUpdate)) - ) && - ( - this.CanDelete == input.CanDelete || - (this.CanDelete != null && - this.CanDelete.Equals(input.CanDelete)) - ) && - ( - this.CanManagerSecurity == input.CanManagerSecurity || - (this.CanManagerSecurity != null && - this.CanManagerSecurity.Equals(input.CanManagerSecurity)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CanExecute != null) - hashCode = hashCode * 59 + this.CanExecute.GetHashCode(); - if (this.CanUpdate != null) - hashCode = hashCode * 59 + this.CanUpdate.GetHashCode(); - if (this.CanDelete != null) - hashCode = hashCode * 59 + this.CanDelete.GetHashCode(); - if (this.CanManagerSecurity != null) - hashCode = hashCode * 59 + this.CanManagerSecurity.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RetrievePasswordRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/RetrievePasswordRequestDTO.cs deleted file mode 100644 index 9bf546f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RetrievePasswordRequestDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of request retrieve password - /// - [DataContract] - public partial class RetrievePasswordRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Username. - /// Email Address. - public RetrievePasswordRequestDTO(string username = default(string), string mail = default(string)) - { - this.Username = username; - this.Mail = mail; - } - - /// - /// Username - /// - /// Username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Email Address - /// - /// Email Address - [DataMember(Name="mail", EmitDefaultValue=false)] - public string Mail { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RetrievePasswordRequestDTO {\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Mail: ").Append(Mail).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RetrievePasswordRequestDTO); - } - - /// - /// Returns true if RetrievePasswordRequestDTO instances are equal - /// - /// Instance of RetrievePasswordRequestDTO to be compared - /// Boolean - public bool Equals(RetrievePasswordRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.Mail == input.Mail || - (this.Mail != null && - this.Mail.Equals(input.Mail)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Mail != null) - hashCode = hashCode * 59 + this.Mail.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RevisionDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/RevisionDTO.cs deleted file mode 100644 index bf87b81..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RevisionDTO.cs +++ /dev/null @@ -1,448 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of revision - /// - [DataContract] - public partial class RevisionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Document Identifier. - /// Revision Number. - /// User Identifier. - /// User Description. - /// Document Date. - /// Document Creation Date. - /// File Path. - /// File Compressed Name. - /// Original File Name. - /// File Date. - /// Has Attachments. - /// File Hash. - /// Password Zip. - /// Possible values: 0: Hd 1: Cd . - /// CD Label. - /// Database to save. - /// Possible values: 0: File_System 1: Database . - /// If file compressed. - /// Possible values: 0: None 1: CompressChilkat91 2: CompressChilkat95 3: CompressChilkat95AndCryptoAes256 . - public RevisionDTO(int? id = default(int?), int? docnumber = default(int?), int? revision = default(int?), int? user = default(int?), string userDescription = default(string), DateTime? documentDate = default(DateTime?), DateTime? profileDate = default(DateTime?), string path = default(string), string fileName = default(string), string originalName = default(string), DateTime? fileDate = default(DateTime?), bool? attachments = default(bool?), string hash = default(string), string zipPassword = default(string), int? device = default(int?), string cdLabel = default(string), string cstring = default(string), int? saveType = default(int?), bool? compressed = default(bool?), int? compressionMode = default(int?)) - { - this.Id = id; - this.Docnumber = docnumber; - this.Revision = revision; - this.User = user; - this.UserDescription = userDescription; - this.DocumentDate = documentDate; - this.ProfileDate = profileDate; - this.Path = path; - this.FileName = fileName; - this.OriginalName = originalName; - this.FileDate = fileDate; - this.Attachments = attachments; - this.Hash = hash; - this.ZipPassword = zipPassword; - this.Device = device; - this.CdLabel = cdLabel; - this.Cstring = cstring; - this.SaveType = saveType; - this.Compressed = compressed; - this.CompressionMode = compressionMode; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Revision Number - /// - /// Revision Number - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// User Identifier - /// - /// User Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// User Description - /// - /// User Description - [DataMember(Name="userDescription", EmitDefaultValue=false)] - public string UserDescription { get; set; } - - /// - /// Document Date - /// - /// Document Date - [DataMember(Name="documentDate", EmitDefaultValue=false)] - public DateTime? DocumentDate { get; set; } - - /// - /// Document Creation Date - /// - /// Document Creation Date - [DataMember(Name="profileDate", EmitDefaultValue=false)] - public DateTime? ProfileDate { get; set; } - - /// - /// File Path - /// - /// File Path - [DataMember(Name="path", EmitDefaultValue=false)] - public string Path { get; set; } - - /// - /// File Compressed Name - /// - /// File Compressed Name - [DataMember(Name="fileName", EmitDefaultValue=false)] - public string FileName { get; set; } - - /// - /// Original File Name - /// - /// Original File Name - [DataMember(Name="originalName", EmitDefaultValue=false)] - public string OriginalName { get; set; } - - /// - /// File Date - /// - /// File Date - [DataMember(Name="fileDate", EmitDefaultValue=false)] - public DateTime? FileDate { get; set; } - - /// - /// Has Attachments - /// - /// Has Attachments - [DataMember(Name="attachments", EmitDefaultValue=false)] - public bool? Attachments { get; set; } - - /// - /// File Hash - /// - /// File Hash - [DataMember(Name="hash", EmitDefaultValue=false)] - public string Hash { get; set; } - - /// - /// Password Zip - /// - /// Password Zip - [DataMember(Name="zipPassword", EmitDefaultValue=false)] - public string ZipPassword { get; set; } - - /// - /// Possible values: 0: Hd 1: Cd - /// - /// Possible values: 0: Hd 1: Cd - [DataMember(Name="device", EmitDefaultValue=false)] - public int? Device { get; set; } - - /// - /// CD Label - /// - /// CD Label - [DataMember(Name="cdLabel", EmitDefaultValue=false)] - public string CdLabel { get; set; } - - /// - /// Database to save - /// - /// Database to save - [DataMember(Name="cstring", EmitDefaultValue=false)] - public string Cstring { get; set; } - - /// - /// Possible values: 0: File_System 1: Database - /// - /// Possible values: 0: File_System 1: Database - [DataMember(Name="saveType", EmitDefaultValue=false)] - public int? SaveType { get; set; } - - /// - /// If file compressed - /// - /// If file compressed - [DataMember(Name="compressed", EmitDefaultValue=false)] - public bool? Compressed { get; set; } - - /// - /// Possible values: 0: None 1: CompressChilkat91 2: CompressChilkat95 3: CompressChilkat95AndCryptoAes256 - /// - /// Possible values: 0: None 1: CompressChilkat91 2: CompressChilkat95 3: CompressChilkat95AndCryptoAes256 - [DataMember(Name="compressionMode", EmitDefaultValue=false)] - public int? CompressionMode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RevisionDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" UserDescription: ").Append(UserDescription).Append("\n"); - sb.Append(" DocumentDate: ").Append(DocumentDate).Append("\n"); - sb.Append(" ProfileDate: ").Append(ProfileDate).Append("\n"); - sb.Append(" Path: ").Append(Path).Append("\n"); - sb.Append(" FileName: ").Append(FileName).Append("\n"); - sb.Append(" OriginalName: ").Append(OriginalName).Append("\n"); - sb.Append(" FileDate: ").Append(FileDate).Append("\n"); - sb.Append(" Attachments: ").Append(Attachments).Append("\n"); - sb.Append(" Hash: ").Append(Hash).Append("\n"); - sb.Append(" ZipPassword: ").Append(ZipPassword).Append("\n"); - sb.Append(" Device: ").Append(Device).Append("\n"); - sb.Append(" CdLabel: ").Append(CdLabel).Append("\n"); - sb.Append(" Cstring: ").Append(Cstring).Append("\n"); - sb.Append(" SaveType: ").Append(SaveType).Append("\n"); - sb.Append(" Compressed: ").Append(Compressed).Append("\n"); - sb.Append(" CompressionMode: ").Append(CompressionMode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RevisionDTO); - } - - /// - /// Returns true if RevisionDTO instances are equal - /// - /// Instance of RevisionDTO to be compared - /// Boolean - public bool Equals(RevisionDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.UserDescription == input.UserDescription || - (this.UserDescription != null && - this.UserDescription.Equals(input.UserDescription)) - ) && - ( - this.DocumentDate == input.DocumentDate || - (this.DocumentDate != null && - this.DocumentDate.Equals(input.DocumentDate)) - ) && - ( - this.ProfileDate == input.ProfileDate || - (this.ProfileDate != null && - this.ProfileDate.Equals(input.ProfileDate)) - ) && - ( - this.Path == input.Path || - (this.Path != null && - this.Path.Equals(input.Path)) - ) && - ( - this.FileName == input.FileName || - (this.FileName != null && - this.FileName.Equals(input.FileName)) - ) && - ( - this.OriginalName == input.OriginalName || - (this.OriginalName != null && - this.OriginalName.Equals(input.OriginalName)) - ) && - ( - this.FileDate == input.FileDate || - (this.FileDate != null && - this.FileDate.Equals(input.FileDate)) - ) && - ( - this.Attachments == input.Attachments || - (this.Attachments != null && - this.Attachments.Equals(input.Attachments)) - ) && - ( - this.Hash == input.Hash || - (this.Hash != null && - this.Hash.Equals(input.Hash)) - ) && - ( - this.ZipPassword == input.ZipPassword || - (this.ZipPassword != null && - this.ZipPassword.Equals(input.ZipPassword)) - ) && - ( - this.Device == input.Device || - (this.Device != null && - this.Device.Equals(input.Device)) - ) && - ( - this.CdLabel == input.CdLabel || - (this.CdLabel != null && - this.CdLabel.Equals(input.CdLabel)) - ) && - ( - this.Cstring == input.Cstring || - (this.Cstring != null && - this.Cstring.Equals(input.Cstring)) - ) && - ( - this.SaveType == input.SaveType || - (this.SaveType != null && - this.SaveType.Equals(input.SaveType)) - ) && - ( - this.Compressed == input.Compressed || - (this.Compressed != null && - this.Compressed.Equals(input.Compressed)) - ) && - ( - this.CompressionMode == input.CompressionMode || - (this.CompressionMode != null && - this.CompressionMode.Equals(input.CompressionMode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.UserDescription != null) - hashCode = hashCode * 59 + this.UserDescription.GetHashCode(); - if (this.DocumentDate != null) - hashCode = hashCode * 59 + this.DocumentDate.GetHashCode(); - if (this.ProfileDate != null) - hashCode = hashCode * 59 + this.ProfileDate.GetHashCode(); - if (this.Path != null) - hashCode = hashCode * 59 + this.Path.GetHashCode(); - if (this.FileName != null) - hashCode = hashCode * 59 + this.FileName.GetHashCode(); - if (this.OriginalName != null) - hashCode = hashCode * 59 + this.OriginalName.GetHashCode(); - if (this.FileDate != null) - hashCode = hashCode * 59 + this.FileDate.GetHashCode(); - if (this.Attachments != null) - hashCode = hashCode * 59 + this.Attachments.GetHashCode(); - if (this.Hash != null) - hashCode = hashCode * 59 + this.Hash.GetHashCode(); - if (this.ZipPassword != null) - hashCode = hashCode * 59 + this.ZipPassword.GetHashCode(); - if (this.Device != null) - hashCode = hashCode * 59 + this.Device.GetHashCode(); - if (this.CdLabel != null) - hashCode = hashCode * 59 + this.CdLabel.GetHashCode(); - if (this.Cstring != null) - hashCode = hashCode * 59 + this.Cstring.GetHashCode(); - if (this.SaveType != null) - hashCode = hashCode * 59 + this.SaveType.GetHashCode(); - if (this.Compressed != null) - hashCode = hashCode * 59 + this.Compressed.GetHashCode(); - if (this.CompressionMode != null) - hashCode = hashCode * 59 + this.CompressionMode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RolesInfoDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/RolesInfoDto.cs deleted file mode 100644 index bb7cedf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RolesInfoDto.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of role information - /// - [DataContract] - public partial class RolesInfoDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Name. - /// Value. - public RolesInfoDto(string roleName = default(string), Object value = default(Object)) - { - this.RoleName = roleName; - this.Value = value; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="roleName", EmitDefaultValue=false)] - public string RoleName { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public Object Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RolesInfoDto {\n"); - sb.Append(" RoleName: ").Append(RoleName).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RolesInfoDto); - } - - /// - /// Returns true if RolesInfoDto instances are equal - /// - /// Instance of RolesInfoDto to be compared - /// Boolean - public bool Equals(RolesInfoDto input) - { - if (input == null) - return false; - - return - ( - this.RoleName == input.RoleName || - (this.RoleName != null && - this.RoleName.Equals(input.RoleName)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.RoleName != null) - hashCode = hashCode * 59 + this.RoleName.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RowSearchResult.cs b/ACUtils.AXRepository/ArxivarNext/Model/RowSearchResult.cs deleted file mode 100644 index 96f21c0..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RowSearchResult.cs +++ /dev/null @@ -1,141 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of search result row - /// - [DataContract] - public partial class RowSearchResult : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: None 1: Profiles 2: InternalAttachments 3: ExternalAttachments 4: AddressBook 5: CheckInOut 6: TaskWork 7: TaskWorkAttachements 8: TaskNotes 9: TaskWorkHistory 10: SqlQuery 11: ApiCall 12: Users . - /// columns. - public RowSearchResult(int? rowSerchResultContext = default(int?), List columns = default(List)) - { - this.RowSerchResultContext = rowSerchResultContext; - this.Columns = columns; - } - - /// - /// Possible values: 0: None 1: Profiles 2: InternalAttachments 3: ExternalAttachments 4: AddressBook 5: CheckInOut 6: TaskWork 7: TaskWorkAttachements 8: TaskNotes 9: TaskWorkHistory 10: SqlQuery 11: ApiCall 12: Users - /// - /// Possible values: 0: None 1: Profiles 2: InternalAttachments 3: ExternalAttachments 4: AddressBook 5: CheckInOut 6: TaskWork 7: TaskWorkAttachements 8: TaskNotes 9: TaskWorkHistory 10: SqlQuery 11: ApiCall 12: Users - [DataMember(Name="rowSerchResultContext", EmitDefaultValue=false)] - public int? RowSerchResultContext { get; set; } - - /// - /// Gets or Sets Columns - /// - [DataMember(Name="columns", EmitDefaultValue=false)] - public List Columns { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RowSearchResult {\n"); - sb.Append(" RowSerchResultContext: ").Append(RowSerchResultContext).Append("\n"); - sb.Append(" Columns: ").Append(Columns).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RowSearchResult); - } - - /// - /// Returns true if RowSearchResult instances are equal - /// - /// Instance of RowSearchResult to be compared - /// Boolean - public bool Equals(RowSearchResult input) - { - if (input == null) - return false; - - return - ( - this.RowSerchResultContext == input.RowSerchResultContext || - (this.RowSerchResultContext != null && - this.RowSerchResultContext.Equals(input.RowSerchResultContext)) - ) && - ( - this.Columns == input.Columns || - this.Columns != null && - this.Columns.SequenceEqual(input.Columns) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.RowSerchResultContext != null) - hashCode = hashCode * 59 + this.RowSerchResultContext.GetHashCode(); - if (this.Columns != null) - hashCode = hashCode * 59 + this.Columns.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/RubricaFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/RubricaFieldDTO.cs deleted file mode 100644 index d681f42..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/RubricaFieldDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of address book field - /// - [DataContract] - public partial class RubricaFieldDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Field label translated into the language used. - /// Field key in the database. - /// If field is selected for the result. - /// Field order for the result. - public RubricaFieldDTO(string label = default(string), string keyField = default(string), bool? selected = default(bool?), int? index = default(int?)) - { - this.Label = label; - this.KeyField = keyField; - this.Selected = selected; - this.Index = index; - } - - /// - /// Field label translated into the language used - /// - /// Field label translated into the language used - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Field key in the database - /// - /// Field key in the database - [DataMember(Name="keyField", EmitDefaultValue=false)] - public string KeyField { get; set; } - - /// - /// If field is selected for the result - /// - /// If field is selected for the result - [DataMember(Name="selected", EmitDefaultValue=false)] - public bool? Selected { get; set; } - - /// - /// Field order for the result - /// - /// Field order for the result - [DataMember(Name="index", EmitDefaultValue=false)] - public int? Index { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RubricaFieldDTO {\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" KeyField: ").Append(KeyField).Append("\n"); - sb.Append(" Selected: ").Append(Selected).Append("\n"); - sb.Append(" Index: ").Append(Index).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RubricaFieldDTO); - } - - /// - /// Returns true if RubricaFieldDTO instances are equal - /// - /// Instance of RubricaFieldDTO to be compared - /// Boolean - public bool Equals(RubricaFieldDTO input) - { - if (input == null) - return false; - - return - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.KeyField == input.KeyField || - (this.KeyField != null && - this.KeyField.Equals(input.KeyField)) - ) && - ( - this.Selected == input.Selected || - (this.Selected != null && - this.Selected.Equals(input.Selected)) - ) && - ( - this.Index == input.Index || - (this.Index != null && - this.Index.Equals(input.Index)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.KeyField != null) - hashCode = hashCode * 59 + this.KeyField.GetHashCode(); - if (this.Selected != null) - hashCode = hashCode * 59 + this.Selected.GetHashCode(); - if (this.Index != null) - hashCode = hashCode * 59 + this.Index.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SaveMailRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SaveMailRequestDTO.cs deleted file mode 100644 index e1dc2bd..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SaveMailRequestDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SaveMailRequestDTO - /// - [DataContract] - public partial class SaveMailRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// The message draft id, null or 0 if is a new message. - /// Gets or sets a value indicating whether the mail message body is in HTML. The default value is false. - /// Gets or sets the message body. - /// The email subject. - /// Possible values: 0: Normal 2: High . - /// Email from. - /// List email destination. - /// The email document list. - public SaveMailRequestDTO(int? id = default(int?), bool? isBodyHtml = default(bool?), string body = default(string), string subject = default(string), int? priority = default(int?), EmailFromAddressDTO from = default(EmailFromAddressDTO), List destinations = default(List), List documents = default(List)) - { - this.Id = id; - this.IsBodyHtml = isBodyHtml; - this.Body = body; - this.Subject = subject; - this.Priority = priority; - this.From = from; - this.Destinations = destinations; - this.Documents = documents; - } - - /// - /// The message draft id, null or 0 if is a new message - /// - /// The message draft id, null or 0 if is a new message - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or sets a value indicating whether the mail message body is in HTML. The default value is false - /// - /// Gets or sets a value indicating whether the mail message body is in HTML. The default value is false - [DataMember(Name="isBodyHtml", EmitDefaultValue=false)] - public bool? IsBodyHtml { get; set; } - - /// - /// Gets or sets the message body - /// - /// Gets or sets the message body - [DataMember(Name="body", EmitDefaultValue=false)] - public string Body { get; set; } - - /// - /// The email subject - /// - /// The email subject - [DataMember(Name="subject", EmitDefaultValue=false)] - public string Subject { get; set; } - - /// - /// Possible values: 0: Normal 2: High - /// - /// Possible values: 0: Normal 2: High - [DataMember(Name="priority", EmitDefaultValue=false)] - public int? Priority { get; set; } - - /// - /// Email from - /// - /// Email from - [DataMember(Name="from", EmitDefaultValue=false)] - public EmailFromAddressDTO From { get; set; } - - /// - /// List email destination - /// - /// List email destination - [DataMember(Name="destinations", EmitDefaultValue=false)] - public List Destinations { get; set; } - - /// - /// The email document list - /// - /// The email document list - [DataMember(Name="documents", EmitDefaultValue=false)] - public List Documents { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SaveMailRequestDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IsBodyHtml: ").Append(IsBodyHtml).Append("\n"); - sb.Append(" Body: ").Append(Body).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" From: ").Append(From).Append("\n"); - sb.Append(" Destinations: ").Append(Destinations).Append("\n"); - sb.Append(" Documents: ").Append(Documents).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SaveMailRequestDTO); - } - - /// - /// Returns true if SaveMailRequestDTO instances are equal - /// - /// Instance of SaveMailRequestDTO to be compared - /// Boolean - public bool Equals(SaveMailRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.IsBodyHtml == input.IsBodyHtml || - (this.IsBodyHtml != null && - this.IsBodyHtml.Equals(input.IsBodyHtml)) - ) && - ( - this.Body == input.Body || - (this.Body != null && - this.Body.Equals(input.Body)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && - ( - this.From == input.From || - (this.From != null && - this.From.Equals(input.From)) - ) && - ( - this.Destinations == input.Destinations || - this.Destinations != null && - this.Destinations.SequenceEqual(input.Destinations) - ) && - ( - this.Documents == input.Documents || - this.Documents != null && - this.Documents.SequenceEqual(input.Documents) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.IsBodyHtml != null) - hashCode = hashCode * 59 + this.IsBodyHtml.GetHashCode(); - if (this.Body != null) - hashCode = hashCode * 59 + this.Body.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.From != null) - hashCode = hashCode * 59 + this.From.GetHashCode(); - if (this.Destinations != null) - hashCode = hashCode * 59 + this.Destinations.GetHashCode(); - if (this.Documents != null) - hashCode = hashCode * 59 + this.Documents.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SavedAttachDocumentoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SavedAttachDocumentoDTO.cs deleted file mode 100644 index 01664ad..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SavedAttachDocumentoDTO.cs +++ /dev/null @@ -1,149 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SavedAttachDocumentoDTO - /// - [DataContract] - public partial class SavedAttachDocumentoDTO : EmailDocumentDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected SavedAttachDocumentoDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Attachment identifier. - /// File name. - public SavedAttachDocumentoDTO(int? attachmentIdentifier = default(int?), string filename = default(string), string className = "SavedAttachDocumentoDTO") : base(className) - { - this.AttachmentIdentifier = attachmentIdentifier; - this.Filename = filename; - } - - /// - /// Attachment identifier - /// - /// Attachment identifier - [DataMember(Name="attachmentIdentifier", EmitDefaultValue=false)] - public int? AttachmentIdentifier { get; set; } - - /// - /// File name - /// - /// File name - [DataMember(Name="filename", EmitDefaultValue=false)] - public string Filename { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SavedAttachDocumentoDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AttachmentIdentifier: ").Append(AttachmentIdentifier).Append("\n"); - sb.Append(" Filename: ").Append(Filename).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SavedAttachDocumentoDTO); - } - - /// - /// Returns true if SavedAttachDocumentoDTO instances are equal - /// - /// Instance of SavedAttachDocumentoDTO to be compared - /// Boolean - public bool Equals(SavedAttachDocumentoDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AttachmentIdentifier == input.AttachmentIdentifier || - (this.AttachmentIdentifier != null && - this.AttachmentIdentifier.Equals(input.AttachmentIdentifier)) - ) && base.Equals(input) && - ( - this.Filename == input.Filename || - (this.Filename != null && - this.Filename.Equals(input.Filename)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AttachmentIdentifier != null) - hashCode = hashCode * 59 + this.AttachmentIdentifier.GetHashCode(); - if (this.Filename != null) - hashCode = hashCode * 59 + this.Filename.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ScanResultDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ScanResultDto.cs deleted file mode 100644 index 0da904a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ScanResultDto.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ScanResultDto - /// - [DataContract] - public partial class ScanResultDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// bufferIds. - /// fileNames. - public ScanResultDto(List bufferIds = default(List), List fileNames = default(List)) - { - this.BufferIds = bufferIds; - this.FileNames = fileNames; - } - - /// - /// Gets or Sets BufferIds - /// - [DataMember(Name="bufferIds", EmitDefaultValue=false)] - public List BufferIds { get; set; } - - /// - /// Gets or Sets FileNames - /// - [DataMember(Name="fileNames", EmitDefaultValue=false)] - public List FileNames { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ScanResultDto {\n"); - sb.Append(" BufferIds: ").Append(BufferIds).Append("\n"); - sb.Append(" FileNames: ").Append(FileNames).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ScanResultDto); - } - - /// - /// Returns true if ScanResultDto instances are equal - /// - /// Instance of ScanResultDto to be compared - /// Boolean - public bool Equals(ScanResultDto input) - { - if (input == null) - return false; - - return - ( - this.BufferIds == input.BufferIds || - this.BufferIds != null && - this.BufferIds.SequenceEqual(input.BufferIds) - ) && - ( - this.FileNames == input.FileNames || - this.FileNames != null && - this.FileNames.SequenceEqual(input.FileNames) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.BufferIds != null) - hashCode = hashCode * 59 + this.BufferIds.GetHashCode(); - if (this.FileNames != null) - hashCode = hashCode * 59 + this.FileNames.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SearchConcreteDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SearchConcreteDTO.cs deleted file mode 100644 index 9314d96..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SearchConcreteDTO.cs +++ /dev/null @@ -1,363 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of search - /// - [DataContract] - public partial class SearchConcreteDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: And 1: Or . - /// Contact Fields. - /// Business Unit. - /// Document Type. - /// Protocol. - /// Conservation. - /// Stamp. - /// List of fields of type 'Datetime'. - /// List of fields of type 'String'. - /// List of fields of type 'Integer'. - /// List of fields of type 'Boolean'. - /// List of fields of type 'Decimal'. - /// List of fields of type 'List'. - /// List of fields of type 'List'. - /// List of fields of type 'Group'. - public SearchConcreteDTO(int? daAAndOr = default(int?), List contactFields = default(List), FieldBaseForSearchAooDto aooField = default(FieldBaseForSearchAooDto), FieldBaseForSearchDocumentTypeDto documentTypeField = default(FieldBaseForSearchDocumentTypeDto), FieldBaseForSearchProtocolloDto protocolField = default(FieldBaseForSearchProtocolloDto), FieldBaseForSearchConservazioneDto conservationField = default(FieldBaseForSearchConservazioneDto), FieldBaseForSearchStampDto stampField = default(FieldBaseForSearchStampDto), List dateTimeFields = default(List), List stringFields = default(List), List intFields = default(List), List boolFields = default(List), List doubleFields = default(List), List stringListFields = default(List), List matrixFields = default(List), List groupFields = default(List)) - { - this.DaAAndOr = daAAndOr; - this.ContactFields = contactFields; - this.AooField = aooField; - this.DocumentTypeField = documentTypeField; - this.ProtocolField = protocolField; - this.ConservationField = conservationField; - this.StampField = stampField; - this.DateTimeFields = dateTimeFields; - this.StringFields = stringFields; - this.IntFields = intFields; - this.BoolFields = boolFields; - this.DoubleFields = doubleFields; - this.StringListFields = stringListFields; - this.MatrixFields = matrixFields; - this.GroupFields = groupFields; - } - - /// - /// Possible values: 0: And 1: Or - /// - /// Possible values: 0: And 1: Or - [DataMember(Name="daAAndOr", EmitDefaultValue=false)] - public int? DaAAndOr { get; set; } - - /// - /// Contact Fields - /// - /// Contact Fields - [DataMember(Name="contactFields", EmitDefaultValue=false)] - public List ContactFields { get; set; } - - /// - /// Business Unit - /// - /// Business Unit - [DataMember(Name="aooField", EmitDefaultValue=false)] - public FieldBaseForSearchAooDto AooField { get; set; } - - /// - /// Document Type - /// - /// Document Type - [DataMember(Name="documentTypeField", EmitDefaultValue=false)] - public FieldBaseForSearchDocumentTypeDto DocumentTypeField { get; set; } - - /// - /// Protocol - /// - /// Protocol - [DataMember(Name="protocolField", EmitDefaultValue=false)] - public FieldBaseForSearchProtocolloDto ProtocolField { get; set; } - - /// - /// Conservation - /// - /// Conservation - [DataMember(Name="conservationField", EmitDefaultValue=false)] - public FieldBaseForSearchConservazioneDto ConservationField { get; set; } - - /// - /// Stamp - /// - /// Stamp - [DataMember(Name="stampField", EmitDefaultValue=false)] - public FieldBaseForSearchStampDto StampField { get; set; } - - /// - /// List of fields of type 'Datetime' - /// - /// List of fields of type 'Datetime' - [DataMember(Name="dateTimeFields", EmitDefaultValue=false)] - public List DateTimeFields { get; set; } - - /// - /// List of fields of type 'String' - /// - /// List of fields of type 'String' - [DataMember(Name="stringFields", EmitDefaultValue=false)] - public List StringFields { get; set; } - - /// - /// List of fields of type 'Integer' - /// - /// List of fields of type 'Integer' - [DataMember(Name="intFields", EmitDefaultValue=false)] - public List IntFields { get; set; } - - /// - /// List of fields of type 'Boolean' - /// - /// List of fields of type 'Boolean' - [DataMember(Name="boolFields", EmitDefaultValue=false)] - public List BoolFields { get; set; } - - /// - /// List of fields of type 'Decimal' - /// - /// List of fields of type 'Decimal' - [DataMember(Name="doubleFields", EmitDefaultValue=false)] - public List DoubleFields { get; set; } - - /// - /// List of fields of type 'List' - /// - /// List of fields of type 'List' - [DataMember(Name="stringListFields", EmitDefaultValue=false)] - public List StringListFields { get; set; } - - /// - /// List of fields of type 'List' - /// - /// List of fields of type 'List' - [DataMember(Name="matrixFields", EmitDefaultValue=false)] - public List MatrixFields { get; set; } - - /// - /// List of fields of type 'Group' - /// - /// List of fields of type 'Group' - [DataMember(Name="groupFields", EmitDefaultValue=false)] - public List GroupFields { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SearchConcreteDTO {\n"); - sb.Append(" DaAAndOr: ").Append(DaAAndOr).Append("\n"); - sb.Append(" ContactFields: ").Append(ContactFields).Append("\n"); - sb.Append(" AooField: ").Append(AooField).Append("\n"); - sb.Append(" DocumentTypeField: ").Append(DocumentTypeField).Append("\n"); - sb.Append(" ProtocolField: ").Append(ProtocolField).Append("\n"); - sb.Append(" ConservationField: ").Append(ConservationField).Append("\n"); - sb.Append(" StampField: ").Append(StampField).Append("\n"); - sb.Append(" DateTimeFields: ").Append(DateTimeFields).Append("\n"); - sb.Append(" StringFields: ").Append(StringFields).Append("\n"); - sb.Append(" IntFields: ").Append(IntFields).Append("\n"); - sb.Append(" BoolFields: ").Append(BoolFields).Append("\n"); - sb.Append(" DoubleFields: ").Append(DoubleFields).Append("\n"); - sb.Append(" StringListFields: ").Append(StringListFields).Append("\n"); - sb.Append(" MatrixFields: ").Append(MatrixFields).Append("\n"); - sb.Append(" GroupFields: ").Append(GroupFields).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SearchConcreteDTO); - } - - /// - /// Returns true if SearchConcreteDTO instances are equal - /// - /// Instance of SearchConcreteDTO to be compared - /// Boolean - public bool Equals(SearchConcreteDTO input) - { - if (input == null) - return false; - - return - ( - this.DaAAndOr == input.DaAAndOr || - (this.DaAAndOr != null && - this.DaAAndOr.Equals(input.DaAAndOr)) - ) && - ( - this.ContactFields == input.ContactFields || - this.ContactFields != null && - this.ContactFields.SequenceEqual(input.ContactFields) - ) && - ( - this.AooField == input.AooField || - (this.AooField != null && - this.AooField.Equals(input.AooField)) - ) && - ( - this.DocumentTypeField == input.DocumentTypeField || - (this.DocumentTypeField != null && - this.DocumentTypeField.Equals(input.DocumentTypeField)) - ) && - ( - this.ProtocolField == input.ProtocolField || - (this.ProtocolField != null && - this.ProtocolField.Equals(input.ProtocolField)) - ) && - ( - this.ConservationField == input.ConservationField || - (this.ConservationField != null && - this.ConservationField.Equals(input.ConservationField)) - ) && - ( - this.StampField == input.StampField || - (this.StampField != null && - this.StampField.Equals(input.StampField)) - ) && - ( - this.DateTimeFields == input.DateTimeFields || - this.DateTimeFields != null && - this.DateTimeFields.SequenceEqual(input.DateTimeFields) - ) && - ( - this.StringFields == input.StringFields || - this.StringFields != null && - this.StringFields.SequenceEqual(input.StringFields) - ) && - ( - this.IntFields == input.IntFields || - this.IntFields != null && - this.IntFields.SequenceEqual(input.IntFields) - ) && - ( - this.BoolFields == input.BoolFields || - this.BoolFields != null && - this.BoolFields.SequenceEqual(input.BoolFields) - ) && - ( - this.DoubleFields == input.DoubleFields || - this.DoubleFields != null && - this.DoubleFields.SequenceEqual(input.DoubleFields) - ) && - ( - this.StringListFields == input.StringListFields || - this.StringListFields != null && - this.StringListFields.SequenceEqual(input.StringListFields) - ) && - ( - this.MatrixFields == input.MatrixFields || - this.MatrixFields != null && - this.MatrixFields.SequenceEqual(input.MatrixFields) - ) && - ( - this.GroupFields == input.GroupFields || - this.GroupFields != null && - this.GroupFields.SequenceEqual(input.GroupFields) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DaAAndOr != null) - hashCode = hashCode * 59 + this.DaAAndOr.GetHashCode(); - if (this.ContactFields != null) - hashCode = hashCode * 59 + this.ContactFields.GetHashCode(); - if (this.AooField != null) - hashCode = hashCode * 59 + this.AooField.GetHashCode(); - if (this.DocumentTypeField != null) - hashCode = hashCode * 59 + this.DocumentTypeField.GetHashCode(); - if (this.ProtocolField != null) - hashCode = hashCode * 59 + this.ProtocolField.GetHashCode(); - if (this.ConservationField != null) - hashCode = hashCode * 59 + this.ConservationField.GetHashCode(); - if (this.StampField != null) - hashCode = hashCode * 59 + this.StampField.GetHashCode(); - if (this.DateTimeFields != null) - hashCode = hashCode * 59 + this.DateTimeFields.GetHashCode(); - if (this.StringFields != null) - hashCode = hashCode * 59 + this.StringFields.GetHashCode(); - if (this.IntFields != null) - hashCode = hashCode * 59 + this.IntFields.GetHashCode(); - if (this.BoolFields != null) - hashCode = hashCode * 59 + this.BoolFields.GetHashCode(); - if (this.DoubleFields != null) - hashCode = hashCode * 59 + this.DoubleFields.GetHashCode(); - if (this.StringListFields != null) - hashCode = hashCode * 59 + this.StringListFields.GetHashCode(); - if (this.MatrixFields != null) - hashCode = hashCode * 59 + this.MatrixFields.GetHashCode(); - if (this.GroupFields != null) - hashCode = hashCode * 59 + this.GroupFields.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SearchCriteriaDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/SearchCriteriaDto.cs deleted file mode 100644 index 377675f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SearchCriteriaDto.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SearchCriteriaDto - /// - [DataContract] - public partial class SearchCriteriaDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// searchFilterDto. - /// selectFilterDto. - public SearchCriteriaDto(SearchDTO searchFilterDto = default(SearchDTO), SelectDTO selectFilterDto = default(SelectDTO)) - { - this.SearchFilterDto = searchFilterDto; - this.SelectFilterDto = selectFilterDto; - } - - /// - /// Gets or Sets SearchFilterDto - /// - [DataMember(Name="searchFilterDto", EmitDefaultValue=false)] - public SearchDTO SearchFilterDto { get; set; } - - /// - /// Gets or Sets SelectFilterDto - /// - [DataMember(Name="selectFilterDto", EmitDefaultValue=false)] - public SelectDTO SelectFilterDto { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SearchCriteriaDto {\n"); - sb.Append(" SearchFilterDto: ").Append(SearchFilterDto).Append("\n"); - sb.Append(" SelectFilterDto: ").Append(SelectFilterDto).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SearchCriteriaDto); - } - - /// - /// Returns true if SearchCriteriaDto instances are equal - /// - /// Instance of SearchCriteriaDto to be compared - /// Boolean - public bool Equals(SearchCriteriaDto input) - { - if (input == null) - return false; - - return - ( - this.SearchFilterDto == input.SearchFilterDto || - (this.SearchFilterDto != null && - this.SearchFilterDto.Equals(input.SearchFilterDto)) - ) && - ( - this.SelectFilterDto == input.SelectFilterDto || - (this.SelectFilterDto != null && - this.SelectFilterDto.Equals(input.SelectFilterDto)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SearchFilterDto != null) - hashCode = hashCode * 59 + this.SearchFilterDto.GetHashCode(); - if (this.SelectFilterDto != null) - hashCode = hashCode * 59 + this.SelectFilterDto.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SearchCriteriaMultipleDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/SearchCriteriaMultipleDto.cs deleted file mode 100644 index 55e3db4..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SearchCriteriaMultipleDto.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SearchCriteriaMultipleDto - /// - [DataContract] - public partial class SearchCriteriaMultipleDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// searchFilterDtoList. - /// selectFilterDto. - public SearchCriteriaMultipleDto(List searchFilterDtoList = default(List), SelectDTO selectFilterDto = default(SelectDTO)) - { - this.SearchFilterDtoList = searchFilterDtoList; - this.SelectFilterDto = selectFilterDto; - } - - /// - /// Gets or Sets SearchFilterDtoList - /// - [DataMember(Name="searchFilterDtoList", EmitDefaultValue=false)] - public List SearchFilterDtoList { get; set; } - - /// - /// Gets or Sets SelectFilterDto - /// - [DataMember(Name="selectFilterDto", EmitDefaultValue=false)] - public SelectDTO SelectFilterDto { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SearchCriteriaMultipleDto {\n"); - sb.Append(" SearchFilterDtoList: ").Append(SearchFilterDtoList).Append("\n"); - sb.Append(" SelectFilterDto: ").Append(SelectFilterDto).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SearchCriteriaMultipleDto); - } - - /// - /// Returns true if SearchCriteriaMultipleDto instances are equal - /// - /// Instance of SearchCriteriaMultipleDto to be compared - /// Boolean - public bool Equals(SearchCriteriaMultipleDto input) - { - if (input == null) - return false; - - return - ( - this.SearchFilterDtoList == input.SearchFilterDtoList || - this.SearchFilterDtoList != null && - this.SearchFilterDtoList.SequenceEqual(input.SearchFilterDtoList) - ) && - ( - this.SelectFilterDto == input.SelectFilterDto || - (this.SelectFilterDto != null && - this.SelectFilterDto.Equals(input.SelectFilterDto)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SearchFilterDtoList != null) - hashCode = hashCode * 59 + this.SearchFilterDtoList.GetHashCode(); - if (this.SelectFilterDto != null) - hashCode = hashCode * 59 + this.SelectFilterDto.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SearchDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SearchDTO.cs deleted file mode 100644 index 2511e00..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SearchDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of search - /// - [DataContract] - public partial class SearchDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// The description of the search. - /// Possible values: 0: And 1: Or . - /// Fields. - public SearchDTO(string description = default(string), int? daAAndOr = default(int?), List fields = default(List)) - { - this.Description = description; - this.DaAAndOr = daAAndOr; - this.Fields = fields; - } - - /// - /// The description of the search - /// - /// The description of the search - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 0: And 1: Or - /// - /// Possible values: 0: And 1: Or - [DataMember(Name="daAAndOr", EmitDefaultValue=false)] - public int? DaAAndOr { get; set; } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SearchDTO {\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DaAAndOr: ").Append(DaAAndOr).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SearchDTO); - } - - /// - /// Returns true if SearchDTO instances are equal - /// - /// Instance of SearchDTO to be compared - /// Boolean - public bool Equals(SearchDTO input) - { - if (input == null) - return false; - - return - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.DaAAndOr == input.DaAAndOr || - (this.DaAAndOr != null && - this.DaAAndOr.Equals(input.DaAAndOr)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DaAAndOr != null) - hashCode = hashCode * 59 + this.DaAAndOr.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SelectDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SelectDTO.cs deleted file mode 100644 index 10baec4..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SelectDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of Select data - /// - [DataContract] - public partial class SelectDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Fields. - /// Maximum Number of items. - public SelectDTO(List fields = default(List), int? maxItems = default(int?)) - { - this.Fields = fields; - this.MaxItems = maxItems; - } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Maximum Number of items - /// - /// Maximum Number of items - [DataMember(Name="maxItems", EmitDefaultValue=false)] - public int? MaxItems { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SelectDTO {\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append(" MaxItems: ").Append(MaxItems).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SelectDTO); - } - - /// - /// Returns true if SelectDTO instances are equal - /// - /// Instance of SelectDTO to be compared - /// Boolean - public bool Equals(SelectDTO input) - { - if (input == null) - return false; - - return - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ) && - ( - this.MaxItems == input.MaxItems || - (this.MaxItems != null && - this.MaxItems.Equals(input.MaxItems)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - if (this.MaxItems != null) - hashCode = hashCode * 59 + this.MaxItems.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SendMailRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SendMailRequestDTO.cs deleted file mode 100644 index 5484bd9..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SendMailRequestDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SendMailRequestDTO - /// - [DataContract] - public partial class SendMailRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// The account used to send the email. - /// Set to true if you want the email to request a return-receipt when received by the recipient. The default value is false. - /// The message draft id, null or 0 if is a new message. - /// Gets or sets a value indicating whether the mail message body is in HTML. The default value is false. - /// Gets or sets the message body. - /// The email subject. - /// Possible values: 0: Normal 2: High . - /// Email from. - /// List email destination. - /// The email document list. - public SendMailRequestDTO(int? idAccount = default(int?), bool? returnReceipt = default(bool?), int? id = default(int?), bool? isBodyHtml = default(bool?), string body = default(string), string subject = default(string), int? priority = default(int?), EmailFromAddressDTO from = default(EmailFromAddressDTO), List destinations = default(List), List documents = default(List)) - { - this.IdAccount = idAccount; - this.ReturnReceipt = returnReceipt; - this.Id = id; - this.IsBodyHtml = isBodyHtml; - this.Body = body; - this.Subject = subject; - this.Priority = priority; - this.From = from; - this.Destinations = destinations; - this.Documents = documents; - } - - /// - /// The account used to send the email - /// - /// The account used to send the email - [DataMember(Name="idAccount", EmitDefaultValue=false)] - public int? IdAccount { get; set; } - - /// - /// Set to true if you want the email to request a return-receipt when received by the recipient. The default value is false - /// - /// Set to true if you want the email to request a return-receipt when received by the recipient. The default value is false - [DataMember(Name="returnReceipt", EmitDefaultValue=false)] - public bool? ReturnReceipt { get; set; } - - /// - /// The message draft id, null or 0 if is a new message - /// - /// The message draft id, null or 0 if is a new message - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or sets a value indicating whether the mail message body is in HTML. The default value is false - /// - /// Gets or sets a value indicating whether the mail message body is in HTML. The default value is false - [DataMember(Name="isBodyHtml", EmitDefaultValue=false)] - public bool? IsBodyHtml { get; set; } - - /// - /// Gets or sets the message body - /// - /// Gets or sets the message body - [DataMember(Name="body", EmitDefaultValue=false)] - public string Body { get; set; } - - /// - /// The email subject - /// - /// The email subject - [DataMember(Name="subject", EmitDefaultValue=false)] - public string Subject { get; set; } - - /// - /// Possible values: 0: Normal 2: High - /// - /// Possible values: 0: Normal 2: High - [DataMember(Name="priority", EmitDefaultValue=false)] - public int? Priority { get; set; } - - /// - /// Email from - /// - /// Email from - [DataMember(Name="from", EmitDefaultValue=false)] - public EmailFromAddressDTO From { get; set; } - - /// - /// List email destination - /// - /// List email destination - [DataMember(Name="destinations", EmitDefaultValue=false)] - public List Destinations { get; set; } - - /// - /// The email document list - /// - /// The email document list - [DataMember(Name="documents", EmitDefaultValue=false)] - public List Documents { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SendMailRequestDTO {\n"); - sb.Append(" IdAccount: ").Append(IdAccount).Append("\n"); - sb.Append(" ReturnReceipt: ").Append(ReturnReceipt).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IsBodyHtml: ").Append(IsBodyHtml).Append("\n"); - sb.Append(" Body: ").Append(Body).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" From: ").Append(From).Append("\n"); - sb.Append(" Destinations: ").Append(Destinations).Append("\n"); - sb.Append(" Documents: ").Append(Documents).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SendMailRequestDTO); - } - - /// - /// Returns true if SendMailRequestDTO instances are equal - /// - /// Instance of SendMailRequestDTO to be compared - /// Boolean - public bool Equals(SendMailRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.IdAccount == input.IdAccount || - (this.IdAccount != null && - this.IdAccount.Equals(input.IdAccount)) - ) && - ( - this.ReturnReceipt == input.ReturnReceipt || - (this.ReturnReceipt != null && - this.ReturnReceipt.Equals(input.ReturnReceipt)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.IsBodyHtml == input.IsBodyHtml || - (this.IsBodyHtml != null && - this.IsBodyHtml.Equals(input.IsBodyHtml)) - ) && - ( - this.Body == input.Body || - (this.Body != null && - this.Body.Equals(input.Body)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && - ( - this.From == input.From || - (this.From != null && - this.From.Equals(input.From)) - ) && - ( - this.Destinations == input.Destinations || - this.Destinations != null && - this.Destinations.SequenceEqual(input.Destinations) - ) && - ( - this.Documents == input.Documents || - this.Documents != null && - this.Documents.SequenceEqual(input.Documents) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IdAccount != null) - hashCode = hashCode * 59 + this.IdAccount.GetHashCode(); - if (this.ReturnReceipt != null) - hashCode = hashCode * 59 + this.ReturnReceipt.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.IsBodyHtml != null) - hashCode = hashCode * 59 + this.IsBodyHtml.GetHashCode(); - if (this.Body != null) - hashCode = hashCode * 59 + this.Body.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.From != null) - hashCode = hashCode * 59 + this.From.GetHashCode(); - if (this.Destinations != null) - hashCode = hashCode * 59 + this.Destinations.GetHashCode(); - if (this.Documents != null) - hashCode = hashCode * 59 + this.Documents.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SendOutcomeRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SendOutcomeRequestDTO.cs deleted file mode 100644 index 4f74266..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SendOutcomeRequestDTO.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SendOutcomeRequestDTO - /// - [DataContract] - public partial class SendOutcomeRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// docnumber. - /// positiveOutcome. - /// reason. - public SendOutcomeRequestDTO(int? docnumber = default(int?), bool? positiveOutcome = default(bool?), string reason = default(string)) - { - this.Docnumber = docnumber; - this.PositiveOutcome = positiveOutcome; - this.Reason = reason; - } - - /// - /// Gets or Sets Docnumber - /// - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Gets or Sets PositiveOutcome - /// - [DataMember(Name="positiveOutcome", EmitDefaultValue=false)] - public bool? PositiveOutcome { get; set; } - - /// - /// Gets or Sets Reason - /// - [DataMember(Name="reason", EmitDefaultValue=false)] - public string Reason { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SendOutcomeRequestDTO {\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" PositiveOutcome: ").Append(PositiveOutcome).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SendOutcomeRequestDTO); - } - - /// - /// Returns true if SendOutcomeRequestDTO instances are equal - /// - /// Instance of SendOutcomeRequestDTO to be compared - /// Boolean - public bool Equals(SendOutcomeRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.PositiveOutcome == input.PositiveOutcome || - (this.PositiveOutcome != null && - this.PositiveOutcome.Equals(input.PositiveOutcome)) - ) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.PositiveOutcome != null) - hashCode = hashCode * 59 + this.PositiveOutcome.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SendToIxCeRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SendToIxCeRequestDTO.cs deleted file mode 100644 index e106e16..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SendToIxCeRequestDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SendToIxCeRequestDTO - /// - [DataContract] - public partial class SendToIxCeRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// docnumbers. - /// accumulationPackageDescription. - public SendToIxCeRequestDTO(List docnumbers = default(List), string accumulationPackageDescription = default(string)) - { - this.Docnumbers = docnumbers; - this.AccumulationPackageDescription = accumulationPackageDescription; - } - - /// - /// Gets or Sets Docnumbers - /// - [DataMember(Name="docnumbers", EmitDefaultValue=false)] - public List Docnumbers { get; set; } - - /// - /// Gets or Sets AccumulationPackageDescription - /// - [DataMember(Name="accumulationPackageDescription", EmitDefaultValue=false)] - public string AccumulationPackageDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SendToIxCeRequestDTO {\n"); - sb.Append(" Docnumbers: ").Append(Docnumbers).Append("\n"); - sb.Append(" AccumulationPackageDescription: ").Append(AccumulationPackageDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SendToIxCeRequestDTO); - } - - /// - /// Returns true if SendToIxCeRequestDTO instances are equal - /// - /// Instance of SendToIxCeRequestDTO to be compared - /// Boolean - public bool Equals(SendToIxCeRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Docnumbers == input.Docnumbers || - this.Docnumbers != null && - this.Docnumbers.SequenceEqual(input.Docnumbers) - ) && - ( - this.AccumulationPackageDescription == input.AccumulationPackageDescription || - (this.AccumulationPackageDescription != null && - this.AccumulationPackageDescription.Equals(input.AccumulationPackageDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Docnumbers != null) - hashCode = hashCode * 59 + this.Docnumbers.GetHashCode(); - if (this.AccumulationPackageDescription != null) - hashCode = hashCode * 59 + this.AccumulationPackageDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SendToIxFeSignRequiredRequestDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/SendToIxFeSignRequiredRequestDto.cs deleted file mode 100644 index 0d35a13..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SendToIxFeSignRequiredRequestDto.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SendToIxFeSignRequiredRequestDto - /// - [DataContract] - public partial class SendToIxFeSignRequiredRequestDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document list to send. - public SendToIxFeSignRequiredRequestDto(List documentList = default(List)) - { - this.DocumentList = documentList; - } - - /// - /// Document list to send - /// - /// Document list to send - [DataMember(Name="documentList", EmitDefaultValue=false)] - public List DocumentList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SendToIxFeSignRequiredRequestDto {\n"); - sb.Append(" DocumentList: ").Append(DocumentList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SendToIxFeSignRequiredRequestDto); - } - - /// - /// Returns true if SendToIxFeSignRequiredRequestDto instances are equal - /// - /// Instance of SendToIxFeSignRequiredRequestDto to be compared - /// Boolean - public bool Equals(SendToIxFeSignRequiredRequestDto input) - { - if (input == null) - return false; - - return - ( - this.DocumentList == input.DocumentList || - this.DocumentList != null && - this.DocumentList.SequenceEqual(input.DocumentList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentList != null) - hashCode = hashCode * 59 + this.DocumentList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SendersFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SendersFieldDTO.cs deleted file mode 100644 index 98f5bf5..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SendersFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Sender of document - /// - [DataContract] - public partial class SendersFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected SendersFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Sender list value. - public SendersFieldDTO(List value = default(List), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "SendersFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Sender list value - /// - /// Sender list value - [DataMember(Name="value", EmitDefaultValue=false)] - public List Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SendersFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SendersFieldDTO); - } - - /// - /// Returns true if SendersFieldDTO instances are equal - /// - /// Instance of SendersFieldDTO to be compared - /// Boolean - public bool Equals(SendersFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - this.Value != null && - this.Value.SequenceEqual(input.Value) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ServerLicense.cs b/ACUtils.AXRepository/ArxivarNext/Model/ServerLicense.cs deleted file mode 100644 index 9c94dea..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ServerLicense.cs +++ /dev/null @@ -1,474 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ServerLicense - /// - [DataContract] - public partial class ServerLicense : IEquatable, IValidatableObject - { - /// - /// Defines Purpose - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum PurposeEnum - { - - /// - /// Enum RivenditoreUsoInterno for value: RivenditoreUsoInterno - /// - [EnumMember(Value = "RivenditoreUsoInterno")] - RivenditoreUsoInterno = 1, - - /// - /// Enum NFR for value: NFR - /// - [EnumMember(Value = "NFR")] - NFR = 2, - - /// - /// Enum TestRivenditore for value: TestRivenditore - /// - [EnumMember(Value = "TestRivenditore")] - TestRivenditore = 3, - - /// - /// Enum CorsoARXivarAcademy for value: CorsoARXivarAcademy - /// - [EnumMember(Value = "CorsoARXivarAcademy")] - CorsoARXivarAcademy = 4, - - /// - /// Enum CorsoAltro for value: CorsoAltro - /// - [EnumMember(Value = "CorsoAltro")] - CorsoAltro = 5, - - /// - /// Enum ProduzioneClienteFinale for value: ProduzioneClienteFinale - /// - [EnumMember(Value = "ProduzioneClienteFinale")] - ProduzioneClienteFinale = 6, - - /// - /// Enum TestClienteFinale for value: TestClienteFinale - /// - [EnumMember(Value = "TestClienteFinale")] - TestClienteFinale = 7, - - /// - /// Enum Demo for value: Demo - /// - [EnumMember(Value = "Demo")] - Demo = 8, - - /// - /// Enum Development for value: Development - /// - [EnumMember(Value = "Development")] - Development = 9, - - /// - /// Enum NextFe for value: NextFe - /// - [EnumMember(Value = "NextFe")] - NextFe = 10, - - /// - /// Enum NextFeTest for value: NextFeTest - /// - [EnumMember(Value = "NextFeTest")] - NextFeTest = 11 - } - - /// - /// Gets or Sets Purpose - /// - [DataMember(Name="purpose", EmitDefaultValue=false)] - public PurposeEnum? Purpose { get; set; } - /// - /// Defines Type - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum TypeEnum - { - - /// - /// Enum Standard for value: Standard - /// - [EnumMember(Value = "Standard")] - Standard = 1, - - /// - /// Enum PluginManager for value: PluginManager - /// - [EnumMember(Value = "PluginManager")] - PluginManager = 2 - } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="type", EmitDefaultValue=false)] - public TypeEnum? Type { get; set; } - /// - /// Initializes a new instance of the class. - /// - /// purpose. - /// type. - /// idLicense. - /// machineKey. - /// activationCode. - /// note. - /// issuer. - /// issuedTo. - /// utcIssuedDate. - /// formatVersion. - /// formatVersionString. - /// softwareVersion. - /// softwareVersionString. - /// moduleList. - /// permissionList. - /// moduleInstallationList. - /// signature. - public ServerLicense(PurposeEnum? purpose = default(PurposeEnum?), TypeEnum? type = default(TypeEnum?), string idLicense = default(string), string machineKey = default(string), string activationCode = default(string), string note = default(string), string issuer = default(string), LicenseCustomer issuedTo = default(LicenseCustomer), DateTime? utcIssuedDate = default(DateTime?), Version formatVersion = default(Version), string formatVersionString = default(string), Version softwareVersion = default(Version), string softwareVersionString = default(string), List moduleList = default(List), List permissionList = default(List), List moduleInstallationList = default(List), byte[] signature = default(byte[])) - { - this.Purpose = purpose; - this.Type = type; - this.IdLicense = idLicense; - this.MachineKey = machineKey; - this.ActivationCode = activationCode; - this.Note = note; - this.Issuer = issuer; - this.IssuedTo = issuedTo; - this.UtcIssuedDate = utcIssuedDate; - this.FormatVersion = formatVersion; - this.FormatVersionString = formatVersionString; - this.SoftwareVersion = softwareVersion; - this.SoftwareVersionString = softwareVersionString; - this.ModuleList = moduleList; - this.PermissionList = permissionList; - this.ModuleInstallationList = moduleInstallationList; - this.Signature = signature; - } - - - - /// - /// Gets or Sets IdLicense - /// - [DataMember(Name="idLicense", EmitDefaultValue=false)] - public string IdLicense { get; set; } - - /// - /// Gets or Sets MachineKey - /// - [DataMember(Name="machineKey", EmitDefaultValue=false)] - public string MachineKey { get; set; } - - /// - /// Gets or Sets ActivationCode - /// - [DataMember(Name="activationCode", EmitDefaultValue=false)] - public string ActivationCode { get; set; } - - /// - /// Gets or Sets Note - /// - [DataMember(Name="note", EmitDefaultValue=false)] - public string Note { get; set; } - - /// - /// Gets or Sets Issuer - /// - [DataMember(Name="issuer", EmitDefaultValue=false)] - public string Issuer { get; set; } - - /// - /// Gets or Sets IssuedTo - /// - [DataMember(Name="issuedTo", EmitDefaultValue=false)] - public LicenseCustomer IssuedTo { get; set; } - - /// - /// Gets or Sets UtcIssuedDate - /// - [DataMember(Name="utcIssuedDate", EmitDefaultValue=false)] - public DateTime? UtcIssuedDate { get; set; } - - /// - /// Gets or Sets FormatVersion - /// - [DataMember(Name="formatVersion", EmitDefaultValue=false)] - public Version FormatVersion { get; set; } - - /// - /// Gets or Sets FormatVersionString - /// - [DataMember(Name="formatVersionString", EmitDefaultValue=false)] - public string FormatVersionString { get; set; } - - /// - /// Gets or Sets SoftwareVersion - /// - [DataMember(Name="softwareVersion", EmitDefaultValue=false)] - public Version SoftwareVersion { get; set; } - - /// - /// Gets or Sets SoftwareVersionString - /// - [DataMember(Name="softwareVersionString", EmitDefaultValue=false)] - public string SoftwareVersionString { get; set; } - - /// - /// Gets or Sets ModuleList - /// - [DataMember(Name="moduleList", EmitDefaultValue=false)] - public List ModuleList { get; set; } - - /// - /// Gets or Sets PermissionList - /// - [DataMember(Name="permissionList", EmitDefaultValue=false)] - public List PermissionList { get; set; } - - /// - /// Gets or Sets ModuleInstallationList - /// - [DataMember(Name="moduleInstallationList", EmitDefaultValue=false)] - public List ModuleInstallationList { get; set; } - - /// - /// Gets or Sets Signature - /// - [DataMember(Name="signature", EmitDefaultValue=false)] - public byte[] Signature { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ServerLicense {\n"); - sb.Append(" Purpose: ").Append(Purpose).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" IdLicense: ").Append(IdLicense).Append("\n"); - sb.Append(" MachineKey: ").Append(MachineKey).Append("\n"); - sb.Append(" ActivationCode: ").Append(ActivationCode).Append("\n"); - sb.Append(" Note: ").Append(Note).Append("\n"); - sb.Append(" Issuer: ").Append(Issuer).Append("\n"); - sb.Append(" IssuedTo: ").Append(IssuedTo).Append("\n"); - sb.Append(" UtcIssuedDate: ").Append(UtcIssuedDate).Append("\n"); - sb.Append(" FormatVersion: ").Append(FormatVersion).Append("\n"); - sb.Append(" FormatVersionString: ").Append(FormatVersionString).Append("\n"); - sb.Append(" SoftwareVersion: ").Append(SoftwareVersion).Append("\n"); - sb.Append(" SoftwareVersionString: ").Append(SoftwareVersionString).Append("\n"); - sb.Append(" ModuleList: ").Append(ModuleList).Append("\n"); - sb.Append(" PermissionList: ").Append(PermissionList).Append("\n"); - sb.Append(" ModuleInstallationList: ").Append(ModuleInstallationList).Append("\n"); - sb.Append(" Signature: ").Append(Signature).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ServerLicense); - } - - /// - /// Returns true if ServerLicense instances are equal - /// - /// Instance of ServerLicense to be compared - /// Boolean - public bool Equals(ServerLicense input) - { - if (input == null) - return false; - - return - ( - this.Purpose == input.Purpose || - (this.Purpose != null && - this.Purpose.Equals(input.Purpose)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.IdLicense == input.IdLicense || - (this.IdLicense != null && - this.IdLicense.Equals(input.IdLicense)) - ) && - ( - this.MachineKey == input.MachineKey || - (this.MachineKey != null && - this.MachineKey.Equals(input.MachineKey)) - ) && - ( - this.ActivationCode == input.ActivationCode || - (this.ActivationCode != null && - this.ActivationCode.Equals(input.ActivationCode)) - ) && - ( - this.Note == input.Note || - (this.Note != null && - this.Note.Equals(input.Note)) - ) && - ( - this.Issuer == input.Issuer || - (this.Issuer != null && - this.Issuer.Equals(input.Issuer)) - ) && - ( - this.IssuedTo == input.IssuedTo || - (this.IssuedTo != null && - this.IssuedTo.Equals(input.IssuedTo)) - ) && - ( - this.UtcIssuedDate == input.UtcIssuedDate || - (this.UtcIssuedDate != null && - this.UtcIssuedDate.Equals(input.UtcIssuedDate)) - ) && - ( - this.FormatVersion == input.FormatVersion || - (this.FormatVersion != null && - this.FormatVersion.Equals(input.FormatVersion)) - ) && - ( - this.FormatVersionString == input.FormatVersionString || - (this.FormatVersionString != null && - this.FormatVersionString.Equals(input.FormatVersionString)) - ) && - ( - this.SoftwareVersion == input.SoftwareVersion || - (this.SoftwareVersion != null && - this.SoftwareVersion.Equals(input.SoftwareVersion)) - ) && - ( - this.SoftwareVersionString == input.SoftwareVersionString || - (this.SoftwareVersionString != null && - this.SoftwareVersionString.Equals(input.SoftwareVersionString)) - ) && - ( - this.ModuleList == input.ModuleList || - this.ModuleList != null && - this.ModuleList.SequenceEqual(input.ModuleList) - ) && - ( - this.PermissionList == input.PermissionList || - this.PermissionList != null && - this.PermissionList.SequenceEqual(input.PermissionList) - ) && - ( - this.ModuleInstallationList == input.ModuleInstallationList || - this.ModuleInstallationList != null && - this.ModuleInstallationList.SequenceEqual(input.ModuleInstallationList) - ) && - ( - this.Signature == input.Signature || - (this.Signature != null && - this.Signature.Equals(input.Signature)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Purpose != null) - hashCode = hashCode * 59 + this.Purpose.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.IdLicense != null) - hashCode = hashCode * 59 + this.IdLicense.GetHashCode(); - if (this.MachineKey != null) - hashCode = hashCode * 59 + this.MachineKey.GetHashCode(); - if (this.ActivationCode != null) - hashCode = hashCode * 59 + this.ActivationCode.GetHashCode(); - if (this.Note != null) - hashCode = hashCode * 59 + this.Note.GetHashCode(); - if (this.Issuer != null) - hashCode = hashCode * 59 + this.Issuer.GetHashCode(); - if (this.IssuedTo != null) - hashCode = hashCode * 59 + this.IssuedTo.GetHashCode(); - if (this.UtcIssuedDate != null) - hashCode = hashCode * 59 + this.UtcIssuedDate.GetHashCode(); - if (this.FormatVersion != null) - hashCode = hashCode * 59 + this.FormatVersion.GetHashCode(); - if (this.FormatVersionString != null) - hashCode = hashCode * 59 + this.FormatVersionString.GetHashCode(); - if (this.SoftwareVersion != null) - hashCode = hashCode * 59 + this.SoftwareVersion.GetHashCode(); - if (this.SoftwareVersionString != null) - hashCode = hashCode * 59 + this.SoftwareVersionString.GetHashCode(); - if (this.ModuleList != null) - hashCode = hashCode * 59 + this.ModuleList.GetHashCode(); - if (this.PermissionList != null) - hashCode = hashCode * 59 + this.PermissionList.GetHashCode(); - if (this.ModuleInstallationList != null) - hashCode = hashCode * 59 + this.ModuleInstallationList.GetHashCode(); - if (this.Signature != null) - hashCode = hashCode * 59 + this.Signature.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ServerPluginDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/ServerPluginDto.cs deleted file mode 100644 index d3914d3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ServerPluginDto.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ServerPluginDto - /// - [DataContract] - public partial class ServerPluginDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Name. - /// Version. - /// Url Address. - /// Code. - public ServerPluginDto(string name = default(string), string version = default(string), string baseUrl = default(string), string code = default(string)) - { - this.Name = name; - this.Version = version; - this.BaseUrl = baseUrl; - this.Code = code; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Version - /// - /// Version - [DataMember(Name="version", EmitDefaultValue=false)] - public string Version { get; set; } - - /// - /// Url Address - /// - /// Url Address - [DataMember(Name="baseUrl", EmitDefaultValue=false)] - public string BaseUrl { get; set; } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ServerPluginDto {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Version: ").Append(Version).Append("\n"); - sb.Append(" BaseUrl: ").Append(BaseUrl).Append("\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ServerPluginDto); - } - - /// - /// Returns true if ServerPluginDto instances are equal - /// - /// Instance of ServerPluginDto to be compared - /// Boolean - public bool Equals(ServerPluginDto input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Version == input.Version || - (this.Version != null && - this.Version.Equals(input.Version)) - ) && - ( - this.BaseUrl == input.BaseUrl || - (this.BaseUrl != null && - this.BaseUrl.Equals(input.BaseUrl)) - ) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Version != null) - hashCode = hashCode * 59 + this.Version.GetHashCode(); - if (this.BaseUrl != null) - hashCode = hashCode * 59 + this.BaseUrl.GetHashCode(); - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SetAvatarRequestDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/SetAvatarRequestDto.cs deleted file mode 100644 index 186f365..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SetAvatarRequestDto.cs +++ /dev/null @@ -1,124 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SetAvatarRequestDto - /// - [DataContract] - public partial class SetAvatarRequestDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// avatar. - public SetAvatarRequestDto(string avatar = default(string)) - { - this.Avatar = avatar; - } - - /// - /// Gets or Sets Avatar - /// - [DataMember(Name="avatar", EmitDefaultValue=false)] - public string Avatar { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SetAvatarRequestDto {\n"); - sb.Append(" Avatar: ").Append(Avatar).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SetAvatarRequestDto); - } - - /// - /// Returns true if SetAvatarRequestDto instances are equal - /// - /// Instance of SetAvatarRequestDto to be compared - /// Boolean - public bool Equals(SetAvatarRequestDto input) - { - if (input == null) - return false; - - return - ( - this.Avatar == input.Avatar || - (this.Avatar != null && - this.Avatar.Equals(input.Avatar)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Avatar != null) - hashCode = hashCode * 59 + this.Avatar.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ShareObjectBaseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ShareObjectBaseDTO.cs deleted file mode 100644 index 2bcb22e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ShareObjectBaseDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ShareObjectBaseDTO - /// - [DataContract] - public partial class ShareObjectBaseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Object type. - /// Object unique identifier. - public ShareObjectBaseDTO(int? objectType = default(int?), string objectId = default(string)) - { - this.ObjectType = objectType; - this.ObjectId = objectId; - } - - /// - /// Object type - /// - /// Object type - [DataMember(Name="objectType", EmitDefaultValue=false)] - public int? ObjectType { get; set; } - - /// - /// Object unique identifier - /// - /// Object unique identifier - [DataMember(Name="objectId", EmitDefaultValue=false)] - public string ObjectId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShareObjectBaseDTO {\n"); - sb.Append(" ObjectType: ").Append(ObjectType).Append("\n"); - sb.Append(" ObjectId: ").Append(ObjectId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShareObjectBaseDTO); - } - - /// - /// Returns true if ShareObjectBaseDTO instances are equal - /// - /// Instance of ShareObjectBaseDTO to be compared - /// Boolean - public bool Equals(ShareObjectBaseDTO input) - { - if (input == null) - return false; - - return - ( - this.ObjectType == input.ObjectType || - (this.ObjectType != null && - this.ObjectType.Equals(input.ObjectType)) - ) && - ( - this.ObjectId == input.ObjectId || - (this.ObjectId != null && - this.ObjectId.Equals(input.ObjectId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ObjectType != null) - hashCode = hashCode * 59 + this.ObjectType.GetHashCode(); - if (this.ObjectId != null) - hashCode = hashCode * 59 + this.ObjectId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ShareObjectDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ShareObjectDTO.cs deleted file mode 100644 index 81113c6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ShareObjectDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ShareObjectDTO - /// - [DataContract] - public partial class ShareObjectDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Share option. - /// Object type. - /// Object unique identifier. - public ShareObjectDTO(ShareOptionOptionDTO option = default(ShareOptionOptionDTO), int? objectType = default(int?), string objectId = default(string)) - { - this.Option = option; - this.ObjectType = objectType; - this.ObjectId = objectId; - } - - /// - /// Share option - /// - /// Share option - [DataMember(Name="option", EmitDefaultValue=false)] - public ShareOptionOptionDTO Option { get; set; } - - /// - /// Object type - /// - /// Object type - [DataMember(Name="objectType", EmitDefaultValue=false)] - public int? ObjectType { get; set; } - - /// - /// Object unique identifier - /// - /// Object unique identifier - [DataMember(Name="objectId", EmitDefaultValue=false)] - public string ObjectId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShareObjectDTO {\n"); - sb.Append(" Option: ").Append(Option).Append("\n"); - sb.Append(" ObjectType: ").Append(ObjectType).Append("\n"); - sb.Append(" ObjectId: ").Append(ObjectId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShareObjectDTO); - } - - /// - /// Returns true if ShareObjectDTO instances are equal - /// - /// Instance of ShareObjectDTO to be compared - /// Boolean - public bool Equals(ShareObjectDTO input) - { - if (input == null) - return false; - - return - ( - this.Option == input.Option || - (this.Option != null && - this.Option.Equals(input.Option)) - ) && - ( - this.ObjectType == input.ObjectType || - (this.ObjectType != null && - this.ObjectType.Equals(input.ObjectType)) - ) && - ( - this.ObjectId == input.ObjectId || - (this.ObjectId != null && - this.ObjectId.Equals(input.ObjectId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Option != null) - hashCode = hashCode * 59 + this.Option.GetHashCode(); - if (this.ObjectType != null) - hashCode = hashCode * 59 + this.ObjectType.GetHashCode(); - if (this.ObjectId != null) - hashCode = hashCode * 59 + this.ObjectId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ShareObjectOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ShareObjectOptionsDTO.cs deleted file mode 100644 index 549fd32..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ShareObjectOptionsDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ShareObjectOptionsDTO - /// - [DataContract] - public partial class ShareObjectOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// List of share options. - /// Object type. - /// Object unique identifier. - public ShareObjectOptionsDTO(List options = default(List), int? objectType = default(int?), string objectId = default(string)) - { - this.Options = options; - this.ObjectType = objectType; - this.ObjectId = objectId; - } - - /// - /// List of share options - /// - /// List of share options - [DataMember(Name="options", EmitDefaultValue=false)] - public List Options { get; set; } - - /// - /// Object type - /// - /// Object type - [DataMember(Name="objectType", EmitDefaultValue=false)] - public int? ObjectType { get; set; } - - /// - /// Object unique identifier - /// - /// Object unique identifier - [DataMember(Name="objectId", EmitDefaultValue=false)] - public string ObjectId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShareObjectOptionsDTO {\n"); - sb.Append(" Options: ").Append(Options).Append("\n"); - sb.Append(" ObjectType: ").Append(ObjectType).Append("\n"); - sb.Append(" ObjectId: ").Append(ObjectId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShareObjectOptionsDTO); - } - - /// - /// Returns true if ShareObjectOptionsDTO instances are equal - /// - /// Instance of ShareObjectOptionsDTO to be compared - /// Boolean - public bool Equals(ShareObjectOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.Options == input.Options || - this.Options != null && - this.Options.SequenceEqual(input.Options) - ) && - ( - this.ObjectType == input.ObjectType || - (this.ObjectType != null && - this.ObjectType.Equals(input.ObjectType)) - ) && - ( - this.ObjectId == input.ObjectId || - (this.ObjectId != null && - this.ObjectId.Equals(input.ObjectId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Options != null) - hashCode = hashCode * 59 + this.Options.GetHashCode(); - if (this.ObjectType != null) - hashCode = hashCode * 59 + this.ObjectType.GetHashCode(); - if (this.ObjectId != null) - hashCode = hashCode * 59 + this.ObjectId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ShareOptionOptionDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ShareOptionOptionDTO.cs deleted file mode 100644 index 6caf22b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ShareOptionOptionDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ShareOptionOptionDTO - /// - [DataContract] - public partial class ShareOptionOptionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 1: Read 2: ReadAndWrite . - /// User label for this option. - public ShareOptionOptionDTO(int? option = default(int?), string optionUserMessage = default(string)) - { - this.Option = option; - this.OptionUserMessage = optionUserMessage; - } - - /// - /// Possible values: 1: Read 2: ReadAndWrite - /// - /// Possible values: 1: Read 2: ReadAndWrite - [DataMember(Name="option", EmitDefaultValue=false)] - public int? Option { get; set; } - - /// - /// User label for this option - /// - /// User label for this option - [DataMember(Name="optionUserMessage", EmitDefaultValue=false)] - public string OptionUserMessage { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShareOptionOptionDTO {\n"); - sb.Append(" Option: ").Append(Option).Append("\n"); - sb.Append(" OptionUserMessage: ").Append(OptionUserMessage).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShareOptionOptionDTO); - } - - /// - /// Returns true if ShareOptionOptionDTO instances are equal - /// - /// Instance of ShareOptionOptionDTO to be compared - /// Boolean - public bool Equals(ShareOptionOptionDTO input) - { - if (input == null) - return false; - - return - ( - this.Option == input.Option || - (this.Option != null && - this.Option.Equals(input.Option)) - ) && - ( - this.OptionUserMessage == input.OptionUserMessage || - (this.OptionUserMessage != null && - this.OptionUserMessage.Equals(input.OptionUserMessage)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Option != null) - hashCode = hashCode * 59 + this.Option.GetHashCode(); - if (this.OptionUserMessage != null) - hashCode = hashCode * 59 + this.OptionUserMessage.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SharingDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SharingDTO.cs deleted file mode 100644 index da80f9b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SharingDTO.cs +++ /dev/null @@ -1,720 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Object that define a sharing - /// - [DataContract] - public partial class SharingDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Sharing unique id. - /// Owner user id. - /// Date time of creation. - /// Html for the sharing page. - /// Html for the expiration page. - /// Collection of URL for receivers. - /// Unique identifier for the configuration. - /// System id for the documentType.. - /// Days for the activation of the sharing.. - /// Days for the expiration of the sharing.. - /// Possible values: 0: None 1: Email 2: R 3: RR 4: EmailArchiveContent . - /// Resend for the mail.. - /// Resend mail Days.. - /// Max number of resend for mail.. - /// Workflow id for the read operation.. - /// Workflow id for the expiration of a read sharing. - /// Workflow id for the expiration of a not read sharing. - /// Enable warning for no read sharing.. - /// Warning message for no read sharing days.. - /// Disable sharing after read.. - /// Delete after expiration.. - /// Immediatly send.. - /// Send datetime.. - /// Max number of download. - /// Archive the details in one zip. - /// Default language.. - /// Donwload the documents directly from mail. - /// Possible values: 0: Link 1: Attachment 2: None . - /// List of mails to send.. - /// Sharing name.. - /// Sharing description.. - /// Is enable.. - /// Is virtual sharing.. - /// Sharing receivers.. - /// Sharing details.. - /// Sharing external data.. - public SharingDTO(string sharingId = default(string), int? userId = default(int?), DateTime? creationDate = default(DateTime?), List htmlForAccess = default(List), List htmlForExpiration = default(List), List urlForReceivers = default(List), string sharingDefinitionId = default(string), int? documentTypeId = default(int?), int? beginning = default(int?), int? expiration = default(int?), int? afterSend = default(int?), bool? repeatSendMail = default(bool?), int? repeatSendMailTime = default(int?), int? repeatSendMailNumber = default(int?), int? workflowAfterRead = default(int?), int? workflowAfterExpiration = default(int?), int? workflowAfterExpirationNotRead = default(int?), bool? alertForNoRead = default(bool?), int? alertForNoReadTime = default(int?), bool? disableAfterRead = default(bool?), bool? deleteAfterExpiration = default(bool?), bool? immediatlySend = default(bool?), DateTime? sendTime = default(DateTime?), int? maxDownloadTime = default(int?), bool? detailsAsZip = default(bool?), string defaultLanguage = default(string), bool? downloadDirectly = default(bool?), int? sharingMode = default(int?), List mailDefinitions = default(List), string shareName = default(string), string shareDescription = default(string), bool? isEnable = default(bool?), bool? _virtual = default(bool?), List sharingReceivers = default(List), List sharingDetails = default(List), List externalData = default(List)) - { - this.SharingId = sharingId; - this.UserId = userId; - this.CreationDate = creationDate; - this.HtmlForAccess = htmlForAccess; - this.HtmlForExpiration = htmlForExpiration; - this.UrlForReceivers = urlForReceivers; - this.SharingDefinitionId = sharingDefinitionId; - this.DocumentTypeId = documentTypeId; - this.Beginning = beginning; - this.Expiration = expiration; - this.AfterSend = afterSend; - this.RepeatSendMail = repeatSendMail; - this.RepeatSendMailTime = repeatSendMailTime; - this.RepeatSendMailNumber = repeatSendMailNumber; - this.WorkflowAfterRead = workflowAfterRead; - this.WorkflowAfterExpiration = workflowAfterExpiration; - this.WorkflowAfterExpirationNotRead = workflowAfterExpirationNotRead; - this.AlertForNoRead = alertForNoRead; - this.AlertForNoReadTime = alertForNoReadTime; - this.DisableAfterRead = disableAfterRead; - this.DeleteAfterExpiration = deleteAfterExpiration; - this.ImmediatlySend = immediatlySend; - this.SendTime = sendTime; - this.MaxDownloadTime = maxDownloadTime; - this.DetailsAsZip = detailsAsZip; - this.DefaultLanguage = defaultLanguage; - this.DownloadDirectly = downloadDirectly; - this.SharingMode = sharingMode; - this.MailDefinitions = mailDefinitions; - this.ShareName = shareName; - this.ShareDescription = shareDescription; - this.IsEnable = isEnable; - this.Virtual = _virtual; - this.SharingReceivers = sharingReceivers; - this.SharingDetails = sharingDetails; - this.ExternalData = externalData; - } - - /// - /// Sharing unique id - /// - /// Sharing unique id - [DataMember(Name="sharingId", EmitDefaultValue=false)] - public string SharingId { get; set; } - - /// - /// Owner user id - /// - /// Owner user id - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Date time of creation - /// - /// Date time of creation - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Html for the sharing page - /// - /// Html for the sharing page - [DataMember(Name="htmlForAccess", EmitDefaultValue=false)] - public List HtmlForAccess { get; set; } - - /// - /// Html for the expiration page - /// - /// Html for the expiration page - [DataMember(Name="htmlForExpiration", EmitDefaultValue=false)] - public List HtmlForExpiration { get; set; } - - /// - /// Collection of URL for receivers - /// - /// Collection of URL for receivers - [DataMember(Name="urlForReceivers", EmitDefaultValue=false)] - public List UrlForReceivers { get; set; } - - /// - /// Unique identifier for the configuration - /// - /// Unique identifier for the configuration - [DataMember(Name="sharingDefinitionId", EmitDefaultValue=false)] - public string SharingDefinitionId { get; set; } - - /// - /// System id for the documentType. - /// - /// System id for the documentType. - [DataMember(Name="documentTypeId", EmitDefaultValue=false)] - public int? DocumentTypeId { get; set; } - - /// - /// Days for the activation of the sharing. - /// - /// Days for the activation of the sharing. - [DataMember(Name="beginning", EmitDefaultValue=false)] - public int? Beginning { get; set; } - - /// - /// Days for the expiration of the sharing. - /// - /// Days for the expiration of the sharing. - [DataMember(Name="expiration", EmitDefaultValue=false)] - public int? Expiration { get; set; } - - /// - /// Possible values: 0: None 1: Email 2: R 3: RR 4: EmailArchiveContent - /// - /// Possible values: 0: None 1: Email 2: R 3: RR 4: EmailArchiveContent - [DataMember(Name="afterSend", EmitDefaultValue=false)] - public int? AfterSend { get; set; } - - /// - /// Resend for the mail. - /// - /// Resend for the mail. - [DataMember(Name="repeatSendMail", EmitDefaultValue=false)] - public bool? RepeatSendMail { get; set; } - - /// - /// Resend mail Days. - /// - /// Resend mail Days. - [DataMember(Name="repeatSendMailTime", EmitDefaultValue=false)] - public int? RepeatSendMailTime { get; set; } - - /// - /// Max number of resend for mail. - /// - /// Max number of resend for mail. - [DataMember(Name="repeatSendMailNumber", EmitDefaultValue=false)] - public int? RepeatSendMailNumber { get; set; } - - /// - /// Workflow id for the read operation. - /// - /// Workflow id for the read operation. - [DataMember(Name="workflowAfterRead", EmitDefaultValue=false)] - public int? WorkflowAfterRead { get; set; } - - /// - /// Workflow id for the expiration of a read sharing - /// - /// Workflow id for the expiration of a read sharing - [DataMember(Name="workflowAfterExpiration", EmitDefaultValue=false)] - public int? WorkflowAfterExpiration { get; set; } - - /// - /// Workflow id for the expiration of a not read sharing - /// - /// Workflow id for the expiration of a not read sharing - [DataMember(Name="workflowAfterExpirationNotRead", EmitDefaultValue=false)] - public int? WorkflowAfterExpirationNotRead { get; set; } - - /// - /// Enable warning for no read sharing. - /// - /// Enable warning for no read sharing. - [DataMember(Name="alertForNoRead", EmitDefaultValue=false)] - public bool? AlertForNoRead { get; set; } - - /// - /// Warning message for no read sharing days. - /// - /// Warning message for no read sharing days. - [DataMember(Name="alertForNoReadTime", EmitDefaultValue=false)] - public int? AlertForNoReadTime { get; set; } - - /// - /// Disable sharing after read. - /// - /// Disable sharing after read. - [DataMember(Name="disableAfterRead", EmitDefaultValue=false)] - public bool? DisableAfterRead { get; set; } - - /// - /// Delete after expiration. - /// - /// Delete after expiration. - [DataMember(Name="deleteAfterExpiration", EmitDefaultValue=false)] - public bool? DeleteAfterExpiration { get; set; } - - /// - /// Immediatly send. - /// - /// Immediatly send. - [DataMember(Name="immediatlySend", EmitDefaultValue=false)] - public bool? ImmediatlySend { get; set; } - - /// - /// Send datetime. - /// - /// Send datetime. - [DataMember(Name="sendTime", EmitDefaultValue=false)] - public DateTime? SendTime { get; set; } - - /// - /// Max number of download - /// - /// Max number of download - [DataMember(Name="maxDownloadTime", EmitDefaultValue=false)] - public int? MaxDownloadTime { get; set; } - - /// - /// Archive the details in one zip - /// - /// Archive the details in one zip - [DataMember(Name="detailsAsZip", EmitDefaultValue=false)] - public bool? DetailsAsZip { get; set; } - - /// - /// Default language. - /// - /// Default language. - [DataMember(Name="defaultLanguage", EmitDefaultValue=false)] - public string DefaultLanguage { get; set; } - - /// - /// Donwload the documents directly from mail - /// - /// Donwload the documents directly from mail - [DataMember(Name="downloadDirectly", EmitDefaultValue=false)] - public bool? DownloadDirectly { get; set; } - - /// - /// Possible values: 0: Link 1: Attachment 2: None - /// - /// Possible values: 0: Link 1: Attachment 2: None - [DataMember(Name="sharingMode", EmitDefaultValue=false)] - public int? SharingMode { get; set; } - - /// - /// List of mails to send. - /// - /// List of mails to send. - [DataMember(Name="mailDefinitions", EmitDefaultValue=false)] - public List MailDefinitions { get; set; } - - /// - /// Sharing name. - /// - /// Sharing name. - [DataMember(Name="shareName", EmitDefaultValue=false)] - public string ShareName { get; set; } - - /// - /// Sharing description. - /// - /// Sharing description. - [DataMember(Name="shareDescription", EmitDefaultValue=false)] - public string ShareDescription { get; set; } - - /// - /// Is enable. - /// - /// Is enable. - [DataMember(Name="isEnable", EmitDefaultValue=false)] - public bool? IsEnable { get; set; } - - /// - /// Is virtual sharing. - /// - /// Is virtual sharing. - [DataMember(Name="virtual", EmitDefaultValue=false)] - public bool? Virtual { get; set; } - - /// - /// Sharing receivers. - /// - /// Sharing receivers. - [DataMember(Name="sharingReceivers", EmitDefaultValue=false)] - public List SharingReceivers { get; set; } - - /// - /// Sharing details. - /// - /// Sharing details. - [DataMember(Name="sharingDetails", EmitDefaultValue=false)] - public List SharingDetails { get; set; } - - /// - /// Sharing external data. - /// - /// Sharing external data. - [DataMember(Name="externalData", EmitDefaultValue=false)] - public List ExternalData { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SharingDTO {\n"); - sb.Append(" SharingId: ").Append(SharingId).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" HtmlForAccess: ").Append(HtmlForAccess).Append("\n"); - sb.Append(" HtmlForExpiration: ").Append(HtmlForExpiration).Append("\n"); - sb.Append(" UrlForReceivers: ").Append(UrlForReceivers).Append("\n"); - sb.Append(" SharingDefinitionId: ").Append(SharingDefinitionId).Append("\n"); - sb.Append(" DocumentTypeId: ").Append(DocumentTypeId).Append("\n"); - sb.Append(" Beginning: ").Append(Beginning).Append("\n"); - sb.Append(" Expiration: ").Append(Expiration).Append("\n"); - sb.Append(" AfterSend: ").Append(AfterSend).Append("\n"); - sb.Append(" RepeatSendMail: ").Append(RepeatSendMail).Append("\n"); - sb.Append(" RepeatSendMailTime: ").Append(RepeatSendMailTime).Append("\n"); - sb.Append(" RepeatSendMailNumber: ").Append(RepeatSendMailNumber).Append("\n"); - sb.Append(" WorkflowAfterRead: ").Append(WorkflowAfterRead).Append("\n"); - sb.Append(" WorkflowAfterExpiration: ").Append(WorkflowAfterExpiration).Append("\n"); - sb.Append(" WorkflowAfterExpirationNotRead: ").Append(WorkflowAfterExpirationNotRead).Append("\n"); - sb.Append(" AlertForNoRead: ").Append(AlertForNoRead).Append("\n"); - sb.Append(" AlertForNoReadTime: ").Append(AlertForNoReadTime).Append("\n"); - sb.Append(" DisableAfterRead: ").Append(DisableAfterRead).Append("\n"); - sb.Append(" DeleteAfterExpiration: ").Append(DeleteAfterExpiration).Append("\n"); - sb.Append(" ImmediatlySend: ").Append(ImmediatlySend).Append("\n"); - sb.Append(" SendTime: ").Append(SendTime).Append("\n"); - sb.Append(" MaxDownloadTime: ").Append(MaxDownloadTime).Append("\n"); - sb.Append(" DetailsAsZip: ").Append(DetailsAsZip).Append("\n"); - sb.Append(" DefaultLanguage: ").Append(DefaultLanguage).Append("\n"); - sb.Append(" DownloadDirectly: ").Append(DownloadDirectly).Append("\n"); - sb.Append(" SharingMode: ").Append(SharingMode).Append("\n"); - sb.Append(" MailDefinitions: ").Append(MailDefinitions).Append("\n"); - sb.Append(" ShareName: ").Append(ShareName).Append("\n"); - sb.Append(" ShareDescription: ").Append(ShareDescription).Append("\n"); - sb.Append(" IsEnable: ").Append(IsEnable).Append("\n"); - sb.Append(" Virtual: ").Append(Virtual).Append("\n"); - sb.Append(" SharingReceivers: ").Append(SharingReceivers).Append("\n"); - sb.Append(" SharingDetails: ").Append(SharingDetails).Append("\n"); - sb.Append(" ExternalData: ").Append(ExternalData).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SharingDTO); - } - - /// - /// Returns true if SharingDTO instances are equal - /// - /// Instance of SharingDTO to be compared - /// Boolean - public bool Equals(SharingDTO input) - { - if (input == null) - return false; - - return - ( - this.SharingId == input.SharingId || - (this.SharingId != null && - this.SharingId.Equals(input.SharingId)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.HtmlForAccess == input.HtmlForAccess || - this.HtmlForAccess != null && - this.HtmlForAccess.SequenceEqual(input.HtmlForAccess) - ) && - ( - this.HtmlForExpiration == input.HtmlForExpiration || - this.HtmlForExpiration != null && - this.HtmlForExpiration.SequenceEqual(input.HtmlForExpiration) - ) && - ( - this.UrlForReceivers == input.UrlForReceivers || - this.UrlForReceivers != null && - this.UrlForReceivers.SequenceEqual(input.UrlForReceivers) - ) && - ( - this.SharingDefinitionId == input.SharingDefinitionId || - (this.SharingDefinitionId != null && - this.SharingDefinitionId.Equals(input.SharingDefinitionId)) - ) && - ( - this.DocumentTypeId == input.DocumentTypeId || - (this.DocumentTypeId != null && - this.DocumentTypeId.Equals(input.DocumentTypeId)) - ) && - ( - this.Beginning == input.Beginning || - (this.Beginning != null && - this.Beginning.Equals(input.Beginning)) - ) && - ( - this.Expiration == input.Expiration || - (this.Expiration != null && - this.Expiration.Equals(input.Expiration)) - ) && - ( - this.AfterSend == input.AfterSend || - (this.AfterSend != null && - this.AfterSend.Equals(input.AfterSend)) - ) && - ( - this.RepeatSendMail == input.RepeatSendMail || - (this.RepeatSendMail != null && - this.RepeatSendMail.Equals(input.RepeatSendMail)) - ) && - ( - this.RepeatSendMailTime == input.RepeatSendMailTime || - (this.RepeatSendMailTime != null && - this.RepeatSendMailTime.Equals(input.RepeatSendMailTime)) - ) && - ( - this.RepeatSendMailNumber == input.RepeatSendMailNumber || - (this.RepeatSendMailNumber != null && - this.RepeatSendMailNumber.Equals(input.RepeatSendMailNumber)) - ) && - ( - this.WorkflowAfterRead == input.WorkflowAfterRead || - (this.WorkflowAfterRead != null && - this.WorkflowAfterRead.Equals(input.WorkflowAfterRead)) - ) && - ( - this.WorkflowAfterExpiration == input.WorkflowAfterExpiration || - (this.WorkflowAfterExpiration != null && - this.WorkflowAfterExpiration.Equals(input.WorkflowAfterExpiration)) - ) && - ( - this.WorkflowAfterExpirationNotRead == input.WorkflowAfterExpirationNotRead || - (this.WorkflowAfterExpirationNotRead != null && - this.WorkflowAfterExpirationNotRead.Equals(input.WorkflowAfterExpirationNotRead)) - ) && - ( - this.AlertForNoRead == input.AlertForNoRead || - (this.AlertForNoRead != null && - this.AlertForNoRead.Equals(input.AlertForNoRead)) - ) && - ( - this.AlertForNoReadTime == input.AlertForNoReadTime || - (this.AlertForNoReadTime != null && - this.AlertForNoReadTime.Equals(input.AlertForNoReadTime)) - ) && - ( - this.DisableAfterRead == input.DisableAfterRead || - (this.DisableAfterRead != null && - this.DisableAfterRead.Equals(input.DisableAfterRead)) - ) && - ( - this.DeleteAfterExpiration == input.DeleteAfterExpiration || - (this.DeleteAfterExpiration != null && - this.DeleteAfterExpiration.Equals(input.DeleteAfterExpiration)) - ) && - ( - this.ImmediatlySend == input.ImmediatlySend || - (this.ImmediatlySend != null && - this.ImmediatlySend.Equals(input.ImmediatlySend)) - ) && - ( - this.SendTime == input.SendTime || - (this.SendTime != null && - this.SendTime.Equals(input.SendTime)) - ) && - ( - this.MaxDownloadTime == input.MaxDownloadTime || - (this.MaxDownloadTime != null && - this.MaxDownloadTime.Equals(input.MaxDownloadTime)) - ) && - ( - this.DetailsAsZip == input.DetailsAsZip || - (this.DetailsAsZip != null && - this.DetailsAsZip.Equals(input.DetailsAsZip)) - ) && - ( - this.DefaultLanguage == input.DefaultLanguage || - (this.DefaultLanguage != null && - this.DefaultLanguage.Equals(input.DefaultLanguage)) - ) && - ( - this.DownloadDirectly == input.DownloadDirectly || - (this.DownloadDirectly != null && - this.DownloadDirectly.Equals(input.DownloadDirectly)) - ) && - ( - this.SharingMode == input.SharingMode || - (this.SharingMode != null && - this.SharingMode.Equals(input.SharingMode)) - ) && - ( - this.MailDefinitions == input.MailDefinitions || - this.MailDefinitions != null && - this.MailDefinitions.SequenceEqual(input.MailDefinitions) - ) && - ( - this.ShareName == input.ShareName || - (this.ShareName != null && - this.ShareName.Equals(input.ShareName)) - ) && - ( - this.ShareDescription == input.ShareDescription || - (this.ShareDescription != null && - this.ShareDescription.Equals(input.ShareDescription)) - ) && - ( - this.IsEnable == input.IsEnable || - (this.IsEnable != null && - this.IsEnable.Equals(input.IsEnable)) - ) && - ( - this.Virtual == input.Virtual || - (this.Virtual != null && - this.Virtual.Equals(input.Virtual)) - ) && - ( - this.SharingReceivers == input.SharingReceivers || - this.SharingReceivers != null && - this.SharingReceivers.SequenceEqual(input.SharingReceivers) - ) && - ( - this.SharingDetails == input.SharingDetails || - this.SharingDetails != null && - this.SharingDetails.SequenceEqual(input.SharingDetails) - ) && - ( - this.ExternalData == input.ExternalData || - this.ExternalData != null && - this.ExternalData.SequenceEqual(input.ExternalData) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SharingId != null) - hashCode = hashCode * 59 + this.SharingId.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.HtmlForAccess != null) - hashCode = hashCode * 59 + this.HtmlForAccess.GetHashCode(); - if (this.HtmlForExpiration != null) - hashCode = hashCode * 59 + this.HtmlForExpiration.GetHashCode(); - if (this.UrlForReceivers != null) - hashCode = hashCode * 59 + this.UrlForReceivers.GetHashCode(); - if (this.SharingDefinitionId != null) - hashCode = hashCode * 59 + this.SharingDefinitionId.GetHashCode(); - if (this.DocumentTypeId != null) - hashCode = hashCode * 59 + this.DocumentTypeId.GetHashCode(); - if (this.Beginning != null) - hashCode = hashCode * 59 + this.Beginning.GetHashCode(); - if (this.Expiration != null) - hashCode = hashCode * 59 + this.Expiration.GetHashCode(); - if (this.AfterSend != null) - hashCode = hashCode * 59 + this.AfterSend.GetHashCode(); - if (this.RepeatSendMail != null) - hashCode = hashCode * 59 + this.RepeatSendMail.GetHashCode(); - if (this.RepeatSendMailTime != null) - hashCode = hashCode * 59 + this.RepeatSendMailTime.GetHashCode(); - if (this.RepeatSendMailNumber != null) - hashCode = hashCode * 59 + this.RepeatSendMailNumber.GetHashCode(); - if (this.WorkflowAfterRead != null) - hashCode = hashCode * 59 + this.WorkflowAfterRead.GetHashCode(); - if (this.WorkflowAfterExpiration != null) - hashCode = hashCode * 59 + this.WorkflowAfterExpiration.GetHashCode(); - if (this.WorkflowAfterExpirationNotRead != null) - hashCode = hashCode * 59 + this.WorkflowAfterExpirationNotRead.GetHashCode(); - if (this.AlertForNoRead != null) - hashCode = hashCode * 59 + this.AlertForNoRead.GetHashCode(); - if (this.AlertForNoReadTime != null) - hashCode = hashCode * 59 + this.AlertForNoReadTime.GetHashCode(); - if (this.DisableAfterRead != null) - hashCode = hashCode * 59 + this.DisableAfterRead.GetHashCode(); - if (this.DeleteAfterExpiration != null) - hashCode = hashCode * 59 + this.DeleteAfterExpiration.GetHashCode(); - if (this.ImmediatlySend != null) - hashCode = hashCode * 59 + this.ImmediatlySend.GetHashCode(); - if (this.SendTime != null) - hashCode = hashCode * 59 + this.SendTime.GetHashCode(); - if (this.MaxDownloadTime != null) - hashCode = hashCode * 59 + this.MaxDownloadTime.GetHashCode(); - if (this.DetailsAsZip != null) - hashCode = hashCode * 59 + this.DetailsAsZip.GetHashCode(); - if (this.DefaultLanguage != null) - hashCode = hashCode * 59 + this.DefaultLanguage.GetHashCode(); - if (this.DownloadDirectly != null) - hashCode = hashCode * 59 + this.DownloadDirectly.GetHashCode(); - if (this.SharingMode != null) - hashCode = hashCode * 59 + this.SharingMode.GetHashCode(); - if (this.MailDefinitions != null) - hashCode = hashCode * 59 + this.MailDefinitions.GetHashCode(); - if (this.ShareName != null) - hashCode = hashCode * 59 + this.ShareName.GetHashCode(); - if (this.ShareDescription != null) - hashCode = hashCode * 59 + this.ShareDescription.GetHashCode(); - if (this.IsEnable != null) - hashCode = hashCode * 59 + this.IsEnable.GetHashCode(); - if (this.Virtual != null) - hashCode = hashCode * 59 + this.Virtual.GetHashCode(); - if (this.SharingReceivers != null) - hashCode = hashCode * 59 + this.SharingReceivers.GetHashCode(); - if (this.SharingDetails != null) - hashCode = hashCode * 59 + this.SharingDetails.GetHashCode(); - if (this.ExternalData != null) - hashCode = hashCode * 59 + this.ExternalData.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SharingDefinitionDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SharingDefinitionDTO.cs deleted file mode 100644 index 1ac9bb7..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SharingDefinitionDTO.cs +++ /dev/null @@ -1,618 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for the design of a sharing configuration. - /// - [DataContract] - public partial class SharingDefinitionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique identifier for the configuration. - /// System id for the documentType.. - /// BusinessUnit code.. - /// Days for the activation of the sharing.. - /// Days for the expiration of the sharing.. - /// Possible values: 0: None 1: Email 2: R 3: RR 4: EmailArchiveContent . - /// Resend for the mail.. - /// Resend mail Days.. - /// Max number of resend for mail.. - /// Workflow id for the read operation.. - /// Workflow id for the expiration of a read sharing. - /// Workflow id for the expiration of a not read sharing. - /// Enable warning for no read sharing.. - /// Warning message for no read sharing days.. - /// Disable sharing after read.. - /// Delete after expiration.. - /// Immediatly send.. - /// Send datetime.. - /// Max number of download. - /// Archive the details in one zip. - /// Default language.. - /// Donwload the documents directly from mail. - /// Aggregable sharing.. - /// Possible values: 0: ByDefinition 1: ByDocumentType . - /// Possible values: 0: Link 1: Attachment 2: None . - /// List of mails to send.. - /// List of Html for access to sharing page.. - /// List of html for expiration page. - /// Fields For Profile selection.. - /// Sharing sender.. - public SharingDefinitionDTO(string id = default(string), int? documentTypeId = default(int?), string businessUnitCode = default(string), int? beginning = default(int?), int? expiration = default(int?), int? afterSend = default(int?), bool? repeatSendMail = default(bool?), int? repeatSendMailTime = default(int?), int? repeatSendMailNumber = default(int?), int? workflowAfterRead = default(int?), int? workflowAfterExpiration = default(int?), int? workflowAfterExpirationNotRead = default(int?), bool? alertForNoRead = default(bool?), int? alertForNoReadTime = default(int?), bool? disableAfterRead = default(bool?), bool? deleteAfterExpiration = default(bool?), bool? immediatlySend = default(bool?), DateTime? sendTime = default(DateTime?), int? maxDownloadTime = default(int?), bool? detailsAsZip = default(bool?), string defaultLanguage = default(string), bool? downloadDirectly = default(bool?), bool? aggregable = default(bool?), int? aggregateMode = default(int?), int? sharingMode = default(int?), List mailDefinitions = default(List), List htmlForAccess = default(List), List htmlForExpiration = default(List), SelectDTO selectedFields = default(SelectDTO), SharingDefinitionSenderDTO sharingDefinitionSender = default(SharingDefinitionSenderDTO)) - { - this.Id = id; - this.DocumentTypeId = documentTypeId; - this.BusinessUnitCode = businessUnitCode; - this.Beginning = beginning; - this.Expiration = expiration; - this.AfterSend = afterSend; - this.RepeatSendMail = repeatSendMail; - this.RepeatSendMailTime = repeatSendMailTime; - this.RepeatSendMailNumber = repeatSendMailNumber; - this.WorkflowAfterRead = workflowAfterRead; - this.WorkflowAfterExpiration = workflowAfterExpiration; - this.WorkflowAfterExpirationNotRead = workflowAfterExpirationNotRead; - this.AlertForNoRead = alertForNoRead; - this.AlertForNoReadTime = alertForNoReadTime; - this.DisableAfterRead = disableAfterRead; - this.DeleteAfterExpiration = deleteAfterExpiration; - this.ImmediatlySend = immediatlySend; - this.SendTime = sendTime; - this.MaxDownloadTime = maxDownloadTime; - this.DetailsAsZip = detailsAsZip; - this.DefaultLanguage = defaultLanguage; - this.DownloadDirectly = downloadDirectly; - this.Aggregable = aggregable; - this.AggregateMode = aggregateMode; - this.SharingMode = sharingMode; - this.MailDefinitions = mailDefinitions; - this.HtmlForAccess = htmlForAccess; - this.HtmlForExpiration = htmlForExpiration; - this.SelectedFields = selectedFields; - this.SharingDefinitionSender = sharingDefinitionSender; - } - - /// - /// Unique identifier for the configuration - /// - /// Unique identifier for the configuration - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// System id for the documentType. - /// - /// System id for the documentType. - [DataMember(Name="documentTypeId", EmitDefaultValue=false)] - public int? DocumentTypeId { get; set; } - - /// - /// BusinessUnit code. - /// - /// BusinessUnit code. - [DataMember(Name="businessUnitCode", EmitDefaultValue=false)] - public string BusinessUnitCode { get; set; } - - /// - /// Days for the activation of the sharing. - /// - /// Days for the activation of the sharing. - [DataMember(Name="beginning", EmitDefaultValue=false)] - public int? Beginning { get; set; } - - /// - /// Days for the expiration of the sharing. - /// - /// Days for the expiration of the sharing. - [DataMember(Name="expiration", EmitDefaultValue=false)] - public int? Expiration { get; set; } - - /// - /// Possible values: 0: None 1: Email 2: R 3: RR 4: EmailArchiveContent - /// - /// Possible values: 0: None 1: Email 2: R 3: RR 4: EmailArchiveContent - [DataMember(Name="afterSend", EmitDefaultValue=false)] - public int? AfterSend { get; set; } - - /// - /// Resend for the mail. - /// - /// Resend for the mail. - [DataMember(Name="repeatSendMail", EmitDefaultValue=false)] - public bool? RepeatSendMail { get; set; } - - /// - /// Resend mail Days. - /// - /// Resend mail Days. - [DataMember(Name="repeatSendMailTime", EmitDefaultValue=false)] - public int? RepeatSendMailTime { get; set; } - - /// - /// Max number of resend for mail. - /// - /// Max number of resend for mail. - [DataMember(Name="repeatSendMailNumber", EmitDefaultValue=false)] - public int? RepeatSendMailNumber { get; set; } - - /// - /// Workflow id for the read operation. - /// - /// Workflow id for the read operation. - [DataMember(Name="workflowAfterRead", EmitDefaultValue=false)] - public int? WorkflowAfterRead { get; set; } - - /// - /// Workflow id for the expiration of a read sharing - /// - /// Workflow id for the expiration of a read sharing - [DataMember(Name="workflowAfterExpiration", EmitDefaultValue=false)] - public int? WorkflowAfterExpiration { get; set; } - - /// - /// Workflow id for the expiration of a not read sharing - /// - /// Workflow id for the expiration of a not read sharing - [DataMember(Name="workflowAfterExpirationNotRead", EmitDefaultValue=false)] - public int? WorkflowAfterExpirationNotRead { get; set; } - - /// - /// Enable warning for no read sharing. - /// - /// Enable warning for no read sharing. - [DataMember(Name="alertForNoRead", EmitDefaultValue=false)] - public bool? AlertForNoRead { get; set; } - - /// - /// Warning message for no read sharing days. - /// - /// Warning message for no read sharing days. - [DataMember(Name="alertForNoReadTime", EmitDefaultValue=false)] - public int? AlertForNoReadTime { get; set; } - - /// - /// Disable sharing after read. - /// - /// Disable sharing after read. - [DataMember(Name="disableAfterRead", EmitDefaultValue=false)] - public bool? DisableAfterRead { get; set; } - - /// - /// Delete after expiration. - /// - /// Delete after expiration. - [DataMember(Name="deleteAfterExpiration", EmitDefaultValue=false)] - public bool? DeleteAfterExpiration { get; set; } - - /// - /// Immediatly send. - /// - /// Immediatly send. - [DataMember(Name="immediatlySend", EmitDefaultValue=false)] - public bool? ImmediatlySend { get; set; } - - /// - /// Send datetime. - /// - /// Send datetime. - [DataMember(Name="sendTime", EmitDefaultValue=false)] - public DateTime? SendTime { get; set; } - - /// - /// Max number of download - /// - /// Max number of download - [DataMember(Name="maxDownloadTime", EmitDefaultValue=false)] - public int? MaxDownloadTime { get; set; } - - /// - /// Archive the details in one zip - /// - /// Archive the details in one zip - [DataMember(Name="detailsAsZip", EmitDefaultValue=false)] - public bool? DetailsAsZip { get; set; } - - /// - /// Default language. - /// - /// Default language. - [DataMember(Name="defaultLanguage", EmitDefaultValue=false)] - public string DefaultLanguage { get; set; } - - /// - /// Donwload the documents directly from mail - /// - /// Donwload the documents directly from mail - [DataMember(Name="downloadDirectly", EmitDefaultValue=false)] - public bool? DownloadDirectly { get; set; } - - /// - /// Aggregable sharing. - /// - /// Aggregable sharing. - [DataMember(Name="aggregable", EmitDefaultValue=false)] - public bool? Aggregable { get; set; } - - /// - /// Possible values: 0: ByDefinition 1: ByDocumentType - /// - /// Possible values: 0: ByDefinition 1: ByDocumentType - [DataMember(Name="aggregateMode", EmitDefaultValue=false)] - public int? AggregateMode { get; set; } - - /// - /// Possible values: 0: Link 1: Attachment 2: None - /// - /// Possible values: 0: Link 1: Attachment 2: None - [DataMember(Name="sharingMode", EmitDefaultValue=false)] - public int? SharingMode { get; set; } - - /// - /// List of mails to send. - /// - /// List of mails to send. - [DataMember(Name="mailDefinitions", EmitDefaultValue=false)] - public List MailDefinitions { get; set; } - - /// - /// List of Html for access to sharing page. - /// - /// List of Html for access to sharing page. - [DataMember(Name="htmlForAccess", EmitDefaultValue=false)] - public List HtmlForAccess { get; set; } - - /// - /// List of html for expiration page - /// - /// List of html for expiration page - [DataMember(Name="htmlForExpiration", EmitDefaultValue=false)] - public List HtmlForExpiration { get; set; } - - /// - /// Fields For Profile selection. - /// - /// Fields For Profile selection. - [DataMember(Name="selectedFields", EmitDefaultValue=false)] - public SelectDTO SelectedFields { get; set; } - - /// - /// Sharing sender. - /// - /// Sharing sender. - [DataMember(Name="sharingDefinitionSender", EmitDefaultValue=false)] - public SharingDefinitionSenderDTO SharingDefinitionSender { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SharingDefinitionDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" DocumentTypeId: ").Append(DocumentTypeId).Append("\n"); - sb.Append(" BusinessUnitCode: ").Append(BusinessUnitCode).Append("\n"); - sb.Append(" Beginning: ").Append(Beginning).Append("\n"); - sb.Append(" Expiration: ").Append(Expiration).Append("\n"); - sb.Append(" AfterSend: ").Append(AfterSend).Append("\n"); - sb.Append(" RepeatSendMail: ").Append(RepeatSendMail).Append("\n"); - sb.Append(" RepeatSendMailTime: ").Append(RepeatSendMailTime).Append("\n"); - sb.Append(" RepeatSendMailNumber: ").Append(RepeatSendMailNumber).Append("\n"); - sb.Append(" WorkflowAfterRead: ").Append(WorkflowAfterRead).Append("\n"); - sb.Append(" WorkflowAfterExpiration: ").Append(WorkflowAfterExpiration).Append("\n"); - sb.Append(" WorkflowAfterExpirationNotRead: ").Append(WorkflowAfterExpirationNotRead).Append("\n"); - sb.Append(" AlertForNoRead: ").Append(AlertForNoRead).Append("\n"); - sb.Append(" AlertForNoReadTime: ").Append(AlertForNoReadTime).Append("\n"); - sb.Append(" DisableAfterRead: ").Append(DisableAfterRead).Append("\n"); - sb.Append(" DeleteAfterExpiration: ").Append(DeleteAfterExpiration).Append("\n"); - sb.Append(" ImmediatlySend: ").Append(ImmediatlySend).Append("\n"); - sb.Append(" SendTime: ").Append(SendTime).Append("\n"); - sb.Append(" MaxDownloadTime: ").Append(MaxDownloadTime).Append("\n"); - sb.Append(" DetailsAsZip: ").Append(DetailsAsZip).Append("\n"); - sb.Append(" DefaultLanguage: ").Append(DefaultLanguage).Append("\n"); - sb.Append(" DownloadDirectly: ").Append(DownloadDirectly).Append("\n"); - sb.Append(" Aggregable: ").Append(Aggregable).Append("\n"); - sb.Append(" AggregateMode: ").Append(AggregateMode).Append("\n"); - sb.Append(" SharingMode: ").Append(SharingMode).Append("\n"); - sb.Append(" MailDefinitions: ").Append(MailDefinitions).Append("\n"); - sb.Append(" HtmlForAccess: ").Append(HtmlForAccess).Append("\n"); - sb.Append(" HtmlForExpiration: ").Append(HtmlForExpiration).Append("\n"); - sb.Append(" SelectedFields: ").Append(SelectedFields).Append("\n"); - sb.Append(" SharingDefinitionSender: ").Append(SharingDefinitionSender).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SharingDefinitionDTO); - } - - /// - /// Returns true if SharingDefinitionDTO instances are equal - /// - /// Instance of SharingDefinitionDTO to be compared - /// Boolean - public bool Equals(SharingDefinitionDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.DocumentTypeId == input.DocumentTypeId || - (this.DocumentTypeId != null && - this.DocumentTypeId.Equals(input.DocumentTypeId)) - ) && - ( - this.BusinessUnitCode == input.BusinessUnitCode || - (this.BusinessUnitCode != null && - this.BusinessUnitCode.Equals(input.BusinessUnitCode)) - ) && - ( - this.Beginning == input.Beginning || - (this.Beginning != null && - this.Beginning.Equals(input.Beginning)) - ) && - ( - this.Expiration == input.Expiration || - (this.Expiration != null && - this.Expiration.Equals(input.Expiration)) - ) && - ( - this.AfterSend == input.AfterSend || - (this.AfterSend != null && - this.AfterSend.Equals(input.AfterSend)) - ) && - ( - this.RepeatSendMail == input.RepeatSendMail || - (this.RepeatSendMail != null && - this.RepeatSendMail.Equals(input.RepeatSendMail)) - ) && - ( - this.RepeatSendMailTime == input.RepeatSendMailTime || - (this.RepeatSendMailTime != null && - this.RepeatSendMailTime.Equals(input.RepeatSendMailTime)) - ) && - ( - this.RepeatSendMailNumber == input.RepeatSendMailNumber || - (this.RepeatSendMailNumber != null && - this.RepeatSendMailNumber.Equals(input.RepeatSendMailNumber)) - ) && - ( - this.WorkflowAfterRead == input.WorkflowAfterRead || - (this.WorkflowAfterRead != null && - this.WorkflowAfterRead.Equals(input.WorkflowAfterRead)) - ) && - ( - this.WorkflowAfterExpiration == input.WorkflowAfterExpiration || - (this.WorkflowAfterExpiration != null && - this.WorkflowAfterExpiration.Equals(input.WorkflowAfterExpiration)) - ) && - ( - this.WorkflowAfterExpirationNotRead == input.WorkflowAfterExpirationNotRead || - (this.WorkflowAfterExpirationNotRead != null && - this.WorkflowAfterExpirationNotRead.Equals(input.WorkflowAfterExpirationNotRead)) - ) && - ( - this.AlertForNoRead == input.AlertForNoRead || - (this.AlertForNoRead != null && - this.AlertForNoRead.Equals(input.AlertForNoRead)) - ) && - ( - this.AlertForNoReadTime == input.AlertForNoReadTime || - (this.AlertForNoReadTime != null && - this.AlertForNoReadTime.Equals(input.AlertForNoReadTime)) - ) && - ( - this.DisableAfterRead == input.DisableAfterRead || - (this.DisableAfterRead != null && - this.DisableAfterRead.Equals(input.DisableAfterRead)) - ) && - ( - this.DeleteAfterExpiration == input.DeleteAfterExpiration || - (this.DeleteAfterExpiration != null && - this.DeleteAfterExpiration.Equals(input.DeleteAfterExpiration)) - ) && - ( - this.ImmediatlySend == input.ImmediatlySend || - (this.ImmediatlySend != null && - this.ImmediatlySend.Equals(input.ImmediatlySend)) - ) && - ( - this.SendTime == input.SendTime || - (this.SendTime != null && - this.SendTime.Equals(input.SendTime)) - ) && - ( - this.MaxDownloadTime == input.MaxDownloadTime || - (this.MaxDownloadTime != null && - this.MaxDownloadTime.Equals(input.MaxDownloadTime)) - ) && - ( - this.DetailsAsZip == input.DetailsAsZip || - (this.DetailsAsZip != null && - this.DetailsAsZip.Equals(input.DetailsAsZip)) - ) && - ( - this.DefaultLanguage == input.DefaultLanguage || - (this.DefaultLanguage != null && - this.DefaultLanguage.Equals(input.DefaultLanguage)) - ) && - ( - this.DownloadDirectly == input.DownloadDirectly || - (this.DownloadDirectly != null && - this.DownloadDirectly.Equals(input.DownloadDirectly)) - ) && - ( - this.Aggregable == input.Aggregable || - (this.Aggregable != null && - this.Aggregable.Equals(input.Aggregable)) - ) && - ( - this.AggregateMode == input.AggregateMode || - (this.AggregateMode != null && - this.AggregateMode.Equals(input.AggregateMode)) - ) && - ( - this.SharingMode == input.SharingMode || - (this.SharingMode != null && - this.SharingMode.Equals(input.SharingMode)) - ) && - ( - this.MailDefinitions == input.MailDefinitions || - this.MailDefinitions != null && - this.MailDefinitions.SequenceEqual(input.MailDefinitions) - ) && - ( - this.HtmlForAccess == input.HtmlForAccess || - this.HtmlForAccess != null && - this.HtmlForAccess.SequenceEqual(input.HtmlForAccess) - ) && - ( - this.HtmlForExpiration == input.HtmlForExpiration || - this.HtmlForExpiration != null && - this.HtmlForExpiration.SequenceEqual(input.HtmlForExpiration) - ) && - ( - this.SelectedFields == input.SelectedFields || - (this.SelectedFields != null && - this.SelectedFields.Equals(input.SelectedFields)) - ) && - ( - this.SharingDefinitionSender == input.SharingDefinitionSender || - (this.SharingDefinitionSender != null && - this.SharingDefinitionSender.Equals(input.SharingDefinitionSender)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.DocumentTypeId != null) - hashCode = hashCode * 59 + this.DocumentTypeId.GetHashCode(); - if (this.BusinessUnitCode != null) - hashCode = hashCode * 59 + this.BusinessUnitCode.GetHashCode(); - if (this.Beginning != null) - hashCode = hashCode * 59 + this.Beginning.GetHashCode(); - if (this.Expiration != null) - hashCode = hashCode * 59 + this.Expiration.GetHashCode(); - if (this.AfterSend != null) - hashCode = hashCode * 59 + this.AfterSend.GetHashCode(); - if (this.RepeatSendMail != null) - hashCode = hashCode * 59 + this.RepeatSendMail.GetHashCode(); - if (this.RepeatSendMailTime != null) - hashCode = hashCode * 59 + this.RepeatSendMailTime.GetHashCode(); - if (this.RepeatSendMailNumber != null) - hashCode = hashCode * 59 + this.RepeatSendMailNumber.GetHashCode(); - if (this.WorkflowAfterRead != null) - hashCode = hashCode * 59 + this.WorkflowAfterRead.GetHashCode(); - if (this.WorkflowAfterExpiration != null) - hashCode = hashCode * 59 + this.WorkflowAfterExpiration.GetHashCode(); - if (this.WorkflowAfterExpirationNotRead != null) - hashCode = hashCode * 59 + this.WorkflowAfterExpirationNotRead.GetHashCode(); - if (this.AlertForNoRead != null) - hashCode = hashCode * 59 + this.AlertForNoRead.GetHashCode(); - if (this.AlertForNoReadTime != null) - hashCode = hashCode * 59 + this.AlertForNoReadTime.GetHashCode(); - if (this.DisableAfterRead != null) - hashCode = hashCode * 59 + this.DisableAfterRead.GetHashCode(); - if (this.DeleteAfterExpiration != null) - hashCode = hashCode * 59 + this.DeleteAfterExpiration.GetHashCode(); - if (this.ImmediatlySend != null) - hashCode = hashCode * 59 + this.ImmediatlySend.GetHashCode(); - if (this.SendTime != null) - hashCode = hashCode * 59 + this.SendTime.GetHashCode(); - if (this.MaxDownloadTime != null) - hashCode = hashCode * 59 + this.MaxDownloadTime.GetHashCode(); - if (this.DetailsAsZip != null) - hashCode = hashCode * 59 + this.DetailsAsZip.GetHashCode(); - if (this.DefaultLanguage != null) - hashCode = hashCode * 59 + this.DefaultLanguage.GetHashCode(); - if (this.DownloadDirectly != null) - hashCode = hashCode * 59 + this.DownloadDirectly.GetHashCode(); - if (this.Aggregable != null) - hashCode = hashCode * 59 + this.Aggregable.GetHashCode(); - if (this.AggregateMode != null) - hashCode = hashCode * 59 + this.AggregateMode.GetHashCode(); - if (this.SharingMode != null) - hashCode = hashCode * 59 + this.SharingMode.GetHashCode(); - if (this.MailDefinitions != null) - hashCode = hashCode * 59 + this.MailDefinitions.GetHashCode(); - if (this.HtmlForAccess != null) - hashCode = hashCode * 59 + this.HtmlForAccess.GetHashCode(); - if (this.HtmlForExpiration != null) - hashCode = hashCode * 59 + this.HtmlForExpiration.GetHashCode(); - if (this.SelectedFields != null) - hashCode = hashCode * 59 + this.SelectedFields.GetHashCode(); - if (this.SharingDefinitionSender != null) - hashCode = hashCode * 59 + this.SharingDefinitionSender.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SharingDefinitionInsertResult.cs b/ACUtils.AXRepository/ArxivarNext/Model/SharingDefinitionInsertResult.cs deleted file mode 100644 index e169d19..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SharingDefinitionInsertResult.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SharingDefinitionInsertResult - /// - [DataContract] - public partial class SharingDefinitionInsertResult : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Created or updated Sharing definition.. - /// Possible values: 0: Nothing 1: Document_Not_Exist 2: Document_Not_Avaiable 3: Document_Is_Archived 4: Document_Has_Running_Process 5: Document_Opened_By_Another_User 6: Document_Pa 7: User_Cannot_Write_In_This_Class 8: User_Cannot_Write_In_This_Document 9: State_Cannot_Permit_Edit 10: Document_as_been_Extracted 11: Cannot_Edit_For_Task_Associated 12: Cannot_Find_ProcessDoc 13: User_Not_Exist 14: User_Cannot_Delete_Documents 15: User_Cannot_Delete_This_Document 16: User_IsNotInAutoreMittenteDestinatari 17: Mail_Address_Is_Not_Unique 18: Mail_Address_NotFound 19: UserName_Is_Not_Unique 20: UserName_Not_Exist 21: UserName_Mail_Is_Not_Unique 22: User_AlreadyExist 23: User_AlreadyExist_In_HiddenState 24: User_AlreadyExist_Not_Active 25: Dm_StringaConnessione_Fail 26: Dm_AssociaFolder_UsedIn_SRP 27: Dm_AssociaFolder_UsedIn_Folders 28: Dm_AssociaFolder_UsedIn_DefaultProfile 29: Dm_AssociaFolder_UsedIn_Mask 30: Dm_StringaConnessione_UsedIn_Dm_VariabiliProcesso 31: Dm_StringaConnessione_UsedIn_Dm_CampiQuery 32: Dm_StringaConnessione_UsedIn_Dm_ElencoCampiTabella 33: Dm_Combo_Gruppi_UsedIn_Dm_CampiSpecifici 34: Dm_Combo_Gruppi_UsedIn_Dm_VariabiliProcesso 35: Dm_CampiSpecGrp_UsedIn_Dm_Campispecifici 36: Dm_Tipidocumento_Invalid_systemId 37: Dm_Tipidocumento_Is_Not_Leaf 38: Dm_Tipidocumento_Contains_Specific_Fields 39: Dm_Tipidocumento_Exist_Profiles 40: Dm_Tipidocumento_Dm_Links_Contains_SystemId 41: State_Cannot_Permit_Revision 42: State_Cannot_Permit_OverWrite 43: Dm_Utenti_Categoria_Must_Be_U 44: Dm_Utenti_User_Is_In_Org 45: Dm_Utenti_Invalid_Aoo 46: Dm_Aoo_Not_Exist 47: Profile_Is_Locked_By_Other_User 48: RenameDocument_Invalid_FileName 49: RenameDocument_Invalid_Extension 50: Dm_Files_Log_Acces_Denied 51: Dm_Emergenza_Tipo_Invalid 52: Dm_Emergenza_Default_DocumentType_Not_Set 53: Dm_TipiDocumento_Not_Found 54: Dm_TipiDocumento_Is_Not_Pa 55: User_Is_Not_In_Role 56: Dm_Sql_UsedIn_Dm_CampiQuery 57: Dm_Fascicoli_Id_Not_Found 58: Dm_Fascioli_Delete_Principale 59: Access_Is_Denied 60: Dm_Fascioli_Has_Childs 61: Dm_Fascicoli_Contains_Docs 62: Dm_Fileinfolde_Not_Found 63: Profile_Entity_Not_Validate 64: Profile_Duplicate_Field 65: Aoo_Null 66: Aoo_Not_Found 67: Dm_Tipidocumento_Invalid_State 68: Dm_Tipidocumento_User_Can_Not_Write 69: Dm_ElencoPratiche_Not_Found 70: Profile_Pa_CanNotModify_Field 71: Dm_CampiSpecifici_Required 72: Dm_CampiSpecifici_NotFound 73: File_Required 74: File_Name_Required 75: Dm_Profile_Insert_Barcode_Incompatible_Class 76: Uniqueness_Rule_Violate 77: Dm_Profile_Update_DATADOC_Greather_Than_DATAPROT 78: Dm_Profile_Update_UnderPa_CanNotModifyAoo 79: Dm_Profile_Update_UnderPa_CanNotModifyState 80: Dm_Profile_Update_UnderPa_CanNotModifyObject 81: Dm_Profile_Update_UnderPa_CanNotModifyInOut 82: Dm_Profile_Update_UnderPa_CanNotModifyDocumentType 83: Dm_Profile_Update_UnderPa_CanNotModifyFrom 84: Dm_Profile_Update_UnderPa_CanNotModifyTo 85: DatiEnte_Spedizione_Invalid 86: Profile_DataProt_Invalid 87: Dm_Profile_Insert_Ivalid_InOut 88: Dm_Setup_Invalid_StatoRegistra 89: Dm_Profile_Insert_Barcode_AlreadyExist 90: Dm_TaskWork_Task_Not_In_Charge 91: Dm_TaskWork_Set_ReadOnly_To_Document 92: Dm_NoteWork_Does_Not_Exist 93: User_Is_Not_Owner 94: Dm_AllegatiWork_Id_Not_Found 95: Document_Is_Opened 96: DmComandiTask_Required 97: DmTaskDoc_Required 98: Dm_VariabiliTask_Required 99: Dm_FigureTask_Required 100: Password_Required 101: TCondEsiti_Execute 102: Dm_Links_Missing 103: Document_Is_Empty 104: Dm_ComandiTask_ClientSide 105: System_Diagnostic_Exception 106: Certificate_Not_Found 107: Sign_Exception 108: SIgn_Service_not_Found 109: Dm_Combo_Gruppi_UsedIn_Dm_VariabiliQuery 110: Dm_RicQuick_Campi_VB6ManageRicQuickFail 111: Dm_Processi_Can_Not_EditDoc 112: Stamps_Are_Not_Available 113: Dm_Profile_Has_No_File 114: Arx_Stamp_Apply_Error 115: FILE_NULL_AFTER_STAMP_APPLY 116: Profile_Pa_Reserved_FromIsRequire 117: Profile_Pa_Reserved_ToIsRequire 118: Profile_Pa_Reserved_AooIsRequire 119: Profile_Pa_Reserved_DocNameIsRequire 120: Dm_Profile_Update_EvasionePa_ClassNoPaException 121: User_Is_Not_Admin 122: Dm_Rubrica_Used_In_AssociaFolder 123: Invalid_Task_Outcome 124: Profile_Insert_Error 125: Dm_Tipidocumento_NoFile 126: LicenseBaseMissing 127: File_Already_Present 128: Generic 129: Dm_Profile_Not_Found 130: Dm_Profile_Is_Not_CheckedOut 131: User_Cannot_Read_This_Document 132: State_Not_Exist 133: Sign_Not_Verified 134: Dm_Barcode_IdBarcode_Not_Found 135: User_Cannot_Use_Barcode 136: Dm_Rubrica_User_CanNotDelete 137: Dm_Rubrica_User_CanNotUpdate 138: Password_Faulted 139: User_Cannot_Read_Any_Document 140: User_Cannot_Read_Some_Document 141: Dm_TipiDocumento_Is_Not_Aos 142: Dm_Profile_IsAos 143: Certificate_LoginFailed 144: Dm_Tipidocumento_RequireFileMustBeOptional 145: Dm_Taskwork_User_Cannot_Lock_Task 146: Dm_Taskwork_Already_Locked_By_Another_User 147: Dm_Taskwork_Already_Locked_By_User_Other_Session 148: Dm_LogonProvider_Association_Missing 149: Dm_Links_Command_IsClient 150: Dm_Collaboration_Is_Read_Only 151: Dm_Collaboration_User_Is_Not_Detail 152: Dm_Collaboration_Not_Have_Master 153: Dm_Collaboration_Not_Exist 154: Ws_DocToIx_Cannot_Delete_Documents 155: Ws_DocToIxCe_Cannot_Delete_Documents 156: Dm_MansioniDynTask_Required 157: Dm_Collaboration_Isnt_Takeoff 158: Dm_Collaboration_Is_Terminated 159: Dm_Collaboration_Master_Not_In_Collaboration 160: Dm_Collaboration_User_Already_TakedOff 161: Dm_Collaboration_Master_not_Exist 162: Dm_Collaboration_Detail_not_Exist 163: Dm_WfSign_Required 164: After_Profile_Insert_Error 165: Ws_Conflict 166: Dm_Taskwork_Not_Found 167: Dm_ApiCall_UsedIn_Dm_CampiQuery . - /// Error Message.. - public SharingDefinitionInsertResult(SharingDefinitionDTO sharingDefinition = default(SharingDefinitionDTO), int? exception = default(int?), string message = default(string)) - { - this.SharingDefinition = sharingDefinition; - this.Exception = exception; - this.Message = message; - } - - /// - /// Created or updated Sharing definition. - /// - /// Created or updated Sharing definition. - [DataMember(Name="sharingDefinition", EmitDefaultValue=false)] - public SharingDefinitionDTO SharingDefinition { get; set; } - - /// - /// Possible values: 0: Nothing 1: Document_Not_Exist 2: Document_Not_Avaiable 3: Document_Is_Archived 4: Document_Has_Running_Process 5: Document_Opened_By_Another_User 6: Document_Pa 7: User_Cannot_Write_In_This_Class 8: User_Cannot_Write_In_This_Document 9: State_Cannot_Permit_Edit 10: Document_as_been_Extracted 11: Cannot_Edit_For_Task_Associated 12: Cannot_Find_ProcessDoc 13: User_Not_Exist 14: User_Cannot_Delete_Documents 15: User_Cannot_Delete_This_Document 16: User_IsNotInAutoreMittenteDestinatari 17: Mail_Address_Is_Not_Unique 18: Mail_Address_NotFound 19: UserName_Is_Not_Unique 20: UserName_Not_Exist 21: UserName_Mail_Is_Not_Unique 22: User_AlreadyExist 23: User_AlreadyExist_In_HiddenState 24: User_AlreadyExist_Not_Active 25: Dm_StringaConnessione_Fail 26: Dm_AssociaFolder_UsedIn_SRP 27: Dm_AssociaFolder_UsedIn_Folders 28: Dm_AssociaFolder_UsedIn_DefaultProfile 29: Dm_AssociaFolder_UsedIn_Mask 30: Dm_StringaConnessione_UsedIn_Dm_VariabiliProcesso 31: Dm_StringaConnessione_UsedIn_Dm_CampiQuery 32: Dm_StringaConnessione_UsedIn_Dm_ElencoCampiTabella 33: Dm_Combo_Gruppi_UsedIn_Dm_CampiSpecifici 34: Dm_Combo_Gruppi_UsedIn_Dm_VariabiliProcesso 35: Dm_CampiSpecGrp_UsedIn_Dm_Campispecifici 36: Dm_Tipidocumento_Invalid_systemId 37: Dm_Tipidocumento_Is_Not_Leaf 38: Dm_Tipidocumento_Contains_Specific_Fields 39: Dm_Tipidocumento_Exist_Profiles 40: Dm_Tipidocumento_Dm_Links_Contains_SystemId 41: State_Cannot_Permit_Revision 42: State_Cannot_Permit_OverWrite 43: Dm_Utenti_Categoria_Must_Be_U 44: Dm_Utenti_User_Is_In_Org 45: Dm_Utenti_Invalid_Aoo 46: Dm_Aoo_Not_Exist 47: Profile_Is_Locked_By_Other_User 48: RenameDocument_Invalid_FileName 49: RenameDocument_Invalid_Extension 50: Dm_Files_Log_Acces_Denied 51: Dm_Emergenza_Tipo_Invalid 52: Dm_Emergenza_Default_DocumentType_Not_Set 53: Dm_TipiDocumento_Not_Found 54: Dm_TipiDocumento_Is_Not_Pa 55: User_Is_Not_In_Role 56: Dm_Sql_UsedIn_Dm_CampiQuery 57: Dm_Fascicoli_Id_Not_Found 58: Dm_Fascioli_Delete_Principale 59: Access_Is_Denied 60: Dm_Fascioli_Has_Childs 61: Dm_Fascicoli_Contains_Docs 62: Dm_Fileinfolde_Not_Found 63: Profile_Entity_Not_Validate 64: Profile_Duplicate_Field 65: Aoo_Null 66: Aoo_Not_Found 67: Dm_Tipidocumento_Invalid_State 68: Dm_Tipidocumento_User_Can_Not_Write 69: Dm_ElencoPratiche_Not_Found 70: Profile_Pa_CanNotModify_Field 71: Dm_CampiSpecifici_Required 72: Dm_CampiSpecifici_NotFound 73: File_Required 74: File_Name_Required 75: Dm_Profile_Insert_Barcode_Incompatible_Class 76: Uniqueness_Rule_Violate 77: Dm_Profile_Update_DATADOC_Greather_Than_DATAPROT 78: Dm_Profile_Update_UnderPa_CanNotModifyAoo 79: Dm_Profile_Update_UnderPa_CanNotModifyState 80: Dm_Profile_Update_UnderPa_CanNotModifyObject 81: Dm_Profile_Update_UnderPa_CanNotModifyInOut 82: Dm_Profile_Update_UnderPa_CanNotModifyDocumentType 83: Dm_Profile_Update_UnderPa_CanNotModifyFrom 84: Dm_Profile_Update_UnderPa_CanNotModifyTo 85: DatiEnte_Spedizione_Invalid 86: Profile_DataProt_Invalid 87: Dm_Profile_Insert_Ivalid_InOut 88: Dm_Setup_Invalid_StatoRegistra 89: Dm_Profile_Insert_Barcode_AlreadyExist 90: Dm_TaskWork_Task_Not_In_Charge 91: Dm_TaskWork_Set_ReadOnly_To_Document 92: Dm_NoteWork_Does_Not_Exist 93: User_Is_Not_Owner 94: Dm_AllegatiWork_Id_Not_Found 95: Document_Is_Opened 96: DmComandiTask_Required 97: DmTaskDoc_Required 98: Dm_VariabiliTask_Required 99: Dm_FigureTask_Required 100: Password_Required 101: TCondEsiti_Execute 102: Dm_Links_Missing 103: Document_Is_Empty 104: Dm_ComandiTask_ClientSide 105: System_Diagnostic_Exception 106: Certificate_Not_Found 107: Sign_Exception 108: SIgn_Service_not_Found 109: Dm_Combo_Gruppi_UsedIn_Dm_VariabiliQuery 110: Dm_RicQuick_Campi_VB6ManageRicQuickFail 111: Dm_Processi_Can_Not_EditDoc 112: Stamps_Are_Not_Available 113: Dm_Profile_Has_No_File 114: Arx_Stamp_Apply_Error 115: FILE_NULL_AFTER_STAMP_APPLY 116: Profile_Pa_Reserved_FromIsRequire 117: Profile_Pa_Reserved_ToIsRequire 118: Profile_Pa_Reserved_AooIsRequire 119: Profile_Pa_Reserved_DocNameIsRequire 120: Dm_Profile_Update_EvasionePa_ClassNoPaException 121: User_Is_Not_Admin 122: Dm_Rubrica_Used_In_AssociaFolder 123: Invalid_Task_Outcome 124: Profile_Insert_Error 125: Dm_Tipidocumento_NoFile 126: LicenseBaseMissing 127: File_Already_Present 128: Generic 129: Dm_Profile_Not_Found 130: Dm_Profile_Is_Not_CheckedOut 131: User_Cannot_Read_This_Document 132: State_Not_Exist 133: Sign_Not_Verified 134: Dm_Barcode_IdBarcode_Not_Found 135: User_Cannot_Use_Barcode 136: Dm_Rubrica_User_CanNotDelete 137: Dm_Rubrica_User_CanNotUpdate 138: Password_Faulted 139: User_Cannot_Read_Any_Document 140: User_Cannot_Read_Some_Document 141: Dm_TipiDocumento_Is_Not_Aos 142: Dm_Profile_IsAos 143: Certificate_LoginFailed 144: Dm_Tipidocumento_RequireFileMustBeOptional 145: Dm_Taskwork_User_Cannot_Lock_Task 146: Dm_Taskwork_Already_Locked_By_Another_User 147: Dm_Taskwork_Already_Locked_By_User_Other_Session 148: Dm_LogonProvider_Association_Missing 149: Dm_Links_Command_IsClient 150: Dm_Collaboration_Is_Read_Only 151: Dm_Collaboration_User_Is_Not_Detail 152: Dm_Collaboration_Not_Have_Master 153: Dm_Collaboration_Not_Exist 154: Ws_DocToIx_Cannot_Delete_Documents 155: Ws_DocToIxCe_Cannot_Delete_Documents 156: Dm_MansioniDynTask_Required 157: Dm_Collaboration_Isnt_Takeoff 158: Dm_Collaboration_Is_Terminated 159: Dm_Collaboration_Master_Not_In_Collaboration 160: Dm_Collaboration_User_Already_TakedOff 161: Dm_Collaboration_Master_not_Exist 162: Dm_Collaboration_Detail_not_Exist 163: Dm_WfSign_Required 164: After_Profile_Insert_Error 165: Ws_Conflict 166: Dm_Taskwork_Not_Found 167: Dm_ApiCall_UsedIn_Dm_CampiQuery - /// - /// Possible values: 0: Nothing 1: Document_Not_Exist 2: Document_Not_Avaiable 3: Document_Is_Archived 4: Document_Has_Running_Process 5: Document_Opened_By_Another_User 6: Document_Pa 7: User_Cannot_Write_In_This_Class 8: User_Cannot_Write_In_This_Document 9: State_Cannot_Permit_Edit 10: Document_as_been_Extracted 11: Cannot_Edit_For_Task_Associated 12: Cannot_Find_ProcessDoc 13: User_Not_Exist 14: User_Cannot_Delete_Documents 15: User_Cannot_Delete_This_Document 16: User_IsNotInAutoreMittenteDestinatari 17: Mail_Address_Is_Not_Unique 18: Mail_Address_NotFound 19: UserName_Is_Not_Unique 20: UserName_Not_Exist 21: UserName_Mail_Is_Not_Unique 22: User_AlreadyExist 23: User_AlreadyExist_In_HiddenState 24: User_AlreadyExist_Not_Active 25: Dm_StringaConnessione_Fail 26: Dm_AssociaFolder_UsedIn_SRP 27: Dm_AssociaFolder_UsedIn_Folders 28: Dm_AssociaFolder_UsedIn_DefaultProfile 29: Dm_AssociaFolder_UsedIn_Mask 30: Dm_StringaConnessione_UsedIn_Dm_VariabiliProcesso 31: Dm_StringaConnessione_UsedIn_Dm_CampiQuery 32: Dm_StringaConnessione_UsedIn_Dm_ElencoCampiTabella 33: Dm_Combo_Gruppi_UsedIn_Dm_CampiSpecifici 34: Dm_Combo_Gruppi_UsedIn_Dm_VariabiliProcesso 35: Dm_CampiSpecGrp_UsedIn_Dm_Campispecifici 36: Dm_Tipidocumento_Invalid_systemId 37: Dm_Tipidocumento_Is_Not_Leaf 38: Dm_Tipidocumento_Contains_Specific_Fields 39: Dm_Tipidocumento_Exist_Profiles 40: Dm_Tipidocumento_Dm_Links_Contains_SystemId 41: State_Cannot_Permit_Revision 42: State_Cannot_Permit_OverWrite 43: Dm_Utenti_Categoria_Must_Be_U 44: Dm_Utenti_User_Is_In_Org 45: Dm_Utenti_Invalid_Aoo 46: Dm_Aoo_Not_Exist 47: Profile_Is_Locked_By_Other_User 48: RenameDocument_Invalid_FileName 49: RenameDocument_Invalid_Extension 50: Dm_Files_Log_Acces_Denied 51: Dm_Emergenza_Tipo_Invalid 52: Dm_Emergenza_Default_DocumentType_Not_Set 53: Dm_TipiDocumento_Not_Found 54: Dm_TipiDocumento_Is_Not_Pa 55: User_Is_Not_In_Role 56: Dm_Sql_UsedIn_Dm_CampiQuery 57: Dm_Fascicoli_Id_Not_Found 58: Dm_Fascioli_Delete_Principale 59: Access_Is_Denied 60: Dm_Fascioli_Has_Childs 61: Dm_Fascicoli_Contains_Docs 62: Dm_Fileinfolde_Not_Found 63: Profile_Entity_Not_Validate 64: Profile_Duplicate_Field 65: Aoo_Null 66: Aoo_Not_Found 67: Dm_Tipidocumento_Invalid_State 68: Dm_Tipidocumento_User_Can_Not_Write 69: Dm_ElencoPratiche_Not_Found 70: Profile_Pa_CanNotModify_Field 71: Dm_CampiSpecifici_Required 72: Dm_CampiSpecifici_NotFound 73: File_Required 74: File_Name_Required 75: Dm_Profile_Insert_Barcode_Incompatible_Class 76: Uniqueness_Rule_Violate 77: Dm_Profile_Update_DATADOC_Greather_Than_DATAPROT 78: Dm_Profile_Update_UnderPa_CanNotModifyAoo 79: Dm_Profile_Update_UnderPa_CanNotModifyState 80: Dm_Profile_Update_UnderPa_CanNotModifyObject 81: Dm_Profile_Update_UnderPa_CanNotModifyInOut 82: Dm_Profile_Update_UnderPa_CanNotModifyDocumentType 83: Dm_Profile_Update_UnderPa_CanNotModifyFrom 84: Dm_Profile_Update_UnderPa_CanNotModifyTo 85: DatiEnte_Spedizione_Invalid 86: Profile_DataProt_Invalid 87: Dm_Profile_Insert_Ivalid_InOut 88: Dm_Setup_Invalid_StatoRegistra 89: Dm_Profile_Insert_Barcode_AlreadyExist 90: Dm_TaskWork_Task_Not_In_Charge 91: Dm_TaskWork_Set_ReadOnly_To_Document 92: Dm_NoteWork_Does_Not_Exist 93: User_Is_Not_Owner 94: Dm_AllegatiWork_Id_Not_Found 95: Document_Is_Opened 96: DmComandiTask_Required 97: DmTaskDoc_Required 98: Dm_VariabiliTask_Required 99: Dm_FigureTask_Required 100: Password_Required 101: TCondEsiti_Execute 102: Dm_Links_Missing 103: Document_Is_Empty 104: Dm_ComandiTask_ClientSide 105: System_Diagnostic_Exception 106: Certificate_Not_Found 107: Sign_Exception 108: SIgn_Service_not_Found 109: Dm_Combo_Gruppi_UsedIn_Dm_VariabiliQuery 110: Dm_RicQuick_Campi_VB6ManageRicQuickFail 111: Dm_Processi_Can_Not_EditDoc 112: Stamps_Are_Not_Available 113: Dm_Profile_Has_No_File 114: Arx_Stamp_Apply_Error 115: FILE_NULL_AFTER_STAMP_APPLY 116: Profile_Pa_Reserved_FromIsRequire 117: Profile_Pa_Reserved_ToIsRequire 118: Profile_Pa_Reserved_AooIsRequire 119: Profile_Pa_Reserved_DocNameIsRequire 120: Dm_Profile_Update_EvasionePa_ClassNoPaException 121: User_Is_Not_Admin 122: Dm_Rubrica_Used_In_AssociaFolder 123: Invalid_Task_Outcome 124: Profile_Insert_Error 125: Dm_Tipidocumento_NoFile 126: LicenseBaseMissing 127: File_Already_Present 128: Generic 129: Dm_Profile_Not_Found 130: Dm_Profile_Is_Not_CheckedOut 131: User_Cannot_Read_This_Document 132: State_Not_Exist 133: Sign_Not_Verified 134: Dm_Barcode_IdBarcode_Not_Found 135: User_Cannot_Use_Barcode 136: Dm_Rubrica_User_CanNotDelete 137: Dm_Rubrica_User_CanNotUpdate 138: Password_Faulted 139: User_Cannot_Read_Any_Document 140: User_Cannot_Read_Some_Document 141: Dm_TipiDocumento_Is_Not_Aos 142: Dm_Profile_IsAos 143: Certificate_LoginFailed 144: Dm_Tipidocumento_RequireFileMustBeOptional 145: Dm_Taskwork_User_Cannot_Lock_Task 146: Dm_Taskwork_Already_Locked_By_Another_User 147: Dm_Taskwork_Already_Locked_By_User_Other_Session 148: Dm_LogonProvider_Association_Missing 149: Dm_Links_Command_IsClient 150: Dm_Collaboration_Is_Read_Only 151: Dm_Collaboration_User_Is_Not_Detail 152: Dm_Collaboration_Not_Have_Master 153: Dm_Collaboration_Not_Exist 154: Ws_DocToIx_Cannot_Delete_Documents 155: Ws_DocToIxCe_Cannot_Delete_Documents 156: Dm_MansioniDynTask_Required 157: Dm_Collaboration_Isnt_Takeoff 158: Dm_Collaboration_Is_Terminated 159: Dm_Collaboration_Master_Not_In_Collaboration 160: Dm_Collaboration_User_Already_TakedOff 161: Dm_Collaboration_Master_not_Exist 162: Dm_Collaboration_Detail_not_Exist 163: Dm_WfSign_Required 164: After_Profile_Insert_Error 165: Ws_Conflict 166: Dm_Taskwork_Not_Found 167: Dm_ApiCall_UsedIn_Dm_CampiQuery - [DataMember(Name="exception", EmitDefaultValue=false)] - public int? Exception { get; set; } - - /// - /// Error Message. - /// - /// Error Message. - [DataMember(Name="message", EmitDefaultValue=false)] - public string Message { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SharingDefinitionInsertResult {\n"); - sb.Append(" SharingDefinition: ").Append(SharingDefinition).Append("\n"); - sb.Append(" Exception: ").Append(Exception).Append("\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SharingDefinitionInsertResult); - } - - /// - /// Returns true if SharingDefinitionInsertResult instances are equal - /// - /// Instance of SharingDefinitionInsertResult to be compared - /// Boolean - public bool Equals(SharingDefinitionInsertResult input) - { - if (input == null) - return false; - - return - ( - this.SharingDefinition == input.SharingDefinition || - (this.SharingDefinition != null && - this.SharingDefinition.Equals(input.SharingDefinition)) - ) && - ( - this.Exception == input.Exception || - (this.Exception != null && - this.Exception.Equals(input.Exception)) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SharingDefinition != null) - hashCode = hashCode * 59 + this.SharingDefinition.GetHashCode(); - if (this.Exception != null) - hashCode = hashCode * 59 + this.Exception.GetHashCode(); - if (this.Message != null) - hashCode = hashCode * 59 + this.Message.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SharingDefinitionSenderDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SharingDefinitionSenderDTO.cs deleted file mode 100644 index 433fffe..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SharingDefinitionSenderDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SharingDefinitionSenderDTO - /// - [DataContract] - public partial class SharingDefinitionSenderDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Id.. - /// Sharing Id. - /// Sender Email.. - /// External Id.. - /// Id of the addressbook element.. - public SharingDefinitionSenderDTO(string sharingDefinitionSenderId = default(string), string sharingDefinitionId = default(string), string email = default(string), string alias = default(string), int? addressBookId = default(int?)) - { - this.SharingDefinitionSenderId = sharingDefinitionSenderId; - this.SharingDefinitionId = sharingDefinitionId; - this.Email = email; - this.Alias = alias; - this.AddressBookId = addressBookId; - } - - /// - /// Id. - /// - /// Id. - [DataMember(Name="sharingDefinitionSenderId", EmitDefaultValue=false)] - public string SharingDefinitionSenderId { get; set; } - - /// - /// Sharing Id - /// - /// Sharing Id - [DataMember(Name="sharingDefinitionId", EmitDefaultValue=false)] - public string SharingDefinitionId { get; set; } - - /// - /// Sender Email. - /// - /// Sender Email. - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// External Id. - /// - /// External Id. - [DataMember(Name="alias", EmitDefaultValue=false)] - public string Alias { get; set; } - - /// - /// Id of the addressbook element. - /// - /// Id of the addressbook element. - [DataMember(Name="addressBookId", EmitDefaultValue=false)] - public int? AddressBookId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SharingDefinitionSenderDTO {\n"); - sb.Append(" SharingDefinitionSenderId: ").Append(SharingDefinitionSenderId).Append("\n"); - sb.Append(" SharingDefinitionId: ").Append(SharingDefinitionId).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Alias: ").Append(Alias).Append("\n"); - sb.Append(" AddressBookId: ").Append(AddressBookId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SharingDefinitionSenderDTO); - } - - /// - /// Returns true if SharingDefinitionSenderDTO instances are equal - /// - /// Instance of SharingDefinitionSenderDTO to be compared - /// Boolean - public bool Equals(SharingDefinitionSenderDTO input) - { - if (input == null) - return false; - - return - ( - this.SharingDefinitionSenderId == input.SharingDefinitionSenderId || - (this.SharingDefinitionSenderId != null && - this.SharingDefinitionSenderId.Equals(input.SharingDefinitionSenderId)) - ) && - ( - this.SharingDefinitionId == input.SharingDefinitionId || - (this.SharingDefinitionId != null && - this.SharingDefinitionId.Equals(input.SharingDefinitionId)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.Alias == input.Alias || - (this.Alias != null && - this.Alias.Equals(input.Alias)) - ) && - ( - this.AddressBookId == input.AddressBookId || - (this.AddressBookId != null && - this.AddressBookId.Equals(input.AddressBookId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SharingDefinitionSenderId != null) - hashCode = hashCode * 59 + this.SharingDefinitionSenderId.GetHashCode(); - if (this.SharingDefinitionId != null) - hashCode = hashCode * 59 + this.SharingDefinitionId.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Alias != null) - hashCode = hashCode * 59 + this.Alias.GetHashCode(); - if (this.AddressBookId != null) - hashCode = hashCode * 59 + this.AddressBookId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SharingDetailDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SharingDetailDTO.cs deleted file mode 100644 index 61c7f04..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SharingDetailDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Detail of a sharing - /// - [DataContract] - public partial class SharingDetailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique id of the detail. - /// Id of the sharing. - /// Docnumber fot the detail. - /// Revision for the detail. - public SharingDetailDTO(string sharingDetailId = default(string), string sharingId = default(string), int? docnumber = default(int?), int? revision = default(int?)) - { - this.SharingDetailId = sharingDetailId; - this.SharingId = sharingId; - this.Docnumber = docnumber; - this.Revision = revision; - } - - /// - /// Unique id of the detail - /// - /// Unique id of the detail - [DataMember(Name="sharingDetailId", EmitDefaultValue=false)] - public string SharingDetailId { get; set; } - - /// - /// Id of the sharing - /// - /// Id of the sharing - [DataMember(Name="sharingId", EmitDefaultValue=false)] - public string SharingId { get; set; } - - /// - /// Docnumber fot the detail - /// - /// Docnumber fot the detail - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Revision for the detail - /// - /// Revision for the detail - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SharingDetailDTO {\n"); - sb.Append(" SharingDetailId: ").Append(SharingDetailId).Append("\n"); - sb.Append(" SharingId: ").Append(SharingId).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SharingDetailDTO); - } - - /// - /// Returns true if SharingDetailDTO instances are equal - /// - /// Instance of SharingDetailDTO to be compared - /// Boolean - public bool Equals(SharingDetailDTO input) - { - if (input == null) - return false; - - return - ( - this.SharingDetailId == input.SharingDetailId || - (this.SharingDetailId != null && - this.SharingDetailId.Equals(input.SharingDetailId)) - ) && - ( - this.SharingId == input.SharingId || - (this.SharingId != null && - this.SharingId.Equals(input.SharingId)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SharingDetailId != null) - hashCode = hashCode * 59 + this.SharingDetailId.GetHashCode(); - if (this.SharingId != null) - hashCode = hashCode * 59 + this.SharingId.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SharingHtmlDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SharingHtmlDTO.cs deleted file mode 100644 index df0eb6a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SharingHtmlDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SharingHtmlDTO - /// - [DataContract] - public partial class SharingHtmlDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Access 1: Expiration . - /// Header. - /// Body Header.. - /// Body Content.. - /// Body footer.. - /// Footer. - /// Lang Code.. - public SharingHtmlDTO(int? htmlKind = default(int?), string header = default(string), string bodyHeader = default(string), string bodyContent = default(string), string bodyFooter = default(string), string footer = default(string), string lang = default(string)) - { - this.HtmlKind = htmlKind; - this.Header = header; - this.BodyHeader = bodyHeader; - this.BodyContent = bodyContent; - this.BodyFooter = bodyFooter; - this.Footer = footer; - this.Lang = lang; - } - - /// - /// Possible values: 0: Access 1: Expiration - /// - /// Possible values: 0: Access 1: Expiration - [DataMember(Name="htmlKind", EmitDefaultValue=false)] - public int? HtmlKind { get; set; } - - /// - /// Header - /// - /// Header - [DataMember(Name="header", EmitDefaultValue=false)] - public string Header { get; set; } - - /// - /// Body Header. - /// - /// Body Header. - [DataMember(Name="bodyHeader", EmitDefaultValue=false)] - public string BodyHeader { get; set; } - - /// - /// Body Content. - /// - /// Body Content. - [DataMember(Name="bodyContent", EmitDefaultValue=false)] - public string BodyContent { get; set; } - - /// - /// Body footer. - /// - /// Body footer. - [DataMember(Name="bodyFooter", EmitDefaultValue=false)] - public string BodyFooter { get; set; } - - /// - /// Footer - /// - /// Footer - [DataMember(Name="footer", EmitDefaultValue=false)] - public string Footer { get; set; } - - /// - /// Lang Code. - /// - /// Lang Code. - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SharingHtmlDTO {\n"); - sb.Append(" HtmlKind: ").Append(HtmlKind).Append("\n"); - sb.Append(" Header: ").Append(Header).Append("\n"); - sb.Append(" BodyHeader: ").Append(BodyHeader).Append("\n"); - sb.Append(" BodyContent: ").Append(BodyContent).Append("\n"); - sb.Append(" BodyFooter: ").Append(BodyFooter).Append("\n"); - sb.Append(" Footer: ").Append(Footer).Append("\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SharingHtmlDTO); - } - - /// - /// Returns true if SharingHtmlDTO instances are equal - /// - /// Instance of SharingHtmlDTO to be compared - /// Boolean - public bool Equals(SharingHtmlDTO input) - { - if (input == null) - return false; - - return - ( - this.HtmlKind == input.HtmlKind || - (this.HtmlKind != null && - this.HtmlKind.Equals(input.HtmlKind)) - ) && - ( - this.Header == input.Header || - (this.Header != null && - this.Header.Equals(input.Header)) - ) && - ( - this.BodyHeader == input.BodyHeader || - (this.BodyHeader != null && - this.BodyHeader.Equals(input.BodyHeader)) - ) && - ( - this.BodyContent == input.BodyContent || - (this.BodyContent != null && - this.BodyContent.Equals(input.BodyContent)) - ) && - ( - this.BodyFooter == input.BodyFooter || - (this.BodyFooter != null && - this.BodyFooter.Equals(input.BodyFooter)) - ) && - ( - this.Footer == input.Footer || - (this.Footer != null && - this.Footer.Equals(input.Footer)) - ) && - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.HtmlKind != null) - hashCode = hashCode * 59 + this.HtmlKind.GetHashCode(); - if (this.Header != null) - hashCode = hashCode * 59 + this.Header.GetHashCode(); - if (this.BodyHeader != null) - hashCode = hashCode * 59 + this.BodyHeader.GetHashCode(); - if (this.BodyContent != null) - hashCode = hashCode * 59 + this.BodyContent.GetHashCode(); - if (this.BodyFooter != null) - hashCode = hashCode * 59 + this.BodyFooter.GetHashCode(); - if (this.Footer != null) - hashCode = hashCode * 59 + this.Footer.GetHashCode(); - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SharingMailDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SharingMailDTO.cs deleted file mode 100644 index f94501e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SharingMailDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SharingMailDTO - /// - [DataContract] - public partial class SharingMailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Subject.. - /// Body Header.. - /// Body Content.. - /// Body Footer.. - /// Lang code.. - public SharingMailDTO(string mailSubject = default(string), string mailBodyHeader = default(string), string mailBodyContent = default(string), string mailBodyFooter = default(string), string lang = default(string)) - { - this.MailSubject = mailSubject; - this.MailBodyHeader = mailBodyHeader; - this.MailBodyContent = mailBodyContent; - this.MailBodyFooter = mailBodyFooter; - this.Lang = lang; - } - - /// - /// Subject. - /// - /// Subject. - [DataMember(Name="mailSubject", EmitDefaultValue=false)] - public string MailSubject { get; set; } - - /// - /// Body Header. - /// - /// Body Header. - [DataMember(Name="mailBodyHeader", EmitDefaultValue=false)] - public string MailBodyHeader { get; set; } - - /// - /// Body Content. - /// - /// Body Content. - [DataMember(Name="mailBodyContent", EmitDefaultValue=false)] - public string MailBodyContent { get; set; } - - /// - /// Body Footer. - /// - /// Body Footer. - [DataMember(Name="mailBodyFooter", EmitDefaultValue=false)] - public string MailBodyFooter { get; set; } - - /// - /// Lang code. - /// - /// Lang code. - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SharingMailDTO {\n"); - sb.Append(" MailSubject: ").Append(MailSubject).Append("\n"); - sb.Append(" MailBodyHeader: ").Append(MailBodyHeader).Append("\n"); - sb.Append(" MailBodyContent: ").Append(MailBodyContent).Append("\n"); - sb.Append(" MailBodyFooter: ").Append(MailBodyFooter).Append("\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SharingMailDTO); - } - - /// - /// Returns true if SharingMailDTO instances are equal - /// - /// Instance of SharingMailDTO to be compared - /// Boolean - public bool Equals(SharingMailDTO input) - { - if (input == null) - return false; - - return - ( - this.MailSubject == input.MailSubject || - (this.MailSubject != null && - this.MailSubject.Equals(input.MailSubject)) - ) && - ( - this.MailBodyHeader == input.MailBodyHeader || - (this.MailBodyHeader != null && - this.MailBodyHeader.Equals(input.MailBodyHeader)) - ) && - ( - this.MailBodyContent == input.MailBodyContent || - (this.MailBodyContent != null && - this.MailBodyContent.Equals(input.MailBodyContent)) - ) && - ( - this.MailBodyFooter == input.MailBodyFooter || - (this.MailBodyFooter != null && - this.MailBodyFooter.Equals(input.MailBodyFooter)) - ) && - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.MailSubject != null) - hashCode = hashCode * 59 + this.MailSubject.GetHashCode(); - if (this.MailBodyHeader != null) - hashCode = hashCode * 59 + this.MailBodyHeader.GetHashCode(); - if (this.MailBodyContent != null) - hashCode = hashCode * 59 + this.MailBodyContent.GetHashCode(); - if (this.MailBodyFooter != null) - hashCode = hashCode * 59 + this.MailBodyFooter.GetHashCode(); - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SharingOperationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SharingOperationDTO.cs deleted file mode 100644 index 09ad474..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SharingOperationDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SharingOperationDTO - /// - [DataContract] - public partial class SharingOperationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique id for the operation.. - /// Unique id for the receiver. - /// Unique id for the sharing detail.. - /// Possible values: 0: ReadDocument . - /// DateTime of the operation.. - public SharingOperationDTO(string sharingOperationId = default(string), string sharingReceiverId = default(string), string sharingDetailId = default(string), int? operationKind = default(int?), DateTime? operationTime = default(DateTime?)) - { - this.SharingOperationId = sharingOperationId; - this.SharingReceiverId = sharingReceiverId; - this.SharingDetailId = sharingDetailId; - this.OperationKind = operationKind; - this.OperationTime = operationTime; - } - - /// - /// Unique id for the operation. - /// - /// Unique id for the operation. - [DataMember(Name="sharingOperationId", EmitDefaultValue=false)] - public string SharingOperationId { get; set; } - - /// - /// Unique id for the receiver - /// - /// Unique id for the receiver - [DataMember(Name="sharingReceiverId", EmitDefaultValue=false)] - public string SharingReceiverId { get; set; } - - /// - /// Unique id for the sharing detail. - /// - /// Unique id for the sharing detail. - [DataMember(Name="sharingDetailId", EmitDefaultValue=false)] - public string SharingDetailId { get; set; } - - /// - /// Possible values: 0: ReadDocument - /// - /// Possible values: 0: ReadDocument - [DataMember(Name="operationKind", EmitDefaultValue=false)] - public int? OperationKind { get; set; } - - /// - /// DateTime of the operation. - /// - /// DateTime of the operation. - [DataMember(Name="operationTime", EmitDefaultValue=false)] - public DateTime? OperationTime { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SharingOperationDTO {\n"); - sb.Append(" SharingOperationId: ").Append(SharingOperationId).Append("\n"); - sb.Append(" SharingReceiverId: ").Append(SharingReceiverId).Append("\n"); - sb.Append(" SharingDetailId: ").Append(SharingDetailId).Append("\n"); - sb.Append(" OperationKind: ").Append(OperationKind).Append("\n"); - sb.Append(" OperationTime: ").Append(OperationTime).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SharingOperationDTO); - } - - /// - /// Returns true if SharingOperationDTO instances are equal - /// - /// Instance of SharingOperationDTO to be compared - /// Boolean - public bool Equals(SharingOperationDTO input) - { - if (input == null) - return false; - - return - ( - this.SharingOperationId == input.SharingOperationId || - (this.SharingOperationId != null && - this.SharingOperationId.Equals(input.SharingOperationId)) - ) && - ( - this.SharingReceiverId == input.SharingReceiverId || - (this.SharingReceiverId != null && - this.SharingReceiverId.Equals(input.SharingReceiverId)) - ) && - ( - this.SharingDetailId == input.SharingDetailId || - (this.SharingDetailId != null && - this.SharingDetailId.Equals(input.SharingDetailId)) - ) && - ( - this.OperationKind == input.OperationKind || - (this.OperationKind != null && - this.OperationKind.Equals(input.OperationKind)) - ) && - ( - this.OperationTime == input.OperationTime || - (this.OperationTime != null && - this.OperationTime.Equals(input.OperationTime)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SharingOperationId != null) - hashCode = hashCode * 59 + this.SharingOperationId.GetHashCode(); - if (this.SharingReceiverId != null) - hashCode = hashCode * 59 + this.SharingReceiverId.GetHashCode(); - if (this.SharingDetailId != null) - hashCode = hashCode * 59 + this.SharingDetailId.GetHashCode(); - if (this.OperationKind != null) - hashCode = hashCode * 59 + this.OperationKind.GetHashCode(); - if (this.OperationTime != null) - hashCode = hashCode * 59 + this.OperationTime.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SharingReceiverDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SharingReceiverDTO.cs deleted file mode 100644 index 324a009..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SharingReceiverDTO.cs +++ /dev/null @@ -1,363 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Sharing receiver informations. - /// - [DataContract] - public partial class SharingReceiverDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique identifier for sharing receiver. - /// Unique identifier for sharing.. - /// email address.. - /// Postal Address.. - /// Postal code.. - /// Location. - /// Provincia.. - /// Country.. - /// Unique identifier for AddressBook. - /// Unique identifier for Contact. - /// Number of read operations.. - /// Last reading DateTIme.. - /// Lang code.. - /// Name of the receiver.. - /// Number of sharing elaboration. - public SharingReceiverDTO(string sharingReceiverId = default(string), string sharingId = default(string), string email = default(string), string address = default(string), string cap = default(string), string location = default(string), string province = default(string), string country = default(string), int? addressBookId = default(int?), int? contactId = default(int?), int? sharingReadingTime = default(int?), DateTime? sharingReadingLastTime = default(DateTime?), string lang = default(string), string receiverName = default(string), int? processed = default(int?)) - { - this.SharingReceiverId = sharingReceiverId; - this.SharingId = sharingId; - this.Email = email; - this.Address = address; - this.Cap = cap; - this.Location = location; - this.Province = province; - this.Country = country; - this.AddressBookId = addressBookId; - this.ContactId = contactId; - this.SharingReadingTime = sharingReadingTime; - this.SharingReadingLastTime = sharingReadingLastTime; - this.Lang = lang; - this.ReceiverName = receiverName; - this.Processed = processed; - } - - /// - /// Unique identifier for sharing receiver - /// - /// Unique identifier for sharing receiver - [DataMember(Name="sharingReceiverId", EmitDefaultValue=false)] - public string SharingReceiverId { get; set; } - - /// - /// Unique identifier for sharing. - /// - /// Unique identifier for sharing. - [DataMember(Name="sharingId", EmitDefaultValue=false)] - public string SharingId { get; set; } - - /// - /// email address. - /// - /// email address. - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Postal Address. - /// - /// Postal Address. - [DataMember(Name="address", EmitDefaultValue=false)] - public string Address { get; set; } - - /// - /// Postal code. - /// - /// Postal code. - [DataMember(Name="cap", EmitDefaultValue=false)] - public string Cap { get; set; } - - /// - /// Location - /// - /// Location - [DataMember(Name="location", EmitDefaultValue=false)] - public string Location { get; set; } - - /// - /// Provincia. - /// - /// Provincia. - [DataMember(Name="province", EmitDefaultValue=false)] - public string Province { get; set; } - - /// - /// Country. - /// - /// Country. - [DataMember(Name="country", EmitDefaultValue=false)] - public string Country { get; set; } - - /// - /// Unique identifier for AddressBook - /// - /// Unique identifier for AddressBook - [DataMember(Name="addressBookId", EmitDefaultValue=false)] - public int? AddressBookId { get; set; } - - /// - /// Unique identifier for Contact - /// - /// Unique identifier for Contact - [DataMember(Name="contactId", EmitDefaultValue=false)] - public int? ContactId { get; set; } - - /// - /// Number of read operations. - /// - /// Number of read operations. - [DataMember(Name="sharingReadingTime", EmitDefaultValue=false)] - public int? SharingReadingTime { get; set; } - - /// - /// Last reading DateTIme. - /// - /// Last reading DateTIme. - [DataMember(Name="sharingReadingLastTime", EmitDefaultValue=false)] - public DateTime? SharingReadingLastTime { get; set; } - - /// - /// Lang code. - /// - /// Lang code. - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Name of the receiver. - /// - /// Name of the receiver. - [DataMember(Name="receiverName", EmitDefaultValue=false)] - public string ReceiverName { get; set; } - - /// - /// Number of sharing elaboration - /// - /// Number of sharing elaboration - [DataMember(Name="processed", EmitDefaultValue=false)] - public int? Processed { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SharingReceiverDTO {\n"); - sb.Append(" SharingReceiverId: ").Append(SharingReceiverId).Append("\n"); - sb.Append(" SharingId: ").Append(SharingId).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" Cap: ").Append(Cap).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" Province: ").Append(Province).Append("\n"); - sb.Append(" Country: ").Append(Country).Append("\n"); - sb.Append(" AddressBookId: ").Append(AddressBookId).Append("\n"); - sb.Append(" ContactId: ").Append(ContactId).Append("\n"); - sb.Append(" SharingReadingTime: ").Append(SharingReadingTime).Append("\n"); - sb.Append(" SharingReadingLastTime: ").Append(SharingReadingLastTime).Append("\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append(" ReceiverName: ").Append(ReceiverName).Append("\n"); - sb.Append(" Processed: ").Append(Processed).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SharingReceiverDTO); - } - - /// - /// Returns true if SharingReceiverDTO instances are equal - /// - /// Instance of SharingReceiverDTO to be compared - /// Boolean - public bool Equals(SharingReceiverDTO input) - { - if (input == null) - return false; - - return - ( - this.SharingReceiverId == input.SharingReceiverId || - (this.SharingReceiverId != null && - this.SharingReceiverId.Equals(input.SharingReceiverId)) - ) && - ( - this.SharingId == input.SharingId || - (this.SharingId != null && - this.SharingId.Equals(input.SharingId)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && - ( - this.Cap == input.Cap || - (this.Cap != null && - this.Cap.Equals(input.Cap)) - ) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && - ( - this.Province == input.Province || - (this.Province != null && - this.Province.Equals(input.Province)) - ) && - ( - this.Country == input.Country || - (this.Country != null && - this.Country.Equals(input.Country)) - ) && - ( - this.AddressBookId == input.AddressBookId || - (this.AddressBookId != null && - this.AddressBookId.Equals(input.AddressBookId)) - ) && - ( - this.ContactId == input.ContactId || - (this.ContactId != null && - this.ContactId.Equals(input.ContactId)) - ) && - ( - this.SharingReadingTime == input.SharingReadingTime || - (this.SharingReadingTime != null && - this.SharingReadingTime.Equals(input.SharingReadingTime)) - ) && - ( - this.SharingReadingLastTime == input.SharingReadingLastTime || - (this.SharingReadingLastTime != null && - this.SharingReadingLastTime.Equals(input.SharingReadingLastTime)) - ) && - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ) && - ( - this.ReceiverName == input.ReceiverName || - (this.ReceiverName != null && - this.ReceiverName.Equals(input.ReceiverName)) - ) && - ( - this.Processed == input.Processed || - (this.Processed != null && - this.Processed.Equals(input.Processed)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SharingReceiverId != null) - hashCode = hashCode * 59 + this.SharingReceiverId.GetHashCode(); - if (this.SharingId != null) - hashCode = hashCode * 59 + this.SharingId.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.Cap != null) - hashCode = hashCode * 59 + this.Cap.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.Province != null) - hashCode = hashCode * 59 + this.Province.GetHashCode(); - if (this.Country != null) - hashCode = hashCode * 59 + this.Country.GetHashCode(); - if (this.AddressBookId != null) - hashCode = hashCode * 59 + this.AddressBookId.GetHashCode(); - if (this.ContactId != null) - hashCode = hashCode * 59 + this.ContactId.GetHashCode(); - if (this.SharingReadingTime != null) - hashCode = hashCode * 59 + this.SharingReadingTime.GetHashCode(); - if (this.SharingReadingLastTime != null) - hashCode = hashCode * 59 + this.SharingReadingLastTime.GetHashCode(); - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - if (this.ReceiverName != null) - hashCode = hashCode * 59 + this.ReceiverName.GetHashCode(); - if (this.Processed != null) - hashCode = hashCode * 59 + this.Processed.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SharingReceiverUriDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SharingReceiverUriDTO.cs deleted file mode 100644 index ad711a8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SharingReceiverUriDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SharingReceiverUriDTO - /// - [DataContract] - public partial class SharingReceiverUriDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Receiver unique id.. - /// Url address for sharing.. - public SharingReceiverUriDTO(string receiverId = default(string), string url = default(string)) - { - this.ReceiverId = receiverId; - this.Url = url; - } - - /// - /// Receiver unique id. - /// - /// Receiver unique id. - [DataMember(Name="receiverId", EmitDefaultValue=false)] - public string ReceiverId { get; set; } - - /// - /// Url address for sharing. - /// - /// Url address for sharing. - [DataMember(Name="url", EmitDefaultValue=false)] - public string Url { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SharingReceiverUriDTO {\n"); - sb.Append(" ReceiverId: ").Append(ReceiverId).Append("\n"); - sb.Append(" Url: ").Append(Url).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SharingReceiverUriDTO); - } - - /// - /// Returns true if SharingReceiverUriDTO instances are equal - /// - /// Instance of SharingReceiverUriDTO to be compared - /// Boolean - public bool Equals(SharingReceiverUriDTO input) - { - if (input == null) - return false; - - return - ( - this.ReceiverId == input.ReceiverId || - (this.ReceiverId != null && - this.ReceiverId.Equals(input.ReceiverId)) - ) && - ( - this.Url == input.Url || - (this.Url != null && - this.Url.Equals(input.Url)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ReceiverId != null) - hashCode = hashCode * 59 + this.ReceiverId.GetHashCode(); - if (this.Url != null) - hashCode = hashCode * 59 + this.Url.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ShippingDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ShippingDTO.cs deleted file mode 100644 index cd1b14a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ShippingDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of shipping - /// - [DataContract] - public partial class ShippingDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Code. - /// Description. - public ShippingDTO(string code = default(string), string description = default(string)) - { - this.Code = code; - this.Description = description; - } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShippingDTO {\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShippingDTO); - } - - /// - /// Returns true if ShippingDTO instances are equal - /// - /// Instance of ShippingDTO to be compared - /// Boolean - public bool Equals(ShippingDTO input) - { - if (input == null) - return false; - - return - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SignCertDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SignCertDTO.cs deleted file mode 100644 index 62f25b2..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SignCertDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of signature certificate - /// - [DataContract] - public partial class SignCertDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Certificate Identifier. - /// Request OTP. - /// Certificate Description. - /// Type. - /// Delegating. - public SignCertDTO(int? id = default(int?), string certId = default(string), bool? requestOtp = default(bool?), string certDescription = default(string), SignCertTypeDTO signCertType = default(SignCertTypeDTO), string delegante = default(string)) - { - this.Id = id; - this.CertId = certId; - this.RequestOtp = requestOtp; - this.CertDescription = certDescription; - this.SignCertType = signCertType; - this.Delegante = delegante; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Certificate Identifier - /// - /// Certificate Identifier - [DataMember(Name="certId", EmitDefaultValue=false)] - public string CertId { get; set; } - - /// - /// Request OTP - /// - /// Request OTP - [DataMember(Name="requestOtp", EmitDefaultValue=false)] - public bool? RequestOtp { get; set; } - - /// - /// Certificate Description - /// - /// Certificate Description - [DataMember(Name="certDescription", EmitDefaultValue=false)] - public string CertDescription { get; set; } - - /// - /// Type - /// - /// Type - [DataMember(Name="signCertType", EmitDefaultValue=false)] - public SignCertTypeDTO SignCertType { get; set; } - - /// - /// Delegating - /// - /// Delegating - [DataMember(Name="delegante", EmitDefaultValue=false)] - public string Delegante { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignCertDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" CertId: ").Append(CertId).Append("\n"); - sb.Append(" RequestOtp: ").Append(RequestOtp).Append("\n"); - sb.Append(" CertDescription: ").Append(CertDescription).Append("\n"); - sb.Append(" SignCertType: ").Append(SignCertType).Append("\n"); - sb.Append(" Delegante: ").Append(Delegante).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignCertDTO); - } - - /// - /// Returns true if SignCertDTO instances are equal - /// - /// Instance of SignCertDTO to be compared - /// Boolean - public bool Equals(SignCertDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.CertId == input.CertId || - (this.CertId != null && - this.CertId.Equals(input.CertId)) - ) && - ( - this.RequestOtp == input.RequestOtp || - (this.RequestOtp != null && - this.RequestOtp.Equals(input.RequestOtp)) - ) && - ( - this.CertDescription == input.CertDescription || - (this.CertDescription != null && - this.CertDescription.Equals(input.CertDescription)) - ) && - ( - this.SignCertType == input.SignCertType || - (this.SignCertType != null && - this.SignCertType.Equals(input.SignCertType)) - ) && - ( - this.Delegante == input.Delegante || - (this.Delegante != null && - this.Delegante.Equals(input.Delegante)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.CertId != null) - hashCode = hashCode * 59 + this.CertId.GetHashCode(); - if (this.RequestOtp != null) - hashCode = hashCode * 59 + this.RequestOtp.GetHashCode(); - if (this.CertDescription != null) - hashCode = hashCode * 59 + this.CertDescription.GetHashCode(); - if (this.SignCertType != null) - hashCode = hashCode * 59 + this.SignCertType.GetHashCode(); - if (this.Delegante != null) - hashCode = hashCode * 59 + this.Delegante.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SignCertInsertDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SignCertInsertDTO.cs deleted file mode 100644 index f231c86..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SignCertInsertDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of signature certificate to insert - /// - [DataContract] - public partial class SignCertInsertDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Certificate Identifier. - /// Request OTP. - /// Certificate Description. - /// Delegating. - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba . - public SignCertInsertDTO(string certId = default(string), bool? requestOtp = default(bool?), string certDescription = default(string), string delegante = default(string), int? certType = default(int?)) - { - this.CertId = certId; - this.RequestOtp = requestOtp; - this.CertDescription = certDescription; - this.Delegante = delegante; - this.CertType = certType; - } - - /// - /// Certificate Identifier - /// - /// Certificate Identifier - [DataMember(Name="certId", EmitDefaultValue=false)] - public string CertId { get; set; } - - /// - /// Request OTP - /// - /// Request OTP - [DataMember(Name="requestOtp", EmitDefaultValue=false)] - public bool? RequestOtp { get; set; } - - /// - /// Certificate Description - /// - /// Certificate Description - [DataMember(Name="certDescription", EmitDefaultValue=false)] - public string CertDescription { get; set; } - - /// - /// Delegating - /// - /// Delegating - [DataMember(Name="delegante", EmitDefaultValue=false)] - public string Delegante { get; set; } - - /// - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba - /// - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba - [DataMember(Name="certType", EmitDefaultValue=false)] - public int? CertType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignCertInsertDTO {\n"); - sb.Append(" CertId: ").Append(CertId).Append("\n"); - sb.Append(" RequestOtp: ").Append(RequestOtp).Append("\n"); - sb.Append(" CertDescription: ").Append(CertDescription).Append("\n"); - sb.Append(" Delegante: ").Append(Delegante).Append("\n"); - sb.Append(" CertType: ").Append(CertType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignCertInsertDTO); - } - - /// - /// Returns true if SignCertInsertDTO instances are equal - /// - /// Instance of SignCertInsertDTO to be compared - /// Boolean - public bool Equals(SignCertInsertDTO input) - { - if (input == null) - return false; - - return - ( - this.CertId == input.CertId || - (this.CertId != null && - this.CertId.Equals(input.CertId)) - ) && - ( - this.RequestOtp == input.RequestOtp || - (this.RequestOtp != null && - this.RequestOtp.Equals(input.RequestOtp)) - ) && - ( - this.CertDescription == input.CertDescription || - (this.CertDescription != null && - this.CertDescription.Equals(input.CertDescription)) - ) && - ( - this.Delegante == input.Delegante || - (this.Delegante != null && - this.Delegante.Equals(input.Delegante)) - ) && - ( - this.CertType == input.CertType || - (this.CertType != null && - this.CertType.Equals(input.CertType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CertId != null) - hashCode = hashCode * 59 + this.CertId.GetHashCode(); - if (this.RequestOtp != null) - hashCode = hashCode * 59 + this.RequestOtp.GetHashCode(); - if (this.CertDescription != null) - hashCode = hashCode * 59 + this.CertDescription.GetHashCode(); - if (this.Delegante != null) - hashCode = hashCode * 59 + this.Delegante.GetHashCode(); - if (this.CertType != null) - hashCode = hashCode * 59 + this.CertType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SignCertPasswordTestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SignCertPasswordTestDTO.cs deleted file mode 100644 index 23c1235..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SignCertPasswordTestDTO.cs +++ /dev/null @@ -1,157 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SignCertPasswordTestDTO - /// - [DataContract] - public partial class SignCertPasswordTestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// password. - /// otp. - /// For Remote Telecom Provider. - public SignCertPasswordTestDTO(string password = default(string), string otp = default(string), string certRelatedId = default(string)) - { - this.Password = password; - this.Otp = otp; - this.CertRelatedId = certRelatedId; - } - - /// - /// Gets or Sets Password - /// - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Gets or Sets Otp - /// - [DataMember(Name="otp", EmitDefaultValue=false)] - public string Otp { get; set; } - - /// - /// For Remote Telecom Provider - /// - /// For Remote Telecom Provider - [DataMember(Name="certRelatedId", EmitDefaultValue=false)] - public string CertRelatedId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignCertPasswordTestDTO {\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Otp: ").Append(Otp).Append("\n"); - sb.Append(" CertRelatedId: ").Append(CertRelatedId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignCertPasswordTestDTO); - } - - /// - /// Returns true if SignCertPasswordTestDTO instances are equal - /// - /// Instance of SignCertPasswordTestDTO to be compared - /// Boolean - public bool Equals(SignCertPasswordTestDTO input) - { - if (input == null) - return false; - - return - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.Otp == input.Otp || - (this.Otp != null && - this.Otp.Equals(input.Otp)) - ) && - ( - this.CertRelatedId == input.CertRelatedId || - (this.CertRelatedId != null && - this.CertRelatedId.Equals(input.CertRelatedId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Otp != null) - hashCode = hashCode * 59 + this.Otp.GetHashCode(); - if (this.CertRelatedId != null) - hashCode = hashCode * 59 + this.CertRelatedId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SignCertRelatedDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SignCertRelatedDTO.cs deleted file mode 100644 index 3edfeef..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SignCertRelatedDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SignCertRelatedDTO - /// - [DataContract] - public partial class SignCertRelatedDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of signature certificate. - /// Identifier of related certificate. - /// Description of related certificate. - /// Certificate is Active. - public SignCertRelatedDTO(int? signCertId = default(int?), string relatedCertId = default(string), string relatedCertDescription = default(string), bool? isActive = default(bool?)) - { - this.SignCertId = signCertId; - this.RelatedCertId = relatedCertId; - this.RelatedCertDescription = relatedCertDescription; - this.IsActive = isActive; - } - - /// - /// Identifier of signature certificate - /// - /// Identifier of signature certificate - [DataMember(Name="signCertId", EmitDefaultValue=false)] - public int? SignCertId { get; set; } - - /// - /// Identifier of related certificate - /// - /// Identifier of related certificate - [DataMember(Name="relatedCertId", EmitDefaultValue=false)] - public string RelatedCertId { get; set; } - - /// - /// Description of related certificate - /// - /// Description of related certificate - [DataMember(Name="relatedCertDescription", EmitDefaultValue=false)] - public string RelatedCertDescription { get; set; } - - /// - /// Certificate is Active - /// - /// Certificate is Active - [DataMember(Name="isActive", EmitDefaultValue=false)] - public bool? IsActive { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignCertRelatedDTO {\n"); - sb.Append(" SignCertId: ").Append(SignCertId).Append("\n"); - sb.Append(" RelatedCertId: ").Append(RelatedCertId).Append("\n"); - sb.Append(" RelatedCertDescription: ").Append(RelatedCertDescription).Append("\n"); - sb.Append(" IsActive: ").Append(IsActive).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignCertRelatedDTO); - } - - /// - /// Returns true if SignCertRelatedDTO instances are equal - /// - /// Instance of SignCertRelatedDTO to be compared - /// Boolean - public bool Equals(SignCertRelatedDTO input) - { - if (input == null) - return false; - - return - ( - this.SignCertId == input.SignCertId || - (this.SignCertId != null && - this.SignCertId.Equals(input.SignCertId)) - ) && - ( - this.RelatedCertId == input.RelatedCertId || - (this.RelatedCertId != null && - this.RelatedCertId.Equals(input.RelatedCertId)) - ) && - ( - this.RelatedCertDescription == input.RelatedCertDescription || - (this.RelatedCertDescription != null && - this.RelatedCertDescription.Equals(input.RelatedCertDescription)) - ) && - ( - this.IsActive == input.IsActive || - (this.IsActive != null && - this.IsActive.Equals(input.IsActive)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SignCertId != null) - hashCode = hashCode * 59 + this.SignCertId.GetHashCode(); - if (this.RelatedCertId != null) - hashCode = hashCode * 59 + this.RelatedCertId.GetHashCode(); - if (this.RelatedCertDescription != null) - hashCode = hashCode * 59 + this.RelatedCertDescription.GetHashCode(); - if (this.IsActive != null) - hashCode = hashCode * 59 + this.IsActive.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SignCertTypeDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SignCertTypeDTO.cs deleted file mode 100644 index 76b4abe..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SignCertTypeDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of signature certificate - /// - [DataContract] - public partial class SignCertTypeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba . - /// Description. - /// Is Remote Provider. - /// Use Related Certificate. - public SignCertTypeDTO(int? signCertType = default(int?), string description = default(string), bool? remoteProvider = default(bool?), bool? useRelatedCert = default(bool?)) - { - this.SignCertType = signCertType; - this.Description = description; - this.RemoteProvider = remoteProvider; - this.UseRelatedCert = useRelatedCert; - } - - /// - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba - /// - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba - [DataMember(Name="signCertType", EmitDefaultValue=false)] - public int? SignCertType { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Is Remote Provider - /// - /// Is Remote Provider - [DataMember(Name="remoteProvider", EmitDefaultValue=false)] - public bool? RemoteProvider { get; set; } - - /// - /// Use Related Certificate - /// - /// Use Related Certificate - [DataMember(Name="useRelatedCert", EmitDefaultValue=false)] - public bool? UseRelatedCert { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignCertTypeDTO {\n"); - sb.Append(" SignCertType: ").Append(SignCertType).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" RemoteProvider: ").Append(RemoteProvider).Append("\n"); - sb.Append(" UseRelatedCert: ").Append(UseRelatedCert).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignCertTypeDTO); - } - - /// - /// Returns true if SignCertTypeDTO instances are equal - /// - /// Instance of SignCertTypeDTO to be compared - /// Boolean - public bool Equals(SignCertTypeDTO input) - { - if (input == null) - return false; - - return - ( - this.SignCertType == input.SignCertType || - (this.SignCertType != null && - this.SignCertType.Equals(input.SignCertType)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.RemoteProvider == input.RemoteProvider || - (this.RemoteProvider != null && - this.RemoteProvider.Equals(input.RemoteProvider)) - ) && - ( - this.UseRelatedCert == input.UseRelatedCert || - (this.UseRelatedCert != null && - this.UseRelatedCert.Equals(input.UseRelatedCert)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SignCertType != null) - hashCode = hashCode * 59 + this.SignCertType.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.RemoteProvider != null) - hashCode = hashCode * 59 + this.RemoteProvider.GetHashCode(); - if (this.UseRelatedCert != null) - hashCode = hashCode * 59 + this.UseRelatedCert.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SignCertUpdateDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SignCertUpdateDTO.cs deleted file mode 100644 index 058491e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SignCertUpdateDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of signature certificate to update - /// - [DataContract] - public partial class SignCertUpdateDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Certificate Identifier. - /// Request OTP. - /// Certificate Description. - /// Delegating. - public SignCertUpdateDTO(string certId = default(string), bool? requestOtp = default(bool?), string certDescription = default(string), string delegante = default(string)) - { - this.CertId = certId; - this.RequestOtp = requestOtp; - this.CertDescription = certDescription; - this.Delegante = delegante; - } - - /// - /// Certificate Identifier - /// - /// Certificate Identifier - [DataMember(Name="certId", EmitDefaultValue=false)] - public string CertId { get; set; } - - /// - /// Request OTP - /// - /// Request OTP - [DataMember(Name="requestOtp", EmitDefaultValue=false)] - public bool? RequestOtp { get; set; } - - /// - /// Certificate Description - /// - /// Certificate Description - [DataMember(Name="certDescription", EmitDefaultValue=false)] - public string CertDescription { get; set; } - - /// - /// Delegating - /// - /// Delegating - [DataMember(Name="delegante", EmitDefaultValue=false)] - public string Delegante { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignCertUpdateDTO {\n"); - sb.Append(" CertId: ").Append(CertId).Append("\n"); - sb.Append(" RequestOtp: ").Append(RequestOtp).Append("\n"); - sb.Append(" CertDescription: ").Append(CertDescription).Append("\n"); - sb.Append(" Delegante: ").Append(Delegante).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignCertUpdateDTO); - } - - /// - /// Returns true if SignCertUpdateDTO instances are equal - /// - /// Instance of SignCertUpdateDTO to be compared - /// Boolean - public bool Equals(SignCertUpdateDTO input) - { - if (input == null) - return false; - - return - ( - this.CertId == input.CertId || - (this.CertId != null && - this.CertId.Equals(input.CertId)) - ) && - ( - this.RequestOtp == input.RequestOtp || - (this.RequestOtp != null && - this.RequestOtp.Equals(input.RequestOtp)) - ) && - ( - this.CertDescription == input.CertDescription || - (this.CertDescription != null && - this.CertDescription.Equals(input.CertDescription)) - ) && - ( - this.Delegante == input.Delegante || - (this.Delegante != null && - this.Delegante.Equals(input.Delegante)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CertId != null) - hashCode = hashCode * 59 + this.CertId.GetHashCode(); - if (this.RequestOtp != null) - hashCode = hashCode * 59 + this.RequestOtp.GetHashCode(); - if (this.CertDescription != null) - hashCode = hashCode * 59 + this.CertDescription.GetHashCode(); - if (this.Delegante != null) - hashCode = hashCode * 59 + this.Delegante.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SignCertUseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SignCertUseDTO.cs deleted file mode 100644 index 25a84e8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SignCertUseDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of certificate use - /// - [DataContract] - public partial class SignCertUseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Business Unit. - /// Document Type. - public SignCertUseDTO(int? id = default(int?), string aoo = default(string), DocumentTypeFieldDTO documentTypeField = default(DocumentTypeFieldDTO)) - { - this.Id = id; - this.Aoo = aoo; - this.DocumentTypeField = documentTypeField; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Business Unit - /// - /// Business Unit - [DataMember(Name="aoo", EmitDefaultValue=false)] - public string Aoo { get; set; } - - /// - /// Document Type - /// - /// Document Type - [DataMember(Name="documentTypeField", EmitDefaultValue=false)] - public DocumentTypeFieldDTO DocumentTypeField { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignCertUseDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Aoo: ").Append(Aoo).Append("\n"); - sb.Append(" DocumentTypeField: ").Append(DocumentTypeField).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignCertUseDTO); - } - - /// - /// Returns true if SignCertUseDTO instances are equal - /// - /// Instance of SignCertUseDTO to be compared - /// Boolean - public bool Equals(SignCertUseDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Aoo == input.Aoo || - (this.Aoo != null && - this.Aoo.Equals(input.Aoo)) - ) && - ( - this.DocumentTypeField == input.DocumentTypeField || - (this.DocumentTypeField != null && - this.DocumentTypeField.Equals(input.DocumentTypeField)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Aoo != null) - hashCode = hashCode * 59 + this.Aoo.GetHashCode(); - if (this.DocumentTypeField != null) - hashCode = hashCode * 59 + this.DocumentTypeField.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SignCertUseGetDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SignCertUseGetDTO.cs deleted file mode 100644 index e4847ad..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SignCertUseGetDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of signature certificate use - /// - [DataContract] - public partial class SignCertUseGetDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of certificate. - /// List of certificate use. - /// Password is set. - public SignCertUseGetDTO(int? signCertId = default(int?), List certUseList = default(List), bool? certPasswordIsSet = default(bool?)) - { - this.SignCertId = signCertId; - this.CertUseList = certUseList; - this.CertPasswordIsSet = certPasswordIsSet; - } - - /// - /// Identifier of certificate - /// - /// Identifier of certificate - [DataMember(Name="signCertId", EmitDefaultValue=false)] - public int? SignCertId { get; set; } - - /// - /// List of certificate use - /// - /// List of certificate use - [DataMember(Name="certUseList", EmitDefaultValue=false)] - public List CertUseList { get; set; } - - /// - /// Password is set - /// - /// Password is set - [DataMember(Name="certPasswordIsSet", EmitDefaultValue=false)] - public bool? CertPasswordIsSet { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignCertUseGetDTO {\n"); - sb.Append(" SignCertId: ").Append(SignCertId).Append("\n"); - sb.Append(" CertUseList: ").Append(CertUseList).Append("\n"); - sb.Append(" CertPasswordIsSet: ").Append(CertPasswordIsSet).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignCertUseGetDTO); - } - - /// - /// Returns true if SignCertUseGetDTO instances are equal - /// - /// Instance of SignCertUseGetDTO to be compared - /// Boolean - public bool Equals(SignCertUseGetDTO input) - { - if (input == null) - return false; - - return - ( - this.SignCertId == input.SignCertId || - (this.SignCertId != null && - this.SignCertId.Equals(input.SignCertId)) - ) && - ( - this.CertUseList == input.CertUseList || - this.CertUseList != null && - this.CertUseList.SequenceEqual(input.CertUseList) - ) && - ( - this.CertPasswordIsSet == input.CertPasswordIsSet || - (this.CertPasswordIsSet != null && - this.CertPasswordIsSet.Equals(input.CertPasswordIsSet)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SignCertId != null) - hashCode = hashCode * 59 + this.SignCertId.GetHashCode(); - if (this.CertUseList != null) - hashCode = hashCode * 59 + this.CertUseList.GetHashCode(); - if (this.CertPasswordIsSet != null) - hashCode = hashCode * 59 + this.CertPasswordIsSet.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SignCertUseInsertDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SignCertUseInsertDTO.cs deleted file mode 100644 index 001a859..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SignCertUseInsertDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of signature certificate use for insert - /// - [DataContract] - public partial class SignCertUseInsertDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Business Unit. - /// Document Type Identifier. - public SignCertUseInsertDTO(string aoo = default(string), int? documentType = default(int?)) - { - this.Aoo = aoo; - this.DocumentType = documentType; - } - - /// - /// Business Unit - /// - /// Business Unit - [DataMember(Name="aoo", EmitDefaultValue=false)] - public string Aoo { get; set; } - - /// - /// Document Type Identifier - /// - /// Document Type Identifier - [DataMember(Name="documentType", EmitDefaultValue=false)] - public int? DocumentType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignCertUseInsertDTO {\n"); - sb.Append(" Aoo: ").Append(Aoo).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignCertUseInsertDTO); - } - - /// - /// Returns true if SignCertUseInsertDTO instances are equal - /// - /// Instance of SignCertUseInsertDTO to be compared - /// Boolean - public bool Equals(SignCertUseInsertDTO input) - { - if (input == null) - return false; - - return - ( - this.Aoo == input.Aoo || - (this.Aoo != null && - this.Aoo.Equals(input.Aoo)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Aoo != null) - hashCode = hashCode * 59 + this.Aoo.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SignCertUseSetDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SignCertUseSetDTO.cs deleted file mode 100644 index 3593ff3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SignCertUseSetDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of signature certificate use for edit - /// - [DataContract] - public partial class SignCertUseSetDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Password is saved. - /// Password. - /// List of certificate use. - public SignCertUseSetDTO(bool? savePassword = default(bool?), string password = default(string), List certUseInsertList = default(List)) - { - this.SavePassword = savePassword; - this.Password = password; - this.CertUseInsertList = certUseInsertList; - } - - /// - /// Password is saved - /// - /// Password is saved - [DataMember(Name="savePassword", EmitDefaultValue=false)] - public bool? SavePassword { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// List of certificate use - /// - /// List of certificate use - [DataMember(Name="certUseInsertList", EmitDefaultValue=false)] - public List CertUseInsertList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignCertUseSetDTO {\n"); - sb.Append(" SavePassword: ").Append(SavePassword).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" CertUseInsertList: ").Append(CertUseInsertList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignCertUseSetDTO); - } - - /// - /// Returns true if SignCertUseSetDTO instances are equal - /// - /// Instance of SignCertUseSetDTO to be compared - /// Boolean - public bool Equals(SignCertUseSetDTO input) - { - if (input == null) - return false; - - return - ( - this.SavePassword == input.SavePassword || - (this.SavePassword != null && - this.SavePassword.Equals(input.SavePassword)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.CertUseInsertList == input.CertUseInsertList || - this.CertUseInsertList != null && - this.CertUseInsertList.SequenceEqual(input.CertUseInsertList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SavePassword != null) - hashCode = hashCode * 59 + this.SavePassword.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.CertUseInsertList != null) - hashCode = hashCode * 59 + this.CertUseInsertList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SignDocumentDataDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SignDocumentDataDTO.cs deleted file mode 100644 index 05929a3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SignDocumentDataDTO.cs +++ /dev/null @@ -1,205 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SignDocumentDataDTO - /// - [DataContract] - public partial class SignDocumentDataDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain . - /// keyId. - /// filename. - /// description. - /// hasProfile. - /// forceSign. - public SignDocumentDataDTO(int? dmCountersTables = default(int?), int? keyId = default(int?), string filename = default(string), string description = default(string), bool? hasProfile = default(bool?), bool? forceSign = default(bool?)) - { - this.DmCountersTables = dmCountersTables; - this.KeyId = keyId; - this.Filename = filename; - this.Description = description; - this.HasProfile = hasProfile; - this.ForceSign = forceSign; - } - - /// - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - [DataMember(Name="dmCountersTables", EmitDefaultValue=false)] - public int? DmCountersTables { get; set; } - - /// - /// Gets or Sets KeyId - /// - [DataMember(Name="keyId", EmitDefaultValue=false)] - public int? KeyId { get; set; } - - /// - /// Gets or Sets Filename - /// - [DataMember(Name="filename", EmitDefaultValue=false)] - public string Filename { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Gets or Sets HasProfile - /// - [DataMember(Name="hasProfile", EmitDefaultValue=false)] - public bool? HasProfile { get; set; } - - /// - /// Gets or Sets ForceSign - /// - [DataMember(Name="forceSign", EmitDefaultValue=false)] - public bool? ForceSign { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignDocumentDataDTO {\n"); - sb.Append(" DmCountersTables: ").Append(DmCountersTables).Append("\n"); - sb.Append(" KeyId: ").Append(KeyId).Append("\n"); - sb.Append(" Filename: ").Append(Filename).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" HasProfile: ").Append(HasProfile).Append("\n"); - sb.Append(" ForceSign: ").Append(ForceSign).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignDocumentDataDTO); - } - - /// - /// Returns true if SignDocumentDataDTO instances are equal - /// - /// Instance of SignDocumentDataDTO to be compared - /// Boolean - public bool Equals(SignDocumentDataDTO input) - { - if (input == null) - return false; - - return - ( - this.DmCountersTables == input.DmCountersTables || - (this.DmCountersTables != null && - this.DmCountersTables.Equals(input.DmCountersTables)) - ) && - ( - this.KeyId == input.KeyId || - (this.KeyId != null && - this.KeyId.Equals(input.KeyId)) - ) && - ( - this.Filename == input.Filename || - (this.Filename != null && - this.Filename.Equals(input.Filename)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.HasProfile == input.HasProfile || - (this.HasProfile != null && - this.HasProfile.Equals(input.HasProfile)) - ) && - ( - this.ForceSign == input.ForceSign || - (this.ForceSign != null && - this.ForceSign.Equals(input.ForceSign)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DmCountersTables != null) - hashCode = hashCode * 59 + this.DmCountersTables.GetHashCode(); - if (this.KeyId != null) - hashCode = hashCode * 59 + this.KeyId.GetHashCode(); - if (this.Filename != null) - hashCode = hashCode * 59 + this.Filename.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.HasProfile != null) - hashCode = hashCode * 59 + this.HasProfile.GetHashCode(); - if (this.ForceSign != null) - hashCode = hashCode * 59 + this.ForceSign.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SignOperationElementDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SignOperationElementDTO.cs deleted file mode 100644 index 1e93002..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SignOperationElementDTO.cs +++ /dev/null @@ -1,157 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SignOperationElementDTO - /// - [DataContract] - public partial class SignOperationElementDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain . - /// docId. - /// extraInfo. - public SignOperationElementDTO(int? docTable = default(int?), string docId = default(string), string extraInfo = default(string)) - { - this.DocTable = docTable; - this.DocId = docId; - this.ExtraInfo = extraInfo; - } - - /// - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - /// - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_MAILWF_ARCHIVE 173: DM_ACCOUNT_IMAP 174: DM_FILTRIMAIL 175: DM_MAPPING_NOTES 176: DM_ACCOUNT_ARCHIVE 177: DM_ACCOUNT_MAPP 178: DM_CONV_MESSAGES 179: DM_CONVERSATION 180: DM_MASK 181: DM_ELENCO_RICERCHE 182: DM_FIND 183: DM_LINKS_CHANGEUSERTASK_D 184: DM_LINKS_CHANGEUSERTASK 185: DM_TASKS_RIASSEGNA_DETT 186: DM_PROXY 187: DM_VARIABILILINK_SET_DETT 188: DM_VARIABILILINK 189: DM_SIGNCERT_USE 190: DM_WF_SIGNPDFOPTIONS 191: DM_WF_SIGNOBBCOND 192: DM_WF_SIGN 193: DM_WF_OPERAZ_EXEC 194: DM_LAY_DESK_DETAIL 195: DM_DESK_LAYOUT 196: WS_REGOLE 197: WS_CAMPIREGOLAIXCE 198: DM_TASKLAYOUT 199: DM_TASKLAYDETAIL 200: DM_TASKLAYASSOC 202: DM_LICENSE 203: DM_LICENSE_ASSOC 204: DM_LICENSE_MOD_INST 205: DM_DOCTOARCHIVE 206: WS_DOCFROMIX_CONFIGMAP 207: WS_DOCFROMIX_CONFIG 208: WS_DOCFROMIX 209: WS_DOCFROMIX_PROFILI_DETAIL 210: WS_DOCFROMIX_PROFILI 211: DM_WF_FATT_APPROVE 212: DM_BUFFER 213: DM_LICENSE_EXTCLIENT 214: DM_LICENSE_RESOURCE 215: DM_APICALL_VAR 216: DM_APICALL_HEADER 217: DM_APICALL 218: DM_APICALL_RESULTINFO 219: DM_REPORTFILE_REF 220: DM_REPORT 221: DM_OPZIONIPDF 222: DM_LOGONTICKET 223: DM_ESECUTORIEVENTO 224: DM_BUFFERDETAIL 225: DM_UTENTI_WHITELIST 226: DM_EXTAPP 227: DM_EXTAPP_PROFILE 228: DM_ARXESIGN_CONFIGURATION 229: DM_ARXESIGN 230: DM_ACCOUNT_CREDENTIAL 231: Dm_Wf_Chain_VAR 232: Dm_Wf_Chain - [DataMember(Name="docTable", EmitDefaultValue=false)] - public int? DocTable { get; set; } - - /// - /// Gets or Sets DocId - /// - [DataMember(Name="docId", EmitDefaultValue=false)] - public string DocId { get; set; } - - /// - /// Gets or Sets ExtraInfo - /// - [DataMember(Name="extraInfo", EmitDefaultValue=false)] - public string ExtraInfo { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignOperationElementDTO {\n"); - sb.Append(" DocTable: ").Append(DocTable).Append("\n"); - sb.Append(" DocId: ").Append(DocId).Append("\n"); - sb.Append(" ExtraInfo: ").Append(ExtraInfo).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignOperationElementDTO); - } - - /// - /// Returns true if SignOperationElementDTO instances are equal - /// - /// Instance of SignOperationElementDTO to be compared - /// Boolean - public bool Equals(SignOperationElementDTO input) - { - if (input == null) - return false; - - return - ( - this.DocTable == input.DocTable || - (this.DocTable != null && - this.DocTable.Equals(input.DocTable)) - ) && - ( - this.DocId == input.DocId || - (this.DocId != null && - this.DocId.Equals(input.DocId)) - ) && - ( - this.ExtraInfo == input.ExtraInfo || - (this.ExtraInfo != null && - this.ExtraInfo.Equals(input.ExtraInfo)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocTable != null) - hashCode = hashCode * 59 + this.DocTable.GetHashCode(); - if (this.DocId != null) - hashCode = hashCode * 59 + this.DocId.GetHashCode(); - if (this.ExtraInfo != null) - hashCode = hashCode * 59 + this.ExtraInfo.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SignPdfPropertiesDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SignPdfPropertiesDTO.cs deleted file mode 100644 index 7eda370..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SignPdfPropertiesDTO.cs +++ /dev/null @@ -1,295 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of settings of pdf signature - /// - [DataContract] - public partial class SignPdfPropertiesDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Page Number. - /// X Positin. - /// Y Position. - /// Width. - /// Heigth. - /// Reason. - /// Label of Common Name. - /// Show Email. - /// Show Fiscal Code. - /// Show Issuer. - /// Show Datetime of Signature. - public SignPdfPropertiesDTO(int? page = default(int?), int? positionX = default(int?), int? positionY = default(int?), int? sizeWidth = default(int?), int? sizeHeight = default(int?), string reason = default(string), bool? showCN = default(bool?), bool? showEmail = default(bool?), bool? showCF = default(bool?), bool? showIssuer = default(bool?), bool? showTime = default(bool?)) - { - this.Page = page; - this.PositionX = positionX; - this.PositionY = positionY; - this.SizeWidth = sizeWidth; - this.SizeHeight = sizeHeight; - this.Reason = reason; - this.ShowCN = showCN; - this.ShowEmail = showEmail; - this.ShowCF = showCF; - this.ShowIssuer = showIssuer; - this.ShowTime = showTime; - } - - /// - /// Page Number - /// - /// Page Number - [DataMember(Name="page", EmitDefaultValue=false)] - public int? Page { get; set; } - - /// - /// X Positin - /// - /// X Positin - [DataMember(Name="positionX", EmitDefaultValue=false)] - public int? PositionX { get; set; } - - /// - /// Y Position - /// - /// Y Position - [DataMember(Name="positionY", EmitDefaultValue=false)] - public int? PositionY { get; set; } - - /// - /// Width - /// - /// Width - [DataMember(Name="sizeWidth", EmitDefaultValue=false)] - public int? SizeWidth { get; set; } - - /// - /// Heigth - /// - /// Heigth - [DataMember(Name="sizeHeight", EmitDefaultValue=false)] - public int? SizeHeight { get; set; } - - /// - /// Reason - /// - /// Reason - [DataMember(Name="reason", EmitDefaultValue=false)] - public string Reason { get; set; } - - /// - /// Label of Common Name - /// - /// Label of Common Name - [DataMember(Name="showCN", EmitDefaultValue=false)] - public bool? ShowCN { get; set; } - - /// - /// Show Email - /// - /// Show Email - [DataMember(Name="showEmail", EmitDefaultValue=false)] - public bool? ShowEmail { get; set; } - - /// - /// Show Fiscal Code - /// - /// Show Fiscal Code - [DataMember(Name="showCF", EmitDefaultValue=false)] - public bool? ShowCF { get; set; } - - /// - /// Show Issuer - /// - /// Show Issuer - [DataMember(Name="showIssuer", EmitDefaultValue=false)] - public bool? ShowIssuer { get; set; } - - /// - /// Show Datetime of Signature - /// - /// Show Datetime of Signature - [DataMember(Name="showTime", EmitDefaultValue=false)] - public bool? ShowTime { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignPdfPropertiesDTO {\n"); - sb.Append(" Page: ").Append(Page).Append("\n"); - sb.Append(" PositionX: ").Append(PositionX).Append("\n"); - sb.Append(" PositionY: ").Append(PositionY).Append("\n"); - sb.Append(" SizeWidth: ").Append(SizeWidth).Append("\n"); - sb.Append(" SizeHeight: ").Append(SizeHeight).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append(" ShowCN: ").Append(ShowCN).Append("\n"); - sb.Append(" ShowEmail: ").Append(ShowEmail).Append("\n"); - sb.Append(" ShowCF: ").Append(ShowCF).Append("\n"); - sb.Append(" ShowIssuer: ").Append(ShowIssuer).Append("\n"); - sb.Append(" ShowTime: ").Append(ShowTime).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignPdfPropertiesDTO); - } - - /// - /// Returns true if SignPdfPropertiesDTO instances are equal - /// - /// Instance of SignPdfPropertiesDTO to be compared - /// Boolean - public bool Equals(SignPdfPropertiesDTO input) - { - if (input == null) - return false; - - return - ( - this.Page == input.Page || - (this.Page != null && - this.Page.Equals(input.Page)) - ) && - ( - this.PositionX == input.PositionX || - (this.PositionX != null && - this.PositionX.Equals(input.PositionX)) - ) && - ( - this.PositionY == input.PositionY || - (this.PositionY != null && - this.PositionY.Equals(input.PositionY)) - ) && - ( - this.SizeWidth == input.SizeWidth || - (this.SizeWidth != null && - this.SizeWidth.Equals(input.SizeWidth)) - ) && - ( - this.SizeHeight == input.SizeHeight || - (this.SizeHeight != null && - this.SizeHeight.Equals(input.SizeHeight)) - ) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ) && - ( - this.ShowCN == input.ShowCN || - (this.ShowCN != null && - this.ShowCN.Equals(input.ShowCN)) - ) && - ( - this.ShowEmail == input.ShowEmail || - (this.ShowEmail != null && - this.ShowEmail.Equals(input.ShowEmail)) - ) && - ( - this.ShowCF == input.ShowCF || - (this.ShowCF != null && - this.ShowCF.Equals(input.ShowCF)) - ) && - ( - this.ShowIssuer == input.ShowIssuer || - (this.ShowIssuer != null && - this.ShowIssuer.Equals(input.ShowIssuer)) - ) && - ( - this.ShowTime == input.ShowTime || - (this.ShowTime != null && - this.ShowTime.Equals(input.ShowTime)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Page != null) - hashCode = hashCode * 59 + this.Page.GetHashCode(); - if (this.PositionX != null) - hashCode = hashCode * 59 + this.PositionX.GetHashCode(); - if (this.PositionY != null) - hashCode = hashCode * 59 + this.PositionY.GetHashCode(); - if (this.SizeWidth != null) - hashCode = hashCode * 59 + this.SizeWidth.GetHashCode(); - if (this.SizeHeight != null) - hashCode = hashCode * 59 + this.SizeHeight.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - if (this.ShowCN != null) - hashCode = hashCode * 59 + this.ShowCN.GetHashCode(); - if (this.ShowEmail != null) - hashCode = hashCode * 59 + this.ShowEmail.GetHashCode(); - if (this.ShowCF != null) - hashCode = hashCode * 59 + this.ShowCF.GetHashCode(); - if (this.ShowIssuer != null) - hashCode = hashCode * 59 + this.ShowIssuer.GetHashCode(); - if (this.ShowTime != null) - hashCode = hashCode * 59 + this.ShowTime.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SignatureAttributeDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SignatureAttributeDTO.cs deleted file mode 100644 index 0c78d26..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SignatureAttributeDTO.cs +++ /dev/null @@ -1,172 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SignatureAttributeDTO - /// - [DataContract] - public partial class SignatureAttributeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// idDescription. - /// valueDescription. - /// valueList. - public SignatureAttributeDTO(string id = default(string), string idDescription = default(string), string valueDescription = default(string), List valueList = default(List)) - { - this.Id = id; - this.IdDescription = idDescription; - this.ValueDescription = valueDescription; - this.ValueList = valueList; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Gets or Sets IdDescription - /// - [DataMember(Name="idDescription", EmitDefaultValue=false)] - public string IdDescription { get; set; } - - /// - /// Gets or Sets ValueDescription - /// - [DataMember(Name="valueDescription", EmitDefaultValue=false)] - public string ValueDescription { get; set; } - - /// - /// Gets or Sets ValueList - /// - [DataMember(Name="valueList", EmitDefaultValue=false)] - public List ValueList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignatureAttributeDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IdDescription: ").Append(IdDescription).Append("\n"); - sb.Append(" ValueDescription: ").Append(ValueDescription).Append("\n"); - sb.Append(" ValueList: ").Append(ValueList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignatureAttributeDTO); - } - - /// - /// Returns true if SignatureAttributeDTO instances are equal - /// - /// Instance of SignatureAttributeDTO to be compared - /// Boolean - public bool Equals(SignatureAttributeDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.IdDescription == input.IdDescription || - (this.IdDescription != null && - this.IdDescription.Equals(input.IdDescription)) - ) && - ( - this.ValueDescription == input.ValueDescription || - (this.ValueDescription != null && - this.ValueDescription.Equals(input.ValueDescription)) - ) && - ( - this.ValueList == input.ValueList || - this.ValueList != null && - this.ValueList.SequenceEqual(input.ValueList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.IdDescription != null) - hashCode = hashCode * 59 + this.IdDescription.GetHashCode(); - if (this.ValueDescription != null) - hashCode = hashCode * 59 + this.ValueDescription.GetHashCode(); - if (this.ValueList != null) - hashCode = hashCode * 59 + this.ValueList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SignatureInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SignatureInfoDTO.cs deleted file mode 100644 index 1d914eb..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SignatureInfoDTO.cs +++ /dev/null @@ -1,348 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// SignatureInfoDTO - /// - [DataContract] - public partial class SignatureInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// signatureStandard. - /// certificateInfo. - /// timestampInfo. - /// counterSignatures. - /// contentType. - /// digestAlgorithm. - /// signAlgorithm. - /// signatureHex. - /// isValid. - /// signatureIntegrity. - /// isCounterSign. - /// signatureValidationMessageList. - /// signatureTimeUtc. - /// signedAttributeList. - /// unsignedAttributeList. - public SignatureInfoDTO(string signatureStandard = default(string), CertificateInfoDTO certificateInfo = default(CertificateInfoDTO), TimestampInfoDTO timestampInfo = default(TimestampInfoDTO), List counterSignatures = default(List), IdValuePairDTO contentType = default(IdValuePairDTO), IdValuePairDTO digestAlgorithm = default(IdValuePairDTO), IdValuePairDTO signAlgorithm = default(IdValuePairDTO), string signatureHex = default(string), bool? isValid = default(bool?), bool? signatureIntegrity = default(bool?), bool? isCounterSign = default(bool?), List signatureValidationMessageList = default(List), DateTime? signatureTimeUtc = default(DateTime?), List signedAttributeList = default(List), List unsignedAttributeList = default(List)) - { - this.SignatureStandard = signatureStandard; - this.CertificateInfo = certificateInfo; - this.TimestampInfo = timestampInfo; - this.CounterSignatures = counterSignatures; - this.ContentType = contentType; - this.DigestAlgorithm = digestAlgorithm; - this.SignAlgorithm = signAlgorithm; - this.SignatureHex = signatureHex; - this.IsValid = isValid; - this.SignatureIntegrity = signatureIntegrity; - this.IsCounterSign = isCounterSign; - this.SignatureValidationMessageList = signatureValidationMessageList; - this.SignatureTimeUtc = signatureTimeUtc; - this.SignedAttributeList = signedAttributeList; - this.UnsignedAttributeList = unsignedAttributeList; - } - - /// - /// Gets or Sets SignatureStandard - /// - [DataMember(Name="signatureStandard", EmitDefaultValue=false)] - public string SignatureStandard { get; set; } - - /// - /// Gets or Sets CertificateInfo - /// - [DataMember(Name="certificateInfo", EmitDefaultValue=false)] - public CertificateInfoDTO CertificateInfo { get; set; } - - /// - /// Gets or Sets TimestampInfo - /// - [DataMember(Name="timestampInfo", EmitDefaultValue=false)] - public TimestampInfoDTO TimestampInfo { get; set; } - - /// - /// Gets or Sets CounterSignatures - /// - [DataMember(Name="counterSignatures", EmitDefaultValue=false)] - public List CounterSignatures { get; set; } - - /// - /// Gets or Sets ContentType - /// - [DataMember(Name="contentType", EmitDefaultValue=false)] - public IdValuePairDTO ContentType { get; set; } - - /// - /// Gets or Sets DigestAlgorithm - /// - [DataMember(Name="digestAlgorithm", EmitDefaultValue=false)] - public IdValuePairDTO DigestAlgorithm { get; set; } - - /// - /// Gets or Sets SignAlgorithm - /// - [DataMember(Name="signAlgorithm", EmitDefaultValue=false)] - public IdValuePairDTO SignAlgorithm { get; set; } - - /// - /// Gets or Sets SignatureHex - /// - [DataMember(Name="signatureHex", EmitDefaultValue=false)] - public string SignatureHex { get; set; } - - /// - /// Gets or Sets IsValid - /// - [DataMember(Name="isValid", EmitDefaultValue=false)] - public bool? IsValid { get; set; } - - /// - /// Gets or Sets SignatureIntegrity - /// - [DataMember(Name="signatureIntegrity", EmitDefaultValue=false)] - public bool? SignatureIntegrity { get; set; } - - /// - /// Gets or Sets IsCounterSign - /// - [DataMember(Name="isCounterSign", EmitDefaultValue=false)] - public bool? IsCounterSign { get; set; } - - /// - /// Gets or Sets SignatureValidationMessageList - /// - [DataMember(Name="signatureValidationMessageList", EmitDefaultValue=false)] - public List SignatureValidationMessageList { get; set; } - - /// - /// Gets or Sets SignatureTimeUtc - /// - [DataMember(Name="signatureTimeUtc", EmitDefaultValue=false)] - public DateTime? SignatureTimeUtc { get; set; } - - /// - /// Gets or Sets SignedAttributeList - /// - [DataMember(Name="signedAttributeList", EmitDefaultValue=false)] - public List SignedAttributeList { get; set; } - - /// - /// Gets or Sets UnsignedAttributeList - /// - [DataMember(Name="unsignedAttributeList", EmitDefaultValue=false)] - public List UnsignedAttributeList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignatureInfoDTO {\n"); - sb.Append(" SignatureStandard: ").Append(SignatureStandard).Append("\n"); - sb.Append(" CertificateInfo: ").Append(CertificateInfo).Append("\n"); - sb.Append(" TimestampInfo: ").Append(TimestampInfo).Append("\n"); - sb.Append(" CounterSignatures: ").Append(CounterSignatures).Append("\n"); - sb.Append(" ContentType: ").Append(ContentType).Append("\n"); - sb.Append(" DigestAlgorithm: ").Append(DigestAlgorithm).Append("\n"); - sb.Append(" SignAlgorithm: ").Append(SignAlgorithm).Append("\n"); - sb.Append(" SignatureHex: ").Append(SignatureHex).Append("\n"); - sb.Append(" IsValid: ").Append(IsValid).Append("\n"); - sb.Append(" SignatureIntegrity: ").Append(SignatureIntegrity).Append("\n"); - sb.Append(" IsCounterSign: ").Append(IsCounterSign).Append("\n"); - sb.Append(" SignatureValidationMessageList: ").Append(SignatureValidationMessageList).Append("\n"); - sb.Append(" SignatureTimeUtc: ").Append(SignatureTimeUtc).Append("\n"); - sb.Append(" SignedAttributeList: ").Append(SignedAttributeList).Append("\n"); - sb.Append(" UnsignedAttributeList: ").Append(UnsignedAttributeList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignatureInfoDTO); - } - - /// - /// Returns true if SignatureInfoDTO instances are equal - /// - /// Instance of SignatureInfoDTO to be compared - /// Boolean - public bool Equals(SignatureInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.SignatureStandard == input.SignatureStandard || - (this.SignatureStandard != null && - this.SignatureStandard.Equals(input.SignatureStandard)) - ) && - ( - this.CertificateInfo == input.CertificateInfo || - (this.CertificateInfo != null && - this.CertificateInfo.Equals(input.CertificateInfo)) - ) && - ( - this.TimestampInfo == input.TimestampInfo || - (this.TimestampInfo != null && - this.TimestampInfo.Equals(input.TimestampInfo)) - ) && - ( - this.CounterSignatures == input.CounterSignatures || - this.CounterSignatures != null && - this.CounterSignatures.SequenceEqual(input.CounterSignatures) - ) && - ( - this.ContentType == input.ContentType || - (this.ContentType != null && - this.ContentType.Equals(input.ContentType)) - ) && - ( - this.DigestAlgorithm == input.DigestAlgorithm || - (this.DigestAlgorithm != null && - this.DigestAlgorithm.Equals(input.DigestAlgorithm)) - ) && - ( - this.SignAlgorithm == input.SignAlgorithm || - (this.SignAlgorithm != null && - this.SignAlgorithm.Equals(input.SignAlgorithm)) - ) && - ( - this.SignatureHex == input.SignatureHex || - (this.SignatureHex != null && - this.SignatureHex.Equals(input.SignatureHex)) - ) && - ( - this.IsValid == input.IsValid || - (this.IsValid != null && - this.IsValid.Equals(input.IsValid)) - ) && - ( - this.SignatureIntegrity == input.SignatureIntegrity || - (this.SignatureIntegrity != null && - this.SignatureIntegrity.Equals(input.SignatureIntegrity)) - ) && - ( - this.IsCounterSign == input.IsCounterSign || - (this.IsCounterSign != null && - this.IsCounterSign.Equals(input.IsCounterSign)) - ) && - ( - this.SignatureValidationMessageList == input.SignatureValidationMessageList || - this.SignatureValidationMessageList != null && - this.SignatureValidationMessageList.SequenceEqual(input.SignatureValidationMessageList) - ) && - ( - this.SignatureTimeUtc == input.SignatureTimeUtc || - (this.SignatureTimeUtc != null && - this.SignatureTimeUtc.Equals(input.SignatureTimeUtc)) - ) && - ( - this.SignedAttributeList == input.SignedAttributeList || - this.SignedAttributeList != null && - this.SignedAttributeList.SequenceEqual(input.SignedAttributeList) - ) && - ( - this.UnsignedAttributeList == input.UnsignedAttributeList || - this.UnsignedAttributeList != null && - this.UnsignedAttributeList.SequenceEqual(input.UnsignedAttributeList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SignatureStandard != null) - hashCode = hashCode * 59 + this.SignatureStandard.GetHashCode(); - if (this.CertificateInfo != null) - hashCode = hashCode * 59 + this.CertificateInfo.GetHashCode(); - if (this.TimestampInfo != null) - hashCode = hashCode * 59 + this.TimestampInfo.GetHashCode(); - if (this.CounterSignatures != null) - hashCode = hashCode * 59 + this.CounterSignatures.GetHashCode(); - if (this.ContentType != null) - hashCode = hashCode * 59 + this.ContentType.GetHashCode(); - if (this.DigestAlgorithm != null) - hashCode = hashCode * 59 + this.DigestAlgorithm.GetHashCode(); - if (this.SignAlgorithm != null) - hashCode = hashCode * 59 + this.SignAlgorithm.GetHashCode(); - if (this.SignatureHex != null) - hashCode = hashCode * 59 + this.SignatureHex.GetHashCode(); - if (this.IsValid != null) - hashCode = hashCode * 59 + this.IsValid.GetHashCode(); - if (this.SignatureIntegrity != null) - hashCode = hashCode * 59 + this.SignatureIntegrity.GetHashCode(); - if (this.IsCounterSign != null) - hashCode = hashCode * 59 + this.IsCounterSign.GetHashCode(); - if (this.SignatureValidationMessageList != null) - hashCode = hashCode * 59 + this.SignatureValidationMessageList.GetHashCode(); - if (this.SignatureTimeUtc != null) - hashCode = hashCode * 59 + this.SignatureTimeUtc.GetHashCode(); - if (this.SignedAttributeList != null) - hashCode = hashCode * 59 + this.SignedAttributeList.GetHashCode(); - if (this.UnsignedAttributeList != null) - hashCode = hashCode * 59 + this.UnsignedAttributeList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SimpleQuickSearchDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/SimpleQuickSearchDto.cs deleted file mode 100644 index b53a87a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SimpleQuickSearchDto.cs +++ /dev/null @@ -1,157 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of quick search that doesn't support OR search list - /// - [DataContract] - public partial class SimpleQuickSearchDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Find information. - /// searchFilterDto. - /// selectFilterDto. - public SimpleQuickSearchDto(FindDTO find = default(FindDTO), SearchDTO searchFilterDto = default(SearchDTO), SelectDTO selectFilterDto = default(SelectDTO)) - { - this.Find = find; - this.SearchFilterDto = searchFilterDto; - this.SelectFilterDto = selectFilterDto; - } - - /// - /// Find information - /// - /// Find information - [DataMember(Name="find", EmitDefaultValue=false)] - public FindDTO Find { get; set; } - - /// - /// Gets or Sets SearchFilterDto - /// - [DataMember(Name="searchFilterDto", EmitDefaultValue=false)] - public SearchDTO SearchFilterDto { get; set; } - - /// - /// Gets or Sets SelectFilterDto - /// - [DataMember(Name="selectFilterDto", EmitDefaultValue=false)] - public SelectDTO SelectFilterDto { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SimpleQuickSearchDto {\n"); - sb.Append(" Find: ").Append(Find).Append("\n"); - sb.Append(" SearchFilterDto: ").Append(SearchFilterDto).Append("\n"); - sb.Append(" SelectFilterDto: ").Append(SelectFilterDto).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SimpleQuickSearchDto); - } - - /// - /// Returns true if SimpleQuickSearchDto instances are equal - /// - /// Instance of SimpleQuickSearchDto to be compared - /// Boolean - public bool Equals(SimpleQuickSearchDto input) - { - if (input == null) - return false; - - return - ( - this.Find == input.Find || - (this.Find != null && - this.Find.Equals(input.Find)) - ) && - ( - this.SearchFilterDto == input.SearchFilterDto || - (this.SearchFilterDto != null && - this.SearchFilterDto.Equals(input.SearchFilterDto)) - ) && - ( - this.SelectFilterDto == input.SelectFilterDto || - (this.SelectFilterDto != null && - this.SelectFilterDto.Equals(input.SelectFilterDto)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Find != null) - hashCode = hashCode * 59 + this.Find.GetHashCode(); - if (this.SearchFilterDto != null) - hashCode = hashCode * 59 + this.SearchFilterDto.GetHashCode(); - if (this.SelectFilterDto != null) - hashCode = hashCode * 59 + this.SelectFilterDto.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SingleProfilePermissionsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SingleProfilePermissionsDTO.cs deleted file mode 100644 index 619eed2..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SingleProfilePermissionsDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of single permission associated with a profile - /// - [DataContract] - public partial class SingleProfilePermissionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Read Only. - /// Possible values: 0: Additional 1: Exclusive . - /// Permissions item. - /// List of user permissions. - /// Permission Properties. - public SingleProfilePermissionsDTO(bool? readOnly = default(bool?), int? permissionModality = default(int?), List canManagePermissions = default(List), List usersPermissions = default(List), List permissionsProperties = default(List)) - { - this.ReadOnly = readOnly; - this.PermissionModality = permissionModality; - this.CanManagePermissions = canManagePermissions; - this.UsersPermissions = usersPermissions; - this.PermissionsProperties = permissionsProperties; - } - - /// - /// Read Only - /// - /// Read Only - [DataMember(Name="readOnly", EmitDefaultValue=false)] - public bool? ReadOnly { get; set; } - - /// - /// Possible values: 0: Additional 1: Exclusive - /// - /// Possible values: 0: Additional 1: Exclusive - [DataMember(Name="permissionModality", EmitDefaultValue=false)] - public int? PermissionModality { get; set; } - - /// - /// Permissions item - /// - /// Permissions item - [DataMember(Name="canManagePermissions", EmitDefaultValue=false)] - public List CanManagePermissions { get; set; } - - /// - /// List of user permissions - /// - /// List of user permissions - [DataMember(Name="usersPermissions", EmitDefaultValue=false)] - public List UsersPermissions { get; set; } - - /// - /// Permission Properties - /// - /// Permission Properties - [DataMember(Name="permissionsProperties", EmitDefaultValue=false)] - public List PermissionsProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SingleProfilePermissionsDTO {\n"); - sb.Append(" ReadOnly: ").Append(ReadOnly).Append("\n"); - sb.Append(" PermissionModality: ").Append(PermissionModality).Append("\n"); - sb.Append(" CanManagePermissions: ").Append(CanManagePermissions).Append("\n"); - sb.Append(" UsersPermissions: ").Append(UsersPermissions).Append("\n"); - sb.Append(" PermissionsProperties: ").Append(PermissionsProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SingleProfilePermissionsDTO); - } - - /// - /// Returns true if SingleProfilePermissionsDTO instances are equal - /// - /// Instance of SingleProfilePermissionsDTO to be compared - /// Boolean - public bool Equals(SingleProfilePermissionsDTO input) - { - if (input == null) - return false; - - return - ( - this.ReadOnly == input.ReadOnly || - (this.ReadOnly != null && - this.ReadOnly.Equals(input.ReadOnly)) - ) && - ( - this.PermissionModality == input.PermissionModality || - (this.PermissionModality != null && - this.PermissionModality.Equals(input.PermissionModality)) - ) && - ( - this.CanManagePermissions == input.CanManagePermissions || - this.CanManagePermissions != null && - this.CanManagePermissions.SequenceEqual(input.CanManagePermissions) - ) && - ( - this.UsersPermissions == input.UsersPermissions || - this.UsersPermissions != null && - this.UsersPermissions.SequenceEqual(input.UsersPermissions) - ) && - ( - this.PermissionsProperties == input.PermissionsProperties || - this.PermissionsProperties != null && - this.PermissionsProperties.SequenceEqual(input.PermissionsProperties) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ReadOnly != null) - hashCode = hashCode * 59 + this.ReadOnly.GetHashCode(); - if (this.PermissionModality != null) - hashCode = hashCode * 59 + this.PermissionModality.GetHashCode(); - if (this.CanManagePermissions != null) - hashCode = hashCode * 59 + this.CanManagePermissions.GetHashCode(); - if (this.UsersPermissions != null) - hashCode = hashCode * 59 + this.UsersPermissions.GetHashCode(); - if (this.PermissionsProperties != null) - hashCode = hashCode * 59 + this.PermissionsProperties.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SqlConditionBoolDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SqlConditionBoolDTO.cs deleted file mode 100644 index 6f6ac39..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SqlConditionBoolDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of sql condition for type Bool - /// - [DataContract] - public partial class SqlConditionBoolDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 3: Uguale 6: Diverso . - /// First value. - /// Second value. - public SqlConditionBoolDTO(int? _operator = default(int?), bool? value1 = default(bool?), bool? value2 = default(bool?)) - { - this.Operator = _operator; - this.Value1 = value1; - this.Value2 = value2; - } - - /// - /// Possible values: 0: Non_Impostato 3: Uguale 6: Diverso - /// - /// Possible values: 0: Non_Impostato 3: Uguale 6: Diverso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// First value - /// - /// First value - [DataMember(Name="value1", EmitDefaultValue=false)] - public bool? Value1 { get; set; } - - /// - /// Second value - /// - /// Second value - [DataMember(Name="value2", EmitDefaultValue=false)] - public bool? Value2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlConditionBoolDTO {\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Value1: ").Append(Value1).Append("\n"); - sb.Append(" Value2: ").Append(Value2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlConditionBoolDTO); - } - - /// - /// Returns true if SqlConditionBoolDTO instances are equal - /// - /// Instance of SqlConditionBoolDTO to be compared - /// Boolean - public bool Equals(SqlConditionBoolDTO input) - { - if (input == null) - return false; - - return - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && - ( - this.Value1 == input.Value1 || - (this.Value1 != null && - this.Value1.Equals(input.Value1)) - ) && - ( - this.Value2 == input.Value2 || - (this.Value2 != null && - this.Value2.Equals(input.Value2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Value1 != null) - hashCode = hashCode * 59 + this.Value1.GetHashCode(); - if (this.Value2 != null) - hashCode = hashCode * 59 + this.Value2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SqlConditionDateTimeDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SqlConditionDateTimeDTO.cs deleted file mode 100644 index ef7d8fc..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SqlConditionDateTimeDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of sql condition for type DateTime - /// - [DataContract] - public partial class SqlConditionDateTimeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// First value. - /// Second value. - public SqlConditionDateTimeDTO(int? _operator = default(int?), DateTime? value1 = default(DateTime?), DateTime? value2 = default(DateTime?)) - { - this.Operator = _operator; - this.Value1 = value1; - this.Value2 = value2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// First value - /// - /// First value - [DataMember(Name="value1", EmitDefaultValue=false)] - public DateTime? Value1 { get; set; } - - /// - /// Second value - /// - /// Second value - [DataMember(Name="value2", EmitDefaultValue=false)] - public DateTime? Value2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlConditionDateTimeDTO {\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Value1: ").Append(Value1).Append("\n"); - sb.Append(" Value2: ").Append(Value2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlConditionDateTimeDTO); - } - - /// - /// Returns true if SqlConditionDateTimeDTO instances are equal - /// - /// Instance of SqlConditionDateTimeDTO to be compared - /// Boolean - public bool Equals(SqlConditionDateTimeDTO input) - { - if (input == null) - return false; - - return - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && - ( - this.Value1 == input.Value1 || - (this.Value1 != null && - this.Value1.Equals(input.Value1)) - ) && - ( - this.Value2 == input.Value2 || - (this.Value2 != null && - this.Value2.Equals(input.Value2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Value1 != null) - hashCode = hashCode * 59 + this.Value1.GetHashCode(); - if (this.Value2 != null) - hashCode = hashCode * 59 + this.Value2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SqlConditionDoubleDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SqlConditionDoubleDTO.cs deleted file mode 100644 index dff4e6a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SqlConditionDoubleDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of sql condition for type Double - /// - [DataContract] - public partial class SqlConditionDoubleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// First value. - /// Second value. - public SqlConditionDoubleDTO(int? _operator = default(int?), double? value1 = default(double?), double? value2 = default(double?)) - { - this.Operator = _operator; - this.Value1 = value1; - this.Value2 = value2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// First value - /// - /// First value - [DataMember(Name="value1", EmitDefaultValue=false)] - public double? Value1 { get; set; } - - /// - /// Second value - /// - /// Second value - [DataMember(Name="value2", EmitDefaultValue=false)] - public double? Value2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlConditionDoubleDTO {\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Value1: ").Append(Value1).Append("\n"); - sb.Append(" Value2: ").Append(Value2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlConditionDoubleDTO); - } - - /// - /// Returns true if SqlConditionDoubleDTO instances are equal - /// - /// Instance of SqlConditionDoubleDTO to be compared - /// Boolean - public bool Equals(SqlConditionDoubleDTO input) - { - if (input == null) - return false; - - return - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && - ( - this.Value1 == input.Value1 || - (this.Value1 != null && - this.Value1.Equals(input.Value1)) - ) && - ( - this.Value2 == input.Value2 || - (this.Value2 != null && - this.Value2.Equals(input.Value2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Value1 != null) - hashCode = hashCode * 59 + this.Value1.GetHashCode(); - if (this.Value2 != null) - hashCode = hashCode * 59 + this.Value2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SqlConditionIntDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SqlConditionIntDTO.cs deleted file mode 100644 index 7c620bd..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SqlConditionIntDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of sql condition for type Int - /// - [DataContract] - public partial class SqlConditionIntDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// First value. - /// Second value. - public SqlConditionIntDTO(int? _operator = default(int?), int? value1 = default(int?), int? value2 = default(int?)) - { - this.Operator = _operator; - this.Value1 = value1; - this.Value2 = value2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// First value - /// - /// First value - [DataMember(Name="value1", EmitDefaultValue=false)] - public int? Value1 { get; set; } - - /// - /// Second value - /// - /// Second value - [DataMember(Name="value2", EmitDefaultValue=false)] - public int? Value2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlConditionIntDTO {\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Value1: ").Append(Value1).Append("\n"); - sb.Append(" Value2: ").Append(Value2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlConditionIntDTO); - } - - /// - /// Returns true if SqlConditionIntDTO instances are equal - /// - /// Instance of SqlConditionIntDTO to be compared - /// Boolean - public bool Equals(SqlConditionIntDTO input) - { - if (input == null) - return false; - - return - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && - ( - this.Value1 == input.Value1 || - (this.Value1 != null && - this.Value1.Equals(input.Value1)) - ) && - ( - this.Value2 == input.Value2 || - (this.Value2 != null && - this.Value2.Equals(input.Value2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Value1 != null) - hashCode = hashCode * 59 + this.Value1.GetHashCode(); - if (this.Value2 != null) - hashCode = hashCode * 59 + this.Value2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SqlConditionStringDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SqlConditionStringDTO.cs deleted file mode 100644 index 95d9ff2..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SqlConditionStringDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of sql condition for type String - /// - [DataContract] - public partial class SqlConditionStringDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like . - /// First value. - /// Second value. - public SqlConditionStringDTO(int? _operator = default(int?), string value1 = default(string), string value2 = default(string)) - { - this.Operator = _operator; - this.Value1 = value1; - this.Value2 = value2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// First value - /// - /// First value - [DataMember(Name="value1", EmitDefaultValue=false)] - public string Value1 { get; set; } - - /// - /// Second value - /// - /// Second value - [DataMember(Name="value2", EmitDefaultValue=false)] - public string Value2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlConditionStringDTO {\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Value1: ").Append(Value1).Append("\n"); - sb.Append(" Value2: ").Append(Value2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlConditionStringDTO); - } - - /// - /// Returns true if SqlConditionStringDTO instances are equal - /// - /// Instance of SqlConditionStringDTO to be compared - /// Boolean - public bool Equals(SqlConditionStringDTO input) - { - if (input == null) - return false; - - return - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && - ( - this.Value1 == input.Value1 || - (this.Value1 != null && - this.Value1.Equals(input.Value1)) - ) && - ( - this.Value2 == input.Value2 || - (this.Value2 != null && - this.Value2.Equals(input.Value2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Value1 != null) - hashCode = hashCode * 59 + this.Value1.GetHashCode(); - if (this.Value2 != null) - hashCode = hashCode * 59 + this.Value2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/StampDefinitionBindingElementDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/StampDefinitionBindingElementDTO.cs deleted file mode 100644 index fd563fd..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/StampDefinitionBindingElementDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Object that define a binding configuration for a stamp. - /// - [DataContract] - public partial class StampDefinitionBindingElementDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Id of binding definition.. - /// Element Id.. - /// Property name.. - /// Description for binding.. - /// Binding field for association.. - /// Default value.. - public StampDefinitionBindingElementDTO(string id = default(string), string idElement = default(string), string elementProperty = default(string), string bindingDescription = default(string), string fieldBinding = default(string), Object defaultValue = default(Object)) - { - this.Id = id; - this.IdElement = idElement; - this.ElementProperty = elementProperty; - this.BindingDescription = bindingDescription; - this.FieldBinding = fieldBinding; - this.DefaultValue = defaultValue; - } - - /// - /// Id of binding definition. - /// - /// Id of binding definition. - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Element Id. - /// - /// Element Id. - [DataMember(Name="idElement", EmitDefaultValue=false)] - public string IdElement { get; set; } - - /// - /// Property name. - /// - /// Property name. - [DataMember(Name="elementProperty", EmitDefaultValue=false)] - public string ElementProperty { get; set; } - - /// - /// Description for binding. - /// - /// Description for binding. - [DataMember(Name="bindingDescription", EmitDefaultValue=false)] - public string BindingDescription { get; set; } - - /// - /// Binding field for association. - /// - /// Binding field for association. - [DataMember(Name="fieldBinding", EmitDefaultValue=false)] - public string FieldBinding { get; set; } - - /// - /// Default value. - /// - /// Default value. - [DataMember(Name="defaultValue", EmitDefaultValue=false)] - public Object DefaultValue { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StampDefinitionBindingElementDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IdElement: ").Append(IdElement).Append("\n"); - sb.Append(" ElementProperty: ").Append(ElementProperty).Append("\n"); - sb.Append(" BindingDescription: ").Append(BindingDescription).Append("\n"); - sb.Append(" FieldBinding: ").Append(FieldBinding).Append("\n"); - sb.Append(" DefaultValue: ").Append(DefaultValue).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StampDefinitionBindingElementDTO); - } - - /// - /// Returns true if StampDefinitionBindingElementDTO instances are equal - /// - /// Instance of StampDefinitionBindingElementDTO to be compared - /// Boolean - public bool Equals(StampDefinitionBindingElementDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.IdElement == input.IdElement || - (this.IdElement != null && - this.IdElement.Equals(input.IdElement)) - ) && - ( - this.ElementProperty == input.ElementProperty || - (this.ElementProperty != null && - this.ElementProperty.Equals(input.ElementProperty)) - ) && - ( - this.BindingDescription == input.BindingDescription || - (this.BindingDescription != null && - this.BindingDescription.Equals(input.BindingDescription)) - ) && - ( - this.FieldBinding == input.FieldBinding || - (this.FieldBinding != null && - this.FieldBinding.Equals(input.FieldBinding)) - ) && - ( - this.DefaultValue == input.DefaultValue || - (this.DefaultValue != null && - this.DefaultValue.Equals(input.DefaultValue)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.IdElement != null) - hashCode = hashCode * 59 + this.IdElement.GetHashCode(); - if (this.ElementProperty != null) - hashCode = hashCode * 59 + this.ElementProperty.GetHashCode(); - if (this.BindingDescription != null) - hashCode = hashCode * 59 + this.BindingDescription.GetHashCode(); - if (this.FieldBinding != null) - hashCode = hashCode * 59 + this.FieldBinding.GetHashCode(); - if (this.DefaultValue != null) - hashCode = hashCode * 59 + this.DefaultValue.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/StampDefinitionDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/StampDefinitionDTO.cs deleted file mode 100644 index 1ffec0b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/StampDefinitionDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of stamp - /// - [DataContract] - public partial class StampDefinitionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// Description. - /// Is Resizable.. - /// Indicates if the stamp definition must be removed after applied. - /// Xaml string for the stamp.. - /// Document type of stamp.. - /// List of binding for the stamp.. - public StampDefinitionDTO(string id = default(string), string stampName = default(string), string stampDescription = default(string), bool? isResizable = default(bool?), bool? removeAfterApplied = default(bool?), string xaml = default(string), int? dmTipidocumentoId = default(int?), List bindings = default(List)) - { - this.Id = id; - this.StampName = stampName; - this.StampDescription = stampDescription; - this.IsResizable = isResizable; - this.RemoveAfterApplied = removeAfterApplied; - this.Xaml = xaml; - this.DmTipidocumentoId = dmTipidocumentoId; - this.Bindings = bindings; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="stampName", EmitDefaultValue=false)] - public string StampName { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="stampDescription", EmitDefaultValue=false)] - public string StampDescription { get; set; } - - /// - /// Is Resizable. - /// - /// Is Resizable. - [DataMember(Name="isResizable", EmitDefaultValue=false)] - public bool? IsResizable { get; set; } - - /// - /// Indicates if the stamp definition must be removed after applied - /// - /// Indicates if the stamp definition must be removed after applied - [DataMember(Name="removeAfterApplied", EmitDefaultValue=false)] - public bool? RemoveAfterApplied { get; set; } - - /// - /// Xaml string for the stamp. - /// - /// Xaml string for the stamp. - [DataMember(Name="xaml", EmitDefaultValue=false)] - public string Xaml { get; set; } - - /// - /// Document type of stamp. - /// - /// Document type of stamp. - [DataMember(Name="dmTipidocumentoId", EmitDefaultValue=false)] - public int? DmTipidocumentoId { get; set; } - - /// - /// List of binding for the stamp. - /// - /// List of binding for the stamp. - [DataMember(Name="bindings", EmitDefaultValue=false)] - public List Bindings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StampDefinitionDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" StampName: ").Append(StampName).Append("\n"); - sb.Append(" StampDescription: ").Append(StampDescription).Append("\n"); - sb.Append(" IsResizable: ").Append(IsResizable).Append("\n"); - sb.Append(" RemoveAfterApplied: ").Append(RemoveAfterApplied).Append("\n"); - sb.Append(" Xaml: ").Append(Xaml).Append("\n"); - sb.Append(" DmTipidocumentoId: ").Append(DmTipidocumentoId).Append("\n"); - sb.Append(" Bindings: ").Append(Bindings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StampDefinitionDTO); - } - - /// - /// Returns true if StampDefinitionDTO instances are equal - /// - /// Instance of StampDefinitionDTO to be compared - /// Boolean - public bool Equals(StampDefinitionDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.StampName == input.StampName || - (this.StampName != null && - this.StampName.Equals(input.StampName)) - ) && - ( - this.StampDescription == input.StampDescription || - (this.StampDescription != null && - this.StampDescription.Equals(input.StampDescription)) - ) && - ( - this.IsResizable == input.IsResizable || - (this.IsResizable != null && - this.IsResizable.Equals(input.IsResizable)) - ) && - ( - this.RemoveAfterApplied == input.RemoveAfterApplied || - (this.RemoveAfterApplied != null && - this.RemoveAfterApplied.Equals(input.RemoveAfterApplied)) - ) && - ( - this.Xaml == input.Xaml || - (this.Xaml != null && - this.Xaml.Equals(input.Xaml)) - ) && - ( - this.DmTipidocumentoId == input.DmTipidocumentoId || - (this.DmTipidocumentoId != null && - this.DmTipidocumentoId.Equals(input.DmTipidocumentoId)) - ) && - ( - this.Bindings == input.Bindings || - this.Bindings != null && - this.Bindings.SequenceEqual(input.Bindings) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.StampName != null) - hashCode = hashCode * 59 + this.StampName.GetHashCode(); - if (this.StampDescription != null) - hashCode = hashCode * 59 + this.StampDescription.GetHashCode(); - if (this.IsResizable != null) - hashCode = hashCode * 59 + this.IsResizable.GetHashCode(); - if (this.RemoveAfterApplied != null) - hashCode = hashCode * 59 + this.RemoveAfterApplied.GetHashCode(); - if (this.Xaml != null) - hashCode = hashCode * 59 + this.Xaml.GetHashCode(); - if (this.DmTipidocumentoId != null) - hashCode = hashCode * 59 + this.DmTipidocumentoId.GetHashCode(); - if (this.Bindings != null) - hashCode = hashCode * 59 + this.Bindings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/StampSearchFilterDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/StampSearchFilterDto.cs deleted file mode 100644 index 91d07c3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/StampSearchFilterDto.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// StampSearchFilterDto - /// - [DataContract] - public partial class StampSearchFilterDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// stampInstanceApplied. - /// stampDefinitionId. - public StampSearchFilterDto(int? stampInstanceApplied = default(int?), string stampDefinitionId = default(string)) - { - this.StampInstanceApplied = stampInstanceApplied; - this.StampDefinitionId = stampDefinitionId; - } - - /// - /// Gets or Sets StampInstanceApplied - /// - [DataMember(Name="stampInstanceApplied", EmitDefaultValue=false)] - public int? StampInstanceApplied { get; set; } - - /// - /// Gets or Sets StampDefinitionId - /// - [DataMember(Name="stampDefinitionId", EmitDefaultValue=false)] - public string StampDefinitionId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StampSearchFilterDto {\n"); - sb.Append(" StampInstanceApplied: ").Append(StampInstanceApplied).Append("\n"); - sb.Append(" StampDefinitionId: ").Append(StampDefinitionId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StampSearchFilterDto); - } - - /// - /// Returns true if StampSearchFilterDto instances are equal - /// - /// Instance of StampSearchFilterDto to be compared - /// Boolean - public bool Equals(StampSearchFilterDto input) - { - if (input == null) - return false; - - return - ( - this.StampInstanceApplied == input.StampInstanceApplied || - (this.StampInstanceApplied != null && - this.StampInstanceApplied.Equals(input.StampInstanceApplied)) - ) && - ( - this.StampDefinitionId == input.StampDefinitionId || - (this.StampDefinitionId != null && - this.StampDefinitionId.Equals(input.StampDefinitionId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.StampInstanceApplied != null) - hashCode = hashCode * 59 + this.StampInstanceApplied.GetHashCode(); - if (this.StampDefinitionId != null) - hashCode = hashCode * 59 + this.StampDefinitionId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/StampsInstanceDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/StampsInstanceDTO.cs deleted file mode 100644 index d9d740f..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/StampsInstanceDTO.cs +++ /dev/null @@ -1,363 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class for stamp instance object - /// - [DataContract] - public partial class StampsInstanceDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Id for stamp.. - /// Horizontal position (X) of the stamp. - /// Vertical position (Y) for stamp. - /// Horizontal dimension for stamp.. - /// Vertical dimension for stamp. - /// Page index for stamp.. - /// Stamp definition Id.. - /// List of possibile binding value.. - /// Xaml of the stamp.. - /// Is resizable.. - /// Stamp must be removed after apply.. - /// Stamp name.. - /// Stamp description.. - /// Stamp is applied. - /// Stamp is a manual graphic. - public StampsInstanceDTO(string id = default(string), double? x = default(double?), double? y = default(double?), double? width = default(double?), double? height = default(double?), int? pageIndex = default(int?), string masterDefinitionId = default(string), List bindings = default(List), string xaml = default(string), bool? isResizable = default(bool?), bool? removeAfterApplied = default(bool?), string stampName = default(string), string stampDescription = default(string), bool? applied = default(bool?), bool? isManual = default(bool?)) - { - this.Id = id; - this.X = x; - this.Y = y; - this.Width = width; - this.Height = height; - this.PageIndex = pageIndex; - this.MasterDefinitionId = masterDefinitionId; - this.Bindings = bindings; - this.Xaml = xaml; - this.IsResizable = isResizable; - this.RemoveAfterApplied = removeAfterApplied; - this.StampName = stampName; - this.StampDescription = stampDescription; - this.Applied = applied; - this.IsManual = isManual; - } - - /// - /// Id for stamp. - /// - /// Id for stamp. - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Horizontal position (X) of the stamp - /// - /// Horizontal position (X) of the stamp - [DataMember(Name="x", EmitDefaultValue=false)] - public double? X { get; set; } - - /// - /// Vertical position (Y) for stamp - /// - /// Vertical position (Y) for stamp - [DataMember(Name="y", EmitDefaultValue=false)] - public double? Y { get; set; } - - /// - /// Horizontal dimension for stamp. - /// - /// Horizontal dimension for stamp. - [DataMember(Name="width", EmitDefaultValue=false)] - public double? Width { get; set; } - - /// - /// Vertical dimension for stamp - /// - /// Vertical dimension for stamp - [DataMember(Name="height", EmitDefaultValue=false)] - public double? Height { get; set; } - - /// - /// Page index for stamp. - /// - /// Page index for stamp. - [DataMember(Name="pageIndex", EmitDefaultValue=false)] - public int? PageIndex { get; set; } - - /// - /// Stamp definition Id. - /// - /// Stamp definition Id. - [DataMember(Name="masterDefinitionId", EmitDefaultValue=false)] - public string MasterDefinitionId { get; set; } - - /// - /// List of possibile binding value. - /// - /// List of possibile binding value. - [DataMember(Name="bindings", EmitDefaultValue=false)] - public List Bindings { get; set; } - - /// - /// Xaml of the stamp. - /// - /// Xaml of the stamp. - [DataMember(Name="xaml", EmitDefaultValue=false)] - public string Xaml { get; set; } - - /// - /// Is resizable. - /// - /// Is resizable. - [DataMember(Name="isResizable", EmitDefaultValue=false)] - public bool? IsResizable { get; set; } - - /// - /// Stamp must be removed after apply. - /// - /// Stamp must be removed after apply. - [DataMember(Name="removeAfterApplied", EmitDefaultValue=false)] - public bool? RemoveAfterApplied { get; set; } - - /// - /// Stamp name. - /// - /// Stamp name. - [DataMember(Name="stampName", EmitDefaultValue=false)] - public string StampName { get; set; } - - /// - /// Stamp description. - /// - /// Stamp description. - [DataMember(Name="stampDescription", EmitDefaultValue=false)] - public string StampDescription { get; set; } - - /// - /// Stamp is applied - /// - /// Stamp is applied - [DataMember(Name="applied", EmitDefaultValue=false)] - public bool? Applied { get; set; } - - /// - /// Stamp is a manual graphic - /// - /// Stamp is a manual graphic - [DataMember(Name="isManual", EmitDefaultValue=false)] - public bool? IsManual { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StampsInstanceDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" X: ").Append(X).Append("\n"); - sb.Append(" Y: ").Append(Y).Append("\n"); - sb.Append(" Width: ").Append(Width).Append("\n"); - sb.Append(" Height: ").Append(Height).Append("\n"); - sb.Append(" PageIndex: ").Append(PageIndex).Append("\n"); - sb.Append(" MasterDefinitionId: ").Append(MasterDefinitionId).Append("\n"); - sb.Append(" Bindings: ").Append(Bindings).Append("\n"); - sb.Append(" Xaml: ").Append(Xaml).Append("\n"); - sb.Append(" IsResizable: ").Append(IsResizable).Append("\n"); - sb.Append(" RemoveAfterApplied: ").Append(RemoveAfterApplied).Append("\n"); - sb.Append(" StampName: ").Append(StampName).Append("\n"); - sb.Append(" StampDescription: ").Append(StampDescription).Append("\n"); - sb.Append(" Applied: ").Append(Applied).Append("\n"); - sb.Append(" IsManual: ").Append(IsManual).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StampsInstanceDTO); - } - - /// - /// Returns true if StampsInstanceDTO instances are equal - /// - /// Instance of StampsInstanceDTO to be compared - /// Boolean - public bool Equals(StampsInstanceDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.X == input.X || - (this.X != null && - this.X.Equals(input.X)) - ) && - ( - this.Y == input.Y || - (this.Y != null && - this.Y.Equals(input.Y)) - ) && - ( - this.Width == input.Width || - (this.Width != null && - this.Width.Equals(input.Width)) - ) && - ( - this.Height == input.Height || - (this.Height != null && - this.Height.Equals(input.Height)) - ) && - ( - this.PageIndex == input.PageIndex || - (this.PageIndex != null && - this.PageIndex.Equals(input.PageIndex)) - ) && - ( - this.MasterDefinitionId == input.MasterDefinitionId || - (this.MasterDefinitionId != null && - this.MasterDefinitionId.Equals(input.MasterDefinitionId)) - ) && - ( - this.Bindings == input.Bindings || - this.Bindings != null && - this.Bindings.SequenceEqual(input.Bindings) - ) && - ( - this.Xaml == input.Xaml || - (this.Xaml != null && - this.Xaml.Equals(input.Xaml)) - ) && - ( - this.IsResizable == input.IsResizable || - (this.IsResizable != null && - this.IsResizable.Equals(input.IsResizable)) - ) && - ( - this.RemoveAfterApplied == input.RemoveAfterApplied || - (this.RemoveAfterApplied != null && - this.RemoveAfterApplied.Equals(input.RemoveAfterApplied)) - ) && - ( - this.StampName == input.StampName || - (this.StampName != null && - this.StampName.Equals(input.StampName)) - ) && - ( - this.StampDescription == input.StampDescription || - (this.StampDescription != null && - this.StampDescription.Equals(input.StampDescription)) - ) && - ( - this.Applied == input.Applied || - (this.Applied != null && - this.Applied.Equals(input.Applied)) - ) && - ( - this.IsManual == input.IsManual || - (this.IsManual != null && - this.IsManual.Equals(input.IsManual)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.X != null) - hashCode = hashCode * 59 + this.X.GetHashCode(); - if (this.Y != null) - hashCode = hashCode * 59 + this.Y.GetHashCode(); - if (this.Width != null) - hashCode = hashCode * 59 + this.Width.GetHashCode(); - if (this.Height != null) - hashCode = hashCode * 59 + this.Height.GetHashCode(); - if (this.PageIndex != null) - hashCode = hashCode * 59 + this.PageIndex.GetHashCode(); - if (this.MasterDefinitionId != null) - hashCode = hashCode * 59 + this.MasterDefinitionId.GetHashCode(); - if (this.Bindings != null) - hashCode = hashCode * 59 + this.Bindings.GetHashCode(); - if (this.Xaml != null) - hashCode = hashCode * 59 + this.Xaml.GetHashCode(); - if (this.IsResizable != null) - hashCode = hashCode * 59 + this.IsResizable.GetHashCode(); - if (this.RemoveAfterApplied != null) - hashCode = hashCode * 59 + this.RemoveAfterApplied.GetHashCode(); - if (this.StampName != null) - hashCode = hashCode * 59 + this.StampName.GetHashCode(); - if (this.StampDescription != null) - hashCode = hashCode * 59 + this.StampDescription.GetHashCode(); - if (this.Applied != null) - hashCode = hashCode * 59 + this.Applied.GetHashCode(); - if (this.IsManual != null) - hashCode = hashCode * 59 + this.IsManual.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/StampsInstanceValueDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/StampsInstanceValueDTO.cs deleted file mode 100644 index 57d2d80..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/StampsInstanceValueDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// StampsInstanceValueDTO - /// - [DataContract] - public partial class StampsInstanceValueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Id of the value.. - /// Id for the element.. - /// Property name.. - /// Value.. - public StampsInstanceValueDTO(string id = default(string), string idElement = default(string), string elementProperty = default(string), Object value = default(Object)) - { - this.Id = id; - this.IdElement = idElement; - this.ElementProperty = elementProperty; - this.Value = value; - } - - /// - /// Id of the value. - /// - /// Id of the value. - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Id for the element. - /// - /// Id for the element. - [DataMember(Name="idElement", EmitDefaultValue=false)] - public string IdElement { get; set; } - - /// - /// Property name. - /// - /// Property name. - [DataMember(Name="elementProperty", EmitDefaultValue=false)] - public string ElementProperty { get; set; } - - /// - /// Value. - /// - /// Value. - [DataMember(Name="value", EmitDefaultValue=false)] - public Object Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StampsInstanceValueDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IdElement: ").Append(IdElement).Append("\n"); - sb.Append(" ElementProperty: ").Append(ElementProperty).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StampsInstanceValueDTO); - } - - /// - /// Returns true if StampsInstanceValueDTO instances are equal - /// - /// Instance of StampsInstanceValueDTO to be compared - /// Boolean - public bool Equals(StampsInstanceValueDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.IdElement == input.IdElement || - (this.IdElement != null && - this.IdElement.Equals(input.IdElement)) - ) && - ( - this.ElementProperty == input.ElementProperty || - (this.ElementProperty != null && - this.ElementProperty.Equals(input.ElementProperty)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.IdElement != null) - hashCode = hashCode * 59 + this.IdElement.GetHashCode(); - if (this.ElementProperty != null) - hashCode = hashCode * 59 + this.ElementProperty.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/StateBaseDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/StateBaseDto.cs deleted file mode 100644 index 499a8df..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/StateBaseDto.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of state - /// - [DataContract] - public partial class StateBaseDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - /// Index of Icon. - /// If user can force the state. - public StateBaseDto(string id = default(string), string description = default(string), int? iconIndex = default(int?), bool? userCanForce = default(bool?)) - { - this.Id = id; - this.Description = description; - this.IconIndex = iconIndex; - this.UserCanForce = userCanForce; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Index of Icon - /// - /// Index of Icon - [DataMember(Name="iconIndex", EmitDefaultValue=false)] - public int? IconIndex { get; set; } - - /// - /// If user can force the state - /// - /// If user can force the state - [DataMember(Name="userCanForce", EmitDefaultValue=false)] - public bool? UserCanForce { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StateBaseDto {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IconIndex: ").Append(IconIndex).Append("\n"); - sb.Append(" UserCanForce: ").Append(UserCanForce).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StateBaseDto); - } - - /// - /// Returns true if StateBaseDto instances are equal - /// - /// Instance of StateBaseDto to be compared - /// Boolean - public bool Equals(StateBaseDto input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.IconIndex == input.IconIndex || - (this.IconIndex != null && - this.IconIndex.Equals(input.IconIndex)) - ) && - ( - this.UserCanForce == input.UserCanForce || - (this.UserCanForce != null && - this.UserCanForce.Equals(input.UserCanForce)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.IconIndex != null) - hashCode = hashCode * 59 + this.IconIndex.GetHashCode(); - if (this.UserCanForce != null) - hashCode = hashCode * 59 + this.UserCanForce.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/StateExceptionDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/StateExceptionDTO.cs deleted file mode 100644 index a045bf1..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/StateExceptionDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of exception state - /// - [DataContract] - public partial class StateExceptionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Message. - /// Possible values: 0: Generico 1: Modalità . - public StateExceptionDTO(string userMessage = default(string), int? exceptionCode = default(int?)) - { - this.UserMessage = userMessage; - this.ExceptionCode = exceptionCode; - } - - /// - /// Message - /// - /// Message - [DataMember(Name="userMessage", EmitDefaultValue=false)] - public string UserMessage { get; set; } - - /// - /// Possible values: 0: Generico 1: Modalità - /// - /// Possible values: 0: Generico 1: Modalità - [DataMember(Name="exceptionCode", EmitDefaultValue=false)] - public int? ExceptionCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StateExceptionDTO {\n"); - sb.Append(" UserMessage: ").Append(UserMessage).Append("\n"); - sb.Append(" ExceptionCode: ").Append(ExceptionCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StateExceptionDTO); - } - - /// - /// Returns true if StateExceptionDTO instances are equal - /// - /// Instance of StateExceptionDTO to be compared - /// Boolean - public bool Equals(StateExceptionDTO input) - { - if (input == null) - return false; - - return - ( - this.UserMessage == input.UserMessage || - (this.UserMessage != null && - this.UserMessage.Equals(input.UserMessage)) - ) && - ( - this.ExceptionCode == input.ExceptionCode || - (this.ExceptionCode != null && - this.ExceptionCode.Equals(input.ExceptionCode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.UserMessage != null) - hashCode = hashCode * 59 + this.UserMessage.GetHashCode(); - if (this.ExceptionCode != null) - hashCode = hashCode * 59 + this.ExceptionCode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/StateFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/StateFieldDTO.cs deleted file mode 100644 index 06b67bd..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/StateFieldDTO.cs +++ /dev/null @@ -1,149 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// State of document - /// - [DataContract] - public partial class StateFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected StateFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// State description. - /// State value. - public StateFieldDTO(string displayValue = default(string), string value = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "StateFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.DisplayValue = displayValue; - this.Value = value; - } - - /// - /// State description - /// - /// State description - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// State value - /// - /// State value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StateFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StateFieldDTO); - } - - /// - /// Returns true if StateFieldDTO instances are equal - /// - /// Instance of StateFieldDTO to be compared - /// Boolean - public bool Equals(StateFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/StringFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/StringFieldDTO.cs deleted file mode 100644 index 5aa5f60..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/StringFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// String value - /// - [DataContract] - public partial class StringFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected StringFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - public StringFieldDTO(string value = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "StringFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StringFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StringFieldDTO); - } - - /// - /// Returns true if StringFieldDTO instances are equal - /// - /// Instance of StringFieldDTO to be compared - /// Boolean - public bool Equals(StringFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/StringKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/StringKeyValueDTO.cs deleted file mode 100644 index b0b269a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/StringKeyValueDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// String key value - /// - [DataContract] - public partial class StringKeyValueDTO : GenericKeyValueDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected StringKeyValueDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - public StringKeyValueDTO(string value = default(string), string className = "StringKeyValueDTO", string key = default(string)) : base(className, key) - { - this.Value = value; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StringKeyValueDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StringKeyValueDTO); - } - - /// - /// Returns true if StringKeyValueDTO instances are equal - /// - /// Instance of StringKeyValueDTO to be compared - /// Boolean - public bool Equals(StringKeyValueDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/SubjectFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/SubjectFieldDTO.cs deleted file mode 100644 index f414a6e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/SubjectFieldDTO.cs +++ /dev/null @@ -1,149 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Subject of document - /// - [DataContract] - public partial class SubjectFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected SubjectFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Subject value. - /// Subject value max length. - public SubjectFieldDTO(string value = default(string), int? numMaxChar = default(int?), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "SubjectFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.NumMaxChar = numMaxChar; - } - - /// - /// Subject value - /// - /// Subject value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Subject value max length - /// - /// Subject value max length - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SubjectFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SubjectFieldDTO); - } - - /// - /// Returns true if SubjectFieldDTO instances are equal - /// - /// Instance of SubjectFieldDTO to be compared - /// Boolean - public bool Equals(SubjectFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskExitCodeDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskExitCodeDTO.cs deleted file mode 100644 index b6bf135..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskExitCodeDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Dto for task exit code definition - /// - [DataContract] - public partial class TaskExitCodeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Id of the exit code. - /// The value of the exit code. - /// Icon idex of the exit code. - /// Translated description in the user language. - /// Ids of taskwork eligible for this exitcode. - /// Is default exit code. - public TaskExitCodeDTO(int? id = default(int?), string value = default(string), int? icon = default(int?), string translatedDescription = default(string), List taskIds = default(List), bool? isDefault = default(bool?)) - { - this.Id = id; - this.Value = value; - this.Icon = icon; - this.TranslatedDescription = translatedDescription; - this.TaskIds = taskIds; - this.IsDefault = isDefault; - } - - /// - /// Id of the exit code - /// - /// Id of the exit code - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// The value of the exit code - /// - /// The value of the exit code - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Icon idex of the exit code - /// - /// Icon idex of the exit code - [DataMember(Name="icon", EmitDefaultValue=false)] - public int? Icon { get; set; } - - /// - /// Translated description in the user language - /// - /// Translated description in the user language - [DataMember(Name="translatedDescription", EmitDefaultValue=false)] - public string TranslatedDescription { get; set; } - - /// - /// Ids of taskwork eligible for this exitcode - /// - /// Ids of taskwork eligible for this exitcode - [DataMember(Name="taskIds", EmitDefaultValue=false)] - public List TaskIds { get; set; } - - /// - /// Is default exit code - /// - /// Is default exit code - [DataMember(Name="isDefault", EmitDefaultValue=false)] - public bool? IsDefault { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskExitCodeDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" Icon: ").Append(Icon).Append("\n"); - sb.Append(" TranslatedDescription: ").Append(TranslatedDescription).Append("\n"); - sb.Append(" TaskIds: ").Append(TaskIds).Append("\n"); - sb.Append(" IsDefault: ").Append(IsDefault).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskExitCodeDTO); - } - - /// - /// Returns true if TaskExitCodeDTO instances are equal - /// - /// Instance of TaskExitCodeDTO to be compared - /// Boolean - public bool Equals(TaskExitCodeDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && - ( - this.Icon == input.Icon || - (this.Icon != null && - this.Icon.Equals(input.Icon)) - ) && - ( - this.TranslatedDescription == input.TranslatedDescription || - (this.TranslatedDescription != null && - this.TranslatedDescription.Equals(input.TranslatedDescription)) - ) && - ( - this.TaskIds == input.TaskIds || - this.TaskIds != null && - this.TaskIds.SequenceEqual(input.TaskIds) - ) && - ( - this.IsDefault == input.IsDefault || - (this.IsDefault != null && - this.IsDefault.Equals(input.IsDefault)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.Icon != null) - hashCode = hashCode * 59 + this.Icon.GetHashCode(); - if (this.TranslatedDescription != null) - hashCode = hashCode * 59 + this.TranslatedDescription.GetHashCode(); - if (this.TaskIds != null) - hashCode = hashCode * 59 + this.TaskIds.GetHashCode(); - if (this.IsDefault != null) - hashCode = hashCode * 59 + this.IsDefault.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskInfoDTO.cs deleted file mode 100644 index dccec98..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskInfoDTO.cs +++ /dev/null @@ -1,329 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of task information - /// - [DataContract] - public partial class TaskInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Start Date. - /// End Date. - /// Expiry Date. - /// Take Charge Date. - /// Document Identifier. - /// Document Revision Number. - /// Task Identifier. - /// Task Name. - /// Task Description. - /// User Description. - /// Task Outcome. - /// Possible values: 0: Normale 1: Connessione 2: Processo 3: Pause 5: Task5 6: Documentazione 7: Chrono . - /// Possible values: 0: Concluso 1: Task_Attivo 2: Non_svolto . - public TaskInfoDTO(DateTime? startDate = default(DateTime?), DateTime? endDate = default(DateTime?), DateTime? expireDate = default(DateTime?), DateTime? takeChargeDate = default(DateTime?), int? systemId = default(int?), int? revision = default(int?), int? taskId = default(int?), string taskName = default(string), string taskDescription = default(string), string userCompleteName = default(string), string outcome = default(string), int? kind = default(int?), int? state = default(int?)) - { - this.StartDate = startDate; - this.EndDate = endDate; - this.ExpireDate = expireDate; - this.TakeChargeDate = takeChargeDate; - this.SystemId = systemId; - this.Revision = revision; - this.TaskId = taskId; - this.TaskName = taskName; - this.TaskDescription = taskDescription; - this.UserCompleteName = userCompleteName; - this.Outcome = outcome; - this.Kind = kind; - this.State = state; - } - - /// - /// Start Date - /// - /// Start Date - [DataMember(Name="startDate", EmitDefaultValue=false)] - public DateTime? StartDate { get; set; } - - /// - /// End Date - /// - /// End Date - [DataMember(Name="endDate", EmitDefaultValue=false)] - public DateTime? EndDate { get; set; } - - /// - /// Expiry Date - /// - /// Expiry Date - [DataMember(Name="expireDate", EmitDefaultValue=false)] - public DateTime? ExpireDate { get; set; } - - /// - /// Take Charge Date - /// - /// Take Charge Date - [DataMember(Name="takeChargeDate", EmitDefaultValue=false)] - public DateTime? TakeChargeDate { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="systemId", EmitDefaultValue=false)] - public int? SystemId { get; set; } - - /// - /// Document Revision Number - /// - /// Document Revision Number - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Task Identifier - /// - /// Task Identifier - [DataMember(Name="taskId", EmitDefaultValue=false)] - public int? TaskId { get; set; } - - /// - /// Task Name - /// - /// Task Name - [DataMember(Name="taskName", EmitDefaultValue=false)] - public string TaskName { get; set; } - - /// - /// Task Description - /// - /// Task Description - [DataMember(Name="taskDescription", EmitDefaultValue=false)] - public string TaskDescription { get; set; } - - /// - /// User Description - /// - /// User Description - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Task Outcome - /// - /// Task Outcome - [DataMember(Name="outcome", EmitDefaultValue=false)] - public string Outcome { get; set; } - - /// - /// Possible values: 0: Normale 1: Connessione 2: Processo 3: Pause 5: Task5 6: Documentazione 7: Chrono - /// - /// Possible values: 0: Normale 1: Connessione 2: Processo 3: Pause 5: Task5 6: Documentazione 7: Chrono - [DataMember(Name="kind", EmitDefaultValue=false)] - public int? Kind { get; set; } - - /// - /// Possible values: 0: Concluso 1: Task_Attivo 2: Non_svolto - /// - /// Possible values: 0: Concluso 1: Task_Attivo 2: Non_svolto - [DataMember(Name="state", EmitDefaultValue=false)] - public int? State { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskInfoDTO {\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" ExpireDate: ").Append(ExpireDate).Append("\n"); - sb.Append(" TakeChargeDate: ").Append(TakeChargeDate).Append("\n"); - sb.Append(" SystemId: ").Append(SystemId).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" TaskId: ").Append(TaskId).Append("\n"); - sb.Append(" TaskName: ").Append(TaskName).Append("\n"); - sb.Append(" TaskDescription: ").Append(TaskDescription).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" Outcome: ").Append(Outcome).Append("\n"); - sb.Append(" Kind: ").Append(Kind).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskInfoDTO); - } - - /// - /// Returns true if TaskInfoDTO instances are equal - /// - /// Instance of TaskInfoDTO to be compared - /// Boolean - public bool Equals(TaskInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && - ( - this.ExpireDate == input.ExpireDate || - (this.ExpireDate != null && - this.ExpireDate.Equals(input.ExpireDate)) - ) && - ( - this.TakeChargeDate == input.TakeChargeDate || - (this.TakeChargeDate != null && - this.TakeChargeDate.Equals(input.TakeChargeDate)) - ) && - ( - this.SystemId == input.SystemId || - (this.SystemId != null && - this.SystemId.Equals(input.SystemId)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.TaskId == input.TaskId || - (this.TaskId != null && - this.TaskId.Equals(input.TaskId)) - ) && - ( - this.TaskName == input.TaskName || - (this.TaskName != null && - this.TaskName.Equals(input.TaskName)) - ) && - ( - this.TaskDescription == input.TaskDescription || - (this.TaskDescription != null && - this.TaskDescription.Equals(input.TaskDescription)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.Outcome == input.Outcome || - (this.Outcome != null && - this.Outcome.Equals(input.Outcome)) - ) && - ( - this.Kind == input.Kind || - (this.Kind != null && - this.Kind.Equals(input.Kind)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.ExpireDate != null) - hashCode = hashCode * 59 + this.ExpireDate.GetHashCode(); - if (this.TakeChargeDate != null) - hashCode = hashCode * 59 + this.TakeChargeDate.GetHashCode(); - if (this.SystemId != null) - hashCode = hashCode * 59 + this.SystemId.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.TaskId != null) - hashCode = hashCode * 59 + this.TaskId.GetHashCode(); - if (this.TaskName != null) - hashCode = hashCode * 59 + this.TaskName.GetHashCode(); - if (this.TaskDescription != null) - hashCode = hashCode * 59 + this.TaskDescription.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.Outcome != null) - hashCode = hashCode * 59 + this.Outcome.GetHashCode(); - if (this.Kind != null) - hashCode = hashCode * 59 + this.Kind.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskLayoutAssociationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskLayoutAssociationDTO.cs deleted file mode 100644 index 5e1558d..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskLayoutAssociationDTO.cs +++ /dev/null @@ -1,189 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TaskLayoutAssociationDTO - /// - [DataContract] - public partial class TaskLayoutAssociationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// taskWorkExternalId. - /// workflowId. - /// Possible values: 0: WorkflowAssociation 1: TaskWorkAssociation . - /// taskLayoutId. - public TaskLayoutAssociationDTO(int? id = default(int?), string taskWorkExternalId = default(string), int? workflowId = default(int?), int? associationType = default(int?), int? taskLayoutId = default(int?)) - { - this.Id = id; - this.TaskWorkExternalId = taskWorkExternalId; - this.WorkflowId = workflowId; - this.AssociationType = associationType; - this.TaskLayoutId = taskLayoutId; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or Sets TaskWorkExternalId - /// - [DataMember(Name="taskWorkExternalId", EmitDefaultValue=false)] - public string TaskWorkExternalId { get; set; } - - /// - /// Gets or Sets WorkflowId - /// - [DataMember(Name="workflowId", EmitDefaultValue=false)] - public int? WorkflowId { get; set; } - - /// - /// Possible values: 0: WorkflowAssociation 1: TaskWorkAssociation - /// - /// Possible values: 0: WorkflowAssociation 1: TaskWorkAssociation - [DataMember(Name="associationType", EmitDefaultValue=false)] - public int? AssociationType { get; set; } - - /// - /// Gets or Sets TaskLayoutId - /// - [DataMember(Name="taskLayoutId", EmitDefaultValue=false)] - public int? TaskLayoutId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskLayoutAssociationDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" TaskWorkExternalId: ").Append(TaskWorkExternalId).Append("\n"); - sb.Append(" WorkflowId: ").Append(WorkflowId).Append("\n"); - sb.Append(" AssociationType: ").Append(AssociationType).Append("\n"); - sb.Append(" TaskLayoutId: ").Append(TaskLayoutId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskLayoutAssociationDTO); - } - - /// - /// Returns true if TaskLayoutAssociationDTO instances are equal - /// - /// Instance of TaskLayoutAssociationDTO to be compared - /// Boolean - public bool Equals(TaskLayoutAssociationDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.TaskWorkExternalId == input.TaskWorkExternalId || - (this.TaskWorkExternalId != null && - this.TaskWorkExternalId.Equals(input.TaskWorkExternalId)) - ) && - ( - this.WorkflowId == input.WorkflowId || - (this.WorkflowId != null && - this.WorkflowId.Equals(input.WorkflowId)) - ) && - ( - this.AssociationType == input.AssociationType || - (this.AssociationType != null && - this.AssociationType.Equals(input.AssociationType)) - ) && - ( - this.TaskLayoutId == input.TaskLayoutId || - (this.TaskLayoutId != null && - this.TaskLayoutId.Equals(input.TaskLayoutId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.TaskWorkExternalId != null) - hashCode = hashCode * 59 + this.TaskWorkExternalId.GetHashCode(); - if (this.WorkflowId != null) - hashCode = hashCode * 59 + this.WorkflowId.GetHashCode(); - if (this.AssociationType != null) - hashCode = hashCode * 59 + this.AssociationType.GetHashCode(); - if (this.TaskLayoutId != null) - hashCode = hashCode * 59 + this.TaskLayoutId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskLayoutDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskLayoutDTO.cs deleted file mode 100644 index 0a38cd3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskLayoutDTO.cs +++ /dev/null @@ -1,312 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of task layout - /// - [DataContract] - public partial class TaskLayoutDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// Author Identifier. - /// Author Name. - /// Creation Date. - /// Details. - /// Association Fields. - /// Users. - /// Task Layout is of system. - /// Priority. - /// Layout Identifier. - /// Task Layout is user layout. - public TaskLayoutDTO(int? id = default(int?), string name = default(string), int? author = default(int?), string authorCompleteName = default(string), DateTime? creationDate = default(DateTime?), List details = default(List), List associations = default(List), List users = default(List), bool? isSystem = default(bool?), int? priority = default(int?), int? idLayout = default(int?), bool? isUser = default(bool?)) - { - this.Id = id; - this.Name = name; - this.Author = author; - this.AuthorCompleteName = authorCompleteName; - this.CreationDate = creationDate; - this.Details = details; - this.Associations = associations; - this.Users = users; - this.IsSystem = isSystem; - this.Priority = priority; - this.IdLayout = idLayout; - this.IsUser = isUser; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Author Identifier - /// - /// Author Identifier - [DataMember(Name="author", EmitDefaultValue=false)] - public int? Author { get; set; } - - /// - /// Author Name - /// - /// Author Name - [DataMember(Name="authorCompleteName", EmitDefaultValue=false)] - public string AuthorCompleteName { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Details - /// - /// Details - [DataMember(Name="details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Association Fields - /// - /// Association Fields - [DataMember(Name="associations", EmitDefaultValue=false)] - public List Associations { get; set; } - - /// - /// Users - /// - /// Users - [DataMember(Name="users", EmitDefaultValue=false)] - public List Users { get; set; } - - /// - /// Task Layout is of system - /// - /// Task Layout is of system - [DataMember(Name="isSystem", EmitDefaultValue=false)] - public bool? IsSystem { get; set; } - - /// - /// Priority - /// - /// Priority - [DataMember(Name="priority", EmitDefaultValue=false)] - public int? Priority { get; set; } - - /// - /// Layout Identifier - /// - /// Layout Identifier - [DataMember(Name="idLayout", EmitDefaultValue=false)] - public int? IdLayout { get; set; } - - /// - /// Task Layout is user layout - /// - /// Task Layout is user layout - [DataMember(Name="isUser", EmitDefaultValue=false)] - public bool? IsUser { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskLayoutDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Author: ").Append(Author).Append("\n"); - sb.Append(" AuthorCompleteName: ").Append(AuthorCompleteName).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" Associations: ").Append(Associations).Append("\n"); - sb.Append(" Users: ").Append(Users).Append("\n"); - sb.Append(" IsSystem: ").Append(IsSystem).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" IdLayout: ").Append(IdLayout).Append("\n"); - sb.Append(" IsUser: ").Append(IsUser).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskLayoutDTO); - } - - /// - /// Returns true if TaskLayoutDTO instances are equal - /// - /// Instance of TaskLayoutDTO to be compared - /// Boolean - public bool Equals(TaskLayoutDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Author == input.Author || - (this.Author != null && - this.Author.Equals(input.Author)) - ) && - ( - this.AuthorCompleteName == input.AuthorCompleteName || - (this.AuthorCompleteName != null && - this.AuthorCompleteName.Equals(input.AuthorCompleteName)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && - ( - this.Associations == input.Associations || - this.Associations != null && - this.Associations.SequenceEqual(input.Associations) - ) && - ( - this.Users == input.Users || - this.Users != null && - this.Users.SequenceEqual(input.Users) - ) && - ( - this.IsSystem == input.IsSystem || - (this.IsSystem != null && - this.IsSystem.Equals(input.IsSystem)) - ) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && - ( - this.IdLayout == input.IdLayout || - (this.IdLayout != null && - this.IdLayout.Equals(input.IdLayout)) - ) && - ( - this.IsUser == input.IsUser || - (this.IsUser != null && - this.IsUser.Equals(input.IsUser)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Author != null) - hashCode = hashCode * 59 + this.Author.GetHashCode(); - if (this.AuthorCompleteName != null) - hashCode = hashCode * 59 + this.AuthorCompleteName.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.Associations != null) - hashCode = hashCode * 59 + this.Associations.GetHashCode(); - if (this.Users != null) - hashCode = hashCode * 59 + this.Users.GetHashCode(); - if (this.IsSystem != null) - hashCode = hashCode * 59 + this.IsSystem.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.IdLayout != null) - hashCode = hashCode * 59 + this.IdLayout.GetHashCode(); - if (this.IsUser != null) - hashCode = hashCode * 59 + this.IsUser.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskLayoutDetailDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskLayoutDetailDTO.cs deleted file mode 100644 index 0cc27f7..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskLayoutDetailDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of task layout - /// - [DataContract] - public partial class TaskLayoutDetailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Item Identifier. - /// X Position. - /// Y Position. - /// Width. - /// Heigth. - /// Instance Identifier. - /// Task Layout Identifier. - public TaskLayoutDetailDTO(int? id = default(int?), string elementId = default(string), int? x = default(int?), int? y = default(int?), int? w = default(int?), int? h = default(int?), string instanceId = default(string), int? taskLayoutId = default(int?)) - { - this.Id = id; - this.ElementId = elementId; - this.X = x; - this.Y = y; - this.W = w; - this.H = h; - this.InstanceId = instanceId; - this.TaskLayoutId = taskLayoutId; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Item Identifier - /// - /// Item Identifier - [DataMember(Name="elementId", EmitDefaultValue=false)] - public string ElementId { get; set; } - - /// - /// X Position - /// - /// X Position - [DataMember(Name="x", EmitDefaultValue=false)] - public int? X { get; set; } - - /// - /// Y Position - /// - /// Y Position - [DataMember(Name="y", EmitDefaultValue=false)] - public int? Y { get; set; } - - /// - /// Width - /// - /// Width - [DataMember(Name="w", EmitDefaultValue=false)] - public int? W { get; set; } - - /// - /// Heigth - /// - /// Heigth - [DataMember(Name="h", EmitDefaultValue=false)] - public int? H { get; set; } - - /// - /// Instance Identifier - /// - /// Instance Identifier - [DataMember(Name="instanceId", EmitDefaultValue=false)] - public string InstanceId { get; set; } - - /// - /// Task Layout Identifier - /// - /// Task Layout Identifier - [DataMember(Name="taskLayoutId", EmitDefaultValue=false)] - public int? TaskLayoutId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskLayoutDetailDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ElementId: ").Append(ElementId).Append("\n"); - sb.Append(" X: ").Append(X).Append("\n"); - sb.Append(" Y: ").Append(Y).Append("\n"); - sb.Append(" W: ").Append(W).Append("\n"); - sb.Append(" H: ").Append(H).Append("\n"); - sb.Append(" InstanceId: ").Append(InstanceId).Append("\n"); - sb.Append(" TaskLayoutId: ").Append(TaskLayoutId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskLayoutDetailDTO); - } - - /// - /// Returns true if TaskLayoutDetailDTO instances are equal - /// - /// Instance of TaskLayoutDetailDTO to be compared - /// Boolean - public bool Equals(TaskLayoutDetailDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ElementId == input.ElementId || - (this.ElementId != null && - this.ElementId.Equals(input.ElementId)) - ) && - ( - this.X == input.X || - (this.X != null && - this.X.Equals(input.X)) - ) && - ( - this.Y == input.Y || - (this.Y != null && - this.Y.Equals(input.Y)) - ) && - ( - this.W == input.W || - (this.W != null && - this.W.Equals(input.W)) - ) && - ( - this.H == input.H || - (this.H != null && - this.H.Equals(input.H)) - ) && - ( - this.InstanceId == input.InstanceId || - (this.InstanceId != null && - this.InstanceId.Equals(input.InstanceId)) - ) && - ( - this.TaskLayoutId == input.TaskLayoutId || - (this.TaskLayoutId != null && - this.TaskLayoutId.Equals(input.TaskLayoutId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ElementId != null) - hashCode = hashCode * 59 + this.ElementId.GetHashCode(); - if (this.X != null) - hashCode = hashCode * 59 + this.X.GetHashCode(); - if (this.Y != null) - hashCode = hashCode * 59 + this.Y.GetHashCode(); - if (this.W != null) - hashCode = hashCode * 59 + this.W.GetHashCode(); - if (this.H != null) - hashCode = hashCode * 59 + this.H.GetHashCode(); - if (this.InstanceId != null) - hashCode = hashCode * 59 + this.InstanceId.GetHashCode(); - if (this.TaskLayoutId != null) - hashCode = hashCode * 59 + this.TaskLayoutId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskPreviewRequestDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskPreviewRequestDto.cs deleted file mode 100644 index c4228bf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskPreviewRequestDto.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TaskPreviewRequestDto - /// - [DataContract] - public partial class TaskPreviewRequestDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// dmTaskworkId. - /// dmProcessDocId. - public TaskPreviewRequestDto(int? dmTaskworkId = default(int?), int? dmProcessDocId = default(int?)) - { - this.DmTaskworkId = dmTaskworkId; - this.DmProcessDocId = dmProcessDocId; - } - - /// - /// Gets or Sets DmTaskworkId - /// - [DataMember(Name="dmTaskworkId", EmitDefaultValue=false)] - public int? DmTaskworkId { get; set; } - - /// - /// Gets or Sets DmProcessDocId - /// - [DataMember(Name="dmProcessDocId", EmitDefaultValue=false)] - public int? DmProcessDocId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskPreviewRequestDto {\n"); - sb.Append(" DmTaskworkId: ").Append(DmTaskworkId).Append("\n"); - sb.Append(" DmProcessDocId: ").Append(DmProcessDocId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskPreviewRequestDto); - } - - /// - /// Returns true if TaskPreviewRequestDto instances are equal - /// - /// Instance of TaskPreviewRequestDto to be compared - /// Boolean - public bool Equals(TaskPreviewRequestDto input) - { - if (input == null) - return false; - - return - ( - this.DmTaskworkId == input.DmTaskworkId || - (this.DmTaskworkId != null && - this.DmTaskworkId.Equals(input.DmTaskworkId)) - ) && - ( - this.DmProcessDocId == input.DmProcessDocId || - (this.DmProcessDocId != null && - this.DmProcessDocId.Equals(input.DmProcessDocId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DmTaskworkId != null) - hashCode = hashCode * 59 + this.DmTaskworkId.GetHashCode(); - if (this.DmProcessDocId != null) - hashCode = hashCode * 59 + this.DmProcessDocId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskV2PreviewRequestDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskV2PreviewRequestDto.cs deleted file mode 100644 index e2e5fdf..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskV2PreviewRequestDto.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TaskV2PreviewRequestDto - /// - [DataContract] - public partial class TaskV2PreviewRequestDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// docnumber. - /// dmMaskId. - public TaskV2PreviewRequestDto(int? docnumber = default(int?), string dmMaskId = default(string)) - { - this.Docnumber = docnumber; - this.DmMaskId = dmMaskId; - } - - /// - /// Gets or Sets Docnumber - /// - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Gets or Sets DmMaskId - /// - [DataMember(Name="dmMaskId", EmitDefaultValue=false)] - public string DmMaskId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskV2PreviewRequestDto {\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" DmMaskId: ").Append(DmMaskId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskV2PreviewRequestDto); - } - - /// - /// Returns true if TaskV2PreviewRequestDto instances are equal - /// - /// Instance of TaskV2PreviewRequestDto to be compared - /// Boolean - public bool Equals(TaskV2PreviewRequestDto input) - { - if (input == null) - return false; - - return - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.DmMaskId == input.DmMaskId || - (this.DmMaskId != null && - this.DmMaskId.Equals(input.DmMaskId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.DmMaskId != null) - hashCode = hashCode * 59 + this.DmMaskId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskV2SchemaRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskV2SchemaRequestDTO.cs deleted file mode 100644 index 35ce5e6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskV2SchemaRequestDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Schema request for task V2 - /// - [DataContract] - public partial class TaskV2SchemaRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Docnumber. - /// Mask identifier. - /// Allow edit profile locked fields. - /// Switched. - public TaskV2SchemaRequestDTO(int? docnumber = default(int?), string maskId = default(string), bool? allowEditProfileLockedFields = default(bool?), bool? switched = default(bool?)) - { - this.Docnumber = docnumber; - this.MaskId = maskId; - this.AllowEditProfileLockedFields = allowEditProfileLockedFields; - this.Switched = switched; - } - - /// - /// Docnumber - /// - /// Docnumber - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Mask identifier - /// - /// Mask identifier - [DataMember(Name="maskId", EmitDefaultValue=false)] - public string MaskId { get; set; } - - /// - /// Allow edit profile locked fields - /// - /// Allow edit profile locked fields - [DataMember(Name="allowEditProfileLockedFields", EmitDefaultValue=false)] - public bool? AllowEditProfileLockedFields { get; set; } - - /// - /// Switched - /// - /// Switched - [DataMember(Name="switched", EmitDefaultValue=false)] - public bool? Switched { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskV2SchemaRequestDTO {\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" MaskId: ").Append(MaskId).Append("\n"); - sb.Append(" AllowEditProfileLockedFields: ").Append(AllowEditProfileLockedFields).Append("\n"); - sb.Append(" Switched: ").Append(Switched).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskV2SchemaRequestDTO); - } - - /// - /// Returns true if TaskV2SchemaRequestDTO instances are equal - /// - /// Instance of TaskV2SchemaRequestDTO to be compared - /// Boolean - public bool Equals(TaskV2SchemaRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.MaskId == input.MaskId || - (this.MaskId != null && - this.MaskId.Equals(input.MaskId)) - ) && - ( - this.AllowEditProfileLockedFields == input.AllowEditProfileLockedFields || - (this.AllowEditProfileLockedFields != null && - this.AllowEditProfileLockedFields.Equals(input.AllowEditProfileLockedFields)) - ) && - ( - this.Switched == input.Switched || - (this.Switched != null && - this.Switched.Equals(input.Switched)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.MaskId != null) - hashCode = hashCode * 59 + this.MaskId.GetHashCode(); - if (this.AllowEditProfileLockedFields != null) - hashCode = hashCode * 59 + this.AllowEditProfileLockedFields.GetHashCode(); - if (this.Switched != null) - hashCode = hashCode * 59 + this.Switched.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkCloseRequest.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkCloseRequest.cs deleted file mode 100644 index eb55229..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkCloseRequest.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of taskwork closed - /// - [DataContract] - public partial class TaskWorkCloseRequest : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// List of Taskwork identifier. - /// Exit Code. - /// Password. - /// Note. - public TaskWorkCloseRequest(List taskWorkIds = default(List), string exitCode = default(string), string password = default(string), string note = default(string)) - { - this.TaskWorkIds = taskWorkIds; - this.ExitCode = exitCode; - this.Password = password; - this.Note = note; - } - - /// - /// List of Taskwork identifier - /// - /// List of Taskwork identifier - [DataMember(Name="taskWorkIds", EmitDefaultValue=false)] - public List TaskWorkIds { get; set; } - - /// - /// Exit Code - /// - /// Exit Code - [DataMember(Name="exitCode", EmitDefaultValue=false)] - public string ExitCode { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Note - /// - /// Note - [DataMember(Name="note", EmitDefaultValue=false)] - public string Note { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkCloseRequest {\n"); - sb.Append(" TaskWorkIds: ").Append(TaskWorkIds).Append("\n"); - sb.Append(" ExitCode: ").Append(ExitCode).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Note: ").Append(Note).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkCloseRequest); - } - - /// - /// Returns true if TaskWorkCloseRequest instances are equal - /// - /// Instance of TaskWorkCloseRequest to be compared - /// Boolean - public bool Equals(TaskWorkCloseRequest input) - { - if (input == null) - return false; - - return - ( - this.TaskWorkIds == input.TaskWorkIds || - this.TaskWorkIds != null && - this.TaskWorkIds.SequenceEqual(input.TaskWorkIds) - ) && - ( - this.ExitCode == input.ExitCode || - (this.ExitCode != null && - this.ExitCode.Equals(input.ExitCode)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.Note == input.Note || - (this.Note != null && - this.Note.Equals(input.Note)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.TaskWorkIds != null) - hashCode = hashCode * 59 + this.TaskWorkIds.GetHashCode(); - if (this.ExitCode != null) - hashCode = hashCode * 59 + this.ExitCode.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Note != null) - hashCode = hashCode * 59 + this.Note.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkCommandDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkCommandDTO.cs deleted file mode 100644 index 3ffbc91..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkCommandDTO.cs +++ /dev/null @@ -1,261 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Command operation for TaskWork - /// - [DataContract] - public partial class TaskWorkCommandDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Command Id.. - /// Process Id.. - /// TaskWork Id.. - /// Command to execute.. - /// Required.. - /// Asyncronous execution.. - /// Command description.. - /// Possible values: 0: Client 1: Server 2: OpenUrl . - /// Executed. - public TaskWorkCommandDTO(int? id = default(int?), int? processId = default(int?), int? taskWorkId = default(int?), string command = default(string), bool? isRequired = default(bool?), bool? isAsync = default(bool?), string description = default(string), int? side = default(int?), bool? isExecuted = default(bool?)) - { - this.Id = id; - this.ProcessId = processId; - this.TaskWorkId = taskWorkId; - this.Command = command; - this.IsRequired = isRequired; - this.IsAsync = isAsync; - this.Description = description; - this.Side = side; - this.IsExecuted = isExecuted; - } - - /// - /// Command Id. - /// - /// Command Id. - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Process Id. - /// - /// Process Id. - [DataMember(Name="processId", EmitDefaultValue=false)] - public int? ProcessId { get; set; } - - /// - /// TaskWork Id. - /// - /// TaskWork Id. - [DataMember(Name="taskWorkId", EmitDefaultValue=false)] - public int? TaskWorkId { get; set; } - - /// - /// Command to execute. - /// - /// Command to execute. - [DataMember(Name="command", EmitDefaultValue=false)] - public string Command { get; set; } - - /// - /// Required. - /// - /// Required. - [DataMember(Name="isRequired", EmitDefaultValue=false)] - public bool? IsRequired { get; set; } - - /// - /// Asyncronous execution. - /// - /// Asyncronous execution. - [DataMember(Name="isAsync", EmitDefaultValue=false)] - public bool? IsAsync { get; set; } - - /// - /// Command description. - /// - /// Command description. - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 0: Client 1: Server 2: OpenUrl - /// - /// Possible values: 0: Client 1: Server 2: OpenUrl - [DataMember(Name="side", EmitDefaultValue=false)] - public int? Side { get; set; } - - /// - /// Executed - /// - /// Executed - [DataMember(Name="isExecuted", EmitDefaultValue=false)] - public bool? IsExecuted { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkCommandDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ProcessId: ").Append(ProcessId).Append("\n"); - sb.Append(" TaskWorkId: ").Append(TaskWorkId).Append("\n"); - sb.Append(" Command: ").Append(Command).Append("\n"); - sb.Append(" IsRequired: ").Append(IsRequired).Append("\n"); - sb.Append(" IsAsync: ").Append(IsAsync).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Side: ").Append(Side).Append("\n"); - sb.Append(" IsExecuted: ").Append(IsExecuted).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkCommandDTO); - } - - /// - /// Returns true if TaskWorkCommandDTO instances are equal - /// - /// Instance of TaskWorkCommandDTO to be compared - /// Boolean - public bool Equals(TaskWorkCommandDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ProcessId == input.ProcessId || - (this.ProcessId != null && - this.ProcessId.Equals(input.ProcessId)) - ) && - ( - this.TaskWorkId == input.TaskWorkId || - (this.TaskWorkId != null && - this.TaskWorkId.Equals(input.TaskWorkId)) - ) && - ( - this.Command == input.Command || - (this.Command != null && - this.Command.Equals(input.Command)) - ) && - ( - this.IsRequired == input.IsRequired || - (this.IsRequired != null && - this.IsRequired.Equals(input.IsRequired)) - ) && - ( - this.IsAsync == input.IsAsync || - (this.IsAsync != null && - this.IsAsync.Equals(input.IsAsync)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Side == input.Side || - (this.Side != null && - this.Side.Equals(input.Side)) - ) && - ( - this.IsExecuted == input.IsExecuted || - (this.IsExecuted != null && - this.IsExecuted.Equals(input.IsExecuted)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ProcessId != null) - hashCode = hashCode * 59 + this.ProcessId.GetHashCode(); - if (this.TaskWorkId != null) - hashCode = hashCode * 59 + this.TaskWorkId.GetHashCode(); - if (this.Command != null) - hashCode = hashCode * 59 + this.Command.GetHashCode(); - if (this.IsRequired != null) - hashCode = hashCode * 59 + this.IsRequired.GetHashCode(); - if (this.IsAsync != null) - hashCode = hashCode * 59 + this.IsAsync.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Side != null) - hashCode = hashCode * 59 + this.Side.GetHashCode(); - if (this.IsExecuted != null) - hashCode = hashCode * 59 + this.IsExecuted.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkDTO.cs deleted file mode 100644 index d8ccd40..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkDTO.cs +++ /dev/null @@ -1,1400 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TaskWorkDTO - /// - [DataContract] - public partial class TaskWorkDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Process Identifier. - /// Workflow Identifier. - /// Notes. - /// Attachments. - /// Principal Document Identifier. - /// Principal Document Revision Number. - /// Start Date. - /// Task Name. - /// Description. - /// Author Identifier. - /// End Date. - /// Possible values: 0: Ended 1: Active 2: NotActive . - /// Expiration Date. - /// Possible values: 0: Read 1: Write 2: FromSecurity . - /// Task Node Identifier. - /// Possible values: 0: Standard 1: List 2: OrganizationChart . - /// Active the operation to insert a principal document. - /// Active the operation to update a principal document. - /// Active the operation to insert in folder a principal document. - /// Possible values: 0: Standard 1: Medium 2: High . - /// Model Identifier for operation to insert a principal document. - /// Possible values: 0: Standard 1: Connection 2: Process 3: Pause 5: Task5 6: Documentation 7: Chrono . - /// Execution Mode. - /// Smtp for mail notification. - /// Date of Automatic Feed. - /// Password request for the conclusion of the task. - /// Creating a new memo. - /// The task was read. - /// Execution mode in the case of shell operation. - /// Copy the file in the edit buffer. - /// Taking Charge Request. - /// Date of expiration of the task. - /// Task activation date. - /// Description of the professionals role selection operation. - /// Description of the operation of process variables setting. - /// Organization Chart Identifier. - /// Delegation Identifier. - /// Date of opening. - /// Exit State. - /// Group Task Identifier. - /// Organization Identifier associated with the original user.. - /// Identifier of Original User to delegation. - /// External Identifier. - /// It allows you to view and act on workflow master that you are endorsing undergoing workflow approval process. - /// It tells the workflow engine whether to proceed immediately to the conclusion of the task, or whether it should wait for all users who have been assigned the task have concluded their activities. - /// It allows to manage the operating instructions by means of an operation on the task. - /// Specifies whether the task description is html. - /// Descritpion for the dynamic mansion operation. - /// This flags enum indicates wich part is visible in the task. - /// Default exit state for the task. - /// Possible values: 0: NotEnabled 1: EnabledToEveryone 2: EnabledToSelected . - /// Possible values: 0: NotEnabled 1: EnabledToEveryone 2: EnabledToSelected . - /// Id of the translation for the name of the task. - /// Id of the translation for the description of the task. - /// Id of the translation for the task professional figures selection operation description. - /// Id of the translation for task set variables operation description. - /// Id of the translation for Html description of the task. - /// Id of the translation for task dynamic mansion selection operation. - /// Icon for the group. - /// Executers of the task. - /// Attachments part visibility. - /// Task details part visibility. - /// Profiles part visibility. - /// Notes part visibility. - /// History part visibility. - /// Instructions part visibility. - /// Show process command part visibility. - /// Variables part visibility. - /// Exit state part visibility. - /// Operations part visibility. - /// Name of the workflow. - /// Description of the workflow. - /// Details of the workflow. - /// The color of the workflow. - /// Show designer command part visibility. - public TaskWorkDTO(int? id = default(int?), int? processId = default(int?), int? workflowId = default(int?), bool? notes = default(bool?), bool? attachments = default(bool?), int? docnumber = default(int?), int? revision = default(int?), DateTime? startDate = default(DateTime?), string taskName = default(string), string taskDescription = default(string), int? user = default(int?), DateTime? endDate = default(DateTime?), int? state = default(int?), DateTime? expireDate = default(DateTime?), int? principalProfileSecurity = default(int?), int? nodeId = default(int?), int? userEnumSelection = default(int?), bool? newProfileInput = default(bool?), bool? profileEdit = default(bool?), bool? folderInsert = default(bool?), int? priority = default(int?), int? modelId = default(int?), int? taskType = default(int?), int? executionMode = default(int?), bool? mailNotification = default(bool?), DateTime? automaticTaskFeedDate = default(DateTime?), bool? passwordRequired = default(bool?), bool? newMemo = default(bool?), bool? readed = default(bool?), bool? asyncCommand = default(bool?), bool? editCopy = default(bool?), bool? takingChargeRequired = default(bool?), DateTime? taskDeadlineDate = default(DateTime?), DateTime? taskActivationDate = default(DateTime?), string professionalRoleSelectionDescription = default(string), string processVariablesSetDescription = default(string), int? organizationChartId = default(int?), int? delegationId = default(int?), DateTime? openedTaskDate = default(DateTime?), string exitState = default(string), string groupTaskId = default(string), int? organizationChartOriginalUserId = default(int?), int? originalUserId = default(int?), string externalTaskTypeId = default(string), bool? manageMaster = default(bool?), int? waitUserExecutionMode = default(int?), bool? manageInstruction = default(bool?), string htmlDescriptionEnabled = default(string), string dynamicMansionDescription = default(string), int? partsVisibility = default(int?), string defaultExitState = default(string), int? reassignMode = default(int?), int? autoAssignMode = default(int?), int? nameTranslationId = default(int?), int? descriptionTranslationId = default(int?), int? professionalRolesDescriptionTranslationId = default(int?), int? variablesDescriptionTranslationId = default(int?), int? htmlDescriptionTranslationId = default(int?), int? dynamicMansionDescriptionTranslationId = default(int?), bool? groupIcon = default(bool?), List executers = default(List), bool? attachmentsVisible = default(bool?), bool? detailsVisible = default(bool?), bool? profilesVisible = default(bool?), bool? notesVisible = default(bool?), bool? historyVisible = default(bool?), bool? instructionVisible = default(bool?), bool? showProcessVisible = default(bool?), bool? variablesVisible = default(bool?), bool? exitStateComboVisible = default(bool?), bool? operationsVisible = default(bool?), string workFlowName = default(string), string workFlowDescription = default(string), string workFlowDetails = default(string), int? workFlowColor = default(int?), bool? showDesignerVisible = default(bool?)) - { - this.Id = id; - this.ProcessId = processId; - this.WorkflowId = workflowId; - this.Notes = notes; - this.Attachments = attachments; - this.Docnumber = docnumber; - this.Revision = revision; - this.StartDate = startDate; - this.TaskName = taskName; - this.TaskDescription = taskDescription; - this.User = user; - this.EndDate = endDate; - this.State = state; - this.ExpireDate = expireDate; - this.PrincipalProfileSecurity = principalProfileSecurity; - this.NodeId = nodeId; - this.UserEnumSelection = userEnumSelection; - this.NewProfileInput = newProfileInput; - this.ProfileEdit = profileEdit; - this.FolderInsert = folderInsert; - this.Priority = priority; - this.ModelId = modelId; - this.TaskType = taskType; - this.ExecutionMode = executionMode; - this.MailNotification = mailNotification; - this.AutomaticTaskFeedDate = automaticTaskFeedDate; - this.PasswordRequired = passwordRequired; - this.NewMemo = newMemo; - this.Readed = readed; - this.AsyncCommand = asyncCommand; - this.EditCopy = editCopy; - this.TakingChargeRequired = takingChargeRequired; - this.TaskDeadlineDate = taskDeadlineDate; - this.TaskActivationDate = taskActivationDate; - this.ProfessionalRoleSelectionDescription = professionalRoleSelectionDescription; - this.ProcessVariablesSetDescription = processVariablesSetDescription; - this.OrganizationChartId = organizationChartId; - this.DelegationId = delegationId; - this.OpenedTaskDate = openedTaskDate; - this.ExitState = exitState; - this.GroupTaskId = groupTaskId; - this.OrganizationChartOriginalUserId = organizationChartOriginalUserId; - this.OriginalUserId = originalUserId; - this.ExternalTaskTypeId = externalTaskTypeId; - this.ManageMaster = manageMaster; - this.WaitUserExecutionMode = waitUserExecutionMode; - this.ManageInstruction = manageInstruction; - this.HtmlDescriptionEnabled = htmlDescriptionEnabled; - this.DynamicMansionDescription = dynamicMansionDescription; - this.PartsVisibility = partsVisibility; - this.DefaultExitState = defaultExitState; - this.ReassignMode = reassignMode; - this.AutoAssignMode = autoAssignMode; - this.NameTranslationId = nameTranslationId; - this.DescriptionTranslationId = descriptionTranslationId; - this.ProfessionalRolesDescriptionTranslationId = professionalRolesDescriptionTranslationId; - this.VariablesDescriptionTranslationId = variablesDescriptionTranslationId; - this.HtmlDescriptionTranslationId = htmlDescriptionTranslationId; - this.DynamicMansionDescriptionTranslationId = dynamicMansionDescriptionTranslationId; - this.GroupIcon = groupIcon; - this.Executers = executers; - this.AttachmentsVisible = attachmentsVisible; - this.DetailsVisible = detailsVisible; - this.ProfilesVisible = profilesVisible; - this.NotesVisible = notesVisible; - this.HistoryVisible = historyVisible; - this.InstructionVisible = instructionVisible; - this.ShowProcessVisible = showProcessVisible; - this.VariablesVisible = variablesVisible; - this.ExitStateComboVisible = exitStateComboVisible; - this.OperationsVisible = operationsVisible; - this.WorkFlowName = workFlowName; - this.WorkFlowDescription = workFlowDescription; - this.WorkFlowDetails = workFlowDetails; - this.WorkFlowColor = workFlowColor; - this.ShowDesignerVisible = showDesignerVisible; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Process Identifier - /// - /// Process Identifier - [DataMember(Name="processId", EmitDefaultValue=false)] - public int? ProcessId { get; set; } - - /// - /// Workflow Identifier - /// - /// Workflow Identifier - [DataMember(Name="workflowId", EmitDefaultValue=false)] - public int? WorkflowId { get; set; } - - /// - /// Notes - /// - /// Notes - [DataMember(Name="notes", EmitDefaultValue=false)] - public bool? Notes { get; set; } - - /// - /// Attachments - /// - /// Attachments - [DataMember(Name="attachments", EmitDefaultValue=false)] - public bool? Attachments { get; set; } - - /// - /// Principal Document Identifier - /// - /// Principal Document Identifier - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Principal Document Revision Number - /// - /// Principal Document Revision Number - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Start Date - /// - /// Start Date - [DataMember(Name="startDate", EmitDefaultValue=false)] - public DateTime? StartDate { get; set; } - - /// - /// Task Name - /// - /// Task Name - [DataMember(Name="taskName", EmitDefaultValue=false)] - public string TaskName { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="taskDescription", EmitDefaultValue=false)] - public string TaskDescription { get; set; } - - /// - /// Author Identifier - /// - /// Author Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// End Date - /// - /// End Date - [DataMember(Name="endDate", EmitDefaultValue=false)] - public DateTime? EndDate { get; set; } - - /// - /// Possible values: 0: Ended 1: Active 2: NotActive - /// - /// Possible values: 0: Ended 1: Active 2: NotActive - [DataMember(Name="state", EmitDefaultValue=false)] - public int? State { get; set; } - - /// - /// Expiration Date - /// - /// Expiration Date - [DataMember(Name="expireDate", EmitDefaultValue=false)] - public DateTime? ExpireDate { get; set; } - - /// - /// Possible values: 0: Read 1: Write 2: FromSecurity - /// - /// Possible values: 0: Read 1: Write 2: FromSecurity - [DataMember(Name="principalProfileSecurity", EmitDefaultValue=false)] - public int? PrincipalProfileSecurity { get; set; } - - /// - /// Task Node Identifier - /// - /// Task Node Identifier - [DataMember(Name="nodeId", EmitDefaultValue=false)] - public int? NodeId { get; set; } - - /// - /// Possible values: 0: Standard 1: List 2: OrganizationChart - /// - /// Possible values: 0: Standard 1: List 2: OrganizationChart - [DataMember(Name="userEnumSelection", EmitDefaultValue=false)] - public int? UserEnumSelection { get; set; } - - /// - /// Active the operation to insert a principal document - /// - /// Active the operation to insert a principal document - [DataMember(Name="newProfileInput", EmitDefaultValue=false)] - public bool? NewProfileInput { get; set; } - - /// - /// Active the operation to update a principal document - /// - /// Active the operation to update a principal document - [DataMember(Name="profileEdit", EmitDefaultValue=false)] - public bool? ProfileEdit { get; set; } - - /// - /// Active the operation to insert in folder a principal document - /// - /// Active the operation to insert in folder a principal document - [DataMember(Name="folderInsert", EmitDefaultValue=false)] - public bool? FolderInsert { get; set; } - - /// - /// Possible values: 0: Standard 1: Medium 2: High - /// - /// Possible values: 0: Standard 1: Medium 2: High - [DataMember(Name="priority", EmitDefaultValue=false)] - public int? Priority { get; set; } - - /// - /// Model Identifier for operation to insert a principal document - /// - /// Model Identifier for operation to insert a principal document - [DataMember(Name="modelId", EmitDefaultValue=false)] - public int? ModelId { get; set; } - - /// - /// Possible values: 0: Standard 1: Connection 2: Process 3: Pause 5: Task5 6: Documentation 7: Chrono - /// - /// Possible values: 0: Standard 1: Connection 2: Process 3: Pause 5: Task5 6: Documentation 7: Chrono - [DataMember(Name="taskType", EmitDefaultValue=false)] - public int? TaskType { get; set; } - - /// - /// Execution Mode - /// - /// Execution Mode - [DataMember(Name="executionMode", EmitDefaultValue=false)] - public int? ExecutionMode { get; set; } - - /// - /// Smtp for mail notification - /// - /// Smtp for mail notification - [DataMember(Name="mailNotification", EmitDefaultValue=false)] - public bool? MailNotification { get; set; } - - /// - /// Date of Automatic Feed - /// - /// Date of Automatic Feed - [DataMember(Name="automaticTaskFeedDate", EmitDefaultValue=false)] - public DateTime? AutomaticTaskFeedDate { get; set; } - - /// - /// Password request for the conclusion of the task - /// - /// Password request for the conclusion of the task - [DataMember(Name="passwordRequired", EmitDefaultValue=false)] - public bool? PasswordRequired { get; set; } - - /// - /// Creating a new memo - /// - /// Creating a new memo - [DataMember(Name="newMemo", EmitDefaultValue=false)] - public bool? NewMemo { get; set; } - - /// - /// The task was read - /// - /// The task was read - [DataMember(Name="readed", EmitDefaultValue=false)] - public bool? Readed { get; set; } - - /// - /// Execution mode in the case of shell operation - /// - /// Execution mode in the case of shell operation - [DataMember(Name="asyncCommand", EmitDefaultValue=false)] - public bool? AsyncCommand { get; set; } - - /// - /// Copy the file in the edit buffer - /// - /// Copy the file in the edit buffer - [DataMember(Name="editCopy", EmitDefaultValue=false)] - public bool? EditCopy { get; set; } - - /// - /// Taking Charge Request - /// - /// Taking Charge Request - [DataMember(Name="takingChargeRequired", EmitDefaultValue=false)] - public bool? TakingChargeRequired { get; set; } - - /// - /// Date of expiration of the task - /// - /// Date of expiration of the task - [DataMember(Name="taskDeadlineDate", EmitDefaultValue=false)] - public DateTime? TaskDeadlineDate { get; set; } - - /// - /// Task activation date - /// - /// Task activation date - [DataMember(Name="taskActivationDate", EmitDefaultValue=false)] - public DateTime? TaskActivationDate { get; set; } - - /// - /// Description of the professionals role selection operation - /// - /// Description of the professionals role selection operation - [DataMember(Name="professionalRoleSelectionDescription", EmitDefaultValue=false)] - public string ProfessionalRoleSelectionDescription { get; set; } - - /// - /// Description of the operation of process variables setting - /// - /// Description of the operation of process variables setting - [DataMember(Name="processVariablesSetDescription", EmitDefaultValue=false)] - public string ProcessVariablesSetDescription { get; set; } - - /// - /// Organization Chart Identifier - /// - /// Organization Chart Identifier - [DataMember(Name="organizationChartId", EmitDefaultValue=false)] - public int? OrganizationChartId { get; set; } - - /// - /// Delegation Identifier - /// - /// Delegation Identifier - [DataMember(Name="delegationId", EmitDefaultValue=false)] - public int? DelegationId { get; set; } - - /// - /// Date of opening - /// - /// Date of opening - [DataMember(Name="openedTaskDate", EmitDefaultValue=false)] - public DateTime? OpenedTaskDate { get; set; } - - /// - /// Exit State - /// - /// Exit State - [DataMember(Name="exitState", EmitDefaultValue=false)] - public string ExitState { get; set; } - - /// - /// Group Task Identifier - /// - /// Group Task Identifier - [DataMember(Name="groupTaskId", EmitDefaultValue=false)] - public string GroupTaskId { get; set; } - - /// - /// Organization Identifier associated with the original user. - /// - /// Organization Identifier associated with the original user. - [DataMember(Name="organizationChartOriginalUserId", EmitDefaultValue=false)] - public int? OrganizationChartOriginalUserId { get; set; } - - /// - /// Identifier of Original User to delegation - /// - /// Identifier of Original User to delegation - [DataMember(Name="originalUserId", EmitDefaultValue=false)] - public int? OriginalUserId { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalTaskTypeId", EmitDefaultValue=false)] - public string ExternalTaskTypeId { get; set; } - - /// - /// It allows you to view and act on workflow master that you are endorsing undergoing workflow approval process - /// - /// It allows you to view and act on workflow master that you are endorsing undergoing workflow approval process - [DataMember(Name="manageMaster", EmitDefaultValue=false)] - public bool? ManageMaster { get; set; } - - /// - /// It tells the workflow engine whether to proceed immediately to the conclusion of the task, or whether it should wait for all users who have been assigned the task have concluded their activities - /// - /// It tells the workflow engine whether to proceed immediately to the conclusion of the task, or whether it should wait for all users who have been assigned the task have concluded their activities - [DataMember(Name="waitUserExecutionMode", EmitDefaultValue=false)] - public int? WaitUserExecutionMode { get; set; } - - /// - /// It allows to manage the operating instructions by means of an operation on the task - /// - /// It allows to manage the operating instructions by means of an operation on the task - [DataMember(Name="manageInstruction", EmitDefaultValue=false)] - public bool? ManageInstruction { get; set; } - - /// - /// Specifies whether the task description is html - /// - /// Specifies whether the task description is html - [DataMember(Name="htmlDescriptionEnabled", EmitDefaultValue=false)] - public string HtmlDescriptionEnabled { get; set; } - - /// - /// Descritpion for the dynamic mansion operation - /// - /// Descritpion for the dynamic mansion operation - [DataMember(Name="dynamicMansionDescription", EmitDefaultValue=false)] - public string DynamicMansionDescription { get; set; } - - /// - /// This flags enum indicates wich part is visible in the task - /// - /// This flags enum indicates wich part is visible in the task - [DataMember(Name="partsVisibility", EmitDefaultValue=false)] - public int? PartsVisibility { get; set; } - - /// - /// Default exit state for the task - /// - /// Default exit state for the task - [DataMember(Name="defaultExitState", EmitDefaultValue=false)] - public string DefaultExitState { get; set; } - - /// - /// Possible values: 0: NotEnabled 1: EnabledToEveryone 2: EnabledToSelected - /// - /// Possible values: 0: NotEnabled 1: EnabledToEveryone 2: EnabledToSelected - [DataMember(Name="reassignMode", EmitDefaultValue=false)] - public int? ReassignMode { get; set; } - - /// - /// Possible values: 0: NotEnabled 1: EnabledToEveryone 2: EnabledToSelected - /// - /// Possible values: 0: NotEnabled 1: EnabledToEveryone 2: EnabledToSelected - [DataMember(Name="autoAssignMode", EmitDefaultValue=false)] - public int? AutoAssignMode { get; set; } - - /// - /// Id of the translation for the name of the task - /// - /// Id of the translation for the name of the task - [DataMember(Name="nameTranslationId", EmitDefaultValue=false)] - public int? NameTranslationId { get; set; } - - /// - /// Id of the translation for the description of the task - /// - /// Id of the translation for the description of the task - [DataMember(Name="descriptionTranslationId", EmitDefaultValue=false)] - public int? DescriptionTranslationId { get; set; } - - /// - /// Id of the translation for the task professional figures selection operation description - /// - /// Id of the translation for the task professional figures selection operation description - [DataMember(Name="professionalRolesDescriptionTranslationId", EmitDefaultValue=false)] - public int? ProfessionalRolesDescriptionTranslationId { get; set; } - - /// - /// Id of the translation for task set variables operation description - /// - /// Id of the translation for task set variables operation description - [DataMember(Name="variablesDescriptionTranslationId", EmitDefaultValue=false)] - public int? VariablesDescriptionTranslationId { get; set; } - - /// - /// Id of the translation for Html description of the task - /// - /// Id of the translation for Html description of the task - [DataMember(Name="htmlDescriptionTranslationId", EmitDefaultValue=false)] - public int? HtmlDescriptionTranslationId { get; set; } - - /// - /// Id of the translation for task dynamic mansion selection operation - /// - /// Id of the translation for task dynamic mansion selection operation - [DataMember(Name="dynamicMansionDescriptionTranslationId", EmitDefaultValue=false)] - public int? DynamicMansionDescriptionTranslationId { get; set; } - - /// - /// Icon for the group - /// - /// Icon for the group - [DataMember(Name="groupIcon", EmitDefaultValue=false)] - public bool? GroupIcon { get; set; } - - /// - /// Executers of the task - /// - /// Executers of the task - [DataMember(Name="executers", EmitDefaultValue=false)] - public List Executers { get; set; } - - /// - /// Attachments part visibility - /// - /// Attachments part visibility - [DataMember(Name="attachmentsVisible", EmitDefaultValue=false)] - public bool? AttachmentsVisible { get; set; } - - /// - /// Task details part visibility - /// - /// Task details part visibility - [DataMember(Name="detailsVisible", EmitDefaultValue=false)] - public bool? DetailsVisible { get; set; } - - /// - /// Profiles part visibility - /// - /// Profiles part visibility - [DataMember(Name="profilesVisible", EmitDefaultValue=false)] - public bool? ProfilesVisible { get; set; } - - /// - /// Notes part visibility - /// - /// Notes part visibility - [DataMember(Name="notesVisible", EmitDefaultValue=false)] - public bool? NotesVisible { get; set; } - - /// - /// History part visibility - /// - /// History part visibility - [DataMember(Name="historyVisible", EmitDefaultValue=false)] - public bool? HistoryVisible { get; set; } - - /// - /// Instructions part visibility - /// - /// Instructions part visibility - [DataMember(Name="instructionVisible", EmitDefaultValue=false)] - public bool? InstructionVisible { get; set; } - - /// - /// Show process command part visibility - /// - /// Show process command part visibility - [DataMember(Name="showProcessVisible", EmitDefaultValue=false)] - public bool? ShowProcessVisible { get; set; } - - /// - /// Variables part visibility - /// - /// Variables part visibility - [DataMember(Name="variablesVisible", EmitDefaultValue=false)] - public bool? VariablesVisible { get; set; } - - /// - /// Exit state part visibility - /// - /// Exit state part visibility - [DataMember(Name="exitStateComboVisible", EmitDefaultValue=false)] - public bool? ExitStateComboVisible { get; set; } - - /// - /// Operations part visibility - /// - /// Operations part visibility - [DataMember(Name="operationsVisible", EmitDefaultValue=false)] - public bool? OperationsVisible { get; set; } - - /// - /// Name of the workflow - /// - /// Name of the workflow - [DataMember(Name="workFlowName", EmitDefaultValue=false)] - public string WorkFlowName { get; set; } - - /// - /// Description of the workflow - /// - /// Description of the workflow - [DataMember(Name="workFlowDescription", EmitDefaultValue=false)] - public string WorkFlowDescription { get; set; } - - /// - /// Details of the workflow - /// - /// Details of the workflow - [DataMember(Name="workFlowDetails", EmitDefaultValue=false)] - public string WorkFlowDetails { get; set; } - - /// - /// The color of the workflow - /// - /// The color of the workflow - [DataMember(Name="workFlowColor", EmitDefaultValue=false)] - public int? WorkFlowColor { get; set; } - - /// - /// Show designer command part visibility - /// - /// Show designer command part visibility - [DataMember(Name="showDesignerVisible", EmitDefaultValue=false)] - public bool? ShowDesignerVisible { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ProcessId: ").Append(ProcessId).Append("\n"); - sb.Append(" WorkflowId: ").Append(WorkflowId).Append("\n"); - sb.Append(" Notes: ").Append(Notes).Append("\n"); - sb.Append(" Attachments: ").Append(Attachments).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" TaskName: ").Append(TaskName).Append("\n"); - sb.Append(" TaskDescription: ").Append(TaskDescription).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" ExpireDate: ").Append(ExpireDate).Append("\n"); - sb.Append(" PrincipalProfileSecurity: ").Append(PrincipalProfileSecurity).Append("\n"); - sb.Append(" NodeId: ").Append(NodeId).Append("\n"); - sb.Append(" UserEnumSelection: ").Append(UserEnumSelection).Append("\n"); - sb.Append(" NewProfileInput: ").Append(NewProfileInput).Append("\n"); - sb.Append(" ProfileEdit: ").Append(ProfileEdit).Append("\n"); - sb.Append(" FolderInsert: ").Append(FolderInsert).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" ModelId: ").Append(ModelId).Append("\n"); - sb.Append(" TaskType: ").Append(TaskType).Append("\n"); - sb.Append(" ExecutionMode: ").Append(ExecutionMode).Append("\n"); - sb.Append(" MailNotification: ").Append(MailNotification).Append("\n"); - sb.Append(" AutomaticTaskFeedDate: ").Append(AutomaticTaskFeedDate).Append("\n"); - sb.Append(" PasswordRequired: ").Append(PasswordRequired).Append("\n"); - sb.Append(" NewMemo: ").Append(NewMemo).Append("\n"); - sb.Append(" Readed: ").Append(Readed).Append("\n"); - sb.Append(" AsyncCommand: ").Append(AsyncCommand).Append("\n"); - sb.Append(" EditCopy: ").Append(EditCopy).Append("\n"); - sb.Append(" TakingChargeRequired: ").Append(TakingChargeRequired).Append("\n"); - sb.Append(" TaskDeadlineDate: ").Append(TaskDeadlineDate).Append("\n"); - sb.Append(" TaskActivationDate: ").Append(TaskActivationDate).Append("\n"); - sb.Append(" ProfessionalRoleSelectionDescription: ").Append(ProfessionalRoleSelectionDescription).Append("\n"); - sb.Append(" ProcessVariablesSetDescription: ").Append(ProcessVariablesSetDescription).Append("\n"); - sb.Append(" OrganizationChartId: ").Append(OrganizationChartId).Append("\n"); - sb.Append(" DelegationId: ").Append(DelegationId).Append("\n"); - sb.Append(" OpenedTaskDate: ").Append(OpenedTaskDate).Append("\n"); - sb.Append(" ExitState: ").Append(ExitState).Append("\n"); - sb.Append(" GroupTaskId: ").Append(GroupTaskId).Append("\n"); - sb.Append(" OrganizationChartOriginalUserId: ").Append(OrganizationChartOriginalUserId).Append("\n"); - sb.Append(" OriginalUserId: ").Append(OriginalUserId).Append("\n"); - sb.Append(" ExternalTaskTypeId: ").Append(ExternalTaskTypeId).Append("\n"); - sb.Append(" ManageMaster: ").Append(ManageMaster).Append("\n"); - sb.Append(" WaitUserExecutionMode: ").Append(WaitUserExecutionMode).Append("\n"); - sb.Append(" ManageInstruction: ").Append(ManageInstruction).Append("\n"); - sb.Append(" HtmlDescriptionEnabled: ").Append(HtmlDescriptionEnabled).Append("\n"); - sb.Append(" DynamicMansionDescription: ").Append(DynamicMansionDescription).Append("\n"); - sb.Append(" PartsVisibility: ").Append(PartsVisibility).Append("\n"); - sb.Append(" DefaultExitState: ").Append(DefaultExitState).Append("\n"); - sb.Append(" ReassignMode: ").Append(ReassignMode).Append("\n"); - sb.Append(" AutoAssignMode: ").Append(AutoAssignMode).Append("\n"); - sb.Append(" NameTranslationId: ").Append(NameTranslationId).Append("\n"); - sb.Append(" DescriptionTranslationId: ").Append(DescriptionTranslationId).Append("\n"); - sb.Append(" ProfessionalRolesDescriptionTranslationId: ").Append(ProfessionalRolesDescriptionTranslationId).Append("\n"); - sb.Append(" VariablesDescriptionTranslationId: ").Append(VariablesDescriptionTranslationId).Append("\n"); - sb.Append(" HtmlDescriptionTranslationId: ").Append(HtmlDescriptionTranslationId).Append("\n"); - sb.Append(" DynamicMansionDescriptionTranslationId: ").Append(DynamicMansionDescriptionTranslationId).Append("\n"); - sb.Append(" GroupIcon: ").Append(GroupIcon).Append("\n"); - sb.Append(" Executers: ").Append(Executers).Append("\n"); - sb.Append(" AttachmentsVisible: ").Append(AttachmentsVisible).Append("\n"); - sb.Append(" DetailsVisible: ").Append(DetailsVisible).Append("\n"); - sb.Append(" ProfilesVisible: ").Append(ProfilesVisible).Append("\n"); - sb.Append(" NotesVisible: ").Append(NotesVisible).Append("\n"); - sb.Append(" HistoryVisible: ").Append(HistoryVisible).Append("\n"); - sb.Append(" InstructionVisible: ").Append(InstructionVisible).Append("\n"); - sb.Append(" ShowProcessVisible: ").Append(ShowProcessVisible).Append("\n"); - sb.Append(" VariablesVisible: ").Append(VariablesVisible).Append("\n"); - sb.Append(" ExitStateComboVisible: ").Append(ExitStateComboVisible).Append("\n"); - sb.Append(" OperationsVisible: ").Append(OperationsVisible).Append("\n"); - sb.Append(" WorkFlowName: ").Append(WorkFlowName).Append("\n"); - sb.Append(" WorkFlowDescription: ").Append(WorkFlowDescription).Append("\n"); - sb.Append(" WorkFlowDetails: ").Append(WorkFlowDetails).Append("\n"); - sb.Append(" WorkFlowColor: ").Append(WorkFlowColor).Append("\n"); - sb.Append(" ShowDesignerVisible: ").Append(ShowDesignerVisible).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkDTO); - } - - /// - /// Returns true if TaskWorkDTO instances are equal - /// - /// Instance of TaskWorkDTO to be compared - /// Boolean - public bool Equals(TaskWorkDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ProcessId == input.ProcessId || - (this.ProcessId != null && - this.ProcessId.Equals(input.ProcessId)) - ) && - ( - this.WorkflowId == input.WorkflowId || - (this.WorkflowId != null && - this.WorkflowId.Equals(input.WorkflowId)) - ) && - ( - this.Notes == input.Notes || - (this.Notes != null && - this.Notes.Equals(input.Notes)) - ) && - ( - this.Attachments == input.Attachments || - (this.Attachments != null && - this.Attachments.Equals(input.Attachments)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && - ( - this.TaskName == input.TaskName || - (this.TaskName != null && - this.TaskName.Equals(input.TaskName)) - ) && - ( - this.TaskDescription == input.TaskDescription || - (this.TaskDescription != null && - this.TaskDescription.Equals(input.TaskDescription)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && - ( - this.ExpireDate == input.ExpireDate || - (this.ExpireDate != null && - this.ExpireDate.Equals(input.ExpireDate)) - ) && - ( - this.PrincipalProfileSecurity == input.PrincipalProfileSecurity || - (this.PrincipalProfileSecurity != null && - this.PrincipalProfileSecurity.Equals(input.PrincipalProfileSecurity)) - ) && - ( - this.NodeId == input.NodeId || - (this.NodeId != null && - this.NodeId.Equals(input.NodeId)) - ) && - ( - this.UserEnumSelection == input.UserEnumSelection || - (this.UserEnumSelection != null && - this.UserEnumSelection.Equals(input.UserEnumSelection)) - ) && - ( - this.NewProfileInput == input.NewProfileInput || - (this.NewProfileInput != null && - this.NewProfileInput.Equals(input.NewProfileInput)) - ) && - ( - this.ProfileEdit == input.ProfileEdit || - (this.ProfileEdit != null && - this.ProfileEdit.Equals(input.ProfileEdit)) - ) && - ( - this.FolderInsert == input.FolderInsert || - (this.FolderInsert != null && - this.FolderInsert.Equals(input.FolderInsert)) - ) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && - ( - this.ModelId == input.ModelId || - (this.ModelId != null && - this.ModelId.Equals(input.ModelId)) - ) && - ( - this.TaskType == input.TaskType || - (this.TaskType != null && - this.TaskType.Equals(input.TaskType)) - ) && - ( - this.ExecutionMode == input.ExecutionMode || - (this.ExecutionMode != null && - this.ExecutionMode.Equals(input.ExecutionMode)) - ) && - ( - this.MailNotification == input.MailNotification || - (this.MailNotification != null && - this.MailNotification.Equals(input.MailNotification)) - ) && - ( - this.AutomaticTaskFeedDate == input.AutomaticTaskFeedDate || - (this.AutomaticTaskFeedDate != null && - this.AutomaticTaskFeedDate.Equals(input.AutomaticTaskFeedDate)) - ) && - ( - this.PasswordRequired == input.PasswordRequired || - (this.PasswordRequired != null && - this.PasswordRequired.Equals(input.PasswordRequired)) - ) && - ( - this.NewMemo == input.NewMemo || - (this.NewMemo != null && - this.NewMemo.Equals(input.NewMemo)) - ) && - ( - this.Readed == input.Readed || - (this.Readed != null && - this.Readed.Equals(input.Readed)) - ) && - ( - this.AsyncCommand == input.AsyncCommand || - (this.AsyncCommand != null && - this.AsyncCommand.Equals(input.AsyncCommand)) - ) && - ( - this.EditCopy == input.EditCopy || - (this.EditCopy != null && - this.EditCopy.Equals(input.EditCopy)) - ) && - ( - this.TakingChargeRequired == input.TakingChargeRequired || - (this.TakingChargeRequired != null && - this.TakingChargeRequired.Equals(input.TakingChargeRequired)) - ) && - ( - this.TaskDeadlineDate == input.TaskDeadlineDate || - (this.TaskDeadlineDate != null && - this.TaskDeadlineDate.Equals(input.TaskDeadlineDate)) - ) && - ( - this.TaskActivationDate == input.TaskActivationDate || - (this.TaskActivationDate != null && - this.TaskActivationDate.Equals(input.TaskActivationDate)) - ) && - ( - this.ProfessionalRoleSelectionDescription == input.ProfessionalRoleSelectionDescription || - (this.ProfessionalRoleSelectionDescription != null && - this.ProfessionalRoleSelectionDescription.Equals(input.ProfessionalRoleSelectionDescription)) - ) && - ( - this.ProcessVariablesSetDescription == input.ProcessVariablesSetDescription || - (this.ProcessVariablesSetDescription != null && - this.ProcessVariablesSetDescription.Equals(input.ProcessVariablesSetDescription)) - ) && - ( - this.OrganizationChartId == input.OrganizationChartId || - (this.OrganizationChartId != null && - this.OrganizationChartId.Equals(input.OrganizationChartId)) - ) && - ( - this.DelegationId == input.DelegationId || - (this.DelegationId != null && - this.DelegationId.Equals(input.DelegationId)) - ) && - ( - this.OpenedTaskDate == input.OpenedTaskDate || - (this.OpenedTaskDate != null && - this.OpenedTaskDate.Equals(input.OpenedTaskDate)) - ) && - ( - this.ExitState == input.ExitState || - (this.ExitState != null && - this.ExitState.Equals(input.ExitState)) - ) && - ( - this.GroupTaskId == input.GroupTaskId || - (this.GroupTaskId != null && - this.GroupTaskId.Equals(input.GroupTaskId)) - ) && - ( - this.OrganizationChartOriginalUserId == input.OrganizationChartOriginalUserId || - (this.OrganizationChartOriginalUserId != null && - this.OrganizationChartOriginalUserId.Equals(input.OrganizationChartOriginalUserId)) - ) && - ( - this.OriginalUserId == input.OriginalUserId || - (this.OriginalUserId != null && - this.OriginalUserId.Equals(input.OriginalUserId)) - ) && - ( - this.ExternalTaskTypeId == input.ExternalTaskTypeId || - (this.ExternalTaskTypeId != null && - this.ExternalTaskTypeId.Equals(input.ExternalTaskTypeId)) - ) && - ( - this.ManageMaster == input.ManageMaster || - (this.ManageMaster != null && - this.ManageMaster.Equals(input.ManageMaster)) - ) && - ( - this.WaitUserExecutionMode == input.WaitUserExecutionMode || - (this.WaitUserExecutionMode != null && - this.WaitUserExecutionMode.Equals(input.WaitUserExecutionMode)) - ) && - ( - this.ManageInstruction == input.ManageInstruction || - (this.ManageInstruction != null && - this.ManageInstruction.Equals(input.ManageInstruction)) - ) && - ( - this.HtmlDescriptionEnabled == input.HtmlDescriptionEnabled || - (this.HtmlDescriptionEnabled != null && - this.HtmlDescriptionEnabled.Equals(input.HtmlDescriptionEnabled)) - ) && - ( - this.DynamicMansionDescription == input.DynamicMansionDescription || - (this.DynamicMansionDescription != null && - this.DynamicMansionDescription.Equals(input.DynamicMansionDescription)) - ) && - ( - this.PartsVisibility == input.PartsVisibility || - (this.PartsVisibility != null && - this.PartsVisibility.Equals(input.PartsVisibility)) - ) && - ( - this.DefaultExitState == input.DefaultExitState || - (this.DefaultExitState != null && - this.DefaultExitState.Equals(input.DefaultExitState)) - ) && - ( - this.ReassignMode == input.ReassignMode || - (this.ReassignMode != null && - this.ReassignMode.Equals(input.ReassignMode)) - ) && - ( - this.AutoAssignMode == input.AutoAssignMode || - (this.AutoAssignMode != null && - this.AutoAssignMode.Equals(input.AutoAssignMode)) - ) && - ( - this.NameTranslationId == input.NameTranslationId || - (this.NameTranslationId != null && - this.NameTranslationId.Equals(input.NameTranslationId)) - ) && - ( - this.DescriptionTranslationId == input.DescriptionTranslationId || - (this.DescriptionTranslationId != null && - this.DescriptionTranslationId.Equals(input.DescriptionTranslationId)) - ) && - ( - this.ProfessionalRolesDescriptionTranslationId == input.ProfessionalRolesDescriptionTranslationId || - (this.ProfessionalRolesDescriptionTranslationId != null && - this.ProfessionalRolesDescriptionTranslationId.Equals(input.ProfessionalRolesDescriptionTranslationId)) - ) && - ( - this.VariablesDescriptionTranslationId == input.VariablesDescriptionTranslationId || - (this.VariablesDescriptionTranslationId != null && - this.VariablesDescriptionTranslationId.Equals(input.VariablesDescriptionTranslationId)) - ) && - ( - this.HtmlDescriptionTranslationId == input.HtmlDescriptionTranslationId || - (this.HtmlDescriptionTranslationId != null && - this.HtmlDescriptionTranslationId.Equals(input.HtmlDescriptionTranslationId)) - ) && - ( - this.DynamicMansionDescriptionTranslationId == input.DynamicMansionDescriptionTranslationId || - (this.DynamicMansionDescriptionTranslationId != null && - this.DynamicMansionDescriptionTranslationId.Equals(input.DynamicMansionDescriptionTranslationId)) - ) && - ( - this.GroupIcon == input.GroupIcon || - (this.GroupIcon != null && - this.GroupIcon.Equals(input.GroupIcon)) - ) && - ( - this.Executers == input.Executers || - this.Executers != null && - this.Executers.SequenceEqual(input.Executers) - ) && - ( - this.AttachmentsVisible == input.AttachmentsVisible || - (this.AttachmentsVisible != null && - this.AttachmentsVisible.Equals(input.AttachmentsVisible)) - ) && - ( - this.DetailsVisible == input.DetailsVisible || - (this.DetailsVisible != null && - this.DetailsVisible.Equals(input.DetailsVisible)) - ) && - ( - this.ProfilesVisible == input.ProfilesVisible || - (this.ProfilesVisible != null && - this.ProfilesVisible.Equals(input.ProfilesVisible)) - ) && - ( - this.NotesVisible == input.NotesVisible || - (this.NotesVisible != null && - this.NotesVisible.Equals(input.NotesVisible)) - ) && - ( - this.HistoryVisible == input.HistoryVisible || - (this.HistoryVisible != null && - this.HistoryVisible.Equals(input.HistoryVisible)) - ) && - ( - this.InstructionVisible == input.InstructionVisible || - (this.InstructionVisible != null && - this.InstructionVisible.Equals(input.InstructionVisible)) - ) && - ( - this.ShowProcessVisible == input.ShowProcessVisible || - (this.ShowProcessVisible != null && - this.ShowProcessVisible.Equals(input.ShowProcessVisible)) - ) && - ( - this.VariablesVisible == input.VariablesVisible || - (this.VariablesVisible != null && - this.VariablesVisible.Equals(input.VariablesVisible)) - ) && - ( - this.ExitStateComboVisible == input.ExitStateComboVisible || - (this.ExitStateComboVisible != null && - this.ExitStateComboVisible.Equals(input.ExitStateComboVisible)) - ) && - ( - this.OperationsVisible == input.OperationsVisible || - (this.OperationsVisible != null && - this.OperationsVisible.Equals(input.OperationsVisible)) - ) && - ( - this.WorkFlowName == input.WorkFlowName || - (this.WorkFlowName != null && - this.WorkFlowName.Equals(input.WorkFlowName)) - ) && - ( - this.WorkFlowDescription == input.WorkFlowDescription || - (this.WorkFlowDescription != null && - this.WorkFlowDescription.Equals(input.WorkFlowDescription)) - ) && - ( - this.WorkFlowDetails == input.WorkFlowDetails || - (this.WorkFlowDetails != null && - this.WorkFlowDetails.Equals(input.WorkFlowDetails)) - ) && - ( - this.WorkFlowColor == input.WorkFlowColor || - (this.WorkFlowColor != null && - this.WorkFlowColor.Equals(input.WorkFlowColor)) - ) && - ( - this.ShowDesignerVisible == input.ShowDesignerVisible || - (this.ShowDesignerVisible != null && - this.ShowDesignerVisible.Equals(input.ShowDesignerVisible)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ProcessId != null) - hashCode = hashCode * 59 + this.ProcessId.GetHashCode(); - if (this.WorkflowId != null) - hashCode = hashCode * 59 + this.WorkflowId.GetHashCode(); - if (this.Notes != null) - hashCode = hashCode * 59 + this.Notes.GetHashCode(); - if (this.Attachments != null) - hashCode = hashCode * 59 + this.Attachments.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.TaskName != null) - hashCode = hashCode * 59 + this.TaskName.GetHashCode(); - if (this.TaskDescription != null) - hashCode = hashCode * 59 + this.TaskDescription.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.ExpireDate != null) - hashCode = hashCode * 59 + this.ExpireDate.GetHashCode(); - if (this.PrincipalProfileSecurity != null) - hashCode = hashCode * 59 + this.PrincipalProfileSecurity.GetHashCode(); - if (this.NodeId != null) - hashCode = hashCode * 59 + this.NodeId.GetHashCode(); - if (this.UserEnumSelection != null) - hashCode = hashCode * 59 + this.UserEnumSelection.GetHashCode(); - if (this.NewProfileInput != null) - hashCode = hashCode * 59 + this.NewProfileInput.GetHashCode(); - if (this.ProfileEdit != null) - hashCode = hashCode * 59 + this.ProfileEdit.GetHashCode(); - if (this.FolderInsert != null) - hashCode = hashCode * 59 + this.FolderInsert.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.ModelId != null) - hashCode = hashCode * 59 + this.ModelId.GetHashCode(); - if (this.TaskType != null) - hashCode = hashCode * 59 + this.TaskType.GetHashCode(); - if (this.ExecutionMode != null) - hashCode = hashCode * 59 + this.ExecutionMode.GetHashCode(); - if (this.MailNotification != null) - hashCode = hashCode * 59 + this.MailNotification.GetHashCode(); - if (this.AutomaticTaskFeedDate != null) - hashCode = hashCode * 59 + this.AutomaticTaskFeedDate.GetHashCode(); - if (this.PasswordRequired != null) - hashCode = hashCode * 59 + this.PasswordRequired.GetHashCode(); - if (this.NewMemo != null) - hashCode = hashCode * 59 + this.NewMemo.GetHashCode(); - if (this.Readed != null) - hashCode = hashCode * 59 + this.Readed.GetHashCode(); - if (this.AsyncCommand != null) - hashCode = hashCode * 59 + this.AsyncCommand.GetHashCode(); - if (this.EditCopy != null) - hashCode = hashCode * 59 + this.EditCopy.GetHashCode(); - if (this.TakingChargeRequired != null) - hashCode = hashCode * 59 + this.TakingChargeRequired.GetHashCode(); - if (this.TaskDeadlineDate != null) - hashCode = hashCode * 59 + this.TaskDeadlineDate.GetHashCode(); - if (this.TaskActivationDate != null) - hashCode = hashCode * 59 + this.TaskActivationDate.GetHashCode(); - if (this.ProfessionalRoleSelectionDescription != null) - hashCode = hashCode * 59 + this.ProfessionalRoleSelectionDescription.GetHashCode(); - if (this.ProcessVariablesSetDescription != null) - hashCode = hashCode * 59 + this.ProcessVariablesSetDescription.GetHashCode(); - if (this.OrganizationChartId != null) - hashCode = hashCode * 59 + this.OrganizationChartId.GetHashCode(); - if (this.DelegationId != null) - hashCode = hashCode * 59 + this.DelegationId.GetHashCode(); - if (this.OpenedTaskDate != null) - hashCode = hashCode * 59 + this.OpenedTaskDate.GetHashCode(); - if (this.ExitState != null) - hashCode = hashCode * 59 + this.ExitState.GetHashCode(); - if (this.GroupTaskId != null) - hashCode = hashCode * 59 + this.GroupTaskId.GetHashCode(); - if (this.OrganizationChartOriginalUserId != null) - hashCode = hashCode * 59 + this.OrganizationChartOriginalUserId.GetHashCode(); - if (this.OriginalUserId != null) - hashCode = hashCode * 59 + this.OriginalUserId.GetHashCode(); - if (this.ExternalTaskTypeId != null) - hashCode = hashCode * 59 + this.ExternalTaskTypeId.GetHashCode(); - if (this.ManageMaster != null) - hashCode = hashCode * 59 + this.ManageMaster.GetHashCode(); - if (this.WaitUserExecutionMode != null) - hashCode = hashCode * 59 + this.WaitUserExecutionMode.GetHashCode(); - if (this.ManageInstruction != null) - hashCode = hashCode * 59 + this.ManageInstruction.GetHashCode(); - if (this.HtmlDescriptionEnabled != null) - hashCode = hashCode * 59 + this.HtmlDescriptionEnabled.GetHashCode(); - if (this.DynamicMansionDescription != null) - hashCode = hashCode * 59 + this.DynamicMansionDescription.GetHashCode(); - if (this.PartsVisibility != null) - hashCode = hashCode * 59 + this.PartsVisibility.GetHashCode(); - if (this.DefaultExitState != null) - hashCode = hashCode * 59 + this.DefaultExitState.GetHashCode(); - if (this.ReassignMode != null) - hashCode = hashCode * 59 + this.ReassignMode.GetHashCode(); - if (this.AutoAssignMode != null) - hashCode = hashCode * 59 + this.AutoAssignMode.GetHashCode(); - if (this.NameTranslationId != null) - hashCode = hashCode * 59 + this.NameTranslationId.GetHashCode(); - if (this.DescriptionTranslationId != null) - hashCode = hashCode * 59 + this.DescriptionTranslationId.GetHashCode(); - if (this.ProfessionalRolesDescriptionTranslationId != null) - hashCode = hashCode * 59 + this.ProfessionalRolesDescriptionTranslationId.GetHashCode(); - if (this.VariablesDescriptionTranslationId != null) - hashCode = hashCode * 59 + this.VariablesDescriptionTranslationId.GetHashCode(); - if (this.HtmlDescriptionTranslationId != null) - hashCode = hashCode * 59 + this.HtmlDescriptionTranslationId.GetHashCode(); - if (this.DynamicMansionDescriptionTranslationId != null) - hashCode = hashCode * 59 + this.DynamicMansionDescriptionTranslationId.GetHashCode(); - if (this.GroupIcon != null) - hashCode = hashCode * 59 + this.GroupIcon.GetHashCode(); - if (this.Executers != null) - hashCode = hashCode * 59 + this.Executers.GetHashCode(); - if (this.AttachmentsVisible != null) - hashCode = hashCode * 59 + this.AttachmentsVisible.GetHashCode(); - if (this.DetailsVisible != null) - hashCode = hashCode * 59 + this.DetailsVisible.GetHashCode(); - if (this.ProfilesVisible != null) - hashCode = hashCode * 59 + this.ProfilesVisible.GetHashCode(); - if (this.NotesVisible != null) - hashCode = hashCode * 59 + this.NotesVisible.GetHashCode(); - if (this.HistoryVisible != null) - hashCode = hashCode * 59 + this.HistoryVisible.GetHashCode(); - if (this.InstructionVisible != null) - hashCode = hashCode * 59 + this.InstructionVisible.GetHashCode(); - if (this.ShowProcessVisible != null) - hashCode = hashCode * 59 + this.ShowProcessVisible.GetHashCode(); - if (this.VariablesVisible != null) - hashCode = hashCode * 59 + this.VariablesVisible.GetHashCode(); - if (this.ExitStateComboVisible != null) - hashCode = hashCode * 59 + this.ExitStateComboVisible.GetHashCode(); - if (this.OperationsVisible != null) - hashCode = hashCode * 59 + this.OperationsVisible.GetHashCode(); - if (this.WorkFlowName != null) - hashCode = hashCode * 59 + this.WorkFlowName.GetHashCode(); - if (this.WorkFlowDescription != null) - hashCode = hashCode * 59 + this.WorkFlowDescription.GetHashCode(); - if (this.WorkFlowDetails != null) - hashCode = hashCode * 59 + this.WorkFlowDetails.GetHashCode(); - if (this.WorkFlowColor != null) - hashCode = hashCode * 59 + this.WorkFlowColor.GetHashCode(); - if (this.ShowDesignerVisible != null) - hashCode = hashCode * 59 + this.ShowDesignerVisible.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkDocumentOperationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkDocumentOperationDTO.cs deleted file mode 100644 index f37bb33..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkDocumentOperationDTO.cs +++ /dev/null @@ -1,482 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Document operation DTO. - /// - [DataContract] - public partial class TaskWorkDocumentOperationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Operation Id.. - /// TaskWork Id.. - /// Process Id.. - /// Archiviation enabled.. - /// Selection enabled.. - /// Indicates the id of the view to use for the search. - /// Required.. - /// Possible values: 0: Attachment 1: PrincipalDocument 2: SecondaryDocument . - /// Edit buffer copy.. - /// DocumentType Type one.. - /// DocumentType Type two.. - /// DocumentType Type three.. - /// Model Id.. - /// Associates enabled.. - /// Operation description.. - /// Mask Id.. - /// Send enabled.. - /// FileSystem selection.. - /// Scanner selection.. - /// Operation Executed.. - /// Related binder id. - /// Possible values: 0: AsChild 1: AsFather -1: None . - public TaskWorkDocumentOperationDTO(string id = default(string), int? taskWorkId = default(int?), int? processId = default(int?), bool? allowNewDocument = default(bool?), bool? allowDocumentSelection = default(bool?), string viewId = default(string), bool? isRequired = default(bool?), int? taskWorkDocumentOperationType = default(int?), bool? editBuffer = default(bool?), int? documentTypeType1 = default(int?), int? documentTypeType2 = default(int?), int? documentTypeType3 = default(int?), int? moduleId = default(int?), bool? toAssociates = default(bool?), string description = default(string), string maskId = default(string), bool? toSend = default(bool?), bool? fromFileSystem = default(bool?), bool? fromScanner = default(bool?), bool? isExecuted = default(bool?), string relatedBinder = default(string), int? taskWorkDocumentOperationRealtionMode = default(int?)) - { - this.Id = id; - this.TaskWorkId = taskWorkId; - this.ProcessId = processId; - this.AllowNewDocument = allowNewDocument; - this.AllowDocumentSelection = allowDocumentSelection; - this.ViewId = viewId; - this.IsRequired = isRequired; - this.TaskWorkDocumentOperationType = taskWorkDocumentOperationType; - this.EditBuffer = editBuffer; - this.DocumentTypeType1 = documentTypeType1; - this.DocumentTypeType2 = documentTypeType2; - this.DocumentTypeType3 = documentTypeType3; - this.ModuleId = moduleId; - this.ToAssociates = toAssociates; - this.Description = description; - this.MaskId = maskId; - this.ToSend = toSend; - this.FromFileSystem = fromFileSystem; - this.FromScanner = fromScanner; - this.IsExecuted = isExecuted; - this.RelatedBinder = relatedBinder; - this.TaskWorkDocumentOperationRealtionMode = taskWorkDocumentOperationRealtionMode; - } - - /// - /// Operation Id. - /// - /// Operation Id. - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// TaskWork Id. - /// - /// TaskWork Id. - [DataMember(Name="taskWorkId", EmitDefaultValue=false)] - public int? TaskWorkId { get; set; } - - /// - /// Process Id. - /// - /// Process Id. - [DataMember(Name="processId", EmitDefaultValue=false)] - public int? ProcessId { get; set; } - - /// - /// Archiviation enabled. - /// - /// Archiviation enabled. - [DataMember(Name="allowNewDocument", EmitDefaultValue=false)] - public bool? AllowNewDocument { get; set; } - - /// - /// Selection enabled. - /// - /// Selection enabled. - [DataMember(Name="allowDocumentSelection", EmitDefaultValue=false)] - public bool? AllowDocumentSelection { get; set; } - - /// - /// Indicates the id of the view to use for the search - /// - /// Indicates the id of the view to use for the search - [DataMember(Name="viewId", EmitDefaultValue=false)] - public string ViewId { get; set; } - - /// - /// Required. - /// - /// Required. - [DataMember(Name="isRequired", EmitDefaultValue=false)] - public bool? IsRequired { get; set; } - - /// - /// Possible values: 0: Attachment 1: PrincipalDocument 2: SecondaryDocument - /// - /// Possible values: 0: Attachment 1: PrincipalDocument 2: SecondaryDocument - [DataMember(Name="taskWorkDocumentOperationType", EmitDefaultValue=false)] - public int? TaskWorkDocumentOperationType { get; set; } - - /// - /// Edit buffer copy. - /// - /// Edit buffer copy. - [DataMember(Name="editBuffer", EmitDefaultValue=false)] - public bool? EditBuffer { get; set; } - - /// - /// DocumentType Type one. - /// - /// DocumentType Type one. - [DataMember(Name="documentTypeType1", EmitDefaultValue=false)] - public int? DocumentTypeType1 { get; set; } - - /// - /// DocumentType Type two. - /// - /// DocumentType Type two. - [DataMember(Name="documentTypeType2", EmitDefaultValue=false)] - public int? DocumentTypeType2 { get; set; } - - /// - /// DocumentType Type three. - /// - /// DocumentType Type three. - [DataMember(Name="documentTypeType3", EmitDefaultValue=false)] - public int? DocumentTypeType3 { get; set; } - - /// - /// Model Id. - /// - /// Model Id. - [DataMember(Name="moduleId", EmitDefaultValue=false)] - public int? ModuleId { get; set; } - - /// - /// Associates enabled. - /// - /// Associates enabled. - [DataMember(Name="toAssociates", EmitDefaultValue=false)] - public bool? ToAssociates { get; set; } - - /// - /// Operation description. - /// - /// Operation description. - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Mask Id. - /// - /// Mask Id. - [DataMember(Name="maskId", EmitDefaultValue=false)] - public string MaskId { get; set; } - - /// - /// Send enabled. - /// - /// Send enabled. - [DataMember(Name="toSend", EmitDefaultValue=false)] - public bool? ToSend { get; set; } - - /// - /// FileSystem selection. - /// - /// FileSystem selection. - [DataMember(Name="fromFileSystem", EmitDefaultValue=false)] - public bool? FromFileSystem { get; set; } - - /// - /// Scanner selection. - /// - /// Scanner selection. - [DataMember(Name="fromScanner", EmitDefaultValue=false)] - public bool? FromScanner { get; set; } - - /// - /// Operation Executed. - /// - /// Operation Executed. - [DataMember(Name="isExecuted", EmitDefaultValue=false)] - public bool? IsExecuted { get; set; } - - /// - /// Related binder id - /// - /// Related binder id - [DataMember(Name="relatedBinder", EmitDefaultValue=false)] - public string RelatedBinder { get; set; } - - /// - /// Possible values: 0: AsChild 1: AsFather -1: None - /// - /// Possible values: 0: AsChild 1: AsFather -1: None - [DataMember(Name="taskWorkDocumentOperationRealtionMode", EmitDefaultValue=false)] - public int? TaskWorkDocumentOperationRealtionMode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkDocumentOperationDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" TaskWorkId: ").Append(TaskWorkId).Append("\n"); - sb.Append(" ProcessId: ").Append(ProcessId).Append("\n"); - sb.Append(" AllowNewDocument: ").Append(AllowNewDocument).Append("\n"); - sb.Append(" AllowDocumentSelection: ").Append(AllowDocumentSelection).Append("\n"); - sb.Append(" ViewId: ").Append(ViewId).Append("\n"); - sb.Append(" IsRequired: ").Append(IsRequired).Append("\n"); - sb.Append(" TaskWorkDocumentOperationType: ").Append(TaskWorkDocumentOperationType).Append("\n"); - sb.Append(" EditBuffer: ").Append(EditBuffer).Append("\n"); - sb.Append(" DocumentTypeType1: ").Append(DocumentTypeType1).Append("\n"); - sb.Append(" DocumentTypeType2: ").Append(DocumentTypeType2).Append("\n"); - sb.Append(" DocumentTypeType3: ").Append(DocumentTypeType3).Append("\n"); - sb.Append(" ModuleId: ").Append(ModuleId).Append("\n"); - sb.Append(" ToAssociates: ").Append(ToAssociates).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" MaskId: ").Append(MaskId).Append("\n"); - sb.Append(" ToSend: ").Append(ToSend).Append("\n"); - sb.Append(" FromFileSystem: ").Append(FromFileSystem).Append("\n"); - sb.Append(" FromScanner: ").Append(FromScanner).Append("\n"); - sb.Append(" IsExecuted: ").Append(IsExecuted).Append("\n"); - sb.Append(" RelatedBinder: ").Append(RelatedBinder).Append("\n"); - sb.Append(" TaskWorkDocumentOperationRealtionMode: ").Append(TaskWorkDocumentOperationRealtionMode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkDocumentOperationDTO); - } - - /// - /// Returns true if TaskWorkDocumentOperationDTO instances are equal - /// - /// Instance of TaskWorkDocumentOperationDTO to be compared - /// Boolean - public bool Equals(TaskWorkDocumentOperationDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.TaskWorkId == input.TaskWorkId || - (this.TaskWorkId != null && - this.TaskWorkId.Equals(input.TaskWorkId)) - ) && - ( - this.ProcessId == input.ProcessId || - (this.ProcessId != null && - this.ProcessId.Equals(input.ProcessId)) - ) && - ( - this.AllowNewDocument == input.AllowNewDocument || - (this.AllowNewDocument != null && - this.AllowNewDocument.Equals(input.AllowNewDocument)) - ) && - ( - this.AllowDocumentSelection == input.AllowDocumentSelection || - (this.AllowDocumentSelection != null && - this.AllowDocumentSelection.Equals(input.AllowDocumentSelection)) - ) && - ( - this.ViewId == input.ViewId || - (this.ViewId != null && - this.ViewId.Equals(input.ViewId)) - ) && - ( - this.IsRequired == input.IsRequired || - (this.IsRequired != null && - this.IsRequired.Equals(input.IsRequired)) - ) && - ( - this.TaskWorkDocumentOperationType == input.TaskWorkDocumentOperationType || - (this.TaskWorkDocumentOperationType != null && - this.TaskWorkDocumentOperationType.Equals(input.TaskWorkDocumentOperationType)) - ) && - ( - this.EditBuffer == input.EditBuffer || - (this.EditBuffer != null && - this.EditBuffer.Equals(input.EditBuffer)) - ) && - ( - this.DocumentTypeType1 == input.DocumentTypeType1 || - (this.DocumentTypeType1 != null && - this.DocumentTypeType1.Equals(input.DocumentTypeType1)) - ) && - ( - this.DocumentTypeType2 == input.DocumentTypeType2 || - (this.DocumentTypeType2 != null && - this.DocumentTypeType2.Equals(input.DocumentTypeType2)) - ) && - ( - this.DocumentTypeType3 == input.DocumentTypeType3 || - (this.DocumentTypeType3 != null && - this.DocumentTypeType3.Equals(input.DocumentTypeType3)) - ) && - ( - this.ModuleId == input.ModuleId || - (this.ModuleId != null && - this.ModuleId.Equals(input.ModuleId)) - ) && - ( - this.ToAssociates == input.ToAssociates || - (this.ToAssociates != null && - this.ToAssociates.Equals(input.ToAssociates)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.MaskId == input.MaskId || - (this.MaskId != null && - this.MaskId.Equals(input.MaskId)) - ) && - ( - this.ToSend == input.ToSend || - (this.ToSend != null && - this.ToSend.Equals(input.ToSend)) - ) && - ( - this.FromFileSystem == input.FromFileSystem || - (this.FromFileSystem != null && - this.FromFileSystem.Equals(input.FromFileSystem)) - ) && - ( - this.FromScanner == input.FromScanner || - (this.FromScanner != null && - this.FromScanner.Equals(input.FromScanner)) - ) && - ( - this.IsExecuted == input.IsExecuted || - (this.IsExecuted != null && - this.IsExecuted.Equals(input.IsExecuted)) - ) && - ( - this.RelatedBinder == input.RelatedBinder || - (this.RelatedBinder != null && - this.RelatedBinder.Equals(input.RelatedBinder)) - ) && - ( - this.TaskWorkDocumentOperationRealtionMode == input.TaskWorkDocumentOperationRealtionMode || - (this.TaskWorkDocumentOperationRealtionMode != null && - this.TaskWorkDocumentOperationRealtionMode.Equals(input.TaskWorkDocumentOperationRealtionMode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.TaskWorkId != null) - hashCode = hashCode * 59 + this.TaskWorkId.GetHashCode(); - if (this.ProcessId != null) - hashCode = hashCode * 59 + this.ProcessId.GetHashCode(); - if (this.AllowNewDocument != null) - hashCode = hashCode * 59 + this.AllowNewDocument.GetHashCode(); - if (this.AllowDocumentSelection != null) - hashCode = hashCode * 59 + this.AllowDocumentSelection.GetHashCode(); - if (this.ViewId != null) - hashCode = hashCode * 59 + this.ViewId.GetHashCode(); - if (this.IsRequired != null) - hashCode = hashCode * 59 + this.IsRequired.GetHashCode(); - if (this.TaskWorkDocumentOperationType != null) - hashCode = hashCode * 59 + this.TaskWorkDocumentOperationType.GetHashCode(); - if (this.EditBuffer != null) - hashCode = hashCode * 59 + this.EditBuffer.GetHashCode(); - if (this.DocumentTypeType1 != null) - hashCode = hashCode * 59 + this.DocumentTypeType1.GetHashCode(); - if (this.DocumentTypeType2 != null) - hashCode = hashCode * 59 + this.DocumentTypeType2.GetHashCode(); - if (this.DocumentTypeType3 != null) - hashCode = hashCode * 59 + this.DocumentTypeType3.GetHashCode(); - if (this.ModuleId != null) - hashCode = hashCode * 59 + this.ModuleId.GetHashCode(); - if (this.ToAssociates != null) - hashCode = hashCode * 59 + this.ToAssociates.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.MaskId != null) - hashCode = hashCode * 59 + this.MaskId.GetHashCode(); - if (this.ToSend != null) - hashCode = hashCode * 59 + this.ToSend.GetHashCode(); - if (this.FromFileSystem != null) - hashCode = hashCode * 59 + this.FromFileSystem.GetHashCode(); - if (this.FromScanner != null) - hashCode = hashCode * 59 + this.FromScanner.GetHashCode(); - if (this.IsExecuted != null) - hashCode = hashCode * 59 + this.IsExecuted.GetHashCode(); - if (this.RelatedBinder != null) - hashCode = hashCode * 59 + this.RelatedBinder.GetHashCode(); - if (this.TaskWorkDocumentOperationRealtionMode != null) - hashCode = hashCode * 59 + this.TaskWorkDocumentOperationRealtionMode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkDynamicJobOperationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkDynamicJobOperationDTO.cs deleted file mode 100644 index 4caf78c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkDynamicJobOperationDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Dynamic job operation - /// - [DataContract] - public partial class TaskWorkDynamicJobOperationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Id. - /// Process Id. - /// TaskWork Id. - /// Dynamic job. - /// Value for outcome. - /// After execution. - /// Required. - /// Executed. - public TaskWorkDynamicJobOperationDTO(int? id = default(int?), int? processId = default(int?), int? taskWorkId = default(int?), UserCompleteDTO dynamicJob = default(UserCompleteDTO), string outcomeValue = default(string), bool? executeAfter = default(bool?), bool? isRequired = default(bool?), bool? isExecuted = default(bool?)) - { - this.Id = id; - this.ProcessId = processId; - this.TaskWorkId = taskWorkId; - this.DynamicJob = dynamicJob; - this.OutcomeValue = outcomeValue; - this.ExecuteAfter = executeAfter; - this.IsRequired = isRequired; - this.IsExecuted = isExecuted; - } - - /// - /// Id - /// - /// Id - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Process Id - /// - /// Process Id - [DataMember(Name="processId", EmitDefaultValue=false)] - public int? ProcessId { get; set; } - - /// - /// TaskWork Id - /// - /// TaskWork Id - [DataMember(Name="taskWorkId", EmitDefaultValue=false)] - public int? TaskWorkId { get; set; } - - /// - /// Dynamic job - /// - /// Dynamic job - [DataMember(Name="dynamicJob", EmitDefaultValue=false)] - public UserCompleteDTO DynamicJob { get; set; } - - /// - /// Value for outcome - /// - /// Value for outcome - [DataMember(Name="outcomeValue", EmitDefaultValue=false)] - public string OutcomeValue { get; set; } - - /// - /// After execution - /// - /// After execution - [DataMember(Name="executeAfter", EmitDefaultValue=false)] - public bool? ExecuteAfter { get; set; } - - /// - /// Required - /// - /// Required - [DataMember(Name="isRequired", EmitDefaultValue=false)] - public bool? IsRequired { get; set; } - - /// - /// Executed - /// - /// Executed - [DataMember(Name="isExecuted", EmitDefaultValue=false)] - public bool? IsExecuted { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkDynamicJobOperationDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ProcessId: ").Append(ProcessId).Append("\n"); - sb.Append(" TaskWorkId: ").Append(TaskWorkId).Append("\n"); - sb.Append(" DynamicJob: ").Append(DynamicJob).Append("\n"); - sb.Append(" OutcomeValue: ").Append(OutcomeValue).Append("\n"); - sb.Append(" ExecuteAfter: ").Append(ExecuteAfter).Append("\n"); - sb.Append(" IsRequired: ").Append(IsRequired).Append("\n"); - sb.Append(" IsExecuted: ").Append(IsExecuted).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkDynamicJobOperationDTO); - } - - /// - /// Returns true if TaskWorkDynamicJobOperationDTO instances are equal - /// - /// Instance of TaskWorkDynamicJobOperationDTO to be compared - /// Boolean - public bool Equals(TaskWorkDynamicJobOperationDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ProcessId == input.ProcessId || - (this.ProcessId != null && - this.ProcessId.Equals(input.ProcessId)) - ) && - ( - this.TaskWorkId == input.TaskWorkId || - (this.TaskWorkId != null && - this.TaskWorkId.Equals(input.TaskWorkId)) - ) && - ( - this.DynamicJob == input.DynamicJob || - (this.DynamicJob != null && - this.DynamicJob.Equals(input.DynamicJob)) - ) && - ( - this.OutcomeValue == input.OutcomeValue || - (this.OutcomeValue != null && - this.OutcomeValue.Equals(input.OutcomeValue)) - ) && - ( - this.ExecuteAfter == input.ExecuteAfter || - (this.ExecuteAfter != null && - this.ExecuteAfter.Equals(input.ExecuteAfter)) - ) && - ( - this.IsRequired == input.IsRequired || - (this.IsRequired != null && - this.IsRequired.Equals(input.IsRequired)) - ) && - ( - this.IsExecuted == input.IsExecuted || - (this.IsExecuted != null && - this.IsExecuted.Equals(input.IsExecuted)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ProcessId != null) - hashCode = hashCode * 59 + this.ProcessId.GetHashCode(); - if (this.TaskWorkId != null) - hashCode = hashCode * 59 + this.TaskWorkId.GetHashCode(); - if (this.DynamicJob != null) - hashCode = hashCode * 59 + this.DynamicJob.GetHashCode(); - if (this.OutcomeValue != null) - hashCode = hashCode * 59 + this.OutcomeValue.GetHashCode(); - if (this.ExecuteAfter != null) - hashCode = hashCode * 59 + this.ExecuteAfter.GetHashCode(); - if (this.IsRequired != null) - hashCode = hashCode * 59 + this.IsRequired.GetHashCode(); - if (this.IsExecuted != null) - hashCode = hashCode * 59 + this.IsExecuted.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkDynamicJobOperationsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkDynamicJobOperationsDTO.cs deleted file mode 100644 index cde1a8c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkDynamicJobOperationsDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TaskWorkDynamicJobOperationsDTO - /// - [DataContract] - public partial class TaskWorkDynamicJobOperationsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// operations. - /// description. - public TaskWorkDynamicJobOperationsDTO(List operations = default(List), string description = default(string)) - { - this.Operations = operations; - this.Description = description; - } - - /// - /// Gets or Sets Operations - /// - [DataMember(Name="operations", EmitDefaultValue=false)] - public List Operations { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkDynamicJobOperationsDTO {\n"); - sb.Append(" Operations: ").Append(Operations).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkDynamicJobOperationsDTO); - } - - /// - /// Returns true if TaskWorkDynamicJobOperationsDTO instances are equal - /// - /// Instance of TaskWorkDynamicJobOperationsDTO to be compared - /// Boolean - public bool Equals(TaskWorkDynamicJobOperationsDTO input) - { - if (input == null) - return false; - - return - ( - this.Operations == input.Operations || - this.Operations != null && - this.Operations.SequenceEqual(input.Operations) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Operations != null) - hashCode = hashCode * 59 + this.Operations.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkInstructionDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkInstructionDTO.cs deleted file mode 100644 index daa4099..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkInstructionDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TaskWorkInstructionDTO - /// - [DataContract] - public partial class TaskWorkInstructionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// taskWorkInstructionGroups. - /// taskWorkInstructionItems. - public TaskWorkInstructionDTO(List taskWorkInstructionGroups = default(List), List taskWorkInstructionItems = default(List)) - { - this.TaskWorkInstructionGroups = taskWorkInstructionGroups; - this.TaskWorkInstructionItems = taskWorkInstructionItems; - } - - /// - /// Gets or Sets TaskWorkInstructionGroups - /// - [DataMember(Name="taskWorkInstructionGroups", EmitDefaultValue=false)] - public List TaskWorkInstructionGroups { get; set; } - - /// - /// Gets or Sets TaskWorkInstructionItems - /// - [DataMember(Name="taskWorkInstructionItems", EmitDefaultValue=false)] - public List TaskWorkInstructionItems { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkInstructionDTO {\n"); - sb.Append(" TaskWorkInstructionGroups: ").Append(TaskWorkInstructionGroups).Append("\n"); - sb.Append(" TaskWorkInstructionItems: ").Append(TaskWorkInstructionItems).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkInstructionDTO); - } - - /// - /// Returns true if TaskWorkInstructionDTO instances are equal - /// - /// Instance of TaskWorkInstructionDTO to be compared - /// Boolean - public bool Equals(TaskWorkInstructionDTO input) - { - if (input == null) - return false; - - return - ( - this.TaskWorkInstructionGroups == input.TaskWorkInstructionGroups || - this.TaskWorkInstructionGroups != null && - this.TaskWorkInstructionGroups.SequenceEqual(input.TaskWorkInstructionGroups) - ) && - ( - this.TaskWorkInstructionItems == input.TaskWorkInstructionItems || - this.TaskWorkInstructionItems != null && - this.TaskWorkInstructionItems.SequenceEqual(input.TaskWorkInstructionItems) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.TaskWorkInstructionGroups != null) - hashCode = hashCode * 59 + this.TaskWorkInstructionGroups.GetHashCode(); - if (this.TaskWorkInstructionItems != null) - hashCode = hashCode * 59 + this.TaskWorkInstructionItems.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkInstructionGroupDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkInstructionGroupDTO.cs deleted file mode 100644 index db6385e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkInstructionGroupDTO.cs +++ /dev/null @@ -1,204 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TaskWorkInstructionGroupDTO - /// - [DataContract] - public partial class TaskWorkInstructionGroupDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// order. - /// description. - /// deleted. - /// showInDocumentation. - /// items. - public TaskWorkInstructionGroupDTO(string id = default(string), int? order = default(int?), string description = default(string), bool? deleted = default(bool?), bool? showInDocumentation = default(bool?), List items = default(List)) - { - this.Id = id; - this.Order = order; - this.Description = description; - this.Deleted = deleted; - this.ShowInDocumentation = showInDocumentation; - this.Items = items; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Gets or Sets Order - /// - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Gets or Sets Deleted - /// - [DataMember(Name="deleted", EmitDefaultValue=false)] - public bool? Deleted { get; set; } - - /// - /// Gets or Sets ShowInDocumentation - /// - [DataMember(Name="showInDocumentation", EmitDefaultValue=false)] - public bool? ShowInDocumentation { get; set; } - - /// - /// Gets or Sets Items - /// - [DataMember(Name="items", EmitDefaultValue=false)] - public List Items { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkInstructionGroupDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Deleted: ").Append(Deleted).Append("\n"); - sb.Append(" ShowInDocumentation: ").Append(ShowInDocumentation).Append("\n"); - sb.Append(" Items: ").Append(Items).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkInstructionGroupDTO); - } - - /// - /// Returns true if TaskWorkInstructionGroupDTO instances are equal - /// - /// Instance of TaskWorkInstructionGroupDTO to be compared - /// Boolean - public bool Equals(TaskWorkInstructionGroupDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Deleted == input.Deleted || - (this.Deleted != null && - this.Deleted.Equals(input.Deleted)) - ) && - ( - this.ShowInDocumentation == input.ShowInDocumentation || - (this.ShowInDocumentation != null && - this.ShowInDocumentation.Equals(input.ShowInDocumentation)) - ) && - ( - this.Items == input.Items || - this.Items != null && - this.Items.SequenceEqual(input.Items) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Deleted != null) - hashCode = hashCode * 59 + this.Deleted.GetHashCode(); - if (this.ShowInDocumentation != null) - hashCode = hashCode * 59 + this.ShowInDocumentation.GetHashCode(); - if (this.Items != null) - hashCode = hashCode * 59 + this.Items.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkInstructionItemDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkInstructionItemDTO.cs deleted file mode 100644 index 884d1e8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkInstructionItemDTO.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TaskWorkInstructionItemDTO - /// - [DataContract] - public partial class TaskWorkInstructionItemDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// name. - /// content. - /// order. - public TaskWorkInstructionItemDTO(string name = default(string), string content = default(string), int? order = default(int?)) - { - this.Name = name; - this.Content = content; - this.Order = order; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Gets or Sets Content - /// - [DataMember(Name="content", EmitDefaultValue=false)] - public string Content { get; set; } - - /// - /// Gets or Sets Order - /// - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkInstructionItemDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Content: ").Append(Content).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkInstructionItemDTO); - } - - /// - /// Returns true if TaskWorkInstructionItemDTO instances are equal - /// - /// Instance of TaskWorkInstructionItemDTO to be compared - /// Boolean - public bool Equals(TaskWorkInstructionItemDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Content == input.Content || - (this.Content != null && - this.Content.Equals(input.Content)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Content != null) - hashCode = hashCode * 59 + this.Content.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkNoteDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkNoteDTO.cs deleted file mode 100644 index 120488b..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkNoteDTO.cs +++ /dev/null @@ -1,236 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TaskWorkNoteDTO - /// - [DataContract] - public partial class TaskWorkNoteDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// date. - /// id. - /// processId. - /// taskWorkId. - /// note. - /// userCompleteName. - /// user. - /// taskWorkName. - public TaskWorkNoteDTO(DateTime? date = default(DateTime?), int? id = default(int?), int? processId = default(int?), int? taskWorkId = default(int?), string note = default(string), string userCompleteName = default(string), int? user = default(int?), string taskWorkName = default(string)) - { - this.Date = date; - this.Id = id; - this.ProcessId = processId; - this.TaskWorkId = taskWorkId; - this.Note = note; - this.UserCompleteName = userCompleteName; - this.User = user; - this.TaskWorkName = taskWorkName; - } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="date", EmitDefaultValue=false)] - public DateTime? Date { get; set; } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or Sets ProcessId - /// - [DataMember(Name="processId", EmitDefaultValue=false)] - public int? ProcessId { get; set; } - - /// - /// Gets or Sets TaskWorkId - /// - [DataMember(Name="taskWorkId", EmitDefaultValue=false)] - public int? TaskWorkId { get; set; } - - /// - /// Gets or Sets Note - /// - [DataMember(Name="note", EmitDefaultValue=false)] - public string Note { get; set; } - - /// - /// Gets or Sets UserCompleteName - /// - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Gets or Sets User - /// - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Gets or Sets TaskWorkName - /// - [DataMember(Name="taskWorkName", EmitDefaultValue=false)] - public string TaskWorkName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkNoteDTO {\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ProcessId: ").Append(ProcessId).Append("\n"); - sb.Append(" TaskWorkId: ").Append(TaskWorkId).Append("\n"); - sb.Append(" Note: ").Append(Note).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" TaskWorkName: ").Append(TaskWorkName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkNoteDTO); - } - - /// - /// Returns true if TaskWorkNoteDTO instances are equal - /// - /// Instance of TaskWorkNoteDTO to be compared - /// Boolean - public bool Equals(TaskWorkNoteDTO input) - { - if (input == null) - return false; - - return - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ProcessId == input.ProcessId || - (this.ProcessId != null && - this.ProcessId.Equals(input.ProcessId)) - ) && - ( - this.TaskWorkId == input.TaskWorkId || - (this.TaskWorkId != null && - this.TaskWorkId.Equals(input.TaskWorkId)) - ) && - ( - this.Note == input.Note || - (this.Note != null && - this.Note.Equals(input.Note)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.TaskWorkName == input.TaskWorkName || - (this.TaskWorkName != null && - this.TaskWorkName.Equals(input.TaskWorkName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ProcessId != null) - hashCode = hashCode * 59 + this.ProcessId.GetHashCode(); - if (this.TaskWorkId != null) - hashCode = hashCode * 59 + this.TaskWorkId.GetHashCode(); - if (this.Note != null) - hashCode = hashCode * 59 + this.Note.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.TaskWorkName != null) - hashCode = hashCode * 59 + this.TaskWorkName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkOperationsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkOperationsDTO.cs deleted file mode 100644 index 726d321..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkOperationsDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TaskWorkOperationsDTO - /// - [DataContract] - public partial class TaskWorkOperationsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// TaskWork commands. - /// Process variables to set. - /// Document operations. - /// Professional roles. - /// Operating Instruction. - /// Dynamic jobs. - /// Sign operations. - /// Reassign task opertiona. - public TaskWorkOperationsDTO(List taskWorkCommandsOperations = default(List), TaskWorkVariableOperationDTO taskWorkVariablesOperation = default(TaskWorkVariableOperationDTO), List taskWorkDocumentOperations = default(List), ProfessionalRoleOperationsDTO taskWorkProfessionalRoleOperations = default(ProfessionalRoleOperationsDTO), List taskWorkOperatingInstructions = default(List), TaskWorkDynamicJobOperationsDTO taskWorkDynamicJobOperation = default(TaskWorkDynamicJobOperationsDTO), List taskWorkSignOperations = default(List), bool? canReAssignTask = default(bool?)) - { - this.TaskWorkCommandsOperations = taskWorkCommandsOperations; - this.TaskWorkVariablesOperation = taskWorkVariablesOperation; - this.TaskWorkDocumentOperations = taskWorkDocumentOperations; - this.TaskWorkProfessionalRoleOperations = taskWorkProfessionalRoleOperations; - this.TaskWorkOperatingInstructions = taskWorkOperatingInstructions; - this.TaskWorkDynamicJobOperation = taskWorkDynamicJobOperation; - this.TaskWorkSignOperations = taskWorkSignOperations; - this.CanReAssignTask = canReAssignTask; - } - - /// - /// TaskWork commands - /// - /// TaskWork commands - [DataMember(Name="taskWorkCommandsOperations", EmitDefaultValue=false)] - public List TaskWorkCommandsOperations { get; set; } - - /// - /// Process variables to set - /// - /// Process variables to set - [DataMember(Name="taskWorkVariablesOperation", EmitDefaultValue=false)] - public TaskWorkVariableOperationDTO TaskWorkVariablesOperation { get; set; } - - /// - /// Document operations - /// - /// Document operations - [DataMember(Name="taskWorkDocumentOperations", EmitDefaultValue=false)] - public List TaskWorkDocumentOperations { get; set; } - - /// - /// Professional roles - /// - /// Professional roles - [DataMember(Name="taskWorkProfessionalRoleOperations", EmitDefaultValue=false)] - public ProfessionalRoleOperationsDTO TaskWorkProfessionalRoleOperations { get; set; } - - /// - /// Operating Instruction - /// - /// Operating Instruction - [DataMember(Name="taskWorkOperatingInstructions", EmitDefaultValue=false)] - public List TaskWorkOperatingInstructions { get; set; } - - /// - /// Dynamic jobs - /// - /// Dynamic jobs - [DataMember(Name="taskWorkDynamicJobOperation", EmitDefaultValue=false)] - public TaskWorkDynamicJobOperationsDTO TaskWorkDynamicJobOperation { get; set; } - - /// - /// Sign operations - /// - /// Sign operations - [DataMember(Name="taskWorkSignOperations", EmitDefaultValue=false)] - public List TaskWorkSignOperations { get; set; } - - /// - /// Reassign task opertiona - /// - /// Reassign task opertiona - [DataMember(Name="canReAssignTask", EmitDefaultValue=false)] - public bool? CanReAssignTask { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkOperationsDTO {\n"); - sb.Append(" TaskWorkCommandsOperations: ").Append(TaskWorkCommandsOperations).Append("\n"); - sb.Append(" TaskWorkVariablesOperation: ").Append(TaskWorkVariablesOperation).Append("\n"); - sb.Append(" TaskWorkDocumentOperations: ").Append(TaskWorkDocumentOperations).Append("\n"); - sb.Append(" TaskWorkProfessionalRoleOperations: ").Append(TaskWorkProfessionalRoleOperations).Append("\n"); - sb.Append(" TaskWorkOperatingInstructions: ").Append(TaskWorkOperatingInstructions).Append("\n"); - sb.Append(" TaskWorkDynamicJobOperation: ").Append(TaskWorkDynamicJobOperation).Append("\n"); - sb.Append(" TaskWorkSignOperations: ").Append(TaskWorkSignOperations).Append("\n"); - sb.Append(" CanReAssignTask: ").Append(CanReAssignTask).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkOperationsDTO); - } - - /// - /// Returns true if TaskWorkOperationsDTO instances are equal - /// - /// Instance of TaskWorkOperationsDTO to be compared - /// Boolean - public bool Equals(TaskWorkOperationsDTO input) - { - if (input == null) - return false; - - return - ( - this.TaskWorkCommandsOperations == input.TaskWorkCommandsOperations || - this.TaskWorkCommandsOperations != null && - this.TaskWorkCommandsOperations.SequenceEqual(input.TaskWorkCommandsOperations) - ) && - ( - this.TaskWorkVariablesOperation == input.TaskWorkVariablesOperation || - (this.TaskWorkVariablesOperation != null && - this.TaskWorkVariablesOperation.Equals(input.TaskWorkVariablesOperation)) - ) && - ( - this.TaskWorkDocumentOperations == input.TaskWorkDocumentOperations || - this.TaskWorkDocumentOperations != null && - this.TaskWorkDocumentOperations.SequenceEqual(input.TaskWorkDocumentOperations) - ) && - ( - this.TaskWorkProfessionalRoleOperations == input.TaskWorkProfessionalRoleOperations || - (this.TaskWorkProfessionalRoleOperations != null && - this.TaskWorkProfessionalRoleOperations.Equals(input.TaskWorkProfessionalRoleOperations)) - ) && - ( - this.TaskWorkOperatingInstructions == input.TaskWorkOperatingInstructions || - this.TaskWorkOperatingInstructions != null && - this.TaskWorkOperatingInstructions.SequenceEqual(input.TaskWorkOperatingInstructions) - ) && - ( - this.TaskWorkDynamicJobOperation == input.TaskWorkDynamicJobOperation || - (this.TaskWorkDynamicJobOperation != null && - this.TaskWorkDynamicJobOperation.Equals(input.TaskWorkDynamicJobOperation)) - ) && - ( - this.TaskWorkSignOperations == input.TaskWorkSignOperations || - this.TaskWorkSignOperations != null && - this.TaskWorkSignOperations.SequenceEqual(input.TaskWorkSignOperations) - ) && - ( - this.CanReAssignTask == input.CanReAssignTask || - (this.CanReAssignTask != null && - this.CanReAssignTask.Equals(input.CanReAssignTask)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.TaskWorkCommandsOperations != null) - hashCode = hashCode * 59 + this.TaskWorkCommandsOperations.GetHashCode(); - if (this.TaskWorkVariablesOperation != null) - hashCode = hashCode * 59 + this.TaskWorkVariablesOperation.GetHashCode(); - if (this.TaskWorkDocumentOperations != null) - hashCode = hashCode * 59 + this.TaskWorkDocumentOperations.GetHashCode(); - if (this.TaskWorkProfessionalRoleOperations != null) - hashCode = hashCode * 59 + this.TaskWorkProfessionalRoleOperations.GetHashCode(); - if (this.TaskWorkOperatingInstructions != null) - hashCode = hashCode * 59 + this.TaskWorkOperatingInstructions.GetHashCode(); - if (this.TaskWorkDynamicJobOperation != null) - hashCode = hashCode * 59 + this.TaskWorkDynamicJobOperation.GetHashCode(); - if (this.TaskWorkSignOperations != null) - hashCode = hashCode * 59 + this.TaskWorkSignOperations.GetHashCode(); - if (this.CanReAssignTask != null) - hashCode = hashCode * 59 + this.CanReAssignTask.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkReassignRequest.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkReassignRequest.cs deleted file mode 100644 index a450270..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkReassignRequest.cs +++ /dev/null @@ -1,124 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TaskWorkReassignRequest - /// - [DataContract] - public partial class TaskWorkReassignRequest : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// userIds. - public TaskWorkReassignRequest(List userIds = default(List)) - { - this.UserIds = userIds; - } - - /// - /// Gets or Sets UserIds - /// - [DataMember(Name="userIds", EmitDefaultValue=false)] - public List UserIds { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkReassignRequest {\n"); - sb.Append(" UserIds: ").Append(UserIds).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkReassignRequest); - } - - /// - /// Returns true if TaskWorkReassignRequest instances are equal - /// - /// Instance of TaskWorkReassignRequest to be compared - /// Boolean - public bool Equals(TaskWorkReassignRequest input) - { - if (input == null) - return false; - - return - ( - this.UserIds == input.UserIds || - this.UserIds != null && - this.UserIds.SequenceEqual(input.UserIds) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.UserIds != null) - hashCode = hashCode * 59 + this.UserIds.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkRequestDTO.cs deleted file mode 100644 index b1a404c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkRequestDTO.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TaskWorkRequestDTO - /// - [DataContract] - public partial class TaskWorkRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// select. - /// workFlowIds. - /// taskWorkIds. - public TaskWorkRequestDTO(SelectDTO select = default(SelectDTO), List workFlowIds = default(List), List taskWorkIds = default(List)) - { - this.Select = select; - this.WorkFlowIds = workFlowIds; - this.TaskWorkIds = taskWorkIds; - } - - /// - /// Gets or Sets Select - /// - [DataMember(Name="select", EmitDefaultValue=false)] - public SelectDTO Select { get; set; } - - /// - /// Gets or Sets WorkFlowIds - /// - [DataMember(Name="workFlowIds", EmitDefaultValue=false)] - public List WorkFlowIds { get; set; } - - /// - /// Gets or Sets TaskWorkIds - /// - [DataMember(Name="taskWorkIds", EmitDefaultValue=false)] - public List TaskWorkIds { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkRequestDTO {\n"); - sb.Append(" Select: ").Append(Select).Append("\n"); - sb.Append(" WorkFlowIds: ").Append(WorkFlowIds).Append("\n"); - sb.Append(" TaskWorkIds: ").Append(TaskWorkIds).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkRequestDTO); - } - - /// - /// Returns true if TaskWorkRequestDTO instances are equal - /// - /// Instance of TaskWorkRequestDTO to be compared - /// Boolean - public bool Equals(TaskWorkRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Select == input.Select || - (this.Select != null && - this.Select.Equals(input.Select)) - ) && - ( - this.WorkFlowIds == input.WorkFlowIds || - this.WorkFlowIds != null && - this.WorkFlowIds.SequenceEqual(input.WorkFlowIds) - ) && - ( - this.TaskWorkIds == input.TaskWorkIds || - this.TaskWorkIds != null && - this.TaskWorkIds.SequenceEqual(input.TaskWorkIds) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Select != null) - hashCode = hashCode * 59 + this.Select.GetHashCode(); - if (this.WorkFlowIds != null) - hashCode = hashCode * 59 + this.WorkFlowIds.GetHashCode(); - if (this.TaskWorkIds != null) - hashCode = hashCode * 59 + this.TaskWorkIds.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkSignOperationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkSignOperationDTO.cs deleted file mode 100644 index d1a02a5..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkSignOperationDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TaskWork sign operation DTO - /// - [DataContract] - public partial class TaskWorkSignOperationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Id. - /// Operation description. - /// Possible values: 0: No 1: Yes 2: BasedOnOutcome . - /// Executed. - /// Array of sign configuration. - public TaskWorkSignOperationDTO(int? id = default(int?), string description = default(string), int? requiredModeEnum = default(int?), bool? isExecuted = default(bool?), List taskWorkDocumentSignConfigurations = default(List)) - { - this.Id = id; - this.Description = description; - this.RequiredModeEnum = requiredModeEnum; - this.IsExecuted = isExecuted; - this.TaskWorkDocumentSignConfigurations = taskWorkDocumentSignConfigurations; - } - - /// - /// Id - /// - /// Id - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Operation description - /// - /// Operation description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 0: No 1: Yes 2: BasedOnOutcome - /// - /// Possible values: 0: No 1: Yes 2: BasedOnOutcome - [DataMember(Name="requiredModeEnum", EmitDefaultValue=false)] - public int? RequiredModeEnum { get; set; } - - /// - /// Executed - /// - /// Executed - [DataMember(Name="isExecuted", EmitDefaultValue=false)] - public bool? IsExecuted { get; set; } - - /// - /// Array of sign configuration - /// - /// Array of sign configuration - [DataMember(Name="taskWorkDocumentSignConfigurations", EmitDefaultValue=false)] - public List TaskWorkDocumentSignConfigurations { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkSignOperationDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" RequiredModeEnum: ").Append(RequiredModeEnum).Append("\n"); - sb.Append(" IsExecuted: ").Append(IsExecuted).Append("\n"); - sb.Append(" TaskWorkDocumentSignConfigurations: ").Append(TaskWorkDocumentSignConfigurations).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkSignOperationDTO); - } - - /// - /// Returns true if TaskWorkSignOperationDTO instances are equal - /// - /// Instance of TaskWorkSignOperationDTO to be compared - /// Boolean - public bool Equals(TaskWorkSignOperationDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.RequiredModeEnum == input.RequiredModeEnum || - (this.RequiredModeEnum != null && - this.RequiredModeEnum.Equals(input.RequiredModeEnum)) - ) && - ( - this.IsExecuted == input.IsExecuted || - (this.IsExecuted != null && - this.IsExecuted.Equals(input.IsExecuted)) - ) && - ( - this.TaskWorkDocumentSignConfigurations == input.TaskWorkDocumentSignConfigurations || - this.TaskWorkDocumentSignConfigurations != null && - this.TaskWorkDocumentSignConfigurations.SequenceEqual(input.TaskWorkDocumentSignConfigurations) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.RequiredModeEnum != null) - hashCode = hashCode * 59 + this.RequiredModeEnum.GetHashCode(); - if (this.IsExecuted != null) - hashCode = hashCode * 59 + this.IsExecuted.GetHashCode(); - if (this.TaskWorkDocumentSignConfigurations != null) - hashCode = hashCode * 59 + this.TaskWorkDocumentSignConfigurations.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkSignOperationRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkSignOperationRequestDTO.cs deleted file mode 100644 index 8bd15c7..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkSignOperationRequestDTO.cs +++ /dev/null @@ -1,220 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TaskWorkSignOperationRequestDTO - /// - [DataContract] - public partial class TaskWorkSignOperationRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// dmWfSignId. - /// dmTaskWorkId. - /// certId. - /// certExtraId. - /// password. - /// otp. - /// signElementList. - public TaskWorkSignOperationRequestDTO(int? dmWfSignId = default(int?), int? dmTaskWorkId = default(int?), string certId = default(string), string certExtraId = default(string), string password = default(string), string otp = default(string), List signElementList = default(List)) - { - this.DmWfSignId = dmWfSignId; - this.DmTaskWorkId = dmTaskWorkId; - this.CertId = certId; - this.CertExtraId = certExtraId; - this.Password = password; - this.Otp = otp; - this.SignElementList = signElementList; - } - - /// - /// Gets or Sets DmWfSignId - /// - [DataMember(Name="dmWfSignId", EmitDefaultValue=false)] - public int? DmWfSignId { get; set; } - - /// - /// Gets or Sets DmTaskWorkId - /// - [DataMember(Name="dmTaskWorkId", EmitDefaultValue=false)] - public int? DmTaskWorkId { get; set; } - - /// - /// Gets or Sets CertId - /// - [DataMember(Name="certId", EmitDefaultValue=false)] - public string CertId { get; set; } - - /// - /// Gets or Sets CertExtraId - /// - [DataMember(Name="certExtraId", EmitDefaultValue=false)] - public string CertExtraId { get; set; } - - /// - /// Gets or Sets Password - /// - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Gets or Sets Otp - /// - [DataMember(Name="otp", EmitDefaultValue=false)] - public string Otp { get; set; } - - /// - /// Gets or Sets SignElementList - /// - [DataMember(Name="signElementList", EmitDefaultValue=false)] - public List SignElementList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkSignOperationRequestDTO {\n"); - sb.Append(" DmWfSignId: ").Append(DmWfSignId).Append("\n"); - sb.Append(" DmTaskWorkId: ").Append(DmTaskWorkId).Append("\n"); - sb.Append(" CertId: ").Append(CertId).Append("\n"); - sb.Append(" CertExtraId: ").Append(CertExtraId).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Otp: ").Append(Otp).Append("\n"); - sb.Append(" SignElementList: ").Append(SignElementList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkSignOperationRequestDTO); - } - - /// - /// Returns true if TaskWorkSignOperationRequestDTO instances are equal - /// - /// Instance of TaskWorkSignOperationRequestDTO to be compared - /// Boolean - public bool Equals(TaskWorkSignOperationRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.DmWfSignId == input.DmWfSignId || - (this.DmWfSignId != null && - this.DmWfSignId.Equals(input.DmWfSignId)) - ) && - ( - this.DmTaskWorkId == input.DmTaskWorkId || - (this.DmTaskWorkId != null && - this.DmTaskWorkId.Equals(input.DmTaskWorkId)) - ) && - ( - this.CertId == input.CertId || - (this.CertId != null && - this.CertId.Equals(input.CertId)) - ) && - ( - this.CertExtraId == input.CertExtraId || - (this.CertExtraId != null && - this.CertExtraId.Equals(input.CertExtraId)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.Otp == input.Otp || - (this.Otp != null && - this.Otp.Equals(input.Otp)) - ) && - ( - this.SignElementList == input.SignElementList || - this.SignElementList != null && - this.SignElementList.SequenceEqual(input.SignElementList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DmWfSignId != null) - hashCode = hashCode * 59 + this.DmWfSignId.GetHashCode(); - if (this.DmTaskWorkId != null) - hashCode = hashCode * 59 + this.DmTaskWorkId.GetHashCode(); - if (this.CertId != null) - hashCode = hashCode * 59 + this.CertId.GetHashCode(); - if (this.CertExtraId != null) - hashCode = hashCode * 59 + this.CertExtraId.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Otp != null) - hashCode = hashCode * 59 + this.Otp.GetHashCode(); - if (this.SignElementList != null) - hashCode = hashCode * 59 + this.SignElementList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkVariableOperationDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkVariableOperationDTO.cs deleted file mode 100644 index 52f2056..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TaskWorkVariableOperationDTO.cs +++ /dev/null @@ -1,189 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TaskWorkVariableOperationDTO - /// - [DataContract] - public partial class TaskWorkVariableOperationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// processVariables. - /// processVariablesFields. - /// description. - /// Indica se l'operazione di valorizzazione variabili è stata eseguita, è la somma logica di tutte le variabili sono state valorizzate. - /// required. - public TaskWorkVariableOperationDTO(List processVariables = default(List), ProcessVariablesFieldsDTO processVariablesFields = default(ProcessVariablesFieldsDTO), string description = default(string), bool? executed = default(bool?), bool? required = default(bool?)) - { - this.ProcessVariables = processVariables; - this.ProcessVariablesFields = processVariablesFields; - this.Description = description; - this.Executed = executed; - this.Required = required; - } - - /// - /// Gets or Sets ProcessVariables - /// - [DataMember(Name="processVariables", EmitDefaultValue=false)] - public List ProcessVariables { get; set; } - - /// - /// Gets or Sets ProcessVariablesFields - /// - [DataMember(Name="processVariablesFields", EmitDefaultValue=false)] - public ProcessVariablesFieldsDTO ProcessVariablesFields { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Indica se l'operazione di valorizzazione variabili è stata eseguita, è la somma logica di tutte le variabili sono state valorizzate - /// - /// Indica se l'operazione di valorizzazione variabili è stata eseguita, è la somma logica di tutte le variabili sono state valorizzate - [DataMember(Name="executed", EmitDefaultValue=false)] - public bool? Executed { get; set; } - - /// - /// Gets or Sets Required - /// - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskWorkVariableOperationDTO {\n"); - sb.Append(" ProcessVariables: ").Append(ProcessVariables).Append("\n"); - sb.Append(" ProcessVariablesFields: ").Append(ProcessVariablesFields).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Executed: ").Append(Executed).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskWorkVariableOperationDTO); - } - - /// - /// Returns true if TaskWorkVariableOperationDTO instances are equal - /// - /// Instance of TaskWorkVariableOperationDTO to be compared - /// Boolean - public bool Equals(TaskWorkVariableOperationDTO input) - { - if (input == null) - return false; - - return - ( - this.ProcessVariables == input.ProcessVariables || - this.ProcessVariables != null && - this.ProcessVariables.SequenceEqual(input.ProcessVariables) - ) && - ( - this.ProcessVariablesFields == input.ProcessVariablesFields || - (this.ProcessVariablesFields != null && - this.ProcessVariablesFields.Equals(input.ProcessVariablesFields)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Executed == input.Executed || - (this.Executed != null && - this.Executed.Equals(input.Executed)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ProcessVariables != null) - hashCode = hashCode * 59 + this.ProcessVariables.GetHashCode(); - if (this.ProcessVariablesFields != null) - hashCode = hashCode * 59 + this.ProcessVariablesFields.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Executed != null) - hashCode = hashCode * 59 + this.Executed.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TimestampElementRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TimestampElementRequestDTO.cs deleted file mode 100644 index 3ffafaa..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TimestampElementRequestDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of request element to apply timestamp - /// - [DataContract] - public partial class TimestampElementRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Attachment 2: TaskWorkAttachment 14: Profile 74: ProcessDoc . - /// Document Identifier. - /// Document External Identifier. - public TimestampElementRequestDTO(int? tableType = default(int?), string docId = default(string), string docExtraId = default(string)) - { - this.TableType = tableType; - this.DocId = docId; - this.DocExtraId = docExtraId; - } - - /// - /// Possible values: 0: Attachment 2: TaskWorkAttachment 14: Profile 74: ProcessDoc - /// - /// Possible values: 0: Attachment 2: TaskWorkAttachment 14: Profile 74: ProcessDoc - [DataMember(Name="tableType", EmitDefaultValue=false)] - public int? TableType { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docId", EmitDefaultValue=false)] - public string DocId { get; set; } - - /// - /// Document External Identifier - /// - /// Document External Identifier - [DataMember(Name="docExtraId", EmitDefaultValue=false)] - public string DocExtraId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TimestampElementRequestDTO {\n"); - sb.Append(" TableType: ").Append(TableType).Append("\n"); - sb.Append(" DocId: ").Append(DocId).Append("\n"); - sb.Append(" DocExtraId: ").Append(DocExtraId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TimestampElementRequestDTO); - } - - /// - /// Returns true if TimestampElementRequestDTO instances are equal - /// - /// Instance of TimestampElementRequestDTO to be compared - /// Boolean - public bool Equals(TimestampElementRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.TableType == input.TableType || - (this.TableType != null && - this.TableType.Equals(input.TableType)) - ) && - ( - this.DocId == input.DocId || - (this.DocId != null && - this.DocId.Equals(input.DocId)) - ) && - ( - this.DocExtraId == input.DocExtraId || - (this.DocExtraId != null && - this.DocExtraId.Equals(input.DocExtraId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.TableType != null) - hashCode = hashCode * 59 + this.TableType.GetHashCode(); - if (this.DocId != null) - hashCode = hashCode * 59 + this.DocId.GetHashCode(); - if (this.DocExtraId != null) - hashCode = hashCode * 59 + this.DocExtraId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TimestampInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TimestampInfoDTO.cs deleted file mode 100644 index 305dc46..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TimestampInfoDTO.cs +++ /dev/null @@ -1,284 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// TimestampInfoDTO - /// - [DataContract] - public partial class TimestampInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// timestampSignatureInfo. - /// isValid. - /// timestampValidationMessageList. - /// timestampTimeUtc. - /// accurancySeconds. - /// hashAlgorithm. - /// messageImprintDigest. - /// nonce. - /// policy. - /// serialNumber. - /// tsa. - public TimestampInfoDTO(SignatureInfoDTO timestampSignatureInfo = default(SignatureInfoDTO), bool? isValid = default(bool?), List timestampValidationMessageList = default(List), DateTime? timestampTimeUtc = default(DateTime?), string accurancySeconds = default(string), IdValuePairDTO hashAlgorithm = default(IdValuePairDTO), string messageImprintDigest = default(string), string nonce = default(string), string policy = default(string), string serialNumber = default(string), string tsa = default(string)) - { - this.TimestampSignatureInfo = timestampSignatureInfo; - this.IsValid = isValid; - this.TimestampValidationMessageList = timestampValidationMessageList; - this.TimestampTimeUtc = timestampTimeUtc; - this.AccurancySeconds = accurancySeconds; - this.HashAlgorithm = hashAlgorithm; - this.MessageImprintDigest = messageImprintDigest; - this.Nonce = nonce; - this.Policy = policy; - this.SerialNumber = serialNumber; - this.Tsa = tsa; - } - - /// - /// Gets or Sets TimestampSignatureInfo - /// - [DataMember(Name="timestampSignatureInfo", EmitDefaultValue=false)] - public SignatureInfoDTO TimestampSignatureInfo { get; set; } - - /// - /// Gets or Sets IsValid - /// - [DataMember(Name="isValid", EmitDefaultValue=false)] - public bool? IsValid { get; set; } - - /// - /// Gets or Sets TimestampValidationMessageList - /// - [DataMember(Name="timestampValidationMessageList", EmitDefaultValue=false)] - public List TimestampValidationMessageList { get; set; } - - /// - /// Gets or Sets TimestampTimeUtc - /// - [DataMember(Name="timestampTimeUtc", EmitDefaultValue=false)] - public DateTime? TimestampTimeUtc { get; set; } - - /// - /// Gets or Sets AccurancySeconds - /// - [DataMember(Name="accurancySeconds", EmitDefaultValue=false)] - public string AccurancySeconds { get; set; } - - /// - /// Gets or Sets HashAlgorithm - /// - [DataMember(Name="hashAlgorithm", EmitDefaultValue=false)] - public IdValuePairDTO HashAlgorithm { get; set; } - - /// - /// Gets or Sets MessageImprintDigest - /// - [DataMember(Name="messageImprintDigest", EmitDefaultValue=false)] - public string MessageImprintDigest { get; set; } - - /// - /// Gets or Sets Nonce - /// - [DataMember(Name="nonce", EmitDefaultValue=false)] - public string Nonce { get; set; } - - /// - /// Gets or Sets Policy - /// - [DataMember(Name="policy", EmitDefaultValue=false)] - public string Policy { get; set; } - - /// - /// Gets or Sets SerialNumber - /// - [DataMember(Name="serialNumber", EmitDefaultValue=false)] - public string SerialNumber { get; set; } - - /// - /// Gets or Sets Tsa - /// - [DataMember(Name="tsa", EmitDefaultValue=false)] - public string Tsa { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TimestampInfoDTO {\n"); - sb.Append(" TimestampSignatureInfo: ").Append(TimestampSignatureInfo).Append("\n"); - sb.Append(" IsValid: ").Append(IsValid).Append("\n"); - sb.Append(" TimestampValidationMessageList: ").Append(TimestampValidationMessageList).Append("\n"); - sb.Append(" TimestampTimeUtc: ").Append(TimestampTimeUtc).Append("\n"); - sb.Append(" AccurancySeconds: ").Append(AccurancySeconds).Append("\n"); - sb.Append(" HashAlgorithm: ").Append(HashAlgorithm).Append("\n"); - sb.Append(" MessageImprintDigest: ").Append(MessageImprintDigest).Append("\n"); - sb.Append(" Nonce: ").Append(Nonce).Append("\n"); - sb.Append(" Policy: ").Append(Policy).Append("\n"); - sb.Append(" SerialNumber: ").Append(SerialNumber).Append("\n"); - sb.Append(" Tsa: ").Append(Tsa).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TimestampInfoDTO); - } - - /// - /// Returns true if TimestampInfoDTO instances are equal - /// - /// Instance of TimestampInfoDTO to be compared - /// Boolean - public bool Equals(TimestampInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.TimestampSignatureInfo == input.TimestampSignatureInfo || - (this.TimestampSignatureInfo != null && - this.TimestampSignatureInfo.Equals(input.TimestampSignatureInfo)) - ) && - ( - this.IsValid == input.IsValid || - (this.IsValid != null && - this.IsValid.Equals(input.IsValid)) - ) && - ( - this.TimestampValidationMessageList == input.TimestampValidationMessageList || - this.TimestampValidationMessageList != null && - this.TimestampValidationMessageList.SequenceEqual(input.TimestampValidationMessageList) - ) && - ( - this.TimestampTimeUtc == input.TimestampTimeUtc || - (this.TimestampTimeUtc != null && - this.TimestampTimeUtc.Equals(input.TimestampTimeUtc)) - ) && - ( - this.AccurancySeconds == input.AccurancySeconds || - (this.AccurancySeconds != null && - this.AccurancySeconds.Equals(input.AccurancySeconds)) - ) && - ( - this.HashAlgorithm == input.HashAlgorithm || - (this.HashAlgorithm != null && - this.HashAlgorithm.Equals(input.HashAlgorithm)) - ) && - ( - this.MessageImprintDigest == input.MessageImprintDigest || - (this.MessageImprintDigest != null && - this.MessageImprintDigest.Equals(input.MessageImprintDigest)) - ) && - ( - this.Nonce == input.Nonce || - (this.Nonce != null && - this.Nonce.Equals(input.Nonce)) - ) && - ( - this.Policy == input.Policy || - (this.Policy != null && - this.Policy.Equals(input.Policy)) - ) && - ( - this.SerialNumber == input.SerialNumber || - (this.SerialNumber != null && - this.SerialNumber.Equals(input.SerialNumber)) - ) && - ( - this.Tsa == input.Tsa || - (this.Tsa != null && - this.Tsa.Equals(input.Tsa)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.TimestampSignatureInfo != null) - hashCode = hashCode * 59 + this.TimestampSignatureInfo.GetHashCode(); - if (this.IsValid != null) - hashCode = hashCode * 59 + this.IsValid.GetHashCode(); - if (this.TimestampValidationMessageList != null) - hashCode = hashCode * 59 + this.TimestampValidationMessageList.GetHashCode(); - if (this.TimestampTimeUtc != null) - hashCode = hashCode * 59 + this.TimestampTimeUtc.GetHashCode(); - if (this.AccurancySeconds != null) - hashCode = hashCode * 59 + this.AccurancySeconds.GetHashCode(); - if (this.HashAlgorithm != null) - hashCode = hashCode * 59 + this.HashAlgorithm.GetHashCode(); - if (this.MessageImprintDigest != null) - hashCode = hashCode * 59 + this.MessageImprintDigest.GetHashCode(); - if (this.Nonce != null) - hashCode = hashCode * 59 + this.Nonce.GetHashCode(); - if (this.Policy != null) - hashCode = hashCode * 59 + this.Policy.GetHashCode(); - if (this.SerialNumber != null) - hashCode = hashCode * 59 + this.SerialNumber.GetHashCode(); - if (this.Tsa != null) - hashCode = hashCode * 59 + this.Tsa.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TimestampRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TimestampRequestDTO.cs deleted file mode 100644 index b9a0e0a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TimestampRequestDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of request to apply timestamp - /// - [DataContract] - public partial class TimestampRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Timestamp Identifier. - /// Items. - public TimestampRequestDTO(string tsaId = default(string), List timestampElementList = default(List)) - { - this.TsaId = tsaId; - this.TimestampElementList = timestampElementList; - } - - /// - /// Timestamp Identifier - /// - /// Timestamp Identifier - [DataMember(Name="tsaId", EmitDefaultValue=false)] - public string TsaId { get; set; } - - /// - /// Items - /// - /// Items - [DataMember(Name="timestampElementList", EmitDefaultValue=false)] - public List TimestampElementList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TimestampRequestDTO {\n"); - sb.Append(" TsaId: ").Append(TsaId).Append("\n"); - sb.Append(" TimestampElementList: ").Append(TimestampElementList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TimestampRequestDTO); - } - - /// - /// Returns true if TimestampRequestDTO instances are equal - /// - /// Instance of TimestampRequestDTO to be compared - /// Boolean - public bool Equals(TimestampRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.TsaId == input.TsaId || - (this.TsaId != null && - this.TsaId.Equals(input.TsaId)) - ) && - ( - this.TimestampElementList == input.TimestampElementList || - this.TimestampElementList != null && - this.TimestampElementList.SequenceEqual(input.TimestampElementList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.TsaId != null) - hashCode = hashCode * 59 + this.TsaId.GetHashCode(); - if (this.TimestampElementList != null) - hashCode = hashCode * 59 + this.TimestampElementList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TimestampResponseDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TimestampResponseDTO.cs deleted file mode 100644 index 10d9d92..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TimestampResponseDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of response to apply timestamp - /// - [DataContract] - public partial class TimestampResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Timestamp Information. - /// Rerquest Identifier. - public TimestampResponseDTO(TsaDTO tsa = default(TsaDTO), string timestampRequestId = default(string)) - { - this.Tsa = tsa; - this.TimestampRequestId = timestampRequestId; - } - - /// - /// Timestamp Information - /// - /// Timestamp Information - [DataMember(Name="tsa", EmitDefaultValue=false)] - public TsaDTO Tsa { get; set; } - - /// - /// Rerquest Identifier - /// - /// Rerquest Identifier - [DataMember(Name="timestampRequestId", EmitDefaultValue=false)] - public string TimestampRequestId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TimestampResponseDTO {\n"); - sb.Append(" Tsa: ").Append(Tsa).Append("\n"); - sb.Append(" TimestampRequestId: ").Append(TimestampRequestId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TimestampResponseDTO); - } - - /// - /// Returns true if TimestampResponseDTO instances are equal - /// - /// Instance of TimestampResponseDTO to be compared - /// Boolean - public bool Equals(TimestampResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.Tsa == input.Tsa || - (this.Tsa != null && - this.Tsa.Equals(input.Tsa)) - ) && - ( - this.TimestampRequestId == input.TimestampRequestId || - (this.TimestampRequestId != null && - this.TimestampRequestId.Equals(input.TimestampRequestId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Tsa != null) - hashCode = hashCode * 59 + this.Tsa.GetHashCode(); - if (this.TimestampRequestId != null) - hashCode = hashCode * 59 + this.TimestampRequestId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ToFieldDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ToFieldDTO.cs deleted file mode 100644 index 53d8800..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ToFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class to - /// - [DataContract] - public partial class ToFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ToFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// To List value. - public ToFieldDTO(List value = default(List), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "ToFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// To List value - /// - /// To List value - [DataMember(Name="value", EmitDefaultValue=false)] - public List Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ToFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ToFieldDTO); - } - - /// - /// Returns true if ToFieldDTO instances are equal - /// - /// Instance of ToFieldDTO to be compared - /// Boolean - public bool Equals(ToFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - this.Value != null && - this.Value.SequenceEqual(input.Value) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TsaDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TsaDTO.cs deleted file mode 100644 index e057351..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TsaDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of timestamp - /// - [DataContract] - public partial class TsaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - /// Url Address. - /// Account Name. - /// Password is set. - /// Enabled. - /// Port Number. - /// Role Name. - /// Possible values: 0: SHA1 1: SHA256 . - /// Timespamp Protocol. - public TsaDTO(string id = default(string), string description = default(string), string url = default(string), string username = default(string), bool? passwordIsSet = default(bool?), bool? enabled = default(bool?), int? port = default(int?), string executeRoleName = default(string), int? hashAlgorithm = default(int?), TsaProtocolDTO protocolType = default(TsaProtocolDTO)) - { - this.Id = id; - this.Description = description; - this.Url = url; - this.Username = username; - this.PasswordIsSet = passwordIsSet; - this.Enabled = enabled; - this.Port = port; - this.ExecuteRoleName = executeRoleName; - this.HashAlgorithm = hashAlgorithm; - this.ProtocolType = protocolType; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Url Address - /// - /// Url Address - [DataMember(Name="url", EmitDefaultValue=false)] - public string Url { get; set; } - - /// - /// Account Name - /// - /// Account Name - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password is set - /// - /// Password is set - [DataMember(Name="passwordIsSet", EmitDefaultValue=false)] - public bool? PasswordIsSet { get; set; } - - /// - /// Enabled - /// - /// Enabled - [DataMember(Name="enabled", EmitDefaultValue=false)] - public bool? Enabled { get; set; } - - /// - /// Port Number - /// - /// Port Number - [DataMember(Name="port", EmitDefaultValue=false)] - public int? Port { get; set; } - - /// - /// Role Name - /// - /// Role Name - [DataMember(Name="executeRoleName", EmitDefaultValue=false)] - public string ExecuteRoleName { get; set; } - - /// - /// Possible values: 0: SHA1 1: SHA256 - /// - /// Possible values: 0: SHA1 1: SHA256 - [DataMember(Name="hashAlgorithm", EmitDefaultValue=false)] - public int? HashAlgorithm { get; set; } - - /// - /// Timespamp Protocol - /// - /// Timespamp Protocol - [DataMember(Name="protocolType", EmitDefaultValue=false)] - public TsaProtocolDTO ProtocolType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TsaDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Url: ").Append(Url).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" PasswordIsSet: ").Append(PasswordIsSet).Append("\n"); - sb.Append(" Enabled: ").Append(Enabled).Append("\n"); - sb.Append(" Port: ").Append(Port).Append("\n"); - sb.Append(" ExecuteRoleName: ").Append(ExecuteRoleName).Append("\n"); - sb.Append(" HashAlgorithm: ").Append(HashAlgorithm).Append("\n"); - sb.Append(" ProtocolType: ").Append(ProtocolType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TsaDTO); - } - - /// - /// Returns true if TsaDTO instances are equal - /// - /// Instance of TsaDTO to be compared - /// Boolean - public bool Equals(TsaDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Url == input.Url || - (this.Url != null && - this.Url.Equals(input.Url)) - ) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.PasswordIsSet == input.PasswordIsSet || - (this.PasswordIsSet != null && - this.PasswordIsSet.Equals(input.PasswordIsSet)) - ) && - ( - this.Enabled == input.Enabled || - (this.Enabled != null && - this.Enabled.Equals(input.Enabled)) - ) && - ( - this.Port == input.Port || - (this.Port != null && - this.Port.Equals(input.Port)) - ) && - ( - this.ExecuteRoleName == input.ExecuteRoleName || - (this.ExecuteRoleName != null && - this.ExecuteRoleName.Equals(input.ExecuteRoleName)) - ) && - ( - this.HashAlgorithm == input.HashAlgorithm || - (this.HashAlgorithm != null && - this.HashAlgorithm.Equals(input.HashAlgorithm)) - ) && - ( - this.ProtocolType == input.ProtocolType || - (this.ProtocolType != null && - this.ProtocolType.Equals(input.ProtocolType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Url != null) - hashCode = hashCode * 59 + this.Url.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.PasswordIsSet != null) - hashCode = hashCode * 59 + this.PasswordIsSet.GetHashCode(); - if (this.Enabled != null) - hashCode = hashCode * 59 + this.Enabled.GetHashCode(); - if (this.Port != null) - hashCode = hashCode * 59 + this.Port.GetHashCode(); - if (this.ExecuteRoleName != null) - hashCode = hashCode * 59 + this.ExecuteRoleName.GetHashCode(); - if (this.HashAlgorithm != null) - hashCode = hashCode * 59 + this.HashAlgorithm.GetHashCode(); - if (this.ProtocolType != null) - hashCode = hashCode * 59 + this.ProtocolType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TsaInsertDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TsaInsertDTO.cs deleted file mode 100644 index 29675ce..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TsaInsertDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of timestamp to insert - /// - [DataContract] - public partial class TsaInsertDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Description. - /// Url Address. - /// Account Name. - /// Password. - /// Enabled. - /// Port Number. - /// Possible values: 0: HTTP_HTTPS 1: TCP . - public TsaInsertDTO(string description = default(string), string url = default(string), string username = default(string), string password = default(string), bool? enabled = default(bool?), int? port = default(int?), int? protocolType = default(int?)) - { - this.Description = description; - this.Url = url; - this.Username = username; - this.Password = password; - this.Enabled = enabled; - this.Port = port; - this.ProtocolType = protocolType; - } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Url Address - /// - /// Url Address - [DataMember(Name="url", EmitDefaultValue=false)] - public string Url { get; set; } - - /// - /// Account Name - /// - /// Account Name - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Enabled - /// - /// Enabled - [DataMember(Name="enabled", EmitDefaultValue=false)] - public bool? Enabled { get; set; } - - /// - /// Port Number - /// - /// Port Number - [DataMember(Name="port", EmitDefaultValue=false)] - public int? Port { get; set; } - - /// - /// Possible values: 0: HTTP_HTTPS 1: TCP - /// - /// Possible values: 0: HTTP_HTTPS 1: TCP - [DataMember(Name="protocolType", EmitDefaultValue=false)] - public int? ProtocolType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TsaInsertDTO {\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Url: ").Append(Url).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Enabled: ").Append(Enabled).Append("\n"); - sb.Append(" Port: ").Append(Port).Append("\n"); - sb.Append(" ProtocolType: ").Append(ProtocolType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TsaInsertDTO); - } - - /// - /// Returns true if TsaInsertDTO instances are equal - /// - /// Instance of TsaInsertDTO to be compared - /// Boolean - public bool Equals(TsaInsertDTO input) - { - if (input == null) - return false; - - return - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Url == input.Url || - (this.Url != null && - this.Url.Equals(input.Url)) - ) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.Enabled == input.Enabled || - (this.Enabled != null && - this.Enabled.Equals(input.Enabled)) - ) && - ( - this.Port == input.Port || - (this.Port != null && - this.Port.Equals(input.Port)) - ) && - ( - this.ProtocolType == input.ProtocolType || - (this.ProtocolType != null && - this.ProtocolType.Equals(input.ProtocolType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Url != null) - hashCode = hashCode * 59 + this.Url.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Enabled != null) - hashCode = hashCode * 59 + this.Enabled.GetHashCode(); - if (this.Port != null) - hashCode = hashCode * 59 + this.Port.GetHashCode(); - if (this.ProtocolType != null) - hashCode = hashCode * 59 + this.ProtocolType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TsaProtocolDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TsaProtocolDTO.cs deleted file mode 100644 index 3ecc90e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TsaProtocolDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of timestamp account protocol - /// - [DataContract] - public partial class TsaProtocolDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: HTTP_HTTPS 1: TCP . - /// Name. - /// Description. - public TsaProtocolDTO(int? tsaProtocol = default(int?), string name = default(string), string description = default(string)) - { - this.TsaProtocol = tsaProtocol; - this.Name = name; - this.Description = description; - } - - /// - /// Possible values: 0: HTTP_HTTPS 1: TCP - /// - /// Possible values: 0: HTTP_HTTPS 1: TCP - [DataMember(Name="tsaProtocol", EmitDefaultValue=false)] - public int? TsaProtocol { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TsaProtocolDTO {\n"); - sb.Append(" TsaProtocol: ").Append(TsaProtocol).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TsaProtocolDTO); - } - - /// - /// Returns true if TsaProtocolDTO instances are equal - /// - /// Instance of TsaProtocolDTO to be compared - /// Boolean - public bool Equals(TsaProtocolDTO input) - { - if (input == null) - return false; - - return - ( - this.TsaProtocol == input.TsaProtocol || - (this.TsaProtocol != null && - this.TsaProtocol.Equals(input.TsaProtocol)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.TsaProtocol != null) - hashCode = hashCode * 59 + this.TsaProtocol.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/TsaUpdateDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/TsaUpdateDTO.cs deleted file mode 100644 index fef8fe3..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/TsaUpdateDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of timestamp to update - /// - [DataContract] - public partial class TsaUpdateDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Description. - /// Url Address. - /// Account Name. - /// Password. - /// Updated Password. - /// Enabled. - /// Port Number. - /// Possible values: 0: HTTP_HTTPS 1: TCP . - public TsaUpdateDTO(string description = default(string), string url = default(string), string username = default(string), string password = default(string), bool? updatePassword = default(bool?), bool? enabled = default(bool?), int? port = default(int?), int? protocolType = default(int?)) - { - this.Description = description; - this.Url = url; - this.Username = username; - this.Password = password; - this.UpdatePassword = updatePassword; - this.Enabled = enabled; - this.Port = port; - this.ProtocolType = protocolType; - } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Url Address - /// - /// Url Address - [DataMember(Name="url", EmitDefaultValue=false)] - public string Url { get; set; } - - /// - /// Account Name - /// - /// Account Name - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Updated Password - /// - /// Updated Password - [DataMember(Name="updatePassword", EmitDefaultValue=false)] - public bool? UpdatePassword { get; set; } - - /// - /// Enabled - /// - /// Enabled - [DataMember(Name="enabled", EmitDefaultValue=false)] - public bool? Enabled { get; set; } - - /// - /// Port Number - /// - /// Port Number - [DataMember(Name="port", EmitDefaultValue=false)] - public int? Port { get; set; } - - /// - /// Possible values: 0: HTTP_HTTPS 1: TCP - /// - /// Possible values: 0: HTTP_HTTPS 1: TCP - [DataMember(Name="protocolType", EmitDefaultValue=false)] - public int? ProtocolType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TsaUpdateDTO {\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Url: ").Append(Url).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" UpdatePassword: ").Append(UpdatePassword).Append("\n"); - sb.Append(" Enabled: ").Append(Enabled).Append("\n"); - sb.Append(" Port: ").Append(Port).Append("\n"); - sb.Append(" ProtocolType: ").Append(ProtocolType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TsaUpdateDTO); - } - - /// - /// Returns true if TsaUpdateDTO instances are equal - /// - /// Instance of TsaUpdateDTO to be compared - /// Boolean - public bool Equals(TsaUpdateDTO input) - { - if (input == null) - return false; - - return - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Url == input.Url || - (this.Url != null && - this.Url.Equals(input.Url)) - ) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.UpdatePassword == input.UpdatePassword || - (this.UpdatePassword != null && - this.UpdatePassword.Equals(input.UpdatePassword)) - ) && - ( - this.Enabled == input.Enabled || - (this.Enabled != null && - this.Enabled.Equals(input.Enabled)) - ) && - ( - this.Port == input.Port || - (this.Port != null && - this.Port.Equals(input.Port)) - ) && - ( - this.ProtocolType == input.ProtocolType || - (this.ProtocolType != null && - this.ProtocolType.Equals(input.ProtocolType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Url != null) - hashCode = hashCode * 59 + this.Url.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.UpdatePassword != null) - hashCode = hashCode * 59 + this.UpdatePassword.GetHashCode(); - if (this.Enabled != null) - hashCode = hashCode * 59 + this.Enabled.GetHashCode(); - if (this.Port != null) - hashCode = hashCode * 59 + this.Port.GetHashCode(); - if (this.ProtocolType != null) - hashCode = hashCode * 59 + this.ProtocolType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UpdateDocumentRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/UpdateDocumentRequestDTO.cs deleted file mode 100644 index 7ff463c..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UpdateDocumentRequestDTO.cs +++ /dev/null @@ -1,157 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Close document for external app request - /// - [DataContract] - public partial class UpdateDocumentRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// idDocument. - /// cacheFileId. - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite . - public UpdateDocumentRequestDTO(string idDocument = default(string), string cacheFileId = default(string), int? updateOption = default(int?)) - { - this.IdDocument = idDocument; - this.CacheFileId = cacheFileId; - this.UpdateOption = updateOption; - } - - /// - /// Gets or Sets IdDocument - /// - [DataMember(Name="idDocument", EmitDefaultValue=false)] - public string IdDocument { get; set; } - - /// - /// Gets or Sets CacheFileId - /// - [DataMember(Name="cacheFileId", EmitDefaultValue=false)] - public string CacheFileId { get; set; } - - /// - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - /// - /// Possible values: 0: None 1: ForceRevision 2: ForceOverWrite - [DataMember(Name="updateOption", EmitDefaultValue=false)] - public int? UpdateOption { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UpdateDocumentRequestDTO {\n"); - sb.Append(" IdDocument: ").Append(IdDocument).Append("\n"); - sb.Append(" CacheFileId: ").Append(CacheFileId).Append("\n"); - sb.Append(" UpdateOption: ").Append(UpdateOption).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UpdateDocumentRequestDTO); - } - - /// - /// Returns true if UpdateDocumentRequestDTO instances are equal - /// - /// Instance of UpdateDocumentRequestDTO to be compared - /// Boolean - public bool Equals(UpdateDocumentRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.IdDocument == input.IdDocument || - (this.IdDocument != null && - this.IdDocument.Equals(input.IdDocument)) - ) && - ( - this.CacheFileId == input.CacheFileId || - (this.CacheFileId != null && - this.CacheFileId.Equals(input.CacheFileId)) - ) && - ( - this.UpdateOption == input.UpdateOption || - (this.UpdateOption != null && - this.UpdateOption.Equals(input.UpdateOption)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IdDocument != null) - hashCode = hashCode * 59 + this.IdDocument.GetHashCode(); - if (this.CacheFileId != null) - hashCode = hashCode * 59 + this.CacheFileId.GetHashCode(); - if (this.UpdateOption != null) - hashCode = hashCode * 59 + this.UpdateOption.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UpdateFieldTranslationRequest.cs b/ACUtils.AXRepository/ArxivarNext/Model/UpdateFieldTranslationRequest.cs deleted file mode 100644 index 72a5fdd..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UpdateFieldTranslationRequest.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Dto for update field translation - /// - [DataContract] - public partial class UpdateFieldTranslationRequest : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Teanslation of field. - public UpdateFieldTranslationRequest(List translations = default(List)) - { - this.Translations = translations; - } - - /// - /// Teanslation of field - /// - /// Teanslation of field - [DataMember(Name="translations", EmitDefaultValue=false)] - public List Translations { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UpdateFieldTranslationRequest {\n"); - sb.Append(" Translations: ").Append(Translations).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UpdateFieldTranslationRequest); - } - - /// - /// Returns true if UpdateFieldTranslationRequest instances are equal - /// - /// Instance of UpdateFieldTranslationRequest to be compared - /// Boolean - public bool Equals(UpdateFieldTranslationRequest input) - { - if (input == null) - return false; - - return - ( - this.Translations == input.Translations || - this.Translations != null && - this.Translations.SequenceEqual(input.Translations) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Translations != null) - hashCode = hashCode * 59 + this.Translations.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UserCompleteDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/UserCompleteDTO.cs deleted file mode 100644 index a361224..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UserCompleteDTO.cs +++ /dev/null @@ -1,1060 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Base class of user with identifier - /// - [DataContract] - public partial class UserCompleteDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// New Password. - /// Predefined Profile Identifier. - /// Count of the failed attempts to change password. - /// Last failed Attempt to change password. - /// Ip Address used by failed change password. - /// User Date Blocked. - /// Full Name. - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler . - /// Description. - /// Email. - /// Business Unit. - /// Password. - /// Default Document Type of First Level. - /// Default Document Type of Second Level. - /// Default Document Type of Third Level. - /// Personal Fax. - /// Date of last reading email. - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D . - /// Enabling Workflow Management. - /// Default Document Status. - /// Enabling to insert new address book items into profiling. - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto . - /// Email Server. - /// Access via Web. - /// Enabled to Import. - /// Enabled to OCR. - /// Enabled to Workflow. - /// Enabled to Sign. - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal . - /// Enabled to Public Amministration (PA) Protocol. - /// Enabled to Templates. - /// Domain. - /// Out Status. - /// Email Body. - /// Enabled to Notify. - /// Mailer client. - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione . - /// Person in Charge of AOS. - /// Enabled to Profile Manual Emails. - /// Fiscal Code. - /// Pin. - /// Guest. - /// Change Password. - /// Imagine for the Digital Signature. - /// Type. - /// Enabled to Profile Manual Outgoing Emails. - /// Enabled to Barcode. - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew . - /// Language. - /// Enabled to IX service.. - /// Disabled Expired Password. - /// Full Description. - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Enable the user to view the workflow information. - public UserCompleteDTO(int? user = default(int?), string passwordNew = default(string), int? profileDefaultId = default(int?), int? pswFailCount = default(int?), DateTime? pswLastFailDate = default(DateTime?), string pswFailIpCaller = default(string), DateTime? lockOutDateTimeUtc = default(DateTime?), string completeName = default(string), int? group = default(int?), string description = default(string), string email = default(string), string businessUnit = default(string), string password = default(string), int? defaultType = default(int?), int? type2 = default(int?), int? type3 = default(int?), string internalFax = default(string), DateTime? lastMail = default(DateTime?), int? category = default(int?), bool? workflow = default(bool?), string defaultState = default(string), bool? addressBook = default(bool?), int? userState = default(int?), string mailServer = default(string), bool? webAccess = default(bool?), bool? upload = default(bool?), bool? folders = default(bool?), bool? flow = default(bool?), bool? sign = default(bool?), int? viewer = default(int?), bool? protocol = default(bool?), bool? models = default(bool?), string domain = default(string), string outState = default(string), string mailBody = default(string), bool? notify = default(bool?), string mailClient = default(string), int? htmlBody = default(int?), bool? respAos = default(bool?), bool? assAos = default(bool?), string codFis = default(string), string pin = default(string), bool? guest = default(bool?), bool? passwordChange = default(bool?), byte[] marking = default(byte[]), int? type = default(int?), bool? mailOutDefault = default(bool?), bool? barcodeAccess = default(bool?), int? mustChangePassword = default(int?), string lang = default(string), bool? ws = default(bool?), bool? disablePswExpired = default(bool?), string completeDescription = default(string), int? canAddVirtualStamps = default(int?), int? canApplyStaps = default(int?), bool? viewFlow = default(bool?)) - { - this.User = user; - this.PasswordNew = passwordNew; - this.ProfileDefaultId = profileDefaultId; - this.PswFailCount = pswFailCount; - this.PswLastFailDate = pswLastFailDate; - this.PswFailIpCaller = pswFailIpCaller; - this.LockOutDateTimeUtc = lockOutDateTimeUtc; - this.CompleteName = completeName; - this.Group = group; - this.Description = description; - this.Email = email; - this.BusinessUnit = businessUnit; - this.Password = password; - this.DefaultType = defaultType; - this.Type2 = type2; - this.Type3 = type3; - this.InternalFax = internalFax; - this.LastMail = lastMail; - this.Category = category; - this.Workflow = workflow; - this.DefaultState = defaultState; - this.AddressBook = addressBook; - this.UserState = userState; - this.MailServer = mailServer; - this.WebAccess = webAccess; - this.Upload = upload; - this.Folders = folders; - this.Flow = flow; - this.Sign = sign; - this.Viewer = viewer; - this.Protocol = protocol; - this.Models = models; - this.Domain = domain; - this.OutState = outState; - this.MailBody = mailBody; - this.Notify = notify; - this.MailClient = mailClient; - this.HtmlBody = htmlBody; - this.RespAos = respAos; - this.AssAos = assAos; - this.CodFis = codFis; - this.Pin = pin; - this.Guest = guest; - this.PasswordChange = passwordChange; - this.Marking = marking; - this.Type = type; - this.MailOutDefault = mailOutDefault; - this.BarcodeAccess = barcodeAccess; - this.MustChangePassword = mustChangePassword; - this.Lang = lang; - this.Ws = ws; - this.DisablePswExpired = disablePswExpired; - this.CompleteDescription = completeDescription; - this.CanAddVirtualStamps = canAddVirtualStamps; - this.CanApplyStaps = canApplyStaps; - this.ViewFlow = viewFlow; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// New Password - /// - /// New Password - [DataMember(Name="passwordNew", EmitDefaultValue=false)] - public string PasswordNew { get; set; } - - /// - /// Predefined Profile Identifier - /// - /// Predefined Profile Identifier - [DataMember(Name="profileDefault_Id", EmitDefaultValue=false)] - public int? ProfileDefaultId { get; set; } - - /// - /// Count of the failed attempts to change password - /// - /// Count of the failed attempts to change password - [DataMember(Name="pswFailCount", EmitDefaultValue=false)] - public int? PswFailCount { get; set; } - - /// - /// Last failed Attempt to change password - /// - /// Last failed Attempt to change password - [DataMember(Name="pswLastFailDate", EmitDefaultValue=false)] - public DateTime? PswLastFailDate { get; set; } - - /// - /// Ip Address used by failed change password - /// - /// Ip Address used by failed change password - [DataMember(Name="pswFailIpCaller", EmitDefaultValue=false)] - public string PswFailIpCaller { get; set; } - - /// - /// User Date Blocked - /// - /// User Date Blocked - [DataMember(Name="lockOutDateTimeUtc", EmitDefaultValue=false)] - public DateTime? LockOutDateTimeUtc { get; set; } - - /// - /// Full Name - /// - /// Full Name - [DataMember(Name="completeName", EmitDefaultValue=false)] - public string CompleteName { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - [DataMember(Name="group", EmitDefaultValue=false)] - public int? Group { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Business Unit - /// - /// Business Unit - [DataMember(Name="businessUnit", EmitDefaultValue=false)] - public string BusinessUnit { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Default Document Type of First Level - /// - /// Default Document Type of First Level - [DataMember(Name="defaultType", EmitDefaultValue=false)] - public int? DefaultType { get; set; } - - /// - /// Default Document Type of Second Level - /// - /// Default Document Type of Second Level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Default Document Type of Third Level - /// - /// Default Document Type of Third Level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Personal Fax - /// - /// Personal Fax - [DataMember(Name="internalFax", EmitDefaultValue=false)] - public string InternalFax { get; set; } - - /// - /// Date of last reading email - /// - /// Date of last reading email - [DataMember(Name="lastMail", EmitDefaultValue=false)] - public DateTime? LastMail { get; set; } - - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - [DataMember(Name="category", EmitDefaultValue=false)] - public int? Category { get; set; } - - /// - /// Enabling Workflow Management - /// - /// Enabling Workflow Management - [DataMember(Name="workflow", EmitDefaultValue=false)] - public bool? Workflow { get; set; } - - /// - /// Default Document Status - /// - /// Default Document Status - [DataMember(Name="defaultState", EmitDefaultValue=false)] - public string DefaultState { get; set; } - - /// - /// Enabling to insert new address book items into profiling - /// - /// Enabling to insert new address book items into profiling - [DataMember(Name="addressBook", EmitDefaultValue=false)] - public bool? AddressBook { get; set; } - - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - [DataMember(Name="userState", EmitDefaultValue=false)] - public int? UserState { get; set; } - - /// - /// Email Server - /// - /// Email Server - [DataMember(Name="mailServer", EmitDefaultValue=false)] - public string MailServer { get; set; } - - /// - /// Access via Web - /// - /// Access via Web - [DataMember(Name="webAccess", EmitDefaultValue=false)] - public bool? WebAccess { get; set; } - - /// - /// Enabled to Import - /// - /// Enabled to Import - [DataMember(Name="upload", EmitDefaultValue=false)] - public bool? Upload { get; set; } - - /// - /// Enabled to OCR - /// - /// Enabled to OCR - [DataMember(Name="folders", EmitDefaultValue=false)] - public bool? Folders { get; set; } - - /// - /// Enabled to Workflow - /// - /// Enabled to Workflow - [DataMember(Name="flow", EmitDefaultValue=false)] - public bool? Flow { get; set; } - - /// - /// Enabled to Sign - /// - /// Enabled to Sign - [DataMember(Name="sign", EmitDefaultValue=false)] - public bool? Sign { get; set; } - - /// - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal - /// - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal - [DataMember(Name="viewer", EmitDefaultValue=false)] - public int? Viewer { get; set; } - - /// - /// Enabled to Public Amministration (PA) Protocol - /// - /// Enabled to Public Amministration (PA) Protocol - [DataMember(Name="protocol", EmitDefaultValue=false)] - public bool? Protocol { get; set; } - - /// - /// Enabled to Templates - /// - /// Enabled to Templates - [DataMember(Name="models", EmitDefaultValue=false)] - public bool? Models { get; set; } - - /// - /// Domain - /// - /// Domain - [DataMember(Name="domain", EmitDefaultValue=false)] - public string Domain { get; set; } - - /// - /// Out Status - /// - /// Out Status - [DataMember(Name="outState", EmitDefaultValue=false)] - public string OutState { get; set; } - - /// - /// Email Body - /// - /// Email Body - [DataMember(Name="mailBody", EmitDefaultValue=false)] - public string MailBody { get; set; } - - /// - /// Enabled to Notify - /// - /// Enabled to Notify - [DataMember(Name="notify", EmitDefaultValue=false)] - public bool? Notify { get; set; } - - /// - /// Mailer client - /// - /// Mailer client - [DataMember(Name="mailClient", EmitDefaultValue=false)] - public string MailClient { get; set; } - - /// - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione - /// - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione - [DataMember(Name="htmlBody", EmitDefaultValue=false)] - public int? HtmlBody { get; set; } - - /// - /// Person in Charge of AOS - /// - /// Person in Charge of AOS - [DataMember(Name="respAos", EmitDefaultValue=false)] - public bool? RespAos { get; set; } - - /// - /// Enabled to Profile Manual Emails - /// - /// Enabled to Profile Manual Emails - [DataMember(Name="assAos", EmitDefaultValue=false)] - public bool? AssAos { get; set; } - - /// - /// Fiscal Code - /// - /// Fiscal Code - [DataMember(Name="codFis", EmitDefaultValue=false)] - public string CodFis { get; set; } - - /// - /// Pin - /// - /// Pin - [DataMember(Name="pin", EmitDefaultValue=false)] - public string Pin { get; set; } - - /// - /// Guest - /// - /// Guest - [DataMember(Name="guest", EmitDefaultValue=false)] - public bool? Guest { get; set; } - - /// - /// Change Password - /// - /// Change Password - [DataMember(Name="passwordChange", EmitDefaultValue=false)] - public bool? PasswordChange { get; set; } - - /// - /// Imagine for the Digital Signature - /// - /// Imagine for the Digital Signature - [DataMember(Name="marking", EmitDefaultValue=false)] - public byte[] Marking { get; set; } - - /// - /// Type - /// - /// Type - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Enabled to Profile Manual Outgoing Emails - /// - /// Enabled to Profile Manual Outgoing Emails - [DataMember(Name="mailOutDefault", EmitDefaultValue=false)] - public bool? MailOutDefault { get; set; } - - /// - /// Enabled to Barcode - /// - /// Enabled to Barcode - [DataMember(Name="barcodeAccess", EmitDefaultValue=false)] - public bool? BarcodeAccess { get; set; } - - /// - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew - /// - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew - [DataMember(Name="mustChangePassword", EmitDefaultValue=false)] - public int? MustChangePassword { get; set; } - - /// - /// Language - /// - /// Language - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Enabled to IX service. - /// - /// Enabled to IX service. - [DataMember(Name="ws", EmitDefaultValue=false)] - public bool? Ws { get; set; } - - /// - /// Disabled Expired Password - /// - /// Disabled Expired Password - [DataMember(Name="disablePswExpired", EmitDefaultValue=false)] - public bool? DisablePswExpired { get; set; } - - /// - /// Full Description - /// - /// Full Description - [DataMember(Name="completeDescription", EmitDefaultValue=false)] - public string CompleteDescription { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canAddVirtualStamps", EmitDefaultValue=false)] - public int? CanAddVirtualStamps { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canApplyStaps", EmitDefaultValue=false)] - public int? CanApplyStaps { get; set; } - - /// - /// Enable the user to view the workflow information - /// - /// Enable the user to view the workflow information - [DataMember(Name="viewFlow", EmitDefaultValue=false)] - public bool? ViewFlow { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserCompleteDTO {\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" PasswordNew: ").Append(PasswordNew).Append("\n"); - sb.Append(" ProfileDefaultId: ").Append(ProfileDefaultId).Append("\n"); - sb.Append(" PswFailCount: ").Append(PswFailCount).Append("\n"); - sb.Append(" PswLastFailDate: ").Append(PswLastFailDate).Append("\n"); - sb.Append(" PswFailIpCaller: ").Append(PswFailIpCaller).Append("\n"); - sb.Append(" LockOutDateTimeUtc: ").Append(LockOutDateTimeUtc).Append("\n"); - sb.Append(" CompleteName: ").Append(CompleteName).Append("\n"); - sb.Append(" Group: ").Append(Group).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" DefaultType: ").Append(DefaultType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append(" InternalFax: ").Append(InternalFax).Append("\n"); - sb.Append(" LastMail: ").Append(LastMail).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" Workflow: ").Append(Workflow).Append("\n"); - sb.Append(" DefaultState: ").Append(DefaultState).Append("\n"); - sb.Append(" AddressBook: ").Append(AddressBook).Append("\n"); - sb.Append(" UserState: ").Append(UserState).Append("\n"); - sb.Append(" MailServer: ").Append(MailServer).Append("\n"); - sb.Append(" WebAccess: ").Append(WebAccess).Append("\n"); - sb.Append(" Upload: ").Append(Upload).Append("\n"); - sb.Append(" Folders: ").Append(Folders).Append("\n"); - sb.Append(" Flow: ").Append(Flow).Append("\n"); - sb.Append(" Sign: ").Append(Sign).Append("\n"); - sb.Append(" Viewer: ").Append(Viewer).Append("\n"); - sb.Append(" Protocol: ").Append(Protocol).Append("\n"); - sb.Append(" Models: ").Append(Models).Append("\n"); - sb.Append(" Domain: ").Append(Domain).Append("\n"); - sb.Append(" OutState: ").Append(OutState).Append("\n"); - sb.Append(" MailBody: ").Append(MailBody).Append("\n"); - sb.Append(" Notify: ").Append(Notify).Append("\n"); - sb.Append(" MailClient: ").Append(MailClient).Append("\n"); - sb.Append(" HtmlBody: ").Append(HtmlBody).Append("\n"); - sb.Append(" RespAos: ").Append(RespAos).Append("\n"); - sb.Append(" AssAos: ").Append(AssAos).Append("\n"); - sb.Append(" CodFis: ").Append(CodFis).Append("\n"); - sb.Append(" Pin: ").Append(Pin).Append("\n"); - sb.Append(" Guest: ").Append(Guest).Append("\n"); - sb.Append(" PasswordChange: ").Append(PasswordChange).Append("\n"); - sb.Append(" Marking: ").Append(Marking).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" MailOutDefault: ").Append(MailOutDefault).Append("\n"); - sb.Append(" BarcodeAccess: ").Append(BarcodeAccess).Append("\n"); - sb.Append(" MustChangePassword: ").Append(MustChangePassword).Append("\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append(" Ws: ").Append(Ws).Append("\n"); - sb.Append(" DisablePswExpired: ").Append(DisablePswExpired).Append("\n"); - sb.Append(" CompleteDescription: ").Append(CompleteDescription).Append("\n"); - sb.Append(" CanAddVirtualStamps: ").Append(CanAddVirtualStamps).Append("\n"); - sb.Append(" CanApplyStaps: ").Append(CanApplyStaps).Append("\n"); - sb.Append(" ViewFlow: ").Append(ViewFlow).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserCompleteDTO); - } - - /// - /// Returns true if UserCompleteDTO instances are equal - /// - /// Instance of UserCompleteDTO to be compared - /// Boolean - public bool Equals(UserCompleteDTO input) - { - if (input == null) - return false; - - return - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.PasswordNew == input.PasswordNew || - (this.PasswordNew != null && - this.PasswordNew.Equals(input.PasswordNew)) - ) && - ( - this.ProfileDefaultId == input.ProfileDefaultId || - (this.ProfileDefaultId != null && - this.ProfileDefaultId.Equals(input.ProfileDefaultId)) - ) && - ( - this.PswFailCount == input.PswFailCount || - (this.PswFailCount != null && - this.PswFailCount.Equals(input.PswFailCount)) - ) && - ( - this.PswLastFailDate == input.PswLastFailDate || - (this.PswLastFailDate != null && - this.PswLastFailDate.Equals(input.PswLastFailDate)) - ) && - ( - this.PswFailIpCaller == input.PswFailIpCaller || - (this.PswFailIpCaller != null && - this.PswFailIpCaller.Equals(input.PswFailIpCaller)) - ) && - ( - this.LockOutDateTimeUtc == input.LockOutDateTimeUtc || - (this.LockOutDateTimeUtc != null && - this.LockOutDateTimeUtc.Equals(input.LockOutDateTimeUtc)) - ) && - ( - this.CompleteName == input.CompleteName || - (this.CompleteName != null && - this.CompleteName.Equals(input.CompleteName)) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.BusinessUnit == input.BusinessUnit || - (this.BusinessUnit != null && - this.BusinessUnit.Equals(input.BusinessUnit)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.DefaultType == input.DefaultType || - (this.DefaultType != null && - this.DefaultType.Equals(input.DefaultType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ) && - ( - this.InternalFax == input.InternalFax || - (this.InternalFax != null && - this.InternalFax.Equals(input.InternalFax)) - ) && - ( - this.LastMail == input.LastMail || - (this.LastMail != null && - this.LastMail.Equals(input.LastMail)) - ) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && - ( - this.Workflow == input.Workflow || - (this.Workflow != null && - this.Workflow.Equals(input.Workflow)) - ) && - ( - this.DefaultState == input.DefaultState || - (this.DefaultState != null && - this.DefaultState.Equals(input.DefaultState)) - ) && - ( - this.AddressBook == input.AddressBook || - (this.AddressBook != null && - this.AddressBook.Equals(input.AddressBook)) - ) && - ( - this.UserState == input.UserState || - (this.UserState != null && - this.UserState.Equals(input.UserState)) - ) && - ( - this.MailServer == input.MailServer || - (this.MailServer != null && - this.MailServer.Equals(input.MailServer)) - ) && - ( - this.WebAccess == input.WebAccess || - (this.WebAccess != null && - this.WebAccess.Equals(input.WebAccess)) - ) && - ( - this.Upload == input.Upload || - (this.Upload != null && - this.Upload.Equals(input.Upload)) - ) && - ( - this.Folders == input.Folders || - (this.Folders != null && - this.Folders.Equals(input.Folders)) - ) && - ( - this.Flow == input.Flow || - (this.Flow != null && - this.Flow.Equals(input.Flow)) - ) && - ( - this.Sign == input.Sign || - (this.Sign != null && - this.Sign.Equals(input.Sign)) - ) && - ( - this.Viewer == input.Viewer || - (this.Viewer != null && - this.Viewer.Equals(input.Viewer)) - ) && - ( - this.Protocol == input.Protocol || - (this.Protocol != null && - this.Protocol.Equals(input.Protocol)) - ) && - ( - this.Models == input.Models || - (this.Models != null && - this.Models.Equals(input.Models)) - ) && - ( - this.Domain == input.Domain || - (this.Domain != null && - this.Domain.Equals(input.Domain)) - ) && - ( - this.OutState == input.OutState || - (this.OutState != null && - this.OutState.Equals(input.OutState)) - ) && - ( - this.MailBody == input.MailBody || - (this.MailBody != null && - this.MailBody.Equals(input.MailBody)) - ) && - ( - this.Notify == input.Notify || - (this.Notify != null && - this.Notify.Equals(input.Notify)) - ) && - ( - this.MailClient == input.MailClient || - (this.MailClient != null && - this.MailClient.Equals(input.MailClient)) - ) && - ( - this.HtmlBody == input.HtmlBody || - (this.HtmlBody != null && - this.HtmlBody.Equals(input.HtmlBody)) - ) && - ( - this.RespAos == input.RespAos || - (this.RespAos != null && - this.RespAos.Equals(input.RespAos)) - ) && - ( - this.AssAos == input.AssAos || - (this.AssAos != null && - this.AssAos.Equals(input.AssAos)) - ) && - ( - this.CodFis == input.CodFis || - (this.CodFis != null && - this.CodFis.Equals(input.CodFis)) - ) && - ( - this.Pin == input.Pin || - (this.Pin != null && - this.Pin.Equals(input.Pin)) - ) && - ( - this.Guest == input.Guest || - (this.Guest != null && - this.Guest.Equals(input.Guest)) - ) && - ( - this.PasswordChange == input.PasswordChange || - (this.PasswordChange != null && - this.PasswordChange.Equals(input.PasswordChange)) - ) && - ( - this.Marking == input.Marking || - (this.Marking != null && - this.Marking.Equals(input.Marking)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.MailOutDefault == input.MailOutDefault || - (this.MailOutDefault != null && - this.MailOutDefault.Equals(input.MailOutDefault)) - ) && - ( - this.BarcodeAccess == input.BarcodeAccess || - (this.BarcodeAccess != null && - this.BarcodeAccess.Equals(input.BarcodeAccess)) - ) && - ( - this.MustChangePassword == input.MustChangePassword || - (this.MustChangePassword != null && - this.MustChangePassword.Equals(input.MustChangePassword)) - ) && - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ) && - ( - this.Ws == input.Ws || - (this.Ws != null && - this.Ws.Equals(input.Ws)) - ) && - ( - this.DisablePswExpired == input.DisablePswExpired || - (this.DisablePswExpired != null && - this.DisablePswExpired.Equals(input.DisablePswExpired)) - ) && - ( - this.CompleteDescription == input.CompleteDescription || - (this.CompleteDescription != null && - this.CompleteDescription.Equals(input.CompleteDescription)) - ) && - ( - this.CanAddVirtualStamps == input.CanAddVirtualStamps || - (this.CanAddVirtualStamps != null && - this.CanAddVirtualStamps.Equals(input.CanAddVirtualStamps)) - ) && - ( - this.CanApplyStaps == input.CanApplyStaps || - (this.CanApplyStaps != null && - this.CanApplyStaps.Equals(input.CanApplyStaps)) - ) && - ( - this.ViewFlow == input.ViewFlow || - (this.ViewFlow != null && - this.ViewFlow.Equals(input.ViewFlow)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.PasswordNew != null) - hashCode = hashCode * 59 + this.PasswordNew.GetHashCode(); - if (this.ProfileDefaultId != null) - hashCode = hashCode * 59 + this.ProfileDefaultId.GetHashCode(); - if (this.PswFailCount != null) - hashCode = hashCode * 59 + this.PswFailCount.GetHashCode(); - if (this.PswLastFailDate != null) - hashCode = hashCode * 59 + this.PswLastFailDate.GetHashCode(); - if (this.PswFailIpCaller != null) - hashCode = hashCode * 59 + this.PswFailIpCaller.GetHashCode(); - if (this.LockOutDateTimeUtc != null) - hashCode = hashCode * 59 + this.LockOutDateTimeUtc.GetHashCode(); - if (this.CompleteName != null) - hashCode = hashCode * 59 + this.CompleteName.GetHashCode(); - if (this.Group != null) - hashCode = hashCode * 59 + this.Group.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.BusinessUnit != null) - hashCode = hashCode * 59 + this.BusinessUnit.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.DefaultType != null) - hashCode = hashCode * 59 + this.DefaultType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - if (this.InternalFax != null) - hashCode = hashCode * 59 + this.InternalFax.GetHashCode(); - if (this.LastMail != null) - hashCode = hashCode * 59 + this.LastMail.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.Workflow != null) - hashCode = hashCode * 59 + this.Workflow.GetHashCode(); - if (this.DefaultState != null) - hashCode = hashCode * 59 + this.DefaultState.GetHashCode(); - if (this.AddressBook != null) - hashCode = hashCode * 59 + this.AddressBook.GetHashCode(); - if (this.UserState != null) - hashCode = hashCode * 59 + this.UserState.GetHashCode(); - if (this.MailServer != null) - hashCode = hashCode * 59 + this.MailServer.GetHashCode(); - if (this.WebAccess != null) - hashCode = hashCode * 59 + this.WebAccess.GetHashCode(); - if (this.Upload != null) - hashCode = hashCode * 59 + this.Upload.GetHashCode(); - if (this.Folders != null) - hashCode = hashCode * 59 + this.Folders.GetHashCode(); - if (this.Flow != null) - hashCode = hashCode * 59 + this.Flow.GetHashCode(); - if (this.Sign != null) - hashCode = hashCode * 59 + this.Sign.GetHashCode(); - if (this.Viewer != null) - hashCode = hashCode * 59 + this.Viewer.GetHashCode(); - if (this.Protocol != null) - hashCode = hashCode * 59 + this.Protocol.GetHashCode(); - if (this.Models != null) - hashCode = hashCode * 59 + this.Models.GetHashCode(); - if (this.Domain != null) - hashCode = hashCode * 59 + this.Domain.GetHashCode(); - if (this.OutState != null) - hashCode = hashCode * 59 + this.OutState.GetHashCode(); - if (this.MailBody != null) - hashCode = hashCode * 59 + this.MailBody.GetHashCode(); - if (this.Notify != null) - hashCode = hashCode * 59 + this.Notify.GetHashCode(); - if (this.MailClient != null) - hashCode = hashCode * 59 + this.MailClient.GetHashCode(); - if (this.HtmlBody != null) - hashCode = hashCode * 59 + this.HtmlBody.GetHashCode(); - if (this.RespAos != null) - hashCode = hashCode * 59 + this.RespAos.GetHashCode(); - if (this.AssAos != null) - hashCode = hashCode * 59 + this.AssAos.GetHashCode(); - if (this.CodFis != null) - hashCode = hashCode * 59 + this.CodFis.GetHashCode(); - if (this.Pin != null) - hashCode = hashCode * 59 + this.Pin.GetHashCode(); - if (this.Guest != null) - hashCode = hashCode * 59 + this.Guest.GetHashCode(); - if (this.PasswordChange != null) - hashCode = hashCode * 59 + this.PasswordChange.GetHashCode(); - if (this.Marking != null) - hashCode = hashCode * 59 + this.Marking.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.MailOutDefault != null) - hashCode = hashCode * 59 + this.MailOutDefault.GetHashCode(); - if (this.BarcodeAccess != null) - hashCode = hashCode * 59 + this.BarcodeAccess.GetHashCode(); - if (this.MustChangePassword != null) - hashCode = hashCode * 59 + this.MustChangePassword.GetHashCode(); - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - if (this.Ws != null) - hashCode = hashCode * 59 + this.Ws.GetHashCode(); - if (this.DisablePswExpired != null) - hashCode = hashCode * 59 + this.DisablePswExpired.GetHashCode(); - if (this.CompleteDescription != null) - hashCode = hashCode * 59 + this.CompleteDescription.GetHashCode(); - if (this.CanAddVirtualStamps != null) - hashCode = hashCode * 59 + this.CanAddVirtualStamps.GetHashCode(); - if (this.CanApplyStaps != null) - hashCode = hashCode * 59 + this.CanApplyStaps.GetHashCode(); - if (this.ViewFlow != null) - hashCode = hashCode * 59 + this.ViewFlow.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UserDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/UserDTO.cs deleted file mode 100644 index 075c9bc..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UserDTO.cs +++ /dev/null @@ -1,261 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of the user - /// - [DataContract] - public partial class UserDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - /// Email. - /// Business Unit. - /// Language. - /// Person in charge about Aos. - /// Full name. - /// Work on single business unit. - /// Business unit code of work. - public UserDTO(int? user = default(int?), string description = default(string), string email = default(string), string businessUnit = default(string), string lang = default(string), bool? respAos = default(bool?), string completeName = default(string), bool? businessUnitLocked = default(bool?), string workingBusinessUnit = default(string)) - { - this.User = user; - this.Description = description; - this.Email = email; - this.BusinessUnit = businessUnit; - this.Lang = lang; - this.RespAos = respAos; - this.CompleteName = completeName; - this.BusinessUnitLocked = businessUnitLocked; - this.WorkingBusinessUnit = workingBusinessUnit; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Business Unit - /// - /// Business Unit - [DataMember(Name="businessUnit", EmitDefaultValue=false)] - public string BusinessUnit { get; set; } - - /// - /// Language - /// - /// Language - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Person in charge about Aos - /// - /// Person in charge about Aos - [DataMember(Name="respAos", EmitDefaultValue=false)] - public bool? RespAos { get; set; } - - /// - /// Full name - /// - /// Full name - [DataMember(Name="completeName", EmitDefaultValue=false)] - public string CompleteName { get; set; } - - /// - /// Work on single business unit - /// - /// Work on single business unit - [DataMember(Name="businessUnitLocked", EmitDefaultValue=false)] - public bool? BusinessUnitLocked { get; set; } - - /// - /// Business unit code of work - /// - /// Business unit code of work - [DataMember(Name="workingBusinessUnit", EmitDefaultValue=false)] - public string WorkingBusinessUnit { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserDTO {\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append(" RespAos: ").Append(RespAos).Append("\n"); - sb.Append(" CompleteName: ").Append(CompleteName).Append("\n"); - sb.Append(" BusinessUnitLocked: ").Append(BusinessUnitLocked).Append("\n"); - sb.Append(" WorkingBusinessUnit: ").Append(WorkingBusinessUnit).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserDTO); - } - - /// - /// Returns true if UserDTO instances are equal - /// - /// Instance of UserDTO to be compared - /// Boolean - public bool Equals(UserDTO input) - { - if (input == null) - return false; - - return - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.BusinessUnit == input.BusinessUnit || - (this.BusinessUnit != null && - this.BusinessUnit.Equals(input.BusinessUnit)) - ) && - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ) && - ( - this.RespAos == input.RespAos || - (this.RespAos != null && - this.RespAos.Equals(input.RespAos)) - ) && - ( - this.CompleteName == input.CompleteName || - (this.CompleteName != null && - this.CompleteName.Equals(input.CompleteName)) - ) && - ( - this.BusinessUnitLocked == input.BusinessUnitLocked || - (this.BusinessUnitLocked != null && - this.BusinessUnitLocked.Equals(input.BusinessUnitLocked)) - ) && - ( - this.WorkingBusinessUnit == input.WorkingBusinessUnit || - (this.WorkingBusinessUnit != null && - this.WorkingBusinessUnit.Equals(input.WorkingBusinessUnit)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.BusinessUnit != null) - hashCode = hashCode * 59 + this.BusinessUnit.GetHashCode(); - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - if (this.RespAos != null) - hashCode = hashCode * 59 + this.RespAos.GetHashCode(); - if (this.CompleteName != null) - hashCode = hashCode * 59 + this.CompleteName.GetHashCode(); - if (this.BusinessUnitLocked != null) - hashCode = hashCode * 59 + this.BusinessUnitLocked.GetHashCode(); - if (this.WorkingBusinessUnit != null) - hashCode = hashCode * 59 + this.WorkingBusinessUnit.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UserGroupDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/UserGroupDTO.cs deleted file mode 100644 index 487ab91..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UserGroupDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// UserGroupDTO - /// - [DataContract] - public partial class UserGroupDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Group ID.. - /// Group description.. - /// Complete Name. - /// BusinessUnit code. - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto . - public UserGroupDTO(int? id = default(int?), string description = default(string), string completeName = default(string), string businessUnitCode = default(string), int? state = default(int?)) - { - this.Id = id; - this.Description = description; - this.CompleteName = completeName; - this.BusinessUnitCode = businessUnitCode; - this.State = state; - } - - /// - /// Group ID. - /// - /// Group ID. - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Group description. - /// - /// Group description. - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Complete Name - /// - /// Complete Name - [DataMember(Name="completeName", EmitDefaultValue=false)] - public string CompleteName { get; set; } - - /// - /// BusinessUnit code - /// - /// BusinessUnit code - [DataMember(Name="businessUnitCode", EmitDefaultValue=false)] - public string BusinessUnitCode { get; set; } - - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - [DataMember(Name="state", EmitDefaultValue=false)] - public int? State { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserGroupDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" CompleteName: ").Append(CompleteName).Append("\n"); - sb.Append(" BusinessUnitCode: ").Append(BusinessUnitCode).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserGroupDTO); - } - - /// - /// Returns true if UserGroupDTO instances are equal - /// - /// Instance of UserGroupDTO to be compared - /// Boolean - public bool Equals(UserGroupDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.CompleteName == input.CompleteName || - (this.CompleteName != null && - this.CompleteName.Equals(input.CompleteName)) - ) && - ( - this.BusinessUnitCode == input.BusinessUnitCode || - (this.BusinessUnitCode != null && - this.BusinessUnitCode.Equals(input.BusinessUnitCode)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.CompleteName != null) - hashCode = hashCode * 59 + this.CompleteName.GetHashCode(); - if (this.BusinessUnitCode != null) - hashCode = hashCode * 59 + this.BusinessUnitCode.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UserInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/UserInfoDTO.cs deleted file mode 100644 index 5eab805..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UserInfoDTO.cs +++ /dev/null @@ -1,1162 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of user additional information - /// - [DataContract] - public partial class UserInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Server name. - /// Database Type. - /// Database. - /// Unicode. - /// Avatar. - /// Roles. - /// Identifier. - /// New Password. - /// Predefined Profile Identifier. - /// Count of the failed attempts to change password. - /// Last failed Attempt to change password. - /// Ip Address used by failed change password. - /// User Date Blocked. - /// Full Name. - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler . - /// Description. - /// Email. - /// Business Unit. - /// Password. - /// Default Document Type of First Level. - /// Default Document Type of Second Level. - /// Default Document Type of Third Level. - /// Personal Fax. - /// Date of last reading email. - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D . - /// Enabling Workflow Management. - /// Default Document Status. - /// Enabling to insert new address book items into profiling. - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto . - /// Email Server. - /// Access via Web. - /// Enabled to Import. - /// Enabled to OCR. - /// Enabled to Workflow. - /// Enabled to Sign. - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal . - /// Enabled to Public Amministration (PA) Protocol. - /// Enabled to Templates. - /// Domain. - /// Out Status. - /// Email Body. - /// Enabled to Notify. - /// Mailer client. - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione . - /// Person in Charge of AOS. - /// Enabled to Profile Manual Emails. - /// Fiscal Code. - /// Pin. - /// Guest. - /// Change Password. - /// Imagine for the Digital Signature. - /// Type. - /// Enabled to Profile Manual Outgoing Emails. - /// Enabled to Barcode. - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew . - /// Language. - /// Enabled to IX service.. - /// Disabled Expired Password. - /// Full Description. - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Enable the user to view the workflow information. - public UserInfoDTO(string serverName = default(string), string provider = default(string), string database = default(string), bool? isUnicode = default(bool?), bool? hasAvatar = default(bool?), List roles = default(List), int? user = default(int?), string passwordNew = default(string), int? profileDefaultId = default(int?), int? pswFailCount = default(int?), DateTime? pswLastFailDate = default(DateTime?), string pswFailIpCaller = default(string), DateTime? lockOutDateTimeUtc = default(DateTime?), string completeName = default(string), int? group = default(int?), string description = default(string), string email = default(string), string businessUnit = default(string), string password = default(string), int? defaultType = default(int?), int? type2 = default(int?), int? type3 = default(int?), string internalFax = default(string), DateTime? lastMail = default(DateTime?), int? category = default(int?), bool? workflow = default(bool?), string defaultState = default(string), bool? addressBook = default(bool?), int? userState = default(int?), string mailServer = default(string), bool? webAccess = default(bool?), bool? upload = default(bool?), bool? folders = default(bool?), bool? flow = default(bool?), bool? sign = default(bool?), int? viewer = default(int?), bool? protocol = default(bool?), bool? models = default(bool?), string domain = default(string), string outState = default(string), string mailBody = default(string), bool? notify = default(bool?), string mailClient = default(string), int? htmlBody = default(int?), bool? respAos = default(bool?), bool? assAos = default(bool?), string codFis = default(string), string pin = default(string), bool? guest = default(bool?), bool? passwordChange = default(bool?), byte[] marking = default(byte[]), int? type = default(int?), bool? mailOutDefault = default(bool?), bool? barcodeAccess = default(bool?), int? mustChangePassword = default(int?), string lang = default(string), bool? ws = default(bool?), bool? disablePswExpired = default(bool?), string completeDescription = default(string), int? canAddVirtualStamps = default(int?), int? canApplyStaps = default(int?), bool? viewFlow = default(bool?)) - { - this.ServerName = serverName; - this.Provider = provider; - this.Database = database; - this.IsUnicode = isUnicode; - this.HasAvatar = hasAvatar; - this.Roles = roles; - this.User = user; - this.PasswordNew = passwordNew; - this.ProfileDefaultId = profileDefaultId; - this.PswFailCount = pswFailCount; - this.PswLastFailDate = pswLastFailDate; - this.PswFailIpCaller = pswFailIpCaller; - this.LockOutDateTimeUtc = lockOutDateTimeUtc; - this.CompleteName = completeName; - this.Group = group; - this.Description = description; - this.Email = email; - this.BusinessUnit = businessUnit; - this.Password = password; - this.DefaultType = defaultType; - this.Type2 = type2; - this.Type3 = type3; - this.InternalFax = internalFax; - this.LastMail = lastMail; - this.Category = category; - this.Workflow = workflow; - this.DefaultState = defaultState; - this.AddressBook = addressBook; - this.UserState = userState; - this.MailServer = mailServer; - this.WebAccess = webAccess; - this.Upload = upload; - this.Folders = folders; - this.Flow = flow; - this.Sign = sign; - this.Viewer = viewer; - this.Protocol = protocol; - this.Models = models; - this.Domain = domain; - this.OutState = outState; - this.MailBody = mailBody; - this.Notify = notify; - this.MailClient = mailClient; - this.HtmlBody = htmlBody; - this.RespAos = respAos; - this.AssAos = assAos; - this.CodFis = codFis; - this.Pin = pin; - this.Guest = guest; - this.PasswordChange = passwordChange; - this.Marking = marking; - this.Type = type; - this.MailOutDefault = mailOutDefault; - this.BarcodeAccess = barcodeAccess; - this.MustChangePassword = mustChangePassword; - this.Lang = lang; - this.Ws = ws; - this.DisablePswExpired = disablePswExpired; - this.CompleteDescription = completeDescription; - this.CanAddVirtualStamps = canAddVirtualStamps; - this.CanApplyStaps = canApplyStaps; - this.ViewFlow = viewFlow; - } - - /// - /// Server name - /// - /// Server name - [DataMember(Name="serverName", EmitDefaultValue=false)] - public string ServerName { get; set; } - - /// - /// Database Type - /// - /// Database Type - [DataMember(Name="provider", EmitDefaultValue=false)] - public string Provider { get; set; } - - /// - /// Database - /// - /// Database - [DataMember(Name="database", EmitDefaultValue=false)] - public string Database { get; set; } - - /// - /// Unicode - /// - /// Unicode - [DataMember(Name="isUnicode", EmitDefaultValue=false)] - public bool? IsUnicode { get; set; } - - /// - /// Avatar - /// - /// Avatar - [DataMember(Name="hasAvatar", EmitDefaultValue=false)] - public bool? HasAvatar { get; set; } - - /// - /// Roles - /// - /// Roles - [DataMember(Name="roles", EmitDefaultValue=false)] - public List Roles { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// New Password - /// - /// New Password - [DataMember(Name="passwordNew", EmitDefaultValue=false)] - public string PasswordNew { get; set; } - - /// - /// Predefined Profile Identifier - /// - /// Predefined Profile Identifier - [DataMember(Name="profileDefault_Id", EmitDefaultValue=false)] - public int? ProfileDefaultId { get; set; } - - /// - /// Count of the failed attempts to change password - /// - /// Count of the failed attempts to change password - [DataMember(Name="pswFailCount", EmitDefaultValue=false)] - public int? PswFailCount { get; set; } - - /// - /// Last failed Attempt to change password - /// - /// Last failed Attempt to change password - [DataMember(Name="pswLastFailDate", EmitDefaultValue=false)] - public DateTime? PswLastFailDate { get; set; } - - /// - /// Ip Address used by failed change password - /// - /// Ip Address used by failed change password - [DataMember(Name="pswFailIpCaller", EmitDefaultValue=false)] - public string PswFailIpCaller { get; set; } - - /// - /// User Date Blocked - /// - /// User Date Blocked - [DataMember(Name="lockOutDateTimeUtc", EmitDefaultValue=false)] - public DateTime? LockOutDateTimeUtc { get; set; } - - /// - /// Full Name - /// - /// Full Name - [DataMember(Name="completeName", EmitDefaultValue=false)] - public string CompleteName { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - [DataMember(Name="group", EmitDefaultValue=false)] - public int? Group { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Business Unit - /// - /// Business Unit - [DataMember(Name="businessUnit", EmitDefaultValue=false)] - public string BusinessUnit { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Default Document Type of First Level - /// - /// Default Document Type of First Level - [DataMember(Name="defaultType", EmitDefaultValue=false)] - public int? DefaultType { get; set; } - - /// - /// Default Document Type of Second Level - /// - /// Default Document Type of Second Level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Default Document Type of Third Level - /// - /// Default Document Type of Third Level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Personal Fax - /// - /// Personal Fax - [DataMember(Name="internalFax", EmitDefaultValue=false)] - public string InternalFax { get; set; } - - /// - /// Date of last reading email - /// - /// Date of last reading email - [DataMember(Name="lastMail", EmitDefaultValue=false)] - public DateTime? LastMail { get; set; } - - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - [DataMember(Name="category", EmitDefaultValue=false)] - public int? Category { get; set; } - - /// - /// Enabling Workflow Management - /// - /// Enabling Workflow Management - [DataMember(Name="workflow", EmitDefaultValue=false)] - public bool? Workflow { get; set; } - - /// - /// Default Document Status - /// - /// Default Document Status - [DataMember(Name="defaultState", EmitDefaultValue=false)] - public string DefaultState { get; set; } - - /// - /// Enabling to insert new address book items into profiling - /// - /// Enabling to insert new address book items into profiling - [DataMember(Name="addressBook", EmitDefaultValue=false)] - public bool? AddressBook { get; set; } - - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - [DataMember(Name="userState", EmitDefaultValue=false)] - public int? UserState { get; set; } - - /// - /// Email Server - /// - /// Email Server - [DataMember(Name="mailServer", EmitDefaultValue=false)] - public string MailServer { get; set; } - - /// - /// Access via Web - /// - /// Access via Web - [DataMember(Name="webAccess", EmitDefaultValue=false)] - public bool? WebAccess { get; set; } - - /// - /// Enabled to Import - /// - /// Enabled to Import - [DataMember(Name="upload", EmitDefaultValue=false)] - public bool? Upload { get; set; } - - /// - /// Enabled to OCR - /// - /// Enabled to OCR - [DataMember(Name="folders", EmitDefaultValue=false)] - public bool? Folders { get; set; } - - /// - /// Enabled to Workflow - /// - /// Enabled to Workflow - [DataMember(Name="flow", EmitDefaultValue=false)] - public bool? Flow { get; set; } - - /// - /// Enabled to Sign - /// - /// Enabled to Sign - [DataMember(Name="sign", EmitDefaultValue=false)] - public bool? Sign { get; set; } - - /// - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal - /// - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal - [DataMember(Name="viewer", EmitDefaultValue=false)] - public int? Viewer { get; set; } - - /// - /// Enabled to Public Amministration (PA) Protocol - /// - /// Enabled to Public Amministration (PA) Protocol - [DataMember(Name="protocol", EmitDefaultValue=false)] - public bool? Protocol { get; set; } - - /// - /// Enabled to Templates - /// - /// Enabled to Templates - [DataMember(Name="models", EmitDefaultValue=false)] - public bool? Models { get; set; } - - /// - /// Domain - /// - /// Domain - [DataMember(Name="domain", EmitDefaultValue=false)] - public string Domain { get; set; } - - /// - /// Out Status - /// - /// Out Status - [DataMember(Name="outState", EmitDefaultValue=false)] - public string OutState { get; set; } - - /// - /// Email Body - /// - /// Email Body - [DataMember(Name="mailBody", EmitDefaultValue=false)] - public string MailBody { get; set; } - - /// - /// Enabled to Notify - /// - /// Enabled to Notify - [DataMember(Name="notify", EmitDefaultValue=false)] - public bool? Notify { get; set; } - - /// - /// Mailer client - /// - /// Mailer client - [DataMember(Name="mailClient", EmitDefaultValue=false)] - public string MailClient { get; set; } - - /// - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione - /// - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione - [DataMember(Name="htmlBody", EmitDefaultValue=false)] - public int? HtmlBody { get; set; } - - /// - /// Person in Charge of AOS - /// - /// Person in Charge of AOS - [DataMember(Name="respAos", EmitDefaultValue=false)] - public bool? RespAos { get; set; } - - /// - /// Enabled to Profile Manual Emails - /// - /// Enabled to Profile Manual Emails - [DataMember(Name="assAos", EmitDefaultValue=false)] - public bool? AssAos { get; set; } - - /// - /// Fiscal Code - /// - /// Fiscal Code - [DataMember(Name="codFis", EmitDefaultValue=false)] - public string CodFis { get; set; } - - /// - /// Pin - /// - /// Pin - [DataMember(Name="pin", EmitDefaultValue=false)] - public string Pin { get; set; } - - /// - /// Guest - /// - /// Guest - [DataMember(Name="guest", EmitDefaultValue=false)] - public bool? Guest { get; set; } - - /// - /// Change Password - /// - /// Change Password - [DataMember(Name="passwordChange", EmitDefaultValue=false)] - public bool? PasswordChange { get; set; } - - /// - /// Imagine for the Digital Signature - /// - /// Imagine for the Digital Signature - [DataMember(Name="marking", EmitDefaultValue=false)] - public byte[] Marking { get; set; } - - /// - /// Type - /// - /// Type - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Enabled to Profile Manual Outgoing Emails - /// - /// Enabled to Profile Manual Outgoing Emails - [DataMember(Name="mailOutDefault", EmitDefaultValue=false)] - public bool? MailOutDefault { get; set; } - - /// - /// Enabled to Barcode - /// - /// Enabled to Barcode - [DataMember(Name="barcodeAccess", EmitDefaultValue=false)] - public bool? BarcodeAccess { get; set; } - - /// - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew - /// - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew - [DataMember(Name="mustChangePassword", EmitDefaultValue=false)] - public int? MustChangePassword { get; set; } - - /// - /// Language - /// - /// Language - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Enabled to IX service. - /// - /// Enabled to IX service. - [DataMember(Name="ws", EmitDefaultValue=false)] - public bool? Ws { get; set; } - - /// - /// Disabled Expired Password - /// - /// Disabled Expired Password - [DataMember(Name="disablePswExpired", EmitDefaultValue=false)] - public bool? DisablePswExpired { get; set; } - - /// - /// Full Description - /// - /// Full Description - [DataMember(Name="completeDescription", EmitDefaultValue=false)] - public string CompleteDescription { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canAddVirtualStamps", EmitDefaultValue=false)] - public int? CanAddVirtualStamps { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canApplyStaps", EmitDefaultValue=false)] - public int? CanApplyStaps { get; set; } - - /// - /// Enable the user to view the workflow information - /// - /// Enable the user to view the workflow information - [DataMember(Name="viewFlow", EmitDefaultValue=false)] - public bool? ViewFlow { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserInfoDTO {\n"); - sb.Append(" ServerName: ").Append(ServerName).Append("\n"); - sb.Append(" Provider: ").Append(Provider).Append("\n"); - sb.Append(" Database: ").Append(Database).Append("\n"); - sb.Append(" IsUnicode: ").Append(IsUnicode).Append("\n"); - sb.Append(" HasAvatar: ").Append(HasAvatar).Append("\n"); - sb.Append(" Roles: ").Append(Roles).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" PasswordNew: ").Append(PasswordNew).Append("\n"); - sb.Append(" ProfileDefaultId: ").Append(ProfileDefaultId).Append("\n"); - sb.Append(" PswFailCount: ").Append(PswFailCount).Append("\n"); - sb.Append(" PswLastFailDate: ").Append(PswLastFailDate).Append("\n"); - sb.Append(" PswFailIpCaller: ").Append(PswFailIpCaller).Append("\n"); - sb.Append(" LockOutDateTimeUtc: ").Append(LockOutDateTimeUtc).Append("\n"); - sb.Append(" CompleteName: ").Append(CompleteName).Append("\n"); - sb.Append(" Group: ").Append(Group).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" DefaultType: ").Append(DefaultType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append(" InternalFax: ").Append(InternalFax).Append("\n"); - sb.Append(" LastMail: ").Append(LastMail).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" Workflow: ").Append(Workflow).Append("\n"); - sb.Append(" DefaultState: ").Append(DefaultState).Append("\n"); - sb.Append(" AddressBook: ").Append(AddressBook).Append("\n"); - sb.Append(" UserState: ").Append(UserState).Append("\n"); - sb.Append(" MailServer: ").Append(MailServer).Append("\n"); - sb.Append(" WebAccess: ").Append(WebAccess).Append("\n"); - sb.Append(" Upload: ").Append(Upload).Append("\n"); - sb.Append(" Folders: ").Append(Folders).Append("\n"); - sb.Append(" Flow: ").Append(Flow).Append("\n"); - sb.Append(" Sign: ").Append(Sign).Append("\n"); - sb.Append(" Viewer: ").Append(Viewer).Append("\n"); - sb.Append(" Protocol: ").Append(Protocol).Append("\n"); - sb.Append(" Models: ").Append(Models).Append("\n"); - sb.Append(" Domain: ").Append(Domain).Append("\n"); - sb.Append(" OutState: ").Append(OutState).Append("\n"); - sb.Append(" MailBody: ").Append(MailBody).Append("\n"); - sb.Append(" Notify: ").Append(Notify).Append("\n"); - sb.Append(" MailClient: ").Append(MailClient).Append("\n"); - sb.Append(" HtmlBody: ").Append(HtmlBody).Append("\n"); - sb.Append(" RespAos: ").Append(RespAos).Append("\n"); - sb.Append(" AssAos: ").Append(AssAos).Append("\n"); - sb.Append(" CodFis: ").Append(CodFis).Append("\n"); - sb.Append(" Pin: ").Append(Pin).Append("\n"); - sb.Append(" Guest: ").Append(Guest).Append("\n"); - sb.Append(" PasswordChange: ").Append(PasswordChange).Append("\n"); - sb.Append(" Marking: ").Append(Marking).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" MailOutDefault: ").Append(MailOutDefault).Append("\n"); - sb.Append(" BarcodeAccess: ").Append(BarcodeAccess).Append("\n"); - sb.Append(" MustChangePassword: ").Append(MustChangePassword).Append("\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append(" Ws: ").Append(Ws).Append("\n"); - sb.Append(" DisablePswExpired: ").Append(DisablePswExpired).Append("\n"); - sb.Append(" CompleteDescription: ").Append(CompleteDescription).Append("\n"); - sb.Append(" CanAddVirtualStamps: ").Append(CanAddVirtualStamps).Append("\n"); - sb.Append(" CanApplyStaps: ").Append(CanApplyStaps).Append("\n"); - sb.Append(" ViewFlow: ").Append(ViewFlow).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserInfoDTO); - } - - /// - /// Returns true if UserInfoDTO instances are equal - /// - /// Instance of UserInfoDTO to be compared - /// Boolean - public bool Equals(UserInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.ServerName == input.ServerName || - (this.ServerName != null && - this.ServerName.Equals(input.ServerName)) - ) && - ( - this.Provider == input.Provider || - (this.Provider != null && - this.Provider.Equals(input.Provider)) - ) && - ( - this.Database == input.Database || - (this.Database != null && - this.Database.Equals(input.Database)) - ) && - ( - this.IsUnicode == input.IsUnicode || - (this.IsUnicode != null && - this.IsUnicode.Equals(input.IsUnicode)) - ) && - ( - this.HasAvatar == input.HasAvatar || - (this.HasAvatar != null && - this.HasAvatar.Equals(input.HasAvatar)) - ) && - ( - this.Roles == input.Roles || - this.Roles != null && - this.Roles.SequenceEqual(input.Roles) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.PasswordNew == input.PasswordNew || - (this.PasswordNew != null && - this.PasswordNew.Equals(input.PasswordNew)) - ) && - ( - this.ProfileDefaultId == input.ProfileDefaultId || - (this.ProfileDefaultId != null && - this.ProfileDefaultId.Equals(input.ProfileDefaultId)) - ) && - ( - this.PswFailCount == input.PswFailCount || - (this.PswFailCount != null && - this.PswFailCount.Equals(input.PswFailCount)) - ) && - ( - this.PswLastFailDate == input.PswLastFailDate || - (this.PswLastFailDate != null && - this.PswLastFailDate.Equals(input.PswLastFailDate)) - ) && - ( - this.PswFailIpCaller == input.PswFailIpCaller || - (this.PswFailIpCaller != null && - this.PswFailIpCaller.Equals(input.PswFailIpCaller)) - ) && - ( - this.LockOutDateTimeUtc == input.LockOutDateTimeUtc || - (this.LockOutDateTimeUtc != null && - this.LockOutDateTimeUtc.Equals(input.LockOutDateTimeUtc)) - ) && - ( - this.CompleteName == input.CompleteName || - (this.CompleteName != null && - this.CompleteName.Equals(input.CompleteName)) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.BusinessUnit == input.BusinessUnit || - (this.BusinessUnit != null && - this.BusinessUnit.Equals(input.BusinessUnit)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.DefaultType == input.DefaultType || - (this.DefaultType != null && - this.DefaultType.Equals(input.DefaultType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ) && - ( - this.InternalFax == input.InternalFax || - (this.InternalFax != null && - this.InternalFax.Equals(input.InternalFax)) - ) && - ( - this.LastMail == input.LastMail || - (this.LastMail != null && - this.LastMail.Equals(input.LastMail)) - ) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && - ( - this.Workflow == input.Workflow || - (this.Workflow != null && - this.Workflow.Equals(input.Workflow)) - ) && - ( - this.DefaultState == input.DefaultState || - (this.DefaultState != null && - this.DefaultState.Equals(input.DefaultState)) - ) && - ( - this.AddressBook == input.AddressBook || - (this.AddressBook != null && - this.AddressBook.Equals(input.AddressBook)) - ) && - ( - this.UserState == input.UserState || - (this.UserState != null && - this.UserState.Equals(input.UserState)) - ) && - ( - this.MailServer == input.MailServer || - (this.MailServer != null && - this.MailServer.Equals(input.MailServer)) - ) && - ( - this.WebAccess == input.WebAccess || - (this.WebAccess != null && - this.WebAccess.Equals(input.WebAccess)) - ) && - ( - this.Upload == input.Upload || - (this.Upload != null && - this.Upload.Equals(input.Upload)) - ) && - ( - this.Folders == input.Folders || - (this.Folders != null && - this.Folders.Equals(input.Folders)) - ) && - ( - this.Flow == input.Flow || - (this.Flow != null && - this.Flow.Equals(input.Flow)) - ) && - ( - this.Sign == input.Sign || - (this.Sign != null && - this.Sign.Equals(input.Sign)) - ) && - ( - this.Viewer == input.Viewer || - (this.Viewer != null && - this.Viewer.Equals(input.Viewer)) - ) && - ( - this.Protocol == input.Protocol || - (this.Protocol != null && - this.Protocol.Equals(input.Protocol)) - ) && - ( - this.Models == input.Models || - (this.Models != null && - this.Models.Equals(input.Models)) - ) && - ( - this.Domain == input.Domain || - (this.Domain != null && - this.Domain.Equals(input.Domain)) - ) && - ( - this.OutState == input.OutState || - (this.OutState != null && - this.OutState.Equals(input.OutState)) - ) && - ( - this.MailBody == input.MailBody || - (this.MailBody != null && - this.MailBody.Equals(input.MailBody)) - ) && - ( - this.Notify == input.Notify || - (this.Notify != null && - this.Notify.Equals(input.Notify)) - ) && - ( - this.MailClient == input.MailClient || - (this.MailClient != null && - this.MailClient.Equals(input.MailClient)) - ) && - ( - this.HtmlBody == input.HtmlBody || - (this.HtmlBody != null && - this.HtmlBody.Equals(input.HtmlBody)) - ) && - ( - this.RespAos == input.RespAos || - (this.RespAos != null && - this.RespAos.Equals(input.RespAos)) - ) && - ( - this.AssAos == input.AssAos || - (this.AssAos != null && - this.AssAos.Equals(input.AssAos)) - ) && - ( - this.CodFis == input.CodFis || - (this.CodFis != null && - this.CodFis.Equals(input.CodFis)) - ) && - ( - this.Pin == input.Pin || - (this.Pin != null && - this.Pin.Equals(input.Pin)) - ) && - ( - this.Guest == input.Guest || - (this.Guest != null && - this.Guest.Equals(input.Guest)) - ) && - ( - this.PasswordChange == input.PasswordChange || - (this.PasswordChange != null && - this.PasswordChange.Equals(input.PasswordChange)) - ) && - ( - this.Marking == input.Marking || - (this.Marking != null && - this.Marking.Equals(input.Marking)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.MailOutDefault == input.MailOutDefault || - (this.MailOutDefault != null && - this.MailOutDefault.Equals(input.MailOutDefault)) - ) && - ( - this.BarcodeAccess == input.BarcodeAccess || - (this.BarcodeAccess != null && - this.BarcodeAccess.Equals(input.BarcodeAccess)) - ) && - ( - this.MustChangePassword == input.MustChangePassword || - (this.MustChangePassword != null && - this.MustChangePassword.Equals(input.MustChangePassword)) - ) && - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ) && - ( - this.Ws == input.Ws || - (this.Ws != null && - this.Ws.Equals(input.Ws)) - ) && - ( - this.DisablePswExpired == input.DisablePswExpired || - (this.DisablePswExpired != null && - this.DisablePswExpired.Equals(input.DisablePswExpired)) - ) && - ( - this.CompleteDescription == input.CompleteDescription || - (this.CompleteDescription != null && - this.CompleteDescription.Equals(input.CompleteDescription)) - ) && - ( - this.CanAddVirtualStamps == input.CanAddVirtualStamps || - (this.CanAddVirtualStamps != null && - this.CanAddVirtualStamps.Equals(input.CanAddVirtualStamps)) - ) && - ( - this.CanApplyStaps == input.CanApplyStaps || - (this.CanApplyStaps != null && - this.CanApplyStaps.Equals(input.CanApplyStaps)) - ) && - ( - this.ViewFlow == input.ViewFlow || - (this.ViewFlow != null && - this.ViewFlow.Equals(input.ViewFlow)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ServerName != null) - hashCode = hashCode * 59 + this.ServerName.GetHashCode(); - if (this.Provider != null) - hashCode = hashCode * 59 + this.Provider.GetHashCode(); - if (this.Database != null) - hashCode = hashCode * 59 + this.Database.GetHashCode(); - if (this.IsUnicode != null) - hashCode = hashCode * 59 + this.IsUnicode.GetHashCode(); - if (this.HasAvatar != null) - hashCode = hashCode * 59 + this.HasAvatar.GetHashCode(); - if (this.Roles != null) - hashCode = hashCode * 59 + this.Roles.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.PasswordNew != null) - hashCode = hashCode * 59 + this.PasswordNew.GetHashCode(); - if (this.ProfileDefaultId != null) - hashCode = hashCode * 59 + this.ProfileDefaultId.GetHashCode(); - if (this.PswFailCount != null) - hashCode = hashCode * 59 + this.PswFailCount.GetHashCode(); - if (this.PswLastFailDate != null) - hashCode = hashCode * 59 + this.PswLastFailDate.GetHashCode(); - if (this.PswFailIpCaller != null) - hashCode = hashCode * 59 + this.PswFailIpCaller.GetHashCode(); - if (this.LockOutDateTimeUtc != null) - hashCode = hashCode * 59 + this.LockOutDateTimeUtc.GetHashCode(); - if (this.CompleteName != null) - hashCode = hashCode * 59 + this.CompleteName.GetHashCode(); - if (this.Group != null) - hashCode = hashCode * 59 + this.Group.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.BusinessUnit != null) - hashCode = hashCode * 59 + this.BusinessUnit.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.DefaultType != null) - hashCode = hashCode * 59 + this.DefaultType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - if (this.InternalFax != null) - hashCode = hashCode * 59 + this.InternalFax.GetHashCode(); - if (this.LastMail != null) - hashCode = hashCode * 59 + this.LastMail.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.Workflow != null) - hashCode = hashCode * 59 + this.Workflow.GetHashCode(); - if (this.DefaultState != null) - hashCode = hashCode * 59 + this.DefaultState.GetHashCode(); - if (this.AddressBook != null) - hashCode = hashCode * 59 + this.AddressBook.GetHashCode(); - if (this.UserState != null) - hashCode = hashCode * 59 + this.UserState.GetHashCode(); - if (this.MailServer != null) - hashCode = hashCode * 59 + this.MailServer.GetHashCode(); - if (this.WebAccess != null) - hashCode = hashCode * 59 + this.WebAccess.GetHashCode(); - if (this.Upload != null) - hashCode = hashCode * 59 + this.Upload.GetHashCode(); - if (this.Folders != null) - hashCode = hashCode * 59 + this.Folders.GetHashCode(); - if (this.Flow != null) - hashCode = hashCode * 59 + this.Flow.GetHashCode(); - if (this.Sign != null) - hashCode = hashCode * 59 + this.Sign.GetHashCode(); - if (this.Viewer != null) - hashCode = hashCode * 59 + this.Viewer.GetHashCode(); - if (this.Protocol != null) - hashCode = hashCode * 59 + this.Protocol.GetHashCode(); - if (this.Models != null) - hashCode = hashCode * 59 + this.Models.GetHashCode(); - if (this.Domain != null) - hashCode = hashCode * 59 + this.Domain.GetHashCode(); - if (this.OutState != null) - hashCode = hashCode * 59 + this.OutState.GetHashCode(); - if (this.MailBody != null) - hashCode = hashCode * 59 + this.MailBody.GetHashCode(); - if (this.Notify != null) - hashCode = hashCode * 59 + this.Notify.GetHashCode(); - if (this.MailClient != null) - hashCode = hashCode * 59 + this.MailClient.GetHashCode(); - if (this.HtmlBody != null) - hashCode = hashCode * 59 + this.HtmlBody.GetHashCode(); - if (this.RespAos != null) - hashCode = hashCode * 59 + this.RespAos.GetHashCode(); - if (this.AssAos != null) - hashCode = hashCode * 59 + this.AssAos.GetHashCode(); - if (this.CodFis != null) - hashCode = hashCode * 59 + this.CodFis.GetHashCode(); - if (this.Pin != null) - hashCode = hashCode * 59 + this.Pin.GetHashCode(); - if (this.Guest != null) - hashCode = hashCode * 59 + this.Guest.GetHashCode(); - if (this.PasswordChange != null) - hashCode = hashCode * 59 + this.PasswordChange.GetHashCode(); - if (this.Marking != null) - hashCode = hashCode * 59 + this.Marking.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.MailOutDefault != null) - hashCode = hashCode * 59 + this.MailOutDefault.GetHashCode(); - if (this.BarcodeAccess != null) - hashCode = hashCode * 59 + this.BarcodeAccess.GetHashCode(); - if (this.MustChangePassword != null) - hashCode = hashCode * 59 + this.MustChangePassword.GetHashCode(); - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - if (this.Ws != null) - hashCode = hashCode * 59 + this.Ws.GetHashCode(); - if (this.DisablePswExpired != null) - hashCode = hashCode * 59 + this.DisablePswExpired.GetHashCode(); - if (this.CompleteDescription != null) - hashCode = hashCode * 59 + this.CompleteDescription.GetHashCode(); - if (this.CanAddVirtualStamps != null) - hashCode = hashCode * 59 + this.CanAddVirtualStamps.GetHashCode(); - if (this.CanApplyStaps != null) - hashCode = hashCode * 59 + this.CanApplyStaps.GetHashCode(); - if (this.ViewFlow != null) - hashCode = hashCode * 59 + this.ViewFlow.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UserInsertDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/UserInsertDTO.cs deleted file mode 100644 index b62055a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UserInsertDTO.cs +++ /dev/null @@ -1,1276 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// User class for insert - /// - [DataContract] - public partial class UserInsertDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Comportamento dell'utente nel caso di impianto ad \"aoo\" bloccate.. - /// Comportamento dell'utente nel caso di archiviazione provvisoria.. - /// Abilitazione all'inserimento immediato in rubrica durante la profilazione, nel caso non esista il contatto.. - /// Abilitazione alla manutenzione delle liste di distribuzione.. - /// Possible values: 0: Selected 1: All 2: JustAddressBook . - /// Possible values: 0: None 1: Always 2: Never 3: Selected . - /// Possible values: 0: None 1: Always 2: Never 3: Selected . - /// Abilitazione alla cancellazione del profilo se associato alle mail.. - /// Se attivo impone la visualizzazione degli allegati solo in copia conforme dal Web. - /// webSearch. - /// Abilita la ricerche rapide dal WEB. - /// Abilita la casella posta dal WEB. - /// Abilita i fascicoli dal WEB. - /// Abilita le viste dal WEB. - /// Abilita la pratiche dal WEB. - /// Manutenzione lista di Checkin dal Web. - /// Dimensione massima della posta in uscita espressa in Kb. - /// mailOutDefaultType. - /// mailOutType2. - /// mailOutType3. - /// securityStateList. - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler . - /// Description. - /// Email. - /// Business Unit. - /// Password. - /// Default Document Type of First Level. - /// Default Document Type of Second Level. - /// Default Document Type of Third Level. - /// Personal Fax. - /// Date of last reading email. - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D . - /// Enabling Workflow Management. - /// Default Document Status. - /// Enabling to insert new address book items into profiling. - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto . - /// Email Server. - /// Access via Web. - /// Enabled to Import. - /// Enabled to OCR. - /// Enabled to Workflow. - /// Enabled to Sign. - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal . - /// Enabled to Public Amministration (PA) Protocol. - /// Enabled to Templates. - /// Domain. - /// Out Status. - /// Email Body. - /// Enabled to Notify. - /// Mailer client. - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione . - /// Person in Charge of AOS. - /// Enabled to Profile Manual Emails. - /// Fiscal Code. - /// Pin. - /// Guest. - /// Change Password. - /// Imagine for the Digital Signature. - /// Type. - /// Enabled to Profile Manual Outgoing Emails. - /// Enabled to Barcode. - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew . - /// Language. - /// Enabled to IX service.. - /// Disabled Expired Password. - /// Full Description. - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Enable the user to view the workflow information. - public UserInsertDTO(bool? businessUnitUserUnlock = default(bool?), bool? tempArchive = default(bool?), bool? addressBookProfile = default(bool?), bool? distributionList = default(bool?), int? mailIn = default(int?), int? mailOutStoreExt = default(int?), int? mailOutStoreIn = default(int?), bool? mailDeleteProfile = default(bool?), bool? webCompliantCopy = default(bool?), bool? webSearch = default(bool?), bool? webQuickSearch = default(bool?), bool? webMailBox = default(bool?), bool? webFolders = default(bool?), bool? webSearchViews = default(bool?), bool? webBinders = default(bool?), bool? webCheckinAdmin = default(bool?), int? mailOutMaxSize = default(int?), int? mailOutDefaultType = default(int?), int? mailOutType2 = default(int?), int? mailOutType3 = default(int?), List securityStateList = default(List), int? group = default(int?), string description = default(string), string email = default(string), string businessUnit = default(string), string password = default(string), int? defaultType = default(int?), int? type2 = default(int?), int? type3 = default(int?), string internalFax = default(string), DateTime? lastMail = default(DateTime?), int? category = default(int?), bool? workflow = default(bool?), string defaultState = default(string), bool? addressBook = default(bool?), int? userState = default(int?), string mailServer = default(string), bool? webAccess = default(bool?), bool? upload = default(bool?), bool? folders = default(bool?), bool? flow = default(bool?), bool? sign = default(bool?), int? viewer = default(int?), bool? protocol = default(bool?), bool? models = default(bool?), string domain = default(string), string outState = default(string), string mailBody = default(string), bool? notify = default(bool?), string mailClient = default(string), int? htmlBody = default(int?), bool? respAos = default(bool?), bool? assAos = default(bool?), string codFis = default(string), string pin = default(string), bool? guest = default(bool?), bool? passwordChange = default(bool?), byte[] marking = default(byte[]), int? type = default(int?), bool? mailOutDefault = default(bool?), bool? barcodeAccess = default(bool?), int? mustChangePassword = default(int?), string lang = default(string), bool? ws = default(bool?), bool? disablePswExpired = default(bool?), string completeDescription = default(string), int? canAddVirtualStamps = default(int?), int? canApplyStaps = default(int?), bool? viewFlow = default(bool?)) - { - this.BusinessUnitUserUnlock = businessUnitUserUnlock; - this.TempArchive = tempArchive; - this.AddressBookProfile = addressBookProfile; - this.DistributionList = distributionList; - this.MailIn = mailIn; - this.MailOutStoreExt = mailOutStoreExt; - this.MailOutStoreIn = mailOutStoreIn; - this.MailDeleteProfile = mailDeleteProfile; - this.WebCompliantCopy = webCompliantCopy; - this.WebSearch = webSearch; - this.WebQuickSearch = webQuickSearch; - this.WebMailBox = webMailBox; - this.WebFolders = webFolders; - this.WebSearchViews = webSearchViews; - this.WebBinders = webBinders; - this.WebCheckinAdmin = webCheckinAdmin; - this.MailOutMaxSize = mailOutMaxSize; - this.MailOutDefaultType = mailOutDefaultType; - this.MailOutType2 = mailOutType2; - this.MailOutType3 = mailOutType3; - this.SecurityStateList = securityStateList; - this.Group = group; - this.Description = description; - this.Email = email; - this.BusinessUnit = businessUnit; - this.Password = password; - this.DefaultType = defaultType; - this.Type2 = type2; - this.Type3 = type3; - this.InternalFax = internalFax; - this.LastMail = lastMail; - this.Category = category; - this.Workflow = workflow; - this.DefaultState = defaultState; - this.AddressBook = addressBook; - this.UserState = userState; - this.MailServer = mailServer; - this.WebAccess = webAccess; - this.Upload = upload; - this.Folders = folders; - this.Flow = flow; - this.Sign = sign; - this.Viewer = viewer; - this.Protocol = protocol; - this.Models = models; - this.Domain = domain; - this.OutState = outState; - this.MailBody = mailBody; - this.Notify = notify; - this.MailClient = mailClient; - this.HtmlBody = htmlBody; - this.RespAos = respAos; - this.AssAos = assAos; - this.CodFis = codFis; - this.Pin = pin; - this.Guest = guest; - this.PasswordChange = passwordChange; - this.Marking = marking; - this.Type = type; - this.MailOutDefault = mailOutDefault; - this.BarcodeAccess = barcodeAccess; - this.MustChangePassword = mustChangePassword; - this.Lang = lang; - this.Ws = ws; - this.DisablePswExpired = disablePswExpired; - this.CompleteDescription = completeDescription; - this.CanAddVirtualStamps = canAddVirtualStamps; - this.CanApplyStaps = canApplyStaps; - this.ViewFlow = viewFlow; - } - - /// - /// Comportamento dell'utente nel caso di impianto ad \"aoo\" bloccate. - /// - /// Comportamento dell'utente nel caso di impianto ad \"aoo\" bloccate. - [DataMember(Name="businessUnitUserUnlock", EmitDefaultValue=false)] - public bool? BusinessUnitUserUnlock { get; set; } - - /// - /// Comportamento dell'utente nel caso di archiviazione provvisoria. - /// - /// Comportamento dell'utente nel caso di archiviazione provvisoria. - [DataMember(Name="tempArchive", EmitDefaultValue=false)] - public bool? TempArchive { get; set; } - - /// - /// Abilitazione all'inserimento immediato in rubrica durante la profilazione, nel caso non esista il contatto. - /// - /// Abilitazione all'inserimento immediato in rubrica durante la profilazione, nel caso non esista il contatto. - [DataMember(Name="addressBookProfile", EmitDefaultValue=false)] - public bool? AddressBookProfile { get; set; } - - /// - /// Abilitazione alla manutenzione delle liste di distribuzione. - /// - /// Abilitazione alla manutenzione delle liste di distribuzione. - [DataMember(Name="distributionList", EmitDefaultValue=false)] - public bool? DistributionList { get; set; } - - /// - /// Possible values: 0: Selected 1: All 2: JustAddressBook - /// - /// Possible values: 0: Selected 1: All 2: JustAddressBook - [DataMember(Name="mailIn", EmitDefaultValue=false)] - public int? MailIn { get; set; } - - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - [DataMember(Name="mailOutStoreExt", EmitDefaultValue=false)] - public int? MailOutStoreExt { get; set; } - - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - [DataMember(Name="mailOutStoreIn", EmitDefaultValue=false)] - public int? MailOutStoreIn { get; set; } - - /// - /// Abilitazione alla cancellazione del profilo se associato alle mail. - /// - /// Abilitazione alla cancellazione del profilo se associato alle mail. - [DataMember(Name="mailDeleteProfile", EmitDefaultValue=false)] - public bool? MailDeleteProfile { get; set; } - - /// - /// Se attivo impone la visualizzazione degli allegati solo in copia conforme dal Web - /// - /// Se attivo impone la visualizzazione degli allegati solo in copia conforme dal Web - [DataMember(Name="webCompliantCopy", EmitDefaultValue=false)] - public bool? WebCompliantCopy { get; set; } - - /// - /// Gets or Sets WebSearch - /// - [DataMember(Name="webSearch", EmitDefaultValue=false)] - public bool? WebSearch { get; set; } - - /// - /// Abilita la ricerche rapide dal WEB - /// - /// Abilita la ricerche rapide dal WEB - [DataMember(Name="webQuickSearch", EmitDefaultValue=false)] - public bool? WebQuickSearch { get; set; } - - /// - /// Abilita la casella posta dal WEB - /// - /// Abilita la casella posta dal WEB - [DataMember(Name="webMailBox", EmitDefaultValue=false)] - public bool? WebMailBox { get; set; } - - /// - /// Abilita i fascicoli dal WEB - /// - /// Abilita i fascicoli dal WEB - [DataMember(Name="webFolders", EmitDefaultValue=false)] - public bool? WebFolders { get; set; } - - /// - /// Abilita le viste dal WEB - /// - /// Abilita le viste dal WEB - [DataMember(Name="webSearchViews", EmitDefaultValue=false)] - public bool? WebSearchViews { get; set; } - - /// - /// Abilita la pratiche dal WEB - /// - /// Abilita la pratiche dal WEB - [DataMember(Name="webBinders", EmitDefaultValue=false)] - public bool? WebBinders { get; set; } - - /// - /// Manutenzione lista di Checkin dal Web - /// - /// Manutenzione lista di Checkin dal Web - [DataMember(Name="webCheckinAdmin", EmitDefaultValue=false)] - public bool? WebCheckinAdmin { get; set; } - - /// - /// Dimensione massima della posta in uscita espressa in Kb - /// - /// Dimensione massima della posta in uscita espressa in Kb - [DataMember(Name="mailOutMaxSize", EmitDefaultValue=false)] - public int? MailOutMaxSize { get; set; } - - /// - /// Gets or Sets MailOutDefaultType - /// - [DataMember(Name="mailOutDefaultType", EmitDefaultValue=false)] - public int? MailOutDefaultType { get; set; } - - /// - /// Gets or Sets MailOutType2 - /// - [DataMember(Name="mailOutType2", EmitDefaultValue=false)] - public int? MailOutType2 { get; set; } - - /// - /// Gets or Sets MailOutType3 - /// - [DataMember(Name="mailOutType3", EmitDefaultValue=false)] - public int? MailOutType3 { get; set; } - - /// - /// Gets or Sets SecurityStateList - /// - [DataMember(Name="securityStateList", EmitDefaultValue=false)] - public List SecurityStateList { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - [DataMember(Name="group", EmitDefaultValue=false)] - public int? Group { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Business Unit - /// - /// Business Unit - [DataMember(Name="businessUnit", EmitDefaultValue=false)] - public string BusinessUnit { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Default Document Type of First Level - /// - /// Default Document Type of First Level - [DataMember(Name="defaultType", EmitDefaultValue=false)] - public int? DefaultType { get; set; } - - /// - /// Default Document Type of Second Level - /// - /// Default Document Type of Second Level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Default Document Type of Third Level - /// - /// Default Document Type of Third Level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Personal Fax - /// - /// Personal Fax - [DataMember(Name="internalFax", EmitDefaultValue=false)] - public string InternalFax { get; set; } - - /// - /// Date of last reading email - /// - /// Date of last reading email - [DataMember(Name="lastMail", EmitDefaultValue=false)] - public DateTime? LastMail { get; set; } - - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - [DataMember(Name="category", EmitDefaultValue=false)] - public int? Category { get; set; } - - /// - /// Enabling Workflow Management - /// - /// Enabling Workflow Management - [DataMember(Name="workflow", EmitDefaultValue=false)] - public bool? Workflow { get; set; } - - /// - /// Default Document Status - /// - /// Default Document Status - [DataMember(Name="defaultState", EmitDefaultValue=false)] - public string DefaultState { get; set; } - - /// - /// Enabling to insert new address book items into profiling - /// - /// Enabling to insert new address book items into profiling - [DataMember(Name="addressBook", EmitDefaultValue=false)] - public bool? AddressBook { get; set; } - - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - [DataMember(Name="userState", EmitDefaultValue=false)] - public int? UserState { get; set; } - - /// - /// Email Server - /// - /// Email Server - [DataMember(Name="mailServer", EmitDefaultValue=false)] - public string MailServer { get; set; } - - /// - /// Access via Web - /// - /// Access via Web - [DataMember(Name="webAccess", EmitDefaultValue=false)] - public bool? WebAccess { get; set; } - - /// - /// Enabled to Import - /// - /// Enabled to Import - [DataMember(Name="upload", EmitDefaultValue=false)] - public bool? Upload { get; set; } - - /// - /// Enabled to OCR - /// - /// Enabled to OCR - [DataMember(Name="folders", EmitDefaultValue=false)] - public bool? Folders { get; set; } - - /// - /// Enabled to Workflow - /// - /// Enabled to Workflow - [DataMember(Name="flow", EmitDefaultValue=false)] - public bool? Flow { get; set; } - - /// - /// Enabled to Sign - /// - /// Enabled to Sign - [DataMember(Name="sign", EmitDefaultValue=false)] - public bool? Sign { get; set; } - - /// - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal - /// - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal - [DataMember(Name="viewer", EmitDefaultValue=false)] - public int? Viewer { get; set; } - - /// - /// Enabled to Public Amministration (PA) Protocol - /// - /// Enabled to Public Amministration (PA) Protocol - [DataMember(Name="protocol", EmitDefaultValue=false)] - public bool? Protocol { get; set; } - - /// - /// Enabled to Templates - /// - /// Enabled to Templates - [DataMember(Name="models", EmitDefaultValue=false)] - public bool? Models { get; set; } - - /// - /// Domain - /// - /// Domain - [DataMember(Name="domain", EmitDefaultValue=false)] - public string Domain { get; set; } - - /// - /// Out Status - /// - /// Out Status - [DataMember(Name="outState", EmitDefaultValue=false)] - public string OutState { get; set; } - - /// - /// Email Body - /// - /// Email Body - [DataMember(Name="mailBody", EmitDefaultValue=false)] - public string MailBody { get; set; } - - /// - /// Enabled to Notify - /// - /// Enabled to Notify - [DataMember(Name="notify", EmitDefaultValue=false)] - public bool? Notify { get; set; } - - /// - /// Mailer client - /// - /// Mailer client - [DataMember(Name="mailClient", EmitDefaultValue=false)] - public string MailClient { get; set; } - - /// - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione - /// - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione - [DataMember(Name="htmlBody", EmitDefaultValue=false)] - public int? HtmlBody { get; set; } - - /// - /// Person in Charge of AOS - /// - /// Person in Charge of AOS - [DataMember(Name="respAos", EmitDefaultValue=false)] - public bool? RespAos { get; set; } - - /// - /// Enabled to Profile Manual Emails - /// - /// Enabled to Profile Manual Emails - [DataMember(Name="assAos", EmitDefaultValue=false)] - public bool? AssAos { get; set; } - - /// - /// Fiscal Code - /// - /// Fiscal Code - [DataMember(Name="codFis", EmitDefaultValue=false)] - public string CodFis { get; set; } - - /// - /// Pin - /// - /// Pin - [DataMember(Name="pin", EmitDefaultValue=false)] - public string Pin { get; set; } - - /// - /// Guest - /// - /// Guest - [DataMember(Name="guest", EmitDefaultValue=false)] - public bool? Guest { get; set; } - - /// - /// Change Password - /// - /// Change Password - [DataMember(Name="passwordChange", EmitDefaultValue=false)] - public bool? PasswordChange { get; set; } - - /// - /// Imagine for the Digital Signature - /// - /// Imagine for the Digital Signature - [DataMember(Name="marking", EmitDefaultValue=false)] - public byte[] Marking { get; set; } - - /// - /// Type - /// - /// Type - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Enabled to Profile Manual Outgoing Emails - /// - /// Enabled to Profile Manual Outgoing Emails - [DataMember(Name="mailOutDefault", EmitDefaultValue=false)] - public bool? MailOutDefault { get; set; } - - /// - /// Enabled to Barcode - /// - /// Enabled to Barcode - [DataMember(Name="barcodeAccess", EmitDefaultValue=false)] - public bool? BarcodeAccess { get; set; } - - /// - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew - /// - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew - [DataMember(Name="mustChangePassword", EmitDefaultValue=false)] - public int? MustChangePassword { get; set; } - - /// - /// Language - /// - /// Language - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Enabled to IX service. - /// - /// Enabled to IX service. - [DataMember(Name="ws", EmitDefaultValue=false)] - public bool? Ws { get; set; } - - /// - /// Disabled Expired Password - /// - /// Disabled Expired Password - [DataMember(Name="disablePswExpired", EmitDefaultValue=false)] - public bool? DisablePswExpired { get; set; } - - /// - /// Full Description - /// - /// Full Description - [DataMember(Name="completeDescription", EmitDefaultValue=false)] - public string CompleteDescription { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canAddVirtualStamps", EmitDefaultValue=false)] - public int? CanAddVirtualStamps { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canApplyStaps", EmitDefaultValue=false)] - public int? CanApplyStaps { get; set; } - - /// - /// Enable the user to view the workflow information - /// - /// Enable the user to view the workflow information - [DataMember(Name="viewFlow", EmitDefaultValue=false)] - public bool? ViewFlow { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserInsertDTO {\n"); - sb.Append(" BusinessUnitUserUnlock: ").Append(BusinessUnitUserUnlock).Append("\n"); - sb.Append(" TempArchive: ").Append(TempArchive).Append("\n"); - sb.Append(" AddressBookProfile: ").Append(AddressBookProfile).Append("\n"); - sb.Append(" DistributionList: ").Append(DistributionList).Append("\n"); - sb.Append(" MailIn: ").Append(MailIn).Append("\n"); - sb.Append(" MailOutStoreExt: ").Append(MailOutStoreExt).Append("\n"); - sb.Append(" MailOutStoreIn: ").Append(MailOutStoreIn).Append("\n"); - sb.Append(" MailDeleteProfile: ").Append(MailDeleteProfile).Append("\n"); - sb.Append(" WebCompliantCopy: ").Append(WebCompliantCopy).Append("\n"); - sb.Append(" WebSearch: ").Append(WebSearch).Append("\n"); - sb.Append(" WebQuickSearch: ").Append(WebQuickSearch).Append("\n"); - sb.Append(" WebMailBox: ").Append(WebMailBox).Append("\n"); - sb.Append(" WebFolders: ").Append(WebFolders).Append("\n"); - sb.Append(" WebSearchViews: ").Append(WebSearchViews).Append("\n"); - sb.Append(" WebBinders: ").Append(WebBinders).Append("\n"); - sb.Append(" WebCheckinAdmin: ").Append(WebCheckinAdmin).Append("\n"); - sb.Append(" MailOutMaxSize: ").Append(MailOutMaxSize).Append("\n"); - sb.Append(" MailOutDefaultType: ").Append(MailOutDefaultType).Append("\n"); - sb.Append(" MailOutType2: ").Append(MailOutType2).Append("\n"); - sb.Append(" MailOutType3: ").Append(MailOutType3).Append("\n"); - sb.Append(" SecurityStateList: ").Append(SecurityStateList).Append("\n"); - sb.Append(" Group: ").Append(Group).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" DefaultType: ").Append(DefaultType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append(" InternalFax: ").Append(InternalFax).Append("\n"); - sb.Append(" LastMail: ").Append(LastMail).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" Workflow: ").Append(Workflow).Append("\n"); - sb.Append(" DefaultState: ").Append(DefaultState).Append("\n"); - sb.Append(" AddressBook: ").Append(AddressBook).Append("\n"); - sb.Append(" UserState: ").Append(UserState).Append("\n"); - sb.Append(" MailServer: ").Append(MailServer).Append("\n"); - sb.Append(" WebAccess: ").Append(WebAccess).Append("\n"); - sb.Append(" Upload: ").Append(Upload).Append("\n"); - sb.Append(" Folders: ").Append(Folders).Append("\n"); - sb.Append(" Flow: ").Append(Flow).Append("\n"); - sb.Append(" Sign: ").Append(Sign).Append("\n"); - sb.Append(" Viewer: ").Append(Viewer).Append("\n"); - sb.Append(" Protocol: ").Append(Protocol).Append("\n"); - sb.Append(" Models: ").Append(Models).Append("\n"); - sb.Append(" Domain: ").Append(Domain).Append("\n"); - sb.Append(" OutState: ").Append(OutState).Append("\n"); - sb.Append(" MailBody: ").Append(MailBody).Append("\n"); - sb.Append(" Notify: ").Append(Notify).Append("\n"); - sb.Append(" MailClient: ").Append(MailClient).Append("\n"); - sb.Append(" HtmlBody: ").Append(HtmlBody).Append("\n"); - sb.Append(" RespAos: ").Append(RespAos).Append("\n"); - sb.Append(" AssAos: ").Append(AssAos).Append("\n"); - sb.Append(" CodFis: ").Append(CodFis).Append("\n"); - sb.Append(" Pin: ").Append(Pin).Append("\n"); - sb.Append(" Guest: ").Append(Guest).Append("\n"); - sb.Append(" PasswordChange: ").Append(PasswordChange).Append("\n"); - sb.Append(" Marking: ").Append(Marking).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" MailOutDefault: ").Append(MailOutDefault).Append("\n"); - sb.Append(" BarcodeAccess: ").Append(BarcodeAccess).Append("\n"); - sb.Append(" MustChangePassword: ").Append(MustChangePassword).Append("\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append(" Ws: ").Append(Ws).Append("\n"); - sb.Append(" DisablePswExpired: ").Append(DisablePswExpired).Append("\n"); - sb.Append(" CompleteDescription: ").Append(CompleteDescription).Append("\n"); - sb.Append(" CanAddVirtualStamps: ").Append(CanAddVirtualStamps).Append("\n"); - sb.Append(" CanApplyStaps: ").Append(CanApplyStaps).Append("\n"); - sb.Append(" ViewFlow: ").Append(ViewFlow).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserInsertDTO); - } - - /// - /// Returns true if UserInsertDTO instances are equal - /// - /// Instance of UserInsertDTO to be compared - /// Boolean - public bool Equals(UserInsertDTO input) - { - if (input == null) - return false; - - return - ( - this.BusinessUnitUserUnlock == input.BusinessUnitUserUnlock || - (this.BusinessUnitUserUnlock != null && - this.BusinessUnitUserUnlock.Equals(input.BusinessUnitUserUnlock)) - ) && - ( - this.TempArchive == input.TempArchive || - (this.TempArchive != null && - this.TempArchive.Equals(input.TempArchive)) - ) && - ( - this.AddressBookProfile == input.AddressBookProfile || - (this.AddressBookProfile != null && - this.AddressBookProfile.Equals(input.AddressBookProfile)) - ) && - ( - this.DistributionList == input.DistributionList || - (this.DistributionList != null && - this.DistributionList.Equals(input.DistributionList)) - ) && - ( - this.MailIn == input.MailIn || - (this.MailIn != null && - this.MailIn.Equals(input.MailIn)) - ) && - ( - this.MailOutStoreExt == input.MailOutStoreExt || - (this.MailOutStoreExt != null && - this.MailOutStoreExt.Equals(input.MailOutStoreExt)) - ) && - ( - this.MailOutStoreIn == input.MailOutStoreIn || - (this.MailOutStoreIn != null && - this.MailOutStoreIn.Equals(input.MailOutStoreIn)) - ) && - ( - this.MailDeleteProfile == input.MailDeleteProfile || - (this.MailDeleteProfile != null && - this.MailDeleteProfile.Equals(input.MailDeleteProfile)) - ) && - ( - this.WebCompliantCopy == input.WebCompliantCopy || - (this.WebCompliantCopy != null && - this.WebCompliantCopy.Equals(input.WebCompliantCopy)) - ) && - ( - this.WebSearch == input.WebSearch || - (this.WebSearch != null && - this.WebSearch.Equals(input.WebSearch)) - ) && - ( - this.WebQuickSearch == input.WebQuickSearch || - (this.WebQuickSearch != null && - this.WebQuickSearch.Equals(input.WebQuickSearch)) - ) && - ( - this.WebMailBox == input.WebMailBox || - (this.WebMailBox != null && - this.WebMailBox.Equals(input.WebMailBox)) - ) && - ( - this.WebFolders == input.WebFolders || - (this.WebFolders != null && - this.WebFolders.Equals(input.WebFolders)) - ) && - ( - this.WebSearchViews == input.WebSearchViews || - (this.WebSearchViews != null && - this.WebSearchViews.Equals(input.WebSearchViews)) - ) && - ( - this.WebBinders == input.WebBinders || - (this.WebBinders != null && - this.WebBinders.Equals(input.WebBinders)) - ) && - ( - this.WebCheckinAdmin == input.WebCheckinAdmin || - (this.WebCheckinAdmin != null && - this.WebCheckinAdmin.Equals(input.WebCheckinAdmin)) - ) && - ( - this.MailOutMaxSize == input.MailOutMaxSize || - (this.MailOutMaxSize != null && - this.MailOutMaxSize.Equals(input.MailOutMaxSize)) - ) && - ( - this.MailOutDefaultType == input.MailOutDefaultType || - (this.MailOutDefaultType != null && - this.MailOutDefaultType.Equals(input.MailOutDefaultType)) - ) && - ( - this.MailOutType2 == input.MailOutType2 || - (this.MailOutType2 != null && - this.MailOutType2.Equals(input.MailOutType2)) - ) && - ( - this.MailOutType3 == input.MailOutType3 || - (this.MailOutType3 != null && - this.MailOutType3.Equals(input.MailOutType3)) - ) && - ( - this.SecurityStateList == input.SecurityStateList || - this.SecurityStateList != null && - this.SecurityStateList.SequenceEqual(input.SecurityStateList) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.BusinessUnit == input.BusinessUnit || - (this.BusinessUnit != null && - this.BusinessUnit.Equals(input.BusinessUnit)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.DefaultType == input.DefaultType || - (this.DefaultType != null && - this.DefaultType.Equals(input.DefaultType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ) && - ( - this.InternalFax == input.InternalFax || - (this.InternalFax != null && - this.InternalFax.Equals(input.InternalFax)) - ) && - ( - this.LastMail == input.LastMail || - (this.LastMail != null && - this.LastMail.Equals(input.LastMail)) - ) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && - ( - this.Workflow == input.Workflow || - (this.Workflow != null && - this.Workflow.Equals(input.Workflow)) - ) && - ( - this.DefaultState == input.DefaultState || - (this.DefaultState != null && - this.DefaultState.Equals(input.DefaultState)) - ) && - ( - this.AddressBook == input.AddressBook || - (this.AddressBook != null && - this.AddressBook.Equals(input.AddressBook)) - ) && - ( - this.UserState == input.UserState || - (this.UserState != null && - this.UserState.Equals(input.UserState)) - ) && - ( - this.MailServer == input.MailServer || - (this.MailServer != null && - this.MailServer.Equals(input.MailServer)) - ) && - ( - this.WebAccess == input.WebAccess || - (this.WebAccess != null && - this.WebAccess.Equals(input.WebAccess)) - ) && - ( - this.Upload == input.Upload || - (this.Upload != null && - this.Upload.Equals(input.Upload)) - ) && - ( - this.Folders == input.Folders || - (this.Folders != null && - this.Folders.Equals(input.Folders)) - ) && - ( - this.Flow == input.Flow || - (this.Flow != null && - this.Flow.Equals(input.Flow)) - ) && - ( - this.Sign == input.Sign || - (this.Sign != null && - this.Sign.Equals(input.Sign)) - ) && - ( - this.Viewer == input.Viewer || - (this.Viewer != null && - this.Viewer.Equals(input.Viewer)) - ) && - ( - this.Protocol == input.Protocol || - (this.Protocol != null && - this.Protocol.Equals(input.Protocol)) - ) && - ( - this.Models == input.Models || - (this.Models != null && - this.Models.Equals(input.Models)) - ) && - ( - this.Domain == input.Domain || - (this.Domain != null && - this.Domain.Equals(input.Domain)) - ) && - ( - this.OutState == input.OutState || - (this.OutState != null && - this.OutState.Equals(input.OutState)) - ) && - ( - this.MailBody == input.MailBody || - (this.MailBody != null && - this.MailBody.Equals(input.MailBody)) - ) && - ( - this.Notify == input.Notify || - (this.Notify != null && - this.Notify.Equals(input.Notify)) - ) && - ( - this.MailClient == input.MailClient || - (this.MailClient != null && - this.MailClient.Equals(input.MailClient)) - ) && - ( - this.HtmlBody == input.HtmlBody || - (this.HtmlBody != null && - this.HtmlBody.Equals(input.HtmlBody)) - ) && - ( - this.RespAos == input.RespAos || - (this.RespAos != null && - this.RespAos.Equals(input.RespAos)) - ) && - ( - this.AssAos == input.AssAos || - (this.AssAos != null && - this.AssAos.Equals(input.AssAos)) - ) && - ( - this.CodFis == input.CodFis || - (this.CodFis != null && - this.CodFis.Equals(input.CodFis)) - ) && - ( - this.Pin == input.Pin || - (this.Pin != null && - this.Pin.Equals(input.Pin)) - ) && - ( - this.Guest == input.Guest || - (this.Guest != null && - this.Guest.Equals(input.Guest)) - ) && - ( - this.PasswordChange == input.PasswordChange || - (this.PasswordChange != null && - this.PasswordChange.Equals(input.PasswordChange)) - ) && - ( - this.Marking == input.Marking || - (this.Marking != null && - this.Marking.Equals(input.Marking)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.MailOutDefault == input.MailOutDefault || - (this.MailOutDefault != null && - this.MailOutDefault.Equals(input.MailOutDefault)) - ) && - ( - this.BarcodeAccess == input.BarcodeAccess || - (this.BarcodeAccess != null && - this.BarcodeAccess.Equals(input.BarcodeAccess)) - ) && - ( - this.MustChangePassword == input.MustChangePassword || - (this.MustChangePassword != null && - this.MustChangePassword.Equals(input.MustChangePassword)) - ) && - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ) && - ( - this.Ws == input.Ws || - (this.Ws != null && - this.Ws.Equals(input.Ws)) - ) && - ( - this.DisablePswExpired == input.DisablePswExpired || - (this.DisablePswExpired != null && - this.DisablePswExpired.Equals(input.DisablePswExpired)) - ) && - ( - this.CompleteDescription == input.CompleteDescription || - (this.CompleteDescription != null && - this.CompleteDescription.Equals(input.CompleteDescription)) - ) && - ( - this.CanAddVirtualStamps == input.CanAddVirtualStamps || - (this.CanAddVirtualStamps != null && - this.CanAddVirtualStamps.Equals(input.CanAddVirtualStamps)) - ) && - ( - this.CanApplyStaps == input.CanApplyStaps || - (this.CanApplyStaps != null && - this.CanApplyStaps.Equals(input.CanApplyStaps)) - ) && - ( - this.ViewFlow == input.ViewFlow || - (this.ViewFlow != null && - this.ViewFlow.Equals(input.ViewFlow)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.BusinessUnitUserUnlock != null) - hashCode = hashCode * 59 + this.BusinessUnitUserUnlock.GetHashCode(); - if (this.TempArchive != null) - hashCode = hashCode * 59 + this.TempArchive.GetHashCode(); - if (this.AddressBookProfile != null) - hashCode = hashCode * 59 + this.AddressBookProfile.GetHashCode(); - if (this.DistributionList != null) - hashCode = hashCode * 59 + this.DistributionList.GetHashCode(); - if (this.MailIn != null) - hashCode = hashCode * 59 + this.MailIn.GetHashCode(); - if (this.MailOutStoreExt != null) - hashCode = hashCode * 59 + this.MailOutStoreExt.GetHashCode(); - if (this.MailOutStoreIn != null) - hashCode = hashCode * 59 + this.MailOutStoreIn.GetHashCode(); - if (this.MailDeleteProfile != null) - hashCode = hashCode * 59 + this.MailDeleteProfile.GetHashCode(); - if (this.WebCompliantCopy != null) - hashCode = hashCode * 59 + this.WebCompliantCopy.GetHashCode(); - if (this.WebSearch != null) - hashCode = hashCode * 59 + this.WebSearch.GetHashCode(); - if (this.WebQuickSearch != null) - hashCode = hashCode * 59 + this.WebQuickSearch.GetHashCode(); - if (this.WebMailBox != null) - hashCode = hashCode * 59 + this.WebMailBox.GetHashCode(); - if (this.WebFolders != null) - hashCode = hashCode * 59 + this.WebFolders.GetHashCode(); - if (this.WebSearchViews != null) - hashCode = hashCode * 59 + this.WebSearchViews.GetHashCode(); - if (this.WebBinders != null) - hashCode = hashCode * 59 + this.WebBinders.GetHashCode(); - if (this.WebCheckinAdmin != null) - hashCode = hashCode * 59 + this.WebCheckinAdmin.GetHashCode(); - if (this.MailOutMaxSize != null) - hashCode = hashCode * 59 + this.MailOutMaxSize.GetHashCode(); - if (this.MailOutDefaultType != null) - hashCode = hashCode * 59 + this.MailOutDefaultType.GetHashCode(); - if (this.MailOutType2 != null) - hashCode = hashCode * 59 + this.MailOutType2.GetHashCode(); - if (this.MailOutType3 != null) - hashCode = hashCode * 59 + this.MailOutType3.GetHashCode(); - if (this.SecurityStateList != null) - hashCode = hashCode * 59 + this.SecurityStateList.GetHashCode(); - if (this.Group != null) - hashCode = hashCode * 59 + this.Group.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.BusinessUnit != null) - hashCode = hashCode * 59 + this.BusinessUnit.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.DefaultType != null) - hashCode = hashCode * 59 + this.DefaultType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - if (this.InternalFax != null) - hashCode = hashCode * 59 + this.InternalFax.GetHashCode(); - if (this.LastMail != null) - hashCode = hashCode * 59 + this.LastMail.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.Workflow != null) - hashCode = hashCode * 59 + this.Workflow.GetHashCode(); - if (this.DefaultState != null) - hashCode = hashCode * 59 + this.DefaultState.GetHashCode(); - if (this.AddressBook != null) - hashCode = hashCode * 59 + this.AddressBook.GetHashCode(); - if (this.UserState != null) - hashCode = hashCode * 59 + this.UserState.GetHashCode(); - if (this.MailServer != null) - hashCode = hashCode * 59 + this.MailServer.GetHashCode(); - if (this.WebAccess != null) - hashCode = hashCode * 59 + this.WebAccess.GetHashCode(); - if (this.Upload != null) - hashCode = hashCode * 59 + this.Upload.GetHashCode(); - if (this.Folders != null) - hashCode = hashCode * 59 + this.Folders.GetHashCode(); - if (this.Flow != null) - hashCode = hashCode * 59 + this.Flow.GetHashCode(); - if (this.Sign != null) - hashCode = hashCode * 59 + this.Sign.GetHashCode(); - if (this.Viewer != null) - hashCode = hashCode * 59 + this.Viewer.GetHashCode(); - if (this.Protocol != null) - hashCode = hashCode * 59 + this.Protocol.GetHashCode(); - if (this.Models != null) - hashCode = hashCode * 59 + this.Models.GetHashCode(); - if (this.Domain != null) - hashCode = hashCode * 59 + this.Domain.GetHashCode(); - if (this.OutState != null) - hashCode = hashCode * 59 + this.OutState.GetHashCode(); - if (this.MailBody != null) - hashCode = hashCode * 59 + this.MailBody.GetHashCode(); - if (this.Notify != null) - hashCode = hashCode * 59 + this.Notify.GetHashCode(); - if (this.MailClient != null) - hashCode = hashCode * 59 + this.MailClient.GetHashCode(); - if (this.HtmlBody != null) - hashCode = hashCode * 59 + this.HtmlBody.GetHashCode(); - if (this.RespAos != null) - hashCode = hashCode * 59 + this.RespAos.GetHashCode(); - if (this.AssAos != null) - hashCode = hashCode * 59 + this.AssAos.GetHashCode(); - if (this.CodFis != null) - hashCode = hashCode * 59 + this.CodFis.GetHashCode(); - if (this.Pin != null) - hashCode = hashCode * 59 + this.Pin.GetHashCode(); - if (this.Guest != null) - hashCode = hashCode * 59 + this.Guest.GetHashCode(); - if (this.PasswordChange != null) - hashCode = hashCode * 59 + this.PasswordChange.GetHashCode(); - if (this.Marking != null) - hashCode = hashCode * 59 + this.Marking.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.MailOutDefault != null) - hashCode = hashCode * 59 + this.MailOutDefault.GetHashCode(); - if (this.BarcodeAccess != null) - hashCode = hashCode * 59 + this.BarcodeAccess.GetHashCode(); - if (this.MustChangePassword != null) - hashCode = hashCode * 59 + this.MustChangePassword.GetHashCode(); - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - if (this.Ws != null) - hashCode = hashCode * 59 + this.Ws.GetHashCode(); - if (this.DisablePswExpired != null) - hashCode = hashCode * 59 + this.DisablePswExpired.GetHashCode(); - if (this.CompleteDescription != null) - hashCode = hashCode * 59 + this.CompleteDescription.GetHashCode(); - if (this.CanAddVirtualStamps != null) - hashCode = hashCode * 59 + this.CanAddVirtualStamps.GetHashCode(); - if (this.CanApplyStaps != null) - hashCode = hashCode * 59 + this.CanApplyStaps.GetHashCode(); - if (this.ViewFlow != null) - hashCode = hashCode * 59 + this.ViewFlow.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UserLangDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/UserLangDto.cs deleted file mode 100644 index 0a51292..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UserLangDto.cs +++ /dev/null @@ -1,124 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// UserLangDto - /// - [DataContract] - public partial class UserLangDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// username. - public UserLangDto(string username = default(string)) - { - this.Username = username; - } - - /// - /// Gets or Sets Username - /// - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserLangDto {\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserLangDto); - } - - /// - /// Returns true if UserLangDto instances are equal - /// - /// Instance of UserLangDto to be compared - /// Boolean - public bool Equals(UserLangDto input) - { - if (input == null) - return false; - - return - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UserOptionsDto.cs b/ACUtils.AXRepository/ArxivarNext/Model/UserOptionsDto.cs deleted file mode 100644 index 08a44c6..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UserOptionsDto.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of user options - /// - [DataContract] - public partial class UserOptionsDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Search Options. - /// Possible values: 0: Code 1: Description . - /// p7MView. - public UserOptionsDto(UserSearchOptionDTO search = default(UserSearchOptionDTO), int? documentTypeViewMode = default(int?), bool? p7MView = default(bool?)) - { - this.Search = search; - this.DocumentTypeViewMode = documentTypeViewMode; - this.P7MView = p7MView; - } - - /// - /// Search Options - /// - /// Search Options - [DataMember(Name="search", EmitDefaultValue=false)] - public UserSearchOptionDTO Search { get; set; } - - /// - /// Possible values: 0: Code 1: Description - /// - /// Possible values: 0: Code 1: Description - [DataMember(Name="documentTypeViewMode", EmitDefaultValue=false)] - public int? DocumentTypeViewMode { get; set; } - - /// - /// Gets or Sets P7MView - /// - [DataMember(Name="p7MView", EmitDefaultValue=false)] - public bool? P7MView { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserOptionsDto {\n"); - sb.Append(" Search: ").Append(Search).Append("\n"); - sb.Append(" DocumentTypeViewMode: ").Append(DocumentTypeViewMode).Append("\n"); - sb.Append(" P7MView: ").Append(P7MView).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserOptionsDto); - } - - /// - /// Returns true if UserOptionsDto instances are equal - /// - /// Instance of UserOptionsDto to be compared - /// Boolean - public bool Equals(UserOptionsDto input) - { - if (input == null) - return false; - - return - ( - this.Search == input.Search || - (this.Search != null && - this.Search.Equals(input.Search)) - ) && - ( - this.DocumentTypeViewMode == input.DocumentTypeViewMode || - (this.DocumentTypeViewMode != null && - this.DocumentTypeViewMode.Equals(input.DocumentTypeViewMode)) - ) && - ( - this.P7MView == input.P7MView || - (this.P7MView != null && - this.P7MView.Equals(input.P7MView)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Search != null) - hashCode = hashCode * 59 + this.Search.GetHashCode(); - if (this.DocumentTypeViewMode != null) - hashCode = hashCode * 59 + this.DocumentTypeViewMode.GetHashCode(); - if (this.P7MView != null) - hashCode = hashCode * 59 + this.P7MView.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UserPermissionDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/UserPermissionDTO.cs deleted file mode 100644 index a611353..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UserPermissionDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of user permission - /// - [DataContract] - public partial class UserPermissionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Identifier of user. - /// Description of the user. - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D . - /// User is disabled (non active or hidden). - /// Permission list. - /// External Identifier. - public UserPermissionDTO(string id = default(string), int? user = default(int?), string userDescription = default(string), int? category = default(int?), bool? isUserDisabled = default(bool?), List permissions = default(List), string externalId = default(string)) - { - this.Id = id; - this.User = user; - this.UserDescription = userDescription; - this.Category = category; - this.IsUserDisabled = isUserDisabled; - this.Permissions = permissions; - this.ExternalId = externalId; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Identifier of user - /// - /// Identifier of user - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Description of the user - /// - /// Description of the user - [DataMember(Name="userDescription", EmitDefaultValue=false)] - public string UserDescription { get; set; } - - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - [DataMember(Name="category", EmitDefaultValue=false)] - public int? Category { get; set; } - - /// - /// User is disabled (non active or hidden) - /// - /// User is disabled (non active or hidden) - [DataMember(Name="isUserDisabled", EmitDefaultValue=false)] - public bool? IsUserDisabled { get; set; } - - /// - /// Permission list - /// - /// Permission list - [DataMember(Name="permissions", EmitDefaultValue=false)] - public List Permissions { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserPermissionDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" UserDescription: ").Append(UserDescription).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" IsUserDisabled: ").Append(IsUserDisabled).Append("\n"); - sb.Append(" Permissions: ").Append(Permissions).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserPermissionDTO); - } - - /// - /// Returns true if UserPermissionDTO instances are equal - /// - /// Instance of UserPermissionDTO to be compared - /// Boolean - public bool Equals(UserPermissionDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.UserDescription == input.UserDescription || - (this.UserDescription != null && - this.UserDescription.Equals(input.UserDescription)) - ) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && - ( - this.IsUserDisabled == input.IsUserDisabled || - (this.IsUserDisabled != null && - this.IsUserDisabled.Equals(input.IsUserDisabled)) - ) && - ( - this.Permissions == input.Permissions || - this.Permissions != null && - this.Permissions.SequenceEqual(input.Permissions) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.UserDescription != null) - hashCode = hashCode * 59 + this.UserDescription.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.IsUserDisabled != null) - hashCode = hashCode * 59 + this.IsUserDisabled.GetHashCode(); - if (this.Permissions != null) - hashCode = hashCode * 59 + this.Permissions.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UserPermissionsDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/UserPermissionsDTO.cs deleted file mode 100644 index a9bca22..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UserPermissionsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of permissions data for single user - /// - [DataContract] - public partial class UserPermissionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// User permissions. - /// Permission Properties. - public UserPermissionsDTO(List permissions = default(List), List permissionsProperties = default(List)) - { - this.Permissions = permissions; - this.PermissionsProperties = permissionsProperties; - } - - /// - /// User permissions - /// - /// User permissions - [DataMember(Name="permissions", EmitDefaultValue=false)] - public List Permissions { get; set; } - - /// - /// Permission Properties - /// - /// Permission Properties - [DataMember(Name="permissionsProperties", EmitDefaultValue=false)] - public List PermissionsProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserPermissionsDTO {\n"); - sb.Append(" Permissions: ").Append(Permissions).Append("\n"); - sb.Append(" PermissionsProperties: ").Append(PermissionsProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserPermissionsDTO); - } - - /// - /// Returns true if UserPermissionsDTO instances are equal - /// - /// Instance of UserPermissionsDTO to be compared - /// Boolean - public bool Equals(UserPermissionsDTO input) - { - if (input == null) - return false; - - return - ( - this.Permissions == input.Permissions || - this.Permissions != null && - this.Permissions.SequenceEqual(input.Permissions) - ) && - ( - this.PermissionsProperties == input.PermissionsProperties || - this.PermissionsProperties != null && - this.PermissionsProperties.SequenceEqual(input.PermissionsProperties) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Permissions != null) - hashCode = hashCode * 59 + this.Permissions.GetHashCode(); - if (this.PermissionsProperties != null) - hashCode = hashCode * 59 + this.PermissionsProperties.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UserProfileDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/UserProfileDTO.cs deleted file mode 100644 index 14f5d95..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UserProfileDTO.cs +++ /dev/null @@ -1,754 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of user used to profiling - /// - [DataContract] - public partial class UserProfileDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// External Identifier. - /// Description. - /// Document Identifier. - /// Possible values: 0: To 1: From 2: Cc 3: Senders . - /// Contact Identifier. - /// Fax. - /// Address. - /// Postal Code. - /// Description. - /// Job. - /// Locality. - /// Province. - /// Phone number. - /// Mobile number. - /// Contact Phone number. - /// Contact Fax. - /// Contact House. - /// Contact Department. - /// Reference. - /// Office. - /// Vat. - /// Contact Email. - /// Priority. - /// Code. - /// Email. - /// Fiscal Code. - /// Nation. - /// Address Book Identifier. - /// Society. - /// Office code. - /// Public administration code. - /// Posta Elettronica Certificata (AddressBook). - /// Firma Elettronica Avanzata is enabled. - /// Firma Elettronica Avanzata expiration date. - /// Firstname. - /// Lastname. - /// Posta Elettronica Certificata. - public UserProfileDTO(int? id = default(int?), string externalId = default(string), string description = default(string), string docNumber = default(string), int? type = default(int?), int? contactId = default(int?), string fax = default(string), string address = default(string), string postalCode = default(string), string contact = default(string), string job = default(string), string locality = default(string), string province = default(string), string phone = default(string), string mobilePhone = default(string), string telName = default(string), string faxName = default(string), string house = default(string), string department = default(string), string reference = default(string), string office = default(string), string vat = default(string), string mail = default(string), string priority = default(string), string code = default(string), string email = default(string), string fiscalCode = default(string), string nation = default(string), int? addressBookId = default(int?), string society = default(string), string officeCode = default(string), string publicAdministrationCode = default(string), string pecAddressBook = default(string), bool? feaEnabled = default(bool?), DateTime? feaExpireDate = default(DateTime?), string firstName = default(string), string lastName = default(string), string pec = default(string)) - { - this.Id = id; - this.ExternalId = externalId; - this.Description = description; - this.DocNumber = docNumber; - this.Type = type; - this.ContactId = contactId; - this.Fax = fax; - this.Address = address; - this.PostalCode = postalCode; - this.Contact = contact; - this.Job = job; - this.Locality = locality; - this.Province = province; - this.Phone = phone; - this.MobilePhone = mobilePhone; - this.TelName = telName; - this.FaxName = faxName; - this.House = house; - this.Department = department; - this.Reference = reference; - this.Office = office; - this.Vat = vat; - this.Mail = mail; - this.Priority = priority; - this.Code = code; - this.Email = email; - this.FiscalCode = fiscalCode; - this.Nation = nation; - this.AddressBookId = addressBookId; - this.Society = society; - this.OfficeCode = officeCode; - this.PublicAdministrationCode = publicAdministrationCode; - this.PecAddressBook = pecAddressBook; - this.FeaEnabled = feaEnabled; - this.FeaExpireDate = feaExpireDate; - this.FirstName = firstName; - this.LastName = lastName; - this.Pec = pec; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docNumber", EmitDefaultValue=false)] - public string DocNumber { get; set; } - - /// - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// - /// Possible values: 0: To 1: From 2: Cc 3: Senders - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Contact Identifier - /// - /// Contact Identifier - [DataMember(Name="contactId", EmitDefaultValue=false)] - public int? ContactId { get; set; } - - /// - /// Fax - /// - /// Fax - [DataMember(Name="fax", EmitDefaultValue=false)] - public string Fax { get; set; } - - /// - /// Address - /// - /// Address - [DataMember(Name="address", EmitDefaultValue=false)] - public string Address { get; set; } - - /// - /// Postal Code - /// - /// Postal Code - [DataMember(Name="postalCode", EmitDefaultValue=false)] - public string PostalCode { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="contact", EmitDefaultValue=false)] - public string Contact { get; set; } - - /// - /// Job - /// - /// Job - [DataMember(Name="job", EmitDefaultValue=false)] - public string Job { get; set; } - - /// - /// Locality - /// - /// Locality - [DataMember(Name="locality", EmitDefaultValue=false)] - public string Locality { get; set; } - - /// - /// Province - /// - /// Province - [DataMember(Name="province", EmitDefaultValue=false)] - public string Province { get; set; } - - /// - /// Phone number - /// - /// Phone number - [DataMember(Name="phone", EmitDefaultValue=false)] - public string Phone { get; set; } - - /// - /// Mobile number - /// - /// Mobile number - [DataMember(Name="mobilePhone", EmitDefaultValue=false)] - public string MobilePhone { get; set; } - - /// - /// Contact Phone number - /// - /// Contact Phone number - [DataMember(Name="telName", EmitDefaultValue=false)] - public string TelName { get; set; } - - /// - /// Contact Fax - /// - /// Contact Fax - [DataMember(Name="faxName", EmitDefaultValue=false)] - public string FaxName { get; set; } - - /// - /// Contact House - /// - /// Contact House - [DataMember(Name="house", EmitDefaultValue=false)] - public string House { get; set; } - - /// - /// Contact Department - /// - /// Contact Department - [DataMember(Name="department", EmitDefaultValue=false)] - public string Department { get; set; } - - /// - /// Reference - /// - /// Reference - [DataMember(Name="reference", EmitDefaultValue=false)] - public string Reference { get; set; } - - /// - /// Office - /// - /// Office - [DataMember(Name="office", EmitDefaultValue=false)] - public string Office { get; set; } - - /// - /// Vat - /// - /// Vat - [DataMember(Name="vat", EmitDefaultValue=false)] - public string Vat { get; set; } - - /// - /// Contact Email - /// - /// Contact Email - [DataMember(Name="mail", EmitDefaultValue=false)] - public string Mail { get; set; } - - /// - /// Priority - /// - /// Priority - [DataMember(Name="priority", EmitDefaultValue=false)] - public string Priority { get; set; } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Fiscal Code - /// - /// Fiscal Code - [DataMember(Name="fiscalCode", EmitDefaultValue=false)] - public string FiscalCode { get; set; } - - /// - /// Nation - /// - /// Nation - [DataMember(Name="nation", EmitDefaultValue=false)] - public string Nation { get; set; } - - /// - /// Address Book Identifier - /// - /// Address Book Identifier - [DataMember(Name="addressBookId", EmitDefaultValue=false)] - public int? AddressBookId { get; set; } - - /// - /// Society - /// - /// Society - [DataMember(Name="society", EmitDefaultValue=false)] - public string Society { get; set; } - - /// - /// Office code - /// - /// Office code - [DataMember(Name="officeCode", EmitDefaultValue=false)] - public string OfficeCode { get; set; } - - /// - /// Public administration code - /// - /// Public administration code - [DataMember(Name="publicAdministrationCode", EmitDefaultValue=false)] - public string PublicAdministrationCode { get; set; } - - /// - /// Posta Elettronica Certificata (AddressBook) - /// - /// Posta Elettronica Certificata (AddressBook) - [DataMember(Name="pecAddressBook", EmitDefaultValue=false)] - public string PecAddressBook { get; set; } - - /// - /// Firma Elettronica Avanzata is enabled - /// - /// Firma Elettronica Avanzata is enabled - [DataMember(Name="feaEnabled", EmitDefaultValue=false)] - public bool? FeaEnabled { get; set; } - - /// - /// Firma Elettronica Avanzata expiration date - /// - /// Firma Elettronica Avanzata expiration date - [DataMember(Name="feaExpireDate", EmitDefaultValue=false)] - public DateTime? FeaExpireDate { get; set; } - - /// - /// Firstname - /// - /// Firstname - [DataMember(Name="firstName", EmitDefaultValue=false)] - public string FirstName { get; set; } - - /// - /// Lastname - /// - /// Lastname - [DataMember(Name="lastName", EmitDefaultValue=false)] - public string LastName { get; set; } - - /// - /// Posta Elettronica Certificata - /// - /// Posta Elettronica Certificata - [DataMember(Name="pec", EmitDefaultValue=false)] - public string Pec { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserProfileDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DocNumber: ").Append(DocNumber).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" ContactId: ").Append(ContactId).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); - sb.Append(" Contact: ").Append(Contact).Append("\n"); - sb.Append(" Job: ").Append(Job).Append("\n"); - sb.Append(" Locality: ").Append(Locality).Append("\n"); - sb.Append(" Province: ").Append(Province).Append("\n"); - sb.Append(" Phone: ").Append(Phone).Append("\n"); - sb.Append(" MobilePhone: ").Append(MobilePhone).Append("\n"); - sb.Append(" TelName: ").Append(TelName).Append("\n"); - sb.Append(" FaxName: ").Append(FaxName).Append("\n"); - sb.Append(" House: ").Append(House).Append("\n"); - sb.Append(" Department: ").Append(Department).Append("\n"); - sb.Append(" Reference: ").Append(Reference).Append("\n"); - sb.Append(" Office: ").Append(Office).Append("\n"); - sb.Append(" Vat: ").Append(Vat).Append("\n"); - sb.Append(" Mail: ").Append(Mail).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" FiscalCode: ").Append(FiscalCode).Append("\n"); - sb.Append(" Nation: ").Append(Nation).Append("\n"); - sb.Append(" AddressBookId: ").Append(AddressBookId).Append("\n"); - sb.Append(" Society: ").Append(Society).Append("\n"); - sb.Append(" OfficeCode: ").Append(OfficeCode).Append("\n"); - sb.Append(" PublicAdministrationCode: ").Append(PublicAdministrationCode).Append("\n"); - sb.Append(" PecAddressBook: ").Append(PecAddressBook).Append("\n"); - sb.Append(" FeaEnabled: ").Append(FeaEnabled).Append("\n"); - sb.Append(" FeaExpireDate: ").Append(FeaExpireDate).Append("\n"); - sb.Append(" FirstName: ").Append(FirstName).Append("\n"); - sb.Append(" LastName: ").Append(LastName).Append("\n"); - sb.Append(" Pec: ").Append(Pec).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserProfileDTO); - } - - /// - /// Returns true if UserProfileDTO instances are equal - /// - /// Instance of UserProfileDTO to be compared - /// Boolean - public bool Equals(UserProfileDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.DocNumber == input.DocNumber || - (this.DocNumber != null && - this.DocNumber.Equals(input.DocNumber)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.ContactId == input.ContactId || - (this.ContactId != null && - this.ContactId.Equals(input.ContactId)) - ) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && - ( - this.PostalCode == input.PostalCode || - (this.PostalCode != null && - this.PostalCode.Equals(input.PostalCode)) - ) && - ( - this.Contact == input.Contact || - (this.Contact != null && - this.Contact.Equals(input.Contact)) - ) && - ( - this.Job == input.Job || - (this.Job != null && - this.Job.Equals(input.Job)) - ) && - ( - this.Locality == input.Locality || - (this.Locality != null && - this.Locality.Equals(input.Locality)) - ) && - ( - this.Province == input.Province || - (this.Province != null && - this.Province.Equals(input.Province)) - ) && - ( - this.Phone == input.Phone || - (this.Phone != null && - this.Phone.Equals(input.Phone)) - ) && - ( - this.MobilePhone == input.MobilePhone || - (this.MobilePhone != null && - this.MobilePhone.Equals(input.MobilePhone)) - ) && - ( - this.TelName == input.TelName || - (this.TelName != null && - this.TelName.Equals(input.TelName)) - ) && - ( - this.FaxName == input.FaxName || - (this.FaxName != null && - this.FaxName.Equals(input.FaxName)) - ) && - ( - this.House == input.House || - (this.House != null && - this.House.Equals(input.House)) - ) && - ( - this.Department == input.Department || - (this.Department != null && - this.Department.Equals(input.Department)) - ) && - ( - this.Reference == input.Reference || - (this.Reference != null && - this.Reference.Equals(input.Reference)) - ) && - ( - this.Office == input.Office || - (this.Office != null && - this.Office.Equals(input.Office)) - ) && - ( - this.Vat == input.Vat || - (this.Vat != null && - this.Vat.Equals(input.Vat)) - ) && - ( - this.Mail == input.Mail || - (this.Mail != null && - this.Mail.Equals(input.Mail)) - ) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.FiscalCode == input.FiscalCode || - (this.FiscalCode != null && - this.FiscalCode.Equals(input.FiscalCode)) - ) && - ( - this.Nation == input.Nation || - (this.Nation != null && - this.Nation.Equals(input.Nation)) - ) && - ( - this.AddressBookId == input.AddressBookId || - (this.AddressBookId != null && - this.AddressBookId.Equals(input.AddressBookId)) - ) && - ( - this.Society == input.Society || - (this.Society != null && - this.Society.Equals(input.Society)) - ) && - ( - this.OfficeCode == input.OfficeCode || - (this.OfficeCode != null && - this.OfficeCode.Equals(input.OfficeCode)) - ) && - ( - this.PublicAdministrationCode == input.PublicAdministrationCode || - (this.PublicAdministrationCode != null && - this.PublicAdministrationCode.Equals(input.PublicAdministrationCode)) - ) && - ( - this.PecAddressBook == input.PecAddressBook || - (this.PecAddressBook != null && - this.PecAddressBook.Equals(input.PecAddressBook)) - ) && - ( - this.FeaEnabled == input.FeaEnabled || - (this.FeaEnabled != null && - this.FeaEnabled.Equals(input.FeaEnabled)) - ) && - ( - this.FeaExpireDate == input.FeaExpireDate || - (this.FeaExpireDate != null && - this.FeaExpireDate.Equals(input.FeaExpireDate)) - ) && - ( - this.FirstName == input.FirstName || - (this.FirstName != null && - this.FirstName.Equals(input.FirstName)) - ) && - ( - this.LastName == input.LastName || - (this.LastName != null && - this.LastName.Equals(input.LastName)) - ) && - ( - this.Pec == input.Pec || - (this.Pec != null && - this.Pec.Equals(input.Pec)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DocNumber != null) - hashCode = hashCode * 59 + this.DocNumber.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.ContactId != null) - hashCode = hashCode * 59 + this.ContactId.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.PostalCode != null) - hashCode = hashCode * 59 + this.PostalCode.GetHashCode(); - if (this.Contact != null) - hashCode = hashCode * 59 + this.Contact.GetHashCode(); - if (this.Job != null) - hashCode = hashCode * 59 + this.Job.GetHashCode(); - if (this.Locality != null) - hashCode = hashCode * 59 + this.Locality.GetHashCode(); - if (this.Province != null) - hashCode = hashCode * 59 + this.Province.GetHashCode(); - if (this.Phone != null) - hashCode = hashCode * 59 + this.Phone.GetHashCode(); - if (this.MobilePhone != null) - hashCode = hashCode * 59 + this.MobilePhone.GetHashCode(); - if (this.TelName != null) - hashCode = hashCode * 59 + this.TelName.GetHashCode(); - if (this.FaxName != null) - hashCode = hashCode * 59 + this.FaxName.GetHashCode(); - if (this.House != null) - hashCode = hashCode * 59 + this.House.GetHashCode(); - if (this.Department != null) - hashCode = hashCode * 59 + this.Department.GetHashCode(); - if (this.Reference != null) - hashCode = hashCode * 59 + this.Reference.GetHashCode(); - if (this.Office != null) - hashCode = hashCode * 59 + this.Office.GetHashCode(); - if (this.Vat != null) - hashCode = hashCode * 59 + this.Vat.GetHashCode(); - if (this.Mail != null) - hashCode = hashCode * 59 + this.Mail.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.FiscalCode != null) - hashCode = hashCode * 59 + this.FiscalCode.GetHashCode(); - if (this.Nation != null) - hashCode = hashCode * 59 + this.Nation.GetHashCode(); - if (this.AddressBookId != null) - hashCode = hashCode * 59 + this.AddressBookId.GetHashCode(); - if (this.Society != null) - hashCode = hashCode * 59 + this.Society.GetHashCode(); - if (this.OfficeCode != null) - hashCode = hashCode * 59 + this.OfficeCode.GetHashCode(); - if (this.PublicAdministrationCode != null) - hashCode = hashCode * 59 + this.PublicAdministrationCode.GetHashCode(); - if (this.PecAddressBook != null) - hashCode = hashCode * 59 + this.PecAddressBook.GetHashCode(); - if (this.FeaEnabled != null) - hashCode = hashCode * 59 + this.FeaEnabled.GetHashCode(); - if (this.FeaExpireDate != null) - hashCode = hashCode * 59 + this.FeaExpireDate.GetHashCode(); - if (this.FirstName != null) - hashCode = hashCode * 59 + this.FirstName.GetHashCode(); - if (this.LastName != null) - hashCode = hashCode * 59 + this.LastName.GetHashCode(); - if (this.Pec != null) - hashCode = hashCode * 59 + this.Pec.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UserSearchCriteriaDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/UserSearchCriteriaDTO.cs deleted file mode 100644 index 9ff4ca1..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UserSearchCriteriaDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of user search parameters - /// - [DataContract] - public partial class UserSearchCriteriaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// User search. - /// User select. - public UserSearchCriteriaDTO(UserSearchDTO searchDto = default(UserSearchDTO), SelectDTO selectDto = default(SelectDTO)) - { - this.SearchDto = searchDto; - this.SelectDto = selectDto; - } - - /// - /// User search - /// - /// User search - [DataMember(Name="searchDto", EmitDefaultValue=false)] - public UserSearchDTO SearchDto { get; set; } - - /// - /// User select - /// - /// User select - [DataMember(Name="selectDto", EmitDefaultValue=false)] - public SelectDTO SelectDto { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserSearchCriteriaDTO {\n"); - sb.Append(" SearchDto: ").Append(SearchDto).Append("\n"); - sb.Append(" SelectDto: ").Append(SelectDto).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserSearchCriteriaDTO); - } - - /// - /// Returns true if UserSearchCriteriaDTO instances are equal - /// - /// Instance of UserSearchCriteriaDTO to be compared - /// Boolean - public bool Equals(UserSearchCriteriaDTO input) - { - if (input == null) - return false; - - return - ( - this.SearchDto == input.SearchDto || - (this.SearchDto != null && - this.SearchDto.Equals(input.SearchDto)) - ) && - ( - this.SelectDto == input.SelectDto || - (this.SelectDto != null && - this.SelectDto.Equals(input.SelectDto)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SearchDto != null) - hashCode = hashCode * 59 + this.SearchDto.GetHashCode(); - if (this.SelectDto != null) - hashCode = hashCode * 59 + this.SelectDto.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UserSearchDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/UserSearchDTO.cs deleted file mode 100644 index 3f34724..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UserSearchDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of user search fields - /// - [DataContract] - public partial class UserSearchDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// List of fields of type 'String'. - /// List of fields of type 'Integer'. - public UserSearchDTO(List stringFields = default(List), List intFields = default(List)) - { - this.StringFields = stringFields; - this.IntFields = intFields; - } - - /// - /// List of fields of type 'String' - /// - /// List of fields of type 'String' - [DataMember(Name="stringFields", EmitDefaultValue=false)] - public List StringFields { get; set; } - - /// - /// List of fields of type 'Integer' - /// - /// List of fields of type 'Integer' - [DataMember(Name="intFields", EmitDefaultValue=false)] - public List IntFields { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserSearchDTO {\n"); - sb.Append(" StringFields: ").Append(StringFields).Append("\n"); - sb.Append(" IntFields: ").Append(IntFields).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserSearchDTO); - } - - /// - /// Returns true if UserSearchDTO instances are equal - /// - /// Instance of UserSearchDTO to be compared - /// Boolean - public bool Equals(UserSearchDTO input) - { - if (input == null) - return false; - - return - ( - this.StringFields == input.StringFields || - this.StringFields != null && - this.StringFields.SequenceEqual(input.StringFields) - ) && - ( - this.IntFields == input.IntFields || - this.IntFields != null && - this.IntFields.SequenceEqual(input.IntFields) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.StringFields != null) - hashCode = hashCode * 59 + this.StringFields.GetHashCode(); - if (this.IntFields != null) - hashCode = hashCode * 59 + this.IntFields.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UserSearchOptionDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/UserSearchOptionDTO.cs deleted file mode 100644 index 4d13c47..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UserSearchOptionDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of user option for search - /// - [DataContract] - public partial class UserSearchOptionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Maximum Number of Items for search. - /// Maximum Number of Items for view. - /// Extend the search to the knowledge copy. - /// Visibility of Authority Data. - public UserSearchOptionDTO(int? maxSearchItems = default(int?), int? maxViewItems = default(int?), bool? extendAInCc = default(bool?), bool? authorityData = default(bool?)) - { - this.MaxSearchItems = maxSearchItems; - this.MaxViewItems = maxViewItems; - this.ExtendAInCc = extendAInCc; - this.AuthorityData = authorityData; - } - - /// - /// Maximum Number of Items for search - /// - /// Maximum Number of Items for search - [DataMember(Name="maxSearchItems", EmitDefaultValue=false)] - public int? MaxSearchItems { get; set; } - - /// - /// Maximum Number of Items for view - /// - /// Maximum Number of Items for view - [DataMember(Name="maxViewItems", EmitDefaultValue=false)] - public int? MaxViewItems { get; set; } - - /// - /// Extend the search to the knowledge copy - /// - /// Extend the search to the knowledge copy - [DataMember(Name="extendAInCc", EmitDefaultValue=false)] - public bool? ExtendAInCc { get; set; } - - /// - /// Visibility of Authority Data - /// - /// Visibility of Authority Data - [DataMember(Name="authorityData", EmitDefaultValue=false)] - public bool? AuthorityData { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserSearchOptionDTO {\n"); - sb.Append(" MaxSearchItems: ").Append(MaxSearchItems).Append("\n"); - sb.Append(" MaxViewItems: ").Append(MaxViewItems).Append("\n"); - sb.Append(" ExtendAInCc: ").Append(ExtendAInCc).Append("\n"); - sb.Append(" AuthorityData: ").Append(AuthorityData).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserSearchOptionDTO); - } - - /// - /// Returns true if UserSearchOptionDTO instances are equal - /// - /// Instance of UserSearchOptionDTO to be compared - /// Boolean - public bool Equals(UserSearchOptionDTO input) - { - if (input == null) - return false; - - return - ( - this.MaxSearchItems == input.MaxSearchItems || - (this.MaxSearchItems != null && - this.MaxSearchItems.Equals(input.MaxSearchItems)) - ) && - ( - this.MaxViewItems == input.MaxViewItems || - (this.MaxViewItems != null && - this.MaxViewItems.Equals(input.MaxViewItems)) - ) && - ( - this.ExtendAInCc == input.ExtendAInCc || - (this.ExtendAInCc != null && - this.ExtendAInCc.Equals(input.ExtendAInCc)) - ) && - ( - this.AuthorityData == input.AuthorityData || - (this.AuthorityData != null && - this.AuthorityData.Equals(input.AuthorityData)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.MaxSearchItems != null) - hashCode = hashCode * 59 + this.MaxSearchItems.GetHashCode(); - if (this.MaxViewItems != null) - hashCode = hashCode * 59 + this.MaxViewItems.GetHashCode(); - if (this.ExtendAInCc != null) - hashCode = hashCode * 59 + this.ExtendAInCc.GetHashCode(); - if (this.AuthorityData != null) - hashCode = hashCode * 59 + this.AuthorityData.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UserSecurityStateDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/UserSecurityStateDTO.cs deleted file mode 100644 index 05caba8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UserSecurityStateDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// UserSecurityStateDTO - /// - [DataContract] - public partial class UserSecurityStateDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identificativo.. - /// Nome dello stato.. - /// Identificativo utente.. - /// Possibilità di modifica del file associato al profilo documentale.. - /// Possibilità di modifica del profilo documentale.. - public UserSecurityStateDTO(int? id = default(int?), string state = default(string), int? userId = default(int?), bool? opt1 = default(bool?), bool? opt2 = default(bool?)) - { - this.Id = id; - this.State = state; - this.UserId = userId; - this.Opt1 = opt1; - this.Opt2 = opt2; - } - - /// - /// Identificativo. - /// - /// Identificativo. - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Nome dello stato. - /// - /// Nome dello stato. - [DataMember(Name="state", EmitDefaultValue=false)] - public string State { get; set; } - - /// - /// Identificativo utente. - /// - /// Identificativo utente. - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Possibilità di modifica del file associato al profilo documentale. - /// - /// Possibilità di modifica del file associato al profilo documentale. - [DataMember(Name="opt1", EmitDefaultValue=false)] - public bool? Opt1 { get; set; } - - /// - /// Possibilità di modifica del profilo documentale. - /// - /// Possibilità di modifica del profilo documentale. - [DataMember(Name="opt2", EmitDefaultValue=false)] - public bool? Opt2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserSecurityStateDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" Opt1: ").Append(Opt1).Append("\n"); - sb.Append(" Opt2: ").Append(Opt2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserSecurityStateDTO); - } - - /// - /// Returns true if UserSecurityStateDTO instances are equal - /// - /// Instance of UserSecurityStateDTO to be compared - /// Boolean - public bool Equals(UserSecurityStateDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.Opt1 == input.Opt1 || - (this.Opt1 != null && - this.Opt1.Equals(input.Opt1)) - ) && - ( - this.Opt2 == input.Opt2 || - (this.Opt2 != null && - this.Opt2.Equals(input.Opt2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.Opt1 != null) - hashCode = hashCode * 59 + this.Opt1.GetHashCode(); - if (this.Opt2 != null) - hashCode = hashCode * 59 + this.Opt2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/UserUpdateDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/UserUpdateDTO.cs deleted file mode 100644 index c40d053..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/UserUpdateDTO.cs +++ /dev/null @@ -1,1293 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// User class for update - /// - [DataContract] - public partial class UserUpdateDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Comportamento dell'utente nel caso di impianto ad \"aoo\" bloccate.. - /// Comportamento dell'utente nel caso di archiviazione provvisoria.. - /// Abilitazione all'inserimento immediato in rubrica durante la profilazione, nel caso non esista il contatto.. - /// Abilitazione alla manutenzione delle liste di distribuzione.. - /// Possible values: 0: Selected 1: All 2: JustAddressBook . - /// Possible values: 0: None 1: Always 2: Never 3: Selected . - /// Possible values: 0: None 1: Always 2: Never 3: Selected . - /// Abilitazione alla cancellazione del profilo se associato alle mail.. - /// Se attivo impone la visualizzazione degli allegati solo in copia conforme dal Web. - /// webSearch. - /// Abilita la ricerche rapide dal WEB. - /// Abilita la casella posta dal WEB. - /// Abilita i fascicoli dal WEB. - /// Abilita le viste dal WEB. - /// Abilita la pratiche dal WEB. - /// Manutenzione lista di Checkin dal Web. - /// Dimensione massima della posta in uscita espressa in Kb. - /// mailOutDefaultType. - /// mailOutType2. - /// mailOutType3. - /// securityStateList. - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler . - /// Description. - /// Email. - /// Business Unit. - /// Password. - /// Default Document Type of First Level. - /// Default Document Type of Second Level. - /// Default Document Type of Third Level. - /// Personal Fax. - /// Date of last reading email. - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D . - /// Enabling Workflow Management. - /// Default Document Status. - /// Enabling to insert new address book items into profiling. - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto . - /// Email Server. - /// Access via Web. - /// Enabled to Import. - /// Enabled to OCR. - /// Enabled to Workflow. - /// Enabled to Sign. - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal . - /// Enabled to Public Amministration (PA) Protocol. - /// Enabled to Templates. - /// Domain. - /// Out Status. - /// Email Body. - /// Enabled to Notify. - /// Mailer client. - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione . - /// Person in Charge of AOS. - /// Enabled to Profile Manual Emails. - /// Fiscal Code. - /// Pin. - /// Guest. - /// Change Password. - /// Imagine for the Digital Signature. - /// Type. - /// Enabled to Profile Manual Outgoing Emails. - /// Enabled to Barcode. - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew . - /// Language. - /// Enabled to IX service.. - /// Disabled Expired Password. - /// Full Description. - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Enable the user to view the workflow information. - public UserUpdateDTO(int? user = default(int?), bool? businessUnitUserUnlock = default(bool?), bool? tempArchive = default(bool?), bool? addressBookProfile = default(bool?), bool? distributionList = default(bool?), int? mailIn = default(int?), int? mailOutStoreExt = default(int?), int? mailOutStoreIn = default(int?), bool? mailDeleteProfile = default(bool?), bool? webCompliantCopy = default(bool?), bool? webSearch = default(bool?), bool? webQuickSearch = default(bool?), bool? webMailBox = default(bool?), bool? webFolders = default(bool?), bool? webSearchViews = default(bool?), bool? webBinders = default(bool?), bool? webCheckinAdmin = default(bool?), int? mailOutMaxSize = default(int?), int? mailOutDefaultType = default(int?), int? mailOutType2 = default(int?), int? mailOutType3 = default(int?), List securityStateList = default(List), int? group = default(int?), string description = default(string), string email = default(string), string businessUnit = default(string), string password = default(string), int? defaultType = default(int?), int? type2 = default(int?), int? type3 = default(int?), string internalFax = default(string), DateTime? lastMail = default(DateTime?), int? category = default(int?), bool? workflow = default(bool?), string defaultState = default(string), bool? addressBook = default(bool?), int? userState = default(int?), string mailServer = default(string), bool? webAccess = default(bool?), bool? upload = default(bool?), bool? folders = default(bool?), bool? flow = default(bool?), bool? sign = default(bool?), int? viewer = default(int?), bool? protocol = default(bool?), bool? models = default(bool?), string domain = default(string), string outState = default(string), string mailBody = default(string), bool? notify = default(bool?), string mailClient = default(string), int? htmlBody = default(int?), bool? respAos = default(bool?), bool? assAos = default(bool?), string codFis = default(string), string pin = default(string), bool? guest = default(bool?), bool? passwordChange = default(bool?), byte[] marking = default(byte[]), int? type = default(int?), bool? mailOutDefault = default(bool?), bool? barcodeAccess = default(bool?), int? mustChangePassword = default(int?), string lang = default(string), bool? ws = default(bool?), bool? disablePswExpired = default(bool?), string completeDescription = default(string), int? canAddVirtualStamps = default(int?), int? canApplyStaps = default(int?), bool? viewFlow = default(bool?)) - { - this.User = user; - this.BusinessUnitUserUnlock = businessUnitUserUnlock; - this.TempArchive = tempArchive; - this.AddressBookProfile = addressBookProfile; - this.DistributionList = distributionList; - this.MailIn = mailIn; - this.MailOutStoreExt = mailOutStoreExt; - this.MailOutStoreIn = mailOutStoreIn; - this.MailDeleteProfile = mailDeleteProfile; - this.WebCompliantCopy = webCompliantCopy; - this.WebSearch = webSearch; - this.WebQuickSearch = webQuickSearch; - this.WebMailBox = webMailBox; - this.WebFolders = webFolders; - this.WebSearchViews = webSearchViews; - this.WebBinders = webBinders; - this.WebCheckinAdmin = webCheckinAdmin; - this.MailOutMaxSize = mailOutMaxSize; - this.MailOutDefaultType = mailOutDefaultType; - this.MailOutType2 = mailOutType2; - this.MailOutType3 = mailOutType3; - this.SecurityStateList = securityStateList; - this.Group = group; - this.Description = description; - this.Email = email; - this.BusinessUnit = businessUnit; - this.Password = password; - this.DefaultType = defaultType; - this.Type2 = type2; - this.Type3 = type3; - this.InternalFax = internalFax; - this.LastMail = lastMail; - this.Category = category; - this.Workflow = workflow; - this.DefaultState = defaultState; - this.AddressBook = addressBook; - this.UserState = userState; - this.MailServer = mailServer; - this.WebAccess = webAccess; - this.Upload = upload; - this.Folders = folders; - this.Flow = flow; - this.Sign = sign; - this.Viewer = viewer; - this.Protocol = protocol; - this.Models = models; - this.Domain = domain; - this.OutState = outState; - this.MailBody = mailBody; - this.Notify = notify; - this.MailClient = mailClient; - this.HtmlBody = htmlBody; - this.RespAos = respAos; - this.AssAos = assAos; - this.CodFis = codFis; - this.Pin = pin; - this.Guest = guest; - this.PasswordChange = passwordChange; - this.Marking = marking; - this.Type = type; - this.MailOutDefault = mailOutDefault; - this.BarcodeAccess = barcodeAccess; - this.MustChangePassword = mustChangePassword; - this.Lang = lang; - this.Ws = ws; - this.DisablePswExpired = disablePswExpired; - this.CompleteDescription = completeDescription; - this.CanAddVirtualStamps = canAddVirtualStamps; - this.CanApplyStaps = canApplyStaps; - this.ViewFlow = viewFlow; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Comportamento dell'utente nel caso di impianto ad \"aoo\" bloccate. - /// - /// Comportamento dell'utente nel caso di impianto ad \"aoo\" bloccate. - [DataMember(Name="businessUnitUserUnlock", EmitDefaultValue=false)] - public bool? BusinessUnitUserUnlock { get; set; } - - /// - /// Comportamento dell'utente nel caso di archiviazione provvisoria. - /// - /// Comportamento dell'utente nel caso di archiviazione provvisoria. - [DataMember(Name="tempArchive", EmitDefaultValue=false)] - public bool? TempArchive { get; set; } - - /// - /// Abilitazione all'inserimento immediato in rubrica durante la profilazione, nel caso non esista il contatto. - /// - /// Abilitazione all'inserimento immediato in rubrica durante la profilazione, nel caso non esista il contatto. - [DataMember(Name="addressBookProfile", EmitDefaultValue=false)] - public bool? AddressBookProfile { get; set; } - - /// - /// Abilitazione alla manutenzione delle liste di distribuzione. - /// - /// Abilitazione alla manutenzione delle liste di distribuzione. - [DataMember(Name="distributionList", EmitDefaultValue=false)] - public bool? DistributionList { get; set; } - - /// - /// Possible values: 0: Selected 1: All 2: JustAddressBook - /// - /// Possible values: 0: Selected 1: All 2: JustAddressBook - [DataMember(Name="mailIn", EmitDefaultValue=false)] - public int? MailIn { get; set; } - - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - [DataMember(Name="mailOutStoreExt", EmitDefaultValue=false)] - public int? MailOutStoreExt { get; set; } - - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - [DataMember(Name="mailOutStoreIn", EmitDefaultValue=false)] - public int? MailOutStoreIn { get; set; } - - /// - /// Abilitazione alla cancellazione del profilo se associato alle mail. - /// - /// Abilitazione alla cancellazione del profilo se associato alle mail. - [DataMember(Name="mailDeleteProfile", EmitDefaultValue=false)] - public bool? MailDeleteProfile { get; set; } - - /// - /// Se attivo impone la visualizzazione degli allegati solo in copia conforme dal Web - /// - /// Se attivo impone la visualizzazione degli allegati solo in copia conforme dal Web - [DataMember(Name="webCompliantCopy", EmitDefaultValue=false)] - public bool? WebCompliantCopy { get; set; } - - /// - /// Gets or Sets WebSearch - /// - [DataMember(Name="webSearch", EmitDefaultValue=false)] - public bool? WebSearch { get; set; } - - /// - /// Abilita la ricerche rapide dal WEB - /// - /// Abilita la ricerche rapide dal WEB - [DataMember(Name="webQuickSearch", EmitDefaultValue=false)] - public bool? WebQuickSearch { get; set; } - - /// - /// Abilita la casella posta dal WEB - /// - /// Abilita la casella posta dal WEB - [DataMember(Name="webMailBox", EmitDefaultValue=false)] - public bool? WebMailBox { get; set; } - - /// - /// Abilita i fascicoli dal WEB - /// - /// Abilita i fascicoli dal WEB - [DataMember(Name="webFolders", EmitDefaultValue=false)] - public bool? WebFolders { get; set; } - - /// - /// Abilita le viste dal WEB - /// - /// Abilita le viste dal WEB - [DataMember(Name="webSearchViews", EmitDefaultValue=false)] - public bool? WebSearchViews { get; set; } - - /// - /// Abilita la pratiche dal WEB - /// - /// Abilita la pratiche dal WEB - [DataMember(Name="webBinders", EmitDefaultValue=false)] - public bool? WebBinders { get; set; } - - /// - /// Manutenzione lista di Checkin dal Web - /// - /// Manutenzione lista di Checkin dal Web - [DataMember(Name="webCheckinAdmin", EmitDefaultValue=false)] - public bool? WebCheckinAdmin { get; set; } - - /// - /// Dimensione massima della posta in uscita espressa in Kb - /// - /// Dimensione massima della posta in uscita espressa in Kb - [DataMember(Name="mailOutMaxSize", EmitDefaultValue=false)] - public int? MailOutMaxSize { get; set; } - - /// - /// Gets or Sets MailOutDefaultType - /// - [DataMember(Name="mailOutDefaultType", EmitDefaultValue=false)] - public int? MailOutDefaultType { get; set; } - - /// - /// Gets or Sets MailOutType2 - /// - [DataMember(Name="mailOutType2", EmitDefaultValue=false)] - public int? MailOutType2 { get; set; } - - /// - /// Gets or Sets MailOutType3 - /// - [DataMember(Name="mailOutType3", EmitDefaultValue=false)] - public int? MailOutType3 { get; set; } - - /// - /// Gets or Sets SecurityStateList - /// - [DataMember(Name="securityStateList", EmitDefaultValue=false)] - public List SecurityStateList { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - [DataMember(Name="group", EmitDefaultValue=false)] - public int? Group { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Business Unit - /// - /// Business Unit - [DataMember(Name="businessUnit", EmitDefaultValue=false)] - public string BusinessUnit { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Default Document Type of First Level - /// - /// Default Document Type of First Level - [DataMember(Name="defaultType", EmitDefaultValue=false)] - public int? DefaultType { get; set; } - - /// - /// Default Document Type of Second Level - /// - /// Default Document Type of Second Level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Default Document Type of Third Level - /// - /// Default Document Type of Third Level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Personal Fax - /// - /// Personal Fax - [DataMember(Name="internalFax", EmitDefaultValue=false)] - public string InternalFax { get; set; } - - /// - /// Date of last reading email - /// - /// Date of last reading email - [DataMember(Name="lastMail", EmitDefaultValue=false)] - public DateTime? LastMail { get; set; } - - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - [DataMember(Name="category", EmitDefaultValue=false)] - public int? Category { get; set; } - - /// - /// Enabling Workflow Management - /// - /// Enabling Workflow Management - [DataMember(Name="workflow", EmitDefaultValue=false)] - public bool? Workflow { get; set; } - - /// - /// Default Document Status - /// - /// Default Document Status - [DataMember(Name="defaultState", EmitDefaultValue=false)] - public string DefaultState { get; set; } - - /// - /// Enabling to insert new address book items into profiling - /// - /// Enabling to insert new address book items into profiling - [DataMember(Name="addressBook", EmitDefaultValue=false)] - public bool? AddressBook { get; set; } - - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - [DataMember(Name="userState", EmitDefaultValue=false)] - public int? UserState { get; set; } - - /// - /// Email Server - /// - /// Email Server - [DataMember(Name="mailServer", EmitDefaultValue=false)] - public string MailServer { get; set; } - - /// - /// Access via Web - /// - /// Access via Web - [DataMember(Name="webAccess", EmitDefaultValue=false)] - public bool? WebAccess { get; set; } - - /// - /// Enabled to Import - /// - /// Enabled to Import - [DataMember(Name="upload", EmitDefaultValue=false)] - public bool? Upload { get; set; } - - /// - /// Enabled to OCR - /// - /// Enabled to OCR - [DataMember(Name="folders", EmitDefaultValue=false)] - public bool? Folders { get; set; } - - /// - /// Enabled to Workflow - /// - /// Enabled to Workflow - [DataMember(Name="flow", EmitDefaultValue=false)] - public bool? Flow { get; set; } - - /// - /// Enabled to Sign - /// - /// Enabled to Sign - [DataMember(Name="sign", EmitDefaultValue=false)] - public bool? Sign { get; set; } - - /// - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal - /// - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal - [DataMember(Name="viewer", EmitDefaultValue=false)] - public int? Viewer { get; set; } - - /// - /// Enabled to Public Amministration (PA) Protocol - /// - /// Enabled to Public Amministration (PA) Protocol - [DataMember(Name="protocol", EmitDefaultValue=false)] - public bool? Protocol { get; set; } - - /// - /// Enabled to Templates - /// - /// Enabled to Templates - [DataMember(Name="models", EmitDefaultValue=false)] - public bool? Models { get; set; } - - /// - /// Domain - /// - /// Domain - [DataMember(Name="domain", EmitDefaultValue=false)] - public string Domain { get; set; } - - /// - /// Out Status - /// - /// Out Status - [DataMember(Name="outState", EmitDefaultValue=false)] - public string OutState { get; set; } - - /// - /// Email Body - /// - /// Email Body - [DataMember(Name="mailBody", EmitDefaultValue=false)] - public string MailBody { get; set; } - - /// - /// Enabled to Notify - /// - /// Enabled to Notify - [DataMember(Name="notify", EmitDefaultValue=false)] - public bool? Notify { get; set; } - - /// - /// Mailer client - /// - /// Mailer client - [DataMember(Name="mailClient", EmitDefaultValue=false)] - public string MailClient { get; set; } - - /// - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione - /// - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione - [DataMember(Name="htmlBody", EmitDefaultValue=false)] - public int? HtmlBody { get; set; } - - /// - /// Person in Charge of AOS - /// - /// Person in Charge of AOS - [DataMember(Name="respAos", EmitDefaultValue=false)] - public bool? RespAos { get; set; } - - /// - /// Enabled to Profile Manual Emails - /// - /// Enabled to Profile Manual Emails - [DataMember(Name="assAos", EmitDefaultValue=false)] - public bool? AssAos { get; set; } - - /// - /// Fiscal Code - /// - /// Fiscal Code - [DataMember(Name="codFis", EmitDefaultValue=false)] - public string CodFis { get; set; } - - /// - /// Pin - /// - /// Pin - [DataMember(Name="pin", EmitDefaultValue=false)] - public string Pin { get; set; } - - /// - /// Guest - /// - /// Guest - [DataMember(Name="guest", EmitDefaultValue=false)] - public bool? Guest { get; set; } - - /// - /// Change Password - /// - /// Change Password - [DataMember(Name="passwordChange", EmitDefaultValue=false)] - public bool? PasswordChange { get; set; } - - /// - /// Imagine for the Digital Signature - /// - /// Imagine for the Digital Signature - [DataMember(Name="marking", EmitDefaultValue=false)] - public byte[] Marking { get; set; } - - /// - /// Type - /// - /// Type - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Enabled to Profile Manual Outgoing Emails - /// - /// Enabled to Profile Manual Outgoing Emails - [DataMember(Name="mailOutDefault", EmitDefaultValue=false)] - public bool? MailOutDefault { get; set; } - - /// - /// Enabled to Barcode - /// - /// Enabled to Barcode - [DataMember(Name="barcodeAccess", EmitDefaultValue=false)] - public bool? BarcodeAccess { get; set; } - - /// - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew - /// - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew - [DataMember(Name="mustChangePassword", EmitDefaultValue=false)] - public int? MustChangePassword { get; set; } - - /// - /// Language - /// - /// Language - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Enabled to IX service. - /// - /// Enabled to IX service. - [DataMember(Name="ws", EmitDefaultValue=false)] - public bool? Ws { get; set; } - - /// - /// Disabled Expired Password - /// - /// Disabled Expired Password - [DataMember(Name="disablePswExpired", EmitDefaultValue=false)] - public bool? DisablePswExpired { get; set; } - - /// - /// Full Description - /// - /// Full Description - [DataMember(Name="completeDescription", EmitDefaultValue=false)] - public string CompleteDescription { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canAddVirtualStamps", EmitDefaultValue=false)] - public int? CanAddVirtualStamps { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canApplyStaps", EmitDefaultValue=false)] - public int? CanApplyStaps { get; set; } - - /// - /// Enable the user to view the workflow information - /// - /// Enable the user to view the workflow information - [DataMember(Name="viewFlow", EmitDefaultValue=false)] - public bool? ViewFlow { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserUpdateDTO {\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" BusinessUnitUserUnlock: ").Append(BusinessUnitUserUnlock).Append("\n"); - sb.Append(" TempArchive: ").Append(TempArchive).Append("\n"); - sb.Append(" AddressBookProfile: ").Append(AddressBookProfile).Append("\n"); - sb.Append(" DistributionList: ").Append(DistributionList).Append("\n"); - sb.Append(" MailIn: ").Append(MailIn).Append("\n"); - sb.Append(" MailOutStoreExt: ").Append(MailOutStoreExt).Append("\n"); - sb.Append(" MailOutStoreIn: ").Append(MailOutStoreIn).Append("\n"); - sb.Append(" MailDeleteProfile: ").Append(MailDeleteProfile).Append("\n"); - sb.Append(" WebCompliantCopy: ").Append(WebCompliantCopy).Append("\n"); - sb.Append(" WebSearch: ").Append(WebSearch).Append("\n"); - sb.Append(" WebQuickSearch: ").Append(WebQuickSearch).Append("\n"); - sb.Append(" WebMailBox: ").Append(WebMailBox).Append("\n"); - sb.Append(" WebFolders: ").Append(WebFolders).Append("\n"); - sb.Append(" WebSearchViews: ").Append(WebSearchViews).Append("\n"); - sb.Append(" WebBinders: ").Append(WebBinders).Append("\n"); - sb.Append(" WebCheckinAdmin: ").Append(WebCheckinAdmin).Append("\n"); - sb.Append(" MailOutMaxSize: ").Append(MailOutMaxSize).Append("\n"); - sb.Append(" MailOutDefaultType: ").Append(MailOutDefaultType).Append("\n"); - sb.Append(" MailOutType2: ").Append(MailOutType2).Append("\n"); - sb.Append(" MailOutType3: ").Append(MailOutType3).Append("\n"); - sb.Append(" SecurityStateList: ").Append(SecurityStateList).Append("\n"); - sb.Append(" Group: ").Append(Group).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" DefaultType: ").Append(DefaultType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append(" InternalFax: ").Append(InternalFax).Append("\n"); - sb.Append(" LastMail: ").Append(LastMail).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" Workflow: ").Append(Workflow).Append("\n"); - sb.Append(" DefaultState: ").Append(DefaultState).Append("\n"); - sb.Append(" AddressBook: ").Append(AddressBook).Append("\n"); - sb.Append(" UserState: ").Append(UserState).Append("\n"); - sb.Append(" MailServer: ").Append(MailServer).Append("\n"); - sb.Append(" WebAccess: ").Append(WebAccess).Append("\n"); - sb.Append(" Upload: ").Append(Upload).Append("\n"); - sb.Append(" Folders: ").Append(Folders).Append("\n"); - sb.Append(" Flow: ").Append(Flow).Append("\n"); - sb.Append(" Sign: ").Append(Sign).Append("\n"); - sb.Append(" Viewer: ").Append(Viewer).Append("\n"); - sb.Append(" Protocol: ").Append(Protocol).Append("\n"); - sb.Append(" Models: ").Append(Models).Append("\n"); - sb.Append(" Domain: ").Append(Domain).Append("\n"); - sb.Append(" OutState: ").Append(OutState).Append("\n"); - sb.Append(" MailBody: ").Append(MailBody).Append("\n"); - sb.Append(" Notify: ").Append(Notify).Append("\n"); - sb.Append(" MailClient: ").Append(MailClient).Append("\n"); - sb.Append(" HtmlBody: ").Append(HtmlBody).Append("\n"); - sb.Append(" RespAos: ").Append(RespAos).Append("\n"); - sb.Append(" AssAos: ").Append(AssAos).Append("\n"); - sb.Append(" CodFis: ").Append(CodFis).Append("\n"); - sb.Append(" Pin: ").Append(Pin).Append("\n"); - sb.Append(" Guest: ").Append(Guest).Append("\n"); - sb.Append(" PasswordChange: ").Append(PasswordChange).Append("\n"); - sb.Append(" Marking: ").Append(Marking).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" MailOutDefault: ").Append(MailOutDefault).Append("\n"); - sb.Append(" BarcodeAccess: ").Append(BarcodeAccess).Append("\n"); - sb.Append(" MustChangePassword: ").Append(MustChangePassword).Append("\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append(" Ws: ").Append(Ws).Append("\n"); - sb.Append(" DisablePswExpired: ").Append(DisablePswExpired).Append("\n"); - sb.Append(" CompleteDescription: ").Append(CompleteDescription).Append("\n"); - sb.Append(" CanAddVirtualStamps: ").Append(CanAddVirtualStamps).Append("\n"); - sb.Append(" CanApplyStaps: ").Append(CanApplyStaps).Append("\n"); - sb.Append(" ViewFlow: ").Append(ViewFlow).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserUpdateDTO); - } - - /// - /// Returns true if UserUpdateDTO instances are equal - /// - /// Instance of UserUpdateDTO to be compared - /// Boolean - public bool Equals(UserUpdateDTO input) - { - if (input == null) - return false; - - return - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.BusinessUnitUserUnlock == input.BusinessUnitUserUnlock || - (this.BusinessUnitUserUnlock != null && - this.BusinessUnitUserUnlock.Equals(input.BusinessUnitUserUnlock)) - ) && - ( - this.TempArchive == input.TempArchive || - (this.TempArchive != null && - this.TempArchive.Equals(input.TempArchive)) - ) && - ( - this.AddressBookProfile == input.AddressBookProfile || - (this.AddressBookProfile != null && - this.AddressBookProfile.Equals(input.AddressBookProfile)) - ) && - ( - this.DistributionList == input.DistributionList || - (this.DistributionList != null && - this.DistributionList.Equals(input.DistributionList)) - ) && - ( - this.MailIn == input.MailIn || - (this.MailIn != null && - this.MailIn.Equals(input.MailIn)) - ) && - ( - this.MailOutStoreExt == input.MailOutStoreExt || - (this.MailOutStoreExt != null && - this.MailOutStoreExt.Equals(input.MailOutStoreExt)) - ) && - ( - this.MailOutStoreIn == input.MailOutStoreIn || - (this.MailOutStoreIn != null && - this.MailOutStoreIn.Equals(input.MailOutStoreIn)) - ) && - ( - this.MailDeleteProfile == input.MailDeleteProfile || - (this.MailDeleteProfile != null && - this.MailDeleteProfile.Equals(input.MailDeleteProfile)) - ) && - ( - this.WebCompliantCopy == input.WebCompliantCopy || - (this.WebCompliantCopy != null && - this.WebCompliantCopy.Equals(input.WebCompliantCopy)) - ) && - ( - this.WebSearch == input.WebSearch || - (this.WebSearch != null && - this.WebSearch.Equals(input.WebSearch)) - ) && - ( - this.WebQuickSearch == input.WebQuickSearch || - (this.WebQuickSearch != null && - this.WebQuickSearch.Equals(input.WebQuickSearch)) - ) && - ( - this.WebMailBox == input.WebMailBox || - (this.WebMailBox != null && - this.WebMailBox.Equals(input.WebMailBox)) - ) && - ( - this.WebFolders == input.WebFolders || - (this.WebFolders != null && - this.WebFolders.Equals(input.WebFolders)) - ) && - ( - this.WebSearchViews == input.WebSearchViews || - (this.WebSearchViews != null && - this.WebSearchViews.Equals(input.WebSearchViews)) - ) && - ( - this.WebBinders == input.WebBinders || - (this.WebBinders != null && - this.WebBinders.Equals(input.WebBinders)) - ) && - ( - this.WebCheckinAdmin == input.WebCheckinAdmin || - (this.WebCheckinAdmin != null && - this.WebCheckinAdmin.Equals(input.WebCheckinAdmin)) - ) && - ( - this.MailOutMaxSize == input.MailOutMaxSize || - (this.MailOutMaxSize != null && - this.MailOutMaxSize.Equals(input.MailOutMaxSize)) - ) && - ( - this.MailOutDefaultType == input.MailOutDefaultType || - (this.MailOutDefaultType != null && - this.MailOutDefaultType.Equals(input.MailOutDefaultType)) - ) && - ( - this.MailOutType2 == input.MailOutType2 || - (this.MailOutType2 != null && - this.MailOutType2.Equals(input.MailOutType2)) - ) && - ( - this.MailOutType3 == input.MailOutType3 || - (this.MailOutType3 != null && - this.MailOutType3.Equals(input.MailOutType3)) - ) && - ( - this.SecurityStateList == input.SecurityStateList || - this.SecurityStateList != null && - this.SecurityStateList.SequenceEqual(input.SecurityStateList) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.BusinessUnit == input.BusinessUnit || - (this.BusinessUnit != null && - this.BusinessUnit.Equals(input.BusinessUnit)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.DefaultType == input.DefaultType || - (this.DefaultType != null && - this.DefaultType.Equals(input.DefaultType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ) && - ( - this.InternalFax == input.InternalFax || - (this.InternalFax != null && - this.InternalFax.Equals(input.InternalFax)) - ) && - ( - this.LastMail == input.LastMail || - (this.LastMail != null && - this.LastMail.Equals(input.LastMail)) - ) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && - ( - this.Workflow == input.Workflow || - (this.Workflow != null && - this.Workflow.Equals(input.Workflow)) - ) && - ( - this.DefaultState == input.DefaultState || - (this.DefaultState != null && - this.DefaultState.Equals(input.DefaultState)) - ) && - ( - this.AddressBook == input.AddressBook || - (this.AddressBook != null && - this.AddressBook.Equals(input.AddressBook)) - ) && - ( - this.UserState == input.UserState || - (this.UserState != null && - this.UserState.Equals(input.UserState)) - ) && - ( - this.MailServer == input.MailServer || - (this.MailServer != null && - this.MailServer.Equals(input.MailServer)) - ) && - ( - this.WebAccess == input.WebAccess || - (this.WebAccess != null && - this.WebAccess.Equals(input.WebAccess)) - ) && - ( - this.Upload == input.Upload || - (this.Upload != null && - this.Upload.Equals(input.Upload)) - ) && - ( - this.Folders == input.Folders || - (this.Folders != null && - this.Folders.Equals(input.Folders)) - ) && - ( - this.Flow == input.Flow || - (this.Flow != null && - this.Flow.Equals(input.Flow)) - ) && - ( - this.Sign == input.Sign || - (this.Sign != null && - this.Sign.Equals(input.Sign)) - ) && - ( - this.Viewer == input.Viewer || - (this.Viewer != null && - this.Viewer.Equals(input.Viewer)) - ) && - ( - this.Protocol == input.Protocol || - (this.Protocol != null && - this.Protocol.Equals(input.Protocol)) - ) && - ( - this.Models == input.Models || - (this.Models != null && - this.Models.Equals(input.Models)) - ) && - ( - this.Domain == input.Domain || - (this.Domain != null && - this.Domain.Equals(input.Domain)) - ) && - ( - this.OutState == input.OutState || - (this.OutState != null && - this.OutState.Equals(input.OutState)) - ) && - ( - this.MailBody == input.MailBody || - (this.MailBody != null && - this.MailBody.Equals(input.MailBody)) - ) && - ( - this.Notify == input.Notify || - (this.Notify != null && - this.Notify.Equals(input.Notify)) - ) && - ( - this.MailClient == input.MailClient || - (this.MailClient != null && - this.MailClient.Equals(input.MailClient)) - ) && - ( - this.HtmlBody == input.HtmlBody || - (this.HtmlBody != null && - this.HtmlBody.Equals(input.HtmlBody)) - ) && - ( - this.RespAos == input.RespAos || - (this.RespAos != null && - this.RespAos.Equals(input.RespAos)) - ) && - ( - this.AssAos == input.AssAos || - (this.AssAos != null && - this.AssAos.Equals(input.AssAos)) - ) && - ( - this.CodFis == input.CodFis || - (this.CodFis != null && - this.CodFis.Equals(input.CodFis)) - ) && - ( - this.Pin == input.Pin || - (this.Pin != null && - this.Pin.Equals(input.Pin)) - ) && - ( - this.Guest == input.Guest || - (this.Guest != null && - this.Guest.Equals(input.Guest)) - ) && - ( - this.PasswordChange == input.PasswordChange || - (this.PasswordChange != null && - this.PasswordChange.Equals(input.PasswordChange)) - ) && - ( - this.Marking == input.Marking || - (this.Marking != null && - this.Marking.Equals(input.Marking)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.MailOutDefault == input.MailOutDefault || - (this.MailOutDefault != null && - this.MailOutDefault.Equals(input.MailOutDefault)) - ) && - ( - this.BarcodeAccess == input.BarcodeAccess || - (this.BarcodeAccess != null && - this.BarcodeAccess.Equals(input.BarcodeAccess)) - ) && - ( - this.MustChangePassword == input.MustChangePassword || - (this.MustChangePassword != null && - this.MustChangePassword.Equals(input.MustChangePassword)) - ) && - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ) && - ( - this.Ws == input.Ws || - (this.Ws != null && - this.Ws.Equals(input.Ws)) - ) && - ( - this.DisablePswExpired == input.DisablePswExpired || - (this.DisablePswExpired != null && - this.DisablePswExpired.Equals(input.DisablePswExpired)) - ) && - ( - this.CompleteDescription == input.CompleteDescription || - (this.CompleteDescription != null && - this.CompleteDescription.Equals(input.CompleteDescription)) - ) && - ( - this.CanAddVirtualStamps == input.CanAddVirtualStamps || - (this.CanAddVirtualStamps != null && - this.CanAddVirtualStamps.Equals(input.CanAddVirtualStamps)) - ) && - ( - this.CanApplyStaps == input.CanApplyStaps || - (this.CanApplyStaps != null && - this.CanApplyStaps.Equals(input.CanApplyStaps)) - ) && - ( - this.ViewFlow == input.ViewFlow || - (this.ViewFlow != null && - this.ViewFlow.Equals(input.ViewFlow)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.BusinessUnitUserUnlock != null) - hashCode = hashCode * 59 + this.BusinessUnitUserUnlock.GetHashCode(); - if (this.TempArchive != null) - hashCode = hashCode * 59 + this.TempArchive.GetHashCode(); - if (this.AddressBookProfile != null) - hashCode = hashCode * 59 + this.AddressBookProfile.GetHashCode(); - if (this.DistributionList != null) - hashCode = hashCode * 59 + this.DistributionList.GetHashCode(); - if (this.MailIn != null) - hashCode = hashCode * 59 + this.MailIn.GetHashCode(); - if (this.MailOutStoreExt != null) - hashCode = hashCode * 59 + this.MailOutStoreExt.GetHashCode(); - if (this.MailOutStoreIn != null) - hashCode = hashCode * 59 + this.MailOutStoreIn.GetHashCode(); - if (this.MailDeleteProfile != null) - hashCode = hashCode * 59 + this.MailDeleteProfile.GetHashCode(); - if (this.WebCompliantCopy != null) - hashCode = hashCode * 59 + this.WebCompliantCopy.GetHashCode(); - if (this.WebSearch != null) - hashCode = hashCode * 59 + this.WebSearch.GetHashCode(); - if (this.WebQuickSearch != null) - hashCode = hashCode * 59 + this.WebQuickSearch.GetHashCode(); - if (this.WebMailBox != null) - hashCode = hashCode * 59 + this.WebMailBox.GetHashCode(); - if (this.WebFolders != null) - hashCode = hashCode * 59 + this.WebFolders.GetHashCode(); - if (this.WebSearchViews != null) - hashCode = hashCode * 59 + this.WebSearchViews.GetHashCode(); - if (this.WebBinders != null) - hashCode = hashCode * 59 + this.WebBinders.GetHashCode(); - if (this.WebCheckinAdmin != null) - hashCode = hashCode * 59 + this.WebCheckinAdmin.GetHashCode(); - if (this.MailOutMaxSize != null) - hashCode = hashCode * 59 + this.MailOutMaxSize.GetHashCode(); - if (this.MailOutDefaultType != null) - hashCode = hashCode * 59 + this.MailOutDefaultType.GetHashCode(); - if (this.MailOutType2 != null) - hashCode = hashCode * 59 + this.MailOutType2.GetHashCode(); - if (this.MailOutType3 != null) - hashCode = hashCode * 59 + this.MailOutType3.GetHashCode(); - if (this.SecurityStateList != null) - hashCode = hashCode * 59 + this.SecurityStateList.GetHashCode(); - if (this.Group != null) - hashCode = hashCode * 59 + this.Group.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.BusinessUnit != null) - hashCode = hashCode * 59 + this.BusinessUnit.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.DefaultType != null) - hashCode = hashCode * 59 + this.DefaultType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - if (this.InternalFax != null) - hashCode = hashCode * 59 + this.InternalFax.GetHashCode(); - if (this.LastMail != null) - hashCode = hashCode * 59 + this.LastMail.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.Workflow != null) - hashCode = hashCode * 59 + this.Workflow.GetHashCode(); - if (this.DefaultState != null) - hashCode = hashCode * 59 + this.DefaultState.GetHashCode(); - if (this.AddressBook != null) - hashCode = hashCode * 59 + this.AddressBook.GetHashCode(); - if (this.UserState != null) - hashCode = hashCode * 59 + this.UserState.GetHashCode(); - if (this.MailServer != null) - hashCode = hashCode * 59 + this.MailServer.GetHashCode(); - if (this.WebAccess != null) - hashCode = hashCode * 59 + this.WebAccess.GetHashCode(); - if (this.Upload != null) - hashCode = hashCode * 59 + this.Upload.GetHashCode(); - if (this.Folders != null) - hashCode = hashCode * 59 + this.Folders.GetHashCode(); - if (this.Flow != null) - hashCode = hashCode * 59 + this.Flow.GetHashCode(); - if (this.Sign != null) - hashCode = hashCode * 59 + this.Sign.GetHashCode(); - if (this.Viewer != null) - hashCode = hashCode * 59 + this.Viewer.GetHashCode(); - if (this.Protocol != null) - hashCode = hashCode * 59 + this.Protocol.GetHashCode(); - if (this.Models != null) - hashCode = hashCode * 59 + this.Models.GetHashCode(); - if (this.Domain != null) - hashCode = hashCode * 59 + this.Domain.GetHashCode(); - if (this.OutState != null) - hashCode = hashCode * 59 + this.OutState.GetHashCode(); - if (this.MailBody != null) - hashCode = hashCode * 59 + this.MailBody.GetHashCode(); - if (this.Notify != null) - hashCode = hashCode * 59 + this.Notify.GetHashCode(); - if (this.MailClient != null) - hashCode = hashCode * 59 + this.MailClient.GetHashCode(); - if (this.HtmlBody != null) - hashCode = hashCode * 59 + this.HtmlBody.GetHashCode(); - if (this.RespAos != null) - hashCode = hashCode * 59 + this.RespAos.GetHashCode(); - if (this.AssAos != null) - hashCode = hashCode * 59 + this.AssAos.GetHashCode(); - if (this.CodFis != null) - hashCode = hashCode * 59 + this.CodFis.GetHashCode(); - if (this.Pin != null) - hashCode = hashCode * 59 + this.Pin.GetHashCode(); - if (this.Guest != null) - hashCode = hashCode * 59 + this.Guest.GetHashCode(); - if (this.PasswordChange != null) - hashCode = hashCode * 59 + this.PasswordChange.GetHashCode(); - if (this.Marking != null) - hashCode = hashCode * 59 + this.Marking.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.MailOutDefault != null) - hashCode = hashCode * 59 + this.MailOutDefault.GetHashCode(); - if (this.BarcodeAccess != null) - hashCode = hashCode * 59 + this.BarcodeAccess.GetHashCode(); - if (this.MustChangePassword != null) - hashCode = hashCode * 59 + this.MustChangePassword.GetHashCode(); - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - if (this.Ws != null) - hashCode = hashCode * 59 + this.Ws.GetHashCode(); - if (this.DisablePswExpired != null) - hashCode = hashCode * 59 + this.DisablePswExpired.GetHashCode(); - if (this.CompleteDescription != null) - hashCode = hashCode * 59 + this.CompleteDescription.GetHashCode(); - if (this.CanAddVirtualStamps != null) - hashCode = hashCode * 59 + this.CanAddVirtualStamps.GetHashCode(); - if (this.CanApplyStaps != null) - hashCode = hashCode * 59 + this.CanApplyStaps.GetHashCode(); - if (this.ViewFlow != null) - hashCode = hashCode * 59 + this.ViewFlow.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ValidationFieldResultDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ValidationFieldResultDTO.cs deleted file mode 100644 index 3b6b573..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ValidationFieldResultDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ValidationFieldResultDTO - /// - [DataContract] - public partial class ValidationFieldResultDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// isValid. - /// validationErrorMessage. - public ValidationFieldResultDTO(bool? isValid = default(bool?), string validationErrorMessage = default(string)) - { - this.IsValid = isValid; - this.ValidationErrorMessage = validationErrorMessage; - } - - /// - /// Gets or Sets IsValid - /// - [DataMember(Name="isValid", EmitDefaultValue=false)] - public bool? IsValid { get; set; } - - /// - /// Gets or Sets ValidationErrorMessage - /// - [DataMember(Name="validationErrorMessage", EmitDefaultValue=false)] - public string ValidationErrorMessage { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ValidationFieldResultDTO {\n"); - sb.Append(" IsValid: ").Append(IsValid).Append("\n"); - sb.Append(" ValidationErrorMessage: ").Append(ValidationErrorMessage).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ValidationFieldResultDTO); - } - - /// - /// Returns true if ValidationFieldResultDTO instances are equal - /// - /// Instance of ValidationFieldResultDTO to be compared - /// Boolean - public bool Equals(ValidationFieldResultDTO input) - { - if (input == null) - return false; - - return - ( - this.IsValid == input.IsValid || - (this.IsValid != null && - this.IsValid.Equals(input.IsValid)) - ) && - ( - this.ValidationErrorMessage == input.ValidationErrorMessage || - (this.ValidationErrorMessage != null && - this.ValidationErrorMessage.Equals(input.ValidationErrorMessage)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IsValid != null) - hashCode = hashCode * 59 + this.IsValid.GetHashCode(); - if (this.ValidationErrorMessage != null) - hashCode = hashCode * 59 + this.ValidationErrorMessage.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ValidationMessageDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ValidationMessageDTO.cs deleted file mode 100644 index 4341a64..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ValidationMessageDTO.cs +++ /dev/null @@ -1,141 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// ValidationMessageDTO - /// - [DataContract] - public partial class ValidationMessageDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Ok 1: Info 2: Warning 3: Error . - /// description. - public ValidationMessageDTO(int? levelEnum = default(int?), string description = default(string)) - { - this.LevelEnum = levelEnum; - this.Description = description; - } - - /// - /// Possible values: 0: Ok 1: Info 2: Warning 3: Error - /// - /// Possible values: 0: Ok 1: Info 2: Warning 3: Error - [DataMember(Name="levelEnum", EmitDefaultValue=false)] - public int? LevelEnum { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ValidationMessageDTO {\n"); - sb.Append(" LevelEnum: ").Append(LevelEnum).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ValidationMessageDTO); - } - - /// - /// Returns true if ValidationMessageDTO instances are equal - /// - /// Instance of ValidationMessageDTO to be compared - /// Boolean - public bool Equals(ValidationMessageDTO input) - { - if (input == null) - return false; - - return - ( - this.LevelEnum == input.LevelEnum || - (this.LevelEnum != null && - this.LevelEnum.Equals(input.LevelEnum)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.LevelEnum != null) - hashCode = hashCode * 59 + this.LevelEnum.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/VariableFiltersDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/VariableFiltersDTO.cs deleted file mode 100644 index 4da0bb8..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/VariableFiltersDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// VariableFiltersDTO - /// - [DataContract] - public partial class VariableFiltersDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Array of avaible filters for the additional field DateTime. - /// Array of avaible filters for the additional field string. - /// Array of avaible filters for the additional field int. - /// Array of avaible filters for the additional field bool. - /// Array of avaible filters for the additional field double. - /// Array of avaible filters for the additional field stringlist. - public VariableFiltersDTO(List dateTimeFields = default(List), List stringFields = default(List), List intFields = default(List), List boolFields = default(List), List doubleFields = default(List), List stringListFields = default(List)) - { - this.DateTimeFields = dateTimeFields; - this.StringFields = stringFields; - this.IntFields = intFields; - this.BoolFields = boolFields; - this.DoubleFields = doubleFields; - this.StringListFields = stringListFields; - } - - /// - /// Array of avaible filters for the additional field DateTime - /// - /// Array of avaible filters for the additional field DateTime - [DataMember(Name="dateTimeFields", EmitDefaultValue=false)] - public List DateTimeFields { get; set; } - - /// - /// Array of avaible filters for the additional field string - /// - /// Array of avaible filters for the additional field string - [DataMember(Name="stringFields", EmitDefaultValue=false)] - public List StringFields { get; set; } - - /// - /// Array of avaible filters for the additional field int - /// - /// Array of avaible filters for the additional field int - [DataMember(Name="intFields", EmitDefaultValue=false)] - public List IntFields { get; set; } - - /// - /// Array of avaible filters for the additional field bool - /// - /// Array of avaible filters for the additional field bool - [DataMember(Name="boolFields", EmitDefaultValue=false)] - public List BoolFields { get; set; } - - /// - /// Array of avaible filters for the additional field double - /// - /// Array of avaible filters for the additional field double - [DataMember(Name="doubleFields", EmitDefaultValue=false)] - public List DoubleFields { get; set; } - - /// - /// Array of avaible filters for the additional field stringlist - /// - /// Array of avaible filters for the additional field stringlist - [DataMember(Name="stringListFields", EmitDefaultValue=false)] - public List StringListFields { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VariableFiltersDTO {\n"); - sb.Append(" DateTimeFields: ").Append(DateTimeFields).Append("\n"); - sb.Append(" StringFields: ").Append(StringFields).Append("\n"); - sb.Append(" IntFields: ").Append(IntFields).Append("\n"); - sb.Append(" BoolFields: ").Append(BoolFields).Append("\n"); - sb.Append(" DoubleFields: ").Append(DoubleFields).Append("\n"); - sb.Append(" StringListFields: ").Append(StringListFields).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VariableFiltersDTO); - } - - /// - /// Returns true if VariableFiltersDTO instances are equal - /// - /// Instance of VariableFiltersDTO to be compared - /// Boolean - public bool Equals(VariableFiltersDTO input) - { - if (input == null) - return false; - - return - ( - this.DateTimeFields == input.DateTimeFields || - this.DateTimeFields != null && - this.DateTimeFields.SequenceEqual(input.DateTimeFields) - ) && - ( - this.StringFields == input.StringFields || - this.StringFields != null && - this.StringFields.SequenceEqual(input.StringFields) - ) && - ( - this.IntFields == input.IntFields || - this.IntFields != null && - this.IntFields.SequenceEqual(input.IntFields) - ) && - ( - this.BoolFields == input.BoolFields || - this.BoolFields != null && - this.BoolFields.SequenceEqual(input.BoolFields) - ) && - ( - this.DoubleFields == input.DoubleFields || - this.DoubleFields != null && - this.DoubleFields.SequenceEqual(input.DoubleFields) - ) && - ( - this.StringListFields == input.StringListFields || - this.StringListFields != null && - this.StringListFields.SequenceEqual(input.StringListFields) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DateTimeFields != null) - hashCode = hashCode * 59 + this.DateTimeFields.GetHashCode(); - if (this.StringFields != null) - hashCode = hashCode * 59 + this.StringFields.GetHashCode(); - if (this.IntFields != null) - hashCode = hashCode * 59 + this.IntFields.GetHashCode(); - if (this.BoolFields != null) - hashCode = hashCode * 59 + this.BoolFields.GetHashCode(); - if (this.DoubleFields != null) - hashCode = hashCode * 59 + this.DoubleFields.GetHashCode(); - if (this.StringListFields != null) - hashCode = hashCode * 59 + this.StringListFields.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/VariablesValuesCriteriaDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/VariablesValuesCriteriaDTO.cs deleted file mode 100644 index b005f57..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/VariablesValuesCriteriaDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of criteria for search values of process variables - /// - [DataContract] - public partial class VariablesValuesCriteriaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Fields. - /// Filters. - public VariablesValuesCriteriaDTO(ProcessVariablesFieldsDTO processVariablesFields = default(ProcessVariablesFieldsDTO), VariableFiltersDTO variableFilters = default(VariableFiltersDTO)) - { - this.ProcessVariablesFields = processVariablesFields; - this.VariableFilters = variableFilters; - } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="processVariablesFields", EmitDefaultValue=false)] - public ProcessVariablesFieldsDTO ProcessVariablesFields { get; set; } - - /// - /// Filters - /// - /// Filters - [DataMember(Name="variableFilters", EmitDefaultValue=false)] - public VariableFiltersDTO VariableFilters { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VariablesValuesCriteriaDTO {\n"); - sb.Append(" ProcessVariablesFields: ").Append(ProcessVariablesFields).Append("\n"); - sb.Append(" VariableFilters: ").Append(VariableFilters).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VariablesValuesCriteriaDTO); - } - - /// - /// Returns true if VariablesValuesCriteriaDTO instances are equal - /// - /// Instance of VariablesValuesCriteriaDTO to be compared - /// Boolean - public bool Equals(VariablesValuesCriteriaDTO input) - { - if (input == null) - return false; - - return - ( - this.ProcessVariablesFields == input.ProcessVariablesFields || - (this.ProcessVariablesFields != null && - this.ProcessVariablesFields.Equals(input.ProcessVariablesFields)) - ) && - ( - this.VariableFilters == input.VariableFilters || - (this.VariableFilters != null && - this.VariableFilters.Equals(input.VariableFilters)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ProcessVariablesFields != null) - hashCode = hashCode * 59 + this.ProcessVariablesFields.GetHashCode(); - if (this.VariableFilters != null) - hashCode = hashCode * 59 + this.VariableFilters.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/VerifyConditionDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/VerifyConditionDTO.cs deleted file mode 100644 index e1a75e4..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/VerifyConditionDTO.cs +++ /dev/null @@ -1,157 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// VerifyConditionDTO - /// - [DataContract] - public partial class VerifyConditionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Local 1: Tls . - /// checkOnlineRevocation. - /// verifyDateTimeUtc. - public VerifyConditionDTO(int? certSecurityVerifyLevelEnum = default(int?), bool? checkOnlineRevocation = default(bool?), DateTime? verifyDateTimeUtc = default(DateTime?)) - { - this.CertSecurityVerifyLevelEnum = certSecurityVerifyLevelEnum; - this.CheckOnlineRevocation = checkOnlineRevocation; - this.VerifyDateTimeUtc = verifyDateTimeUtc; - } - - /// - /// Possible values: 0: Local 1: Tls - /// - /// Possible values: 0: Local 1: Tls - [DataMember(Name="certSecurityVerifyLevelEnum", EmitDefaultValue=false)] - public int? CertSecurityVerifyLevelEnum { get; set; } - - /// - /// Gets or Sets CheckOnlineRevocation - /// - [DataMember(Name="checkOnlineRevocation", EmitDefaultValue=false)] - public bool? CheckOnlineRevocation { get; set; } - - /// - /// Gets or Sets VerifyDateTimeUtc - /// - [DataMember(Name="verifyDateTimeUtc", EmitDefaultValue=false)] - public DateTime? VerifyDateTimeUtc { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VerifyConditionDTO {\n"); - sb.Append(" CertSecurityVerifyLevelEnum: ").Append(CertSecurityVerifyLevelEnum).Append("\n"); - sb.Append(" CheckOnlineRevocation: ").Append(CheckOnlineRevocation).Append("\n"); - sb.Append(" VerifyDateTimeUtc: ").Append(VerifyDateTimeUtc).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VerifyConditionDTO); - } - - /// - /// Returns true if VerifyConditionDTO instances are equal - /// - /// Instance of VerifyConditionDTO to be compared - /// Boolean - public bool Equals(VerifyConditionDTO input) - { - if (input == null) - return false; - - return - ( - this.CertSecurityVerifyLevelEnum == input.CertSecurityVerifyLevelEnum || - (this.CertSecurityVerifyLevelEnum != null && - this.CertSecurityVerifyLevelEnum.Equals(input.CertSecurityVerifyLevelEnum)) - ) && - ( - this.CheckOnlineRevocation == input.CheckOnlineRevocation || - (this.CheckOnlineRevocation != null && - this.CheckOnlineRevocation.Equals(input.CheckOnlineRevocation)) - ) && - ( - this.VerifyDateTimeUtc == input.VerifyDateTimeUtc || - (this.VerifyDateTimeUtc != null && - this.VerifyDateTimeUtc.Equals(input.VerifyDateTimeUtc)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CertSecurityVerifyLevelEnum != null) - hashCode = hashCode * 59 + this.CertSecurityVerifyLevelEnum.GetHashCode(); - if (this.CheckOnlineRevocation != null) - hashCode = hashCode * 59 + this.CheckOnlineRevocation.GetHashCode(); - if (this.VerifyDateTimeUtc != null) - hashCode = hashCode * 59 + this.VerifyDateTimeUtc.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/VerifyInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/VerifyInfoDTO.cs deleted file mode 100644 index 0d64482..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/VerifyInfoDTO.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// VerifyInfoDTO - /// - [DataContract] - public partial class VerifyInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// fileName. - /// envelopeInfoList. - /// validationMessageList. - public VerifyInfoDTO(string fileName = default(string), List envelopeInfoList = default(List), List validationMessageList = default(List)) - { - this.FileName = fileName; - this.EnvelopeInfoList = envelopeInfoList; - this.ValidationMessageList = validationMessageList; - } - - /// - /// Gets or Sets FileName - /// - [DataMember(Name="fileName", EmitDefaultValue=false)] - public string FileName { get; set; } - - /// - /// Gets or Sets EnvelopeInfoList - /// - [DataMember(Name="envelopeInfoList", EmitDefaultValue=false)] - public List EnvelopeInfoList { get; set; } - - /// - /// Gets or Sets ValidationMessageList - /// - [DataMember(Name="validationMessageList", EmitDefaultValue=false)] - public List ValidationMessageList { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VerifyInfoDTO {\n"); - sb.Append(" FileName: ").Append(FileName).Append("\n"); - sb.Append(" EnvelopeInfoList: ").Append(EnvelopeInfoList).Append("\n"); - sb.Append(" ValidationMessageList: ").Append(ValidationMessageList).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VerifyInfoDTO); - } - - /// - /// Returns true if VerifyInfoDTO instances are equal - /// - /// Instance of VerifyInfoDTO to be compared - /// Boolean - public bool Equals(VerifyInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.FileName == input.FileName || - (this.FileName != null && - this.FileName.Equals(input.FileName)) - ) && - ( - this.EnvelopeInfoList == input.EnvelopeInfoList || - this.EnvelopeInfoList != null && - this.EnvelopeInfoList.SequenceEqual(input.EnvelopeInfoList) - ) && - ( - this.ValidationMessageList == input.ValidationMessageList || - this.ValidationMessageList != null && - this.ValidationMessageList.SequenceEqual(input.ValidationMessageList) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.FileName != null) - hashCode = hashCode * 59 + this.FileName.GetHashCode(); - if (this.EnvelopeInfoList != null) - hashCode = hashCode * 59 + this.EnvelopeInfoList.GetHashCode(); - if (this.ValidationMessageList != null) - hashCode = hashCode * 59 + this.ValidationMessageList.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/VerifyInfoRequestDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/VerifyInfoRequestDTO.cs deleted file mode 100644 index e1c9607..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/VerifyInfoRequestDTO.cs +++ /dev/null @@ -1,157 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// VerifyInfoRequestDTO - /// - [DataContract] - public partial class VerifyInfoRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// docId. - /// extraId. - /// Possible values: 0: Attachment 2: TaskWorkAttachment 14: Profile 74: ProcessDoc . - public VerifyInfoRequestDTO(int? docId = default(int?), string extraId = default(string), int? tableType = default(int?)) - { - this.DocId = docId; - this.ExtraId = extraId; - this.TableType = tableType; - } - - /// - /// Gets or Sets DocId - /// - [DataMember(Name="docId", EmitDefaultValue=false)] - public int? DocId { get; set; } - - /// - /// Gets or Sets ExtraId - /// - [DataMember(Name="extraId", EmitDefaultValue=false)] - public string ExtraId { get; set; } - - /// - /// Possible values: 0: Attachment 2: TaskWorkAttachment 14: Profile 74: ProcessDoc - /// - /// Possible values: 0: Attachment 2: TaskWorkAttachment 14: Profile 74: ProcessDoc - [DataMember(Name="tableType", EmitDefaultValue=false)] - public int? TableType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VerifyInfoRequestDTO {\n"); - sb.Append(" DocId: ").Append(DocId).Append("\n"); - sb.Append(" ExtraId: ").Append(ExtraId).Append("\n"); - sb.Append(" TableType: ").Append(TableType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VerifyInfoRequestDTO); - } - - /// - /// Returns true if VerifyInfoRequestDTO instances are equal - /// - /// Instance of VerifyInfoRequestDTO to be compared - /// Boolean - public bool Equals(VerifyInfoRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.DocId == input.DocId || - (this.DocId != null && - this.DocId.Equals(input.DocId)) - ) && - ( - this.ExtraId == input.ExtraId || - (this.ExtraId != null && - this.ExtraId.Equals(input.ExtraId)) - ) && - ( - this.TableType == input.TableType || - (this.TableType != null && - this.TableType.Equals(input.TableType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocId != null) - hashCode = hashCode * 59 + this.DocId.GetHashCode(); - if (this.ExtraId != null) - hashCode = hashCode * 59 + this.ExtraId.GetHashCode(); - if (this.TableType != null) - hashCode = hashCode * 59 + this.TableType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/Version.cs b/ACUtils.AXRepository/ArxivarNext/Model/Version.cs deleted file mode 100644 index 7763a96..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/Version.cs +++ /dev/null @@ -1,172 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Version - /// - [DataContract] - public partial class Version : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// major. - /// minor. - /// build. - /// revision. - public Version(int? major = default(int?), int? minor = default(int?), int? build = default(int?), int? revision = default(int?)) - { - this.Major = major; - this.Minor = minor; - this.Build = build; - this.Revision = revision; - } - - /// - /// Gets or Sets Major - /// - [DataMember(Name="_Major", EmitDefaultValue=false)] - public int? Major { get; set; } - - /// - /// Gets or Sets Minor - /// - [DataMember(Name="_Minor", EmitDefaultValue=false)] - public int? Minor { get; set; } - - /// - /// Gets or Sets Build - /// - [DataMember(Name="_Build", EmitDefaultValue=false)] - public int? Build { get; set; } - - /// - /// Gets or Sets Revision - /// - [DataMember(Name="_Revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Version {\n"); - sb.Append(" Major: ").Append(Major).Append("\n"); - sb.Append(" Minor: ").Append(Minor).Append("\n"); - sb.Append(" Build: ").Append(Build).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Version); - } - - /// - /// Returns true if Version instances are equal - /// - /// Instance of Version to be compared - /// Boolean - public bool Equals(Version input) - { - if (input == null) - return false; - - return - ( - this.Major == input.Major || - (this.Major != null && - this.Major.Equals(input.Major)) - ) && - ( - this.Minor == input.Minor || - (this.Minor != null && - this.Minor.Equals(input.Minor)) - ) && - ( - this.Build == input.Build || - (this.Build != null && - this.Build.Equals(input.Build)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Major != null) - hashCode = hashCode * 59 + this.Major.GetHashCode(); - if (this.Minor != null) - hashCode = hashCode * 59 + this.Minor.GetHashCode(); - if (this.Build != null) - hashCode = hashCode * 59 + this.Build.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ViewDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ViewDTO.cs deleted file mode 100644 index a103056..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ViewDTO.cs +++ /dev/null @@ -1,480 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of View - /// - [DataContract] - public partial class ViewDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Max items for result. - /// Description of Document Type. - /// Identifier. - /// Description. - /// Author Identifier. - /// Author Complete Name. - /// Document Type of first level. - /// Document Type of second level. - /// Document Type of third level. - /// Select Fields. - /// Edit Fields. - /// Uneditable Fields. - /// Order Fields. - /// Show Fields. - /// Opening the search form after running the Arxivar client view.. - /// Possible values: 0: Yes 1: No 2: OnDemand . - /// Possible values: 0: No 1: Yes . - /// Execute. - /// Edit. - /// Delete. - /// searchFilterDto. - /// selectFilterDto. - public ViewDTO(int? maxItems = default(int?), string documentTypeDescription = default(string), string id = default(string), string description = default(string), int? user = default(int?), string userCompleteName = default(string), int? documentType = default(int?), int? type2 = default(int?), int? type3 = default(int?), string selectFields = default(string), string editFields = default(string), SearchDTO lockFields = default(SearchDTO), string orderFields = default(string), bool? showFields = default(bool?), bool? formOpen = default(bool?), int? allowEmptyFilterMode = default(int?), int? showGroupsMode = default(int?), bool? canExecute = default(bool?), bool? canUpdate = default(bool?), bool? canDelete = default(bool?), SearchDTO searchFilterDto = default(SearchDTO), SelectDTO selectFilterDto = default(SelectDTO)) - { - this.MaxItems = maxItems; - this.DocumentTypeDescription = documentTypeDescription; - this.Id = id; - this.Description = description; - this.User = user; - this.UserCompleteName = userCompleteName; - this.DocumentType = documentType; - this.Type2 = type2; - this.Type3 = type3; - this.SelectFields = selectFields; - this.EditFields = editFields; - this.LockFields = lockFields; - this.OrderFields = orderFields; - this.ShowFields = showFields; - this.FormOpen = formOpen; - this.AllowEmptyFilterMode = allowEmptyFilterMode; - this.ShowGroupsMode = showGroupsMode; - this.CanExecute = canExecute; - this.CanUpdate = canUpdate; - this.CanDelete = canDelete; - this.SearchFilterDto = searchFilterDto; - this.SelectFilterDto = selectFilterDto; - } - - /// - /// Max items for result - /// - /// Max items for result - [DataMember(Name="maxItems", EmitDefaultValue=false)] - public int? MaxItems { get; set; } - - /// - /// Description of Document Type - /// - /// Description of Document Type - [DataMember(Name="documentTypeDescription", EmitDefaultValue=false)] - public string DocumentTypeDescription { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Author Identifier - /// - /// Author Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Author Complete Name - /// - /// Author Complete Name - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Document Type of first level - /// - /// Document Type of first level - [DataMember(Name="documentType", EmitDefaultValue=false)] - public int? DocumentType { get; set; } - - /// - /// Document Type of second level - /// - /// Document Type of second level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Document Type of third level - /// - /// Document Type of third level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Select Fields - /// - /// Select Fields - [DataMember(Name="selectFields", EmitDefaultValue=false)] - public string SelectFields { get; set; } - - /// - /// Edit Fields - /// - /// Edit Fields - [DataMember(Name="editFields", EmitDefaultValue=false)] - public string EditFields { get; set; } - - /// - /// Uneditable Fields - /// - /// Uneditable Fields - [DataMember(Name="lockFields", EmitDefaultValue=false)] - public SearchDTO LockFields { get; set; } - - /// - /// Order Fields - /// - /// Order Fields - [DataMember(Name="orderFields", EmitDefaultValue=false)] - public string OrderFields { get; set; } - - /// - /// Show Fields - /// - /// Show Fields - [DataMember(Name="showFields", EmitDefaultValue=false)] - public bool? ShowFields { get; set; } - - /// - /// Opening the search form after running the Arxivar client view. - /// - /// Opening the search form after running the Arxivar client view. - [DataMember(Name="formOpen", EmitDefaultValue=false)] - public bool? FormOpen { get; set; } - - /// - /// Possible values: 0: Yes 1: No 2: OnDemand - /// - /// Possible values: 0: Yes 1: No 2: OnDemand - [DataMember(Name="allowEmptyFilterMode", EmitDefaultValue=false)] - public int? AllowEmptyFilterMode { get; set; } - - /// - /// Possible values: 0: No 1: Yes - /// - /// Possible values: 0: No 1: Yes - [DataMember(Name="showGroupsMode", EmitDefaultValue=false)] - public int? ShowGroupsMode { get; set; } - - /// - /// Execute - /// - /// Execute - [DataMember(Name="canExecute", EmitDefaultValue=false)] - public bool? CanExecute { get; set; } - - /// - /// Edit - /// - /// Edit - [DataMember(Name="canUpdate", EmitDefaultValue=false)] - public bool? CanUpdate { get; set; } - - /// - /// Delete - /// - /// Delete - [DataMember(Name="canDelete", EmitDefaultValue=false)] - public bool? CanDelete { get; set; } - - /// - /// Gets or Sets SearchFilterDto - /// - [DataMember(Name="searchFilterDto", EmitDefaultValue=false)] - public SearchDTO SearchFilterDto { get; set; } - - /// - /// Gets or Sets SelectFilterDto - /// - [DataMember(Name="selectFilterDto", EmitDefaultValue=false)] - public SelectDTO SelectFilterDto { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ViewDTO {\n"); - sb.Append(" MaxItems: ").Append(MaxItems).Append("\n"); - sb.Append(" DocumentTypeDescription: ").Append(DocumentTypeDescription).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append(" SelectFields: ").Append(SelectFields).Append("\n"); - sb.Append(" EditFields: ").Append(EditFields).Append("\n"); - sb.Append(" LockFields: ").Append(LockFields).Append("\n"); - sb.Append(" OrderFields: ").Append(OrderFields).Append("\n"); - sb.Append(" ShowFields: ").Append(ShowFields).Append("\n"); - sb.Append(" FormOpen: ").Append(FormOpen).Append("\n"); - sb.Append(" AllowEmptyFilterMode: ").Append(AllowEmptyFilterMode).Append("\n"); - sb.Append(" ShowGroupsMode: ").Append(ShowGroupsMode).Append("\n"); - sb.Append(" CanExecute: ").Append(CanExecute).Append("\n"); - sb.Append(" CanUpdate: ").Append(CanUpdate).Append("\n"); - sb.Append(" CanDelete: ").Append(CanDelete).Append("\n"); - sb.Append(" SearchFilterDto: ").Append(SearchFilterDto).Append("\n"); - sb.Append(" SelectFilterDto: ").Append(SelectFilterDto).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ViewDTO); - } - - /// - /// Returns true if ViewDTO instances are equal - /// - /// Instance of ViewDTO to be compared - /// Boolean - public bool Equals(ViewDTO input) - { - if (input == null) - return false; - - return - ( - this.MaxItems == input.MaxItems || - (this.MaxItems != null && - this.MaxItems.Equals(input.MaxItems)) - ) && - ( - this.DocumentTypeDescription == input.DocumentTypeDescription || - (this.DocumentTypeDescription != null && - this.DocumentTypeDescription.Equals(input.DocumentTypeDescription)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ) && - ( - this.SelectFields == input.SelectFields || - (this.SelectFields != null && - this.SelectFields.Equals(input.SelectFields)) - ) && - ( - this.EditFields == input.EditFields || - (this.EditFields != null && - this.EditFields.Equals(input.EditFields)) - ) && - ( - this.LockFields == input.LockFields || - (this.LockFields != null && - this.LockFields.Equals(input.LockFields)) - ) && - ( - this.OrderFields == input.OrderFields || - (this.OrderFields != null && - this.OrderFields.Equals(input.OrderFields)) - ) && - ( - this.ShowFields == input.ShowFields || - (this.ShowFields != null && - this.ShowFields.Equals(input.ShowFields)) - ) && - ( - this.FormOpen == input.FormOpen || - (this.FormOpen != null && - this.FormOpen.Equals(input.FormOpen)) - ) && - ( - this.AllowEmptyFilterMode == input.AllowEmptyFilterMode || - (this.AllowEmptyFilterMode != null && - this.AllowEmptyFilterMode.Equals(input.AllowEmptyFilterMode)) - ) && - ( - this.ShowGroupsMode == input.ShowGroupsMode || - (this.ShowGroupsMode != null && - this.ShowGroupsMode.Equals(input.ShowGroupsMode)) - ) && - ( - this.CanExecute == input.CanExecute || - (this.CanExecute != null && - this.CanExecute.Equals(input.CanExecute)) - ) && - ( - this.CanUpdate == input.CanUpdate || - (this.CanUpdate != null && - this.CanUpdate.Equals(input.CanUpdate)) - ) && - ( - this.CanDelete == input.CanDelete || - (this.CanDelete != null && - this.CanDelete.Equals(input.CanDelete)) - ) && - ( - this.SearchFilterDto == input.SearchFilterDto || - (this.SearchFilterDto != null && - this.SearchFilterDto.Equals(input.SearchFilterDto)) - ) && - ( - this.SelectFilterDto == input.SelectFilterDto || - (this.SelectFilterDto != null && - this.SelectFilterDto.Equals(input.SelectFilterDto)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.MaxItems != null) - hashCode = hashCode * 59 + this.MaxItems.GetHashCode(); - if (this.DocumentTypeDescription != null) - hashCode = hashCode * 59 + this.DocumentTypeDescription.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - if (this.SelectFields != null) - hashCode = hashCode * 59 + this.SelectFields.GetHashCode(); - if (this.EditFields != null) - hashCode = hashCode * 59 + this.EditFields.GetHashCode(); - if (this.LockFields != null) - hashCode = hashCode * 59 + this.LockFields.GetHashCode(); - if (this.OrderFields != null) - hashCode = hashCode * 59 + this.OrderFields.GetHashCode(); - if (this.ShowFields != null) - hashCode = hashCode * 59 + this.ShowFields.GetHashCode(); - if (this.FormOpen != null) - hashCode = hashCode * 59 + this.FormOpen.GetHashCode(); - if (this.AllowEmptyFilterMode != null) - hashCode = hashCode * 59 + this.AllowEmptyFilterMode.GetHashCode(); - if (this.ShowGroupsMode != null) - hashCode = hashCode * 59 + this.ShowGroupsMode.GetHashCode(); - if (this.CanExecute != null) - hashCode = hashCode * 59 + this.CanExecute.GetHashCode(); - if (this.CanUpdate != null) - hashCode = hashCode * 59 + this.CanUpdate.GetHashCode(); - if (this.CanDelete != null) - hashCode = hashCode * 59 + this.CanDelete.GetHashCode(); - if (this.SearchFilterDto != null) - hashCode = hashCode * 59 + this.SearchFilterDto.GetHashCode(); - if (this.SelectFilterDto != null) - hashCode = hashCode * 59 + this.SelectFilterDto.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ViewEditDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ViewEditDTO.cs deleted file mode 100644 index f1ec961..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ViewEditDTO.cs +++ /dev/null @@ -1,396 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of edit of View - /// - [DataContract] - public partial class ViewEditDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// description. - /// User Identifier. - /// User Description. - /// Document Type Identifier for first level. - /// Document Type Identifier for second level. - /// Document Type Identifier for third level. - /// Lista dei campi da visualizzare nel risultato di ricerca.. - /// List of edit fields. - /// List of lock fields. - /// Mode of show fields. - /// Mode of show search form. - /// Possible values: 0: Yes 1: No 2: OnDemand . - /// Possible values: 0: No 1: Yes . - /// Can Search. - /// Can Update. - /// Can Delete. - public ViewEditDTO(string id = default(string), string description = default(string), int? user = default(int?), string userCompleteName = default(string), int? documentType = default(int?), int? type2 = default(int?), int? type3 = default(int?), SelectDTO selectFields = default(SelectDTO), SearchDTO editFields = default(SearchDTO), SearchDTO lockFields = default(SearchDTO), bool? showFields = default(bool?), bool? formOpen = default(bool?), int? allowEmptyFilterMode = default(int?), int? showGroupsMode = default(int?), bool? canExecute = default(bool?), bool? canUpdate = default(bool?), bool? canDelete = default(bool?)) - { - this.Id = id; - this.Description = description; - this.User = user; - this.UserCompleteName = userCompleteName; - this.DocumentType = documentType; - this.Type2 = type2; - this.Type3 = type3; - this.SelectFields = selectFields; - this.EditFields = editFields; - this.LockFields = lockFields; - this.ShowFields = showFields; - this.FormOpen = formOpen; - this.AllowEmptyFilterMode = allowEmptyFilterMode; - this.ShowGroupsMode = showGroupsMode; - this.CanExecute = canExecute; - this.CanUpdate = canUpdate; - this.CanDelete = canDelete; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// User Identifier - /// - /// User Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// User Description - /// - /// User Description - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Document Type Identifier for first level - /// - /// Document Type Identifier for first level - [DataMember(Name="documentType", EmitDefaultValue=false)] - public int? DocumentType { get; set; } - - /// - /// Document Type Identifier for second level - /// - /// Document Type Identifier for second level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Document Type Identifier for third level - /// - /// Document Type Identifier for third level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Lista dei campi da visualizzare nel risultato di ricerca. - /// - /// Lista dei campi da visualizzare nel risultato di ricerca. - [DataMember(Name="selectFields", EmitDefaultValue=false)] - public SelectDTO SelectFields { get; set; } - - /// - /// List of edit fields - /// - /// List of edit fields - [DataMember(Name="editFields", EmitDefaultValue=false)] - public SearchDTO EditFields { get; set; } - - /// - /// List of lock fields - /// - /// List of lock fields - [DataMember(Name="lockFields", EmitDefaultValue=false)] - public SearchDTO LockFields { get; set; } - - /// - /// Mode of show fields - /// - /// Mode of show fields - [DataMember(Name="showFields", EmitDefaultValue=false)] - public bool? ShowFields { get; set; } - - /// - /// Mode of show search form - /// - /// Mode of show search form - [DataMember(Name="formOpen", EmitDefaultValue=false)] - public bool? FormOpen { get; set; } - - /// - /// Possible values: 0: Yes 1: No 2: OnDemand - /// - /// Possible values: 0: Yes 1: No 2: OnDemand - [DataMember(Name="allowEmptyFilterMode", EmitDefaultValue=false)] - public int? AllowEmptyFilterMode { get; set; } - - /// - /// Possible values: 0: No 1: Yes - /// - /// Possible values: 0: No 1: Yes - [DataMember(Name="showGroupsMode", EmitDefaultValue=false)] - public int? ShowGroupsMode { get; set; } - - /// - /// Can Search - /// - /// Can Search - [DataMember(Name="canExecute", EmitDefaultValue=false)] - public bool? CanExecute { get; set; } - - /// - /// Can Update - /// - /// Can Update - [DataMember(Name="canUpdate", EmitDefaultValue=false)] - public bool? CanUpdate { get; set; } - - /// - /// Can Delete - /// - /// Can Delete - [DataMember(Name="canDelete", EmitDefaultValue=false)] - public bool? CanDelete { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ViewEditDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append(" SelectFields: ").Append(SelectFields).Append("\n"); - sb.Append(" EditFields: ").Append(EditFields).Append("\n"); - sb.Append(" LockFields: ").Append(LockFields).Append("\n"); - sb.Append(" ShowFields: ").Append(ShowFields).Append("\n"); - sb.Append(" FormOpen: ").Append(FormOpen).Append("\n"); - sb.Append(" AllowEmptyFilterMode: ").Append(AllowEmptyFilterMode).Append("\n"); - sb.Append(" ShowGroupsMode: ").Append(ShowGroupsMode).Append("\n"); - sb.Append(" CanExecute: ").Append(CanExecute).Append("\n"); - sb.Append(" CanUpdate: ").Append(CanUpdate).Append("\n"); - sb.Append(" CanDelete: ").Append(CanDelete).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ViewEditDTO); - } - - /// - /// Returns true if ViewEditDTO instances are equal - /// - /// Instance of ViewEditDTO to be compared - /// Boolean - public bool Equals(ViewEditDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ) && - ( - this.SelectFields == input.SelectFields || - (this.SelectFields != null && - this.SelectFields.Equals(input.SelectFields)) - ) && - ( - this.EditFields == input.EditFields || - (this.EditFields != null && - this.EditFields.Equals(input.EditFields)) - ) && - ( - this.LockFields == input.LockFields || - (this.LockFields != null && - this.LockFields.Equals(input.LockFields)) - ) && - ( - this.ShowFields == input.ShowFields || - (this.ShowFields != null && - this.ShowFields.Equals(input.ShowFields)) - ) && - ( - this.FormOpen == input.FormOpen || - (this.FormOpen != null && - this.FormOpen.Equals(input.FormOpen)) - ) && - ( - this.AllowEmptyFilterMode == input.AllowEmptyFilterMode || - (this.AllowEmptyFilterMode != null && - this.AllowEmptyFilterMode.Equals(input.AllowEmptyFilterMode)) - ) && - ( - this.ShowGroupsMode == input.ShowGroupsMode || - (this.ShowGroupsMode != null && - this.ShowGroupsMode.Equals(input.ShowGroupsMode)) - ) && - ( - this.CanExecute == input.CanExecute || - (this.CanExecute != null && - this.CanExecute.Equals(input.CanExecute)) - ) && - ( - this.CanUpdate == input.CanUpdate || - (this.CanUpdate != null && - this.CanUpdate.Equals(input.CanUpdate)) - ) && - ( - this.CanDelete == input.CanDelete || - (this.CanDelete != null && - this.CanDelete.Equals(input.CanDelete)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - if (this.SelectFields != null) - hashCode = hashCode * 59 + this.SelectFields.GetHashCode(); - if (this.EditFields != null) - hashCode = hashCode * 59 + this.EditFields.GetHashCode(); - if (this.LockFields != null) - hashCode = hashCode * 59 + this.LockFields.GetHashCode(); - if (this.ShowFields != null) - hashCode = hashCode * 59 + this.ShowFields.GetHashCode(); - if (this.FormOpen != null) - hashCode = hashCode * 59 + this.FormOpen.GetHashCode(); - if (this.AllowEmptyFilterMode != null) - hashCode = hashCode * 59 + this.AllowEmptyFilterMode.GetHashCode(); - if (this.ShowGroupsMode != null) - hashCode = hashCode * 59 + this.ShowGroupsMode.GetHashCode(); - if (this.CanExecute != null) - hashCode = hashCode * 59 + this.CanExecute.GetHashCode(); - if (this.CanUpdate != null) - hashCode = hashCode * 59 + this.CanUpdate.GetHashCode(); - if (this.CanDelete != null) - hashCode = hashCode * 59 + this.CanDelete.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/ViewSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/ViewSimpleDTO.cs deleted file mode 100644 index 7fcdf83..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/ViewSimpleDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of View - /// - [DataContract] - public partial class ViewSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - public ViewSimpleDTO(string id = default(string), string description = default(string)) - { - this.Id = id; - this.Description = description; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ViewSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ViewSimpleDTO); - } - - /// - /// Returns true if ViewSimpleDTO instances are equal - /// - /// Instance of ViewSimpleDTO to be compared - /// Boolean - public bool Equals(ViewSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowChainDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowChainDTO.cs deleted file mode 100644 index da0aa6a..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowChainDTO.cs +++ /dev/null @@ -1,312 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Workflow Chain - /// - [DataContract] - public partial class WorkFlowChainDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Chain identifier. - /// Possible values: 0: FromV1ToV2 1: FromV2ToV1 . - /// Dm WorkFlow. - /// WorkFlow Name. - /// WorkFlow Revision. - /// Diagram Id. - /// Diagram Name. - /// Diagram Revision. - /// Import Primary. - /// Import Secondary. - /// Import Attach. - /// The list of Workflow chain vars. - public WorkFlowChainDTO(string id = default(string), int? kind = default(int?), int? dmWorkflow = default(int?), string workflowName = default(string), int? workflowRevision = default(int?), string diagramId = default(string), string diagramName = default(string), int? diagramRevision = default(int?), int? importPrimary = default(int?), int? importSecondary = default(int?), int? importAttach = default(int?), List wfChainVars = default(List)) - { - this.Id = id; - this.Kind = kind; - this.DmWorkflow = dmWorkflow; - this.WorkflowName = workflowName; - this.WorkflowRevision = workflowRevision; - this.DiagramId = diagramId; - this.DiagramName = diagramName; - this.DiagramRevision = diagramRevision; - this.ImportPrimary = importPrimary; - this.ImportSecondary = importSecondary; - this.ImportAttach = importAttach; - this.WfChainVars = wfChainVars; - } - - /// - /// Chain identifier - /// - /// Chain identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Possible values: 0: FromV1ToV2 1: FromV2ToV1 - /// - /// Possible values: 0: FromV1ToV2 1: FromV2ToV1 - [DataMember(Name="kind", EmitDefaultValue=false)] - public int? Kind { get; set; } - - /// - /// Dm WorkFlow - /// - /// Dm WorkFlow - [DataMember(Name="dmWorkflow", EmitDefaultValue=false)] - public int? DmWorkflow { get; set; } - - /// - /// WorkFlow Name - /// - /// WorkFlow Name - [DataMember(Name="workflowName", EmitDefaultValue=false)] - public string WorkflowName { get; set; } - - /// - /// WorkFlow Revision - /// - /// WorkFlow Revision - [DataMember(Name="workflowRevision", EmitDefaultValue=false)] - public int? WorkflowRevision { get; set; } - - /// - /// Diagram Id - /// - /// Diagram Id - [DataMember(Name="diagramId", EmitDefaultValue=false)] - public string DiagramId { get; set; } - - /// - /// Diagram Name - /// - /// Diagram Name - [DataMember(Name="diagramName", EmitDefaultValue=false)] - public string DiagramName { get; set; } - - /// - /// Diagram Revision - /// - /// Diagram Revision - [DataMember(Name="diagramRevision", EmitDefaultValue=false)] - public int? DiagramRevision { get; set; } - - /// - /// Import Primary - /// - /// Import Primary - [DataMember(Name="importPrimary", EmitDefaultValue=false)] - public int? ImportPrimary { get; set; } - - /// - /// Import Secondary - /// - /// Import Secondary - [DataMember(Name="importSecondary", EmitDefaultValue=false)] - public int? ImportSecondary { get; set; } - - /// - /// Import Attach - /// - /// Import Attach - [DataMember(Name="importAttach", EmitDefaultValue=false)] - public int? ImportAttach { get; set; } - - /// - /// The list of Workflow chain vars - /// - /// The list of Workflow chain vars - [DataMember(Name="wfChainVars", EmitDefaultValue=false)] - public List WfChainVars { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class WorkFlowChainDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Kind: ").Append(Kind).Append("\n"); - sb.Append(" DmWorkflow: ").Append(DmWorkflow).Append("\n"); - sb.Append(" WorkflowName: ").Append(WorkflowName).Append("\n"); - sb.Append(" WorkflowRevision: ").Append(WorkflowRevision).Append("\n"); - sb.Append(" DiagramId: ").Append(DiagramId).Append("\n"); - sb.Append(" DiagramName: ").Append(DiagramName).Append("\n"); - sb.Append(" DiagramRevision: ").Append(DiagramRevision).Append("\n"); - sb.Append(" ImportPrimary: ").Append(ImportPrimary).Append("\n"); - sb.Append(" ImportSecondary: ").Append(ImportSecondary).Append("\n"); - sb.Append(" ImportAttach: ").Append(ImportAttach).Append("\n"); - sb.Append(" WfChainVars: ").Append(WfChainVars).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as WorkFlowChainDTO); - } - - /// - /// Returns true if WorkFlowChainDTO instances are equal - /// - /// Instance of WorkFlowChainDTO to be compared - /// Boolean - public bool Equals(WorkFlowChainDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Kind == input.Kind || - (this.Kind != null && - this.Kind.Equals(input.Kind)) - ) && - ( - this.DmWorkflow == input.DmWorkflow || - (this.DmWorkflow != null && - this.DmWorkflow.Equals(input.DmWorkflow)) - ) && - ( - this.WorkflowName == input.WorkflowName || - (this.WorkflowName != null && - this.WorkflowName.Equals(input.WorkflowName)) - ) && - ( - this.WorkflowRevision == input.WorkflowRevision || - (this.WorkflowRevision != null && - this.WorkflowRevision.Equals(input.WorkflowRevision)) - ) && - ( - this.DiagramId == input.DiagramId || - (this.DiagramId != null && - this.DiagramId.Equals(input.DiagramId)) - ) && - ( - this.DiagramName == input.DiagramName || - (this.DiagramName != null && - this.DiagramName.Equals(input.DiagramName)) - ) && - ( - this.DiagramRevision == input.DiagramRevision || - (this.DiagramRevision != null && - this.DiagramRevision.Equals(input.DiagramRevision)) - ) && - ( - this.ImportPrimary == input.ImportPrimary || - (this.ImportPrimary != null && - this.ImportPrimary.Equals(input.ImportPrimary)) - ) && - ( - this.ImportSecondary == input.ImportSecondary || - (this.ImportSecondary != null && - this.ImportSecondary.Equals(input.ImportSecondary)) - ) && - ( - this.ImportAttach == input.ImportAttach || - (this.ImportAttach != null && - this.ImportAttach.Equals(input.ImportAttach)) - ) && - ( - this.WfChainVars == input.WfChainVars || - this.WfChainVars != null && - this.WfChainVars.SequenceEqual(input.WfChainVars) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Kind != null) - hashCode = hashCode * 59 + this.Kind.GetHashCode(); - if (this.DmWorkflow != null) - hashCode = hashCode * 59 + this.DmWorkflow.GetHashCode(); - if (this.WorkflowName != null) - hashCode = hashCode * 59 + this.WorkflowName.GetHashCode(); - if (this.WorkflowRevision != null) - hashCode = hashCode * 59 + this.WorkflowRevision.GetHashCode(); - if (this.DiagramId != null) - hashCode = hashCode * 59 + this.DiagramId.GetHashCode(); - if (this.DiagramName != null) - hashCode = hashCode * 59 + this.DiagramName.GetHashCode(); - if (this.DiagramRevision != null) - hashCode = hashCode * 59 + this.DiagramRevision.GetHashCode(); - if (this.ImportPrimary != null) - hashCode = hashCode * 59 + this.ImportPrimary.GetHashCode(); - if (this.ImportSecondary != null) - hashCode = hashCode * 59 + this.ImportSecondary.GetHashCode(); - if (this.ImportAttach != null) - hashCode = hashCode * 59 + this.ImportAttach.GetHashCode(); - if (this.WfChainVars != null) - hashCode = hashCode * 59 + this.WfChainVars.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowChainMasterDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowChainMasterDTO.cs deleted file mode 100644 index 63db6d1..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowChainMasterDTO.cs +++ /dev/null @@ -1,189 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Workflow Chain Master - /// - [DataContract] - public partial class WorkFlowChainMasterDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected WorkFlowChainMasterDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Master chain identifier. - /// The name (required). - /// The description. - /// The list of Workflow chain vars. - public WorkFlowChainMasterDTO(string id = default(string), string name = default(string), string description = default(string), List wfChains = default(List)) - { - // to ensure "name" is required (not null) - if (name == null) - { - throw new InvalidDataException("name is a required property for WorkFlowChainMasterDTO and cannot be null"); - } - else - { - this.Name = name; - } - this.Id = id; - this.Description = description; - this.WfChains = wfChains; - } - - /// - /// Master chain identifier - /// - /// Master chain identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// The name - /// - /// The name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// The description - /// - /// The description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// The list of Workflow chain vars - /// - /// The list of Workflow chain vars - [DataMember(Name="wfChains", EmitDefaultValue=false)] - public List WfChains { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class WorkFlowChainMasterDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" WfChains: ").Append(WfChains).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as WorkFlowChainMasterDTO); - } - - /// - /// Returns true if WorkFlowChainMasterDTO instances are equal - /// - /// Instance of WorkFlowChainMasterDTO to be compared - /// Boolean - public bool Equals(WorkFlowChainMasterDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.WfChains == input.WfChains || - this.WfChains != null && - this.WfChains.SequenceEqual(input.WfChains) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.WfChains != null) - hashCode = hashCode * 59 + this.WfChains.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowChainVarDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowChainVarDTO.cs deleted file mode 100644 index f25b54e..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowChainVarDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Workflow Chain Variable - /// - [DataContract] - public partial class WorkFlowChainVarDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Id. - /// Dm Variabili Id. - /// Diagram Var Id. - public WorkFlowChainVarDTO(string id = default(string), int? dmVariabiliId = default(int?), string diagramVarId = default(string)) - { - this.Id = id; - this.DmVariabiliId = dmVariabiliId; - this.DiagramVarId = diagramVarId; - } - - /// - /// Id - /// - /// Id - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Dm Variabili Id - /// - /// Dm Variabili Id - [DataMember(Name="dmVariabiliId", EmitDefaultValue=false)] - public int? DmVariabiliId { get; set; } - - /// - /// Diagram Var Id - /// - /// Diagram Var Id - [DataMember(Name="diagramVarId", EmitDefaultValue=false)] - public string DiagramVarId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class WorkFlowChainVarDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" DmVariabiliId: ").Append(DmVariabiliId).Append("\n"); - sb.Append(" DiagramVarId: ").Append(DiagramVarId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as WorkFlowChainVarDTO); - } - - /// - /// Returns true if WorkFlowChainVarDTO instances are equal - /// - /// Instance of WorkFlowChainVarDTO to be compared - /// Boolean - public bool Equals(WorkFlowChainVarDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.DmVariabiliId == input.DmVariabiliId || - (this.DmVariabiliId != null && - this.DmVariabiliId.Equals(input.DmVariabiliId)) - ) && - ( - this.DiagramVarId == input.DiagramVarId || - (this.DiagramVarId != null && - this.DiagramVarId.Equals(input.DiagramVarId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.DmVariabiliId != null) - hashCode = hashCode * 59 + this.DmVariabiliId.GetHashCode(); - if (this.DiagramVarId != null) - hashCode = hashCode * 59 + this.DiagramVarId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowEventDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowEventDTO.cs deleted file mode 100644 index 9cc0f23..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowEventDTO.cs +++ /dev/null @@ -1,189 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// WorkFlowEventDTO - /// - [DataContract] - public partial class WorkFlowEventDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// workflowName. - /// eventId. - /// Possible values: 0: V1 1: V2 . - /// workflowId. - /// diagramId. - public WorkFlowEventDTO(string workflowName = default(string), int? eventId = default(int?), int? workflowVersion = default(int?), int? workflowId = default(int?), string diagramId = default(string)) - { - this.WorkflowName = workflowName; - this.EventId = eventId; - this.WorkflowVersion = workflowVersion; - this.WorkflowId = workflowId; - this.DiagramId = diagramId; - } - - /// - /// Gets or Sets WorkflowName - /// - [DataMember(Name="workflowName", EmitDefaultValue=false)] - public string WorkflowName { get; set; } - - /// - /// Gets or Sets EventId - /// - [DataMember(Name="eventId", EmitDefaultValue=false)] - public int? EventId { get; set; } - - /// - /// Possible values: 0: V1 1: V2 - /// - /// Possible values: 0: V1 1: V2 - [DataMember(Name="workflowVersion", EmitDefaultValue=false)] - public int? WorkflowVersion { get; set; } - - /// - /// Gets or Sets WorkflowId - /// - [DataMember(Name="workflowId", EmitDefaultValue=false)] - public int? WorkflowId { get; set; } - - /// - /// Gets or Sets DiagramId - /// - [DataMember(Name="diagramId", EmitDefaultValue=false)] - public string DiagramId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class WorkFlowEventDTO {\n"); - sb.Append(" WorkflowName: ").Append(WorkflowName).Append("\n"); - sb.Append(" EventId: ").Append(EventId).Append("\n"); - sb.Append(" WorkflowVersion: ").Append(WorkflowVersion).Append("\n"); - sb.Append(" WorkflowId: ").Append(WorkflowId).Append("\n"); - sb.Append(" DiagramId: ").Append(DiagramId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as WorkFlowEventDTO); - } - - /// - /// Returns true if WorkFlowEventDTO instances are equal - /// - /// Instance of WorkFlowEventDTO to be compared - /// Boolean - public bool Equals(WorkFlowEventDTO input) - { - if (input == null) - return false; - - return - ( - this.WorkflowName == input.WorkflowName || - (this.WorkflowName != null && - this.WorkflowName.Equals(input.WorkflowName)) - ) && - ( - this.EventId == input.EventId || - (this.EventId != null && - this.EventId.Equals(input.EventId)) - ) && - ( - this.WorkflowVersion == input.WorkflowVersion || - (this.WorkflowVersion != null && - this.WorkflowVersion.Equals(input.WorkflowVersion)) - ) && - ( - this.WorkflowId == input.WorkflowId || - (this.WorkflowId != null && - this.WorkflowId.Equals(input.WorkflowId)) - ) && - ( - this.DiagramId == input.DiagramId || - (this.DiagramId != null && - this.DiagramId.Equals(input.DiagramId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.WorkflowName != null) - hashCode = hashCode * 59 + this.WorkflowName.GetHashCode(); - if (this.EventId != null) - hashCode = hashCode * 59 + this.EventId.GetHashCode(); - if (this.WorkflowVersion != null) - hashCode = hashCode * 59 + this.WorkflowVersion.GetHashCode(); - if (this.WorkflowId != null) - hashCode = hashCode * 59 + this.WorkflowId.GetHashCode(); - if (this.DiagramId != null) - hashCode = hashCode * 59 + this.DiagramId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowSaveEventDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowSaveEventDTO.cs deleted file mode 100644 index effc171..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowSaveEventDTO.cs +++ /dev/null @@ -1,237 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// WorkFlowSaveEventDTO - /// - [DataContract] - public partial class WorkFlowSaveEventDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// isActive. - /// eventPriority. - /// Possible values: 0: V1 1: V2 . - /// workflowName. - /// workflowId. - /// diagramRevision. - /// diagramId. - /// configuration. - public WorkFlowSaveEventDTO(bool? isActive = default(bool?), int? eventPriority = default(int?), int? workflowVersion = default(int?), string workflowName = default(string), int? workflowId = default(int?), int? diagramRevision = default(int?), string diagramId = default(string), WorkflowEventAbstractConfiguration configuration = default(WorkflowEventAbstractConfiguration)) - { - this.IsActive = isActive; - this.EventPriority = eventPriority; - this.WorkflowVersion = workflowVersion; - this.WorkflowName = workflowName; - this.WorkflowId = workflowId; - this.DiagramRevision = diagramRevision; - this.DiagramId = diagramId; - this.Configuration = configuration; - } - - /// - /// Gets or Sets IsActive - /// - [DataMember(Name="isActive", EmitDefaultValue=false)] - public bool? IsActive { get; set; } - - /// - /// Gets or Sets EventPriority - /// - [DataMember(Name="eventPriority", EmitDefaultValue=false)] - public int? EventPriority { get; set; } - - /// - /// Possible values: 0: V1 1: V2 - /// - /// Possible values: 0: V1 1: V2 - [DataMember(Name="workflowVersion", EmitDefaultValue=false)] - public int? WorkflowVersion { get; set; } - - /// - /// Gets or Sets WorkflowName - /// - [DataMember(Name="workflowName", EmitDefaultValue=false)] - public string WorkflowName { get; set; } - - /// - /// Gets or Sets WorkflowId - /// - [DataMember(Name="workflowId", EmitDefaultValue=false)] - public int? WorkflowId { get; set; } - - /// - /// Gets or Sets DiagramRevision - /// - [DataMember(Name="diagramRevision", EmitDefaultValue=false)] - public int? DiagramRevision { get; set; } - - /// - /// Gets or Sets DiagramId - /// - [DataMember(Name="diagramId", EmitDefaultValue=false)] - public string DiagramId { get; set; } - - /// - /// Gets or Sets Configuration - /// - [DataMember(Name="configuration", EmitDefaultValue=false)] - public WorkflowEventAbstractConfiguration Configuration { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class WorkFlowSaveEventDTO {\n"); - sb.Append(" IsActive: ").Append(IsActive).Append("\n"); - sb.Append(" EventPriority: ").Append(EventPriority).Append("\n"); - sb.Append(" WorkflowVersion: ").Append(WorkflowVersion).Append("\n"); - sb.Append(" WorkflowName: ").Append(WorkflowName).Append("\n"); - sb.Append(" WorkflowId: ").Append(WorkflowId).Append("\n"); - sb.Append(" DiagramRevision: ").Append(DiagramRevision).Append("\n"); - sb.Append(" DiagramId: ").Append(DiagramId).Append("\n"); - sb.Append(" Configuration: ").Append(Configuration).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as WorkFlowSaveEventDTO); - } - - /// - /// Returns true if WorkFlowSaveEventDTO instances are equal - /// - /// Instance of WorkFlowSaveEventDTO to be compared - /// Boolean - public bool Equals(WorkFlowSaveEventDTO input) - { - if (input == null) - return false; - - return - ( - this.IsActive == input.IsActive || - (this.IsActive != null && - this.IsActive.Equals(input.IsActive)) - ) && - ( - this.EventPriority == input.EventPriority || - (this.EventPriority != null && - this.EventPriority.Equals(input.EventPriority)) - ) && - ( - this.WorkflowVersion == input.WorkflowVersion || - (this.WorkflowVersion != null && - this.WorkflowVersion.Equals(input.WorkflowVersion)) - ) && - ( - this.WorkflowName == input.WorkflowName || - (this.WorkflowName != null && - this.WorkflowName.Equals(input.WorkflowName)) - ) && - ( - this.WorkflowId == input.WorkflowId || - (this.WorkflowId != null && - this.WorkflowId.Equals(input.WorkflowId)) - ) && - ( - this.DiagramRevision == input.DiagramRevision || - (this.DiagramRevision != null && - this.DiagramRevision.Equals(input.DiagramRevision)) - ) && - ( - this.DiagramId == input.DiagramId || - (this.DiagramId != null && - this.DiagramId.Equals(input.DiagramId)) - ) && - ( - this.Configuration == input.Configuration || - (this.Configuration != null && - this.Configuration.Equals(input.Configuration)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IsActive != null) - hashCode = hashCode * 59 + this.IsActive.GetHashCode(); - if (this.EventPriority != null) - hashCode = hashCode * 59 + this.EventPriority.GetHashCode(); - if (this.WorkflowVersion != null) - hashCode = hashCode * 59 + this.WorkflowVersion.GetHashCode(); - if (this.WorkflowName != null) - hashCode = hashCode * 59 + this.WorkflowName.GetHashCode(); - if (this.WorkflowId != null) - hashCode = hashCode * 59 + this.WorkflowId.GetHashCode(); - if (this.DiagramRevision != null) - hashCode = hashCode * 59 + this.DiagramRevision.GetHashCode(); - if (this.DiagramId != null) - hashCode = hashCode * 59 + this.DiagramId.GetHashCode(); - if (this.Configuration != null) - hashCode = hashCode * 59 + this.Configuration.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowSavedEventDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowSavedEventDTO.cs deleted file mode 100644 index ea4d280..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/WorkFlowSavedEventDTO.cs +++ /dev/null @@ -1,253 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// WorkFlowSavedEventDTO - /// - [DataContract] - public partial class WorkFlowSavedEventDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// eventId. - /// isActive. - /// eventPriority. - /// Possible values: 0: V1 1: V2 . - /// workflowName. - /// workflowId. - /// diagramRevision. - /// diagramId. - /// configuration. - public WorkFlowSavedEventDTO(string eventId = default(string), bool? isActive = default(bool?), int? eventPriority = default(int?), int? workflowVersion = default(int?), string workflowName = default(string), int? workflowId = default(int?), int? diagramRevision = default(int?), string diagramId = default(string), WorkflowEventAbstractConfiguration configuration = default(WorkflowEventAbstractConfiguration)) - { - this.EventId = eventId; - this.IsActive = isActive; - this.EventPriority = eventPriority; - this.WorkflowVersion = workflowVersion; - this.WorkflowName = workflowName; - this.WorkflowId = workflowId; - this.DiagramRevision = diagramRevision; - this.DiagramId = diagramId; - this.Configuration = configuration; - } - - /// - /// Gets or Sets EventId - /// - [DataMember(Name="eventId", EmitDefaultValue=false)] - public string EventId { get; set; } - - /// - /// Gets or Sets IsActive - /// - [DataMember(Name="isActive", EmitDefaultValue=false)] - public bool? IsActive { get; set; } - - /// - /// Gets or Sets EventPriority - /// - [DataMember(Name="eventPriority", EmitDefaultValue=false)] - public int? EventPriority { get; set; } - - /// - /// Possible values: 0: V1 1: V2 - /// - /// Possible values: 0: V1 1: V2 - [DataMember(Name="workflowVersion", EmitDefaultValue=false)] - public int? WorkflowVersion { get; set; } - - /// - /// Gets or Sets WorkflowName - /// - [DataMember(Name="workflowName", EmitDefaultValue=false)] - public string WorkflowName { get; set; } - - /// - /// Gets or Sets WorkflowId - /// - [DataMember(Name="workflowId", EmitDefaultValue=false)] - public int? WorkflowId { get; set; } - - /// - /// Gets or Sets DiagramRevision - /// - [DataMember(Name="diagramRevision", EmitDefaultValue=false)] - public int? DiagramRevision { get; set; } - - /// - /// Gets or Sets DiagramId - /// - [DataMember(Name="diagramId", EmitDefaultValue=false)] - public string DiagramId { get; set; } - - /// - /// Gets or Sets Configuration - /// - [DataMember(Name="configuration", EmitDefaultValue=false)] - public WorkflowEventAbstractConfiguration Configuration { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class WorkFlowSavedEventDTO {\n"); - sb.Append(" EventId: ").Append(EventId).Append("\n"); - sb.Append(" IsActive: ").Append(IsActive).Append("\n"); - sb.Append(" EventPriority: ").Append(EventPriority).Append("\n"); - sb.Append(" WorkflowVersion: ").Append(WorkflowVersion).Append("\n"); - sb.Append(" WorkflowName: ").Append(WorkflowName).Append("\n"); - sb.Append(" WorkflowId: ").Append(WorkflowId).Append("\n"); - sb.Append(" DiagramRevision: ").Append(DiagramRevision).Append("\n"); - sb.Append(" DiagramId: ").Append(DiagramId).Append("\n"); - sb.Append(" Configuration: ").Append(Configuration).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as WorkFlowSavedEventDTO); - } - - /// - /// Returns true if WorkFlowSavedEventDTO instances are equal - /// - /// Instance of WorkFlowSavedEventDTO to be compared - /// Boolean - public bool Equals(WorkFlowSavedEventDTO input) - { - if (input == null) - return false; - - return - ( - this.EventId == input.EventId || - (this.EventId != null && - this.EventId.Equals(input.EventId)) - ) && - ( - this.IsActive == input.IsActive || - (this.IsActive != null && - this.IsActive.Equals(input.IsActive)) - ) && - ( - this.EventPriority == input.EventPriority || - (this.EventPriority != null && - this.EventPriority.Equals(input.EventPriority)) - ) && - ( - this.WorkflowVersion == input.WorkflowVersion || - (this.WorkflowVersion != null && - this.WorkflowVersion.Equals(input.WorkflowVersion)) - ) && - ( - this.WorkflowName == input.WorkflowName || - (this.WorkflowName != null && - this.WorkflowName.Equals(input.WorkflowName)) - ) && - ( - this.WorkflowId == input.WorkflowId || - (this.WorkflowId != null && - this.WorkflowId.Equals(input.WorkflowId)) - ) && - ( - this.DiagramRevision == input.DiagramRevision || - (this.DiagramRevision != null && - this.DiagramRevision.Equals(input.DiagramRevision)) - ) && - ( - this.DiagramId == input.DiagramId || - (this.DiagramId != null && - this.DiagramId.Equals(input.DiagramId)) - ) && - ( - this.Configuration == input.Configuration || - (this.Configuration != null && - this.Configuration.Equals(input.Configuration)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.EventId != null) - hashCode = hashCode * 59 + this.EventId.GetHashCode(); - if (this.IsActive != null) - hashCode = hashCode * 59 + this.IsActive.GetHashCode(); - if (this.EventPriority != null) - hashCode = hashCode * 59 + this.EventPriority.GetHashCode(); - if (this.WorkflowVersion != null) - hashCode = hashCode * 59 + this.WorkflowVersion.GetHashCode(); - if (this.WorkflowName != null) - hashCode = hashCode * 59 + this.WorkflowName.GetHashCode(); - if (this.WorkflowId != null) - hashCode = hashCode * 59 + this.WorkflowId.GetHashCode(); - if (this.DiagramRevision != null) - hashCode = hashCode * 59 + this.DiagramRevision.GetHashCode(); - if (this.DiagramId != null) - hashCode = hashCode * 59 + this.DiagramId.GetHashCode(); - if (this.Configuration != null) - hashCode = hashCode * 59 + this.Configuration.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/WorkflowDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/WorkflowDTO.cs deleted file mode 100644 index 3d526ea..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/WorkflowDTO.cs +++ /dev/null @@ -1,346 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of workflow item - /// - [DataContract] - public partial class WorkflowDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identiifer. - /// Detail. - /// Name. - /// Description. - /// Possible values: 0: Deleted 1: Online 2: InEdit 3: Approving . - /// Organization chart Identifier. - /// Business unit Code. - /// Color code. - /// Revision Number. - /// Parent Identifier. - /// Date of Approval. - /// Creation Date. - /// Last Edit Date. - /// Reason for the Revision. - public WorkflowDTO(int? id = default(int?), string detail = default(string), string name = default(string), string description = default(string), int? state = default(int?), int? organizationChart = default(int?), string businessUnit = default(string), int? color = default(int?), int? revision = default(int?), int? workflowParentId = default(int?), DateTime? approvalDate = default(DateTime?), DateTime? creationDate = default(DateTime?), DateTime? editDate = default(DateTime?), string reason = default(string)) - { - this.Id = id; - this.Detail = detail; - this.Name = name; - this.Description = description; - this.State = state; - this.OrganizationChart = organizationChart; - this.BusinessUnit = businessUnit; - this.Color = color; - this.Revision = revision; - this.WorkflowParentId = workflowParentId; - this.ApprovalDate = approvalDate; - this.CreationDate = creationDate; - this.EditDate = editDate; - this.Reason = reason; - } - - /// - /// Identiifer - /// - /// Identiifer - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Detail - /// - /// Detail - [DataMember(Name="detail", EmitDefaultValue=false)] - public string Detail { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 0: Deleted 1: Online 2: InEdit 3: Approving - /// - /// Possible values: 0: Deleted 1: Online 2: InEdit 3: Approving - [DataMember(Name="state", EmitDefaultValue=false)] - public int? State { get; set; } - - /// - /// Organization chart Identifier - /// - /// Organization chart Identifier - [DataMember(Name="organizationChart", EmitDefaultValue=false)] - public int? OrganizationChart { get; set; } - - /// - /// Business unit Code - /// - /// Business unit Code - [DataMember(Name="businessUnit", EmitDefaultValue=false)] - public string BusinessUnit { get; set; } - - /// - /// Color code - /// - /// Color code - [DataMember(Name="color", EmitDefaultValue=false)] - public int? Color { get; set; } - - /// - /// Revision Number - /// - /// Revision Number - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Parent Identifier - /// - /// Parent Identifier - [DataMember(Name="workflowParentId", EmitDefaultValue=false)] - public int? WorkflowParentId { get; set; } - - /// - /// Date of Approval - /// - /// Date of Approval - [DataMember(Name="approvalDate", EmitDefaultValue=false)] - public DateTime? ApprovalDate { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Last Edit Date - /// - /// Last Edit Date - [DataMember(Name="editDate", EmitDefaultValue=false)] - public DateTime? EditDate { get; set; } - - /// - /// Reason for the Revision - /// - /// Reason for the Revision - [DataMember(Name="reason", EmitDefaultValue=false)] - public string Reason { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class WorkflowDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Detail: ").Append(Detail).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" OrganizationChart: ").Append(OrganizationChart).Append("\n"); - sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n"); - sb.Append(" Color: ").Append(Color).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" WorkflowParentId: ").Append(WorkflowParentId).Append("\n"); - sb.Append(" ApprovalDate: ").Append(ApprovalDate).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" EditDate: ").Append(EditDate).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as WorkflowDTO); - } - - /// - /// Returns true if WorkflowDTO instances are equal - /// - /// Instance of WorkflowDTO to be compared - /// Boolean - public bool Equals(WorkflowDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Detail == input.Detail || - (this.Detail != null && - this.Detail.Equals(input.Detail)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && - ( - this.OrganizationChart == input.OrganizationChart || - (this.OrganizationChart != null && - this.OrganizationChart.Equals(input.OrganizationChart)) - ) && - ( - this.BusinessUnit == input.BusinessUnit || - (this.BusinessUnit != null && - this.BusinessUnit.Equals(input.BusinessUnit)) - ) && - ( - this.Color == input.Color || - (this.Color != null && - this.Color.Equals(input.Color)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.WorkflowParentId == input.WorkflowParentId || - (this.WorkflowParentId != null && - this.WorkflowParentId.Equals(input.WorkflowParentId)) - ) && - ( - this.ApprovalDate == input.ApprovalDate || - (this.ApprovalDate != null && - this.ApprovalDate.Equals(input.ApprovalDate)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.EditDate == input.EditDate || - (this.EditDate != null && - this.EditDate.Equals(input.EditDate)) - ) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Detail != null) - hashCode = hashCode * 59 + this.Detail.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.OrganizationChart != null) - hashCode = hashCode * 59 + this.OrganizationChart.GetHashCode(); - if (this.BusinessUnit != null) - hashCode = hashCode * 59 + this.BusinessUnit.GetHashCode(); - if (this.Color != null) - hashCode = hashCode * 59 + this.Color.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.WorkflowParentId != null) - hashCode = hashCode * 59 + this.WorkflowParentId.GetHashCode(); - if (this.ApprovalDate != null) - hashCode = hashCode * 59 + this.ApprovalDate.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.EditDate != null) - hashCode = hashCode * 59 + this.EditDate.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/WorkflowEventAbstractConfiguration.cs b/ACUtils.AXRepository/ArxivarNext/Model/WorkflowEventAbstractConfiguration.cs deleted file mode 100644 index 77272a2..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/WorkflowEventAbstractConfiguration.cs +++ /dev/null @@ -1,124 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// WorkflowEventAbstractConfiguration - /// - [DataContract] - public partial class WorkflowEventAbstractConfiguration : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// className. - public WorkflowEventAbstractConfiguration(string className = default(string)) - { - this.ClassName = className; - } - - /// - /// Gets or Sets ClassName - /// - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class WorkflowEventAbstractConfiguration {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as WorkflowEventAbstractConfiguration); - } - - /// - /// Returns true if WorkflowEventAbstractConfiguration instances are equal - /// - /// Instance of WorkflowEventAbstractConfiguration to be compared - /// Boolean - public bool Equals(WorkflowEventAbstractConfiguration input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/WorkflowExtraGrantDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/WorkflowExtraGrantDTO.cs deleted file mode 100644 index ced8658..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/WorkflowExtraGrantDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Workflow Extra grante - /// - [DataContract] - public partial class WorkflowExtraGrantDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Possible values: 0: V1 1: V2 . - /// Workflow identifier (V1). - /// Diagram identifier (V2). - /// User identifier. - /// Software name. - /// Possible values: 0: Generic 1: ArxivarServer 2: ArxivarOcr 3: ArxivarFax 4: ArxivarBarcode 5: ArxivarSpoolRecPro 6: ArxivarSpoolPdf 7: ArxivarSpoolConsole 8: ArxivarWeb 9: ArxivarPmArchiviazione 10: ArxivarPmRubrica 11: ArxivarPmUsersAndGroups 12: ArxivarPmAllegati 13: ArxivarUnitTest 14: ArxivarStartWorkflow 15: ArxivarMailer 16: ArxivarArxService 17: ArxivarPostalizzatore 18: ArxivarSigner 19: ArxivarSdk 20: SAPR3 21: ArxivarThumbnail 22: ArxivarSharedDocument 23: ArxivarDownloaderDocument 24: ArxivarClient 25: ArxivarAWP 26: ArxivarPmOrganizationChart 27: ArxivarMobile 28: Credemtel 29: ArxivarRelationService 30: ArxivarPmLogonProviderAssoc 31: ArxivarMassiveUpdates 32: ArxivarMobileService 33: ArxivarMobileApp 34: ArxivarFasciculationService 35: ArxivarPushNotificationsService 36: ArxivarIX 37: ArxivarPmDocumentDeleting 38: ArxivarMobileOfficeSign 39: GenericWebService 40: ArxivarIndex 41: ArxDrive 42: ArxDriveExtension 43: ArxivarSmartTaskApp 44: ArxDriveMobile 45: Unimatica 46: Eni 47: ArxivarSwapOutService 48: ArxivarSuiteClient 49: ArxivarServerWcf 50: ArxAuthService 51: ArxivarSuiteServer 52: ArxivarSetup 53: ImapPlugin 54: ArxLinkClient 55: BiometricSign 56: ArxCommand 57: ArxivarPmFlatFileTextWriter 58: ArxAssistant 59: ArxLocalSign 60: ArxNode 61: ArxOutsourcer 62: ArxWorkflowCore 63: ArxivarNextMobile 64: ArxAssistantMacOs . - public WorkflowExtraGrantDTO(int? id = default(int?), int? workflowVersion = default(int?), int? workflowId = default(int?), string diagramId = default(string), int? userId = default(int?), string softwareName = default(string), int? licenseModuleId = default(int?)) - { - this.Id = id; - this.WorkflowVersion = workflowVersion; - this.WorkflowId = workflowId; - this.DiagramId = diagramId; - this.UserId = userId; - this.SoftwareName = softwareName; - this.LicenseModuleId = licenseModuleId; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Possible values: 0: V1 1: V2 - /// - /// Possible values: 0: V1 1: V2 - [DataMember(Name="workflowVersion", EmitDefaultValue=false)] - public int? WorkflowVersion { get; set; } - - /// - /// Workflow identifier (V1) - /// - /// Workflow identifier (V1) - [DataMember(Name="workflowId", EmitDefaultValue=false)] - public int? WorkflowId { get; set; } - - /// - /// Diagram identifier (V2) - /// - /// Diagram identifier (V2) - [DataMember(Name="diagramId", EmitDefaultValue=false)] - public string DiagramId { get; set; } - - /// - /// User identifier - /// - /// User identifier - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Software name - /// - /// Software name - [DataMember(Name="softwareName", EmitDefaultValue=false)] - public string SoftwareName { get; set; } - - /// - /// Possible values: 0: Generic 1: ArxivarServer 2: ArxivarOcr 3: ArxivarFax 4: ArxivarBarcode 5: ArxivarSpoolRecPro 6: ArxivarSpoolPdf 7: ArxivarSpoolConsole 8: ArxivarWeb 9: ArxivarPmArchiviazione 10: ArxivarPmRubrica 11: ArxivarPmUsersAndGroups 12: ArxivarPmAllegati 13: ArxivarUnitTest 14: ArxivarStartWorkflow 15: ArxivarMailer 16: ArxivarArxService 17: ArxivarPostalizzatore 18: ArxivarSigner 19: ArxivarSdk 20: SAPR3 21: ArxivarThumbnail 22: ArxivarSharedDocument 23: ArxivarDownloaderDocument 24: ArxivarClient 25: ArxivarAWP 26: ArxivarPmOrganizationChart 27: ArxivarMobile 28: Credemtel 29: ArxivarRelationService 30: ArxivarPmLogonProviderAssoc 31: ArxivarMassiveUpdates 32: ArxivarMobileService 33: ArxivarMobileApp 34: ArxivarFasciculationService 35: ArxivarPushNotificationsService 36: ArxivarIX 37: ArxivarPmDocumentDeleting 38: ArxivarMobileOfficeSign 39: GenericWebService 40: ArxivarIndex 41: ArxDrive 42: ArxDriveExtension 43: ArxivarSmartTaskApp 44: ArxDriveMobile 45: Unimatica 46: Eni 47: ArxivarSwapOutService 48: ArxivarSuiteClient 49: ArxivarServerWcf 50: ArxAuthService 51: ArxivarSuiteServer 52: ArxivarSetup 53: ImapPlugin 54: ArxLinkClient 55: BiometricSign 56: ArxCommand 57: ArxivarPmFlatFileTextWriter 58: ArxAssistant 59: ArxLocalSign 60: ArxNode 61: ArxOutsourcer 62: ArxWorkflowCore 63: ArxivarNextMobile 64: ArxAssistantMacOs - /// - /// Possible values: 0: Generic 1: ArxivarServer 2: ArxivarOcr 3: ArxivarFax 4: ArxivarBarcode 5: ArxivarSpoolRecPro 6: ArxivarSpoolPdf 7: ArxivarSpoolConsole 8: ArxivarWeb 9: ArxivarPmArchiviazione 10: ArxivarPmRubrica 11: ArxivarPmUsersAndGroups 12: ArxivarPmAllegati 13: ArxivarUnitTest 14: ArxivarStartWorkflow 15: ArxivarMailer 16: ArxivarArxService 17: ArxivarPostalizzatore 18: ArxivarSigner 19: ArxivarSdk 20: SAPR3 21: ArxivarThumbnail 22: ArxivarSharedDocument 23: ArxivarDownloaderDocument 24: ArxivarClient 25: ArxivarAWP 26: ArxivarPmOrganizationChart 27: ArxivarMobile 28: Credemtel 29: ArxivarRelationService 30: ArxivarPmLogonProviderAssoc 31: ArxivarMassiveUpdates 32: ArxivarMobileService 33: ArxivarMobileApp 34: ArxivarFasciculationService 35: ArxivarPushNotificationsService 36: ArxivarIX 37: ArxivarPmDocumentDeleting 38: ArxivarMobileOfficeSign 39: GenericWebService 40: ArxivarIndex 41: ArxDrive 42: ArxDriveExtension 43: ArxivarSmartTaskApp 44: ArxDriveMobile 45: Unimatica 46: Eni 47: ArxivarSwapOutService 48: ArxivarSuiteClient 49: ArxivarServerWcf 50: ArxAuthService 51: ArxivarSuiteServer 52: ArxivarSetup 53: ImapPlugin 54: ArxLinkClient 55: BiometricSign 56: ArxCommand 57: ArxivarPmFlatFileTextWriter 58: ArxAssistant 59: ArxLocalSign 60: ArxNode 61: ArxOutsourcer 62: ArxWorkflowCore 63: ArxivarNextMobile 64: ArxAssistantMacOs - [DataMember(Name="licenseModuleId", EmitDefaultValue=false)] - public int? LicenseModuleId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class WorkflowExtraGrantDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" WorkflowVersion: ").Append(WorkflowVersion).Append("\n"); - sb.Append(" WorkflowId: ").Append(WorkflowId).Append("\n"); - sb.Append(" DiagramId: ").Append(DiagramId).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" SoftwareName: ").Append(SoftwareName).Append("\n"); - sb.Append(" LicenseModuleId: ").Append(LicenseModuleId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as WorkflowExtraGrantDTO); - } - - /// - /// Returns true if WorkflowExtraGrantDTO instances are equal - /// - /// Instance of WorkflowExtraGrantDTO to be compared - /// Boolean - public bool Equals(WorkflowExtraGrantDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.WorkflowVersion == input.WorkflowVersion || - (this.WorkflowVersion != null && - this.WorkflowVersion.Equals(input.WorkflowVersion)) - ) && - ( - this.WorkflowId == input.WorkflowId || - (this.WorkflowId != null && - this.WorkflowId.Equals(input.WorkflowId)) - ) && - ( - this.DiagramId == input.DiagramId || - (this.DiagramId != null && - this.DiagramId.Equals(input.DiagramId)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.SoftwareName == input.SoftwareName || - (this.SoftwareName != null && - this.SoftwareName.Equals(input.SoftwareName)) - ) && - ( - this.LicenseModuleId == input.LicenseModuleId || - (this.LicenseModuleId != null && - this.LicenseModuleId.Equals(input.LicenseModuleId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.WorkflowVersion != null) - hashCode = hashCode * 59 + this.WorkflowVersion.GetHashCode(); - if (this.WorkflowId != null) - hashCode = hashCode * 59 + this.WorkflowId.GetHashCode(); - if (this.DiagramId != null) - hashCode = hashCode * 59 + this.DiagramId.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.SoftwareName != null) - hashCode = hashCode * 59 + this.SoftwareName.GetHashCode(); - if (this.LicenseModuleId != null) - hashCode = hashCode * 59 + this.LicenseModuleId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/WorkflowInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/WorkflowInfoDTO.cs deleted file mode 100644 index 0336b57..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/WorkflowInfoDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// Class of workflow information - /// - [DataContract] - public partial class WorkflowInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// Description. - /// Possible values: 1: In_Corso 2: Terminato . - /// Has Notes. - /// Has Attachments. - /// Start Date. - /// End Date. - /// Expiration Date. - /// User Desciption. - public WorkflowInfoDTO(int? id = default(int?), string name = default(string), string description = default(string), int? state = default(int?), bool? hasNote = default(bool?), bool? hasAttachement = default(bool?), DateTime? startDate = default(DateTime?), DateTime? endDate = default(DateTime?), DateTime? expireDate = default(DateTime?), string userCompleteName = default(string)) - { - this.Id = id; - this.Name = name; - this.Description = description; - this.State = state; - this.HasNote = hasNote; - this.HasAttachement = hasAttachement; - this.StartDate = startDate; - this.EndDate = endDate; - this.ExpireDate = expireDate; - this.UserCompleteName = userCompleteName; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 1: In_Corso 2: Terminato - /// - /// Possible values: 1: In_Corso 2: Terminato - [DataMember(Name="state", EmitDefaultValue=false)] - public int? State { get; set; } - - /// - /// Has Notes - /// - /// Has Notes - [DataMember(Name="hasNote", EmitDefaultValue=false)] - public bool? HasNote { get; set; } - - /// - /// Has Attachments - /// - /// Has Attachments - [DataMember(Name="hasAttachement", EmitDefaultValue=false)] - public bool? HasAttachement { get; set; } - - /// - /// Start Date - /// - /// Start Date - [DataMember(Name="startDate", EmitDefaultValue=false)] - public DateTime? StartDate { get; set; } - - /// - /// End Date - /// - /// End Date - [DataMember(Name="endDate", EmitDefaultValue=false)] - public DateTime? EndDate { get; set; } - - /// - /// Expiration Date - /// - /// Expiration Date - [DataMember(Name="expireDate", EmitDefaultValue=false)] - public DateTime? ExpireDate { get; set; } - - /// - /// User Desciption - /// - /// User Desciption - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class WorkflowInfoDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" HasNote: ").Append(HasNote).Append("\n"); - sb.Append(" HasAttachement: ").Append(HasAttachement).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" ExpireDate: ").Append(ExpireDate).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as WorkflowInfoDTO); - } - - /// - /// Returns true if WorkflowInfoDTO instances are equal - /// - /// Instance of WorkflowInfoDTO to be compared - /// Boolean - public bool Equals(WorkflowInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && - ( - this.HasNote == input.HasNote || - (this.HasNote != null && - this.HasNote.Equals(input.HasNote)) - ) && - ( - this.HasAttachement == input.HasAttachement || - (this.HasAttachement != null && - this.HasAttachement.Equals(input.HasAttachement)) - ) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && - ( - this.ExpireDate == input.ExpireDate || - (this.ExpireDate != null && - this.ExpireDate.Equals(input.ExpireDate)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.HasNote != null) - hashCode = hashCode * 59 + this.HasNote.GetHashCode(); - if (this.HasAttachement != null) - hashCode = hashCode * 59 + this.HasAttachement.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.ExpireDate != null) - hashCode = hashCode * 59 + this.ExpireDate.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/WorkflowSavedEventStatusDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/WorkflowSavedEventStatusDTO.cs deleted file mode 100644 index 7b53a94..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/WorkflowSavedEventStatusDTO.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// WorkflowSavedEventStatusDTO - /// - [DataContract] - public partial class WorkflowSavedEventStatusDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// edit. - /// reason. - public WorkflowSavedEventStatusDTO(bool? edit = default(bool?), string reason = default(string)) - { - this.Edit = edit; - this.Reason = reason; - } - - /// - /// Gets or Sets Edit - /// - [DataMember(Name="edit", EmitDefaultValue=false)] - public bool? Edit { get; set; } - - /// - /// Gets or Sets Reason - /// - [DataMember(Name="reason", EmitDefaultValue=false)] - public string Reason { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class WorkflowSavedEventStatusDTO {\n"); - sb.Append(" Edit: ").Append(Edit).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as WorkflowSavedEventStatusDTO); - } - - /// - /// Returns true if WorkflowSavedEventStatusDTO instances are equal - /// - /// Instance of WorkflowSavedEventStatusDTO to be compared - /// Boolean - public bool Equals(WorkflowSavedEventStatusDTO input) - { - if (input == null) - return false; - - return - ( - this.Edit == input.Edit || - (this.Edit != null && - this.Edit.Equals(input.Edit)) - ) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Edit != null) - hashCode = hashCode * 59 + this.Edit.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNext/Model/WorkflowVariableInfoDTO.cs b/ACUtils.AXRepository/ArxivarNext/Model/WorkflowVariableInfoDTO.cs deleted file mode 100644 index bbfe915..0000000 --- a/ACUtils.AXRepository/ArxivarNext/Model/WorkflowVariableInfoDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: data - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNext.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNext.Model -{ - /// - /// WorkflowVariableInfoDTO - /// - [DataContract] - public partial class WorkflowVariableInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identiifer. - /// Name. - /// Description. - /// Possible values: 1: String 2: Numeric 3: DateTime 4: Boolean 5: ComboBox 6: Matrix 7: TextArea 8: TableBox . - public WorkflowVariableInfoDTO(int? id = default(int?), string name = default(string), string description = default(string), int? variableType = default(int?)) - { - this.Id = id; - this.Name = name; - this.Description = description; - this.VariableType = variableType; - } - - /// - /// Identiifer - /// - /// Identiifer - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 1: String 2: Numeric 3: DateTime 4: Boolean 5: ComboBox 6: Matrix 7: TextArea 8: TableBox - /// - /// Possible values: 1: String 2: Numeric 3: DateTime 4: Boolean 5: ComboBox 6: Matrix 7: TextArea 8: TableBox - [DataMember(Name="variableType", EmitDefaultValue=false)] - public int? VariableType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class WorkflowVariableInfoDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" VariableType: ").Append(VariableType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as WorkflowVariableInfoDTO); - } - - /// - /// Returns true if WorkflowVariableInfoDTO instances are equal - /// - /// Instance of WorkflowVariableInfoDTO to be compared - /// Boolean - public bool Equals(WorkflowVariableInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.VariableType == input.VariableType || - (this.VariableType != null && - this.VariableType.Equals(input.VariableType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.VariableType != null) - hashCode = hashCode * 59 + this.VariableType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/ActiveDirectoryManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/ActiveDirectoryManagementApi.cs deleted file mode 100644 index aa0e8c4..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/ActiveDirectoryManagementApi.cs +++ /dev/null @@ -1,520 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IActiveDirectoryManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns domain list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<string> - List ActiveDirectoryManagementGetDomains (); - - /// - /// This call returns domain list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<string> - ApiResponse> ActiveDirectoryManagementGetDomainsWithHttpInfo (); - /// - /// This call returns user list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request options - /// List<ActiveDirectoryUserDTO> - List ActiveDirectoryManagementGetUsers (ActiveDirectoryUsersRequestDTO options); - - /// - /// This call returns user list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request options - /// ApiResponse of List<ActiveDirectoryUserDTO> - ApiResponse> ActiveDirectoryManagementGetUsersWithHttpInfo (ActiveDirectoryUsersRequestDTO options); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns domain list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<string> - System.Threading.Tasks.Task> ActiveDirectoryManagementGetDomainsAsync (); - - /// - /// This call returns domain list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> ActiveDirectoryManagementGetDomainsAsyncWithHttpInfo (); - /// - /// This call returns user list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request options - /// Task of List<ActiveDirectoryUserDTO> - System.Threading.Tasks.Task> ActiveDirectoryManagementGetUsersAsync (ActiveDirectoryUsersRequestDTO options); - - /// - /// This call returns user list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request options - /// Task of ApiResponse (List<ActiveDirectoryUserDTO>) - System.Threading.Tasks.Task>> ActiveDirectoryManagementGetUsersAsyncWithHttpInfo (ActiveDirectoryUsersRequestDTO options); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ActiveDirectoryManagementApi : IActiveDirectoryManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ActiveDirectoryManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ActiveDirectoryManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns domain list - /// - /// Thrown when fails to make API call - /// List<string> - public List ActiveDirectoryManagementGetDomains () - { - ApiResponse> localVarResponse = ActiveDirectoryManagementGetDomainsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns domain list - /// - /// Thrown when fails to make API call - /// ApiResponse of List<string> - public ApiResponse< List > ActiveDirectoryManagementGetDomainsWithHttpInfo () - { - - var localVarPath = "/api/management/ActiveDirectory/Domains"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ActiveDirectoryManagementGetDomains", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns domain list - /// - /// Thrown when fails to make API call - /// Task of List<string> - public async System.Threading.Tasks.Task> ActiveDirectoryManagementGetDomainsAsync () - { - ApiResponse> localVarResponse = await ActiveDirectoryManagementGetDomainsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns domain list - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> ActiveDirectoryManagementGetDomainsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/ActiveDirectory/Domains"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ActiveDirectoryManagementGetDomains", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns user list - /// - /// Thrown when fails to make API call - /// Request options - /// List<ActiveDirectoryUserDTO> - public List ActiveDirectoryManagementGetUsers (ActiveDirectoryUsersRequestDTO options) - { - ApiResponse> localVarResponse = ActiveDirectoryManagementGetUsersWithHttpInfo(options); - return localVarResponse.Data; - } - - /// - /// This call returns user list - /// - /// Thrown when fails to make API call - /// Request options - /// ApiResponse of List<ActiveDirectoryUserDTO> - public ApiResponse< List > ActiveDirectoryManagementGetUsersWithHttpInfo (ActiveDirectoryUsersRequestDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling ActiveDirectoryManagementApi->ActiveDirectoryManagementGetUsers"); - - var localVarPath = "/api/management/ActiveDirectory/Users"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ActiveDirectoryManagementGetUsers", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns user list - /// - /// Thrown when fails to make API call - /// Request options - /// Task of List<ActiveDirectoryUserDTO> - public async System.Threading.Tasks.Task> ActiveDirectoryManagementGetUsersAsync (ActiveDirectoryUsersRequestDTO options) - { - ApiResponse> localVarResponse = await ActiveDirectoryManagementGetUsersAsyncWithHttpInfo(options); - return localVarResponse.Data; - - } - - /// - /// This call returns user list - /// - /// Thrown when fails to make API call - /// Request options - /// Task of ApiResponse (List<ActiveDirectoryUserDTO>) - public async System.Threading.Tasks.Task>> ActiveDirectoryManagementGetUsersAsyncWithHttpInfo (ActiveDirectoryUsersRequestDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling ActiveDirectoryManagementApi->ActiveDirectoryManagementGetUsers"); - - var localVarPath = "/api/management/ActiveDirectory/Users"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ActiveDirectoryManagementGetUsers", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/AdditionalFieldsManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/AdditionalFieldsManagementApi.cs deleted file mode 100644 index bb25e73..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/AdditionalFieldsManagementApi.cs +++ /dev/null @@ -1,3583 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IAdditionalFieldsManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This method clone additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field options for clone operation - /// AdditionalFieldManagementBaseDTO - AdditionalFieldManagementBaseDTO AdditionalFieldsManagementCloneAdditionalField (AdditionalFieldManagementCloneOptionsDTO cloneOptions); - - /// - /// This method clone additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field options for clone operation - /// ApiResponse of AdditionalFieldManagementBaseDTO - ApiResponse AdditionalFieldsManagementCloneAdditionalFieldWithHttpInfo (AdditionalFieldManagementCloneOptionsDTO cloneOptions); - /// - /// This method removes specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// - void AdditionalFieldsManagementDeleteAdditionalField (int? documentTypeId, string key); - - /// - /// This method removes specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// ApiResponse of Object(void) - ApiResponse AdditionalFieldsManagementDeleteAdditionalFieldWithHttpInfo (int? documentTypeId, string key); - /// - /// This method removes specific field group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group identifier - /// - void AdditionalFieldsManagementDeleteFieldGroup (int? id); - - /// - /// This method removes specific field group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group identifier - /// ApiResponse of Object(void) - ApiResponse AdditionalFieldsManagementDeleteFieldGroupWithHttpInfo (int? id); - /// - /// This method returns additional field by document type and key - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// AdditionalFieldManagementBaseDTO - AdditionalFieldManagementBaseDTO AdditionalFieldsManagementGetAdditionalField (int? documentTypeId, string key); - - /// - /// This method returns additional field by document type and key - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// ApiResponse of AdditionalFieldManagementBaseDTO - ApiResponse AdditionalFieldsManagementGetAdditionalFieldWithHttpInfo (int? documentTypeId, string key); - /// - /// This method gets field associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// List<AdditionalFieldManagementAssociationDTO> - List AdditionalFieldsManagementGetAdditionalFieldAssociations (int? documentTypeId, string key); - - /// - /// This method gets field associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// ApiResponse of List<AdditionalFieldManagementAssociationDTO> - ApiResponse> AdditionalFieldsManagementGetAdditionalFieldAssociationsWithHttpInfo (int? documentTypeId, string key); - /// - /// This method returns all additional fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<AdditionalFieldManagementBaseDTO> - List AdditionalFieldsManagementGetAdditionalFields (); - - /// - /// This method returns all additional fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<AdditionalFieldManagementBaseDTO> - ApiResponse> AdditionalFieldsManagementGetAdditionalFieldsWithHttpInfo (); - /// - /// This method returns all additional fields for document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// List<AdditionalFieldManagementBaseDTO> - List AdditionalFieldsManagementGetAdditionalFieldsByDocumentTypeId (int? documentTypeId); - - /// - /// This method returns all additional fields for document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ApiResponse of List<AdditionalFieldManagementBaseDTO> - ApiResponse> AdditionalFieldsManagementGetAdditionalFieldsByDocumentTypeIdWithHttpInfo (int? documentTypeId); - /// - /// This method returns all additional fields by reference id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Reference identifier - /// List<AdditionalFieldManagementBaseDTO> - List AdditionalFieldsManagementGetAdditionalFieldsByReferenceId (string referenceId); - - /// - /// This method returns all additional fields by reference id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Reference identifier - /// ApiResponse of List<AdditionalFieldManagementBaseDTO> - ApiResponse> AdditionalFieldsManagementGetAdditionalFieldsByReferenceIdWithHttpInfo (string referenceId); - /// - /// This method returns specific field group by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group identifier - /// FieldGroupDTO - FieldGroupDTO AdditionalFieldsManagementGetFieldGroup (int? id); - - /// - /// This method returns specific field group by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group identifier - /// ApiResponse of FieldGroupDTO - ApiResponse AdditionalFieldsManagementGetFieldGroupWithHttpInfo (int? id); - /// - /// This method returns all field groups - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<FieldGroupDTO> - List AdditionalFieldsManagementGetFieldGroups (); - - /// - /// This method returns all field groups - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<FieldGroupDTO> - ApiResponse> AdditionalFieldsManagementGetFieldGroupsWithHttpInfo (); - /// - /// This method creates specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// AdditionalFieldManagementBaseDTO - AdditionalFieldManagementBaseDTO AdditionalFieldsManagementInsertAdditionalField (AdditionalFieldManagementBaseDTO field = null); - - /// - /// This method creates specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of AdditionalFieldManagementBaseDTO - ApiResponse AdditionalFieldsManagementInsertAdditionalFieldWithHttpInfo (AdditionalFieldManagementBaseDTO field = null); - /// - /// This method creates specific field group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group data for insert - /// FieldGroupDTO - FieldGroupDTO AdditionalFieldsManagementInsertFieldGroup (FieldGroupDTO fieldGroup); - - /// - /// This method creates specific field group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group data for insert - /// ApiResponse of FieldGroupDTO - ApiResponse AdditionalFieldsManagementInsertFieldGroupWithHttpInfo (FieldGroupDTO fieldGroup); - /// - /// This method updates field associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Associations - /// - void AdditionalFieldsManagementSetAdditionalFieldAssociations (int? documentTypeId, string key, List associations); - - /// - /// This method updates field associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Associations - /// ApiResponse of Object(void) - ApiResponse AdditionalFieldsManagementSetAdditionalFieldAssociationsWithHttpInfo (int? documentTypeId, string key, List associations); - /// - /// This method updates field references - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Reference list for specified field - /// - void AdditionalFieldsManagementSetAdditionalFieldReferences (int? documentTypeId, string key, List references); - - /// - /// This method updates field references - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Reference list for specified field - /// ApiResponse of Object(void) - ApiResponse AdditionalFieldsManagementSetAdditionalFieldReferencesWithHttpInfo (int? documentTypeId, string key, List references); - /// - /// This method updates field groups order - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group sort options - /// - void AdditionalFieldsManagementSortFieldGroups (List options); - - /// - /// This method updates field groups order - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group sort options - /// ApiResponse of Object(void) - ApiResponse AdditionalFieldsManagementSortFieldGroupsWithHttpInfo (List options); - /// - /// This method updates specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// AdditionalFieldManagementBaseDTO - AdditionalFieldManagementBaseDTO AdditionalFieldsManagementUpdateAdditionalField (AdditionalFieldManagementBaseDTO field = null); - - /// - /// This method updates specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of AdditionalFieldManagementBaseDTO - ApiResponse AdditionalFieldsManagementUpdateAdditionalFieldWithHttpInfo (AdditionalFieldManagementBaseDTO field = null); - /// - /// This method updates specific field group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Field group data for update - /// FieldGroupDTO - FieldGroupDTO AdditionalFieldsManagementUpdateFieldGroup (int? id, FieldGroupDTO fieldGroup); - - /// - /// This method updates specific field group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Field group data for update - /// ApiResponse of FieldGroupDTO - ApiResponse AdditionalFieldsManagementUpdateFieldGroupWithHttpInfo (int? id, FieldGroupDTO fieldGroup); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This method clone additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field options for clone operation - /// Task of AdditionalFieldManagementBaseDTO - System.Threading.Tasks.Task AdditionalFieldsManagementCloneAdditionalFieldAsync (AdditionalFieldManagementCloneOptionsDTO cloneOptions); - - /// - /// This method clone additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Additional field options for clone operation - /// Task of ApiResponse (AdditionalFieldManagementBaseDTO) - System.Threading.Tasks.Task> AdditionalFieldsManagementCloneAdditionalFieldAsyncWithHttpInfo (AdditionalFieldManagementCloneOptionsDTO cloneOptions); - /// - /// This method removes specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Task of void - System.Threading.Tasks.Task AdditionalFieldsManagementDeleteAdditionalFieldAsync (int? documentTypeId, string key); - - /// - /// This method removes specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Task of ApiResponse - System.Threading.Tasks.Task> AdditionalFieldsManagementDeleteAdditionalFieldAsyncWithHttpInfo (int? documentTypeId, string key); - /// - /// This method removes specific field group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Task of void - System.Threading.Tasks.Task AdditionalFieldsManagementDeleteFieldGroupAsync (int? id); - - /// - /// This method removes specific field group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> AdditionalFieldsManagementDeleteFieldGroupAsyncWithHttpInfo (int? id); - /// - /// This method returns additional field by document type and key - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Task of AdditionalFieldManagementBaseDTO - System.Threading.Tasks.Task AdditionalFieldsManagementGetAdditionalFieldAsync (int? documentTypeId, string key); - - /// - /// This method returns additional field by document type and key - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Task of ApiResponse (AdditionalFieldManagementBaseDTO) - System.Threading.Tasks.Task> AdditionalFieldsManagementGetAdditionalFieldAsyncWithHttpInfo (int? documentTypeId, string key); - /// - /// This method gets field associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Task of List<AdditionalFieldManagementAssociationDTO> - System.Threading.Tasks.Task> AdditionalFieldsManagementGetAdditionalFieldAssociationsAsync (int? documentTypeId, string key); - - /// - /// This method gets field associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Task of ApiResponse (List<AdditionalFieldManagementAssociationDTO>) - System.Threading.Tasks.Task>> AdditionalFieldsManagementGetAdditionalFieldAssociationsAsyncWithHttpInfo (int? documentTypeId, string key); - /// - /// This method returns all additional fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<AdditionalFieldManagementBaseDTO> - System.Threading.Tasks.Task> AdditionalFieldsManagementGetAdditionalFieldsAsync (); - - /// - /// This method returns all additional fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<AdditionalFieldManagementBaseDTO>) - System.Threading.Tasks.Task>> AdditionalFieldsManagementGetAdditionalFieldsAsyncWithHttpInfo (); - /// - /// This method returns all additional fields for document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of List<AdditionalFieldManagementBaseDTO> - System.Threading.Tasks.Task> AdditionalFieldsManagementGetAdditionalFieldsByDocumentTypeIdAsync (int? documentTypeId); - - /// - /// This method returns all additional fields for document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ApiResponse (List<AdditionalFieldManagementBaseDTO>) - System.Threading.Tasks.Task>> AdditionalFieldsManagementGetAdditionalFieldsByDocumentTypeIdAsyncWithHttpInfo (int? documentTypeId); - /// - /// This method returns all additional fields by reference id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Reference identifier - /// Task of List<AdditionalFieldManagementBaseDTO> - System.Threading.Tasks.Task> AdditionalFieldsManagementGetAdditionalFieldsByReferenceIdAsync (string referenceId); - - /// - /// This method returns all additional fields by reference id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Reference identifier - /// Task of ApiResponse (List<AdditionalFieldManagementBaseDTO>) - System.Threading.Tasks.Task>> AdditionalFieldsManagementGetAdditionalFieldsByReferenceIdAsyncWithHttpInfo (string referenceId); - /// - /// This method returns specific field group by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Task of FieldGroupDTO - System.Threading.Tasks.Task AdditionalFieldsManagementGetFieldGroupAsync (int? id); - - /// - /// This method returns specific field group by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Task of ApiResponse (FieldGroupDTO) - System.Threading.Tasks.Task> AdditionalFieldsManagementGetFieldGroupAsyncWithHttpInfo (int? id); - /// - /// This method returns all field groups - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<FieldGroupDTO> - System.Threading.Tasks.Task> AdditionalFieldsManagementGetFieldGroupsAsync (); - - /// - /// This method returns all field groups - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<FieldGroupDTO>) - System.Threading.Tasks.Task>> AdditionalFieldsManagementGetFieldGroupsAsyncWithHttpInfo (); - /// - /// This method creates specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of AdditionalFieldManagementBaseDTO - System.Threading.Tasks.Task AdditionalFieldsManagementInsertAdditionalFieldAsync (AdditionalFieldManagementBaseDTO field = null); - - /// - /// This method creates specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (AdditionalFieldManagementBaseDTO) - System.Threading.Tasks.Task> AdditionalFieldsManagementInsertAdditionalFieldAsyncWithHttpInfo (AdditionalFieldManagementBaseDTO field = null); - /// - /// This method creates specific field group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group data for insert - /// Task of FieldGroupDTO - System.Threading.Tasks.Task AdditionalFieldsManagementInsertFieldGroupAsync (FieldGroupDTO fieldGroup); - - /// - /// This method creates specific field group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group data for insert - /// Task of ApiResponse (FieldGroupDTO) - System.Threading.Tasks.Task> AdditionalFieldsManagementInsertFieldGroupAsyncWithHttpInfo (FieldGroupDTO fieldGroup); - /// - /// This method updates field associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Associations - /// Task of void - System.Threading.Tasks.Task AdditionalFieldsManagementSetAdditionalFieldAssociationsAsync (int? documentTypeId, string key, List associations); - - /// - /// This method updates field associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Associations - /// Task of ApiResponse - System.Threading.Tasks.Task> AdditionalFieldsManagementSetAdditionalFieldAssociationsAsyncWithHttpInfo (int? documentTypeId, string key, List associations); - /// - /// This method updates field references - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Reference list for specified field - /// Task of void - System.Threading.Tasks.Task AdditionalFieldsManagementSetAdditionalFieldReferencesAsync (int? documentTypeId, string key, List references); - - /// - /// This method updates field references - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Reference list for specified field - /// Task of ApiResponse - System.Threading.Tasks.Task> AdditionalFieldsManagementSetAdditionalFieldReferencesAsyncWithHttpInfo (int? documentTypeId, string key, List references); - /// - /// This method updates field groups order - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group sort options - /// Task of void - System.Threading.Tasks.Task AdditionalFieldsManagementSortFieldGroupsAsync (List options); - - /// - /// This method updates field groups order - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group sort options - /// Task of ApiResponse - System.Threading.Tasks.Task> AdditionalFieldsManagementSortFieldGroupsAsyncWithHttpInfo (List options); - /// - /// This method updates specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of AdditionalFieldManagementBaseDTO - System.Threading.Tasks.Task AdditionalFieldsManagementUpdateAdditionalFieldAsync (AdditionalFieldManagementBaseDTO field = null); - - /// - /// This method updates specific additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (AdditionalFieldManagementBaseDTO) - System.Threading.Tasks.Task> AdditionalFieldsManagementUpdateAdditionalFieldAsyncWithHttpInfo (AdditionalFieldManagementBaseDTO field = null); - /// - /// This method updates specific field group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Field group data for update - /// Task of FieldGroupDTO - System.Threading.Tasks.Task AdditionalFieldsManagementUpdateFieldGroupAsync (int? id, FieldGroupDTO fieldGroup); - - /// - /// This method updates specific field group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Field group data for update - /// Task of ApiResponse (FieldGroupDTO) - System.Threading.Tasks.Task> AdditionalFieldsManagementUpdateFieldGroupAsyncWithHttpInfo (int? id, FieldGroupDTO fieldGroup); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AdditionalFieldsManagementApi : IAdditionalFieldsManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public AdditionalFieldsManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public AdditionalFieldsManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This method clone additional field - /// - /// Thrown when fails to make API call - /// Additional field options for clone operation - /// AdditionalFieldManagementBaseDTO - public AdditionalFieldManagementBaseDTO AdditionalFieldsManagementCloneAdditionalField (AdditionalFieldManagementCloneOptionsDTO cloneOptions) - { - ApiResponse localVarResponse = AdditionalFieldsManagementCloneAdditionalFieldWithHttpInfo(cloneOptions); - return localVarResponse.Data; - } - - /// - /// This method clone additional field - /// - /// Thrown when fails to make API call - /// Additional field options for clone operation - /// ApiResponse of AdditionalFieldManagementBaseDTO - public ApiResponse< AdditionalFieldManagementBaseDTO > AdditionalFieldsManagementCloneAdditionalFieldWithHttpInfo (AdditionalFieldManagementCloneOptionsDTO cloneOptions) - { - // verify the required parameter 'cloneOptions' is set - if (cloneOptions == null) - throw new ApiException(400, "Missing required parameter 'cloneOptions' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementCloneAdditionalField"); - - var localVarPath = "/api/management/AdditionalFields/Fields/Clone"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (cloneOptions != null && cloneOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(cloneOptions); // http body (model) parameter - } - else - { - localVarPostBody = cloneOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementCloneAdditionalField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AdditionalFieldManagementBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AdditionalFieldManagementBaseDTO))); - } - - /// - /// This method clone additional field - /// - /// Thrown when fails to make API call - /// Additional field options for clone operation - /// Task of AdditionalFieldManagementBaseDTO - public async System.Threading.Tasks.Task AdditionalFieldsManagementCloneAdditionalFieldAsync (AdditionalFieldManagementCloneOptionsDTO cloneOptions) - { - ApiResponse localVarResponse = await AdditionalFieldsManagementCloneAdditionalFieldAsyncWithHttpInfo(cloneOptions); - return localVarResponse.Data; - - } - - /// - /// This method clone additional field - /// - /// Thrown when fails to make API call - /// Additional field options for clone operation - /// Task of ApiResponse (AdditionalFieldManagementBaseDTO) - public async System.Threading.Tasks.Task> AdditionalFieldsManagementCloneAdditionalFieldAsyncWithHttpInfo (AdditionalFieldManagementCloneOptionsDTO cloneOptions) - { - // verify the required parameter 'cloneOptions' is set - if (cloneOptions == null) - throw new ApiException(400, "Missing required parameter 'cloneOptions' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementCloneAdditionalField"); - - var localVarPath = "/api/management/AdditionalFields/Fields/Clone"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (cloneOptions != null && cloneOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(cloneOptions); // http body (model) parameter - } - else - { - localVarPostBody = cloneOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementCloneAdditionalField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AdditionalFieldManagementBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AdditionalFieldManagementBaseDTO))); - } - - /// - /// This method removes specific additional field - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// - public void AdditionalFieldsManagementDeleteAdditionalField (int? documentTypeId, string key) - { - AdditionalFieldsManagementDeleteAdditionalFieldWithHttpInfo(documentTypeId, key); - } - - /// - /// This method removes specific additional field - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// ApiResponse of Object(void) - public ApiResponse AdditionalFieldsManagementDeleteAdditionalFieldWithHttpInfo (int? documentTypeId, string key) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementDeleteAdditionalField"); - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementDeleteAdditionalField"); - - var localVarPath = "/api/management/AdditionalFields/Field/{documentTypeId}/{key}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementDeleteAdditionalField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method removes specific additional field - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Task of void - public async System.Threading.Tasks.Task AdditionalFieldsManagementDeleteAdditionalFieldAsync (int? documentTypeId, string key) - { - await AdditionalFieldsManagementDeleteAdditionalFieldAsyncWithHttpInfo(documentTypeId, key); - - } - - /// - /// This method removes specific additional field - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AdditionalFieldsManagementDeleteAdditionalFieldAsyncWithHttpInfo (int? documentTypeId, string key) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementDeleteAdditionalField"); - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementDeleteAdditionalField"); - - var localVarPath = "/api/management/AdditionalFields/Field/{documentTypeId}/{key}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementDeleteAdditionalField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method removes specific field group - /// - /// Thrown when fails to make API call - /// Field group identifier - /// - public void AdditionalFieldsManagementDeleteFieldGroup (int? id) - { - AdditionalFieldsManagementDeleteFieldGroupWithHttpInfo(id); - } - - /// - /// This method removes specific field group - /// - /// Thrown when fails to make API call - /// Field group identifier - /// ApiResponse of Object(void) - public ApiResponse AdditionalFieldsManagementDeleteFieldGroupWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementDeleteFieldGroup"); - - var localVarPath = "/api/management/AdditionalFields/Groups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementDeleteFieldGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method removes specific field group - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Task of void - public async System.Threading.Tasks.Task AdditionalFieldsManagementDeleteFieldGroupAsync (int? id) - { - await AdditionalFieldsManagementDeleteFieldGroupAsyncWithHttpInfo(id); - - } - - /// - /// This method removes specific field group - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AdditionalFieldsManagementDeleteFieldGroupAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementDeleteFieldGroup"); - - var localVarPath = "/api/management/AdditionalFields/Groups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementDeleteFieldGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method returns additional field by document type and key - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// AdditionalFieldManagementBaseDTO - public AdditionalFieldManagementBaseDTO AdditionalFieldsManagementGetAdditionalField (int? documentTypeId, string key) - { - ApiResponse localVarResponse = AdditionalFieldsManagementGetAdditionalFieldWithHttpInfo(documentTypeId, key); - return localVarResponse.Data; - } - - /// - /// This method returns additional field by document type and key - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// ApiResponse of AdditionalFieldManagementBaseDTO - public ApiResponse< AdditionalFieldManagementBaseDTO > AdditionalFieldsManagementGetAdditionalFieldWithHttpInfo (int? documentTypeId, string key) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementGetAdditionalField"); - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementGetAdditionalField"); - - var localVarPath = "/api/management/AdditionalFields/Field/{documentTypeId}/{key}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementGetAdditionalField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AdditionalFieldManagementBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AdditionalFieldManagementBaseDTO))); - } - - /// - /// This method returns additional field by document type and key - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Task of AdditionalFieldManagementBaseDTO - public async System.Threading.Tasks.Task AdditionalFieldsManagementGetAdditionalFieldAsync (int? documentTypeId, string key) - { - ApiResponse localVarResponse = await AdditionalFieldsManagementGetAdditionalFieldAsyncWithHttpInfo(documentTypeId, key); - return localVarResponse.Data; - - } - - /// - /// This method returns additional field by document type and key - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Task of ApiResponse (AdditionalFieldManagementBaseDTO) - public async System.Threading.Tasks.Task> AdditionalFieldsManagementGetAdditionalFieldAsyncWithHttpInfo (int? documentTypeId, string key) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementGetAdditionalField"); - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementGetAdditionalField"); - - var localVarPath = "/api/management/AdditionalFields/Field/{documentTypeId}/{key}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementGetAdditionalField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AdditionalFieldManagementBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AdditionalFieldManagementBaseDTO))); - } - - /// - /// This method gets field associations - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// List<AdditionalFieldManagementAssociationDTO> - public List AdditionalFieldsManagementGetAdditionalFieldAssociations (int? documentTypeId, string key) - { - ApiResponse> localVarResponse = AdditionalFieldsManagementGetAdditionalFieldAssociationsWithHttpInfo(documentTypeId, key); - return localVarResponse.Data; - } - - /// - /// This method gets field associations - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// ApiResponse of List<AdditionalFieldManagementAssociationDTO> - public ApiResponse< List > AdditionalFieldsManagementGetAdditionalFieldAssociationsWithHttpInfo (int? documentTypeId, string key) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementGetAdditionalFieldAssociations"); - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementGetAdditionalFieldAssociations"); - - var localVarPath = "/api/management/AdditionalFields/Fields/{documentTypeId}/{key}/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementGetAdditionalFieldAssociations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method gets field associations - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Task of List<AdditionalFieldManagementAssociationDTO> - public async System.Threading.Tasks.Task> AdditionalFieldsManagementGetAdditionalFieldAssociationsAsync (int? documentTypeId, string key) - { - ApiResponse> localVarResponse = await AdditionalFieldsManagementGetAdditionalFieldAssociationsAsyncWithHttpInfo(documentTypeId, key); - return localVarResponse.Data; - - } - - /// - /// This method gets field associations - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Task of ApiResponse (List<AdditionalFieldManagementAssociationDTO>) - public async System.Threading.Tasks.Task>> AdditionalFieldsManagementGetAdditionalFieldAssociationsAsyncWithHttpInfo (int? documentTypeId, string key) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementGetAdditionalFieldAssociations"); - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementGetAdditionalFieldAssociations"); - - var localVarPath = "/api/management/AdditionalFields/Fields/{documentTypeId}/{key}/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementGetAdditionalFieldAssociations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns all additional fields - /// - /// Thrown when fails to make API call - /// List<AdditionalFieldManagementBaseDTO> - public List AdditionalFieldsManagementGetAdditionalFields () - { - ApiResponse> localVarResponse = AdditionalFieldsManagementGetAdditionalFieldsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This method returns all additional fields - /// - /// Thrown when fails to make API call - /// ApiResponse of List<AdditionalFieldManagementBaseDTO> - public ApiResponse< List > AdditionalFieldsManagementGetAdditionalFieldsWithHttpInfo () - { - - var localVarPath = "/api/management/AdditionalFields/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementGetAdditionalFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns all additional fields - /// - /// Thrown when fails to make API call - /// Task of List<AdditionalFieldManagementBaseDTO> - public async System.Threading.Tasks.Task> AdditionalFieldsManagementGetAdditionalFieldsAsync () - { - ApiResponse> localVarResponse = await AdditionalFieldsManagementGetAdditionalFieldsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This method returns all additional fields - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<AdditionalFieldManagementBaseDTO>) - public async System.Threading.Tasks.Task>> AdditionalFieldsManagementGetAdditionalFieldsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/AdditionalFields/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementGetAdditionalFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns all additional fields for document type - /// - /// Thrown when fails to make API call - /// Document type identifier - /// List<AdditionalFieldManagementBaseDTO> - public List AdditionalFieldsManagementGetAdditionalFieldsByDocumentTypeId (int? documentTypeId) - { - ApiResponse> localVarResponse = AdditionalFieldsManagementGetAdditionalFieldsByDocumentTypeIdWithHttpInfo(documentTypeId); - return localVarResponse.Data; - } - - /// - /// This method returns all additional fields for document type - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ApiResponse of List<AdditionalFieldManagementBaseDTO> - public ApiResponse< List > AdditionalFieldsManagementGetAdditionalFieldsByDocumentTypeIdWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementGetAdditionalFieldsByDocumentTypeId"); - - var localVarPath = "/api/management/AdditionalFields/Fields/ByDocumentType/{documentTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementGetAdditionalFieldsByDocumentTypeId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns all additional fields for document type - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of List<AdditionalFieldManagementBaseDTO> - public async System.Threading.Tasks.Task> AdditionalFieldsManagementGetAdditionalFieldsByDocumentTypeIdAsync (int? documentTypeId) - { - ApiResponse> localVarResponse = await AdditionalFieldsManagementGetAdditionalFieldsByDocumentTypeIdAsyncWithHttpInfo(documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This method returns all additional fields for document type - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ApiResponse (List<AdditionalFieldManagementBaseDTO>) - public async System.Threading.Tasks.Task>> AdditionalFieldsManagementGetAdditionalFieldsByDocumentTypeIdAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementGetAdditionalFieldsByDocumentTypeId"); - - var localVarPath = "/api/management/AdditionalFields/Fields/ByDocumentType/{documentTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementGetAdditionalFieldsByDocumentTypeId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns all additional fields by reference id - /// - /// Thrown when fails to make API call - /// Reference identifier - /// List<AdditionalFieldManagementBaseDTO> - public List AdditionalFieldsManagementGetAdditionalFieldsByReferenceId (string referenceId) - { - ApiResponse> localVarResponse = AdditionalFieldsManagementGetAdditionalFieldsByReferenceIdWithHttpInfo(referenceId); - return localVarResponse.Data; - } - - /// - /// This method returns all additional fields by reference id - /// - /// Thrown when fails to make API call - /// Reference identifier - /// ApiResponse of List<AdditionalFieldManagementBaseDTO> - public ApiResponse< List > AdditionalFieldsManagementGetAdditionalFieldsByReferenceIdWithHttpInfo (string referenceId) - { - // verify the required parameter 'referenceId' is set - if (referenceId == null) - throw new ApiException(400, "Missing required parameter 'referenceId' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementGetAdditionalFieldsByReferenceId"); - - var localVarPath = "/api/management/AdditionalFields/Fields/ByReferenceId/{referenceId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (referenceId != null) localVarPathParams.Add("referenceId", this.Configuration.ApiClient.ParameterToString(referenceId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementGetAdditionalFieldsByReferenceId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns all additional fields by reference id - /// - /// Thrown when fails to make API call - /// Reference identifier - /// Task of List<AdditionalFieldManagementBaseDTO> - public async System.Threading.Tasks.Task> AdditionalFieldsManagementGetAdditionalFieldsByReferenceIdAsync (string referenceId) - { - ApiResponse> localVarResponse = await AdditionalFieldsManagementGetAdditionalFieldsByReferenceIdAsyncWithHttpInfo(referenceId); - return localVarResponse.Data; - - } - - /// - /// This method returns all additional fields by reference id - /// - /// Thrown when fails to make API call - /// Reference identifier - /// Task of ApiResponse (List<AdditionalFieldManagementBaseDTO>) - public async System.Threading.Tasks.Task>> AdditionalFieldsManagementGetAdditionalFieldsByReferenceIdAsyncWithHttpInfo (string referenceId) - { - // verify the required parameter 'referenceId' is set - if (referenceId == null) - throw new ApiException(400, "Missing required parameter 'referenceId' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementGetAdditionalFieldsByReferenceId"); - - var localVarPath = "/api/management/AdditionalFields/Fields/ByReferenceId/{referenceId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (referenceId != null) localVarPathParams.Add("referenceId", this.Configuration.ApiClient.ParameterToString(referenceId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementGetAdditionalFieldsByReferenceId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns specific field group by id - /// - /// Thrown when fails to make API call - /// Field group identifier - /// FieldGroupDTO - public FieldGroupDTO AdditionalFieldsManagementGetFieldGroup (int? id) - { - ApiResponse localVarResponse = AdditionalFieldsManagementGetFieldGroupWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This method returns specific field group by id - /// - /// Thrown when fails to make API call - /// Field group identifier - /// ApiResponse of FieldGroupDTO - public ApiResponse< FieldGroupDTO > AdditionalFieldsManagementGetFieldGroupWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementGetFieldGroup"); - - var localVarPath = "/api/management/AdditionalFields/Groups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementGetFieldGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldGroupDTO))); - } - - /// - /// This method returns specific field group by id - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Task of FieldGroupDTO - public async System.Threading.Tasks.Task AdditionalFieldsManagementGetFieldGroupAsync (int? id) - { - ApiResponse localVarResponse = await AdditionalFieldsManagementGetFieldGroupAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This method returns specific field group by id - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Task of ApiResponse (FieldGroupDTO) - public async System.Threading.Tasks.Task> AdditionalFieldsManagementGetFieldGroupAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementGetFieldGroup"); - - var localVarPath = "/api/management/AdditionalFields/Groups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementGetFieldGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldGroupDTO))); - } - - /// - /// This method returns all field groups - /// - /// Thrown when fails to make API call - /// List<FieldGroupDTO> - public List AdditionalFieldsManagementGetFieldGroups () - { - ApiResponse> localVarResponse = AdditionalFieldsManagementGetFieldGroupsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This method returns all field groups - /// - /// Thrown when fails to make API call - /// ApiResponse of List<FieldGroupDTO> - public ApiResponse< List > AdditionalFieldsManagementGetFieldGroupsWithHttpInfo () - { - - var localVarPath = "/api/management/AdditionalFields/Groups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementGetFieldGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns all field groups - /// - /// Thrown when fails to make API call - /// Task of List<FieldGroupDTO> - public async System.Threading.Tasks.Task> AdditionalFieldsManagementGetFieldGroupsAsync () - { - ApiResponse> localVarResponse = await AdditionalFieldsManagementGetFieldGroupsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This method returns all field groups - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<FieldGroupDTO>) - public async System.Threading.Tasks.Task>> AdditionalFieldsManagementGetFieldGroupsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/AdditionalFields/Groups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementGetFieldGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method creates specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// AdditionalFieldManagementBaseDTO - public AdditionalFieldManagementBaseDTO AdditionalFieldsManagementInsertAdditionalField (AdditionalFieldManagementBaseDTO field = null) - { - ApiResponse localVarResponse = AdditionalFieldsManagementInsertAdditionalFieldWithHttpInfo(field); - return localVarResponse.Data; - } - - /// - /// This method creates specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of AdditionalFieldManagementBaseDTO - public ApiResponse< AdditionalFieldManagementBaseDTO > AdditionalFieldsManagementInsertAdditionalFieldWithHttpInfo (AdditionalFieldManagementBaseDTO field = null) - { - - var localVarPath = "/api/management/AdditionalFields/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (field != null && field.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(field); // http body (model) parameter - } - else - { - localVarPostBody = field; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementInsertAdditionalField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AdditionalFieldManagementBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AdditionalFieldManagementBaseDTO))); - } - - /// - /// This method creates specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of AdditionalFieldManagementBaseDTO - public async System.Threading.Tasks.Task AdditionalFieldsManagementInsertAdditionalFieldAsync (AdditionalFieldManagementBaseDTO field = null) - { - ApiResponse localVarResponse = await AdditionalFieldsManagementInsertAdditionalFieldAsyncWithHttpInfo(field); - return localVarResponse.Data; - - } - - /// - /// This method creates specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (AdditionalFieldManagementBaseDTO) - public async System.Threading.Tasks.Task> AdditionalFieldsManagementInsertAdditionalFieldAsyncWithHttpInfo (AdditionalFieldManagementBaseDTO field = null) - { - - var localVarPath = "/api/management/AdditionalFields/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (field != null && field.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(field); // http body (model) parameter - } - else - { - localVarPostBody = field; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementInsertAdditionalField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AdditionalFieldManagementBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AdditionalFieldManagementBaseDTO))); - } - - /// - /// This method creates specific field group - /// - /// Thrown when fails to make API call - /// Field group data for insert - /// FieldGroupDTO - public FieldGroupDTO AdditionalFieldsManagementInsertFieldGroup (FieldGroupDTO fieldGroup) - { - ApiResponse localVarResponse = AdditionalFieldsManagementInsertFieldGroupWithHttpInfo(fieldGroup); - return localVarResponse.Data; - } - - /// - /// This method creates specific field group - /// - /// Thrown when fails to make API call - /// Field group data for insert - /// ApiResponse of FieldGroupDTO - public ApiResponse< FieldGroupDTO > AdditionalFieldsManagementInsertFieldGroupWithHttpInfo (FieldGroupDTO fieldGroup) - { - // verify the required parameter 'fieldGroup' is set - if (fieldGroup == null) - throw new ApiException(400, "Missing required parameter 'fieldGroup' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementInsertFieldGroup"); - - var localVarPath = "/api/management/AdditionalFields/Groups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldGroup != null && fieldGroup.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldGroup); // http body (model) parameter - } - else - { - localVarPostBody = fieldGroup; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementInsertFieldGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldGroupDTO))); - } - - /// - /// This method creates specific field group - /// - /// Thrown when fails to make API call - /// Field group data for insert - /// Task of FieldGroupDTO - public async System.Threading.Tasks.Task AdditionalFieldsManagementInsertFieldGroupAsync (FieldGroupDTO fieldGroup) - { - ApiResponse localVarResponse = await AdditionalFieldsManagementInsertFieldGroupAsyncWithHttpInfo(fieldGroup); - return localVarResponse.Data; - - } - - /// - /// This method creates specific field group - /// - /// Thrown when fails to make API call - /// Field group data for insert - /// Task of ApiResponse (FieldGroupDTO) - public async System.Threading.Tasks.Task> AdditionalFieldsManagementInsertFieldGroupAsyncWithHttpInfo (FieldGroupDTO fieldGroup) - { - // verify the required parameter 'fieldGroup' is set - if (fieldGroup == null) - throw new ApiException(400, "Missing required parameter 'fieldGroup' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementInsertFieldGroup"); - - var localVarPath = "/api/management/AdditionalFields/Groups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldGroup != null && fieldGroup.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldGroup); // http body (model) parameter - } - else - { - localVarPostBody = fieldGroup; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementInsertFieldGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldGroupDTO))); - } - - /// - /// This method updates field associations - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Associations - /// - public void AdditionalFieldsManagementSetAdditionalFieldAssociations (int? documentTypeId, string key, List associations) - { - AdditionalFieldsManagementSetAdditionalFieldAssociationsWithHttpInfo(documentTypeId, key, associations); - } - - /// - /// This method updates field associations - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Associations - /// ApiResponse of Object(void) - public ApiResponse AdditionalFieldsManagementSetAdditionalFieldAssociationsWithHttpInfo (int? documentTypeId, string key, List associations) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementSetAdditionalFieldAssociations"); - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementSetAdditionalFieldAssociations"); - // verify the required parameter 'associations' is set - if (associations == null) - throw new ApiException(400, "Missing required parameter 'associations' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementSetAdditionalFieldAssociations"); - - var localVarPath = "/api/management/AdditionalFields/Fields/{documentTypeId}/{key}/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter - if (associations != null && associations.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(associations); // http body (model) parameter - } - else - { - localVarPostBody = associations; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementSetAdditionalFieldAssociations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method updates field associations - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Associations - /// Task of void - public async System.Threading.Tasks.Task AdditionalFieldsManagementSetAdditionalFieldAssociationsAsync (int? documentTypeId, string key, List associations) - { - await AdditionalFieldsManagementSetAdditionalFieldAssociationsAsyncWithHttpInfo(documentTypeId, key, associations); - - } - - /// - /// This method updates field associations - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Associations - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AdditionalFieldsManagementSetAdditionalFieldAssociationsAsyncWithHttpInfo (int? documentTypeId, string key, List associations) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementSetAdditionalFieldAssociations"); - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementSetAdditionalFieldAssociations"); - // verify the required parameter 'associations' is set - if (associations == null) - throw new ApiException(400, "Missing required parameter 'associations' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementSetAdditionalFieldAssociations"); - - var localVarPath = "/api/management/AdditionalFields/Fields/{documentTypeId}/{key}/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter - if (associations != null && associations.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(associations); // http body (model) parameter - } - else - { - localVarPostBody = associations; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementSetAdditionalFieldAssociations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method updates field references - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Reference list for specified field - /// - public void AdditionalFieldsManagementSetAdditionalFieldReferences (int? documentTypeId, string key, List references) - { - AdditionalFieldsManagementSetAdditionalFieldReferencesWithHttpInfo(documentTypeId, key, references); - } - - /// - /// This method updates field references - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Reference list for specified field - /// ApiResponse of Object(void) - public ApiResponse AdditionalFieldsManagementSetAdditionalFieldReferencesWithHttpInfo (int? documentTypeId, string key, List references) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementSetAdditionalFieldReferences"); - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementSetAdditionalFieldReferences"); - // verify the required parameter 'references' is set - if (references == null) - throw new ApiException(400, "Missing required parameter 'references' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementSetAdditionalFieldReferences"); - - var localVarPath = "/api/management/AdditionalFields/Fields/{documentTypeId}/{key}/References"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter - if (references != null && references.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(references); // http body (model) parameter - } - else - { - localVarPostBody = references; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementSetAdditionalFieldReferences", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method updates field references - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Reference list for specified field - /// Task of void - public async System.Threading.Tasks.Task AdditionalFieldsManagementSetAdditionalFieldReferencesAsync (int? documentTypeId, string key, List references) - { - await AdditionalFieldsManagementSetAdditionalFieldReferencesAsyncWithHttpInfo(documentTypeId, key, references); - - } - - /// - /// This method updates field references - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Additional field key - /// Reference list for specified field - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AdditionalFieldsManagementSetAdditionalFieldReferencesAsyncWithHttpInfo (int? documentTypeId, string key, List references) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementSetAdditionalFieldReferences"); - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementSetAdditionalFieldReferences"); - // verify the required parameter 'references' is set - if (references == null) - throw new ApiException(400, "Missing required parameter 'references' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementSetAdditionalFieldReferences"); - - var localVarPath = "/api/management/AdditionalFields/Fields/{documentTypeId}/{key}/References"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter - if (references != null && references.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(references); // http body (model) parameter - } - else - { - localVarPostBody = references; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementSetAdditionalFieldReferences", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method updates field groups order - /// - /// Thrown when fails to make API call - /// Field group sort options - /// - public void AdditionalFieldsManagementSortFieldGroups (List options) - { - AdditionalFieldsManagementSortFieldGroupsWithHttpInfo(options); - } - - /// - /// This method updates field groups order - /// - /// Thrown when fails to make API call - /// Field group sort options - /// ApiResponse of Object(void) - public ApiResponse AdditionalFieldsManagementSortFieldGroupsWithHttpInfo (List options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementSortFieldGroups"); - - var localVarPath = "/api/management/AdditionalFields/Groups/Sort"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementSortFieldGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method updates field groups order - /// - /// Thrown when fails to make API call - /// Field group sort options - /// Task of void - public async System.Threading.Tasks.Task AdditionalFieldsManagementSortFieldGroupsAsync (List options) - { - await AdditionalFieldsManagementSortFieldGroupsAsyncWithHttpInfo(options); - - } - - /// - /// This method updates field groups order - /// - /// Thrown when fails to make API call - /// Field group sort options - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AdditionalFieldsManagementSortFieldGroupsAsyncWithHttpInfo (List options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementSortFieldGroups"); - - var localVarPath = "/api/management/AdditionalFields/Groups/Sort"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementSortFieldGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method updates specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// AdditionalFieldManagementBaseDTO - public AdditionalFieldManagementBaseDTO AdditionalFieldsManagementUpdateAdditionalField (AdditionalFieldManagementBaseDTO field = null) - { - ApiResponse localVarResponse = AdditionalFieldsManagementUpdateAdditionalFieldWithHttpInfo(field); - return localVarResponse.Data; - } - - /// - /// This method updates specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of AdditionalFieldManagementBaseDTO - public ApiResponse< AdditionalFieldManagementBaseDTO > AdditionalFieldsManagementUpdateAdditionalFieldWithHttpInfo (AdditionalFieldManagementBaseDTO field = null) - { - - var localVarPath = "/api/management/AdditionalFields/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (field != null && field.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(field); // http body (model) parameter - } - else - { - localVarPostBody = field; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementUpdateAdditionalField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AdditionalFieldManagementBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AdditionalFieldManagementBaseDTO))); - } - - /// - /// This method updates specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of AdditionalFieldManagementBaseDTO - public async System.Threading.Tasks.Task AdditionalFieldsManagementUpdateAdditionalFieldAsync (AdditionalFieldManagementBaseDTO field = null) - { - ApiResponse localVarResponse = await AdditionalFieldsManagementUpdateAdditionalFieldAsyncWithHttpInfo(field); - return localVarResponse.Data; - - } - - /// - /// This method updates specific additional field - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (AdditionalFieldManagementBaseDTO) - public async System.Threading.Tasks.Task> AdditionalFieldsManagementUpdateAdditionalFieldAsyncWithHttpInfo (AdditionalFieldManagementBaseDTO field = null) - { - - var localVarPath = "/api/management/AdditionalFields/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (field != null && field.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(field); // http body (model) parameter - } - else - { - localVarPostBody = field; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementUpdateAdditionalField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AdditionalFieldManagementBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AdditionalFieldManagementBaseDTO))); - } - - /// - /// This method updates specific field group - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Field group data for update - /// FieldGroupDTO - public FieldGroupDTO AdditionalFieldsManagementUpdateFieldGroup (int? id, FieldGroupDTO fieldGroup) - { - ApiResponse localVarResponse = AdditionalFieldsManagementUpdateFieldGroupWithHttpInfo(id, fieldGroup); - return localVarResponse.Data; - } - - /// - /// This method updates specific field group - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Field group data for update - /// ApiResponse of FieldGroupDTO - public ApiResponse< FieldGroupDTO > AdditionalFieldsManagementUpdateFieldGroupWithHttpInfo (int? id, FieldGroupDTO fieldGroup) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementUpdateFieldGroup"); - // verify the required parameter 'fieldGroup' is set - if (fieldGroup == null) - throw new ApiException(400, "Missing required parameter 'fieldGroup' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementUpdateFieldGroup"); - - var localVarPath = "/api/management/AdditionalFields/Groups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (fieldGroup != null && fieldGroup.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldGroup); // http body (model) parameter - } - else - { - localVarPostBody = fieldGroup; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementUpdateFieldGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldGroupDTO))); - } - - /// - /// This method updates specific field group - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Field group data for update - /// Task of FieldGroupDTO - public async System.Threading.Tasks.Task AdditionalFieldsManagementUpdateFieldGroupAsync (int? id, FieldGroupDTO fieldGroup) - { - ApiResponse localVarResponse = await AdditionalFieldsManagementUpdateFieldGroupAsyncWithHttpInfo(id, fieldGroup); - return localVarResponse.Data; - - } - - /// - /// This method updates specific field group - /// - /// Thrown when fails to make API call - /// Field group identifier - /// Field group data for update - /// Task of ApiResponse (FieldGroupDTO) - public async System.Threading.Tasks.Task> AdditionalFieldsManagementUpdateFieldGroupAsyncWithHttpInfo (int? id, FieldGroupDTO fieldGroup) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementUpdateFieldGroup"); - // verify the required parameter 'fieldGroup' is set - if (fieldGroup == null) - throw new ApiException(400, "Missing required parameter 'fieldGroup' when calling AdditionalFieldsManagementApi->AdditionalFieldsManagementUpdateFieldGroup"); - - var localVarPath = "/api/management/AdditionalFields/Groups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (fieldGroup != null && fieldGroup.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(fieldGroup); // http body (model) parameter - } - else - { - localVarPostBody = fieldGroup; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AdditionalFieldsManagementUpdateFieldGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FieldGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FieldGroupDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/AddressBookManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/AddressBookManagementApi.cs deleted file mode 100644 index 54cb62b..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/AddressBookManagementApi.cs +++ /dev/null @@ -1,1798 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IAddressBookManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// - void AddressBookManagementDeleteAddressBookField (int? fieldId); - - /// - /// This call deletes address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// ApiResponse of Object(void) - ApiResponse AddressBookManagementDeleteAddressBookFieldWithHttpInfo (int? fieldId); - /// - /// This call removes value for combo field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// - void AddressBookManagementDeleteAddressBookFieldValue (int? fieldId, int? id); - - /// - /// This call removes value for combo field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// ApiResponse of Object(void) - ApiResponse AddressBookManagementDeleteAddressBookFieldValueWithHttpInfo (int? fieldId, int? id); - /// - /// This call gets specific address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// AddressBookFieldDTO - AddressBookFieldDTO AddressBookManagementGetAddressBookField (int? fieldId); - - /// - /// This call gets specific address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// ApiResponse of AddressBookFieldDTO - ApiResponse AddressBookManagementGetAddressBookFieldWithHttpInfo (int? fieldId); - /// - /// This call returns address book additional fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<AddressBookFieldDTO> - List AddressBookManagementGetAddressBookFields (); - - /// - /// This call returns address book additional fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<AddressBookFieldDTO> - ApiResponse> AddressBookManagementGetAddressBookFieldsWithHttpInfo (); - /// - /// This call inserts address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field for insert - /// AddressBookFieldDTO - AddressBookFieldDTO AddressBookManagementInsertAddressBookField (AddressBookFieldDTO field); - - /// - /// This call inserts address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field for insert - /// ApiResponse of AddressBookFieldDTO - ApiResponse AddressBookManagementInsertAddressBookFieldWithHttpInfo (AddressBookFieldDTO field); - /// - /// This call inserts value for combo field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value - /// AddressBookFieldValueDTO - AddressBookFieldValueDTO AddressBookManagementInsertAddressBookFieldValue (int? fieldId, AddressBookFieldValueDTO value); - - /// - /// This call inserts value for combo field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value - /// ApiResponse of AddressBookFieldValueDTO - ApiResponse AddressBookManagementInsertAddressBookFieldValueWithHttpInfo (int? fieldId, AddressBookFieldValueDTO value); - /// - /// This call updates address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// AddressBookFieldDTO - AddressBookFieldDTO AddressBookManagementUpdateAddressBookField (int? fieldId, AddressBookFieldDTO field); - - /// - /// This call updates address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// ApiResponse of AddressBookFieldDTO - ApiResponse AddressBookManagementUpdateAddressBookFieldWithHttpInfo (int? fieldId, AddressBookFieldDTO field); - /// - /// This call updates value for combo field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// Field value - /// AddressBookFieldValueDTO - AddressBookFieldValueDTO AddressBookManagementUpdateAddressBookFieldValue (int? fieldId, int? id, AddressBookFieldValueDTO value); - - /// - /// This call updates value for combo field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// Field value - /// ApiResponse of AddressBookFieldValueDTO - ApiResponse AddressBookManagementUpdateAddressBookFieldValueWithHttpInfo (int? fieldId, int? id, AddressBookFieldValueDTO value); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of void - System.Threading.Tasks.Task AddressBookManagementDeleteAddressBookFieldAsync (int? fieldId); - - /// - /// This call deletes address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> AddressBookManagementDeleteAddressBookFieldAsyncWithHttpInfo (int? fieldId); - /// - /// This call removes value for combo field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// Task of void - System.Threading.Tasks.Task AddressBookManagementDeleteAddressBookFieldValueAsync (int? fieldId, int? id); - - /// - /// This call removes value for combo field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> AddressBookManagementDeleteAddressBookFieldValueAsyncWithHttpInfo (int? fieldId, int? id); - /// - /// This call gets specific address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of AddressBookFieldDTO - System.Threading.Tasks.Task AddressBookManagementGetAddressBookFieldAsync (int? fieldId); - - /// - /// This call gets specific address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of ApiResponse (AddressBookFieldDTO) - System.Threading.Tasks.Task> AddressBookManagementGetAddressBookFieldAsyncWithHttpInfo (int? fieldId); - /// - /// This call returns address book additional fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<AddressBookFieldDTO> - System.Threading.Tasks.Task> AddressBookManagementGetAddressBookFieldsAsync (); - - /// - /// This call returns address book additional fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<AddressBookFieldDTO>) - System.Threading.Tasks.Task>> AddressBookManagementGetAddressBookFieldsAsyncWithHttpInfo (); - /// - /// This call inserts address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field for insert - /// Task of AddressBookFieldDTO - System.Threading.Tasks.Task AddressBookManagementInsertAddressBookFieldAsync (AddressBookFieldDTO field); - - /// - /// This call inserts address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field for insert - /// Task of ApiResponse (AddressBookFieldDTO) - System.Threading.Tasks.Task> AddressBookManagementInsertAddressBookFieldAsyncWithHttpInfo (AddressBookFieldDTO field); - /// - /// This call inserts value for combo field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value - /// Task of AddressBookFieldValueDTO - System.Threading.Tasks.Task AddressBookManagementInsertAddressBookFieldValueAsync (int? fieldId, AddressBookFieldValueDTO value); - - /// - /// This call inserts value for combo field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value - /// Task of ApiResponse (AddressBookFieldValueDTO) - System.Threading.Tasks.Task> AddressBookManagementInsertAddressBookFieldValueAsyncWithHttpInfo (int? fieldId, AddressBookFieldValueDTO value); - /// - /// This call updates address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// Task of AddressBookFieldDTO - System.Threading.Tasks.Task AddressBookManagementUpdateAddressBookFieldAsync (int? fieldId, AddressBookFieldDTO field); - - /// - /// This call updates address book additional field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// Task of ApiResponse (AddressBookFieldDTO) - System.Threading.Tasks.Task> AddressBookManagementUpdateAddressBookFieldAsyncWithHttpInfo (int? fieldId, AddressBookFieldDTO field); - /// - /// This call updates value for combo field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// Field value - /// Task of AddressBookFieldValueDTO - System.Threading.Tasks.Task AddressBookManagementUpdateAddressBookFieldValueAsync (int? fieldId, int? id, AddressBookFieldValueDTO value); - - /// - /// This call updates value for combo field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// Field value - /// Task of ApiResponse (AddressBookFieldValueDTO) - System.Threading.Tasks.Task> AddressBookManagementUpdateAddressBookFieldValueAsyncWithHttpInfo (int? fieldId, int? id, AddressBookFieldValueDTO value); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AddressBookManagementApi : IAddressBookManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public AddressBookManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public AddressBookManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes address book additional field - /// - /// Thrown when fails to make API call - /// Field identifier - /// - public void AddressBookManagementDeleteAddressBookField (int? fieldId) - { - AddressBookManagementDeleteAddressBookFieldWithHttpInfo(fieldId); - } - - /// - /// This call deletes address book additional field - /// - /// Thrown when fails to make API call - /// Field identifier - /// ApiResponse of Object(void) - public ApiResponse AddressBookManagementDeleteAddressBookFieldWithHttpInfo (int? fieldId) - { - // verify the required parameter 'fieldId' is set - if (fieldId == null) - throw new ApiException(400, "Missing required parameter 'fieldId' when calling AddressBookManagementApi->AddressBookManagementDeleteAddressBookField"); - - var localVarPath = "/api/management/AddressBook/fields/{fieldId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldId != null) localVarPathParams.Add("fieldId", this.Configuration.ApiClient.ParameterToString(fieldId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementDeleteAddressBookField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes address book additional field - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of void - public async System.Threading.Tasks.Task AddressBookManagementDeleteAddressBookFieldAsync (int? fieldId) - { - await AddressBookManagementDeleteAddressBookFieldAsyncWithHttpInfo(fieldId); - - } - - /// - /// This call deletes address book additional field - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddressBookManagementDeleteAddressBookFieldAsyncWithHttpInfo (int? fieldId) - { - // verify the required parameter 'fieldId' is set - if (fieldId == null) - throw new ApiException(400, "Missing required parameter 'fieldId' when calling AddressBookManagementApi->AddressBookManagementDeleteAddressBookField"); - - var localVarPath = "/api/management/AddressBook/fields/{fieldId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldId != null) localVarPathParams.Add("fieldId", this.Configuration.ApiClient.ParameterToString(fieldId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementDeleteAddressBookField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call removes value for combo field - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// - public void AddressBookManagementDeleteAddressBookFieldValue (int? fieldId, int? id) - { - AddressBookManagementDeleteAddressBookFieldValueWithHttpInfo(fieldId, id); - } - - /// - /// This call removes value for combo field - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// ApiResponse of Object(void) - public ApiResponse AddressBookManagementDeleteAddressBookFieldValueWithHttpInfo (int? fieldId, int? id) - { - // verify the required parameter 'fieldId' is set - if (fieldId == null) - throw new ApiException(400, "Missing required parameter 'fieldId' when calling AddressBookManagementApi->AddressBookManagementDeleteAddressBookFieldValue"); - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AddressBookManagementApi->AddressBookManagementDeleteAddressBookFieldValue"); - - var localVarPath = "/api/management/AddressBook/fields/{fieldId}/values/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldId != null) localVarPathParams.Add("fieldId", this.Configuration.ApiClient.ParameterToString(fieldId)); // path parameter - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementDeleteAddressBookFieldValue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call removes value for combo field - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// Task of void - public async System.Threading.Tasks.Task AddressBookManagementDeleteAddressBookFieldValueAsync (int? fieldId, int? id) - { - await AddressBookManagementDeleteAddressBookFieldValueAsyncWithHttpInfo(fieldId, id); - - } - - /// - /// This call removes value for combo field - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddressBookManagementDeleteAddressBookFieldValueAsyncWithHttpInfo (int? fieldId, int? id) - { - // verify the required parameter 'fieldId' is set - if (fieldId == null) - throw new ApiException(400, "Missing required parameter 'fieldId' when calling AddressBookManagementApi->AddressBookManagementDeleteAddressBookFieldValue"); - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AddressBookManagementApi->AddressBookManagementDeleteAddressBookFieldValue"); - - var localVarPath = "/api/management/AddressBook/fields/{fieldId}/values/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldId != null) localVarPathParams.Add("fieldId", this.Configuration.ApiClient.ParameterToString(fieldId)); // path parameter - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementDeleteAddressBookFieldValue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call gets specific address book additional field - /// - /// Thrown when fails to make API call - /// Field identifier - /// AddressBookFieldDTO - public AddressBookFieldDTO AddressBookManagementGetAddressBookField (int? fieldId) - { - ApiResponse localVarResponse = AddressBookManagementGetAddressBookFieldWithHttpInfo(fieldId); - return localVarResponse.Data; - } - - /// - /// This call gets specific address book additional field - /// - /// Thrown when fails to make API call - /// Field identifier - /// ApiResponse of AddressBookFieldDTO - public ApiResponse< AddressBookFieldDTO > AddressBookManagementGetAddressBookFieldWithHttpInfo (int? fieldId) - { - // verify the required parameter 'fieldId' is set - if (fieldId == null) - throw new ApiException(400, "Missing required parameter 'fieldId' when calling AddressBookManagementApi->AddressBookManagementGetAddressBookField"); - - var localVarPath = "/api/management/AddressBook/fields/{fieldId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldId != null) localVarPathParams.Add("fieldId", this.Configuration.ApiClient.ParameterToString(fieldId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementGetAddressBookField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookFieldDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookFieldDTO))); - } - - /// - /// This call gets specific address book additional field - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of AddressBookFieldDTO - public async System.Threading.Tasks.Task AddressBookManagementGetAddressBookFieldAsync (int? fieldId) - { - ApiResponse localVarResponse = await AddressBookManagementGetAddressBookFieldAsyncWithHttpInfo(fieldId); - return localVarResponse.Data; - - } - - /// - /// This call gets specific address book additional field - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of ApiResponse (AddressBookFieldDTO) - public async System.Threading.Tasks.Task> AddressBookManagementGetAddressBookFieldAsyncWithHttpInfo (int? fieldId) - { - // verify the required parameter 'fieldId' is set - if (fieldId == null) - throw new ApiException(400, "Missing required parameter 'fieldId' when calling AddressBookManagementApi->AddressBookManagementGetAddressBookField"); - - var localVarPath = "/api/management/AddressBook/fields/{fieldId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldId != null) localVarPathParams.Add("fieldId", this.Configuration.ApiClient.ParameterToString(fieldId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementGetAddressBookField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookFieldDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookFieldDTO))); - } - - /// - /// This call returns address book additional fields - /// - /// Thrown when fails to make API call - /// List<AddressBookFieldDTO> - public List AddressBookManagementGetAddressBookFields () - { - ApiResponse> localVarResponse = AddressBookManagementGetAddressBookFieldsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns address book additional fields - /// - /// Thrown when fails to make API call - /// ApiResponse of List<AddressBookFieldDTO> - public ApiResponse< List > AddressBookManagementGetAddressBookFieldsWithHttpInfo () - { - - var localVarPath = "/api/management/AddressBook/fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementGetAddressBookFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns address book additional fields - /// - /// Thrown when fails to make API call - /// Task of List<AddressBookFieldDTO> - public async System.Threading.Tasks.Task> AddressBookManagementGetAddressBookFieldsAsync () - { - ApiResponse> localVarResponse = await AddressBookManagementGetAddressBookFieldsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns address book additional fields - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<AddressBookFieldDTO>) - public async System.Threading.Tasks.Task>> AddressBookManagementGetAddressBookFieldsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/AddressBook/fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementGetAddressBookFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts address book additional field - /// - /// Thrown when fails to make API call - /// Field for insert - /// AddressBookFieldDTO - public AddressBookFieldDTO AddressBookManagementInsertAddressBookField (AddressBookFieldDTO field) - { - ApiResponse localVarResponse = AddressBookManagementInsertAddressBookFieldWithHttpInfo(field); - return localVarResponse.Data; - } - - /// - /// This call inserts address book additional field - /// - /// Thrown when fails to make API call - /// Field for insert - /// ApiResponse of AddressBookFieldDTO - public ApiResponse< AddressBookFieldDTO > AddressBookManagementInsertAddressBookFieldWithHttpInfo (AddressBookFieldDTO field) - { - // verify the required parameter 'field' is set - if (field == null) - throw new ApiException(400, "Missing required parameter 'field' when calling AddressBookManagementApi->AddressBookManagementInsertAddressBookField"); - - var localVarPath = "/api/management/AddressBook/fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (field != null && field.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(field); // http body (model) parameter - } - else - { - localVarPostBody = field; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementInsertAddressBookField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookFieldDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookFieldDTO))); - } - - /// - /// This call inserts address book additional field - /// - /// Thrown when fails to make API call - /// Field for insert - /// Task of AddressBookFieldDTO - public async System.Threading.Tasks.Task AddressBookManagementInsertAddressBookFieldAsync (AddressBookFieldDTO field) - { - ApiResponse localVarResponse = await AddressBookManagementInsertAddressBookFieldAsyncWithHttpInfo(field); - return localVarResponse.Data; - - } - - /// - /// This call inserts address book additional field - /// - /// Thrown when fails to make API call - /// Field for insert - /// Task of ApiResponse (AddressBookFieldDTO) - public async System.Threading.Tasks.Task> AddressBookManagementInsertAddressBookFieldAsyncWithHttpInfo (AddressBookFieldDTO field) - { - // verify the required parameter 'field' is set - if (field == null) - throw new ApiException(400, "Missing required parameter 'field' when calling AddressBookManagementApi->AddressBookManagementInsertAddressBookField"); - - var localVarPath = "/api/management/AddressBook/fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (field != null && field.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(field); // http body (model) parameter - } - else - { - localVarPostBody = field; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementInsertAddressBookField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookFieldDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookFieldDTO))); - } - - /// - /// This call inserts value for combo field - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value - /// AddressBookFieldValueDTO - public AddressBookFieldValueDTO AddressBookManagementInsertAddressBookFieldValue (int? fieldId, AddressBookFieldValueDTO value) - { - ApiResponse localVarResponse = AddressBookManagementInsertAddressBookFieldValueWithHttpInfo(fieldId, value); - return localVarResponse.Data; - } - - /// - /// This call inserts value for combo field - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value - /// ApiResponse of AddressBookFieldValueDTO - public ApiResponse< AddressBookFieldValueDTO > AddressBookManagementInsertAddressBookFieldValueWithHttpInfo (int? fieldId, AddressBookFieldValueDTO value) - { - // verify the required parameter 'fieldId' is set - if (fieldId == null) - throw new ApiException(400, "Missing required parameter 'fieldId' when calling AddressBookManagementApi->AddressBookManagementInsertAddressBookFieldValue"); - // verify the required parameter 'value' is set - if (value == null) - throw new ApiException(400, "Missing required parameter 'value' when calling AddressBookManagementApi->AddressBookManagementInsertAddressBookFieldValue"); - - var localVarPath = "/api/management/AddressBook/fields/{fieldId}/values"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldId != null) localVarPathParams.Add("fieldId", this.Configuration.ApiClient.ParameterToString(fieldId)); // path parameter - if (value != null && value.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(value); // http body (model) parameter - } - else - { - localVarPostBody = value; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementInsertAddressBookFieldValue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookFieldValueDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookFieldValueDTO))); - } - - /// - /// This call inserts value for combo field - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value - /// Task of AddressBookFieldValueDTO - public async System.Threading.Tasks.Task AddressBookManagementInsertAddressBookFieldValueAsync (int? fieldId, AddressBookFieldValueDTO value) - { - ApiResponse localVarResponse = await AddressBookManagementInsertAddressBookFieldValueAsyncWithHttpInfo(fieldId, value); - return localVarResponse.Data; - - } - - /// - /// This call inserts value for combo field - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value - /// Task of ApiResponse (AddressBookFieldValueDTO) - public async System.Threading.Tasks.Task> AddressBookManagementInsertAddressBookFieldValueAsyncWithHttpInfo (int? fieldId, AddressBookFieldValueDTO value) - { - // verify the required parameter 'fieldId' is set - if (fieldId == null) - throw new ApiException(400, "Missing required parameter 'fieldId' when calling AddressBookManagementApi->AddressBookManagementInsertAddressBookFieldValue"); - // verify the required parameter 'value' is set - if (value == null) - throw new ApiException(400, "Missing required parameter 'value' when calling AddressBookManagementApi->AddressBookManagementInsertAddressBookFieldValue"); - - var localVarPath = "/api/management/AddressBook/fields/{fieldId}/values"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldId != null) localVarPathParams.Add("fieldId", this.Configuration.ApiClient.ParameterToString(fieldId)); // path parameter - if (value != null && value.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(value); // http body (model) parameter - } - else - { - localVarPostBody = value; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementInsertAddressBookFieldValue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookFieldValueDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookFieldValueDTO))); - } - - /// - /// This call updates address book additional field - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// AddressBookFieldDTO - public AddressBookFieldDTO AddressBookManagementUpdateAddressBookField (int? fieldId, AddressBookFieldDTO field) - { - ApiResponse localVarResponse = AddressBookManagementUpdateAddressBookFieldWithHttpInfo(fieldId, field); - return localVarResponse.Data; - } - - /// - /// This call updates address book additional field - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// ApiResponse of AddressBookFieldDTO - public ApiResponse< AddressBookFieldDTO > AddressBookManagementUpdateAddressBookFieldWithHttpInfo (int? fieldId, AddressBookFieldDTO field) - { - // verify the required parameter 'fieldId' is set - if (fieldId == null) - throw new ApiException(400, "Missing required parameter 'fieldId' when calling AddressBookManagementApi->AddressBookManagementUpdateAddressBookField"); - // verify the required parameter 'field' is set - if (field == null) - throw new ApiException(400, "Missing required parameter 'field' when calling AddressBookManagementApi->AddressBookManagementUpdateAddressBookField"); - - var localVarPath = "/api/management/AddressBook/fields/{fieldId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldId != null) localVarPathParams.Add("fieldId", this.Configuration.ApiClient.ParameterToString(fieldId)); // path parameter - if (field != null && field.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(field); // http body (model) parameter - } - else - { - localVarPostBody = field; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementUpdateAddressBookField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookFieldDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookFieldDTO))); - } - - /// - /// This call updates address book additional field - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// Task of AddressBookFieldDTO - public async System.Threading.Tasks.Task AddressBookManagementUpdateAddressBookFieldAsync (int? fieldId, AddressBookFieldDTO field) - { - ApiResponse localVarResponse = await AddressBookManagementUpdateAddressBookFieldAsyncWithHttpInfo(fieldId, field); - return localVarResponse.Data; - - } - - /// - /// This call updates address book additional field - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// Task of ApiResponse (AddressBookFieldDTO) - public async System.Threading.Tasks.Task> AddressBookManagementUpdateAddressBookFieldAsyncWithHttpInfo (int? fieldId, AddressBookFieldDTO field) - { - // verify the required parameter 'fieldId' is set - if (fieldId == null) - throw new ApiException(400, "Missing required parameter 'fieldId' when calling AddressBookManagementApi->AddressBookManagementUpdateAddressBookField"); - // verify the required parameter 'field' is set - if (field == null) - throw new ApiException(400, "Missing required parameter 'field' when calling AddressBookManagementApi->AddressBookManagementUpdateAddressBookField"); - - var localVarPath = "/api/management/AddressBook/fields/{fieldId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldId != null) localVarPathParams.Add("fieldId", this.Configuration.ApiClient.ParameterToString(fieldId)); // path parameter - if (field != null && field.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(field); // http body (model) parameter - } - else - { - localVarPostBody = field; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementUpdateAddressBookField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookFieldDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookFieldDTO))); - } - - /// - /// This call updates value for combo field - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// Field value - /// AddressBookFieldValueDTO - public AddressBookFieldValueDTO AddressBookManagementUpdateAddressBookFieldValue (int? fieldId, int? id, AddressBookFieldValueDTO value) - { - ApiResponse localVarResponse = AddressBookManagementUpdateAddressBookFieldValueWithHttpInfo(fieldId, id, value); - return localVarResponse.Data; - } - - /// - /// This call updates value for combo field - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// Field value - /// ApiResponse of AddressBookFieldValueDTO - public ApiResponse< AddressBookFieldValueDTO > AddressBookManagementUpdateAddressBookFieldValueWithHttpInfo (int? fieldId, int? id, AddressBookFieldValueDTO value) - { - // verify the required parameter 'fieldId' is set - if (fieldId == null) - throw new ApiException(400, "Missing required parameter 'fieldId' when calling AddressBookManagementApi->AddressBookManagementUpdateAddressBookFieldValue"); - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AddressBookManagementApi->AddressBookManagementUpdateAddressBookFieldValue"); - // verify the required parameter 'value' is set - if (value == null) - throw new ApiException(400, "Missing required parameter 'value' when calling AddressBookManagementApi->AddressBookManagementUpdateAddressBookFieldValue"); - - var localVarPath = "/api/management/AddressBook/fields/{fieldId}/values/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldId != null) localVarPathParams.Add("fieldId", this.Configuration.ApiClient.ParameterToString(fieldId)); // path parameter - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (value != null && value.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(value); // http body (model) parameter - } - else - { - localVarPostBody = value; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementUpdateAddressBookFieldValue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookFieldValueDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookFieldValueDTO))); - } - - /// - /// This call updates value for combo field - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// Field value - /// Task of AddressBookFieldValueDTO - public async System.Threading.Tasks.Task AddressBookManagementUpdateAddressBookFieldValueAsync (int? fieldId, int? id, AddressBookFieldValueDTO value) - { - ApiResponse localVarResponse = await AddressBookManagementUpdateAddressBookFieldValueAsyncWithHttpInfo(fieldId, id, value); - return localVarResponse.Data; - - } - - /// - /// This call updates value for combo field - /// - /// Thrown when fails to make API call - /// Combo field identifier - /// Field value identifier - /// Field value - /// Task of ApiResponse (AddressBookFieldValueDTO) - public async System.Threading.Tasks.Task> AddressBookManagementUpdateAddressBookFieldValueAsyncWithHttpInfo (int? fieldId, int? id, AddressBookFieldValueDTO value) - { - // verify the required parameter 'fieldId' is set - if (fieldId == null) - throw new ApiException(400, "Missing required parameter 'fieldId' when calling AddressBookManagementApi->AddressBookManagementUpdateAddressBookFieldValue"); - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling AddressBookManagementApi->AddressBookManagementUpdateAddressBookFieldValue"); - // verify the required parameter 'value' is set - if (value == null) - throw new ApiException(400, "Missing required parameter 'value' when calling AddressBookManagementApi->AddressBookManagementUpdateAddressBookFieldValue"); - - var localVarPath = "/api/management/AddressBook/fields/{fieldId}/values/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldId != null) localVarPathParams.Add("fieldId", this.Configuration.ApiClient.ParameterToString(fieldId)); // path parameter - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (value != null && value.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(value); // http body (model) parameter - } - else - { - localVarPostBody = value; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AddressBookManagementUpdateAddressBookFieldValue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AddressBookFieldValueDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AddressBookFieldValueDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/ApiCallManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/ApiCallManagementApi.cs deleted file mode 100644 index ab67d3e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/ApiCallManagementApi.cs +++ /dev/null @@ -1,1720 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IApiCallManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This method removes specific API call by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call identifier - /// - void ApiCallManagementDeleteApiCall (int? id); - - /// - /// This method removes specific API call by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call identifier - /// ApiResponse of Object(void) - ApiResponse ApiCallManagementDeleteApiCallWithHttpInfo (int? id); - /// - /// This method returns specific API call by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call identifier - /// ApiCallDTO - ApiCallDTO ApiCallManagementGetApiCall (int? id); - - /// - /// This method returns specific API call by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call identifier - /// ApiResponse of ApiCallDTO - ApiResponse ApiCallManagementGetApiCallWithHttpInfo (int? id); - /// - /// This method returns all API calls - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<ApiCallDTO> - List ApiCallManagementGetApiCalls (); - - /// - /// This method returns all API calls - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ApiCallDTO> - ApiResponse> ApiCallManagementGetApiCallsWithHttpInfo (); - /// - /// This call returns all API calls by Context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Possible values: 0: Authentication 1: Generic - /// List<ApiCallDTO> - List ApiCallManagementGetApiCallsByContextAndType (int? context, int? type); - - /// - /// This call returns all API calls by Context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Possible values: 0: Authentication 1: Generic - /// ApiResponse of List<ApiCallDTO> - ApiResponse> ApiCallManagementGetApiCallsByContextAndTypeWithHttpInfo (int? context, int? type); - /// - /// This call gets system variables for API call - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<ApiCallVariableDTO> - List ApiCallManagementGetVariables (); - - /// - /// This call gets system variables for API call - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ApiCallVariableDTO> - ApiResponse> ApiCallManagementGetVariablesWithHttpInfo (); - /// - /// This method creates a new API call - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call data for insert - /// ApiCallDTO - ApiCallDTO ApiCallManagementInsertApiCall (ApiCallDTO apiCall); - - /// - /// This method creates a new API call - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call data for insert - /// ApiResponse of ApiCallDTO - ApiResponse ApiCallManagementInsertApiCallWithHttpInfo (ApiCallDTO apiCall); - /// - /// This call executes specific API call for gets result - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call data - /// Object - Object ApiCallManagementTestApiCall (ApiCallForTestDTO apiCallForTest); - - /// - /// This call executes specific API call for gets result - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call data - /// ApiResponse of Object - ApiResponse ApiCallManagementTestApiCallWithHttpInfo (ApiCallForTestDTO apiCallForTest); - /// - /// This method updates specific API call - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call identifier - /// API call data for update - /// ApiCallDTO - ApiCallDTO ApiCallManagementUpdateApiCall (int? id, ApiCallDTO apiCall); - - /// - /// This method updates specific API call - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call identifier - /// API call data for update - /// ApiResponse of ApiCallDTO - ApiResponse ApiCallManagementUpdateApiCallWithHttpInfo (int? id, ApiCallDTO apiCall); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This method removes specific API call by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call identifier - /// Task of void - System.Threading.Tasks.Task ApiCallManagementDeleteApiCallAsync (int? id); - - /// - /// This method removes specific API call by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> ApiCallManagementDeleteApiCallAsyncWithHttpInfo (int? id); - /// - /// This method returns specific API call by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call identifier - /// Task of ApiCallDTO - System.Threading.Tasks.Task ApiCallManagementGetApiCallAsync (int? id); - - /// - /// This method returns specific API call by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call identifier - /// Task of ApiResponse (ApiCallDTO) - System.Threading.Tasks.Task> ApiCallManagementGetApiCallAsyncWithHttpInfo (int? id); - /// - /// This method returns all API calls - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<ApiCallDTO> - System.Threading.Tasks.Task> ApiCallManagementGetApiCallsAsync (); - - /// - /// This method returns all API calls - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ApiCallDTO>) - System.Threading.Tasks.Task>> ApiCallManagementGetApiCallsAsyncWithHttpInfo (); - /// - /// This call returns all API calls by Context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Possible values: 0: Authentication 1: Generic - /// Task of List<ApiCallDTO> - System.Threading.Tasks.Task> ApiCallManagementGetApiCallsByContextAndTypeAsync (int? context, int? type); - - /// - /// This call returns all API calls by Context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Possible values: 0: Authentication 1: Generic - /// Task of ApiResponse (List<ApiCallDTO>) - System.Threading.Tasks.Task>> ApiCallManagementGetApiCallsByContextAndTypeAsyncWithHttpInfo (int? context, int? type); - /// - /// This call gets system variables for API call - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<ApiCallVariableDTO> - System.Threading.Tasks.Task> ApiCallManagementGetVariablesAsync (); - - /// - /// This call gets system variables for API call - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ApiCallVariableDTO>) - System.Threading.Tasks.Task>> ApiCallManagementGetVariablesAsyncWithHttpInfo (); - /// - /// This method creates a new API call - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call data for insert - /// Task of ApiCallDTO - System.Threading.Tasks.Task ApiCallManagementInsertApiCallAsync (ApiCallDTO apiCall); - - /// - /// This method creates a new API call - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call data for insert - /// Task of ApiResponse (ApiCallDTO) - System.Threading.Tasks.Task> ApiCallManagementInsertApiCallAsyncWithHttpInfo (ApiCallDTO apiCall); - /// - /// This call executes specific API call for gets result - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call data - /// Task of Object - System.Threading.Tasks.Task ApiCallManagementTestApiCallAsync (ApiCallForTestDTO apiCallForTest); - - /// - /// This call executes specific API call for gets result - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call data - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ApiCallManagementTestApiCallAsyncWithHttpInfo (ApiCallForTestDTO apiCallForTest); - /// - /// This method updates specific API call - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call identifier - /// API call data for update - /// Task of ApiCallDTO - System.Threading.Tasks.Task ApiCallManagementUpdateApiCallAsync (int? id, ApiCallDTO apiCall); - - /// - /// This method updates specific API call - /// - /// - /// - /// - /// Thrown when fails to make API call - /// API call identifier - /// API call data for update - /// Task of ApiResponse (ApiCallDTO) - System.Threading.Tasks.Task> ApiCallManagementUpdateApiCallAsyncWithHttpInfo (int? id, ApiCallDTO apiCall); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ApiCallManagementApi : IApiCallManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ApiCallManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ApiCallManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This method removes specific API call by id - /// - /// Thrown when fails to make API call - /// API call identifier - /// - public void ApiCallManagementDeleteApiCall (int? id) - { - ApiCallManagementDeleteApiCallWithHttpInfo(id); - } - - /// - /// This method removes specific API call by id - /// - /// Thrown when fails to make API call - /// API call identifier - /// ApiResponse of Object(void) - public ApiResponse ApiCallManagementDeleteApiCallWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ApiCallManagementApi->ApiCallManagementDeleteApiCall"); - - var localVarPath = "/api/management/DataSources/ApiCall/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementDeleteApiCall", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method removes specific API call by id - /// - /// Thrown when fails to make API call - /// API call identifier - /// Task of void - public async System.Threading.Tasks.Task ApiCallManagementDeleteApiCallAsync (int? id) - { - await ApiCallManagementDeleteApiCallAsyncWithHttpInfo(id); - - } - - /// - /// This method removes specific API call by id - /// - /// Thrown when fails to make API call - /// API call identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ApiCallManagementDeleteApiCallAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ApiCallManagementApi->ApiCallManagementDeleteApiCall"); - - var localVarPath = "/api/management/DataSources/ApiCall/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementDeleteApiCall", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method returns specific API call by id - /// - /// Thrown when fails to make API call - /// API call identifier - /// ApiCallDTO - public ApiCallDTO ApiCallManagementGetApiCall (int? id) - { - ApiResponse localVarResponse = ApiCallManagementGetApiCallWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This method returns specific API call by id - /// - /// Thrown when fails to make API call - /// API call identifier - /// ApiResponse of ApiCallDTO - public ApiResponse< ApiCallDTO > ApiCallManagementGetApiCallWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ApiCallManagementApi->ApiCallManagementGetApiCall"); - - var localVarPath = "/api/management/DataSources/ApiCall/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementGetApiCall", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ApiCallDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApiCallDTO))); - } - - /// - /// This method returns specific API call by id - /// - /// Thrown when fails to make API call - /// API call identifier - /// Task of ApiCallDTO - public async System.Threading.Tasks.Task ApiCallManagementGetApiCallAsync (int? id) - { - ApiResponse localVarResponse = await ApiCallManagementGetApiCallAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This method returns specific API call by id - /// - /// Thrown when fails to make API call - /// API call identifier - /// Task of ApiResponse (ApiCallDTO) - public async System.Threading.Tasks.Task> ApiCallManagementGetApiCallAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ApiCallManagementApi->ApiCallManagementGetApiCall"); - - var localVarPath = "/api/management/DataSources/ApiCall/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementGetApiCall", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ApiCallDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApiCallDTO))); - } - - /// - /// This method returns all API calls - /// - /// Thrown when fails to make API call - /// List<ApiCallDTO> - public List ApiCallManagementGetApiCalls () - { - ApiResponse> localVarResponse = ApiCallManagementGetApiCallsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This method returns all API calls - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ApiCallDTO> - public ApiResponse< List > ApiCallManagementGetApiCallsWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/ApiCall"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementGetApiCalls", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns all API calls - /// - /// Thrown when fails to make API call - /// Task of List<ApiCallDTO> - public async System.Threading.Tasks.Task> ApiCallManagementGetApiCallsAsync () - { - ApiResponse> localVarResponse = await ApiCallManagementGetApiCallsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This method returns all API calls - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ApiCallDTO>) - public async System.Threading.Tasks.Task>> ApiCallManagementGetApiCallsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/ApiCall"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementGetApiCalls", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all API calls by Context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Possible values: 0: Authentication 1: Generic - /// List<ApiCallDTO> - public List ApiCallManagementGetApiCallsByContextAndType (int? context, int? type) - { - ApiResponse> localVarResponse = ApiCallManagementGetApiCallsByContextAndTypeWithHttpInfo(context, type); - return localVarResponse.Data; - } - - /// - /// This call returns all API calls by Context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Possible values: 0: Authentication 1: Generic - /// ApiResponse of List<ApiCallDTO> - public ApiResponse< List > ApiCallManagementGetApiCallsByContextAndTypeWithHttpInfo (int? context, int? type) - { - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling ApiCallManagementApi->ApiCallManagementGetApiCallsByContextAndType"); - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling ApiCallManagementApi->ApiCallManagementGetApiCallsByContextAndType"); - - var localVarPath = "/api/management/DataSources/ApiCall/ByContext/{context}/Type/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (context != null) localVarPathParams.Add("context", this.Configuration.ApiClient.ParameterToString(context)); // path parameter - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementGetApiCallsByContextAndType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all API calls by Context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Possible values: 0: Authentication 1: Generic - /// Task of List<ApiCallDTO> - public async System.Threading.Tasks.Task> ApiCallManagementGetApiCallsByContextAndTypeAsync (int? context, int? type) - { - ApiResponse> localVarResponse = await ApiCallManagementGetApiCallsByContextAndTypeAsyncWithHttpInfo(context, type); - return localVarResponse.Data; - - } - - /// - /// This call returns all API calls by Context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Possible values: 0: Authentication 1: Generic - /// Task of ApiResponse (List<ApiCallDTO>) - public async System.Threading.Tasks.Task>> ApiCallManagementGetApiCallsByContextAndTypeAsyncWithHttpInfo (int? context, int? type) - { - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling ApiCallManagementApi->ApiCallManagementGetApiCallsByContextAndType"); - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling ApiCallManagementApi->ApiCallManagementGetApiCallsByContextAndType"); - - var localVarPath = "/api/management/DataSources/ApiCall/ByContext/{context}/Type/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (context != null) localVarPathParams.Add("context", this.Configuration.ApiClient.ParameterToString(context)); // path parameter - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementGetApiCallsByContextAndType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets system variables for API call - /// - /// Thrown when fails to make API call - /// List<ApiCallVariableDTO> - public List ApiCallManagementGetVariables () - { - ApiResponse> localVarResponse = ApiCallManagementGetVariablesWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call gets system variables for API call - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ApiCallVariableDTO> - public ApiResponse< List > ApiCallManagementGetVariablesWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/ApiCall/Variables"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementGetVariables", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets system variables for API call - /// - /// Thrown when fails to make API call - /// Task of List<ApiCallVariableDTO> - public async System.Threading.Tasks.Task> ApiCallManagementGetVariablesAsync () - { - ApiResponse> localVarResponse = await ApiCallManagementGetVariablesAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call gets system variables for API call - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ApiCallVariableDTO>) - public async System.Threading.Tasks.Task>> ApiCallManagementGetVariablesAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/ApiCall/Variables"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementGetVariables", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method creates a new API call - /// - /// Thrown when fails to make API call - /// API call data for insert - /// ApiCallDTO - public ApiCallDTO ApiCallManagementInsertApiCall (ApiCallDTO apiCall) - { - ApiResponse localVarResponse = ApiCallManagementInsertApiCallWithHttpInfo(apiCall); - return localVarResponse.Data; - } - - /// - /// This method creates a new API call - /// - /// Thrown when fails to make API call - /// API call data for insert - /// ApiResponse of ApiCallDTO - public ApiResponse< ApiCallDTO > ApiCallManagementInsertApiCallWithHttpInfo (ApiCallDTO apiCall) - { - // verify the required parameter 'apiCall' is set - if (apiCall == null) - throw new ApiException(400, "Missing required parameter 'apiCall' when calling ApiCallManagementApi->ApiCallManagementInsertApiCall"); - - var localVarPath = "/api/management/DataSources/ApiCall"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (apiCall != null && apiCall.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(apiCall); // http body (model) parameter - } - else - { - localVarPostBody = apiCall; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementInsertApiCall", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ApiCallDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApiCallDTO))); - } - - /// - /// This method creates a new API call - /// - /// Thrown when fails to make API call - /// API call data for insert - /// Task of ApiCallDTO - public async System.Threading.Tasks.Task ApiCallManagementInsertApiCallAsync (ApiCallDTO apiCall) - { - ApiResponse localVarResponse = await ApiCallManagementInsertApiCallAsyncWithHttpInfo(apiCall); - return localVarResponse.Data; - - } - - /// - /// This method creates a new API call - /// - /// Thrown when fails to make API call - /// API call data for insert - /// Task of ApiResponse (ApiCallDTO) - public async System.Threading.Tasks.Task> ApiCallManagementInsertApiCallAsyncWithHttpInfo (ApiCallDTO apiCall) - { - // verify the required parameter 'apiCall' is set - if (apiCall == null) - throw new ApiException(400, "Missing required parameter 'apiCall' when calling ApiCallManagementApi->ApiCallManagementInsertApiCall"); - - var localVarPath = "/api/management/DataSources/ApiCall"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (apiCall != null && apiCall.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(apiCall); // http body (model) parameter - } - else - { - localVarPostBody = apiCall; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementInsertApiCall", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ApiCallDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApiCallDTO))); - } - - /// - /// This call executes specific API call for gets result - /// - /// Thrown when fails to make API call - /// API call data - /// Object - public Object ApiCallManagementTestApiCall (ApiCallForTestDTO apiCallForTest) - { - ApiResponse localVarResponse = ApiCallManagementTestApiCallWithHttpInfo(apiCallForTest); - return localVarResponse.Data; - } - - /// - /// This call executes specific API call for gets result - /// - /// Thrown when fails to make API call - /// API call data - /// ApiResponse of Object - public ApiResponse< Object > ApiCallManagementTestApiCallWithHttpInfo (ApiCallForTestDTO apiCallForTest) - { - // verify the required parameter 'apiCallForTest' is set - if (apiCallForTest == null) - throw new ApiException(400, "Missing required parameter 'apiCallForTest' when calling ApiCallManagementApi->ApiCallManagementTestApiCall"); - - var localVarPath = "/api/management/DataSources/ApiCall/Test"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (apiCallForTest != null && apiCallForTest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(apiCallForTest); // http body (model) parameter - } - else - { - localVarPostBody = apiCallForTest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementTestApiCall", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call executes specific API call for gets result - /// - /// Thrown when fails to make API call - /// API call data - /// Task of Object - public async System.Threading.Tasks.Task ApiCallManagementTestApiCallAsync (ApiCallForTestDTO apiCallForTest) - { - ApiResponse localVarResponse = await ApiCallManagementTestApiCallAsyncWithHttpInfo(apiCallForTest); - return localVarResponse.Data; - - } - - /// - /// This call executes specific API call for gets result - /// - /// Thrown when fails to make API call - /// API call data - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ApiCallManagementTestApiCallAsyncWithHttpInfo (ApiCallForTestDTO apiCallForTest) - { - // verify the required parameter 'apiCallForTest' is set - if (apiCallForTest == null) - throw new ApiException(400, "Missing required parameter 'apiCallForTest' when calling ApiCallManagementApi->ApiCallManagementTestApiCall"); - - var localVarPath = "/api/management/DataSources/ApiCall/Test"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (apiCallForTest != null && apiCallForTest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(apiCallForTest); // http body (model) parameter - } - else - { - localVarPostBody = apiCallForTest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementTestApiCall", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This method updates specific API call - /// - /// Thrown when fails to make API call - /// API call identifier - /// API call data for update - /// ApiCallDTO - public ApiCallDTO ApiCallManagementUpdateApiCall (int? id, ApiCallDTO apiCall) - { - ApiResponse localVarResponse = ApiCallManagementUpdateApiCallWithHttpInfo(id, apiCall); - return localVarResponse.Data; - } - - /// - /// This method updates specific API call - /// - /// Thrown when fails to make API call - /// API call identifier - /// API call data for update - /// ApiResponse of ApiCallDTO - public ApiResponse< ApiCallDTO > ApiCallManagementUpdateApiCallWithHttpInfo (int? id, ApiCallDTO apiCall) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ApiCallManagementApi->ApiCallManagementUpdateApiCall"); - // verify the required parameter 'apiCall' is set - if (apiCall == null) - throw new ApiException(400, "Missing required parameter 'apiCall' when calling ApiCallManagementApi->ApiCallManagementUpdateApiCall"); - - var localVarPath = "/api/management/DataSources/ApiCall/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (apiCall != null && apiCall.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(apiCall); // http body (model) parameter - } - else - { - localVarPostBody = apiCall; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementUpdateApiCall", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ApiCallDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApiCallDTO))); - } - - /// - /// This method updates specific API call - /// - /// Thrown when fails to make API call - /// API call identifier - /// API call data for update - /// Task of ApiCallDTO - public async System.Threading.Tasks.Task ApiCallManagementUpdateApiCallAsync (int? id, ApiCallDTO apiCall) - { - ApiResponse localVarResponse = await ApiCallManagementUpdateApiCallAsyncWithHttpInfo(id, apiCall); - return localVarResponse.Data; - - } - - /// - /// This method updates specific API call - /// - /// Thrown when fails to make API call - /// API call identifier - /// API call data for update - /// Task of ApiResponse (ApiCallDTO) - public async System.Threading.Tasks.Task> ApiCallManagementUpdateApiCallAsyncWithHttpInfo (int? id, ApiCallDTO apiCall) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ApiCallManagementApi->ApiCallManagementUpdateApiCall"); - // verify the required parameter 'apiCall' is set - if (apiCall == null) - throw new ApiException(400, "Missing required parameter 'apiCall' when calling ApiCallManagementApi->ApiCallManagementUpdateApiCall"); - - var localVarPath = "/api/management/DataSources/ApiCall/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (apiCall != null && apiCall.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(apiCall); // http body (model) parameter - } - else - { - localVarPostBody = apiCall; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiCallManagementUpdateApiCall", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ApiCallDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApiCallDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/ArxCeServicesManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/ArxCeServicesManagementApi.cs deleted file mode 100644 index 20a268e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/ArxCeServicesManagementApi.cs +++ /dev/null @@ -1,6083 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IArxCeServicesManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call allows to check or generate business units in Arx-Ce - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Options - /// ArxCeBusinessUnitGeneratorResponseDTO - ArxCeBusinessUnitGeneratorResponseDTO ArxCeServicesManagementArxCeBusinessUnitGeneratorQueue (ArxCeBusinessUnitGeneratorOptionsDTO options); - - /// - /// This call allows to check or generate business units in Arx-Ce - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Options - /// ApiResponse of ArxCeBusinessUnitGeneratorResponseDTO - ApiResponse ArxCeServicesManagementArxCeBusinessUnitGeneratorQueueWithHttpInfo (ArxCeBusinessUnitGeneratorOptionsDTO options); - /// - /// This call allows to clone sending settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// ArxCeCloneSendingSettingsByBusinessUnitResponseDTO - ArxCeCloneSendingSettingsByBusinessUnitResponseDTO ArxCeServicesManagementArxCeCloneSendingSettingsByBusinessUnitQueue (ArxCeCloneOptionsByBusinessUnitDTO options); - - /// - /// This call allows to clone sending settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// ApiResponse of ArxCeCloneSendingSettingsByBusinessUnitResponseDTO - ApiResponse ArxCeServicesManagementArxCeCloneSendingSettingsByBusinessUnitQueueWithHttpInfo (ArxCeCloneOptionsByBusinessUnitDTO options); - /// - /// This call allows to clone sending settings by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// ArxCeCloneSendingSettingsByDocumentTypeResponseDTO - ArxCeCloneSendingSettingsByDocumentTypeResponseDTO ArxCeServicesManagementArxCeCloneSendingSettingsByDocumentTypeQueue (ArxCeCloneOptionsByDocumentTypeDTO options); - - /// - /// This call allows to clone sending settings by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// ApiResponse of ArxCeCloneSendingSettingsByDocumentTypeResponseDTO - ApiResponse ArxCeServicesManagementArxCeCloneSendingSettingsByDocumentTypeQueueWithHttpInfo (ArxCeCloneOptionsByDocumentTypeDTO options); - /// - /// This call checks ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for test - /// bool? - bool? ArxCeServicesManagementCheckArxCeCredentials (ArxCeCredentialsForRequestDTO credentials); - - /// - /// This call checks ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for test - /// ApiResponse of bool? - ApiResponse ArxCeServicesManagementCheckArxCeCredentialsWithHttpInfo (ArxCeCredentialsForRequestDTO credentials); - /// - /// This call deletes ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// - void ArxCeServicesManagementDeleteArxCeCredentials (int? id); - - /// - /// This call deletes ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// ApiResponse of Object(void) - ApiResponse ArxCeServicesManagementDeleteArxCeCredentialsWithHttpInfo (int? id); - /// - /// This call deletes specific ArxCe business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// - void ArxCeServicesManagementDeleteBusinessUnitSettings (int? id); - - /// - /// This call deletes specific ArxCe business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// ApiResponse of Object(void) - ApiResponse ArxCeServicesManagementDeleteBusinessUnitSettingsWithHttpInfo (int? id); - /// - /// This call deletes specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// - void ArxCeServicesManagementDeleteNotificationSettings (int? id); - - /// - /// This call deletes specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// ApiResponse of Object(void) - ApiResponse ArxCeServicesManagementDeleteNotificationSettingsWithHttpInfo (int? id); - /// - /// This call deletes specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// - void ArxCeServicesManagementDeleteSendingSettings (int? id); - - /// - /// This call deletes specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of Object(void) - ApiResponse ArxCeServicesManagementDeleteSendingSettingsWithHttpInfo (int? id); - /// - /// This call returns business units configured in ArxCe - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials - /// List<ArxCeBusinessUnitDTO> - List ArxCeServicesManagementGetArxCeBusinessUnits (ArxCeCredentialsForRequestDTO credentials); - - /// - /// This call returns business units configured in ArxCe - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials - /// ApiResponse of List<ArxCeBusinessUnitDTO> - ApiResponse> ArxCeServicesManagementGetArxCeBusinessUnitsWithHttpInfo (ArxCeCredentialsForRequestDTO credentials); - /// - /// This call returns ArxCe configured credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Global 1: BusinessUnit 2: DocumentType - /// Business unit identifier (optional) - /// Docuemnt type identifier (optional) - /// ArxCeCredentialsTreeDTO - ArxCeCredentialsTreeDTO ArxCeServicesManagementGetArxCeCredentials (int? context, string businessUnitCode = null, int? documentTypeId = null); - - /// - /// This call returns ArxCe configured credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Global 1: BusinessUnit 2: DocumentType - /// Business unit identifier (optional) - /// Docuemnt type identifier (optional) - /// ApiResponse of ArxCeCredentialsTreeDTO - ApiResponse ArxCeServicesManagementGetArxCeCredentialsWithHttpInfo (int? context, string businessUnitCode = null, int? documentTypeId = null); - /// - /// This call returns ArxCe document type details - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// ArxCe document type identifier - /// Credentials - /// ArxCeDocumentTypeDetailDTO - ArxCeDocumentTypeDetailDTO ArxCeServicesManagementGetArxCeDocumentTypeDetails (string businessUnitId, string docTypeId, ArxCeCredentialsForRequestDTO credentials); - - /// - /// This call returns ArxCe document type details - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// ArxCe document type identifier - /// Credentials - /// ApiResponse of ArxCeDocumentTypeDetailDTO - ApiResponse ArxCeServicesManagementGetArxCeDocumentTypeDetailsWithHttpInfo (string businessUnitId, string docTypeId, ArxCeCredentialsForRequestDTO credentials); - /// - /// This call returns document types configured in ArxCe - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// Credentials - /// List<ArxCeDocumentTypeDTO> - List ArxCeServicesManagementGetArxCeDocumentTypes (string businessUnitId, ArxCeCredentialsForRequestDTO credentials); - - /// - /// This call returns document types configured in ArxCe - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// Credentials - /// ApiResponse of List<ArxCeDocumentTypeDTO> - ApiResponse> ArxCeServicesManagementGetArxCeDocumentTypesWithHttpInfo (string businessUnitId, ArxCeCredentialsForRequestDTO credentials); - /// - /// This call returns ArxCe notification types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<ArxCeNotificationDTO> - List ArxCeServicesManagementGetArxCeNotifications (); - - /// - /// This call returns ArxCe notification types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ArxCeNotificationDTO> - ApiResponse> ArxCeServicesManagementGetArxCeNotificationsWithHttpInfo (); - /// - /// This call gets specific business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// ArxCeBusinessUnitSettingsDTO - ArxCeBusinessUnitSettingsDTO ArxCeServicesManagementGetBusinessUnitSettingsById (int? id); - - /// - /// This call gets specific business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// ApiResponse of ArxCeBusinessUnitSettingsDTO - ApiResponse ArxCeServicesManagementGetBusinessUnitSettingsByIdWithHttpInfo (int? id); - /// - /// This call gets business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<ArxCeBusinessUnitSettingsDTO> - List ArxCeServicesManagementGetBusinessUnitsSettings (); - - /// - /// This call gets business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ArxCeBusinessUnitSettingsDTO> - ApiResponse> ArxCeServicesManagementGetBusinessUnitsSettingsWithHttpInfo (); - /// - /// This call gets all notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<ArxCeNotificationSettingsDTO> - List ArxCeServicesManagementGetNotificationSettings (); - - /// - /// This call gets all notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ArxCeNotificationSettingsDTO> - ApiResponse> ArxCeServicesManagementGetNotificationSettingsWithHttpInfo (); - /// - /// This call gets specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// ArxCeNotificationSettingsDTO - ArxCeNotificationSettingsDTO ArxCeServicesManagementGetNotificationSettingsById (int? id); - - /// - /// This call gets specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// ApiResponse of ArxCeNotificationSettingsDTO - ApiResponse ArxCeServicesManagementGetNotificationSettingsByIdWithHttpInfo (int? id); - /// - /// This call gets all sending settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business Unit code - /// List<ArxCeSendingSettingsDTO> - List ArxCeServicesManagementGetSendingSettings (string businessUnitCode); - - /// - /// This call gets all sending settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business Unit code - /// ApiResponse of List<ArxCeSendingSettingsDTO> - ApiResponse> ArxCeServicesManagementGetSendingSettingsWithHttpInfo (string businessUnitCode); - /// - /// This call gets specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ArxCeSendingSettingsDTO - ArxCeSendingSettingsDTO ArxCeServicesManagementGetSendingSettingsById (int? id); - - /// - /// This call gets specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of ArxCeSendingSettingsDTO - ApiResponse ArxCeServicesManagementGetSendingSettingsByIdWithHttpInfo (int? id); - /// - /// This call gets specific settings details for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ArxCeSendingSettingsDetailDTO - ArxCeSendingSettingsDetailDTO ArxCeServicesManagementGetSendingSettingsDetails (int? id); - - /// - /// This call gets specific settings details for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of ArxCeSendingSettingsDetailDTO - ApiResponse ArxCeServicesManagementGetSendingSettingsDetailsWithHttpInfo (int? id); - /// - /// This call inserts ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// - void ArxCeServicesManagementInsertArxCeCredentials (ArxCeCredentialsDTO credentials); - - /// - /// This call inserts ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// ApiResponse of Object(void) - ApiResponse ArxCeServicesManagementInsertArxCeCredentialsWithHttpInfo (ArxCeCredentialsDTO credentials); - /// - /// This call inserts business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// ArxCeBusinessUnitSettingsDTO - ArxCeBusinessUnitSettingsDTO ArxCeServicesManagementInsertBusinessUnitSettings (ArxCeBusinessUnitSettingsDTO businessUnitSettings); - - /// - /// This call inserts business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// ApiResponse of ArxCeBusinessUnitSettingsDTO - ApiResponse ArxCeServicesManagementInsertBusinessUnitSettingsWithHttpInfo (ArxCeBusinessUnitSettingsDTO businessUnitSettings); - /// - /// This call inserts specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// ArxCeNotificationSettingsDTO - ArxCeNotificationSettingsDTO ArxCeServicesManagementInsertNotificationSettings (ArxCeNotificationSettingsDTO notificationSettings); - - /// - /// This call inserts specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// ApiResponse of ArxCeNotificationSettingsDTO - ApiResponse ArxCeServicesManagementInsertNotificationSettingsWithHttpInfo (ArxCeNotificationSettingsDTO notificationSettings); - /// - /// This call inserts specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// ArxCeSendingSettingsDTO - ArxCeSendingSettingsDTO ArxCeServicesManagementInsertSendingSettings (ArxCeSendingSettingsDTO sendingSettings); - - /// - /// This call inserts specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// ApiResponse of ArxCeSendingSettingsDTO - ApiResponse ArxCeServicesManagementInsertSendingSettingsWithHttpInfo (ArxCeSendingSettingsDTO sendingSettings); - /// - /// This call inserts specific settings details for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// - void ArxCeServicesManagementSetSendingSettingsDetails (int? id, ArxCeSendingSettingsDetailDTO sendingSettingsDetails); - - /// - /// This call inserts specific settings details for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// ApiResponse of Object(void) - ApiResponse ArxCeServicesManagementSetSendingSettingsDetailsWithHttpInfo (int? id, ArxCeSendingSettingsDetailDTO sendingSettingsDetails); - /// - /// This call updates ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// - void ArxCeServicesManagementUpdateArxCeCredentials (int? id, ArxCeCredentialsDTO credentials); - - /// - /// This call updates ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// ApiResponse of Object(void) - ApiResponse ArxCeServicesManagementUpdateArxCeCredentialsWithHttpInfo (int? id, ArxCeCredentialsDTO credentials); - /// - /// This call updates business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// ArxCeBusinessUnitSettingsDTO - ArxCeBusinessUnitSettingsDTO ArxCeServicesManagementUpdateBusinessUnitSettings (int? id, ArxCeBusinessUnitSettingsDTO businessUnitSettings); - - /// - /// This call updates business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// ApiResponse of ArxCeBusinessUnitSettingsDTO - ApiResponse ArxCeServicesManagementUpdateBusinessUnitSettingsWithHttpInfo (int? id, ArxCeBusinessUnitSettingsDTO businessUnitSettings); - /// - /// This call updates specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// ArxCeNotificationSettingsDTO - ArxCeNotificationSettingsDTO ArxCeServicesManagementUpdateNotificationSettings (int? id, ArxCeNotificationSettingsDTO notificationSettings); - - /// - /// This call updates specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// ApiResponse of ArxCeNotificationSettingsDTO - ApiResponse ArxCeServicesManagementUpdateNotificationSettingsWithHttpInfo (int? id, ArxCeNotificationSettingsDTO notificationSettings); - /// - /// This call updates specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// ArxCeSendingSettingsDTO - ArxCeSendingSettingsDTO ArxCeServicesManagementUpdateSendingSettings (int? id, ArxCeSendingSettingsDTO sendingSettings); - - /// - /// This call updates specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// ApiResponse of ArxCeSendingSettingsDTO - ApiResponse ArxCeServicesManagementUpdateSendingSettingsWithHttpInfo (int? id, ArxCeSendingSettingsDTO sendingSettings); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call allows to check or generate business units in Arx-Ce - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Options - /// Task of ArxCeBusinessUnitGeneratorResponseDTO - System.Threading.Tasks.Task ArxCeServicesManagementArxCeBusinessUnitGeneratorQueueAsync (ArxCeBusinessUnitGeneratorOptionsDTO options); - - /// - /// This call allows to check or generate business units in Arx-Ce - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Options - /// Task of ApiResponse (ArxCeBusinessUnitGeneratorResponseDTO) - System.Threading.Tasks.Task> ArxCeServicesManagementArxCeBusinessUnitGeneratorQueueAsyncWithHttpInfo (ArxCeBusinessUnitGeneratorOptionsDTO options); - /// - /// This call allows to clone sending settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of ArxCeCloneSendingSettingsByBusinessUnitResponseDTO - System.Threading.Tasks.Task ArxCeServicesManagementArxCeCloneSendingSettingsByBusinessUnitQueueAsync (ArxCeCloneOptionsByBusinessUnitDTO options); - - /// - /// This call allows to clone sending settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of ApiResponse (ArxCeCloneSendingSettingsByBusinessUnitResponseDTO) - System.Threading.Tasks.Task> ArxCeServicesManagementArxCeCloneSendingSettingsByBusinessUnitQueueAsyncWithHttpInfo (ArxCeCloneOptionsByBusinessUnitDTO options); - /// - /// This call allows to clone sending settings by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of ArxCeCloneSendingSettingsByDocumentTypeResponseDTO - System.Threading.Tasks.Task ArxCeServicesManagementArxCeCloneSendingSettingsByDocumentTypeQueueAsync (ArxCeCloneOptionsByDocumentTypeDTO options); - - /// - /// This call allows to clone sending settings by document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of ApiResponse (ArxCeCloneSendingSettingsByDocumentTypeResponseDTO) - System.Threading.Tasks.Task> ArxCeServicesManagementArxCeCloneSendingSettingsByDocumentTypeQueueAsyncWithHttpInfo (ArxCeCloneOptionsByDocumentTypeDTO options); - /// - /// This call checks ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for test - /// Task of bool? - System.Threading.Tasks.Task ArxCeServicesManagementCheckArxCeCredentialsAsync (ArxCeCredentialsForRequestDTO credentials); - - /// - /// This call checks ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for test - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> ArxCeServicesManagementCheckArxCeCredentialsAsyncWithHttpInfo (ArxCeCredentialsForRequestDTO credentials); - /// - /// This call deletes ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Task of void - System.Threading.Tasks.Task ArxCeServicesManagementDeleteArxCeCredentialsAsync (int? id); - - /// - /// This call deletes ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> ArxCeServicesManagementDeleteArxCeCredentialsAsyncWithHttpInfo (int? id); - /// - /// This call deletes specific ArxCe business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of void - System.Threading.Tasks.Task ArxCeServicesManagementDeleteBusinessUnitSettingsAsync (int? id); - - /// - /// This call deletes specific ArxCe business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> ArxCeServicesManagementDeleteBusinessUnitSettingsAsyncWithHttpInfo (int? id); - /// - /// This call deletes specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of void - System.Threading.Tasks.Task ArxCeServicesManagementDeleteNotificationSettingsAsync (int? id); - - /// - /// This call deletes specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> ArxCeServicesManagementDeleteNotificationSettingsAsyncWithHttpInfo (int? id); - /// - /// This call deletes specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of void - System.Threading.Tasks.Task ArxCeServicesManagementDeleteSendingSettingsAsync (int? id); - - /// - /// This call deletes specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> ArxCeServicesManagementDeleteSendingSettingsAsyncWithHttpInfo (int? id); - /// - /// This call returns business units configured in ArxCe - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials - /// Task of List<ArxCeBusinessUnitDTO> - System.Threading.Tasks.Task> ArxCeServicesManagementGetArxCeBusinessUnitsAsync (ArxCeCredentialsForRequestDTO credentials); - - /// - /// This call returns business units configured in ArxCe - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials - /// Task of ApiResponse (List<ArxCeBusinessUnitDTO>) - System.Threading.Tasks.Task>> ArxCeServicesManagementGetArxCeBusinessUnitsAsyncWithHttpInfo (ArxCeCredentialsForRequestDTO credentials); - /// - /// This call returns ArxCe configured credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Global 1: BusinessUnit 2: DocumentType - /// Business unit identifier (optional) - /// Docuemnt type identifier (optional) - /// Task of ArxCeCredentialsTreeDTO - System.Threading.Tasks.Task ArxCeServicesManagementGetArxCeCredentialsAsync (int? context, string businessUnitCode = null, int? documentTypeId = null); - - /// - /// This call returns ArxCe configured credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Global 1: BusinessUnit 2: DocumentType - /// Business unit identifier (optional) - /// Docuemnt type identifier (optional) - /// Task of ApiResponse (ArxCeCredentialsTreeDTO) - System.Threading.Tasks.Task> ArxCeServicesManagementGetArxCeCredentialsAsyncWithHttpInfo (int? context, string businessUnitCode = null, int? documentTypeId = null); - /// - /// This call returns ArxCe document type details - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// ArxCe document type identifier - /// Credentials - /// Task of ArxCeDocumentTypeDetailDTO - System.Threading.Tasks.Task ArxCeServicesManagementGetArxCeDocumentTypeDetailsAsync (string businessUnitId, string docTypeId, ArxCeCredentialsForRequestDTO credentials); - - /// - /// This call returns ArxCe document type details - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// ArxCe document type identifier - /// Credentials - /// Task of ApiResponse (ArxCeDocumentTypeDetailDTO) - System.Threading.Tasks.Task> ArxCeServicesManagementGetArxCeDocumentTypeDetailsAsyncWithHttpInfo (string businessUnitId, string docTypeId, ArxCeCredentialsForRequestDTO credentials); - /// - /// This call returns document types configured in ArxCe - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// Credentials - /// Task of List<ArxCeDocumentTypeDTO> - System.Threading.Tasks.Task> ArxCeServicesManagementGetArxCeDocumentTypesAsync (string businessUnitId, ArxCeCredentialsForRequestDTO credentials); - - /// - /// This call returns document types configured in ArxCe - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// Credentials - /// Task of ApiResponse (List<ArxCeDocumentTypeDTO>) - System.Threading.Tasks.Task>> ArxCeServicesManagementGetArxCeDocumentTypesAsyncWithHttpInfo (string businessUnitId, ArxCeCredentialsForRequestDTO credentials); - /// - /// This call returns ArxCe notification types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<ArxCeNotificationDTO> - System.Threading.Tasks.Task> ArxCeServicesManagementGetArxCeNotificationsAsync (); - - /// - /// This call returns ArxCe notification types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ArxCeNotificationDTO>) - System.Threading.Tasks.Task>> ArxCeServicesManagementGetArxCeNotificationsAsyncWithHttpInfo (); - /// - /// This call gets specific business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of ArxCeBusinessUnitSettingsDTO - System.Threading.Tasks.Task ArxCeServicesManagementGetBusinessUnitSettingsByIdAsync (int? id); - - /// - /// This call gets specific business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of ApiResponse (ArxCeBusinessUnitSettingsDTO) - System.Threading.Tasks.Task> ArxCeServicesManagementGetBusinessUnitSettingsByIdAsyncWithHttpInfo (int? id); - /// - /// This call gets business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<ArxCeBusinessUnitSettingsDTO> - System.Threading.Tasks.Task> ArxCeServicesManagementGetBusinessUnitsSettingsAsync (); - - /// - /// This call gets business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ArxCeBusinessUnitSettingsDTO>) - System.Threading.Tasks.Task>> ArxCeServicesManagementGetBusinessUnitsSettingsAsyncWithHttpInfo (); - /// - /// This call gets all notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<ArxCeNotificationSettingsDTO> - System.Threading.Tasks.Task> ArxCeServicesManagementGetNotificationSettingsAsync (); - - /// - /// This call gets all notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ArxCeNotificationSettingsDTO>) - System.Threading.Tasks.Task>> ArxCeServicesManagementGetNotificationSettingsAsyncWithHttpInfo (); - /// - /// This call gets specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of ArxCeNotificationSettingsDTO - System.Threading.Tasks.Task ArxCeServicesManagementGetNotificationSettingsByIdAsync (int? id); - - /// - /// This call gets specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of ApiResponse (ArxCeNotificationSettingsDTO) - System.Threading.Tasks.Task> ArxCeServicesManagementGetNotificationSettingsByIdAsyncWithHttpInfo (int? id); - /// - /// This call gets all sending settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business Unit code - /// Task of List<ArxCeSendingSettingsDTO> - System.Threading.Tasks.Task> ArxCeServicesManagementGetSendingSettingsAsync (string businessUnitCode); - - /// - /// This call gets all sending settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business Unit code - /// Task of ApiResponse (List<ArxCeSendingSettingsDTO>) - System.Threading.Tasks.Task>> ArxCeServicesManagementGetSendingSettingsAsyncWithHttpInfo (string businessUnitCode); - /// - /// This call gets specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ArxCeSendingSettingsDTO - System.Threading.Tasks.Task ArxCeServicesManagementGetSendingSettingsByIdAsync (int? id); - - /// - /// This call gets specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse (ArxCeSendingSettingsDTO) - System.Threading.Tasks.Task> ArxCeServicesManagementGetSendingSettingsByIdAsyncWithHttpInfo (int? id); - /// - /// This call gets specific settings details for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ArxCeSendingSettingsDetailDTO - System.Threading.Tasks.Task ArxCeServicesManagementGetSendingSettingsDetailsAsync (int? id); - - /// - /// This call gets specific settings details for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse (ArxCeSendingSettingsDetailDTO) - System.Threading.Tasks.Task> ArxCeServicesManagementGetSendingSettingsDetailsAsyncWithHttpInfo (int? id); - /// - /// This call inserts ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// Task of void - System.Threading.Tasks.Task ArxCeServicesManagementInsertArxCeCredentialsAsync (ArxCeCredentialsDTO credentials); - - /// - /// This call inserts ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// Task of ApiResponse - System.Threading.Tasks.Task> ArxCeServicesManagementInsertArxCeCredentialsAsyncWithHttpInfo (ArxCeCredentialsDTO credentials); - /// - /// This call inserts business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// Task of ArxCeBusinessUnitSettingsDTO - System.Threading.Tasks.Task ArxCeServicesManagementInsertBusinessUnitSettingsAsync (ArxCeBusinessUnitSettingsDTO businessUnitSettings); - - /// - /// This call inserts business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// Task of ApiResponse (ArxCeBusinessUnitSettingsDTO) - System.Threading.Tasks.Task> ArxCeServicesManagementInsertBusinessUnitSettingsAsyncWithHttpInfo (ArxCeBusinessUnitSettingsDTO businessUnitSettings); - /// - /// This call inserts specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// Task of ArxCeNotificationSettingsDTO - System.Threading.Tasks.Task ArxCeServicesManagementInsertNotificationSettingsAsync (ArxCeNotificationSettingsDTO notificationSettings); - - /// - /// This call inserts specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// Task of ApiResponse (ArxCeNotificationSettingsDTO) - System.Threading.Tasks.Task> ArxCeServicesManagementInsertNotificationSettingsAsyncWithHttpInfo (ArxCeNotificationSettingsDTO notificationSettings); - /// - /// This call inserts specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// Task of ArxCeSendingSettingsDTO - System.Threading.Tasks.Task ArxCeServicesManagementInsertSendingSettingsAsync (ArxCeSendingSettingsDTO sendingSettings); - - /// - /// This call inserts specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// Task of ApiResponse (ArxCeSendingSettingsDTO) - System.Threading.Tasks.Task> ArxCeServicesManagementInsertSendingSettingsAsyncWithHttpInfo (ArxCeSendingSettingsDTO sendingSettings); - /// - /// This call inserts specific settings details for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// Task of void - System.Threading.Tasks.Task ArxCeServicesManagementSetSendingSettingsDetailsAsync (int? id, ArxCeSendingSettingsDetailDTO sendingSettingsDetails); - - /// - /// This call inserts specific settings details for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// Task of ApiResponse - System.Threading.Tasks.Task> ArxCeServicesManagementSetSendingSettingsDetailsAsyncWithHttpInfo (int? id, ArxCeSendingSettingsDetailDTO sendingSettingsDetails); - /// - /// This call updates ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// Task of void - System.Threading.Tasks.Task ArxCeServicesManagementUpdateArxCeCredentialsAsync (int? id, ArxCeCredentialsDTO credentials); - - /// - /// This call updates ArxCe credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// Task of ApiResponse - System.Threading.Tasks.Task> ArxCeServicesManagementUpdateArxCeCredentialsAsyncWithHttpInfo (int? id, ArxCeCredentialsDTO credentials); - /// - /// This call updates business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// Task of ArxCeBusinessUnitSettingsDTO - System.Threading.Tasks.Task ArxCeServicesManagementUpdateBusinessUnitSettingsAsync (int? id, ArxCeBusinessUnitSettingsDTO businessUnitSettings); - - /// - /// This call updates business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// Task of ApiResponse (ArxCeBusinessUnitSettingsDTO) - System.Threading.Tasks.Task> ArxCeServicesManagementUpdateBusinessUnitSettingsAsyncWithHttpInfo (int? id, ArxCeBusinessUnitSettingsDTO businessUnitSettings); - /// - /// This call updates specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// Task of ArxCeNotificationSettingsDTO - System.Threading.Tasks.Task ArxCeServicesManagementUpdateNotificationSettingsAsync (int? id, ArxCeNotificationSettingsDTO notificationSettings); - - /// - /// This call updates specific notification settings for ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// Task of ApiResponse (ArxCeNotificationSettingsDTO) - System.Threading.Tasks.Task> ArxCeServicesManagementUpdateNotificationSettingsAsyncWithHttpInfo (int? id, ArxCeNotificationSettingsDTO notificationSettings); - /// - /// This call updates specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// Task of ArxCeSendingSettingsDTO - System.Threading.Tasks.Task ArxCeServicesManagementUpdateSendingSettingsAsync (int? id, ArxCeSendingSettingsDTO sendingSettings); - - /// - /// This call updates specific settings for sending docs to ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// Task of ApiResponse (ArxCeSendingSettingsDTO) - System.Threading.Tasks.Task> ArxCeServicesManagementUpdateSendingSettingsAsyncWithHttpInfo (int? id, ArxCeSendingSettingsDTO sendingSettings); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ArxCeServicesManagementApi : IArxCeServicesManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ArxCeServicesManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ArxCeServicesManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call allows to check or generate business units in Arx-Ce - /// - /// Thrown when fails to make API call - /// Options - /// ArxCeBusinessUnitGeneratorResponseDTO - public ArxCeBusinessUnitGeneratorResponseDTO ArxCeServicesManagementArxCeBusinessUnitGeneratorQueue (ArxCeBusinessUnitGeneratorOptionsDTO options) - { - ApiResponse localVarResponse = ArxCeServicesManagementArxCeBusinessUnitGeneratorQueueWithHttpInfo(options); - return localVarResponse.Data; - } - - /// - /// This call allows to check or generate business units in Arx-Ce - /// - /// Thrown when fails to make API call - /// Options - /// ApiResponse of ArxCeBusinessUnitGeneratorResponseDTO - public ApiResponse< ArxCeBusinessUnitGeneratorResponseDTO > ArxCeServicesManagementArxCeBusinessUnitGeneratorQueueWithHttpInfo (ArxCeBusinessUnitGeneratorOptionsDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling ArxCeServicesManagementApi->ArxCeServicesManagementArxCeBusinessUnitGeneratorQueue"); - - var localVarPath = "/api/management/ArxCeServices/BusinessUnits/Generator"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementArxCeBusinessUnitGeneratorQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeBusinessUnitGeneratorResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeBusinessUnitGeneratorResponseDTO))); - } - - /// - /// This call allows to check or generate business units in Arx-Ce - /// - /// Thrown when fails to make API call - /// Options - /// Task of ArxCeBusinessUnitGeneratorResponseDTO - public async System.Threading.Tasks.Task ArxCeServicesManagementArxCeBusinessUnitGeneratorQueueAsync (ArxCeBusinessUnitGeneratorOptionsDTO options) - { - ApiResponse localVarResponse = await ArxCeServicesManagementArxCeBusinessUnitGeneratorQueueAsyncWithHttpInfo(options); - return localVarResponse.Data; - - } - - /// - /// This call allows to check or generate business units in Arx-Ce - /// - /// Thrown when fails to make API call - /// Options - /// Task of ApiResponse (ArxCeBusinessUnitGeneratorResponseDTO) - public async System.Threading.Tasks.Task> ArxCeServicesManagementArxCeBusinessUnitGeneratorQueueAsyncWithHttpInfo (ArxCeBusinessUnitGeneratorOptionsDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling ArxCeServicesManagementApi->ArxCeServicesManagementArxCeBusinessUnitGeneratorQueue"); - - var localVarPath = "/api/management/ArxCeServices/BusinessUnits/Generator"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementArxCeBusinessUnitGeneratorQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeBusinessUnitGeneratorResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeBusinessUnitGeneratorResponseDTO))); - } - - /// - /// This call allows to clone sending settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// ArxCeCloneSendingSettingsByBusinessUnitResponseDTO - public ArxCeCloneSendingSettingsByBusinessUnitResponseDTO ArxCeServicesManagementArxCeCloneSendingSettingsByBusinessUnitQueue (ArxCeCloneOptionsByBusinessUnitDTO options) - { - ApiResponse localVarResponse = ArxCeServicesManagementArxCeCloneSendingSettingsByBusinessUnitQueueWithHttpInfo(options); - return localVarResponse.Data; - } - - /// - /// This call allows to clone sending settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// ApiResponse of ArxCeCloneSendingSettingsByBusinessUnitResponseDTO - public ApiResponse< ArxCeCloneSendingSettingsByBusinessUnitResponseDTO > ArxCeServicesManagementArxCeCloneSendingSettingsByBusinessUnitQueueWithHttpInfo (ArxCeCloneOptionsByBusinessUnitDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling ArxCeServicesManagementApi->ArxCeServicesManagementArxCeCloneSendingSettingsByBusinessUnitQueue"); - - var localVarPath = "/api/management/ArxCeServices/Settings/CloneByBusinessUnit"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementArxCeCloneSendingSettingsByBusinessUnitQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeCloneSendingSettingsByBusinessUnitResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeCloneSendingSettingsByBusinessUnitResponseDTO))); - } - - /// - /// This call allows to clone sending settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of ArxCeCloneSendingSettingsByBusinessUnitResponseDTO - public async System.Threading.Tasks.Task ArxCeServicesManagementArxCeCloneSendingSettingsByBusinessUnitQueueAsync (ArxCeCloneOptionsByBusinessUnitDTO options) - { - ApiResponse localVarResponse = await ArxCeServicesManagementArxCeCloneSendingSettingsByBusinessUnitQueueAsyncWithHttpInfo(options); - return localVarResponse.Data; - - } - - /// - /// This call allows to clone sending settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of ApiResponse (ArxCeCloneSendingSettingsByBusinessUnitResponseDTO) - public async System.Threading.Tasks.Task> ArxCeServicesManagementArxCeCloneSendingSettingsByBusinessUnitQueueAsyncWithHttpInfo (ArxCeCloneOptionsByBusinessUnitDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling ArxCeServicesManagementApi->ArxCeServicesManagementArxCeCloneSendingSettingsByBusinessUnitQueue"); - - var localVarPath = "/api/management/ArxCeServices/Settings/CloneByBusinessUnit"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementArxCeCloneSendingSettingsByBusinessUnitQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeCloneSendingSettingsByBusinessUnitResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeCloneSendingSettingsByBusinessUnitResponseDTO))); - } - - /// - /// This call allows to clone sending settings by document type - /// - /// Thrown when fails to make API call - /// Clone options - /// ArxCeCloneSendingSettingsByDocumentTypeResponseDTO - public ArxCeCloneSendingSettingsByDocumentTypeResponseDTO ArxCeServicesManagementArxCeCloneSendingSettingsByDocumentTypeQueue (ArxCeCloneOptionsByDocumentTypeDTO options) - { - ApiResponse localVarResponse = ArxCeServicesManagementArxCeCloneSendingSettingsByDocumentTypeQueueWithHttpInfo(options); - return localVarResponse.Data; - } - - /// - /// This call allows to clone sending settings by document type - /// - /// Thrown when fails to make API call - /// Clone options - /// ApiResponse of ArxCeCloneSendingSettingsByDocumentTypeResponseDTO - public ApiResponse< ArxCeCloneSendingSettingsByDocumentTypeResponseDTO > ArxCeServicesManagementArxCeCloneSendingSettingsByDocumentTypeQueueWithHttpInfo (ArxCeCloneOptionsByDocumentTypeDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling ArxCeServicesManagementApi->ArxCeServicesManagementArxCeCloneSendingSettingsByDocumentTypeQueue"); - - var localVarPath = "/api/management/ArxCeServices/Settings/CloneByDocumentType"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementArxCeCloneSendingSettingsByDocumentTypeQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeCloneSendingSettingsByDocumentTypeResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeCloneSendingSettingsByDocumentTypeResponseDTO))); - } - - /// - /// This call allows to clone sending settings by document type - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of ArxCeCloneSendingSettingsByDocumentTypeResponseDTO - public async System.Threading.Tasks.Task ArxCeServicesManagementArxCeCloneSendingSettingsByDocumentTypeQueueAsync (ArxCeCloneOptionsByDocumentTypeDTO options) - { - ApiResponse localVarResponse = await ArxCeServicesManagementArxCeCloneSendingSettingsByDocumentTypeQueueAsyncWithHttpInfo(options); - return localVarResponse.Data; - - } - - /// - /// This call allows to clone sending settings by document type - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of ApiResponse (ArxCeCloneSendingSettingsByDocumentTypeResponseDTO) - public async System.Threading.Tasks.Task> ArxCeServicesManagementArxCeCloneSendingSettingsByDocumentTypeQueueAsyncWithHttpInfo (ArxCeCloneOptionsByDocumentTypeDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling ArxCeServicesManagementApi->ArxCeServicesManagementArxCeCloneSendingSettingsByDocumentTypeQueue"); - - var localVarPath = "/api/management/ArxCeServices/Settings/CloneByDocumentType"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementArxCeCloneSendingSettingsByDocumentTypeQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeCloneSendingSettingsByDocumentTypeResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeCloneSendingSettingsByDocumentTypeResponseDTO))); - } - - /// - /// This call checks ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials for test - /// bool? - public bool? ArxCeServicesManagementCheckArxCeCredentials (ArxCeCredentialsForRequestDTO credentials) - { - ApiResponse localVarResponse = ArxCeServicesManagementCheckArxCeCredentialsWithHttpInfo(credentials); - return localVarResponse.Data; - } - - /// - /// This call checks ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials for test - /// ApiResponse of bool? - public ApiResponse< bool? > ArxCeServicesManagementCheckArxCeCredentialsWithHttpInfo (ArxCeCredentialsForRequestDTO credentials) - { - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling ArxCeServicesManagementApi->ArxCeServicesManagementCheckArxCeCredentials"); - - var localVarPath = "/api/management/ArxCeServices/Credentials/Check"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementCheckArxCeCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call checks ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials for test - /// Task of bool? - public async System.Threading.Tasks.Task ArxCeServicesManagementCheckArxCeCredentialsAsync (ArxCeCredentialsForRequestDTO credentials) - { - ApiResponse localVarResponse = await ArxCeServicesManagementCheckArxCeCredentialsAsyncWithHttpInfo(credentials); - return localVarResponse.Data; - - } - - /// - /// This call checks ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials for test - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> ArxCeServicesManagementCheckArxCeCredentialsAsyncWithHttpInfo (ArxCeCredentialsForRequestDTO credentials) - { - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling ArxCeServicesManagementApi->ArxCeServicesManagementCheckArxCeCredentials"); - - var localVarPath = "/api/management/ArxCeServices/Credentials/Check"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementCheckArxCeCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call deletes ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// - public void ArxCeServicesManagementDeleteArxCeCredentials (int? id) - { - ArxCeServicesManagementDeleteArxCeCredentialsWithHttpInfo(id); - } - - /// - /// This call deletes ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// ApiResponse of Object(void) - public ApiResponse ArxCeServicesManagementDeleteArxCeCredentialsWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementDeleteArxCeCredentials"); - - var localVarPath = "/api/management/ArxCeServices/Credentials/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementDeleteArxCeCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Task of void - public async System.Threading.Tasks.Task ArxCeServicesManagementDeleteArxCeCredentialsAsync (int? id) - { - await ArxCeServicesManagementDeleteArxCeCredentialsAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ArxCeServicesManagementDeleteArxCeCredentialsAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementDeleteArxCeCredentials"); - - var localVarPath = "/api/management/ArxCeServices/Credentials/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementDeleteArxCeCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific ArxCe business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// - public void ArxCeServicesManagementDeleteBusinessUnitSettings (int? id) - { - ArxCeServicesManagementDeleteBusinessUnitSettingsWithHttpInfo(id); - } - - /// - /// This call deletes specific ArxCe business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// ApiResponse of Object(void) - public ApiResponse ArxCeServicesManagementDeleteBusinessUnitSettingsWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementDeleteBusinessUnitSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementDeleteBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific ArxCe business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of void - public async System.Threading.Tasks.Task ArxCeServicesManagementDeleteBusinessUnitSettingsAsync (int? id) - { - await ArxCeServicesManagementDeleteBusinessUnitSettingsAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes specific ArxCe business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ArxCeServicesManagementDeleteBusinessUnitSettingsAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementDeleteBusinessUnitSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementDeleteBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// - public void ArxCeServicesManagementDeleteNotificationSettings (int? id) - { - ArxCeServicesManagementDeleteNotificationSettingsWithHttpInfo(id); - } - - /// - /// This call deletes specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// ApiResponse of Object(void) - public ApiResponse ArxCeServicesManagementDeleteNotificationSettingsWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementDeleteNotificationSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementDeleteNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of void - public async System.Threading.Tasks.Task ArxCeServicesManagementDeleteNotificationSettingsAsync (int? id) - { - await ArxCeServicesManagementDeleteNotificationSettingsAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ArxCeServicesManagementDeleteNotificationSettingsAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementDeleteNotificationSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementDeleteNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// - public void ArxCeServicesManagementDeleteSendingSettings (int? id) - { - ArxCeServicesManagementDeleteSendingSettingsWithHttpInfo(id); - } - - /// - /// This call deletes specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of Object(void) - public ApiResponse ArxCeServicesManagementDeleteSendingSettingsWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementDeleteSendingSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementDeleteSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of void - public async System.Threading.Tasks.Task ArxCeServicesManagementDeleteSendingSettingsAsync (int? id) - { - await ArxCeServicesManagementDeleteSendingSettingsAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ArxCeServicesManagementDeleteSendingSettingsAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementDeleteSendingSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementDeleteSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns business units configured in ArxCe - /// - /// Thrown when fails to make API call - /// Credentials - /// List<ArxCeBusinessUnitDTO> - public List ArxCeServicesManagementGetArxCeBusinessUnits (ArxCeCredentialsForRequestDTO credentials) - { - ApiResponse> localVarResponse = ArxCeServicesManagementGetArxCeBusinessUnitsWithHttpInfo(credentials); - return localVarResponse.Data; - } - - /// - /// This call returns business units configured in ArxCe - /// - /// Thrown when fails to make API call - /// Credentials - /// ApiResponse of List<ArxCeBusinessUnitDTO> - public ApiResponse< List > ArxCeServicesManagementGetArxCeBusinessUnitsWithHttpInfo (ArxCeCredentialsForRequestDTO credentials) - { - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetArxCeBusinessUnits"); - - var localVarPath = "/api/management/ArxCeServices/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetArxCeBusinessUnits", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns business units configured in ArxCe - /// - /// Thrown when fails to make API call - /// Credentials - /// Task of List<ArxCeBusinessUnitDTO> - public async System.Threading.Tasks.Task> ArxCeServicesManagementGetArxCeBusinessUnitsAsync (ArxCeCredentialsForRequestDTO credentials) - { - ApiResponse> localVarResponse = await ArxCeServicesManagementGetArxCeBusinessUnitsAsyncWithHttpInfo(credentials); - return localVarResponse.Data; - - } - - /// - /// This call returns business units configured in ArxCe - /// - /// Thrown when fails to make API call - /// Credentials - /// Task of ApiResponse (List<ArxCeBusinessUnitDTO>) - public async System.Threading.Tasks.Task>> ArxCeServicesManagementGetArxCeBusinessUnitsAsyncWithHttpInfo (ArxCeCredentialsForRequestDTO credentials) - { - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetArxCeBusinessUnits"); - - var localVarPath = "/api/management/ArxCeServices/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetArxCeBusinessUnits", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns ArxCe configured credentials - /// - /// Thrown when fails to make API call - /// Possible values: 0: Global 1: BusinessUnit 2: DocumentType - /// Business unit identifier (optional) - /// Docuemnt type identifier (optional) - /// ArxCeCredentialsTreeDTO - public ArxCeCredentialsTreeDTO ArxCeServicesManagementGetArxCeCredentials (int? context, string businessUnitCode = null, int? documentTypeId = null) - { - ApiResponse localVarResponse = ArxCeServicesManagementGetArxCeCredentialsWithHttpInfo(context, businessUnitCode, documentTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns ArxCe configured credentials - /// - /// Thrown when fails to make API call - /// Possible values: 0: Global 1: BusinessUnit 2: DocumentType - /// Business unit identifier (optional) - /// Docuemnt type identifier (optional) - /// ApiResponse of ArxCeCredentialsTreeDTO - public ApiResponse< ArxCeCredentialsTreeDTO > ArxCeServicesManagementGetArxCeCredentialsWithHttpInfo (int? context, string businessUnitCode = null, int? documentTypeId = null) - { - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetArxCeCredentials"); - - var localVarPath = "/api/management/ArxCeServices/Credentials/{context}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (context != null) localVarPathParams.Add("context", this.Configuration.ApiClient.ParameterToString(context)); // path parameter - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - if (documentTypeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "documentTypeId", documentTypeId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetArxCeCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeCredentialsTreeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeCredentialsTreeDTO))); - } - - /// - /// This call returns ArxCe configured credentials - /// - /// Thrown when fails to make API call - /// Possible values: 0: Global 1: BusinessUnit 2: DocumentType - /// Business unit identifier (optional) - /// Docuemnt type identifier (optional) - /// Task of ArxCeCredentialsTreeDTO - public async System.Threading.Tasks.Task ArxCeServicesManagementGetArxCeCredentialsAsync (int? context, string businessUnitCode = null, int? documentTypeId = null) - { - ApiResponse localVarResponse = await ArxCeServicesManagementGetArxCeCredentialsAsyncWithHttpInfo(context, businessUnitCode, documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns ArxCe configured credentials - /// - /// Thrown when fails to make API call - /// Possible values: 0: Global 1: BusinessUnit 2: DocumentType - /// Business unit identifier (optional) - /// Docuemnt type identifier (optional) - /// Task of ApiResponse (ArxCeCredentialsTreeDTO) - public async System.Threading.Tasks.Task> ArxCeServicesManagementGetArxCeCredentialsAsyncWithHttpInfo (int? context, string businessUnitCode = null, int? documentTypeId = null) - { - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetArxCeCredentials"); - - var localVarPath = "/api/management/ArxCeServices/Credentials/{context}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (context != null) localVarPathParams.Add("context", this.Configuration.ApiClient.ParameterToString(context)); // path parameter - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - if (documentTypeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "documentTypeId", documentTypeId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetArxCeCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeCredentialsTreeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeCredentialsTreeDTO))); - } - - /// - /// This call returns ArxCe document type details - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// ArxCe document type identifier - /// Credentials - /// ArxCeDocumentTypeDetailDTO - public ArxCeDocumentTypeDetailDTO ArxCeServicesManagementGetArxCeDocumentTypeDetails (string businessUnitId, string docTypeId, ArxCeCredentialsForRequestDTO credentials) - { - ApiResponse localVarResponse = ArxCeServicesManagementGetArxCeDocumentTypeDetailsWithHttpInfo(businessUnitId, docTypeId, credentials); - return localVarResponse.Data; - } - - /// - /// This call returns ArxCe document type details - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// ArxCe document type identifier - /// Credentials - /// ApiResponse of ArxCeDocumentTypeDetailDTO - public ApiResponse< ArxCeDocumentTypeDetailDTO > ArxCeServicesManagementGetArxCeDocumentTypeDetailsWithHttpInfo (string businessUnitId, string docTypeId, ArxCeCredentialsForRequestDTO credentials) - { - // verify the required parameter 'businessUnitId' is set - if (businessUnitId == null) - throw new ApiException(400, "Missing required parameter 'businessUnitId' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetArxCeDocumentTypeDetails"); - // verify the required parameter 'docTypeId' is set - if (docTypeId == null) - throw new ApiException(400, "Missing required parameter 'docTypeId' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetArxCeDocumentTypeDetails"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetArxCeDocumentTypeDetails"); - - var localVarPath = "/api/management/ArxCeServices/BusinessUnits/{businessUnitId}/DocumentTypes/{docTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitId != null) localVarPathParams.Add("businessUnitId", this.Configuration.ApiClient.ParameterToString(businessUnitId)); // path parameter - if (docTypeId != null) localVarPathParams.Add("docTypeId", this.Configuration.ApiClient.ParameterToString(docTypeId)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetArxCeDocumentTypeDetails", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeDocumentTypeDetailDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeDocumentTypeDetailDTO))); - } - - /// - /// This call returns ArxCe document type details - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// ArxCe document type identifier - /// Credentials - /// Task of ArxCeDocumentTypeDetailDTO - public async System.Threading.Tasks.Task ArxCeServicesManagementGetArxCeDocumentTypeDetailsAsync (string businessUnitId, string docTypeId, ArxCeCredentialsForRequestDTO credentials) - { - ApiResponse localVarResponse = await ArxCeServicesManagementGetArxCeDocumentTypeDetailsAsyncWithHttpInfo(businessUnitId, docTypeId, credentials); - return localVarResponse.Data; - - } - - /// - /// This call returns ArxCe document type details - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// ArxCe document type identifier - /// Credentials - /// Task of ApiResponse (ArxCeDocumentTypeDetailDTO) - public async System.Threading.Tasks.Task> ArxCeServicesManagementGetArxCeDocumentTypeDetailsAsyncWithHttpInfo (string businessUnitId, string docTypeId, ArxCeCredentialsForRequestDTO credentials) - { - // verify the required parameter 'businessUnitId' is set - if (businessUnitId == null) - throw new ApiException(400, "Missing required parameter 'businessUnitId' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetArxCeDocumentTypeDetails"); - // verify the required parameter 'docTypeId' is set - if (docTypeId == null) - throw new ApiException(400, "Missing required parameter 'docTypeId' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetArxCeDocumentTypeDetails"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetArxCeDocumentTypeDetails"); - - var localVarPath = "/api/management/ArxCeServices/BusinessUnits/{businessUnitId}/DocumentTypes/{docTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitId != null) localVarPathParams.Add("businessUnitId", this.Configuration.ApiClient.ParameterToString(businessUnitId)); // path parameter - if (docTypeId != null) localVarPathParams.Add("docTypeId", this.Configuration.ApiClient.ParameterToString(docTypeId)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetArxCeDocumentTypeDetails", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeDocumentTypeDetailDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeDocumentTypeDetailDTO))); - } - - /// - /// This call returns document types configured in ArxCe - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// Credentials - /// List<ArxCeDocumentTypeDTO> - public List ArxCeServicesManagementGetArxCeDocumentTypes (string businessUnitId, ArxCeCredentialsForRequestDTO credentials) - { - ApiResponse> localVarResponse = ArxCeServicesManagementGetArxCeDocumentTypesWithHttpInfo(businessUnitId, credentials); - return localVarResponse.Data; - } - - /// - /// This call returns document types configured in ArxCe - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// Credentials - /// ApiResponse of List<ArxCeDocumentTypeDTO> - public ApiResponse< List > ArxCeServicesManagementGetArxCeDocumentTypesWithHttpInfo (string businessUnitId, ArxCeCredentialsForRequestDTO credentials) - { - // verify the required parameter 'businessUnitId' is set - if (businessUnitId == null) - throw new ApiException(400, "Missing required parameter 'businessUnitId' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetArxCeDocumentTypes"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetArxCeDocumentTypes"); - - var localVarPath = "/api/management/ArxCeServices/BusinessUnits/{businessUnitId}/DocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitId != null) localVarPathParams.Add("businessUnitId", this.Configuration.ApiClient.ParameterToString(businessUnitId)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetArxCeDocumentTypes", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns document types configured in ArxCe - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// Credentials - /// Task of List<ArxCeDocumentTypeDTO> - public async System.Threading.Tasks.Task> ArxCeServicesManagementGetArxCeDocumentTypesAsync (string businessUnitId, ArxCeCredentialsForRequestDTO credentials) - { - ApiResponse> localVarResponse = await ArxCeServicesManagementGetArxCeDocumentTypesAsyncWithHttpInfo(businessUnitId, credentials); - return localVarResponse.Data; - - } - - /// - /// This call returns document types configured in ArxCe - /// - /// Thrown when fails to make API call - /// ArxCe business unit identifier - /// Credentials - /// Task of ApiResponse (List<ArxCeDocumentTypeDTO>) - public async System.Threading.Tasks.Task>> ArxCeServicesManagementGetArxCeDocumentTypesAsyncWithHttpInfo (string businessUnitId, ArxCeCredentialsForRequestDTO credentials) - { - // verify the required parameter 'businessUnitId' is set - if (businessUnitId == null) - throw new ApiException(400, "Missing required parameter 'businessUnitId' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetArxCeDocumentTypes"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetArxCeDocumentTypes"); - - var localVarPath = "/api/management/ArxCeServices/BusinessUnits/{businessUnitId}/DocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitId != null) localVarPathParams.Add("businessUnitId", this.Configuration.ApiClient.ParameterToString(businessUnitId)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetArxCeDocumentTypes", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns ArxCe notification types - /// - /// Thrown when fails to make API call - /// List<ArxCeNotificationDTO> - public List ArxCeServicesManagementGetArxCeNotifications () - { - ApiResponse> localVarResponse = ArxCeServicesManagementGetArxCeNotificationsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns ArxCe notification types - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ArxCeNotificationDTO> - public ApiResponse< List > ArxCeServicesManagementGetArxCeNotificationsWithHttpInfo () - { - - var localVarPath = "/api/management/ArxCeServices/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetArxCeNotifications", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns ArxCe notification types - /// - /// Thrown when fails to make API call - /// Task of List<ArxCeNotificationDTO> - public async System.Threading.Tasks.Task> ArxCeServicesManagementGetArxCeNotificationsAsync () - { - ApiResponse> localVarResponse = await ArxCeServicesManagementGetArxCeNotificationsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns ArxCe notification types - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ArxCeNotificationDTO>) - public async System.Threading.Tasks.Task>> ArxCeServicesManagementGetArxCeNotificationsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/ArxCeServices/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetArxCeNotifications", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets specific business unit configured settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// ArxCeBusinessUnitSettingsDTO - public ArxCeBusinessUnitSettingsDTO ArxCeServicesManagementGetBusinessUnitSettingsById (int? id) - { - ApiResponse localVarResponse = ArxCeServicesManagementGetBusinessUnitSettingsByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets specific business unit configured settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// ApiResponse of ArxCeBusinessUnitSettingsDTO - public ApiResponse< ArxCeBusinessUnitSettingsDTO > ArxCeServicesManagementGetBusinessUnitSettingsByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetBusinessUnitSettingsById"); - - var localVarPath = "/api/management/ArxCeServices/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetBusinessUnitSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeBusinessUnitSettingsDTO))); - } - - /// - /// This call gets specific business unit configured settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of ArxCeBusinessUnitSettingsDTO - public async System.Threading.Tasks.Task ArxCeServicesManagementGetBusinessUnitSettingsByIdAsync (int? id) - { - ApiResponse localVarResponse = await ArxCeServicesManagementGetBusinessUnitSettingsByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets specific business unit configured settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of ApiResponse (ArxCeBusinessUnitSettingsDTO) - public async System.Threading.Tasks.Task> ArxCeServicesManagementGetBusinessUnitSettingsByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetBusinessUnitSettingsById"); - - var localVarPath = "/api/management/ArxCeServices/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetBusinessUnitSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeBusinessUnitSettingsDTO))); - } - - /// - /// This call gets business unit configured settings - /// - /// Thrown when fails to make API call - /// List<ArxCeBusinessUnitSettingsDTO> - public List ArxCeServicesManagementGetBusinessUnitsSettings () - { - ApiResponse> localVarResponse = ArxCeServicesManagementGetBusinessUnitsSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call gets business unit configured settings - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ArxCeBusinessUnitSettingsDTO> - public ApiResponse< List > ArxCeServicesManagementGetBusinessUnitsSettingsWithHttpInfo () - { - - var localVarPath = "/api/management/ArxCeServices/Settings/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetBusinessUnitsSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets business unit configured settings - /// - /// Thrown when fails to make API call - /// Task of List<ArxCeBusinessUnitSettingsDTO> - public async System.Threading.Tasks.Task> ArxCeServicesManagementGetBusinessUnitsSettingsAsync () - { - ApiResponse> localVarResponse = await ArxCeServicesManagementGetBusinessUnitsSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call gets business unit configured settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ArxCeBusinessUnitSettingsDTO>) - public async System.Threading.Tasks.Task>> ArxCeServicesManagementGetBusinessUnitsSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/ArxCeServices/Settings/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetBusinessUnitsSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets all notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// List<ArxCeNotificationSettingsDTO> - public List ArxCeServicesManagementGetNotificationSettings () - { - ApiResponse> localVarResponse = ArxCeServicesManagementGetNotificationSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call gets all notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ArxCeNotificationSettingsDTO> - public ApiResponse< List > ArxCeServicesManagementGetNotificationSettingsWithHttpInfo () - { - - var localVarPath = "/api/management/ArxCeServices/Settings/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets all notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Task of List<ArxCeNotificationSettingsDTO> - public async System.Threading.Tasks.Task> ArxCeServicesManagementGetNotificationSettingsAsync () - { - ApiResponse> localVarResponse = await ArxCeServicesManagementGetNotificationSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call gets all notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ArxCeNotificationSettingsDTO>) - public async System.Threading.Tasks.Task>> ArxCeServicesManagementGetNotificationSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/ArxCeServices/Settings/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// ArxCeNotificationSettingsDTO - public ArxCeNotificationSettingsDTO ArxCeServicesManagementGetNotificationSettingsById (int? id) - { - ApiResponse localVarResponse = ArxCeServicesManagementGetNotificationSettingsByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// ApiResponse of ArxCeNotificationSettingsDTO - public ApiResponse< ArxCeNotificationSettingsDTO > ArxCeServicesManagementGetNotificationSettingsByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetNotificationSettingsById"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetNotificationSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeNotificationSettingsDTO))); - } - - /// - /// This call gets specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of ArxCeNotificationSettingsDTO - public async System.Threading.Tasks.Task ArxCeServicesManagementGetNotificationSettingsByIdAsync (int? id) - { - ApiResponse localVarResponse = await ArxCeServicesManagementGetNotificationSettingsByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of ApiResponse (ArxCeNotificationSettingsDTO) - public async System.Threading.Tasks.Task> ArxCeServicesManagementGetNotificationSettingsByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetNotificationSettingsById"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetNotificationSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeNotificationSettingsDTO))); - } - - /// - /// This call gets all sending settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Business Unit code - /// List<ArxCeSendingSettingsDTO> - public List ArxCeServicesManagementGetSendingSettings (string businessUnitCode) - { - ApiResponse> localVarResponse = ArxCeServicesManagementGetSendingSettingsWithHttpInfo(businessUnitCode); - return localVarResponse.Data; - } - - /// - /// This call gets all sending settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Business Unit code - /// ApiResponse of List<ArxCeSendingSettingsDTO> - public ApiResponse< List > ArxCeServicesManagementGetSendingSettingsWithHttpInfo (string businessUnitCode) - { - // verify the required parameter 'businessUnitCode' is set - if (businessUnitCode == null) - throw new ApiException(400, "Missing required parameter 'businessUnitCode' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetSendingSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Sending"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets all sending settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Business Unit code - /// Task of List<ArxCeSendingSettingsDTO> - public async System.Threading.Tasks.Task> ArxCeServicesManagementGetSendingSettingsAsync (string businessUnitCode) - { - ApiResponse> localVarResponse = await ArxCeServicesManagementGetSendingSettingsAsyncWithHttpInfo(businessUnitCode); - return localVarResponse.Data; - - } - - /// - /// This call gets all sending settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Business Unit code - /// Task of ApiResponse (List<ArxCeSendingSettingsDTO>) - public async System.Threading.Tasks.Task>> ArxCeServicesManagementGetSendingSettingsAsyncWithHttpInfo (string businessUnitCode) - { - // verify the required parameter 'businessUnitCode' is set - if (businessUnitCode == null) - throw new ApiException(400, "Missing required parameter 'businessUnitCode' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetSendingSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Sending"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ArxCeSendingSettingsDTO - public ArxCeSendingSettingsDTO ArxCeServicesManagementGetSendingSettingsById (int? id) - { - ApiResponse localVarResponse = ArxCeServicesManagementGetSendingSettingsByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of ArxCeSendingSettingsDTO - public ApiResponse< ArxCeSendingSettingsDTO > ArxCeServicesManagementGetSendingSettingsByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetSendingSettingsById"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetSendingSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeSendingSettingsDTO))); - } - - /// - /// This call gets specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ArxCeSendingSettingsDTO - public async System.Threading.Tasks.Task ArxCeServicesManagementGetSendingSettingsByIdAsync (int? id) - { - ApiResponse localVarResponse = await ArxCeServicesManagementGetSendingSettingsByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse (ArxCeSendingSettingsDTO) - public async System.Threading.Tasks.Task> ArxCeServicesManagementGetSendingSettingsByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetSendingSettingsById"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetSendingSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeSendingSettingsDTO))); - } - - /// - /// This call gets specific settings details for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ArxCeSendingSettingsDetailDTO - public ArxCeSendingSettingsDetailDTO ArxCeServicesManagementGetSendingSettingsDetails (int? id) - { - ApiResponse localVarResponse = ArxCeServicesManagementGetSendingSettingsDetailsWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets specific settings details for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of ArxCeSendingSettingsDetailDTO - public ApiResponse< ArxCeSendingSettingsDetailDTO > ArxCeServicesManagementGetSendingSettingsDetailsWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetSendingSettingsDetails"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Sending/{id}/Details"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetSendingSettingsDetails", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeSendingSettingsDetailDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeSendingSettingsDetailDTO))); - } - - /// - /// This call gets specific settings details for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ArxCeSendingSettingsDetailDTO - public async System.Threading.Tasks.Task ArxCeServicesManagementGetSendingSettingsDetailsAsync (int? id) - { - ApiResponse localVarResponse = await ArxCeServicesManagementGetSendingSettingsDetailsAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets specific settings details for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse (ArxCeSendingSettingsDetailDTO) - public async System.Threading.Tasks.Task> ArxCeServicesManagementGetSendingSettingsDetailsAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementGetSendingSettingsDetails"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Sending/{id}/Details"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementGetSendingSettingsDetails", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeSendingSettingsDetailDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeSendingSettingsDetailDTO))); - } - - /// - /// This call inserts ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// - public void ArxCeServicesManagementInsertArxCeCredentials (ArxCeCredentialsDTO credentials) - { - ArxCeServicesManagementInsertArxCeCredentialsWithHttpInfo(credentials); - } - - /// - /// This call inserts ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// ApiResponse of Object(void) - public ApiResponse ArxCeServicesManagementInsertArxCeCredentialsWithHttpInfo (ArxCeCredentialsDTO credentials) - { - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling ArxCeServicesManagementApi->ArxCeServicesManagementInsertArxCeCredentials"); - - var localVarPath = "/api/management/ArxCeServices/Credentials"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementInsertArxCeCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// Task of void - public async System.Threading.Tasks.Task ArxCeServicesManagementInsertArxCeCredentialsAsync (ArxCeCredentialsDTO credentials) - { - await ArxCeServicesManagementInsertArxCeCredentialsAsyncWithHttpInfo(credentials); - - } - - /// - /// This call inserts ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ArxCeServicesManagementInsertArxCeCredentialsAsyncWithHttpInfo (ArxCeCredentialsDTO credentials) - { - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling ArxCeServicesManagementApi->ArxCeServicesManagementInsertArxCeCredentials"); - - var localVarPath = "/api/management/ArxCeServices/Credentials"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementInsertArxCeCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// ArxCeBusinessUnitSettingsDTO - public ArxCeBusinessUnitSettingsDTO ArxCeServicesManagementInsertBusinessUnitSettings (ArxCeBusinessUnitSettingsDTO businessUnitSettings) - { - ApiResponse localVarResponse = ArxCeServicesManagementInsertBusinessUnitSettingsWithHttpInfo(businessUnitSettings); - return localVarResponse.Data; - } - - /// - /// This call inserts business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// ApiResponse of ArxCeBusinessUnitSettingsDTO - public ApiResponse< ArxCeBusinessUnitSettingsDTO > ArxCeServicesManagementInsertBusinessUnitSettingsWithHttpInfo (ArxCeBusinessUnitSettingsDTO businessUnitSettings) - { - // verify the required parameter 'businessUnitSettings' is set - if (businessUnitSettings == null) - throw new ApiException(400, "Missing required parameter 'businessUnitSettings' when calling ArxCeServicesManagementApi->ArxCeServicesManagementInsertBusinessUnitSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitSettings != null && businessUnitSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitSettings); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementInsertBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeBusinessUnitSettingsDTO))); - } - - /// - /// This call inserts business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// Task of ArxCeBusinessUnitSettingsDTO - public async System.Threading.Tasks.Task ArxCeServicesManagementInsertBusinessUnitSettingsAsync (ArxCeBusinessUnitSettingsDTO businessUnitSettings) - { - ApiResponse localVarResponse = await ArxCeServicesManagementInsertBusinessUnitSettingsAsyncWithHttpInfo(businessUnitSettings); - return localVarResponse.Data; - - } - - /// - /// This call inserts business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// Task of ApiResponse (ArxCeBusinessUnitSettingsDTO) - public async System.Threading.Tasks.Task> ArxCeServicesManagementInsertBusinessUnitSettingsAsyncWithHttpInfo (ArxCeBusinessUnitSettingsDTO businessUnitSettings) - { - // verify the required parameter 'businessUnitSettings' is set - if (businessUnitSettings == null) - throw new ApiException(400, "Missing required parameter 'businessUnitSettings' when calling ArxCeServicesManagementApi->ArxCeServicesManagementInsertBusinessUnitSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitSettings != null && businessUnitSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitSettings); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementInsertBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeBusinessUnitSettingsDTO))); - } - - /// - /// This call inserts specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// ArxCeNotificationSettingsDTO - public ArxCeNotificationSettingsDTO ArxCeServicesManagementInsertNotificationSettings (ArxCeNotificationSettingsDTO notificationSettings) - { - ApiResponse localVarResponse = ArxCeServicesManagementInsertNotificationSettingsWithHttpInfo(notificationSettings); - return localVarResponse.Data; - } - - /// - /// This call inserts specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// ApiResponse of ArxCeNotificationSettingsDTO - public ApiResponse< ArxCeNotificationSettingsDTO > ArxCeServicesManagementInsertNotificationSettingsWithHttpInfo (ArxCeNotificationSettingsDTO notificationSettings) - { - // verify the required parameter 'notificationSettings' is set - if (notificationSettings == null) - throw new ApiException(400, "Missing required parameter 'notificationSettings' when calling ArxCeServicesManagementApi->ArxCeServicesManagementInsertNotificationSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (notificationSettings != null && notificationSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(notificationSettings); // http body (model) parameter - } - else - { - localVarPostBody = notificationSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementInsertNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeNotificationSettingsDTO))); - } - - /// - /// This call inserts specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// Task of ArxCeNotificationSettingsDTO - public async System.Threading.Tasks.Task ArxCeServicesManagementInsertNotificationSettingsAsync (ArxCeNotificationSettingsDTO notificationSettings) - { - ApiResponse localVarResponse = await ArxCeServicesManagementInsertNotificationSettingsAsyncWithHttpInfo(notificationSettings); - return localVarResponse.Data; - - } - - /// - /// This call inserts specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// Task of ApiResponse (ArxCeNotificationSettingsDTO) - public async System.Threading.Tasks.Task> ArxCeServicesManagementInsertNotificationSettingsAsyncWithHttpInfo (ArxCeNotificationSettingsDTO notificationSettings) - { - // verify the required parameter 'notificationSettings' is set - if (notificationSettings == null) - throw new ApiException(400, "Missing required parameter 'notificationSettings' when calling ArxCeServicesManagementApi->ArxCeServicesManagementInsertNotificationSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (notificationSettings != null && notificationSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(notificationSettings); // http body (model) parameter - } - else - { - localVarPostBody = notificationSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementInsertNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeNotificationSettingsDTO))); - } - - /// - /// This call inserts specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// ArxCeSendingSettingsDTO - public ArxCeSendingSettingsDTO ArxCeServicesManagementInsertSendingSettings (ArxCeSendingSettingsDTO sendingSettings) - { - ApiResponse localVarResponse = ArxCeServicesManagementInsertSendingSettingsWithHttpInfo(sendingSettings); - return localVarResponse.Data; - } - - /// - /// This call inserts specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// ApiResponse of ArxCeSendingSettingsDTO - public ApiResponse< ArxCeSendingSettingsDTO > ArxCeServicesManagementInsertSendingSettingsWithHttpInfo (ArxCeSendingSettingsDTO sendingSettings) - { - // verify the required parameter 'sendingSettings' is set - if (sendingSettings == null) - throw new ApiException(400, "Missing required parameter 'sendingSettings' when calling ArxCeServicesManagementApi->ArxCeServicesManagementInsertSendingSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Sending"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sendingSettings != null && sendingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettings); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementInsertSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeSendingSettingsDTO))); - } - - /// - /// This call inserts specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// Task of ArxCeSendingSettingsDTO - public async System.Threading.Tasks.Task ArxCeServicesManagementInsertSendingSettingsAsync (ArxCeSendingSettingsDTO sendingSettings) - { - ApiResponse localVarResponse = await ArxCeServicesManagementInsertSendingSettingsAsyncWithHttpInfo(sendingSettings); - return localVarResponse.Data; - - } - - /// - /// This call inserts specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// Task of ApiResponse (ArxCeSendingSettingsDTO) - public async System.Threading.Tasks.Task> ArxCeServicesManagementInsertSendingSettingsAsyncWithHttpInfo (ArxCeSendingSettingsDTO sendingSettings) - { - // verify the required parameter 'sendingSettings' is set - if (sendingSettings == null) - throw new ApiException(400, "Missing required parameter 'sendingSettings' when calling ArxCeServicesManagementApi->ArxCeServicesManagementInsertSendingSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Sending"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sendingSettings != null && sendingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettings); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementInsertSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeSendingSettingsDTO))); - } - - /// - /// This call inserts specific settings details for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// - public void ArxCeServicesManagementSetSendingSettingsDetails (int? id, ArxCeSendingSettingsDetailDTO sendingSettingsDetails) - { - ArxCeServicesManagementSetSendingSettingsDetailsWithHttpInfo(id, sendingSettingsDetails); - } - - /// - /// This call inserts specific settings details for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// ApiResponse of Object(void) - public ApiResponse ArxCeServicesManagementSetSendingSettingsDetailsWithHttpInfo (int? id, ArxCeSendingSettingsDetailDTO sendingSettingsDetails) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementSetSendingSettingsDetails"); - // verify the required parameter 'sendingSettingsDetails' is set - if (sendingSettingsDetails == null) - throw new ApiException(400, "Missing required parameter 'sendingSettingsDetails' when calling ArxCeServicesManagementApi->ArxCeServicesManagementSetSendingSettingsDetails"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Sending/{id}/Details"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sendingSettingsDetails != null && sendingSettingsDetails.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettingsDetails); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettingsDetails; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementSetSendingSettingsDetails", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts specific settings details for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// Task of void - public async System.Threading.Tasks.Task ArxCeServicesManagementSetSendingSettingsDetailsAsync (int? id, ArxCeSendingSettingsDetailDTO sendingSettingsDetails) - { - await ArxCeServicesManagementSetSendingSettingsDetailsAsyncWithHttpInfo(id, sendingSettingsDetails); - - } - - /// - /// This call inserts specific settings details for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ArxCeServicesManagementSetSendingSettingsDetailsAsyncWithHttpInfo (int? id, ArxCeSendingSettingsDetailDTO sendingSettingsDetails) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementSetSendingSettingsDetails"); - // verify the required parameter 'sendingSettingsDetails' is set - if (sendingSettingsDetails == null) - throw new ApiException(400, "Missing required parameter 'sendingSettingsDetails' when calling ArxCeServicesManagementApi->ArxCeServicesManagementSetSendingSettingsDetails"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Sending/{id}/Details"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sendingSettingsDetails != null && sendingSettingsDetails.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettingsDetails); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettingsDetails; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementSetSendingSettingsDetails", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// - public void ArxCeServicesManagementUpdateArxCeCredentials (int? id, ArxCeCredentialsDTO credentials) - { - ArxCeServicesManagementUpdateArxCeCredentialsWithHttpInfo(id, credentials); - } - - /// - /// This call updates ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// ApiResponse of Object(void) - public ApiResponse ArxCeServicesManagementUpdateArxCeCredentialsWithHttpInfo (int? id, ArxCeCredentialsDTO credentials) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateArxCeCredentials"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateArxCeCredentials"); - - var localVarPath = "/api/management/ArxCeServices/Credentials/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementUpdateArxCeCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// Task of void - public async System.Threading.Tasks.Task ArxCeServicesManagementUpdateArxCeCredentialsAsync (int? id, ArxCeCredentialsDTO credentials) - { - await ArxCeServicesManagementUpdateArxCeCredentialsAsyncWithHttpInfo(id, credentials); - - } - - /// - /// This call updates ArxCe credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ArxCeServicesManagementUpdateArxCeCredentialsAsyncWithHttpInfo (int? id, ArxCeCredentialsDTO credentials) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateArxCeCredentials"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateArxCeCredentials"); - - var localVarPath = "/api/management/ArxCeServices/Credentials/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementUpdateArxCeCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// ArxCeBusinessUnitSettingsDTO - public ArxCeBusinessUnitSettingsDTO ArxCeServicesManagementUpdateBusinessUnitSettings (int? id, ArxCeBusinessUnitSettingsDTO businessUnitSettings) - { - ApiResponse localVarResponse = ArxCeServicesManagementUpdateBusinessUnitSettingsWithHttpInfo(id, businessUnitSettings); - return localVarResponse.Data; - } - - /// - /// This call updates business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// ApiResponse of ArxCeBusinessUnitSettingsDTO - public ApiResponse< ArxCeBusinessUnitSettingsDTO > ArxCeServicesManagementUpdateBusinessUnitSettingsWithHttpInfo (int? id, ArxCeBusinessUnitSettingsDTO businessUnitSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateBusinessUnitSettings"); - // verify the required parameter 'businessUnitSettings' is set - if (businessUnitSettings == null) - throw new ApiException(400, "Missing required parameter 'businessUnitSettings' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateBusinessUnitSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (businessUnitSettings != null && businessUnitSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitSettings); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementUpdateBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeBusinessUnitSettingsDTO))); - } - - /// - /// This call updates business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// Task of ArxCeBusinessUnitSettingsDTO - public async System.Threading.Tasks.Task ArxCeServicesManagementUpdateBusinessUnitSettingsAsync (int? id, ArxCeBusinessUnitSettingsDTO businessUnitSettings) - { - ApiResponse localVarResponse = await ArxCeServicesManagementUpdateBusinessUnitSettingsAsyncWithHttpInfo(id, businessUnitSettings); - return localVarResponse.Data; - - } - - /// - /// This call updates business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// Task of ApiResponse (ArxCeBusinessUnitSettingsDTO) - public async System.Threading.Tasks.Task> ArxCeServicesManagementUpdateBusinessUnitSettingsAsyncWithHttpInfo (int? id, ArxCeBusinessUnitSettingsDTO businessUnitSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateBusinessUnitSettings"); - // verify the required parameter 'businessUnitSettings' is set - if (businessUnitSettings == null) - throw new ApiException(400, "Missing required parameter 'businessUnitSettings' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateBusinessUnitSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (businessUnitSettings != null && businessUnitSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitSettings); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementUpdateBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeBusinessUnitSettingsDTO))); - } - - /// - /// This call updates specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// ArxCeNotificationSettingsDTO - public ArxCeNotificationSettingsDTO ArxCeServicesManagementUpdateNotificationSettings (int? id, ArxCeNotificationSettingsDTO notificationSettings) - { - ApiResponse localVarResponse = ArxCeServicesManagementUpdateNotificationSettingsWithHttpInfo(id, notificationSettings); - return localVarResponse.Data; - } - - /// - /// This call updates specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// ApiResponse of ArxCeNotificationSettingsDTO - public ApiResponse< ArxCeNotificationSettingsDTO > ArxCeServicesManagementUpdateNotificationSettingsWithHttpInfo (int? id, ArxCeNotificationSettingsDTO notificationSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateNotificationSettings"); - // verify the required parameter 'notificationSettings' is set - if (notificationSettings == null) - throw new ApiException(400, "Missing required parameter 'notificationSettings' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateNotificationSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (notificationSettings != null && notificationSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(notificationSettings); // http body (model) parameter - } - else - { - localVarPostBody = notificationSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementUpdateNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeNotificationSettingsDTO))); - } - - /// - /// This call updates specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// Task of ArxCeNotificationSettingsDTO - public async System.Threading.Tasks.Task ArxCeServicesManagementUpdateNotificationSettingsAsync (int? id, ArxCeNotificationSettingsDTO notificationSettings) - { - ApiResponse localVarResponse = await ArxCeServicesManagementUpdateNotificationSettingsAsyncWithHttpInfo(id, notificationSettings); - return localVarResponse.Data; - - } - - /// - /// This call updates specific notification settings for ARX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// Task of ApiResponse (ArxCeNotificationSettingsDTO) - public async System.Threading.Tasks.Task> ArxCeServicesManagementUpdateNotificationSettingsAsyncWithHttpInfo (int? id, ArxCeNotificationSettingsDTO notificationSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateNotificationSettings"); - // verify the required parameter 'notificationSettings' is set - if (notificationSettings == null) - throw new ApiException(400, "Missing required parameter 'notificationSettings' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateNotificationSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (notificationSettings != null && notificationSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(notificationSettings); // http body (model) parameter - } - else - { - localVarPostBody = notificationSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementUpdateNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeNotificationSettingsDTO))); - } - - /// - /// This call updates specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// ArxCeSendingSettingsDTO - public ArxCeSendingSettingsDTO ArxCeServicesManagementUpdateSendingSettings (int? id, ArxCeSendingSettingsDTO sendingSettings) - { - ApiResponse localVarResponse = ArxCeServicesManagementUpdateSendingSettingsWithHttpInfo(id, sendingSettings); - return localVarResponse.Data; - } - - /// - /// This call updates specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// ApiResponse of ArxCeSendingSettingsDTO - public ApiResponse< ArxCeSendingSettingsDTO > ArxCeServicesManagementUpdateSendingSettingsWithHttpInfo (int? id, ArxCeSendingSettingsDTO sendingSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateSendingSettings"); - // verify the required parameter 'sendingSettings' is set - if (sendingSettings == null) - throw new ApiException(400, "Missing required parameter 'sendingSettings' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateSendingSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sendingSettings != null && sendingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettings); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementUpdateSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeSendingSettingsDTO))); - } - - /// - /// This call updates specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// Task of ArxCeSendingSettingsDTO - public async System.Threading.Tasks.Task ArxCeServicesManagementUpdateSendingSettingsAsync (int? id, ArxCeSendingSettingsDTO sendingSettings) - { - ApiResponse localVarResponse = await ArxCeServicesManagementUpdateSendingSettingsAsyncWithHttpInfo(id, sendingSettings); - return localVarResponse.Data; - - } - - /// - /// This call updates specific settings for sending docs to ARX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// Task of ApiResponse (ArxCeSendingSettingsDTO) - public async System.Threading.Tasks.Task> ArxCeServicesManagementUpdateSendingSettingsAsyncWithHttpInfo (int? id, ArxCeSendingSettingsDTO sendingSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateSendingSettings"); - // verify the required parameter 'sendingSettings' is set - if (sendingSettings == null) - throw new ApiException(400, "Missing required parameter 'sendingSettings' when calling ArxCeServicesManagementApi->ArxCeServicesManagementUpdateSendingSettings"); - - var localVarPath = "/api/management/ArxCeServices/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sendingSettings != null && sendingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettings); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxCeServicesManagementUpdateSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxCeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxCeSendingSettingsDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/ArxESignConfigurationManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/ArxESignConfigurationManagementApi.cs deleted file mode 100644 index 6db7a3c..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/ArxESignConfigurationManagementApi.cs +++ /dev/null @@ -1,695 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IArxESignConfigurationManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// Get ARXeSigN configuration (License module ARXESIGN required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ArxESignConfigurationDto - ArxESignConfigurationDto ArxESignConfigurationManagementGetArxESignConfiguration (); - - /// - /// Get ARXeSigN configuration (License module ARXESIGN required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of ArxESignConfigurationDto - ApiResponse ArxESignConfigurationManagementGetArxESignConfigurationWithHttpInfo (); - /// - /// Get ARXeSigN configuration status - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ArxESignConfigurationStatusDto - ArxESignConfigurationStatusDto ArxESignConfigurationManagementGetArxESignConfigurationStatus (); - - /// - /// Get ARXeSigN configuration status - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of ArxESignConfigurationStatusDto - ApiResponse ArxESignConfigurationManagementGetArxESignConfigurationStatusWithHttpInfo (); - /// - /// Update ARXeSigN configuration (License module ARXESIGN required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ArxESignConfigurationDto - ArxESignConfigurationDto ArxESignConfigurationManagementUpdateArxESignConfiguration (ArxESignConfigurationUpdateDto arxESignConfigurationUpdate); - - /// - /// Update ARXeSigN configuration (License module ARXESIGN required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ArxESignConfigurationDto - ApiResponse ArxESignConfigurationManagementUpdateArxESignConfigurationWithHttpInfo (ArxESignConfigurationUpdateDto arxESignConfigurationUpdate); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// Get ARXeSigN configuration (License module ARXESIGN required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ArxESignConfigurationDto - System.Threading.Tasks.Task ArxESignConfigurationManagementGetArxESignConfigurationAsync (); - - /// - /// Get ARXeSigN configuration (License module ARXESIGN required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (ArxESignConfigurationDto) - System.Threading.Tasks.Task> ArxESignConfigurationManagementGetArxESignConfigurationAsyncWithHttpInfo (); - /// - /// Get ARXeSigN configuration status - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ArxESignConfigurationStatusDto - System.Threading.Tasks.Task ArxESignConfigurationManagementGetArxESignConfigurationStatusAsync (); - - /// - /// Get ARXeSigN configuration status - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (ArxESignConfigurationStatusDto) - System.Threading.Tasks.Task> ArxESignConfigurationManagementGetArxESignConfigurationStatusAsyncWithHttpInfo (); - /// - /// Update ARXeSigN configuration (License module ARXESIGN required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ArxESignConfigurationDto - System.Threading.Tasks.Task ArxESignConfigurationManagementUpdateArxESignConfigurationAsync (ArxESignConfigurationUpdateDto arxESignConfigurationUpdate); - - /// - /// Update ARXeSigN configuration (License module ARXESIGN required) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ArxESignConfigurationDto) - System.Threading.Tasks.Task> ArxESignConfigurationManagementUpdateArxESignConfigurationAsyncWithHttpInfo (ArxESignConfigurationUpdateDto arxESignConfigurationUpdate); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ArxESignConfigurationManagementApi : IArxESignConfigurationManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ArxESignConfigurationManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ArxESignConfigurationManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// Get ARXeSigN configuration (License module ARXESIGN required) - /// - /// Thrown when fails to make API call - /// ArxESignConfigurationDto - public ArxESignConfigurationDto ArxESignConfigurationManagementGetArxESignConfiguration () - { - ApiResponse localVarResponse = ArxESignConfigurationManagementGetArxESignConfigurationWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Get ARXeSigN configuration (License module ARXESIGN required) - /// - /// Thrown when fails to make API call - /// ApiResponse of ArxESignConfigurationDto - public ApiResponse< ArxESignConfigurationDto > ArxESignConfigurationManagementGetArxESignConfigurationWithHttpInfo () - { - - var localVarPath = "/api/management/ArxESignConfiguration/Configuration"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignConfigurationManagementGetArxESignConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxESignConfigurationDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxESignConfigurationDto))); - } - - /// - /// Get ARXeSigN configuration (License module ARXESIGN required) - /// - /// Thrown when fails to make API call - /// Task of ArxESignConfigurationDto - public async System.Threading.Tasks.Task ArxESignConfigurationManagementGetArxESignConfigurationAsync () - { - ApiResponse localVarResponse = await ArxESignConfigurationManagementGetArxESignConfigurationAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// Get ARXeSigN configuration (License module ARXESIGN required) - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (ArxESignConfigurationDto) - public async System.Threading.Tasks.Task> ArxESignConfigurationManagementGetArxESignConfigurationAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/ArxESignConfiguration/Configuration"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignConfigurationManagementGetArxESignConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxESignConfigurationDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxESignConfigurationDto))); - } - - /// - /// Get ARXeSigN configuration status - /// - /// Thrown when fails to make API call - /// ArxESignConfigurationStatusDto - public ArxESignConfigurationStatusDto ArxESignConfigurationManagementGetArxESignConfigurationStatus () - { - ApiResponse localVarResponse = ArxESignConfigurationManagementGetArxESignConfigurationStatusWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Get ARXeSigN configuration status - /// - /// Thrown when fails to make API call - /// ApiResponse of ArxESignConfigurationStatusDto - public ApiResponse< ArxESignConfigurationStatusDto > ArxESignConfigurationManagementGetArxESignConfigurationStatusWithHttpInfo () - { - - var localVarPath = "/api/management/ArxESignConfiguration/Status"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignConfigurationManagementGetArxESignConfigurationStatus", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxESignConfigurationStatusDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxESignConfigurationStatusDto))); - } - - /// - /// Get ARXeSigN configuration status - /// - /// Thrown when fails to make API call - /// Task of ArxESignConfigurationStatusDto - public async System.Threading.Tasks.Task ArxESignConfigurationManagementGetArxESignConfigurationStatusAsync () - { - ApiResponse localVarResponse = await ArxESignConfigurationManagementGetArxESignConfigurationStatusAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// Get ARXeSigN configuration status - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (ArxESignConfigurationStatusDto) - public async System.Threading.Tasks.Task> ArxESignConfigurationManagementGetArxESignConfigurationStatusAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/ArxESignConfiguration/Status"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignConfigurationManagementGetArxESignConfigurationStatus", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxESignConfigurationStatusDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxESignConfigurationStatusDto))); - } - - /// - /// Update ARXeSigN configuration (License module ARXESIGN required) - /// - /// Thrown when fails to make API call - /// - /// ArxESignConfigurationDto - public ArxESignConfigurationDto ArxESignConfigurationManagementUpdateArxESignConfiguration (ArxESignConfigurationUpdateDto arxESignConfigurationUpdate) - { - ApiResponse localVarResponse = ArxESignConfigurationManagementUpdateArxESignConfigurationWithHttpInfo(arxESignConfigurationUpdate); - return localVarResponse.Data; - } - - /// - /// Update ARXeSigN configuration (License module ARXESIGN required) - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ArxESignConfigurationDto - public ApiResponse< ArxESignConfigurationDto > ArxESignConfigurationManagementUpdateArxESignConfigurationWithHttpInfo (ArxESignConfigurationUpdateDto arxESignConfigurationUpdate) - { - // verify the required parameter 'arxESignConfigurationUpdate' is set - if (arxESignConfigurationUpdate == null) - throw new ApiException(400, "Missing required parameter 'arxESignConfigurationUpdate' when calling ArxESignConfigurationManagementApi->ArxESignConfigurationManagementUpdateArxESignConfiguration"); - - var localVarPath = "/api/management/ArxESignConfiguration/Configuration"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (arxESignConfigurationUpdate != null && arxESignConfigurationUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(arxESignConfigurationUpdate); // http body (model) parameter - } - else - { - localVarPostBody = arxESignConfigurationUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignConfigurationManagementUpdateArxESignConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxESignConfigurationDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxESignConfigurationDto))); - } - - /// - /// Update ARXeSigN configuration (License module ARXESIGN required) - /// - /// Thrown when fails to make API call - /// - /// Task of ArxESignConfigurationDto - public async System.Threading.Tasks.Task ArxESignConfigurationManagementUpdateArxESignConfigurationAsync (ArxESignConfigurationUpdateDto arxESignConfigurationUpdate) - { - ApiResponse localVarResponse = await ArxESignConfigurationManagementUpdateArxESignConfigurationAsyncWithHttpInfo(arxESignConfigurationUpdate); - return localVarResponse.Data; - - } - - /// - /// Update ARXeSigN configuration (License module ARXESIGN required) - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ArxESignConfigurationDto) - public async System.Threading.Tasks.Task> ArxESignConfigurationManagementUpdateArxESignConfigurationAsyncWithHttpInfo (ArxESignConfigurationUpdateDto arxESignConfigurationUpdate) - { - // verify the required parameter 'arxESignConfigurationUpdate' is set - if (arxESignConfigurationUpdate == null) - throw new ApiException(400, "Missing required parameter 'arxESignConfigurationUpdate' when calling ArxESignConfigurationManagementApi->ArxESignConfigurationManagementUpdateArxESignConfiguration"); - - var localVarPath = "/api/management/ArxESignConfiguration/Configuration"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (arxESignConfigurationUpdate != null && arxESignConfigurationUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(arxESignConfigurationUpdate); // http body (model) parameter - } - else - { - localVarPostBody = arxESignConfigurationUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ArxESignConfigurationManagementUpdateArxESignConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArxESignConfigurationDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArxESignConfigurationDto))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/BusinessUnitsManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/BusinessUnitsManagementApi.cs deleted file mode 100644 index bca6251..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/BusinessUnitsManagementApi.cs +++ /dev/null @@ -1,1760 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IBusinessUnitsManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call duplicate an Business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit options for clone operation - /// BusinessUnitBaseDTO - BusinessUnitBaseDTO BusinessUnitsManagementClone (BusinessUnitCloneOptionsDTO cloneOptions); - - /// - /// This call duplicate an Business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit options for clone operation - /// ApiResponse of BusinessUnitBaseDTO - ApiResponse BusinessUnitsManagementCloneWithHttpInfo (BusinessUnitCloneOptionsDTO cloneOptions); - /// - /// This call deletes Business unit specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit - /// - void BusinessUnitsManagementDelete (BusinessUnitDTO businessUnit); - - /// - /// This call deletes Business unit specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit - /// ApiResponse of Object(void) - ApiResponse BusinessUnitsManagementDeleteWithHttpInfo (BusinessUnitDTO businessUnit); - /// - /// This call returns the business unit that the connected user can see - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<BusinessUnitBaseDTO> - List BusinessUnitsManagementGet (); - - /// - /// This call returns the business unit that the connected user can see - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<BusinessUnitBaseDTO> - ApiResponse> BusinessUnitsManagementGetWithHttpInfo (); - /// - /// This call gets Business unit data - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit - /// BusinessUnitBaseDTO - BusinessUnitBaseDTO BusinessUnitsManagementGetAooByCode (BusinessUnitDTO businessUnit); - - /// - /// This call gets Business unit data - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit - /// ApiResponse of BusinessUnitBaseDTO - ApiResponse BusinessUnitsManagementGetAooByCodeWithHttpInfo (BusinessUnitDTO businessUnit); - /// - /// This call inserts a new Business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit information to insert - /// BusinessUnitBaseDTO - BusinessUnitBaseDTO BusinessUnitsManagementInsert (BusinessUnitForOperationsDTO businessUnitInsert); - - /// - /// This call inserts a new Business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit information to insert - /// ApiResponse of BusinessUnitBaseDTO - ApiResponse BusinessUnitsManagementInsertWithHttpInfo (BusinessUnitForOperationsDTO businessUnitInsert); - /// - /// This call retrieve Business unit setup params - /// - /// - /// - /// - /// Thrown when fails to make API call - /// BusinessUnitSetupParamsDTO - BusinessUnitSetupParamsDTO BusinessUnitsManagementSetupParams (); - - /// - /// This call retrieve Business unit setup params - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of BusinessUnitSetupParamsDTO - ApiResponse BusinessUnitsManagementSetupParamsWithHttpInfo (); - /// - /// This call updates a given Business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit information to update - /// BusinessUnitBaseDTO - BusinessUnitBaseDTO BusinessUnitsManagementUpdate (BusinessUnitForOperationsDTO businessUnitUpdate); - - /// - /// This call updates a given Business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit information to update - /// ApiResponse of BusinessUnitBaseDTO - ApiResponse BusinessUnitsManagementUpdateWithHttpInfo (BusinessUnitForOperationsDTO businessUnitUpdate); - /// - /// This call update Business unit setup params - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit setup params - /// BusinessUnitSetupParamsDTO - BusinessUnitSetupParamsDTO BusinessUnitsManagementUpdateSetupParams (BusinessUnitSetupParamsDTO setupParams); - - /// - /// This call update Business unit setup params - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit setup params - /// ApiResponse of BusinessUnitSetupParamsDTO - ApiResponse BusinessUnitsManagementUpdateSetupParamsWithHttpInfo (BusinessUnitSetupParamsDTO setupParams); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call duplicate an Business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit options for clone operation - /// Task of BusinessUnitBaseDTO - System.Threading.Tasks.Task BusinessUnitsManagementCloneAsync (BusinessUnitCloneOptionsDTO cloneOptions); - - /// - /// This call duplicate an Business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit options for clone operation - /// Task of ApiResponse (BusinessUnitBaseDTO) - System.Threading.Tasks.Task> BusinessUnitsManagementCloneAsyncWithHttpInfo (BusinessUnitCloneOptionsDTO cloneOptions); - /// - /// This call deletes Business unit specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit - /// Task of void - System.Threading.Tasks.Task BusinessUnitsManagementDeleteAsync (BusinessUnitDTO businessUnit); - - /// - /// This call deletes Business unit specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit - /// Task of ApiResponse - System.Threading.Tasks.Task> BusinessUnitsManagementDeleteAsyncWithHttpInfo (BusinessUnitDTO businessUnit); - /// - /// This call returns the business unit that the connected user can see - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<BusinessUnitBaseDTO> - System.Threading.Tasks.Task> BusinessUnitsManagementGetAsync (); - - /// - /// This call returns the business unit that the connected user can see - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<BusinessUnitBaseDTO>) - System.Threading.Tasks.Task>> BusinessUnitsManagementGetAsyncWithHttpInfo (); - /// - /// This call gets Business unit data - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit - /// Task of BusinessUnitBaseDTO - System.Threading.Tasks.Task BusinessUnitsManagementGetAooByCodeAsync (BusinessUnitDTO businessUnit); - - /// - /// This call gets Business unit data - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit - /// Task of ApiResponse (BusinessUnitBaseDTO) - System.Threading.Tasks.Task> BusinessUnitsManagementGetAooByCodeAsyncWithHttpInfo (BusinessUnitDTO businessUnit); - /// - /// This call inserts a new Business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit information to insert - /// Task of BusinessUnitBaseDTO - System.Threading.Tasks.Task BusinessUnitsManagementInsertAsync (BusinessUnitForOperationsDTO businessUnitInsert); - - /// - /// This call inserts a new Business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit information to insert - /// Task of ApiResponse (BusinessUnitBaseDTO) - System.Threading.Tasks.Task> BusinessUnitsManagementInsertAsyncWithHttpInfo (BusinessUnitForOperationsDTO businessUnitInsert); - /// - /// This call retrieve Business unit setup params - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of BusinessUnitSetupParamsDTO - System.Threading.Tasks.Task BusinessUnitsManagementSetupParamsAsync (); - - /// - /// This call retrieve Business unit setup params - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (BusinessUnitSetupParamsDTO) - System.Threading.Tasks.Task> BusinessUnitsManagementSetupParamsAsyncWithHttpInfo (); - /// - /// This call updates a given Business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit information to update - /// Task of BusinessUnitBaseDTO - System.Threading.Tasks.Task BusinessUnitsManagementUpdateAsync (BusinessUnitForOperationsDTO businessUnitUpdate); - - /// - /// This call updates a given Business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit information to update - /// Task of ApiResponse (BusinessUnitBaseDTO) - System.Threading.Tasks.Task> BusinessUnitsManagementUpdateAsyncWithHttpInfo (BusinessUnitForOperationsDTO businessUnitUpdate); - /// - /// This call update Business unit setup params - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit setup params - /// Task of BusinessUnitSetupParamsDTO - System.Threading.Tasks.Task BusinessUnitsManagementUpdateSetupParamsAsync (BusinessUnitSetupParamsDTO setupParams); - - /// - /// This call update Business unit setup params - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit setup params - /// Task of ApiResponse (BusinessUnitSetupParamsDTO) - System.Threading.Tasks.Task> BusinessUnitsManagementUpdateSetupParamsAsyncWithHttpInfo (BusinessUnitSetupParamsDTO setupParams); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class BusinessUnitsManagementApi : IBusinessUnitsManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public BusinessUnitsManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public BusinessUnitsManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call duplicate an Business unit - /// - /// Thrown when fails to make API call - /// Business unit options for clone operation - /// BusinessUnitBaseDTO - public BusinessUnitBaseDTO BusinessUnitsManagementClone (BusinessUnitCloneOptionsDTO cloneOptions) - { - ApiResponse localVarResponse = BusinessUnitsManagementCloneWithHttpInfo(cloneOptions); - return localVarResponse.Data; - } - - /// - /// This call duplicate an Business unit - /// - /// Thrown when fails to make API call - /// Business unit options for clone operation - /// ApiResponse of BusinessUnitBaseDTO - public ApiResponse< BusinessUnitBaseDTO > BusinessUnitsManagementCloneWithHttpInfo (BusinessUnitCloneOptionsDTO cloneOptions) - { - // verify the required parameter 'cloneOptions' is set - if (cloneOptions == null) - throw new ApiException(400, "Missing required parameter 'cloneOptions' when calling BusinessUnitsManagementApi->BusinessUnitsManagementClone"); - - var localVarPath = "/api/management/BusinessUnits/clone"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (cloneOptions != null && cloneOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(cloneOptions); // http body (model) parameter - } - else - { - localVarPostBody = cloneOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementClone", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BusinessUnitBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BusinessUnitBaseDTO))); - } - - /// - /// This call duplicate an Business unit - /// - /// Thrown when fails to make API call - /// Business unit options for clone operation - /// Task of BusinessUnitBaseDTO - public async System.Threading.Tasks.Task BusinessUnitsManagementCloneAsync (BusinessUnitCloneOptionsDTO cloneOptions) - { - ApiResponse localVarResponse = await BusinessUnitsManagementCloneAsyncWithHttpInfo(cloneOptions); - return localVarResponse.Data; - - } - - /// - /// This call duplicate an Business unit - /// - /// Thrown when fails to make API call - /// Business unit options for clone operation - /// Task of ApiResponse (BusinessUnitBaseDTO) - public async System.Threading.Tasks.Task> BusinessUnitsManagementCloneAsyncWithHttpInfo (BusinessUnitCloneOptionsDTO cloneOptions) - { - // verify the required parameter 'cloneOptions' is set - if (cloneOptions == null) - throw new ApiException(400, "Missing required parameter 'cloneOptions' when calling BusinessUnitsManagementApi->BusinessUnitsManagementClone"); - - var localVarPath = "/api/management/BusinessUnits/clone"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (cloneOptions != null && cloneOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(cloneOptions); // http body (model) parameter - } - else - { - localVarPostBody = cloneOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementClone", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BusinessUnitBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BusinessUnitBaseDTO))); - } - - /// - /// This call deletes Business unit specified - /// - /// Thrown when fails to make API call - /// Business unit - /// - public void BusinessUnitsManagementDelete (BusinessUnitDTO businessUnit) - { - BusinessUnitsManagementDeleteWithHttpInfo(businessUnit); - } - - /// - /// This call deletes Business unit specified - /// - /// Thrown when fails to make API call - /// Business unit - /// ApiResponse of Object(void) - public ApiResponse BusinessUnitsManagementDeleteWithHttpInfo (BusinessUnitDTO businessUnit) - { - // verify the required parameter 'businessUnit' is set - if (businessUnit == null) - throw new ApiException(400, "Missing required parameter 'businessUnit' when calling BusinessUnitsManagementApi->BusinessUnitsManagementDelete"); - - var localVarPath = "/api/management/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnit != null && businessUnit.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnit); // http body (model) parameter - } - else - { - localVarPostBody = businessUnit; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes Business unit specified - /// - /// Thrown when fails to make API call - /// Business unit - /// Task of void - public async System.Threading.Tasks.Task BusinessUnitsManagementDeleteAsync (BusinessUnitDTO businessUnit) - { - await BusinessUnitsManagementDeleteAsyncWithHttpInfo(businessUnit); - - } - - /// - /// This call deletes Business unit specified - /// - /// Thrown when fails to make API call - /// Business unit - /// Task of ApiResponse - public async System.Threading.Tasks.Task> BusinessUnitsManagementDeleteAsyncWithHttpInfo (BusinessUnitDTO businessUnit) - { - // verify the required parameter 'businessUnit' is set - if (businessUnit == null) - throw new ApiException(400, "Missing required parameter 'businessUnit' when calling BusinessUnitsManagementApi->BusinessUnitsManagementDelete"); - - var localVarPath = "/api/management/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnit != null && businessUnit.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnit); // http body (model) parameter - } - else - { - localVarPostBody = businessUnit; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the business unit that the connected user can see - /// - /// Thrown when fails to make API call - /// List<BusinessUnitBaseDTO> - public List BusinessUnitsManagementGet () - { - ApiResponse> localVarResponse = BusinessUnitsManagementGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the business unit that the connected user can see - /// - /// Thrown when fails to make API call - /// ApiResponse of List<BusinessUnitBaseDTO> - public ApiResponse< List > BusinessUnitsManagementGetWithHttpInfo () - { - - var localVarPath = "/api/management/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the business unit that the connected user can see - /// - /// Thrown when fails to make API call - /// Task of List<BusinessUnitBaseDTO> - public async System.Threading.Tasks.Task> BusinessUnitsManagementGetAsync () - { - ApiResponse> localVarResponse = await BusinessUnitsManagementGetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the business unit that the connected user can see - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<BusinessUnitBaseDTO>) - public async System.Threading.Tasks.Task>> BusinessUnitsManagementGetAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets Business unit data - /// - /// Thrown when fails to make API call - /// Business unit - /// BusinessUnitBaseDTO - public BusinessUnitBaseDTO BusinessUnitsManagementGetAooByCode (BusinessUnitDTO businessUnit) - { - ApiResponse localVarResponse = BusinessUnitsManagementGetAooByCodeWithHttpInfo(businessUnit); - return localVarResponse.Data; - } - - /// - /// This call gets Business unit data - /// - /// Thrown when fails to make API call - /// Business unit - /// ApiResponse of BusinessUnitBaseDTO - public ApiResponse< BusinessUnitBaseDTO > BusinessUnitsManagementGetAooByCodeWithHttpInfo (BusinessUnitDTO businessUnit) - { - // verify the required parameter 'businessUnit' is set - if (businessUnit == null) - throw new ApiException(400, "Missing required parameter 'businessUnit' when calling BusinessUnitsManagementApi->BusinessUnitsManagementGetAooByCode"); - - var localVarPath = "/api/management/BusinessUnits/GetBusinessUnit"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnit != null && businessUnit.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnit); // http body (model) parameter - } - else - { - localVarPostBody = businessUnit; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementGetAooByCode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BusinessUnitBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BusinessUnitBaseDTO))); - } - - /// - /// This call gets Business unit data - /// - /// Thrown when fails to make API call - /// Business unit - /// Task of BusinessUnitBaseDTO - public async System.Threading.Tasks.Task BusinessUnitsManagementGetAooByCodeAsync (BusinessUnitDTO businessUnit) - { - ApiResponse localVarResponse = await BusinessUnitsManagementGetAooByCodeAsyncWithHttpInfo(businessUnit); - return localVarResponse.Data; - - } - - /// - /// This call gets Business unit data - /// - /// Thrown when fails to make API call - /// Business unit - /// Task of ApiResponse (BusinessUnitBaseDTO) - public async System.Threading.Tasks.Task> BusinessUnitsManagementGetAooByCodeAsyncWithHttpInfo (BusinessUnitDTO businessUnit) - { - // verify the required parameter 'businessUnit' is set - if (businessUnit == null) - throw new ApiException(400, "Missing required parameter 'businessUnit' when calling BusinessUnitsManagementApi->BusinessUnitsManagementGetAooByCode"); - - var localVarPath = "/api/management/BusinessUnits/GetBusinessUnit"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnit != null && businessUnit.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnit); // http body (model) parameter - } - else - { - localVarPostBody = businessUnit; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementGetAooByCode", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BusinessUnitBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BusinessUnitBaseDTO))); - } - - /// - /// This call inserts a new Business unit - /// - /// Thrown when fails to make API call - /// Business unit information to insert - /// BusinessUnitBaseDTO - public BusinessUnitBaseDTO BusinessUnitsManagementInsert (BusinessUnitForOperationsDTO businessUnitInsert) - { - ApiResponse localVarResponse = BusinessUnitsManagementInsertWithHttpInfo(businessUnitInsert); - return localVarResponse.Data; - } - - /// - /// This call inserts a new Business unit - /// - /// Thrown when fails to make API call - /// Business unit information to insert - /// ApiResponse of BusinessUnitBaseDTO - public ApiResponse< BusinessUnitBaseDTO > BusinessUnitsManagementInsertWithHttpInfo (BusinessUnitForOperationsDTO businessUnitInsert) - { - // verify the required parameter 'businessUnitInsert' is set - if (businessUnitInsert == null) - throw new ApiException(400, "Missing required parameter 'businessUnitInsert' when calling BusinessUnitsManagementApi->BusinessUnitsManagementInsert"); - - var localVarPath = "/api/management/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitInsert != null && businessUnitInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitInsert); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BusinessUnitBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BusinessUnitBaseDTO))); - } - - /// - /// This call inserts a new Business unit - /// - /// Thrown when fails to make API call - /// Business unit information to insert - /// Task of BusinessUnitBaseDTO - public async System.Threading.Tasks.Task BusinessUnitsManagementInsertAsync (BusinessUnitForOperationsDTO businessUnitInsert) - { - ApiResponse localVarResponse = await BusinessUnitsManagementInsertAsyncWithHttpInfo(businessUnitInsert); - return localVarResponse.Data; - - } - - /// - /// This call inserts a new Business unit - /// - /// Thrown when fails to make API call - /// Business unit information to insert - /// Task of ApiResponse (BusinessUnitBaseDTO) - public async System.Threading.Tasks.Task> BusinessUnitsManagementInsertAsyncWithHttpInfo (BusinessUnitForOperationsDTO businessUnitInsert) - { - // verify the required parameter 'businessUnitInsert' is set - if (businessUnitInsert == null) - throw new ApiException(400, "Missing required parameter 'businessUnitInsert' when calling BusinessUnitsManagementApi->BusinessUnitsManagementInsert"); - - var localVarPath = "/api/management/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitInsert != null && businessUnitInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitInsert); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BusinessUnitBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BusinessUnitBaseDTO))); - } - - /// - /// This call retrieve Business unit setup params - /// - /// Thrown when fails to make API call - /// BusinessUnitSetupParamsDTO - public BusinessUnitSetupParamsDTO BusinessUnitsManagementSetupParams () - { - ApiResponse localVarResponse = BusinessUnitsManagementSetupParamsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call retrieve Business unit setup params - /// - /// Thrown when fails to make API call - /// ApiResponse of BusinessUnitSetupParamsDTO - public ApiResponse< BusinessUnitSetupParamsDTO > BusinessUnitsManagementSetupParamsWithHttpInfo () - { - - var localVarPath = "/api/management/BusinessUnits/SetupParams"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementSetupParams", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BusinessUnitSetupParamsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BusinessUnitSetupParamsDTO))); - } - - /// - /// This call retrieve Business unit setup params - /// - /// Thrown when fails to make API call - /// Task of BusinessUnitSetupParamsDTO - public async System.Threading.Tasks.Task BusinessUnitsManagementSetupParamsAsync () - { - ApiResponse localVarResponse = await BusinessUnitsManagementSetupParamsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call retrieve Business unit setup params - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (BusinessUnitSetupParamsDTO) - public async System.Threading.Tasks.Task> BusinessUnitsManagementSetupParamsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/BusinessUnits/SetupParams"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementSetupParams", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BusinessUnitSetupParamsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BusinessUnitSetupParamsDTO))); - } - - /// - /// This call updates a given Business unit - /// - /// Thrown when fails to make API call - /// Business unit information to update - /// BusinessUnitBaseDTO - public BusinessUnitBaseDTO BusinessUnitsManagementUpdate (BusinessUnitForOperationsDTO businessUnitUpdate) - { - ApiResponse localVarResponse = BusinessUnitsManagementUpdateWithHttpInfo(businessUnitUpdate); - return localVarResponse.Data; - } - - /// - /// This call updates a given Business unit - /// - /// Thrown when fails to make API call - /// Business unit information to update - /// ApiResponse of BusinessUnitBaseDTO - public ApiResponse< BusinessUnitBaseDTO > BusinessUnitsManagementUpdateWithHttpInfo (BusinessUnitForOperationsDTO businessUnitUpdate) - { - // verify the required parameter 'businessUnitUpdate' is set - if (businessUnitUpdate == null) - throw new ApiException(400, "Missing required parameter 'businessUnitUpdate' when calling BusinessUnitsManagementApi->BusinessUnitsManagementUpdate"); - - var localVarPath = "/api/management/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitUpdate != null && businessUnitUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitUpdate); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BusinessUnitBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BusinessUnitBaseDTO))); - } - - /// - /// This call updates a given Business unit - /// - /// Thrown when fails to make API call - /// Business unit information to update - /// Task of BusinessUnitBaseDTO - public async System.Threading.Tasks.Task BusinessUnitsManagementUpdateAsync (BusinessUnitForOperationsDTO businessUnitUpdate) - { - ApiResponse localVarResponse = await BusinessUnitsManagementUpdateAsyncWithHttpInfo(businessUnitUpdate); - return localVarResponse.Data; - - } - - /// - /// This call updates a given Business unit - /// - /// Thrown when fails to make API call - /// Business unit information to update - /// Task of ApiResponse (BusinessUnitBaseDTO) - public async System.Threading.Tasks.Task> BusinessUnitsManagementUpdateAsyncWithHttpInfo (BusinessUnitForOperationsDTO businessUnitUpdate) - { - // verify the required parameter 'businessUnitUpdate' is set - if (businessUnitUpdate == null) - throw new ApiException(400, "Missing required parameter 'businessUnitUpdate' when calling BusinessUnitsManagementApi->BusinessUnitsManagementUpdate"); - - var localVarPath = "/api/management/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitUpdate != null && businessUnitUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitUpdate); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BusinessUnitBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BusinessUnitBaseDTO))); - } - - /// - /// This call update Business unit setup params - /// - /// Thrown when fails to make API call - /// Business unit setup params - /// BusinessUnitSetupParamsDTO - public BusinessUnitSetupParamsDTO BusinessUnitsManagementUpdateSetupParams (BusinessUnitSetupParamsDTO setupParams) - { - ApiResponse localVarResponse = BusinessUnitsManagementUpdateSetupParamsWithHttpInfo(setupParams); - return localVarResponse.Data; - } - - /// - /// This call update Business unit setup params - /// - /// Thrown when fails to make API call - /// Business unit setup params - /// ApiResponse of BusinessUnitSetupParamsDTO - public ApiResponse< BusinessUnitSetupParamsDTO > BusinessUnitsManagementUpdateSetupParamsWithHttpInfo (BusinessUnitSetupParamsDTO setupParams) - { - // verify the required parameter 'setupParams' is set - if (setupParams == null) - throw new ApiException(400, "Missing required parameter 'setupParams' when calling BusinessUnitsManagementApi->BusinessUnitsManagementUpdateSetupParams"); - - var localVarPath = "/api/management/BusinessUnits/SetupParams"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (setupParams != null && setupParams.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(setupParams); // http body (model) parameter - } - else - { - localVarPostBody = setupParams; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementUpdateSetupParams", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BusinessUnitSetupParamsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BusinessUnitSetupParamsDTO))); - } - - /// - /// This call update Business unit setup params - /// - /// Thrown when fails to make API call - /// Business unit setup params - /// Task of BusinessUnitSetupParamsDTO - public async System.Threading.Tasks.Task BusinessUnitsManagementUpdateSetupParamsAsync (BusinessUnitSetupParamsDTO setupParams) - { - ApiResponse localVarResponse = await BusinessUnitsManagementUpdateSetupParamsAsyncWithHttpInfo(setupParams); - return localVarResponse.Data; - - } - - /// - /// This call update Business unit setup params - /// - /// Thrown when fails to make API call - /// Business unit setup params - /// Task of ApiResponse (BusinessUnitSetupParamsDTO) - public async System.Threading.Tasks.Task> BusinessUnitsManagementUpdateSetupParamsAsyncWithHttpInfo (BusinessUnitSetupParamsDTO setupParams) - { - // verify the required parameter 'setupParams' is set - if (setupParams == null) - throw new ApiException(400, "Missing required parameter 'setupParams' when calling BusinessUnitsManagementApi->BusinessUnitsManagementUpdateSetupParams"); - - var localVarPath = "/api/management/BusinessUnits/SetupParams"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (setupParams != null && setupParams.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(setupParams); // http body (model) parameter - } - else - { - localVarPostBody = setupParams; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BusinessUnitsManagementUpdateSetupParams", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BusinessUnitSetupParamsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BusinessUnitSetupParamsDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/DataGroupsManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/DataGroupsManagementApi.cs deleted file mode 100644 index 4dcd3df..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/DataGroupsManagementApi.cs +++ /dev/null @@ -1,2799 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDataGroupsManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This method removes specific data group by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// - void DataGroupsManagementDeleteDataGroup (string id); - - /// - /// This method removes specific data group by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// ApiResponse of Object(void) - ApiResponse DataGroupsManagementDeleteDataGroupWithHttpInfo (string id); - /// - /// This method deletes data source from a specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// - void DataGroupsManagementDeleteDataGroupSource (string dataGroupId, string dataSourceId); - - /// - /// This method deletes data source from a specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// ApiResponse of Object(void) - ApiResponse DataGroupsManagementDeleteDataGroupSourceWithHttpInfo (string dataGroupId, string dataSourceId); - /// - /// This method returns specific data group by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// DataGroupDTO - DataGroupDTO DataGroupsManagementGetDataGroup (string id); - - /// - /// This method returns specific data group by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// ApiResponse of DataGroupDTO - ApiResponse DataGroupsManagementGetDataGroupWithHttpInfo (string id); - /// - /// This method returns data source for specific data group and data source identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// DataGroupSourceDTO - DataGroupSourceDTO DataGroupsManagementGetDataGroupDataSource (string dataGroupId, string dataSourceId); - - /// - /// This method returns data source for specific data group and data source identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// ApiResponse of DataGroupSourceDTO - ApiResponse DataGroupsManagementGetDataGroupDataSourceWithHttpInfo (string dataGroupId, string dataSourceId); - /// - /// This method returns data sources for specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// List<DataGroupSourceDTO> - List DataGroupsManagementGetDataGroupDataSources (string dataGroupId); - - /// - /// This method returns data sources for specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// ApiResponse of List<DataGroupSourceDTO> - ApiResponse> DataGroupsManagementGetDataGroupDataSourcesWithHttpInfo (string dataGroupId); - /// - /// This method returns data group elements - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// List<DataGroupElementDTO> - List DataGroupsManagementGetDataGroupElements (string id); - - /// - /// This method returns data group elements - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// ApiResponse of List<DataGroupElementDTO> - ApiResponse> DataGroupsManagementGetDataGroupElementsWithHttpInfo (string id); - /// - /// This method returns all data groups - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<DataGroupDTO> - List DataGroupsManagementGetDataGroups (); - - /// - /// This method returns all data groups - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<DataGroupDTO> - ApiResponse> DataGroupsManagementGetDataGroupsWithHttpInfo (); - /// - /// This method returns data groups by context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// List<DataGroupDTO> - List DataGroupsManagementGetDataGroupsByContext (int? context); - - /// - /// This method returns data groups by context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// ApiResponse of List<DataGroupDTO> - ApiResponse> DataGroupsManagementGetDataGroupsByContextWithHttpInfo (int? context); - /// - /// This method creates a new data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group data for insert - /// DataGroupDTO - DataGroupDTO DataGroupsManagementInsertDataGroup (DataGroupDTO dataGroupForInsert); - - /// - /// This method creates a new data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group data for insert - /// ApiResponse of DataGroupDTO - ApiResponse DataGroupsManagementInsertDataGroupWithHttpInfo (DataGroupDTO dataGroupForInsert); - /// - /// This method inserts data source for a specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source to insert - /// DataGroupSourceDTO - DataGroupSourceDTO DataGroupsManagementInsertDataGroupSource (string dataGroupId, DataGroupSourceDTO dataSource); - - /// - /// This method inserts data source for a specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source to insert - /// ApiResponse of DataGroupSourceDTO - ApiResponse DataGroupsManagementInsertDataGroupSourceWithHttpInfo (string dataGroupId, DataGroupSourceDTO dataSource); - /// - /// This method updates data group elements - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group static elements - /// - void DataGroupsManagementSetDataGroupElements (string id, List elements); - - /// - /// This method updates data group elements - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group static elements - /// ApiResponse of Object(void) - ApiResponse DataGroupsManagementSetDataGroupElementsWithHttpInfo (string id, List elements); - /// - /// This method updates specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group data for update - /// DataGroupDTO - DataGroupDTO DataGroupsManagementUpdateDataGroup (string id, DataGroupDTO dataGroupForUpdate); - - /// - /// This method updates specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group data for update - /// ApiResponse of DataGroupDTO - ApiResponse DataGroupsManagementUpdateDataGroupWithHttpInfo (string id, DataGroupDTO dataGroupForUpdate); - /// - /// This method updates data source for a specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Data source to update - /// DataGroupSourceDTO - DataGroupSourceDTO DataGroupsManagementUpdateDataGroupSource (string dataGroupId, string dataSourceId, DataGroupSourceDTO dataSource); - - /// - /// This method updates data source for a specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Data source to update - /// ApiResponse of DataGroupSourceDTO - ApiResponse DataGroupsManagementUpdateDataGroupSourceWithHttpInfo (string dataGroupId, string dataSourceId, DataGroupSourceDTO dataSource); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This method removes specific data group by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of void - System.Threading.Tasks.Task DataGroupsManagementDeleteDataGroupAsync (string id); - - /// - /// This method removes specific data group by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> DataGroupsManagementDeleteDataGroupAsyncWithHttpInfo (string id); - /// - /// This method deletes data source from a specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Task of void - System.Threading.Tasks.Task DataGroupsManagementDeleteDataGroupSourceAsync (string dataGroupId, string dataSourceId); - - /// - /// This method deletes data source from a specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> DataGroupsManagementDeleteDataGroupSourceAsyncWithHttpInfo (string dataGroupId, string dataSourceId); - /// - /// This method returns specific data group by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of DataGroupDTO - System.Threading.Tasks.Task DataGroupsManagementGetDataGroupAsync (string id); - - /// - /// This method returns specific data group by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of ApiResponse (DataGroupDTO) - System.Threading.Tasks.Task> DataGroupsManagementGetDataGroupAsyncWithHttpInfo (string id); - /// - /// This method returns data source for specific data group and data source identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Task of DataGroupSourceDTO - System.Threading.Tasks.Task DataGroupsManagementGetDataGroupDataSourceAsync (string dataGroupId, string dataSourceId); - - /// - /// This method returns data source for specific data group and data source identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Task of ApiResponse (DataGroupSourceDTO) - System.Threading.Tasks.Task> DataGroupsManagementGetDataGroupDataSourceAsyncWithHttpInfo (string dataGroupId, string dataSourceId); - /// - /// This method returns data sources for specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of List<DataGroupSourceDTO> - System.Threading.Tasks.Task> DataGroupsManagementGetDataGroupDataSourcesAsync (string dataGroupId); - - /// - /// This method returns data sources for specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of ApiResponse (List<DataGroupSourceDTO>) - System.Threading.Tasks.Task>> DataGroupsManagementGetDataGroupDataSourcesAsyncWithHttpInfo (string dataGroupId); - /// - /// This method returns data group elements - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of List<DataGroupElementDTO> - System.Threading.Tasks.Task> DataGroupsManagementGetDataGroupElementsAsync (string id); - - /// - /// This method returns data group elements - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of ApiResponse (List<DataGroupElementDTO>) - System.Threading.Tasks.Task>> DataGroupsManagementGetDataGroupElementsAsyncWithHttpInfo (string id); - /// - /// This method returns all data groups - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<DataGroupDTO> - System.Threading.Tasks.Task> DataGroupsManagementGetDataGroupsAsync (); - - /// - /// This method returns all data groups - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<DataGroupDTO>) - System.Threading.Tasks.Task>> DataGroupsManagementGetDataGroupsAsyncWithHttpInfo (); - /// - /// This method returns data groups by context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Task of List<DataGroupDTO> - System.Threading.Tasks.Task> DataGroupsManagementGetDataGroupsByContextAsync (int? context); - - /// - /// This method returns data groups by context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Task of ApiResponse (List<DataGroupDTO>) - System.Threading.Tasks.Task>> DataGroupsManagementGetDataGroupsByContextAsyncWithHttpInfo (int? context); - /// - /// This method creates a new data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group data for insert - /// Task of DataGroupDTO - System.Threading.Tasks.Task DataGroupsManagementInsertDataGroupAsync (DataGroupDTO dataGroupForInsert); - - /// - /// This method creates a new data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group data for insert - /// Task of ApiResponse (DataGroupDTO) - System.Threading.Tasks.Task> DataGroupsManagementInsertDataGroupAsyncWithHttpInfo (DataGroupDTO dataGroupForInsert); - /// - /// This method inserts data source for a specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source to insert - /// Task of DataGroupSourceDTO - System.Threading.Tasks.Task DataGroupsManagementInsertDataGroupSourceAsync (string dataGroupId, DataGroupSourceDTO dataSource); - - /// - /// This method inserts data source for a specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source to insert - /// Task of ApiResponse (DataGroupSourceDTO) - System.Threading.Tasks.Task> DataGroupsManagementInsertDataGroupSourceAsyncWithHttpInfo (string dataGroupId, DataGroupSourceDTO dataSource); - /// - /// This method updates data group elements - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group static elements - /// Task of void - System.Threading.Tasks.Task DataGroupsManagementSetDataGroupElementsAsync (string id, List elements); - - /// - /// This method updates data group elements - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group static elements - /// Task of ApiResponse - System.Threading.Tasks.Task> DataGroupsManagementSetDataGroupElementsAsyncWithHttpInfo (string id, List elements); - /// - /// This method updates specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group data for update - /// Task of DataGroupDTO - System.Threading.Tasks.Task DataGroupsManagementUpdateDataGroupAsync (string id, DataGroupDTO dataGroupForUpdate); - - /// - /// This method updates specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group data for update - /// Task of ApiResponse (DataGroupDTO) - System.Threading.Tasks.Task> DataGroupsManagementUpdateDataGroupAsyncWithHttpInfo (string id, DataGroupDTO dataGroupForUpdate); - /// - /// This method updates data source for a specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Data source to update - /// Task of DataGroupSourceDTO - System.Threading.Tasks.Task DataGroupsManagementUpdateDataGroupSourceAsync (string dataGroupId, string dataSourceId, DataGroupSourceDTO dataSource); - - /// - /// This method updates data source for a specific data group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Data source to update - /// Task of ApiResponse (DataGroupSourceDTO) - System.Threading.Tasks.Task> DataGroupsManagementUpdateDataGroupSourceAsyncWithHttpInfo (string dataGroupId, string dataSourceId, DataGroupSourceDTO dataSource); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class DataGroupsManagementApi : IDataGroupsManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public DataGroupsManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public DataGroupsManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This method removes specific data group by id - /// - /// Thrown when fails to make API call - /// Data group identifier - /// - public void DataGroupsManagementDeleteDataGroup (string id) - { - DataGroupsManagementDeleteDataGroupWithHttpInfo(id); - } - - /// - /// This method removes specific data group by id - /// - /// Thrown when fails to make API call - /// Data group identifier - /// ApiResponse of Object(void) - public ApiResponse DataGroupsManagementDeleteDataGroupWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DataGroupsManagementApi->DataGroupsManagementDeleteDataGroup"); - - var localVarPath = "/api/management/DataSources/DataGroups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementDeleteDataGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method removes specific data group by id - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of void - public async System.Threading.Tasks.Task DataGroupsManagementDeleteDataGroupAsync (string id) - { - await DataGroupsManagementDeleteDataGroupAsyncWithHttpInfo(id); - - } - - /// - /// This method removes specific data group by id - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DataGroupsManagementDeleteDataGroupAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DataGroupsManagementApi->DataGroupsManagementDeleteDataGroup"); - - var localVarPath = "/api/management/DataSources/DataGroups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementDeleteDataGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method deletes data source from a specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// - public void DataGroupsManagementDeleteDataGroupSource (string dataGroupId, string dataSourceId) - { - DataGroupsManagementDeleteDataGroupSourceWithHttpInfo(dataGroupId, dataSourceId); - } - - /// - /// This method deletes data source from a specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// ApiResponse of Object(void) - public ApiResponse DataGroupsManagementDeleteDataGroupSourceWithHttpInfo (string dataGroupId, string dataSourceId) - { - // verify the required parameter 'dataGroupId' is set - if (dataGroupId == null) - throw new ApiException(400, "Missing required parameter 'dataGroupId' when calling DataGroupsManagementApi->DataGroupsManagementDeleteDataGroupSource"); - // verify the required parameter 'dataSourceId' is set - if (dataSourceId == null) - throw new ApiException(400, "Missing required parameter 'dataSourceId' when calling DataGroupsManagementApi->DataGroupsManagementDeleteDataGroupSource"); - - var localVarPath = "/api/management/DataSources/DataGroups/{dataGroupId}/Sources/{dataSourceId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dataGroupId != null) localVarPathParams.Add("dataGroupId", this.Configuration.ApiClient.ParameterToString(dataGroupId)); // path parameter - if (dataSourceId != null) localVarPathParams.Add("dataSourceId", this.Configuration.ApiClient.ParameterToString(dataSourceId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementDeleteDataGroupSource", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method deletes data source from a specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Task of void - public async System.Threading.Tasks.Task DataGroupsManagementDeleteDataGroupSourceAsync (string dataGroupId, string dataSourceId) - { - await DataGroupsManagementDeleteDataGroupSourceAsyncWithHttpInfo(dataGroupId, dataSourceId); - - } - - /// - /// This method deletes data source from a specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DataGroupsManagementDeleteDataGroupSourceAsyncWithHttpInfo (string dataGroupId, string dataSourceId) - { - // verify the required parameter 'dataGroupId' is set - if (dataGroupId == null) - throw new ApiException(400, "Missing required parameter 'dataGroupId' when calling DataGroupsManagementApi->DataGroupsManagementDeleteDataGroupSource"); - // verify the required parameter 'dataSourceId' is set - if (dataSourceId == null) - throw new ApiException(400, "Missing required parameter 'dataSourceId' when calling DataGroupsManagementApi->DataGroupsManagementDeleteDataGroupSource"); - - var localVarPath = "/api/management/DataSources/DataGroups/{dataGroupId}/Sources/{dataSourceId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dataGroupId != null) localVarPathParams.Add("dataGroupId", this.Configuration.ApiClient.ParameterToString(dataGroupId)); // path parameter - if (dataSourceId != null) localVarPathParams.Add("dataSourceId", this.Configuration.ApiClient.ParameterToString(dataSourceId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementDeleteDataGroupSource", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method returns specific data group by id - /// - /// Thrown when fails to make API call - /// Data group identifier - /// DataGroupDTO - public DataGroupDTO DataGroupsManagementGetDataGroup (string id) - { - ApiResponse localVarResponse = DataGroupsManagementGetDataGroupWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This method returns specific data group by id - /// - /// Thrown when fails to make API call - /// Data group identifier - /// ApiResponse of DataGroupDTO - public ApiResponse< DataGroupDTO > DataGroupsManagementGetDataGroupWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DataGroupsManagementApi->DataGroupsManagementGetDataGroup"); - - var localVarPath = "/api/management/DataSources/DataGroups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementGetDataGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DataGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DataGroupDTO))); - } - - /// - /// This method returns specific data group by id - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of DataGroupDTO - public async System.Threading.Tasks.Task DataGroupsManagementGetDataGroupAsync (string id) - { - ApiResponse localVarResponse = await DataGroupsManagementGetDataGroupAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This method returns specific data group by id - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of ApiResponse (DataGroupDTO) - public async System.Threading.Tasks.Task> DataGroupsManagementGetDataGroupAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DataGroupsManagementApi->DataGroupsManagementGetDataGroup"); - - var localVarPath = "/api/management/DataSources/DataGroups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementGetDataGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DataGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DataGroupDTO))); - } - - /// - /// This method returns data source for specific data group and data source identifier - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// DataGroupSourceDTO - public DataGroupSourceDTO DataGroupsManagementGetDataGroupDataSource (string dataGroupId, string dataSourceId) - { - ApiResponse localVarResponse = DataGroupsManagementGetDataGroupDataSourceWithHttpInfo(dataGroupId, dataSourceId); - return localVarResponse.Data; - } - - /// - /// This method returns data source for specific data group and data source identifier - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// ApiResponse of DataGroupSourceDTO - public ApiResponse< DataGroupSourceDTO > DataGroupsManagementGetDataGroupDataSourceWithHttpInfo (string dataGroupId, string dataSourceId) - { - // verify the required parameter 'dataGroupId' is set - if (dataGroupId == null) - throw new ApiException(400, "Missing required parameter 'dataGroupId' when calling DataGroupsManagementApi->DataGroupsManagementGetDataGroupDataSource"); - // verify the required parameter 'dataSourceId' is set - if (dataSourceId == null) - throw new ApiException(400, "Missing required parameter 'dataSourceId' when calling DataGroupsManagementApi->DataGroupsManagementGetDataGroupDataSource"); - - var localVarPath = "/api/management/DataSources/DataGroups/{dataGroupId}/Sources/{dataSourceId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dataGroupId != null) localVarPathParams.Add("dataGroupId", this.Configuration.ApiClient.ParameterToString(dataGroupId)); // path parameter - if (dataSourceId != null) localVarPathParams.Add("dataSourceId", this.Configuration.ApiClient.ParameterToString(dataSourceId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementGetDataGroupDataSource", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DataGroupSourceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DataGroupSourceDTO))); - } - - /// - /// This method returns data source for specific data group and data source identifier - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Task of DataGroupSourceDTO - public async System.Threading.Tasks.Task DataGroupsManagementGetDataGroupDataSourceAsync (string dataGroupId, string dataSourceId) - { - ApiResponse localVarResponse = await DataGroupsManagementGetDataGroupDataSourceAsyncWithHttpInfo(dataGroupId, dataSourceId); - return localVarResponse.Data; - - } - - /// - /// This method returns data source for specific data group and data source identifier - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Task of ApiResponse (DataGroupSourceDTO) - public async System.Threading.Tasks.Task> DataGroupsManagementGetDataGroupDataSourceAsyncWithHttpInfo (string dataGroupId, string dataSourceId) - { - // verify the required parameter 'dataGroupId' is set - if (dataGroupId == null) - throw new ApiException(400, "Missing required parameter 'dataGroupId' when calling DataGroupsManagementApi->DataGroupsManagementGetDataGroupDataSource"); - // verify the required parameter 'dataSourceId' is set - if (dataSourceId == null) - throw new ApiException(400, "Missing required parameter 'dataSourceId' when calling DataGroupsManagementApi->DataGroupsManagementGetDataGroupDataSource"); - - var localVarPath = "/api/management/DataSources/DataGroups/{dataGroupId}/Sources/{dataSourceId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dataGroupId != null) localVarPathParams.Add("dataGroupId", this.Configuration.ApiClient.ParameterToString(dataGroupId)); // path parameter - if (dataSourceId != null) localVarPathParams.Add("dataSourceId", this.Configuration.ApiClient.ParameterToString(dataSourceId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementGetDataGroupDataSource", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DataGroupSourceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DataGroupSourceDTO))); - } - - /// - /// This method returns data sources for specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// List<DataGroupSourceDTO> - public List DataGroupsManagementGetDataGroupDataSources (string dataGroupId) - { - ApiResponse> localVarResponse = DataGroupsManagementGetDataGroupDataSourcesWithHttpInfo(dataGroupId); - return localVarResponse.Data; - } - - /// - /// This method returns data sources for specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// ApiResponse of List<DataGroupSourceDTO> - public ApiResponse< List > DataGroupsManagementGetDataGroupDataSourcesWithHttpInfo (string dataGroupId) - { - // verify the required parameter 'dataGroupId' is set - if (dataGroupId == null) - throw new ApiException(400, "Missing required parameter 'dataGroupId' when calling DataGroupsManagementApi->DataGroupsManagementGetDataGroupDataSources"); - - var localVarPath = "/api/management/DataSources/DataGroups/{dataGroupId}/Sources"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dataGroupId != null) localVarPathParams.Add("dataGroupId", this.Configuration.ApiClient.ParameterToString(dataGroupId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementGetDataGroupDataSources", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns data sources for specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of List<DataGroupSourceDTO> - public async System.Threading.Tasks.Task> DataGroupsManagementGetDataGroupDataSourcesAsync (string dataGroupId) - { - ApiResponse> localVarResponse = await DataGroupsManagementGetDataGroupDataSourcesAsyncWithHttpInfo(dataGroupId); - return localVarResponse.Data; - - } - - /// - /// This method returns data sources for specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of ApiResponse (List<DataGroupSourceDTO>) - public async System.Threading.Tasks.Task>> DataGroupsManagementGetDataGroupDataSourcesAsyncWithHttpInfo (string dataGroupId) - { - // verify the required parameter 'dataGroupId' is set - if (dataGroupId == null) - throw new ApiException(400, "Missing required parameter 'dataGroupId' when calling DataGroupsManagementApi->DataGroupsManagementGetDataGroupDataSources"); - - var localVarPath = "/api/management/DataSources/DataGroups/{dataGroupId}/Sources"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dataGroupId != null) localVarPathParams.Add("dataGroupId", this.Configuration.ApiClient.ParameterToString(dataGroupId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementGetDataGroupDataSources", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns data group elements - /// - /// Thrown when fails to make API call - /// Data group identifier - /// List<DataGroupElementDTO> - public List DataGroupsManagementGetDataGroupElements (string id) - { - ApiResponse> localVarResponse = DataGroupsManagementGetDataGroupElementsWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This method returns data group elements - /// - /// Thrown when fails to make API call - /// Data group identifier - /// ApiResponse of List<DataGroupElementDTO> - public ApiResponse< List > DataGroupsManagementGetDataGroupElementsWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DataGroupsManagementApi->DataGroupsManagementGetDataGroupElements"); - - var localVarPath = "/api/management/DataSources/DataGroups/{id}/Elements"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementGetDataGroupElements", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns data group elements - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of List<DataGroupElementDTO> - public async System.Threading.Tasks.Task> DataGroupsManagementGetDataGroupElementsAsync (string id) - { - ApiResponse> localVarResponse = await DataGroupsManagementGetDataGroupElementsAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This method returns data group elements - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Task of ApiResponse (List<DataGroupElementDTO>) - public async System.Threading.Tasks.Task>> DataGroupsManagementGetDataGroupElementsAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DataGroupsManagementApi->DataGroupsManagementGetDataGroupElements"); - - var localVarPath = "/api/management/DataSources/DataGroups/{id}/Elements"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementGetDataGroupElements", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns all data groups - /// - /// Thrown when fails to make API call - /// List<DataGroupDTO> - public List DataGroupsManagementGetDataGroups () - { - ApiResponse> localVarResponse = DataGroupsManagementGetDataGroupsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This method returns all data groups - /// - /// Thrown when fails to make API call - /// ApiResponse of List<DataGroupDTO> - public ApiResponse< List > DataGroupsManagementGetDataGroupsWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/DataGroups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementGetDataGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns all data groups - /// - /// Thrown when fails to make API call - /// Task of List<DataGroupDTO> - public async System.Threading.Tasks.Task> DataGroupsManagementGetDataGroupsAsync () - { - ApiResponse> localVarResponse = await DataGroupsManagementGetDataGroupsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This method returns all data groups - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<DataGroupDTO>) - public async System.Threading.Tasks.Task>> DataGroupsManagementGetDataGroupsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/DataGroups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementGetDataGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns data groups by context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// List<DataGroupDTO> - public List DataGroupsManagementGetDataGroupsByContext (int? context) - { - ApiResponse> localVarResponse = DataGroupsManagementGetDataGroupsByContextWithHttpInfo(context); - return localVarResponse.Data; - } - - /// - /// This method returns data groups by context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// ApiResponse of List<DataGroupDTO> - public ApiResponse< List > DataGroupsManagementGetDataGroupsByContextWithHttpInfo (int? context) - { - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling DataGroupsManagementApi->DataGroupsManagementGetDataGroupsByContext"); - - var localVarPath = "/api/management/DataSources/DataGroups/ByContext/{context}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (context != null) localVarPathParams.Add("context", this.Configuration.ApiClient.ParameterToString(context)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementGetDataGroupsByContext", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns data groups by context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Task of List<DataGroupDTO> - public async System.Threading.Tasks.Task> DataGroupsManagementGetDataGroupsByContextAsync (int? context) - { - ApiResponse> localVarResponse = await DataGroupsManagementGetDataGroupsByContextAsyncWithHttpInfo(context); - return localVarResponse.Data; - - } - - /// - /// This method returns data groups by context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Task of ApiResponse (List<DataGroupDTO>) - public async System.Threading.Tasks.Task>> DataGroupsManagementGetDataGroupsByContextAsyncWithHttpInfo (int? context) - { - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling DataGroupsManagementApi->DataGroupsManagementGetDataGroupsByContext"); - - var localVarPath = "/api/management/DataSources/DataGroups/ByContext/{context}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (context != null) localVarPathParams.Add("context", this.Configuration.ApiClient.ParameterToString(context)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementGetDataGroupsByContext", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method creates a new data group - /// - /// Thrown when fails to make API call - /// Data group data for insert - /// DataGroupDTO - public DataGroupDTO DataGroupsManagementInsertDataGroup (DataGroupDTO dataGroupForInsert) - { - ApiResponse localVarResponse = DataGroupsManagementInsertDataGroupWithHttpInfo(dataGroupForInsert); - return localVarResponse.Data; - } - - /// - /// This method creates a new data group - /// - /// Thrown when fails to make API call - /// Data group data for insert - /// ApiResponse of DataGroupDTO - public ApiResponse< DataGroupDTO > DataGroupsManagementInsertDataGroupWithHttpInfo (DataGroupDTO dataGroupForInsert) - { - // verify the required parameter 'dataGroupForInsert' is set - if (dataGroupForInsert == null) - throw new ApiException(400, "Missing required parameter 'dataGroupForInsert' when calling DataGroupsManagementApi->DataGroupsManagementInsertDataGroup"); - - var localVarPath = "/api/management/DataSources/DataGroups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dataGroupForInsert != null && dataGroupForInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(dataGroupForInsert); // http body (model) parameter - } - else - { - localVarPostBody = dataGroupForInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementInsertDataGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DataGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DataGroupDTO))); - } - - /// - /// This method creates a new data group - /// - /// Thrown when fails to make API call - /// Data group data for insert - /// Task of DataGroupDTO - public async System.Threading.Tasks.Task DataGroupsManagementInsertDataGroupAsync (DataGroupDTO dataGroupForInsert) - { - ApiResponse localVarResponse = await DataGroupsManagementInsertDataGroupAsyncWithHttpInfo(dataGroupForInsert); - return localVarResponse.Data; - - } - - /// - /// This method creates a new data group - /// - /// Thrown when fails to make API call - /// Data group data for insert - /// Task of ApiResponse (DataGroupDTO) - public async System.Threading.Tasks.Task> DataGroupsManagementInsertDataGroupAsyncWithHttpInfo (DataGroupDTO dataGroupForInsert) - { - // verify the required parameter 'dataGroupForInsert' is set - if (dataGroupForInsert == null) - throw new ApiException(400, "Missing required parameter 'dataGroupForInsert' when calling DataGroupsManagementApi->DataGroupsManagementInsertDataGroup"); - - var localVarPath = "/api/management/DataSources/DataGroups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dataGroupForInsert != null && dataGroupForInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(dataGroupForInsert); // http body (model) parameter - } - else - { - localVarPostBody = dataGroupForInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementInsertDataGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DataGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DataGroupDTO))); - } - - /// - /// This method inserts data source for a specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source to insert - /// DataGroupSourceDTO - public DataGroupSourceDTO DataGroupsManagementInsertDataGroupSource (string dataGroupId, DataGroupSourceDTO dataSource) - { - ApiResponse localVarResponse = DataGroupsManagementInsertDataGroupSourceWithHttpInfo(dataGroupId, dataSource); - return localVarResponse.Data; - } - - /// - /// This method inserts data source for a specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source to insert - /// ApiResponse of DataGroupSourceDTO - public ApiResponse< DataGroupSourceDTO > DataGroupsManagementInsertDataGroupSourceWithHttpInfo (string dataGroupId, DataGroupSourceDTO dataSource) - { - // verify the required parameter 'dataGroupId' is set - if (dataGroupId == null) - throw new ApiException(400, "Missing required parameter 'dataGroupId' when calling DataGroupsManagementApi->DataGroupsManagementInsertDataGroupSource"); - // verify the required parameter 'dataSource' is set - if (dataSource == null) - throw new ApiException(400, "Missing required parameter 'dataSource' when calling DataGroupsManagementApi->DataGroupsManagementInsertDataGroupSource"); - - var localVarPath = "/api/management/DataSources/DataGroups/{dataGroupId}/Sources"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dataGroupId != null) localVarPathParams.Add("dataGroupId", this.Configuration.ApiClient.ParameterToString(dataGroupId)); // path parameter - if (dataSource != null && dataSource.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(dataSource); // http body (model) parameter - } - else - { - localVarPostBody = dataSource; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementInsertDataGroupSource", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DataGroupSourceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DataGroupSourceDTO))); - } - - /// - /// This method inserts data source for a specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source to insert - /// Task of DataGroupSourceDTO - public async System.Threading.Tasks.Task DataGroupsManagementInsertDataGroupSourceAsync (string dataGroupId, DataGroupSourceDTO dataSource) - { - ApiResponse localVarResponse = await DataGroupsManagementInsertDataGroupSourceAsyncWithHttpInfo(dataGroupId, dataSource); - return localVarResponse.Data; - - } - - /// - /// This method inserts data source for a specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source to insert - /// Task of ApiResponse (DataGroupSourceDTO) - public async System.Threading.Tasks.Task> DataGroupsManagementInsertDataGroupSourceAsyncWithHttpInfo (string dataGroupId, DataGroupSourceDTO dataSource) - { - // verify the required parameter 'dataGroupId' is set - if (dataGroupId == null) - throw new ApiException(400, "Missing required parameter 'dataGroupId' when calling DataGroupsManagementApi->DataGroupsManagementInsertDataGroupSource"); - // verify the required parameter 'dataSource' is set - if (dataSource == null) - throw new ApiException(400, "Missing required parameter 'dataSource' when calling DataGroupsManagementApi->DataGroupsManagementInsertDataGroupSource"); - - var localVarPath = "/api/management/DataSources/DataGroups/{dataGroupId}/Sources"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dataGroupId != null) localVarPathParams.Add("dataGroupId", this.Configuration.ApiClient.ParameterToString(dataGroupId)); // path parameter - if (dataSource != null && dataSource.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(dataSource); // http body (model) parameter - } - else - { - localVarPostBody = dataSource; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementInsertDataGroupSource", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DataGroupSourceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DataGroupSourceDTO))); - } - - /// - /// This method updates data group elements - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group static elements - /// - public void DataGroupsManagementSetDataGroupElements (string id, List elements) - { - DataGroupsManagementSetDataGroupElementsWithHttpInfo(id, elements); - } - - /// - /// This method updates data group elements - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group static elements - /// ApiResponse of Object(void) - public ApiResponse DataGroupsManagementSetDataGroupElementsWithHttpInfo (string id, List elements) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DataGroupsManagementApi->DataGroupsManagementSetDataGroupElements"); - // verify the required parameter 'elements' is set - if (elements == null) - throw new ApiException(400, "Missing required parameter 'elements' when calling DataGroupsManagementApi->DataGroupsManagementSetDataGroupElements"); - - var localVarPath = "/api/management/DataSources/DataGroups/{id}/Elements"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (elements != null && elements.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(elements); // http body (model) parameter - } - else - { - localVarPostBody = elements; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementSetDataGroupElements", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method updates data group elements - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group static elements - /// Task of void - public async System.Threading.Tasks.Task DataGroupsManagementSetDataGroupElementsAsync (string id, List elements) - { - await DataGroupsManagementSetDataGroupElementsAsyncWithHttpInfo(id, elements); - - } - - /// - /// This method updates data group elements - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group static elements - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DataGroupsManagementSetDataGroupElementsAsyncWithHttpInfo (string id, List elements) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DataGroupsManagementApi->DataGroupsManagementSetDataGroupElements"); - // verify the required parameter 'elements' is set - if (elements == null) - throw new ApiException(400, "Missing required parameter 'elements' when calling DataGroupsManagementApi->DataGroupsManagementSetDataGroupElements"); - - var localVarPath = "/api/management/DataSources/DataGroups/{id}/Elements"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (elements != null && elements.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(elements); // http body (model) parameter - } - else - { - localVarPostBody = elements; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementSetDataGroupElements", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method updates specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group data for update - /// DataGroupDTO - public DataGroupDTO DataGroupsManagementUpdateDataGroup (string id, DataGroupDTO dataGroupForUpdate) - { - ApiResponse localVarResponse = DataGroupsManagementUpdateDataGroupWithHttpInfo(id, dataGroupForUpdate); - return localVarResponse.Data; - } - - /// - /// This method updates specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group data for update - /// ApiResponse of DataGroupDTO - public ApiResponse< DataGroupDTO > DataGroupsManagementUpdateDataGroupWithHttpInfo (string id, DataGroupDTO dataGroupForUpdate) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DataGroupsManagementApi->DataGroupsManagementUpdateDataGroup"); - // verify the required parameter 'dataGroupForUpdate' is set - if (dataGroupForUpdate == null) - throw new ApiException(400, "Missing required parameter 'dataGroupForUpdate' when calling DataGroupsManagementApi->DataGroupsManagementUpdateDataGroup"); - - var localVarPath = "/api/management/DataSources/DataGroups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (dataGroupForUpdate != null && dataGroupForUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(dataGroupForUpdate); // http body (model) parameter - } - else - { - localVarPostBody = dataGroupForUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementUpdateDataGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DataGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DataGroupDTO))); - } - - /// - /// This method updates specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group data for update - /// Task of DataGroupDTO - public async System.Threading.Tasks.Task DataGroupsManagementUpdateDataGroupAsync (string id, DataGroupDTO dataGroupForUpdate) - { - ApiResponse localVarResponse = await DataGroupsManagementUpdateDataGroupAsyncWithHttpInfo(id, dataGroupForUpdate); - return localVarResponse.Data; - - } - - /// - /// This method updates specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data group data for update - /// Task of ApiResponse (DataGroupDTO) - public async System.Threading.Tasks.Task> DataGroupsManagementUpdateDataGroupAsyncWithHttpInfo (string id, DataGroupDTO dataGroupForUpdate) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DataGroupsManagementApi->DataGroupsManagementUpdateDataGroup"); - // verify the required parameter 'dataGroupForUpdate' is set - if (dataGroupForUpdate == null) - throw new ApiException(400, "Missing required parameter 'dataGroupForUpdate' when calling DataGroupsManagementApi->DataGroupsManagementUpdateDataGroup"); - - var localVarPath = "/api/management/DataSources/DataGroups/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (dataGroupForUpdate != null && dataGroupForUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(dataGroupForUpdate); // http body (model) parameter - } - else - { - localVarPostBody = dataGroupForUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementUpdateDataGroup", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DataGroupDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DataGroupDTO))); - } - - /// - /// This method updates data source for a specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Data source to update - /// DataGroupSourceDTO - public DataGroupSourceDTO DataGroupsManagementUpdateDataGroupSource (string dataGroupId, string dataSourceId, DataGroupSourceDTO dataSource) - { - ApiResponse localVarResponse = DataGroupsManagementUpdateDataGroupSourceWithHttpInfo(dataGroupId, dataSourceId, dataSource); - return localVarResponse.Data; - } - - /// - /// This method updates data source for a specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Data source to update - /// ApiResponse of DataGroupSourceDTO - public ApiResponse< DataGroupSourceDTO > DataGroupsManagementUpdateDataGroupSourceWithHttpInfo (string dataGroupId, string dataSourceId, DataGroupSourceDTO dataSource) - { - // verify the required parameter 'dataGroupId' is set - if (dataGroupId == null) - throw new ApiException(400, "Missing required parameter 'dataGroupId' when calling DataGroupsManagementApi->DataGroupsManagementUpdateDataGroupSource"); - // verify the required parameter 'dataSourceId' is set - if (dataSourceId == null) - throw new ApiException(400, "Missing required parameter 'dataSourceId' when calling DataGroupsManagementApi->DataGroupsManagementUpdateDataGroupSource"); - // verify the required parameter 'dataSource' is set - if (dataSource == null) - throw new ApiException(400, "Missing required parameter 'dataSource' when calling DataGroupsManagementApi->DataGroupsManagementUpdateDataGroupSource"); - - var localVarPath = "/api/management/DataSources/DataGroups/{dataGroupId}/Sources/{dataSourceId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dataGroupId != null) localVarPathParams.Add("dataGroupId", this.Configuration.ApiClient.ParameterToString(dataGroupId)); // path parameter - if (dataSourceId != null) localVarPathParams.Add("dataSourceId", this.Configuration.ApiClient.ParameterToString(dataSourceId)); // path parameter - if (dataSource != null && dataSource.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(dataSource); // http body (model) parameter - } - else - { - localVarPostBody = dataSource; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementUpdateDataGroupSource", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DataGroupSourceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DataGroupSourceDTO))); - } - - /// - /// This method updates data source for a specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Data source to update - /// Task of DataGroupSourceDTO - public async System.Threading.Tasks.Task DataGroupsManagementUpdateDataGroupSourceAsync (string dataGroupId, string dataSourceId, DataGroupSourceDTO dataSource) - { - ApiResponse localVarResponse = await DataGroupsManagementUpdateDataGroupSourceAsyncWithHttpInfo(dataGroupId, dataSourceId, dataSource); - return localVarResponse.Data; - - } - - /// - /// This method updates data source for a specific data group - /// - /// Thrown when fails to make API call - /// Data group identifier - /// Data source identifier - /// Data source to update - /// Task of ApiResponse (DataGroupSourceDTO) - public async System.Threading.Tasks.Task> DataGroupsManagementUpdateDataGroupSourceAsyncWithHttpInfo (string dataGroupId, string dataSourceId, DataGroupSourceDTO dataSource) - { - // verify the required parameter 'dataGroupId' is set - if (dataGroupId == null) - throw new ApiException(400, "Missing required parameter 'dataGroupId' when calling DataGroupsManagementApi->DataGroupsManagementUpdateDataGroupSource"); - // verify the required parameter 'dataSourceId' is set - if (dataSourceId == null) - throw new ApiException(400, "Missing required parameter 'dataSourceId' when calling DataGroupsManagementApi->DataGroupsManagementUpdateDataGroupSource"); - // verify the required parameter 'dataSource' is set - if (dataSource == null) - throw new ApiException(400, "Missing required parameter 'dataSource' when calling DataGroupsManagementApi->DataGroupsManagementUpdateDataGroupSource"); - - var localVarPath = "/api/management/DataSources/DataGroups/{dataGroupId}/Sources/{dataSourceId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dataGroupId != null) localVarPathParams.Add("dataGroupId", this.Configuration.ApiClient.ParameterToString(dataGroupId)); // path parameter - if (dataSourceId != null) localVarPathParams.Add("dataSourceId", this.Configuration.ApiClient.ParameterToString(dataSourceId)); // path parameter - if (dataSource != null && dataSource.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(dataSource); // http body (model) parameter - } - else - { - localVarPostBody = dataSource; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DataGroupsManagementUpdateDataGroupSource", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DataGroupSourceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DataGroupSourceDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/DatabaseManagenentApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/DatabaseManagenentApi.cs deleted file mode 100644 index 497a318..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/DatabaseManagenentApi.cs +++ /dev/null @@ -1,495 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDatabaseManagenentApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call allows to retrieve field list for specified database table - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Table name - /// List<string> - List DatabaseManagenentGetDbFieldsByTable (string tableName); - - /// - /// This call allows to retrieve field list for specified database table - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Table name - /// ApiResponse of List<string> - ApiResponse> DatabaseManagenentGetDbFieldsByTableWithHttpInfo (string tableName); - /// - /// This call allows to retrieve database table list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<string> - List DatabaseManagenentGetDbTables (); - - /// - /// This call allows to retrieve database table list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<string> - ApiResponse> DatabaseManagenentGetDbTablesWithHttpInfo (); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call allows to retrieve field list for specified database table - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Table name - /// Task of List<string> - System.Threading.Tasks.Task> DatabaseManagenentGetDbFieldsByTableAsync (string tableName); - - /// - /// This call allows to retrieve field list for specified database table - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Table name - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> DatabaseManagenentGetDbFieldsByTableAsyncWithHttpInfo (string tableName); - /// - /// This call allows to retrieve database table list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<string> - System.Threading.Tasks.Task> DatabaseManagenentGetDbTablesAsync (); - - /// - /// This call allows to retrieve database table list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> DatabaseManagenentGetDbTablesAsyncWithHttpInfo (); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class DatabaseManagenentApi : IDatabaseManagenentApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public DatabaseManagenentApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public DatabaseManagenentApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call allows to retrieve field list for specified database table - /// - /// Thrown when fails to make API call - /// Table name - /// List<string> - public List DatabaseManagenentGetDbFieldsByTable (string tableName) - { - ApiResponse> localVarResponse = DatabaseManagenentGetDbFieldsByTableWithHttpInfo(tableName); - return localVarResponse.Data; - } - - /// - /// This call allows to retrieve field list for specified database table - /// - /// Thrown when fails to make API call - /// Table name - /// ApiResponse of List<string> - public ApiResponse< List > DatabaseManagenentGetDbFieldsByTableWithHttpInfo (string tableName) - { - // verify the required parameter 'tableName' is set - if (tableName == null) - throw new ApiException(400, "Missing required parameter 'tableName' when calling DatabaseManagenentApi->DatabaseManagenentGetDbFieldsByTable"); - - var localVarPath = "/api/management/Database/Tables/{tableName}/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tableName != null) localVarPathParams.Add("tableName", this.Configuration.ApiClient.ParameterToString(tableName)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DatabaseManagenentGetDbFieldsByTable", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows to retrieve field list for specified database table - /// - /// Thrown when fails to make API call - /// Table name - /// Task of List<string> - public async System.Threading.Tasks.Task> DatabaseManagenentGetDbFieldsByTableAsync (string tableName) - { - ApiResponse> localVarResponse = await DatabaseManagenentGetDbFieldsByTableAsyncWithHttpInfo(tableName); - return localVarResponse.Data; - - } - - /// - /// This call allows to retrieve field list for specified database table - /// - /// Thrown when fails to make API call - /// Table name - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> DatabaseManagenentGetDbFieldsByTableAsyncWithHttpInfo (string tableName) - { - // verify the required parameter 'tableName' is set - if (tableName == null) - throw new ApiException(400, "Missing required parameter 'tableName' when calling DatabaseManagenentApi->DatabaseManagenentGetDbFieldsByTable"); - - var localVarPath = "/api/management/Database/Tables/{tableName}/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (tableName != null) localVarPathParams.Add("tableName", this.Configuration.ApiClient.ParameterToString(tableName)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DatabaseManagenentGetDbFieldsByTable", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows to retrieve database table list - /// - /// Thrown when fails to make API call - /// List<string> - public List DatabaseManagenentGetDbTables () - { - ApiResponse> localVarResponse = DatabaseManagenentGetDbTablesWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call allows to retrieve database table list - /// - /// Thrown when fails to make API call - /// ApiResponse of List<string> - public ApiResponse< List > DatabaseManagenentGetDbTablesWithHttpInfo () - { - - var localVarPath = "/api/management/Database/Tables"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DatabaseManagenentGetDbTables", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows to retrieve database table list - /// - /// Thrown when fails to make API call - /// Task of List<string> - public async System.Threading.Tasks.Task> DatabaseManagenentGetDbTablesAsync () - { - ApiResponse> localVarResponse = await DatabaseManagenentGetDbTablesAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call allows to retrieve database table list - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> DatabaseManagenentGetDbTablesAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Database/Tables"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DatabaseManagenentGetDbTables", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/DistributionManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/DistributionManagementApi.cs deleted file mode 100644 index 3d7d5a3..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/DistributionManagementApi.cs +++ /dev/null @@ -1,510 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDistributionManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns document distribution settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// DocumentsDistributionSettingsDTO - DocumentsDistributionSettingsDTO DistributionManagementGetDocumentsDistributionSettings (); - - /// - /// This call returns document distribution settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of DocumentsDistributionSettingsDTO - ApiResponse DistributionManagementGetDocumentsDistributionSettingsWithHttpInfo (); - /// - /// This call updates document distribution settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings values for update - /// - void DistributionManagementSetDocumentsDistributionSettings (DocumentsDistributionSettingsDTO documentsDistributionSettings); - - /// - /// This call updates document distribution settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings values for update - /// ApiResponse of Object(void) - ApiResponse DistributionManagementSetDocumentsDistributionSettingsWithHttpInfo (DocumentsDistributionSettingsDTO documentsDistributionSettings); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns document distribution settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of DocumentsDistributionSettingsDTO - System.Threading.Tasks.Task DistributionManagementGetDocumentsDistributionSettingsAsync (); - - /// - /// This call returns document distribution settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DocumentsDistributionSettingsDTO) - System.Threading.Tasks.Task> DistributionManagementGetDocumentsDistributionSettingsAsyncWithHttpInfo (); - /// - /// This call updates document distribution settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings values for update - /// Task of void - System.Threading.Tasks.Task DistributionManagementSetDocumentsDistributionSettingsAsync (DocumentsDistributionSettingsDTO documentsDistributionSettings); - - /// - /// This call updates document distribution settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings values for update - /// Task of ApiResponse - System.Threading.Tasks.Task> DistributionManagementSetDocumentsDistributionSettingsAsyncWithHttpInfo (DocumentsDistributionSettingsDTO documentsDistributionSettings); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class DistributionManagementApi : IDistributionManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public DistributionManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public DistributionManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns document distribution settings - /// - /// Thrown when fails to make API call - /// DocumentsDistributionSettingsDTO - public DocumentsDistributionSettingsDTO DistributionManagementGetDocumentsDistributionSettings () - { - ApiResponse localVarResponse = DistributionManagementGetDocumentsDistributionSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns document distribution settings - /// - /// Thrown when fails to make API call - /// ApiResponse of DocumentsDistributionSettingsDTO - public ApiResponse< DocumentsDistributionSettingsDTO > DistributionManagementGetDocumentsDistributionSettingsWithHttpInfo () - { - - var localVarPath = "/api/management/Distribution/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DistributionManagementGetDocumentsDistributionSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentsDistributionSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentsDistributionSettingsDTO))); - } - - /// - /// This call returns document distribution settings - /// - /// Thrown when fails to make API call - /// Task of DocumentsDistributionSettingsDTO - public async System.Threading.Tasks.Task DistributionManagementGetDocumentsDistributionSettingsAsync () - { - ApiResponse localVarResponse = await DistributionManagementGetDocumentsDistributionSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns document distribution settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DocumentsDistributionSettingsDTO) - public async System.Threading.Tasks.Task> DistributionManagementGetDocumentsDistributionSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Distribution/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DistributionManagementGetDocumentsDistributionSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentsDistributionSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentsDistributionSettingsDTO))); - } - - /// - /// This call updates document distribution settings - /// - /// Thrown when fails to make API call - /// Settings values for update - /// - public void DistributionManagementSetDocumentsDistributionSettings (DocumentsDistributionSettingsDTO documentsDistributionSettings) - { - DistributionManagementSetDocumentsDistributionSettingsWithHttpInfo(documentsDistributionSettings); - } - - /// - /// This call updates document distribution settings - /// - /// Thrown when fails to make API call - /// Settings values for update - /// ApiResponse of Object(void) - public ApiResponse DistributionManagementSetDocumentsDistributionSettingsWithHttpInfo (DocumentsDistributionSettingsDTO documentsDistributionSettings) - { - // verify the required parameter 'documentsDistributionSettings' is set - if (documentsDistributionSettings == null) - throw new ApiException(400, "Missing required parameter 'documentsDistributionSettings' when calling DistributionManagementApi->DistributionManagementSetDocumentsDistributionSettings"); - - var localVarPath = "/api/management/Distribution/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentsDistributionSettings != null && documentsDistributionSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(documentsDistributionSettings); // http body (model) parameter - } - else - { - localVarPostBody = documentsDistributionSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DistributionManagementSetDocumentsDistributionSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates document distribution settings - /// - /// Thrown when fails to make API call - /// Settings values for update - /// Task of void - public async System.Threading.Tasks.Task DistributionManagementSetDocumentsDistributionSettingsAsync (DocumentsDistributionSettingsDTO documentsDistributionSettings) - { - await DistributionManagementSetDocumentsDistributionSettingsAsyncWithHttpInfo(documentsDistributionSettings); - - } - - /// - /// This call updates document distribution settings - /// - /// Thrown when fails to make API call - /// Settings values for update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DistributionManagementSetDocumentsDistributionSettingsAsyncWithHttpInfo (DocumentsDistributionSettingsDTO documentsDistributionSettings) - { - // verify the required parameter 'documentsDistributionSettings' is set - if (documentsDistributionSettings == null) - throw new ApiException(400, "Missing required parameter 'documentsDistributionSettings' when calling DistributionManagementApi->DistributionManagementSetDocumentsDistributionSettings"); - - var localVarPath = "/api/management/Distribution/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentsDistributionSettings != null && documentsDistributionSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(documentsDistributionSettings); // http body (model) parameter - } - else - { - localVarPostBody = documentsDistributionSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DistributionManagementSetDocumentsDistributionSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/DocumentTypesManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/DocumentTypesManagementApi.cs deleted file mode 100644 index 4668724..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/DocumentTypesManagementApi.cs +++ /dev/null @@ -1,8771 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDocumentTypesManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes Document Type specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// - void DocumentTypesManagementDelete (int? id); - - /// - /// This call deletes Document Type specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of Object(void) - ApiResponse DocumentTypesManagementDeleteWithHttpInfo (int? id); - /// - /// This call delete an automatic reference by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Automatic reference identifier - /// - void DocumentTypesManagementDeleteAutomaticReference (int? automaticReferenceId); - - /// - /// This call delete an automatic reference by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Automatic reference identifier - /// ApiResponse of Object(void) - ApiResponse DocumentTypesManagementDeleteAutomaticReferenceWithHttpInfo (int? automaticReferenceId); - /// - /// This call deletes specific receipt PA - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// - void DocumentTypesManagementDeleteDocumentTypeReceiptPA (int? documentTypeId); - - /// - /// This call deletes specific receipt PA - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of Object(void) - ApiResponse DocumentTypesManagementDeleteDocumentTypeReceiptPAWithHttpInfo (int? documentTypeId); - /// - /// This call remove Document type stylesheet - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// - void DocumentTypesManagementDeleteDocumentTypeStylesheet (int? documentTypeId); - - /// - /// This call remove Document type stylesheet - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of Object(void) - ApiResponse DocumentTypesManagementDeleteDocumentTypeStylesheetWithHttpInfo (int? documentTypeId); - /// - /// This call delete specific document type folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Folder type Id - /// - void DocumentTypesManagementDeleteDocumentTypesFolder (int? folderTypeId); - - /// - /// This call delete specific document type folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Folder type Id - /// ApiResponse of Object(void) - ApiResponse DocumentTypesManagementDeleteDocumentTypesFolderWithHttpInfo (int? folderTypeId); - /// - /// This call delete pdf options by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options identifier - /// - void DocumentTypesManagementDeletePdfOptions (int? pdfOptionsId); - - /// - /// This call delete pdf options by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options identifier - /// ApiResponse of Object(void) - ApiResponse DocumentTypesManagementDeletePdfOptionsWithHttpInfo (int? pdfOptionsId); - /// - /// This call returns all archive options for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ArchiveOptionsForViewDTO - ArchiveOptionsForViewDTO DocumentTypesManagementGetArchiveRules (int? documentTypeId); - - /// - /// This call returns all archive options for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of ArchiveOptionsForViewDTO - ApiResponse DocumentTypesManagementGetArchiveRulesWithHttpInfo (int? documentTypeId); - /// - /// This call returns all automatic references for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// List<AutomaticReferenceDTO> - List DocumentTypesManagementGetAutomaticReferencesByDocumentTypeId (int? documentTypeId); - - /// - /// This call returns all automatic references for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of List<AutomaticReferenceDTO> - ApiResponse> DocumentTypesManagementGetAutomaticReferencesByDocumentTypeIdWithHttpInfo (int? documentTypeId); - /// - /// This call gets Document Type information by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// DocumentTypeCompleteDTO - DocumentTypeCompleteDTO DocumentTypesManagementGetById (int? id); - - /// - /// This call gets Document Type information by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of DocumentTypeCompleteDTO - ApiResponse DocumentTypesManagementGetByIdWithHttpInfo (int? id); - /// - /// This call gets Document Type information by ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// First level document Type Identifier - /// Second level document Type Identifier - /// Third level document Type Identifier - /// DocumentTypeCompleteDTO - DocumentTypeCompleteDTO DocumentTypesManagementGetByIds (int? documentType, int? type2, int? type3); - - /// - /// This call gets Document Type information by ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// First level document Type Identifier - /// Second level document Type Identifier - /// Third level document Type Identifier - /// ApiResponse of DocumentTypeCompleteDTO - ApiResponse DocumentTypesManagementGetByIdsWithHttpInfo (int? documentType, int? type2, int? type3); - /// - /// This call gets Document Type information by code - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// DocumentTypeCompleteDTO - DocumentTypeCompleteDTO DocumentTypesManagementGetByKey (string key); - - /// - /// This call gets Document Type information by code - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of DocumentTypeCompleteDTO - ApiResponse DocumentTypesManagementGetByKeyWithHttpInfo (string key); - /// - /// This call returns all document type folders - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// List<FolderTypeDTO> - List DocumentTypesManagementGetDocumentTypeFolders (int? documentTypeId); - - /// - /// This call returns all document type folders - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ApiResponse of List<FolderTypeDTO> - ApiResponse> DocumentTypesManagementGetDocumentTypeFoldersWithHttpInfo (int? documentTypeId); - /// - /// This call returns receipt PA by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ReceiptPADTO - ReceiptPADTO DocumentTypesManagementGetDocumentTypeReceiptPA (int? documentTypeId); - - /// - /// This call returns receipt PA by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of ReceiptPADTO - ApiResponse DocumentTypesManagementGetDocumentTypeReceiptPAWithHttpInfo (int? documentTypeId); - /// - /// This call returns all receipts PA for all document types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<ReceiptPADTO> - List DocumentTypesManagementGetDocumentTypeReceiptPAList (); - - /// - /// This call returns all receipts PA for all document types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ReceiptPADTO> - ApiResponse> DocumentTypesManagementGetDocumentTypeReceiptPAListWithHttpInfo (); - /// - /// This call returns all states for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// List<DocumentTypeStateDTO> - List DocumentTypesManagementGetDocumentTypeStates (int? documentTypeId); - - /// - /// This call returns all states for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of List<DocumentTypeStateDTO> - ApiResponse> DocumentTypesManagementGetDocumentTypeStatesWithHttpInfo (int? documentTypeId); - /// - /// This call get Document type stylesheet binary file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// System.IO.Stream - System.IO.Stream DocumentTypesManagementGetDocumentTypeStylesheet (int? documentTypeId); - - /// - /// This call get Document type stylesheet binary file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of System.IO.Stream - ApiResponse DocumentTypesManagementGetDocumentTypeStylesheetWithHttpInfo (int? documentTypeId); - /// - /// This call returns all document type users masks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// UsersMasksDTO - UsersMasksDTO DocumentTypesManagementGetDocumentTypeUsersMasks (int? documentTypeId); - - /// - /// This call returns all document type users masks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ApiResponse of UsersMasksDTO - ApiResponse DocumentTypesManagementGetDocumentTypeUsersMasksWithHttpInfo (int? documentTypeId); - /// - /// This call get specific document type folder by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Folder type Identifier - /// FolderTypeDTO - FolderTypeDTO DocumentTypesManagementGetDocumentTypesFolder (int? folderTypeId); - - /// - /// This call get specific document type folder by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Folder type Identifier - /// ApiResponse of FolderTypeDTO - ApiResponse DocumentTypesManagementGetDocumentTypesFolderWithHttpInfo (int? folderTypeId); - /// - /// This call retrieve Document type forward users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ForwardUsersDTO - ForwardUsersDTO DocumentTypesManagementGetForwardUsers (int? documentTypeId); - - /// - /// This call retrieve Document type forward users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ApiResponse of ForwardUsersDTO - ApiResponse DocumentTypesManagementGetForwardUsersWithHttpInfo (int? documentTypeId); - /// - /// This call returns all document types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<DocumentTypeCompleteDTO> - List DocumentTypesManagementGetList (); - - /// - /// This call returns all document types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<DocumentTypeCompleteDTO> - ApiResponse> DocumentTypesManagementGetListWithHttpInfo (); - /// - /// This call returns all mail settings for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// MailOptionsDTO - MailOptionsDTO DocumentTypesManagementGetMailOptions (int? documentTypeId); - - /// - /// This call returns all mail settings for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of MailOptionsDTO - ApiResponse DocumentTypesManagementGetMailOptionsWithHttpInfo (int? documentTypeId); - /// - /// This call returns all pdf options for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// List<PdfOptionsDTO> - List DocumentTypesManagementGetPdfOptionsByDocumentTypeId (int? documentTypeId); - - /// - /// This call returns all pdf options for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of List<PdfOptionsDTO> - ApiResponse> DocumentTypesManagementGetPdfOptionsByDocumentTypeIdWithHttpInfo (int? documentTypeId); - /// - /// This call returns pdf options by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options id - /// PdfOptionsDTO - PdfOptionsDTO DocumentTypesManagementGetPdfOptionsById (int? pdfOptionsId); - - /// - /// This call returns pdf options by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options id - /// ApiResponse of PdfOptionsDTO - ApiResponse DocumentTypesManagementGetPdfOptionsByIdWithHttpInfo (int? pdfOptionsId); - /// - /// This call returns automatic reference by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// AutomaticReferenceDTO - AutomaticReferenceDTO DocumentTypesManagementGetReferencesById (int? automaticReferenceId); - - /// - /// This call returns automatic reference by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of AutomaticReferenceDTO - ApiResponse DocumentTypesManagementGetReferencesByIdWithHttpInfo (int? automaticReferenceId); - /// - /// This call returns all uniqueness rules for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// UniquenessRulesDTO - UniquenessRulesDTO DocumentTypesManagementGetUniquenessRules (int? documentTypeId); - - /// - /// This call returns all uniqueness rules for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of UniquenessRulesDTO - ApiResponse DocumentTypesManagementGetUniquenessRulesWithHttpInfo (int? documentTypeId); - /// - /// This call inserts a new Docuent Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type information for insert - /// DocumentTypeCompleteDTO - DocumentTypeCompleteDTO DocumentTypesManagementInsert (DocumentTypeForInsertDTO documentTypeForInsert); - - /// - /// This call inserts a new Docuent Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type information for insert - /// ApiResponse of DocumentTypeCompleteDTO - ApiResponse DocumentTypesManagementInsertWithHttpInfo (DocumentTypeForInsertDTO documentTypeForInsert); - /// - /// This call insert automatic reference - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Automatic reference for insert - /// AutomaticReferenceDTO - AutomaticReferenceDTO DocumentTypesManagementInsertAutomaticReference (AutomaticReferenceDTO automaticReference); - - /// - /// This call insert automatic reference - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Automatic reference for insert - /// ApiResponse of AutomaticReferenceDTO - ApiResponse DocumentTypesManagementInsertAutomaticReferenceWithHttpInfo (AutomaticReferenceDTO automaticReference); - /// - /// This call insert new document type folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type for insert - /// FolderTypeDTO - FolderTypeDTO DocumentTypesManagementInsertDocumentTypesFolders (FolderTypeDTO folderType); - - /// - /// This call insert new document type folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type for insert - /// ApiResponse of FolderTypeDTO - ApiResponse DocumentTypesManagementInsertDocumentTypesFoldersWithHttpInfo (FolderTypeDTO folderType); - /// - /// This call insert pdf options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options for insert - /// PdfOptionsDTO - PdfOptionsDTO DocumentTypesManagementInsertPdfOptions (PdfOptionsDTO pdfOptions); - - /// - /// This call insert pdf options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options for insert - /// ApiResponse of PdfOptionsDTO - ApiResponse DocumentTypesManagementInsertPdfOptionsWithHttpInfo (PdfOptionsDTO pdfOptions); - /// - /// This call update archive options for a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Archive options for the document type - /// - void DocumentTypesManagementSetArchiveRules (int? documentTypeId, ArchiveOptionsDTO archiveOptions); - - /// - /// This call update archive options for a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Archive options for the document type - /// ApiResponse of Object(void) - ApiResponse DocumentTypesManagementSetArchiveRulesWithHttpInfo (int? documentTypeId, ArchiveOptionsDTO archiveOptions); - /// - /// This call inserts or updates specific receipt PA - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Receipt PA - /// ReceiptPADTO - ReceiptPADTO DocumentTypesManagementSetDocumentTypeReceiptPA (int? documentTypeId, ReceiptPADTO receiptPA); - - /// - /// This call inserts or updates specific receipt PA - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Receipt PA - /// ApiResponse of ReceiptPADTO - ApiResponse DocumentTypesManagementSetDocumentTypeReceiptPAWithHttpInfo (int? documentTypeId, ReceiptPADTO receiptPA); - /// - /// This call update Document type stylesheet - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Identifier of the file buffered - /// - void DocumentTypesManagementSetDocumentTypeStylesheet (int? documentTypeId, string fileBufferId); - - /// - /// This call update Document type stylesheet - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Identifier of the file buffered - /// ApiResponse of Object(void) - ApiResponse DocumentTypesManagementSetDocumentTypeStylesheetWithHttpInfo (int? documentTypeId, string fileBufferId); - /// - /// This call update all document type users masks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type users masks - /// - void DocumentTypesManagementSetDocumentTypeUsersMasks (int? documentTypeId, UsersMasksDTO usersMasks); - - /// - /// This call update all document type users masks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type users masks - /// ApiResponse of Object(void) - ApiResponse DocumentTypesManagementSetDocumentTypeUsersMasksWithHttpInfo (int? documentTypeId, UsersMasksDTO usersMasks); - /// - /// This call update all document type folders - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type folders - /// - void DocumentTypesManagementSetDocumentTypesFolders (int? documentTypeId, List folderTypes); - - /// - /// This call update all document type folders - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type folders - /// ApiResponse of Object(void) - ApiResponse DocumentTypesManagementSetDocumentTypesFoldersWithHttpInfo (int? documentTypeId, List folderTypes); - /// - /// This call update Document type forward users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type forward users - /// - void DocumentTypesManagementSetForwardUsers (int? documentTypeId, ForwardUsersDTO forwardUsers); - - /// - /// This call update Document type forward users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type forward users - /// ApiResponse of Object(void) - ApiResponse DocumentTypesManagementSetForwardUsersWithHttpInfo (int? documentTypeId, ForwardUsersDTO forwardUsers); - /// - /// This call update all mail settings for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Mail settings for the document type - /// - void DocumentTypesManagementSetMailOptions (int? documentTypeId, MailOptionsDTO mailOptions); - - /// - /// This call update all mail settings for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Mail settings for the document type - /// ApiResponse of Object(void) - ApiResponse DocumentTypesManagementSetMailOptionsWithHttpInfo (int? documentTypeId, MailOptionsDTO mailOptions); - /// - /// This call insert or update pdf options for a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Pdf options for the document type - /// - void DocumentTypesManagementSetOptionsPdf (int? documentTypeId, List pdfOptions); - - /// - /// This call insert or update pdf options for a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Pdf options for the document type - /// ApiResponse of Object(void) - ApiResponse DocumentTypesManagementSetOptionsPdfWithHttpInfo (int? documentTypeId, List pdfOptions); - /// - /// This call update all uniqueness rules for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Uniqueness rules for the document type - /// - void DocumentTypesManagementSetUniquenessRules (int? documentTypeId, UniquenessRulesDTO uniquenessRules); - - /// - /// This call update all uniqueness rules for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Uniqueness rules for the document type - /// ApiResponse of Object(void) - ApiResponse DocumentTypesManagementSetUniquenessRulesWithHttpInfo (int? documentTypeId, UniquenessRulesDTO uniquenessRules); - /// - /// This call updates a given Document Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Document Type information for update - /// DocumentTypeCompleteDTO - DocumentTypeCompleteDTO DocumentTypesManagementUpdate (int? id, DocumentTypeForUpdateDTO documentTypeForUpdate); - - /// - /// This call updates a given Document Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Document Type information for update - /// ApiResponse of DocumentTypeCompleteDTO - ApiResponse DocumentTypesManagementUpdateWithHttpInfo (int? id, DocumentTypeForUpdateDTO documentTypeForUpdate); - /// - /// This call update automatic reference by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Automatic reference for update - /// AutomaticReferenceDTO - AutomaticReferenceDTO DocumentTypesManagementUpdateAutomaticReference (AutomaticReferenceDTO automaticReference); - - /// - /// This call update automatic reference by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Automatic reference for update - /// ApiResponse of AutomaticReferenceDTO - ApiResponse DocumentTypesManagementUpdateAutomaticReferenceWithHttpInfo (AutomaticReferenceDTO automaticReference); - /// - /// This call update states for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Document Type states - /// - void DocumentTypesManagementUpdateDocumentTypeStates (int? documentTypeId, List documentTypeStates); - - /// - /// This call update states for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Document Type states - /// ApiResponse of Object(void) - ApiResponse DocumentTypesManagementUpdateDocumentTypeStatesWithHttpInfo (int? documentTypeId, List documentTypeStates); - /// - /// This call update specific document type folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type for update - /// FolderTypeDTO - FolderTypeDTO DocumentTypesManagementUpdateDocumentTypesFolders (FolderTypeDTO folderType); - - /// - /// This call update specific document type folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type for update - /// ApiResponse of FolderTypeDTO - ApiResponse DocumentTypesManagementUpdateDocumentTypesFoldersWithHttpInfo (FolderTypeDTO folderType); - /// - /// This call update pdf options by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options for update - /// PdfOptionsDTO - PdfOptionsDTO DocumentTypesManagementUpdatePdfOptions (PdfOptionsDTO pdfOptions); - - /// - /// This call update pdf options by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options for update - /// ApiResponse of PdfOptionsDTO - ApiResponse DocumentTypesManagementUpdatePdfOptionsWithHttpInfo (PdfOptionsDTO pdfOptions); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes Document Type specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of void - System.Threading.Tasks.Task DocumentTypesManagementDeleteAsync (int? id); - - /// - /// This call deletes Document Type specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentTypesManagementDeleteAsyncWithHttpInfo (int? id); - /// - /// This call delete an automatic reference by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Automatic reference identifier - /// Task of void - System.Threading.Tasks.Task DocumentTypesManagementDeleteAutomaticReferenceAsync (int? automaticReferenceId); - - /// - /// This call delete an automatic reference by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Automatic reference identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentTypesManagementDeleteAutomaticReferenceAsyncWithHttpInfo (int? automaticReferenceId); - /// - /// This call deletes specific receipt PA - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of void - System.Threading.Tasks.Task DocumentTypesManagementDeleteDocumentTypeReceiptPAAsync (int? documentTypeId); - - /// - /// This call deletes specific receipt PA - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentTypesManagementDeleteDocumentTypeReceiptPAAsyncWithHttpInfo (int? documentTypeId); - /// - /// This call remove Document type stylesheet - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of void - System.Threading.Tasks.Task DocumentTypesManagementDeleteDocumentTypeStylesheetAsync (int? documentTypeId); - - /// - /// This call remove Document type stylesheet - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentTypesManagementDeleteDocumentTypeStylesheetAsyncWithHttpInfo (int? documentTypeId); - /// - /// This call delete specific document type folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Folder type Id - /// Task of void - System.Threading.Tasks.Task DocumentTypesManagementDeleteDocumentTypesFolderAsync (int? folderTypeId); - - /// - /// This call delete specific document type folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Folder type Id - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentTypesManagementDeleteDocumentTypesFolderAsyncWithHttpInfo (int? folderTypeId); - /// - /// This call delete pdf options by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options identifier - /// Task of void - System.Threading.Tasks.Task DocumentTypesManagementDeletePdfOptionsAsync (int? pdfOptionsId); - - /// - /// This call delete pdf options by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentTypesManagementDeletePdfOptionsAsyncWithHttpInfo (int? pdfOptionsId); - /// - /// This call returns all archive options for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ArchiveOptionsForViewDTO - System.Threading.Tasks.Task DocumentTypesManagementGetArchiveRulesAsync (int? documentTypeId); - - /// - /// This call returns all archive options for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (ArchiveOptionsForViewDTO) - System.Threading.Tasks.Task> DocumentTypesManagementGetArchiveRulesAsyncWithHttpInfo (int? documentTypeId); - /// - /// This call returns all automatic references for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of List<AutomaticReferenceDTO> - System.Threading.Tasks.Task> DocumentTypesManagementGetAutomaticReferencesByDocumentTypeIdAsync (int? documentTypeId); - - /// - /// This call returns all automatic references for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (List<AutomaticReferenceDTO>) - System.Threading.Tasks.Task>> DocumentTypesManagementGetAutomaticReferencesByDocumentTypeIdAsyncWithHttpInfo (int? documentTypeId); - /// - /// This call gets Document Type information by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of DocumentTypeCompleteDTO - System.Threading.Tasks.Task DocumentTypesManagementGetByIdAsync (int? id); - - /// - /// This call gets Document Type information by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse (DocumentTypeCompleteDTO) - System.Threading.Tasks.Task> DocumentTypesManagementGetByIdAsyncWithHttpInfo (int? id); - /// - /// This call gets Document Type information by ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// First level document Type Identifier - /// Second level document Type Identifier - /// Third level document Type Identifier - /// Task of DocumentTypeCompleteDTO - System.Threading.Tasks.Task DocumentTypesManagementGetByIdsAsync (int? documentType, int? type2, int? type3); - - /// - /// This call gets Document Type information by ids - /// - /// - /// - /// - /// Thrown when fails to make API call - /// First level document Type Identifier - /// Second level document Type Identifier - /// Third level document Type Identifier - /// Task of ApiResponse (DocumentTypeCompleteDTO) - System.Threading.Tasks.Task> DocumentTypesManagementGetByIdsAsyncWithHttpInfo (int? documentType, int? type2, int? type3); - /// - /// This call gets Document Type information by code - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of DocumentTypeCompleteDTO - System.Threading.Tasks.Task DocumentTypesManagementGetByKeyAsync (string key); - - /// - /// This call gets Document Type information by code - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse (DocumentTypeCompleteDTO) - System.Threading.Tasks.Task> DocumentTypesManagementGetByKeyAsyncWithHttpInfo (string key); - /// - /// This call returns all document type folders - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of List<FolderTypeDTO> - System.Threading.Tasks.Task> DocumentTypesManagementGetDocumentTypeFoldersAsync (int? documentTypeId); - - /// - /// This call returns all document type folders - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ApiResponse (List<FolderTypeDTO>) - System.Threading.Tasks.Task>> DocumentTypesManagementGetDocumentTypeFoldersAsyncWithHttpInfo (int? documentTypeId); - /// - /// This call returns receipt PA by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ReceiptPADTO - System.Threading.Tasks.Task DocumentTypesManagementGetDocumentTypeReceiptPAAsync (int? documentTypeId); - - /// - /// This call returns receipt PA by a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (ReceiptPADTO) - System.Threading.Tasks.Task> DocumentTypesManagementGetDocumentTypeReceiptPAAsyncWithHttpInfo (int? documentTypeId); - /// - /// This call returns all receipts PA for all document types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<ReceiptPADTO> - System.Threading.Tasks.Task> DocumentTypesManagementGetDocumentTypeReceiptPAListAsync (); - - /// - /// This call returns all receipts PA for all document types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ReceiptPADTO>) - System.Threading.Tasks.Task>> DocumentTypesManagementGetDocumentTypeReceiptPAListAsyncWithHttpInfo (); - /// - /// This call returns all states for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of List<DocumentTypeStateDTO> - System.Threading.Tasks.Task> DocumentTypesManagementGetDocumentTypeStatesAsync (int? documentTypeId); - - /// - /// This call returns all states for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (List<DocumentTypeStateDTO>) - System.Threading.Tasks.Task>> DocumentTypesManagementGetDocumentTypeStatesAsyncWithHttpInfo (int? documentTypeId); - /// - /// This call get Document type stylesheet binary file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of System.IO.Stream - System.Threading.Tasks.Task DocumentTypesManagementGetDocumentTypeStylesheetAsync (int? documentTypeId); - - /// - /// This call get Document type stylesheet binary file - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> DocumentTypesManagementGetDocumentTypeStylesheetAsyncWithHttpInfo (int? documentTypeId); - /// - /// This call returns all document type users masks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of UsersMasksDTO - System.Threading.Tasks.Task DocumentTypesManagementGetDocumentTypeUsersMasksAsync (int? documentTypeId); - - /// - /// This call returns all document type users masks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ApiResponse (UsersMasksDTO) - System.Threading.Tasks.Task> DocumentTypesManagementGetDocumentTypeUsersMasksAsyncWithHttpInfo (int? documentTypeId); - /// - /// This call get specific document type folder by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Folder type Identifier - /// Task of FolderTypeDTO - System.Threading.Tasks.Task DocumentTypesManagementGetDocumentTypesFolderAsync (int? folderTypeId); - - /// - /// This call get specific document type folder by its identifier - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Folder type Identifier - /// Task of ApiResponse (FolderTypeDTO) - System.Threading.Tasks.Task> DocumentTypesManagementGetDocumentTypesFolderAsyncWithHttpInfo (int? folderTypeId); - /// - /// This call retrieve Document type forward users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ForwardUsersDTO - System.Threading.Tasks.Task DocumentTypesManagementGetForwardUsersAsync (int? documentTypeId); - - /// - /// This call retrieve Document type forward users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ApiResponse (ForwardUsersDTO) - System.Threading.Tasks.Task> DocumentTypesManagementGetForwardUsersAsyncWithHttpInfo (int? documentTypeId); - /// - /// This call returns all document types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<DocumentTypeCompleteDTO> - System.Threading.Tasks.Task> DocumentTypesManagementGetListAsync (); - - /// - /// This call returns all document types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<DocumentTypeCompleteDTO>) - System.Threading.Tasks.Task>> DocumentTypesManagementGetListAsyncWithHttpInfo (); - /// - /// This call returns all mail settings for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of MailOptionsDTO - System.Threading.Tasks.Task DocumentTypesManagementGetMailOptionsAsync (int? documentTypeId); - - /// - /// This call returns all mail settings for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (MailOptionsDTO) - System.Threading.Tasks.Task> DocumentTypesManagementGetMailOptionsAsyncWithHttpInfo (int? documentTypeId); - /// - /// This call returns all pdf options for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of List<PdfOptionsDTO> - System.Threading.Tasks.Task> DocumentTypesManagementGetPdfOptionsByDocumentTypeIdAsync (int? documentTypeId); - - /// - /// This call returns all pdf options for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (List<PdfOptionsDTO>) - System.Threading.Tasks.Task>> DocumentTypesManagementGetPdfOptionsByDocumentTypeIdAsyncWithHttpInfo (int? documentTypeId); - /// - /// This call returns pdf options by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options id - /// Task of PdfOptionsDTO - System.Threading.Tasks.Task DocumentTypesManagementGetPdfOptionsByIdAsync (int? pdfOptionsId); - - /// - /// This call returns pdf options by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options id - /// Task of ApiResponse (PdfOptionsDTO) - System.Threading.Tasks.Task> DocumentTypesManagementGetPdfOptionsByIdAsyncWithHttpInfo (int? pdfOptionsId); - /// - /// This call returns automatic reference by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of AutomaticReferenceDTO - System.Threading.Tasks.Task DocumentTypesManagementGetReferencesByIdAsync (int? automaticReferenceId); - - /// - /// This call returns automatic reference by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (AutomaticReferenceDTO) - System.Threading.Tasks.Task> DocumentTypesManagementGetReferencesByIdAsyncWithHttpInfo (int? automaticReferenceId); - /// - /// This call returns all uniqueness rules for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of UniquenessRulesDTO - System.Threading.Tasks.Task DocumentTypesManagementGetUniquenessRulesAsync (int? documentTypeId); - - /// - /// This call returns all uniqueness rules for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (UniquenessRulesDTO) - System.Threading.Tasks.Task> DocumentTypesManagementGetUniquenessRulesAsyncWithHttpInfo (int? documentTypeId); - /// - /// This call inserts a new Docuent Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type information for insert - /// Task of DocumentTypeCompleteDTO - System.Threading.Tasks.Task DocumentTypesManagementInsertAsync (DocumentTypeForInsertDTO documentTypeForInsert); - - /// - /// This call inserts a new Docuent Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type information for insert - /// Task of ApiResponse (DocumentTypeCompleteDTO) - System.Threading.Tasks.Task> DocumentTypesManagementInsertAsyncWithHttpInfo (DocumentTypeForInsertDTO documentTypeForInsert); - /// - /// This call insert automatic reference - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Automatic reference for insert - /// Task of AutomaticReferenceDTO - System.Threading.Tasks.Task DocumentTypesManagementInsertAutomaticReferenceAsync (AutomaticReferenceDTO automaticReference); - - /// - /// This call insert automatic reference - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Automatic reference for insert - /// Task of ApiResponse (AutomaticReferenceDTO) - System.Threading.Tasks.Task> DocumentTypesManagementInsertAutomaticReferenceAsyncWithHttpInfo (AutomaticReferenceDTO automaticReference); - /// - /// This call insert new document type folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type for insert - /// Task of FolderTypeDTO - System.Threading.Tasks.Task DocumentTypesManagementInsertDocumentTypesFoldersAsync (FolderTypeDTO folderType); - - /// - /// This call insert new document type folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type for insert - /// Task of ApiResponse (FolderTypeDTO) - System.Threading.Tasks.Task> DocumentTypesManagementInsertDocumentTypesFoldersAsyncWithHttpInfo (FolderTypeDTO folderType); - /// - /// This call insert pdf options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options for insert - /// Task of PdfOptionsDTO - System.Threading.Tasks.Task DocumentTypesManagementInsertPdfOptionsAsync (PdfOptionsDTO pdfOptions); - - /// - /// This call insert pdf options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options for insert - /// Task of ApiResponse (PdfOptionsDTO) - System.Threading.Tasks.Task> DocumentTypesManagementInsertPdfOptionsAsyncWithHttpInfo (PdfOptionsDTO pdfOptions); - /// - /// This call update archive options for a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Archive options for the document type - /// Task of void - System.Threading.Tasks.Task DocumentTypesManagementSetArchiveRulesAsync (int? documentTypeId, ArchiveOptionsDTO archiveOptions); - - /// - /// This call update archive options for a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Archive options for the document type - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentTypesManagementSetArchiveRulesAsyncWithHttpInfo (int? documentTypeId, ArchiveOptionsDTO archiveOptions); - /// - /// This call inserts or updates specific receipt PA - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Receipt PA - /// Task of ReceiptPADTO - System.Threading.Tasks.Task DocumentTypesManagementSetDocumentTypeReceiptPAAsync (int? documentTypeId, ReceiptPADTO receiptPA); - - /// - /// This call inserts or updates specific receipt PA - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Receipt PA - /// Task of ApiResponse (ReceiptPADTO) - System.Threading.Tasks.Task> DocumentTypesManagementSetDocumentTypeReceiptPAAsyncWithHttpInfo (int? documentTypeId, ReceiptPADTO receiptPA); - /// - /// This call update Document type stylesheet - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Identifier of the file buffered - /// Task of void - System.Threading.Tasks.Task DocumentTypesManagementSetDocumentTypeStylesheetAsync (int? documentTypeId, string fileBufferId); - - /// - /// This call update Document type stylesheet - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Identifier of the file buffered - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentTypesManagementSetDocumentTypeStylesheetAsyncWithHttpInfo (int? documentTypeId, string fileBufferId); - /// - /// This call update all document type users masks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type users masks - /// Task of void - System.Threading.Tasks.Task DocumentTypesManagementSetDocumentTypeUsersMasksAsync (int? documentTypeId, UsersMasksDTO usersMasks); - - /// - /// This call update all document type users masks - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type users masks - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentTypesManagementSetDocumentTypeUsersMasksAsyncWithHttpInfo (int? documentTypeId, UsersMasksDTO usersMasks); - /// - /// This call update all document type folders - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type folders - /// Task of void - System.Threading.Tasks.Task DocumentTypesManagementSetDocumentTypesFoldersAsync (int? documentTypeId, List folderTypes); - - /// - /// This call update all document type folders - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type folders - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentTypesManagementSetDocumentTypesFoldersAsyncWithHttpInfo (int? documentTypeId, List folderTypes); - /// - /// This call update Document type forward users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type forward users - /// Task of void - System.Threading.Tasks.Task DocumentTypesManagementSetForwardUsersAsync (int? documentTypeId, ForwardUsersDTO forwardUsers); - - /// - /// This call update Document type forward users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type forward users - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentTypesManagementSetForwardUsersAsyncWithHttpInfo (int? documentTypeId, ForwardUsersDTO forwardUsers); - /// - /// This call update all mail settings for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Mail settings for the document type - /// Task of void - System.Threading.Tasks.Task DocumentTypesManagementSetMailOptionsAsync (int? documentTypeId, MailOptionsDTO mailOptions); - - /// - /// This call update all mail settings for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Mail settings for the document type - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentTypesManagementSetMailOptionsAsyncWithHttpInfo (int? documentTypeId, MailOptionsDTO mailOptions); - /// - /// This call insert or update pdf options for a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Pdf options for the document type - /// Task of void - System.Threading.Tasks.Task DocumentTypesManagementSetOptionsPdfAsync (int? documentTypeId, List pdfOptions); - - /// - /// This call insert or update pdf options for a specific document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Pdf options for the document type - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentTypesManagementSetOptionsPdfAsyncWithHttpInfo (int? documentTypeId, List pdfOptions); - /// - /// This call update all uniqueness rules for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Uniqueness rules for the document type - /// Task of void - System.Threading.Tasks.Task DocumentTypesManagementSetUniquenessRulesAsync (int? documentTypeId, UniquenessRulesDTO uniquenessRules); - - /// - /// This call update all uniqueness rules for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Uniqueness rules for the document type - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentTypesManagementSetUniquenessRulesAsyncWithHttpInfo (int? documentTypeId, UniquenessRulesDTO uniquenessRules); - /// - /// This call updates a given Document Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Document Type information for update - /// Task of DocumentTypeCompleteDTO - System.Threading.Tasks.Task DocumentTypesManagementUpdateAsync (int? id, DocumentTypeForUpdateDTO documentTypeForUpdate); - - /// - /// This call updates a given Document Type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Document Type information for update - /// Task of ApiResponse (DocumentTypeCompleteDTO) - System.Threading.Tasks.Task> DocumentTypesManagementUpdateAsyncWithHttpInfo (int? id, DocumentTypeForUpdateDTO documentTypeForUpdate); - /// - /// This call update automatic reference by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Automatic reference for update - /// Task of AutomaticReferenceDTO - System.Threading.Tasks.Task DocumentTypesManagementUpdateAutomaticReferenceAsync (AutomaticReferenceDTO automaticReference); - - /// - /// This call update automatic reference by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Automatic reference for update - /// Task of ApiResponse (AutomaticReferenceDTO) - System.Threading.Tasks.Task> DocumentTypesManagementUpdateAutomaticReferenceAsyncWithHttpInfo (AutomaticReferenceDTO automaticReference); - /// - /// This call update states for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Document Type states - /// Task of void - System.Threading.Tasks.Task DocumentTypesManagementUpdateDocumentTypeStatesAsync (int? documentTypeId, List documentTypeStates); - - /// - /// This call update states for a document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Document Type states - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentTypesManagementUpdateDocumentTypeStatesAsyncWithHttpInfo (int? documentTypeId, List documentTypeStates); - /// - /// This call update specific document type folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type for update - /// Task of FolderTypeDTO - System.Threading.Tasks.Task DocumentTypesManagementUpdateDocumentTypesFoldersAsync (FolderTypeDTO folderType); - - /// - /// This call update specific document type folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type for update - /// Task of ApiResponse (FolderTypeDTO) - System.Threading.Tasks.Task> DocumentTypesManagementUpdateDocumentTypesFoldersAsyncWithHttpInfo (FolderTypeDTO folderType); - /// - /// This call update pdf options by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options for update - /// Task of PdfOptionsDTO - System.Threading.Tasks.Task DocumentTypesManagementUpdatePdfOptionsAsync (PdfOptionsDTO pdfOptions); - - /// - /// This call update pdf options by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Pdf options for update - /// Task of ApiResponse (PdfOptionsDTO) - System.Threading.Tasks.Task> DocumentTypesManagementUpdatePdfOptionsAsyncWithHttpInfo (PdfOptionsDTO pdfOptions); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class DocumentTypesManagementApi : IDocumentTypesManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public DocumentTypesManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public DocumentTypesManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes Document Type specified - /// - /// Thrown when fails to make API call - /// Identifier - /// - public void DocumentTypesManagementDelete (int? id) - { - DocumentTypesManagementDeleteWithHttpInfo(id); - } - - /// - /// This call deletes Document Type specified - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of Object(void) - public ApiResponse DocumentTypesManagementDeleteWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentTypesManagementApi->DocumentTypesManagementDelete"); - - var localVarPath = "/api/management/DocumentTypes/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes Document Type specified - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of void - public async System.Threading.Tasks.Task DocumentTypesManagementDeleteAsync (int? id) - { - await DocumentTypesManagementDeleteAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes Document Type specified - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentTypesManagementDeleteAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentTypesManagementApi->DocumentTypesManagementDelete"); - - var localVarPath = "/api/management/DocumentTypes/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call delete an automatic reference by its id - /// - /// Thrown when fails to make API call - /// Automatic reference identifier - /// - public void DocumentTypesManagementDeleteAutomaticReference (int? automaticReferenceId) - { - DocumentTypesManagementDeleteAutomaticReferenceWithHttpInfo(automaticReferenceId); - } - - /// - /// This call delete an automatic reference by its id - /// - /// Thrown when fails to make API call - /// Automatic reference identifier - /// ApiResponse of Object(void) - public ApiResponse DocumentTypesManagementDeleteAutomaticReferenceWithHttpInfo (int? automaticReferenceId) - { - // verify the required parameter 'automaticReferenceId' is set - if (automaticReferenceId == null) - throw new ApiException(400, "Missing required parameter 'automaticReferenceId' when calling DocumentTypesManagementApi->DocumentTypesManagementDeleteAutomaticReference"); - - var localVarPath = "/api/management/DocumentTypes/AutomaticReferences/{automaticReferenceId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (automaticReferenceId != null) localVarPathParams.Add("automaticReferenceId", this.Configuration.ApiClient.ParameterToString(automaticReferenceId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementDeleteAutomaticReference", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call delete an automatic reference by its id - /// - /// Thrown when fails to make API call - /// Automatic reference identifier - /// Task of void - public async System.Threading.Tasks.Task DocumentTypesManagementDeleteAutomaticReferenceAsync (int? automaticReferenceId) - { - await DocumentTypesManagementDeleteAutomaticReferenceAsyncWithHttpInfo(automaticReferenceId); - - } - - /// - /// This call delete an automatic reference by its id - /// - /// Thrown when fails to make API call - /// Automatic reference identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentTypesManagementDeleteAutomaticReferenceAsyncWithHttpInfo (int? automaticReferenceId) - { - // verify the required parameter 'automaticReferenceId' is set - if (automaticReferenceId == null) - throw new ApiException(400, "Missing required parameter 'automaticReferenceId' when calling DocumentTypesManagementApi->DocumentTypesManagementDeleteAutomaticReference"); - - var localVarPath = "/api/management/DocumentTypes/AutomaticReferences/{automaticReferenceId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (automaticReferenceId != null) localVarPathParams.Add("automaticReferenceId", this.Configuration.ApiClient.ParameterToString(automaticReferenceId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementDeleteAutomaticReference", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific receipt PA - /// - /// Thrown when fails to make API call - /// Document Type system id - /// - public void DocumentTypesManagementDeleteDocumentTypeReceiptPA (int? documentTypeId) - { - DocumentTypesManagementDeleteDocumentTypeReceiptPAWithHttpInfo(documentTypeId); - } - - /// - /// This call deletes specific receipt PA - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of Object(void) - public ApiResponse DocumentTypesManagementDeleteDocumentTypeReceiptPAWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementDeleteDocumentTypeReceiptPA"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/ReceiptPA"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementDeleteDocumentTypeReceiptPA", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific receipt PA - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of void - public async System.Threading.Tasks.Task DocumentTypesManagementDeleteDocumentTypeReceiptPAAsync (int? documentTypeId) - { - await DocumentTypesManagementDeleteDocumentTypeReceiptPAAsyncWithHttpInfo(documentTypeId); - - } - - /// - /// This call deletes specific receipt PA - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentTypesManagementDeleteDocumentTypeReceiptPAAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementDeleteDocumentTypeReceiptPA"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/ReceiptPA"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementDeleteDocumentTypeReceiptPA", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call remove Document type stylesheet - /// - /// Thrown when fails to make API call - /// Document Type system id - /// - public void DocumentTypesManagementDeleteDocumentTypeStylesheet (int? documentTypeId) - { - DocumentTypesManagementDeleteDocumentTypeStylesheetWithHttpInfo(documentTypeId); - } - - /// - /// This call remove Document type stylesheet - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of Object(void) - public ApiResponse DocumentTypesManagementDeleteDocumentTypeStylesheetWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementDeleteDocumentTypeStylesheet"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/Stylesheet"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementDeleteDocumentTypeStylesheet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call remove Document type stylesheet - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of void - public async System.Threading.Tasks.Task DocumentTypesManagementDeleteDocumentTypeStylesheetAsync (int? documentTypeId) - { - await DocumentTypesManagementDeleteDocumentTypeStylesheetAsyncWithHttpInfo(documentTypeId); - - } - - /// - /// This call remove Document type stylesheet - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentTypesManagementDeleteDocumentTypeStylesheetAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementDeleteDocumentTypeStylesheet"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/Stylesheet"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementDeleteDocumentTypeStylesheet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call delete specific document type folder - /// - /// Thrown when fails to make API call - /// Folder type Id - /// - public void DocumentTypesManagementDeleteDocumentTypesFolder (int? folderTypeId) - { - DocumentTypesManagementDeleteDocumentTypesFolderWithHttpInfo(folderTypeId); - } - - /// - /// This call delete specific document type folder - /// - /// Thrown when fails to make API call - /// Folder type Id - /// ApiResponse of Object(void) - public ApiResponse DocumentTypesManagementDeleteDocumentTypesFolderWithHttpInfo (int? folderTypeId) - { - // verify the required parameter 'folderTypeId' is set - if (folderTypeId == null) - throw new ApiException(400, "Missing required parameter 'folderTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementDeleteDocumentTypesFolder"); - - var localVarPath = "/api/management/DocumentTypes/Folders/{folderTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (folderTypeId != null) localVarPathParams.Add("folderTypeId", this.Configuration.ApiClient.ParameterToString(folderTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementDeleteDocumentTypesFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call delete specific document type folder - /// - /// Thrown when fails to make API call - /// Folder type Id - /// Task of void - public async System.Threading.Tasks.Task DocumentTypesManagementDeleteDocumentTypesFolderAsync (int? folderTypeId) - { - await DocumentTypesManagementDeleteDocumentTypesFolderAsyncWithHttpInfo(folderTypeId); - - } - - /// - /// This call delete specific document type folder - /// - /// Thrown when fails to make API call - /// Folder type Id - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentTypesManagementDeleteDocumentTypesFolderAsyncWithHttpInfo (int? folderTypeId) - { - // verify the required parameter 'folderTypeId' is set - if (folderTypeId == null) - throw new ApiException(400, "Missing required parameter 'folderTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementDeleteDocumentTypesFolder"); - - var localVarPath = "/api/management/DocumentTypes/Folders/{folderTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (folderTypeId != null) localVarPathParams.Add("folderTypeId", this.Configuration.ApiClient.ParameterToString(folderTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementDeleteDocumentTypesFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call delete pdf options by id - /// - /// Thrown when fails to make API call - /// Pdf options identifier - /// - public void DocumentTypesManagementDeletePdfOptions (int? pdfOptionsId) - { - DocumentTypesManagementDeletePdfOptionsWithHttpInfo(pdfOptionsId); - } - - /// - /// This call delete pdf options by id - /// - /// Thrown when fails to make API call - /// Pdf options identifier - /// ApiResponse of Object(void) - public ApiResponse DocumentTypesManagementDeletePdfOptionsWithHttpInfo (int? pdfOptionsId) - { - // verify the required parameter 'pdfOptionsId' is set - if (pdfOptionsId == null) - throw new ApiException(400, "Missing required parameter 'pdfOptionsId' when calling DocumentTypesManagementApi->DocumentTypesManagementDeletePdfOptions"); - - var localVarPath = "/api/management/DocumentTypes/PdfOptions/{pdfOptionsId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pdfOptionsId != null) localVarPathParams.Add("pdfOptionsId", this.Configuration.ApiClient.ParameterToString(pdfOptionsId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementDeletePdfOptions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call delete pdf options by id - /// - /// Thrown when fails to make API call - /// Pdf options identifier - /// Task of void - public async System.Threading.Tasks.Task DocumentTypesManagementDeletePdfOptionsAsync (int? pdfOptionsId) - { - await DocumentTypesManagementDeletePdfOptionsAsyncWithHttpInfo(pdfOptionsId); - - } - - /// - /// This call delete pdf options by id - /// - /// Thrown when fails to make API call - /// Pdf options identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentTypesManagementDeletePdfOptionsAsyncWithHttpInfo (int? pdfOptionsId) - { - // verify the required parameter 'pdfOptionsId' is set - if (pdfOptionsId == null) - throw new ApiException(400, "Missing required parameter 'pdfOptionsId' when calling DocumentTypesManagementApi->DocumentTypesManagementDeletePdfOptions"); - - var localVarPath = "/api/management/DocumentTypes/PdfOptions/{pdfOptionsId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pdfOptionsId != null) localVarPathParams.Add("pdfOptionsId", this.Configuration.ApiClient.ParameterToString(pdfOptionsId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementDeletePdfOptions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all archive options for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ArchiveOptionsForViewDTO - public ArchiveOptionsForViewDTO DocumentTypesManagementGetArchiveRules (int? documentTypeId) - { - ApiResponse localVarResponse = DocumentTypesManagementGetArchiveRulesWithHttpInfo(documentTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns all archive options for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of ArchiveOptionsForViewDTO - public ApiResponse< ArchiveOptionsForViewDTO > DocumentTypesManagementGetArchiveRulesWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetArchiveRules"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/Archive"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetArchiveRules", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArchiveOptionsForViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArchiveOptionsForViewDTO))); - } - - /// - /// This call returns all archive options for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ArchiveOptionsForViewDTO - public async System.Threading.Tasks.Task DocumentTypesManagementGetArchiveRulesAsync (int? documentTypeId) - { - ApiResponse localVarResponse = await DocumentTypesManagementGetArchiveRulesAsyncWithHttpInfo(documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns all archive options for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (ArchiveOptionsForViewDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementGetArchiveRulesAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetArchiveRules"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/Archive"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetArchiveRules", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ArchiveOptionsForViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ArchiveOptionsForViewDTO))); - } - - /// - /// This call returns all automatic references for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// List<AutomaticReferenceDTO> - public List DocumentTypesManagementGetAutomaticReferencesByDocumentTypeId (int? documentTypeId) - { - ApiResponse> localVarResponse = DocumentTypesManagementGetAutomaticReferencesByDocumentTypeIdWithHttpInfo(documentTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns all automatic references for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of List<AutomaticReferenceDTO> - public ApiResponse< List > DocumentTypesManagementGetAutomaticReferencesByDocumentTypeIdWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetAutomaticReferencesByDocumentTypeId"); - - var localVarPath = "/api/management/DocumentTypes/AutomaticReferences/ByDocumentTypeId/{documentTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetAutomaticReferencesByDocumentTypeId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all automatic references for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of List<AutomaticReferenceDTO> - public async System.Threading.Tasks.Task> DocumentTypesManagementGetAutomaticReferencesByDocumentTypeIdAsync (int? documentTypeId) - { - ApiResponse> localVarResponse = await DocumentTypesManagementGetAutomaticReferencesByDocumentTypeIdAsyncWithHttpInfo(documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns all automatic references for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (List<AutomaticReferenceDTO>) - public async System.Threading.Tasks.Task>> DocumentTypesManagementGetAutomaticReferencesByDocumentTypeIdAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetAutomaticReferencesByDocumentTypeId"); - - var localVarPath = "/api/management/DocumentTypes/AutomaticReferences/ByDocumentTypeId/{documentTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetAutomaticReferencesByDocumentTypeId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets Document Type information by id - /// - /// Thrown when fails to make API call - /// Identifier - /// DocumentTypeCompleteDTO - public DocumentTypeCompleteDTO DocumentTypesManagementGetById (int? id) - { - ApiResponse localVarResponse = DocumentTypesManagementGetByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets Document Type information by id - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of DocumentTypeCompleteDTO - public ApiResponse< DocumentTypeCompleteDTO > DocumentTypesManagementGetByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentTypesManagementApi->DocumentTypesManagementGetById"); - - var localVarPath = "/api/management/DocumentTypes/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeCompleteDTO))); - } - - /// - /// This call gets Document Type information by id - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of DocumentTypeCompleteDTO - public async System.Threading.Tasks.Task DocumentTypesManagementGetByIdAsync (int? id) - { - ApiResponse localVarResponse = await DocumentTypesManagementGetByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets Document Type information by id - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse (DocumentTypeCompleteDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementGetByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentTypesManagementApi->DocumentTypesManagementGetById"); - - var localVarPath = "/api/management/DocumentTypes/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeCompleteDTO))); - } - - /// - /// This call gets Document Type information by ids - /// - /// Thrown when fails to make API call - /// First level document Type Identifier - /// Second level document Type Identifier - /// Third level document Type Identifier - /// DocumentTypeCompleteDTO - public DocumentTypeCompleteDTO DocumentTypesManagementGetByIds (int? documentType, int? type2, int? type3) - { - ApiResponse localVarResponse = DocumentTypesManagementGetByIdsWithHttpInfo(documentType, type2, type3); - return localVarResponse.Data; - } - - /// - /// This call gets Document Type information by ids - /// - /// Thrown when fails to make API call - /// First level document Type Identifier - /// Second level document Type Identifier - /// Third level document Type Identifier - /// ApiResponse of DocumentTypeCompleteDTO - public ApiResponse< DocumentTypeCompleteDTO > DocumentTypesManagementGetByIdsWithHttpInfo (int? documentType, int? type2, int? type3) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling DocumentTypesManagementApi->DocumentTypesManagementGetByIds"); - // verify the required parameter 'type2' is set - if (type2 == null) - throw new ApiException(400, "Missing required parameter 'type2' when calling DocumentTypesManagementApi->DocumentTypesManagementGetByIds"); - // verify the required parameter 'type3' is set - if (type3 == null) - throw new ApiException(400, "Missing required parameter 'type3' when calling DocumentTypesManagementApi->DocumentTypesManagementGetByIds"); - - var localVarPath = "/api/management/DocumentTypes/byids/{documentType}/{type2}/{type3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (type2 != null) localVarPathParams.Add("type2", this.Configuration.ApiClient.ParameterToString(type2)); // path parameter - if (type3 != null) localVarPathParams.Add("type3", this.Configuration.ApiClient.ParameterToString(type3)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetByIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeCompleteDTO))); - } - - /// - /// This call gets Document Type information by ids - /// - /// Thrown when fails to make API call - /// First level document Type Identifier - /// Second level document Type Identifier - /// Third level document Type Identifier - /// Task of DocumentTypeCompleteDTO - public async System.Threading.Tasks.Task DocumentTypesManagementGetByIdsAsync (int? documentType, int? type2, int? type3) - { - ApiResponse localVarResponse = await DocumentTypesManagementGetByIdsAsyncWithHttpInfo(documentType, type2, type3); - return localVarResponse.Data; - - } - - /// - /// This call gets Document Type information by ids - /// - /// Thrown when fails to make API call - /// First level document Type Identifier - /// Second level document Type Identifier - /// Third level document Type Identifier - /// Task of ApiResponse (DocumentTypeCompleteDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementGetByIdsAsyncWithHttpInfo (int? documentType, int? type2, int? type3) - { - // verify the required parameter 'documentType' is set - if (documentType == null) - throw new ApiException(400, "Missing required parameter 'documentType' when calling DocumentTypesManagementApi->DocumentTypesManagementGetByIds"); - // verify the required parameter 'type2' is set - if (type2 == null) - throw new ApiException(400, "Missing required parameter 'type2' when calling DocumentTypesManagementApi->DocumentTypesManagementGetByIds"); - // verify the required parameter 'type3' is set - if (type3 == null) - throw new ApiException(400, "Missing required parameter 'type3' when calling DocumentTypesManagementApi->DocumentTypesManagementGetByIds"); - - var localVarPath = "/api/management/DocumentTypes/byids/{documentType}/{type2}/{type3}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentType != null) localVarPathParams.Add("documentType", this.Configuration.ApiClient.ParameterToString(documentType)); // path parameter - if (type2 != null) localVarPathParams.Add("type2", this.Configuration.ApiClient.ParameterToString(type2)); // path parameter - if (type3 != null) localVarPathParams.Add("type3", this.Configuration.ApiClient.ParameterToString(type3)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetByIds", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeCompleteDTO))); - } - - /// - /// This call gets Document Type information by code - /// - /// Thrown when fails to make API call - /// Identifier - /// DocumentTypeCompleteDTO - public DocumentTypeCompleteDTO DocumentTypesManagementGetByKey (string key) - { - ApiResponse localVarResponse = DocumentTypesManagementGetByKeyWithHttpInfo(key); - return localVarResponse.Data; - } - - /// - /// This call gets Document Type information by code - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of DocumentTypeCompleteDTO - public ApiResponse< DocumentTypeCompleteDTO > DocumentTypesManagementGetByKeyWithHttpInfo (string key) - { - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling DocumentTypesManagementApi->DocumentTypesManagementGetByKey"); - - var localVarPath = "/api/management/DocumentTypes/byKey"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (key != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "key", key)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetByKey", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeCompleteDTO))); - } - - /// - /// This call gets Document Type information by code - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of DocumentTypeCompleteDTO - public async System.Threading.Tasks.Task DocumentTypesManagementGetByKeyAsync (string key) - { - ApiResponse localVarResponse = await DocumentTypesManagementGetByKeyAsyncWithHttpInfo(key); - return localVarResponse.Data; - - } - - /// - /// This call gets Document Type information by code - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse (DocumentTypeCompleteDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementGetByKeyAsyncWithHttpInfo (string key) - { - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling DocumentTypesManagementApi->DocumentTypesManagementGetByKey"); - - var localVarPath = "/api/management/DocumentTypes/byKey"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (key != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "key", key)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetByKey", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeCompleteDTO))); - } - - /// - /// This call returns all document type folders - /// - /// Thrown when fails to make API call - /// Document type identifier - /// List<FolderTypeDTO> - public List DocumentTypesManagementGetDocumentTypeFolders (int? documentTypeId) - { - ApiResponse> localVarResponse = DocumentTypesManagementGetDocumentTypeFoldersWithHttpInfo(documentTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns all document type folders - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ApiResponse of List<FolderTypeDTO> - public ApiResponse< List > DocumentTypesManagementGetDocumentTypeFoldersWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetDocumentTypeFolders"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/Folders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetDocumentTypeFolders", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all document type folders - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of List<FolderTypeDTO> - public async System.Threading.Tasks.Task> DocumentTypesManagementGetDocumentTypeFoldersAsync (int? documentTypeId) - { - ApiResponse> localVarResponse = await DocumentTypesManagementGetDocumentTypeFoldersAsyncWithHttpInfo(documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns all document type folders - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ApiResponse (List<FolderTypeDTO>) - public async System.Threading.Tasks.Task>> DocumentTypesManagementGetDocumentTypeFoldersAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetDocumentTypeFolders"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/Folders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetDocumentTypeFolders", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns receipt PA by a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ReceiptPADTO - public ReceiptPADTO DocumentTypesManagementGetDocumentTypeReceiptPA (int? documentTypeId) - { - ApiResponse localVarResponse = DocumentTypesManagementGetDocumentTypeReceiptPAWithHttpInfo(documentTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns receipt PA by a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of ReceiptPADTO - public ApiResponse< ReceiptPADTO > DocumentTypesManagementGetDocumentTypeReceiptPAWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetDocumentTypeReceiptPA"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/ReceiptPA"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetDocumentTypeReceiptPA", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ReceiptPADTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReceiptPADTO))); - } - - /// - /// This call returns receipt PA by a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ReceiptPADTO - public async System.Threading.Tasks.Task DocumentTypesManagementGetDocumentTypeReceiptPAAsync (int? documentTypeId) - { - ApiResponse localVarResponse = await DocumentTypesManagementGetDocumentTypeReceiptPAAsyncWithHttpInfo(documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns receipt PA by a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (ReceiptPADTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementGetDocumentTypeReceiptPAAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetDocumentTypeReceiptPA"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/ReceiptPA"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetDocumentTypeReceiptPA", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ReceiptPADTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReceiptPADTO))); - } - - /// - /// This call returns all receipts PA for all document types - /// - /// Thrown when fails to make API call - /// List<ReceiptPADTO> - public List DocumentTypesManagementGetDocumentTypeReceiptPAList () - { - ApiResponse> localVarResponse = DocumentTypesManagementGetDocumentTypeReceiptPAListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all receipts PA for all document types - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ReceiptPADTO> - public ApiResponse< List > DocumentTypesManagementGetDocumentTypeReceiptPAListWithHttpInfo () - { - - var localVarPath = "/api/management/DocumentTypes/ReceiptPA"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetDocumentTypeReceiptPAList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all receipts PA for all document types - /// - /// Thrown when fails to make API call - /// Task of List<ReceiptPADTO> - public async System.Threading.Tasks.Task> DocumentTypesManagementGetDocumentTypeReceiptPAListAsync () - { - ApiResponse> localVarResponse = await DocumentTypesManagementGetDocumentTypeReceiptPAListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all receipts PA for all document types - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ReceiptPADTO>) - public async System.Threading.Tasks.Task>> DocumentTypesManagementGetDocumentTypeReceiptPAListAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/DocumentTypes/ReceiptPA"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetDocumentTypeReceiptPAList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all states for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// List<DocumentTypeStateDTO> - public List DocumentTypesManagementGetDocumentTypeStates (int? documentTypeId) - { - ApiResponse> localVarResponse = DocumentTypesManagementGetDocumentTypeStatesWithHttpInfo(documentTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns all states for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of List<DocumentTypeStateDTO> - public ApiResponse< List > DocumentTypesManagementGetDocumentTypeStatesWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetDocumentTypeStates"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetDocumentTypeStates", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all states for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of List<DocumentTypeStateDTO> - public async System.Threading.Tasks.Task> DocumentTypesManagementGetDocumentTypeStatesAsync (int? documentTypeId) - { - ApiResponse> localVarResponse = await DocumentTypesManagementGetDocumentTypeStatesAsyncWithHttpInfo(documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns all states for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (List<DocumentTypeStateDTO>) - public async System.Threading.Tasks.Task>> DocumentTypesManagementGetDocumentTypeStatesAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetDocumentTypeStates"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetDocumentTypeStates", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call get Document type stylesheet binary file - /// - /// Thrown when fails to make API call - /// Document Type system id - /// System.IO.Stream - public System.IO.Stream DocumentTypesManagementGetDocumentTypeStylesheet (int? documentTypeId) - { - ApiResponse localVarResponse = DocumentTypesManagementGetDocumentTypeStylesheetWithHttpInfo(documentTypeId); - return localVarResponse.Data; - } - - /// - /// This call get Document type stylesheet binary file - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > DocumentTypesManagementGetDocumentTypeStylesheetWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetDocumentTypeStylesheet"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/Stylesheet"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetDocumentTypeStylesheet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call get Document type stylesheet binary file - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task DocumentTypesManagementGetDocumentTypeStylesheetAsync (int? documentTypeId) - { - ApiResponse localVarResponse = await DocumentTypesManagementGetDocumentTypeStylesheetAsyncWithHttpInfo(documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This call get Document type stylesheet binary file - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> DocumentTypesManagementGetDocumentTypeStylesheetAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetDocumentTypeStylesheet"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/Stylesheet"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetDocumentTypeStylesheet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call returns all document type users masks - /// - /// Thrown when fails to make API call - /// Document type identifier - /// UsersMasksDTO - public UsersMasksDTO DocumentTypesManagementGetDocumentTypeUsersMasks (int? documentTypeId) - { - ApiResponse localVarResponse = DocumentTypesManagementGetDocumentTypeUsersMasksWithHttpInfo(documentTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns all document type users masks - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ApiResponse of UsersMasksDTO - public ApiResponse< UsersMasksDTO > DocumentTypesManagementGetDocumentTypeUsersMasksWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetDocumentTypeUsersMasks"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/UsersMasks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetDocumentTypeUsersMasks", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UsersMasksDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UsersMasksDTO))); - } - - /// - /// This call returns all document type users masks - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of UsersMasksDTO - public async System.Threading.Tasks.Task DocumentTypesManagementGetDocumentTypeUsersMasksAsync (int? documentTypeId) - { - ApiResponse localVarResponse = await DocumentTypesManagementGetDocumentTypeUsersMasksAsyncWithHttpInfo(documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns all document type users masks - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ApiResponse (UsersMasksDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementGetDocumentTypeUsersMasksAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetDocumentTypeUsersMasks"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/UsersMasks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetDocumentTypeUsersMasks", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UsersMasksDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UsersMasksDTO))); - } - - /// - /// This call get specific document type folder by its identifier - /// - /// Thrown when fails to make API call - /// Folder type Identifier - /// FolderTypeDTO - public FolderTypeDTO DocumentTypesManagementGetDocumentTypesFolder (int? folderTypeId) - { - ApiResponse localVarResponse = DocumentTypesManagementGetDocumentTypesFolderWithHttpInfo(folderTypeId); - return localVarResponse.Data; - } - - /// - /// This call get specific document type folder by its identifier - /// - /// Thrown when fails to make API call - /// Folder type Identifier - /// ApiResponse of FolderTypeDTO - public ApiResponse< FolderTypeDTO > DocumentTypesManagementGetDocumentTypesFolderWithHttpInfo (int? folderTypeId) - { - // verify the required parameter 'folderTypeId' is set - if (folderTypeId == null) - throw new ApiException(400, "Missing required parameter 'folderTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetDocumentTypesFolder"); - - var localVarPath = "/api/management/DocumentTypes/Folders/{folderTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (folderTypeId != null) localVarPathParams.Add("folderTypeId", this.Configuration.ApiClient.ParameterToString(folderTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetDocumentTypesFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderTypeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderTypeDTO))); - } - - /// - /// This call get specific document type folder by its identifier - /// - /// Thrown when fails to make API call - /// Folder type Identifier - /// Task of FolderTypeDTO - public async System.Threading.Tasks.Task DocumentTypesManagementGetDocumentTypesFolderAsync (int? folderTypeId) - { - ApiResponse localVarResponse = await DocumentTypesManagementGetDocumentTypesFolderAsyncWithHttpInfo(folderTypeId); - return localVarResponse.Data; - - } - - /// - /// This call get specific document type folder by its identifier - /// - /// Thrown when fails to make API call - /// Folder type Identifier - /// Task of ApiResponse (FolderTypeDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementGetDocumentTypesFolderAsyncWithHttpInfo (int? folderTypeId) - { - // verify the required parameter 'folderTypeId' is set - if (folderTypeId == null) - throw new ApiException(400, "Missing required parameter 'folderTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetDocumentTypesFolder"); - - var localVarPath = "/api/management/DocumentTypes/Folders/{folderTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (folderTypeId != null) localVarPathParams.Add("folderTypeId", this.Configuration.ApiClient.ParameterToString(folderTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetDocumentTypesFolder", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderTypeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderTypeDTO))); - } - - /// - /// This call retrieve Document type forward users - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ForwardUsersDTO - public ForwardUsersDTO DocumentTypesManagementGetForwardUsers (int? documentTypeId) - { - ApiResponse localVarResponse = DocumentTypesManagementGetForwardUsersWithHttpInfo(documentTypeId); - return localVarResponse.Data; - } - - /// - /// This call retrieve Document type forward users - /// - /// Thrown when fails to make API call - /// Document type identifier - /// ApiResponse of ForwardUsersDTO - public ApiResponse< ForwardUsersDTO > DocumentTypesManagementGetForwardUsersWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetForwardUsers"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/ForwardUsers"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetForwardUsers", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ForwardUsersDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ForwardUsersDTO))); - } - - /// - /// This call retrieve Document type forward users - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ForwardUsersDTO - public async System.Threading.Tasks.Task DocumentTypesManagementGetForwardUsersAsync (int? documentTypeId) - { - ApiResponse localVarResponse = await DocumentTypesManagementGetForwardUsersAsyncWithHttpInfo(documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This call retrieve Document type forward users - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Task of ApiResponse (ForwardUsersDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementGetForwardUsersAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetForwardUsers"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/ForwardUsers"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetForwardUsers", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ForwardUsersDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ForwardUsersDTO))); - } - - /// - /// This call returns all document types - /// - /// Thrown when fails to make API call - /// List<DocumentTypeCompleteDTO> - public List DocumentTypesManagementGetList () - { - ApiResponse> localVarResponse = DocumentTypesManagementGetListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all document types - /// - /// Thrown when fails to make API call - /// ApiResponse of List<DocumentTypeCompleteDTO> - public ApiResponse< List > DocumentTypesManagementGetListWithHttpInfo () - { - - var localVarPath = "/api/management/DocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all document types - /// - /// Thrown when fails to make API call - /// Task of List<DocumentTypeCompleteDTO> - public async System.Threading.Tasks.Task> DocumentTypesManagementGetListAsync () - { - ApiResponse> localVarResponse = await DocumentTypesManagementGetListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all document types - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<DocumentTypeCompleteDTO>) - public async System.Threading.Tasks.Task>> DocumentTypesManagementGetListAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/DocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all mail settings for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// MailOptionsDTO - public MailOptionsDTO DocumentTypesManagementGetMailOptions (int? documentTypeId) - { - ApiResponse localVarResponse = DocumentTypesManagementGetMailOptionsWithHttpInfo(documentTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns all mail settings for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of MailOptionsDTO - public ApiResponse< MailOptionsDTO > DocumentTypesManagementGetMailOptionsWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetMailOptions"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/MailOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetMailOptions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailOptionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailOptionsDTO))); - } - - /// - /// This call returns all mail settings for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of MailOptionsDTO - public async System.Threading.Tasks.Task DocumentTypesManagementGetMailOptionsAsync (int? documentTypeId) - { - ApiResponse localVarResponse = await DocumentTypesManagementGetMailOptionsAsyncWithHttpInfo(documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns all mail settings for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (MailOptionsDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementGetMailOptionsAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetMailOptions"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/MailOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetMailOptions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailOptionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailOptionsDTO))); - } - - /// - /// This call returns all pdf options for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// List<PdfOptionsDTO> - public List DocumentTypesManagementGetPdfOptionsByDocumentTypeId (int? documentTypeId) - { - ApiResponse> localVarResponse = DocumentTypesManagementGetPdfOptionsByDocumentTypeIdWithHttpInfo(documentTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns all pdf options for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of List<PdfOptionsDTO> - public ApiResponse< List > DocumentTypesManagementGetPdfOptionsByDocumentTypeIdWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetPdfOptionsByDocumentTypeId"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/PdfOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetPdfOptionsByDocumentTypeId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all pdf options for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of List<PdfOptionsDTO> - public async System.Threading.Tasks.Task> DocumentTypesManagementGetPdfOptionsByDocumentTypeIdAsync (int? documentTypeId) - { - ApiResponse> localVarResponse = await DocumentTypesManagementGetPdfOptionsByDocumentTypeIdAsyncWithHttpInfo(documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns all pdf options for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (List<PdfOptionsDTO>) - public async System.Threading.Tasks.Task>> DocumentTypesManagementGetPdfOptionsByDocumentTypeIdAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetPdfOptionsByDocumentTypeId"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/PdfOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetPdfOptionsByDocumentTypeId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns pdf options by id - /// - /// Thrown when fails to make API call - /// Pdf options id - /// PdfOptionsDTO - public PdfOptionsDTO DocumentTypesManagementGetPdfOptionsById (int? pdfOptionsId) - { - ApiResponse localVarResponse = DocumentTypesManagementGetPdfOptionsByIdWithHttpInfo(pdfOptionsId); - return localVarResponse.Data; - } - - /// - /// This call returns pdf options by id - /// - /// Thrown when fails to make API call - /// Pdf options id - /// ApiResponse of PdfOptionsDTO - public ApiResponse< PdfOptionsDTO > DocumentTypesManagementGetPdfOptionsByIdWithHttpInfo (int? pdfOptionsId) - { - // verify the required parameter 'pdfOptionsId' is set - if (pdfOptionsId == null) - throw new ApiException(400, "Missing required parameter 'pdfOptionsId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetPdfOptionsById"); - - var localVarPath = "/api/management/DocumentTypes/PdfOptions/{pdfOptionsId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pdfOptionsId != null) localVarPathParams.Add("pdfOptionsId", this.Configuration.ApiClient.ParameterToString(pdfOptionsId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetPdfOptionsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PdfOptionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PdfOptionsDTO))); - } - - /// - /// This call returns pdf options by id - /// - /// Thrown when fails to make API call - /// Pdf options id - /// Task of PdfOptionsDTO - public async System.Threading.Tasks.Task DocumentTypesManagementGetPdfOptionsByIdAsync (int? pdfOptionsId) - { - ApiResponse localVarResponse = await DocumentTypesManagementGetPdfOptionsByIdAsyncWithHttpInfo(pdfOptionsId); - return localVarResponse.Data; - - } - - /// - /// This call returns pdf options by id - /// - /// Thrown when fails to make API call - /// Pdf options id - /// Task of ApiResponse (PdfOptionsDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementGetPdfOptionsByIdAsyncWithHttpInfo (int? pdfOptionsId) - { - // verify the required parameter 'pdfOptionsId' is set - if (pdfOptionsId == null) - throw new ApiException(400, "Missing required parameter 'pdfOptionsId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetPdfOptionsById"); - - var localVarPath = "/api/management/DocumentTypes/PdfOptions/{pdfOptionsId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pdfOptionsId != null) localVarPathParams.Add("pdfOptionsId", this.Configuration.ApiClient.ParameterToString(pdfOptionsId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetPdfOptionsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PdfOptionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PdfOptionsDTO))); - } - - /// - /// This call returns automatic reference by its id - /// - /// Thrown when fails to make API call - /// Document Type system id - /// AutomaticReferenceDTO - public AutomaticReferenceDTO DocumentTypesManagementGetReferencesById (int? automaticReferenceId) - { - ApiResponse localVarResponse = DocumentTypesManagementGetReferencesByIdWithHttpInfo(automaticReferenceId); - return localVarResponse.Data; - } - - /// - /// This call returns automatic reference by its id - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of AutomaticReferenceDTO - public ApiResponse< AutomaticReferenceDTO > DocumentTypesManagementGetReferencesByIdWithHttpInfo (int? automaticReferenceId) - { - // verify the required parameter 'automaticReferenceId' is set - if (automaticReferenceId == null) - throw new ApiException(400, "Missing required parameter 'automaticReferenceId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetReferencesById"); - - var localVarPath = "/api/management/DocumentTypes/AutomaticReferences/{automaticReferenceId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (automaticReferenceId != null) localVarPathParams.Add("automaticReferenceId", this.Configuration.ApiClient.ParameterToString(automaticReferenceId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetReferencesById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AutomaticReferenceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AutomaticReferenceDTO))); - } - - /// - /// This call returns automatic reference by its id - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of AutomaticReferenceDTO - public async System.Threading.Tasks.Task DocumentTypesManagementGetReferencesByIdAsync (int? automaticReferenceId) - { - ApiResponse localVarResponse = await DocumentTypesManagementGetReferencesByIdAsyncWithHttpInfo(automaticReferenceId); - return localVarResponse.Data; - - } - - /// - /// This call returns automatic reference by its id - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (AutomaticReferenceDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementGetReferencesByIdAsyncWithHttpInfo (int? automaticReferenceId) - { - // verify the required parameter 'automaticReferenceId' is set - if (automaticReferenceId == null) - throw new ApiException(400, "Missing required parameter 'automaticReferenceId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetReferencesById"); - - var localVarPath = "/api/management/DocumentTypes/AutomaticReferences/{automaticReferenceId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (automaticReferenceId != null) localVarPathParams.Add("automaticReferenceId", this.Configuration.ApiClient.ParameterToString(automaticReferenceId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetReferencesById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AutomaticReferenceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AutomaticReferenceDTO))); - } - - /// - /// This call returns all uniqueness rules for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// UniquenessRulesDTO - public UniquenessRulesDTO DocumentTypesManagementGetUniquenessRules (int? documentTypeId) - { - ApiResponse localVarResponse = DocumentTypesManagementGetUniquenessRulesWithHttpInfo(documentTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns all uniqueness rules for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// ApiResponse of UniquenessRulesDTO - public ApiResponse< UniquenessRulesDTO > DocumentTypesManagementGetUniquenessRulesWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetUniquenessRules"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/UniquenessRules"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetUniquenessRules", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UniquenessRulesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UniquenessRulesDTO))); - } - - /// - /// This call returns all uniqueness rules for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of UniquenessRulesDTO - public async System.Threading.Tasks.Task DocumentTypesManagementGetUniquenessRulesAsync (int? documentTypeId) - { - ApiResponse localVarResponse = await DocumentTypesManagementGetUniquenessRulesAsyncWithHttpInfo(documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns all uniqueness rules for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Task of ApiResponse (UniquenessRulesDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementGetUniquenessRulesAsyncWithHttpInfo (int? documentTypeId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementGetUniquenessRules"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/UniquenessRules"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementGetUniquenessRules", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UniquenessRulesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UniquenessRulesDTO))); - } - - /// - /// This call inserts a new Docuent Type - /// - /// Thrown when fails to make API call - /// Document type information for insert - /// DocumentTypeCompleteDTO - public DocumentTypeCompleteDTO DocumentTypesManagementInsert (DocumentTypeForInsertDTO documentTypeForInsert) - { - ApiResponse localVarResponse = DocumentTypesManagementInsertWithHttpInfo(documentTypeForInsert); - return localVarResponse.Data; - } - - /// - /// This call inserts a new Docuent Type - /// - /// Thrown when fails to make API call - /// Document type information for insert - /// ApiResponse of DocumentTypeCompleteDTO - public ApiResponse< DocumentTypeCompleteDTO > DocumentTypesManagementInsertWithHttpInfo (DocumentTypeForInsertDTO documentTypeForInsert) - { - // verify the required parameter 'documentTypeForInsert' is set - if (documentTypeForInsert == null) - throw new ApiException(400, "Missing required parameter 'documentTypeForInsert' when calling DocumentTypesManagementApi->DocumentTypesManagementInsert"); - - var localVarPath = "/api/management/DocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeForInsert != null && documentTypeForInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(documentTypeForInsert); // http body (model) parameter - } - else - { - localVarPostBody = documentTypeForInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeCompleteDTO))); - } - - /// - /// This call inserts a new Docuent Type - /// - /// Thrown when fails to make API call - /// Document type information for insert - /// Task of DocumentTypeCompleteDTO - public async System.Threading.Tasks.Task DocumentTypesManagementInsertAsync (DocumentTypeForInsertDTO documentTypeForInsert) - { - ApiResponse localVarResponse = await DocumentTypesManagementInsertAsyncWithHttpInfo(documentTypeForInsert); - return localVarResponse.Data; - - } - - /// - /// This call inserts a new Docuent Type - /// - /// Thrown when fails to make API call - /// Document type information for insert - /// Task of ApiResponse (DocumentTypeCompleteDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementInsertAsyncWithHttpInfo (DocumentTypeForInsertDTO documentTypeForInsert) - { - // verify the required parameter 'documentTypeForInsert' is set - if (documentTypeForInsert == null) - throw new ApiException(400, "Missing required parameter 'documentTypeForInsert' when calling DocumentTypesManagementApi->DocumentTypesManagementInsert"); - - var localVarPath = "/api/management/DocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeForInsert != null && documentTypeForInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(documentTypeForInsert); // http body (model) parameter - } - else - { - localVarPostBody = documentTypeForInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeCompleteDTO))); - } - - /// - /// This call insert automatic reference - /// - /// Thrown when fails to make API call - /// Automatic reference for insert - /// AutomaticReferenceDTO - public AutomaticReferenceDTO DocumentTypesManagementInsertAutomaticReference (AutomaticReferenceDTO automaticReference) - { - ApiResponse localVarResponse = DocumentTypesManagementInsertAutomaticReferenceWithHttpInfo(automaticReference); - return localVarResponse.Data; - } - - /// - /// This call insert automatic reference - /// - /// Thrown when fails to make API call - /// Automatic reference for insert - /// ApiResponse of AutomaticReferenceDTO - public ApiResponse< AutomaticReferenceDTO > DocumentTypesManagementInsertAutomaticReferenceWithHttpInfo (AutomaticReferenceDTO automaticReference) - { - // verify the required parameter 'automaticReference' is set - if (automaticReference == null) - throw new ApiException(400, "Missing required parameter 'automaticReference' when calling DocumentTypesManagementApi->DocumentTypesManagementInsertAutomaticReference"); - - var localVarPath = "/api/management/DocumentTypes/AutomaticReferences"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (automaticReference != null && automaticReference.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(automaticReference); // http body (model) parameter - } - else - { - localVarPostBody = automaticReference; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementInsertAutomaticReference", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AutomaticReferenceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AutomaticReferenceDTO))); - } - - /// - /// This call insert automatic reference - /// - /// Thrown when fails to make API call - /// Automatic reference for insert - /// Task of AutomaticReferenceDTO - public async System.Threading.Tasks.Task DocumentTypesManagementInsertAutomaticReferenceAsync (AutomaticReferenceDTO automaticReference) - { - ApiResponse localVarResponse = await DocumentTypesManagementInsertAutomaticReferenceAsyncWithHttpInfo(automaticReference); - return localVarResponse.Data; - - } - - /// - /// This call insert automatic reference - /// - /// Thrown when fails to make API call - /// Automatic reference for insert - /// Task of ApiResponse (AutomaticReferenceDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementInsertAutomaticReferenceAsyncWithHttpInfo (AutomaticReferenceDTO automaticReference) - { - // verify the required parameter 'automaticReference' is set - if (automaticReference == null) - throw new ApiException(400, "Missing required parameter 'automaticReference' when calling DocumentTypesManagementApi->DocumentTypesManagementInsertAutomaticReference"); - - var localVarPath = "/api/management/DocumentTypes/AutomaticReferences"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (automaticReference != null && automaticReference.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(automaticReference); // http body (model) parameter - } - else - { - localVarPostBody = automaticReference; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementInsertAutomaticReference", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AutomaticReferenceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AutomaticReferenceDTO))); - } - - /// - /// This call insert new document type folder - /// - /// Thrown when fails to make API call - /// Document type for insert - /// FolderTypeDTO - public FolderTypeDTO DocumentTypesManagementInsertDocumentTypesFolders (FolderTypeDTO folderType) - { - ApiResponse localVarResponse = DocumentTypesManagementInsertDocumentTypesFoldersWithHttpInfo(folderType); - return localVarResponse.Data; - } - - /// - /// This call insert new document type folder - /// - /// Thrown when fails to make API call - /// Document type for insert - /// ApiResponse of FolderTypeDTO - public ApiResponse< FolderTypeDTO > DocumentTypesManagementInsertDocumentTypesFoldersWithHttpInfo (FolderTypeDTO folderType) - { - // verify the required parameter 'folderType' is set - if (folderType == null) - throw new ApiException(400, "Missing required parameter 'folderType' when calling DocumentTypesManagementApi->DocumentTypesManagementInsertDocumentTypesFolders"); - - var localVarPath = "/api/management/DocumentTypes/Folders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (folderType != null && folderType.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(folderType); // http body (model) parameter - } - else - { - localVarPostBody = folderType; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementInsertDocumentTypesFolders", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderTypeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderTypeDTO))); - } - - /// - /// This call insert new document type folder - /// - /// Thrown when fails to make API call - /// Document type for insert - /// Task of FolderTypeDTO - public async System.Threading.Tasks.Task DocumentTypesManagementInsertDocumentTypesFoldersAsync (FolderTypeDTO folderType) - { - ApiResponse localVarResponse = await DocumentTypesManagementInsertDocumentTypesFoldersAsyncWithHttpInfo(folderType); - return localVarResponse.Data; - - } - - /// - /// This call insert new document type folder - /// - /// Thrown when fails to make API call - /// Document type for insert - /// Task of ApiResponse (FolderTypeDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementInsertDocumentTypesFoldersAsyncWithHttpInfo (FolderTypeDTO folderType) - { - // verify the required parameter 'folderType' is set - if (folderType == null) - throw new ApiException(400, "Missing required parameter 'folderType' when calling DocumentTypesManagementApi->DocumentTypesManagementInsertDocumentTypesFolders"); - - var localVarPath = "/api/management/DocumentTypes/Folders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (folderType != null && folderType.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(folderType); // http body (model) parameter - } - else - { - localVarPostBody = folderType; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementInsertDocumentTypesFolders", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderTypeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderTypeDTO))); - } - - /// - /// This call insert pdf options - /// - /// Thrown when fails to make API call - /// Pdf options for insert - /// PdfOptionsDTO - public PdfOptionsDTO DocumentTypesManagementInsertPdfOptions (PdfOptionsDTO pdfOptions) - { - ApiResponse localVarResponse = DocumentTypesManagementInsertPdfOptionsWithHttpInfo(pdfOptions); - return localVarResponse.Data; - } - - /// - /// This call insert pdf options - /// - /// Thrown when fails to make API call - /// Pdf options for insert - /// ApiResponse of PdfOptionsDTO - public ApiResponse< PdfOptionsDTO > DocumentTypesManagementInsertPdfOptionsWithHttpInfo (PdfOptionsDTO pdfOptions) - { - // verify the required parameter 'pdfOptions' is set - if (pdfOptions == null) - throw new ApiException(400, "Missing required parameter 'pdfOptions' when calling DocumentTypesManagementApi->DocumentTypesManagementInsertPdfOptions"); - - var localVarPath = "/api/management/DocumentTypes/PdfOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pdfOptions != null && pdfOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pdfOptions); // http body (model) parameter - } - else - { - localVarPostBody = pdfOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementInsertPdfOptions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PdfOptionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PdfOptionsDTO))); - } - - /// - /// This call insert pdf options - /// - /// Thrown when fails to make API call - /// Pdf options for insert - /// Task of PdfOptionsDTO - public async System.Threading.Tasks.Task DocumentTypesManagementInsertPdfOptionsAsync (PdfOptionsDTO pdfOptions) - { - ApiResponse localVarResponse = await DocumentTypesManagementInsertPdfOptionsAsyncWithHttpInfo(pdfOptions); - return localVarResponse.Data; - - } - - /// - /// This call insert pdf options - /// - /// Thrown when fails to make API call - /// Pdf options for insert - /// Task of ApiResponse (PdfOptionsDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementInsertPdfOptionsAsyncWithHttpInfo (PdfOptionsDTO pdfOptions) - { - // verify the required parameter 'pdfOptions' is set - if (pdfOptions == null) - throw new ApiException(400, "Missing required parameter 'pdfOptions' when calling DocumentTypesManagementApi->DocumentTypesManagementInsertPdfOptions"); - - var localVarPath = "/api/management/DocumentTypes/PdfOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pdfOptions != null && pdfOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pdfOptions); // http body (model) parameter - } - else - { - localVarPostBody = pdfOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementInsertPdfOptions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PdfOptionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PdfOptionsDTO))); - } - - /// - /// This call update archive options for a specific document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Archive options for the document type - /// - public void DocumentTypesManagementSetArchiveRules (int? documentTypeId, ArchiveOptionsDTO archiveOptions) - { - DocumentTypesManagementSetArchiveRulesWithHttpInfo(documentTypeId, archiveOptions); - } - - /// - /// This call update archive options for a specific document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Archive options for the document type - /// ApiResponse of Object(void) - public ApiResponse DocumentTypesManagementSetArchiveRulesWithHttpInfo (int? documentTypeId, ArchiveOptionsDTO archiveOptions) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetArchiveRules"); - // verify the required parameter 'archiveOptions' is set - if (archiveOptions == null) - throw new ApiException(400, "Missing required parameter 'archiveOptions' when calling DocumentTypesManagementApi->DocumentTypesManagementSetArchiveRules"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/Archive"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (archiveOptions != null && archiveOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(archiveOptions); // http body (model) parameter - } - else - { - localVarPostBody = archiveOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetArchiveRules", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update archive options for a specific document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Archive options for the document type - /// Task of void - public async System.Threading.Tasks.Task DocumentTypesManagementSetArchiveRulesAsync (int? documentTypeId, ArchiveOptionsDTO archiveOptions) - { - await DocumentTypesManagementSetArchiveRulesAsyncWithHttpInfo(documentTypeId, archiveOptions); - - } - - /// - /// This call update archive options for a specific document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Archive options for the document type - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentTypesManagementSetArchiveRulesAsyncWithHttpInfo (int? documentTypeId, ArchiveOptionsDTO archiveOptions) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetArchiveRules"); - // verify the required parameter 'archiveOptions' is set - if (archiveOptions == null) - throw new ApiException(400, "Missing required parameter 'archiveOptions' when calling DocumentTypesManagementApi->DocumentTypesManagementSetArchiveRules"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/Archive"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (archiveOptions != null && archiveOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(archiveOptions); // http body (model) parameter - } - else - { - localVarPostBody = archiveOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetArchiveRules", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts or updates specific receipt PA - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Receipt PA - /// ReceiptPADTO - public ReceiptPADTO DocumentTypesManagementSetDocumentTypeReceiptPA (int? documentTypeId, ReceiptPADTO receiptPA) - { - ApiResponse localVarResponse = DocumentTypesManagementSetDocumentTypeReceiptPAWithHttpInfo(documentTypeId, receiptPA); - return localVarResponse.Data; - } - - /// - /// This call inserts or updates specific receipt PA - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Receipt PA - /// ApiResponse of ReceiptPADTO - public ApiResponse< ReceiptPADTO > DocumentTypesManagementSetDocumentTypeReceiptPAWithHttpInfo (int? documentTypeId, ReceiptPADTO receiptPA) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypeReceiptPA"); - // verify the required parameter 'receiptPA' is set - if (receiptPA == null) - throw new ApiException(400, "Missing required parameter 'receiptPA' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypeReceiptPA"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/ReceiptPA"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (receiptPA != null && receiptPA.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(receiptPA); // http body (model) parameter - } - else - { - localVarPostBody = receiptPA; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetDocumentTypeReceiptPA", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ReceiptPADTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReceiptPADTO))); - } - - /// - /// This call inserts or updates specific receipt PA - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Receipt PA - /// Task of ReceiptPADTO - public async System.Threading.Tasks.Task DocumentTypesManagementSetDocumentTypeReceiptPAAsync (int? documentTypeId, ReceiptPADTO receiptPA) - { - ApiResponse localVarResponse = await DocumentTypesManagementSetDocumentTypeReceiptPAAsyncWithHttpInfo(documentTypeId, receiptPA); - return localVarResponse.Data; - - } - - /// - /// This call inserts or updates specific receipt PA - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Receipt PA - /// Task of ApiResponse (ReceiptPADTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementSetDocumentTypeReceiptPAAsyncWithHttpInfo (int? documentTypeId, ReceiptPADTO receiptPA) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypeReceiptPA"); - // verify the required parameter 'receiptPA' is set - if (receiptPA == null) - throw new ApiException(400, "Missing required parameter 'receiptPA' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypeReceiptPA"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/ReceiptPA"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (receiptPA != null && receiptPA.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(receiptPA); // http body (model) parameter - } - else - { - localVarPostBody = receiptPA; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetDocumentTypeReceiptPA", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ReceiptPADTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReceiptPADTO))); - } - - /// - /// This call update Document type stylesheet - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Identifier of the file buffered - /// - public void DocumentTypesManagementSetDocumentTypeStylesheet (int? documentTypeId, string fileBufferId) - { - DocumentTypesManagementSetDocumentTypeStylesheetWithHttpInfo(documentTypeId, fileBufferId); - } - - /// - /// This call update Document type stylesheet - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Identifier of the file buffered - /// ApiResponse of Object(void) - public ApiResponse DocumentTypesManagementSetDocumentTypeStylesheetWithHttpInfo (int? documentTypeId, string fileBufferId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypeStylesheet"); - // verify the required parameter 'fileBufferId' is set - if (fileBufferId == null) - throw new ApiException(400, "Missing required parameter 'fileBufferId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypeStylesheet"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/Stylesheet/{fileBufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (fileBufferId != null) localVarPathParams.Add("fileBufferId", this.Configuration.ApiClient.ParameterToString(fileBufferId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetDocumentTypeStylesheet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update Document type stylesheet - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Identifier of the file buffered - /// Task of void - public async System.Threading.Tasks.Task DocumentTypesManagementSetDocumentTypeStylesheetAsync (int? documentTypeId, string fileBufferId) - { - await DocumentTypesManagementSetDocumentTypeStylesheetAsyncWithHttpInfo(documentTypeId, fileBufferId); - - } - - /// - /// This call update Document type stylesheet - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Identifier of the file buffered - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentTypesManagementSetDocumentTypeStylesheetAsyncWithHttpInfo (int? documentTypeId, string fileBufferId) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypeStylesheet"); - // verify the required parameter 'fileBufferId' is set - if (fileBufferId == null) - throw new ApiException(400, "Missing required parameter 'fileBufferId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypeStylesheet"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/Stylesheet/{fileBufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (fileBufferId != null) localVarPathParams.Add("fileBufferId", this.Configuration.ApiClient.ParameterToString(fileBufferId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetDocumentTypeStylesheet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update all document type users masks - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type users masks - /// - public void DocumentTypesManagementSetDocumentTypeUsersMasks (int? documentTypeId, UsersMasksDTO usersMasks) - { - DocumentTypesManagementSetDocumentTypeUsersMasksWithHttpInfo(documentTypeId, usersMasks); - } - - /// - /// This call update all document type users masks - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type users masks - /// ApiResponse of Object(void) - public ApiResponse DocumentTypesManagementSetDocumentTypeUsersMasksWithHttpInfo (int? documentTypeId, UsersMasksDTO usersMasks) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypeUsersMasks"); - // verify the required parameter 'usersMasks' is set - if (usersMasks == null) - throw new ApiException(400, "Missing required parameter 'usersMasks' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypeUsersMasks"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/UsersMasks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (usersMasks != null && usersMasks.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(usersMasks); // http body (model) parameter - } - else - { - localVarPostBody = usersMasks; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetDocumentTypeUsersMasks", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update all document type users masks - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type users masks - /// Task of void - public async System.Threading.Tasks.Task DocumentTypesManagementSetDocumentTypeUsersMasksAsync (int? documentTypeId, UsersMasksDTO usersMasks) - { - await DocumentTypesManagementSetDocumentTypeUsersMasksAsyncWithHttpInfo(documentTypeId, usersMasks); - - } - - /// - /// This call update all document type users masks - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type users masks - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentTypesManagementSetDocumentTypeUsersMasksAsyncWithHttpInfo (int? documentTypeId, UsersMasksDTO usersMasks) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypeUsersMasks"); - // verify the required parameter 'usersMasks' is set - if (usersMasks == null) - throw new ApiException(400, "Missing required parameter 'usersMasks' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypeUsersMasks"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/UsersMasks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (usersMasks != null && usersMasks.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(usersMasks); // http body (model) parameter - } - else - { - localVarPostBody = usersMasks; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetDocumentTypeUsersMasks", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update all document type folders - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type folders - /// - public void DocumentTypesManagementSetDocumentTypesFolders (int? documentTypeId, List folderTypes) - { - DocumentTypesManagementSetDocumentTypesFoldersWithHttpInfo(documentTypeId, folderTypes); - } - - /// - /// This call update all document type folders - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type folders - /// ApiResponse of Object(void) - public ApiResponse DocumentTypesManagementSetDocumentTypesFoldersWithHttpInfo (int? documentTypeId, List folderTypes) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypesFolders"); - // verify the required parameter 'folderTypes' is set - if (folderTypes == null) - throw new ApiException(400, "Missing required parameter 'folderTypes' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypesFolders"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/Folders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (folderTypes != null && folderTypes.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(folderTypes); // http body (model) parameter - } - else - { - localVarPostBody = folderTypes; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetDocumentTypesFolders", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update all document type folders - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type folders - /// Task of void - public async System.Threading.Tasks.Task DocumentTypesManagementSetDocumentTypesFoldersAsync (int? documentTypeId, List folderTypes) - { - await DocumentTypesManagementSetDocumentTypesFoldersAsyncWithHttpInfo(documentTypeId, folderTypes); - - } - - /// - /// This call update all document type folders - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type folders - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentTypesManagementSetDocumentTypesFoldersAsyncWithHttpInfo (int? documentTypeId, List folderTypes) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypesFolders"); - // verify the required parameter 'folderTypes' is set - if (folderTypes == null) - throw new ApiException(400, "Missing required parameter 'folderTypes' when calling DocumentTypesManagementApi->DocumentTypesManagementSetDocumentTypesFolders"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/Folders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (folderTypes != null && folderTypes.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(folderTypes); // http body (model) parameter - } - else - { - localVarPostBody = folderTypes; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetDocumentTypesFolders", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update Document type forward users - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type forward users - /// - public void DocumentTypesManagementSetForwardUsers (int? documentTypeId, ForwardUsersDTO forwardUsers) - { - DocumentTypesManagementSetForwardUsersWithHttpInfo(documentTypeId, forwardUsers); - } - - /// - /// This call update Document type forward users - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type forward users - /// ApiResponse of Object(void) - public ApiResponse DocumentTypesManagementSetForwardUsersWithHttpInfo (int? documentTypeId, ForwardUsersDTO forwardUsers) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetForwardUsers"); - // verify the required parameter 'forwardUsers' is set - if (forwardUsers == null) - throw new ApiException(400, "Missing required parameter 'forwardUsers' when calling DocumentTypesManagementApi->DocumentTypesManagementSetForwardUsers"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/ForwardUsers"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (forwardUsers != null && forwardUsers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(forwardUsers); // http body (model) parameter - } - else - { - localVarPostBody = forwardUsers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetForwardUsers", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update Document type forward users - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type forward users - /// Task of void - public async System.Threading.Tasks.Task DocumentTypesManagementSetForwardUsersAsync (int? documentTypeId, ForwardUsersDTO forwardUsers) - { - await DocumentTypesManagementSetForwardUsersAsyncWithHttpInfo(documentTypeId, forwardUsers); - - } - - /// - /// This call update Document type forward users - /// - /// Thrown when fails to make API call - /// Document type identifier - /// Document type forward users - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentTypesManagementSetForwardUsersAsyncWithHttpInfo (int? documentTypeId, ForwardUsersDTO forwardUsers) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetForwardUsers"); - // verify the required parameter 'forwardUsers' is set - if (forwardUsers == null) - throw new ApiException(400, "Missing required parameter 'forwardUsers' when calling DocumentTypesManagementApi->DocumentTypesManagementSetForwardUsers"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/ForwardUsers"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (forwardUsers != null && forwardUsers.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(forwardUsers); // http body (model) parameter - } - else - { - localVarPostBody = forwardUsers; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetForwardUsers", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update all mail settings for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Mail settings for the document type - /// - public void DocumentTypesManagementSetMailOptions (int? documentTypeId, MailOptionsDTO mailOptions) - { - DocumentTypesManagementSetMailOptionsWithHttpInfo(documentTypeId, mailOptions); - } - - /// - /// This call update all mail settings for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Mail settings for the document type - /// ApiResponse of Object(void) - public ApiResponse DocumentTypesManagementSetMailOptionsWithHttpInfo (int? documentTypeId, MailOptionsDTO mailOptions) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetMailOptions"); - // verify the required parameter 'mailOptions' is set - if (mailOptions == null) - throw new ApiException(400, "Missing required parameter 'mailOptions' when calling DocumentTypesManagementApi->DocumentTypesManagementSetMailOptions"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/MailOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (mailOptions != null && mailOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailOptions); // http body (model) parameter - } - else - { - localVarPostBody = mailOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetMailOptions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update all mail settings for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Mail settings for the document type - /// Task of void - public async System.Threading.Tasks.Task DocumentTypesManagementSetMailOptionsAsync (int? documentTypeId, MailOptionsDTO mailOptions) - { - await DocumentTypesManagementSetMailOptionsAsyncWithHttpInfo(documentTypeId, mailOptions); - - } - - /// - /// This call update all mail settings for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Mail settings for the document type - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentTypesManagementSetMailOptionsAsyncWithHttpInfo (int? documentTypeId, MailOptionsDTO mailOptions) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetMailOptions"); - // verify the required parameter 'mailOptions' is set - if (mailOptions == null) - throw new ApiException(400, "Missing required parameter 'mailOptions' when calling DocumentTypesManagementApi->DocumentTypesManagementSetMailOptions"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/MailOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (mailOptions != null && mailOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailOptions); // http body (model) parameter - } - else - { - localVarPostBody = mailOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetMailOptions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call insert or update pdf options for a specific document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Pdf options for the document type - /// - public void DocumentTypesManagementSetOptionsPdf (int? documentTypeId, List pdfOptions) - { - DocumentTypesManagementSetOptionsPdfWithHttpInfo(documentTypeId, pdfOptions); - } - - /// - /// This call insert or update pdf options for a specific document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Pdf options for the document type - /// ApiResponse of Object(void) - public ApiResponse DocumentTypesManagementSetOptionsPdfWithHttpInfo (int? documentTypeId, List pdfOptions) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetOptionsPdf"); - // verify the required parameter 'pdfOptions' is set - if (pdfOptions == null) - throw new ApiException(400, "Missing required parameter 'pdfOptions' when calling DocumentTypesManagementApi->DocumentTypesManagementSetOptionsPdf"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/PdfOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (pdfOptions != null && pdfOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pdfOptions); // http body (model) parameter - } - else - { - localVarPostBody = pdfOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetOptionsPdf", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call insert or update pdf options for a specific document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Pdf options for the document type - /// Task of void - public async System.Threading.Tasks.Task DocumentTypesManagementSetOptionsPdfAsync (int? documentTypeId, List pdfOptions) - { - await DocumentTypesManagementSetOptionsPdfAsyncWithHttpInfo(documentTypeId, pdfOptions); - - } - - /// - /// This call insert or update pdf options for a specific document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Pdf options for the document type - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentTypesManagementSetOptionsPdfAsyncWithHttpInfo (int? documentTypeId, List pdfOptions) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetOptionsPdf"); - // verify the required parameter 'pdfOptions' is set - if (pdfOptions == null) - throw new ApiException(400, "Missing required parameter 'pdfOptions' when calling DocumentTypesManagementApi->DocumentTypesManagementSetOptionsPdf"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/PdfOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (pdfOptions != null && pdfOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pdfOptions); // http body (model) parameter - } - else - { - localVarPostBody = pdfOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetOptionsPdf", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update all uniqueness rules for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Uniqueness rules for the document type - /// - public void DocumentTypesManagementSetUniquenessRules (int? documentTypeId, UniquenessRulesDTO uniquenessRules) - { - DocumentTypesManagementSetUniquenessRulesWithHttpInfo(documentTypeId, uniquenessRules); - } - - /// - /// This call update all uniqueness rules for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Uniqueness rules for the document type - /// ApiResponse of Object(void) - public ApiResponse DocumentTypesManagementSetUniquenessRulesWithHttpInfo (int? documentTypeId, UniquenessRulesDTO uniquenessRules) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetUniquenessRules"); - // verify the required parameter 'uniquenessRules' is set - if (uniquenessRules == null) - throw new ApiException(400, "Missing required parameter 'uniquenessRules' when calling DocumentTypesManagementApi->DocumentTypesManagementSetUniquenessRules"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/UniquenessRules"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (uniquenessRules != null && uniquenessRules.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(uniquenessRules); // http body (model) parameter - } - else - { - localVarPostBody = uniquenessRules; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetUniquenessRules", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update all uniqueness rules for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Uniqueness rules for the document type - /// Task of void - public async System.Threading.Tasks.Task DocumentTypesManagementSetUniquenessRulesAsync (int? documentTypeId, UniquenessRulesDTO uniquenessRules) - { - await DocumentTypesManagementSetUniquenessRulesAsyncWithHttpInfo(documentTypeId, uniquenessRules); - - } - - /// - /// This call update all uniqueness rules for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Uniqueness rules for the document type - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentTypesManagementSetUniquenessRulesAsyncWithHttpInfo (int? documentTypeId, UniquenessRulesDTO uniquenessRules) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementSetUniquenessRules"); - // verify the required parameter 'uniquenessRules' is set - if (uniquenessRules == null) - throw new ApiException(400, "Missing required parameter 'uniquenessRules' when calling DocumentTypesManagementApi->DocumentTypesManagementSetUniquenessRules"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/UniquenessRules"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (uniquenessRules != null && uniquenessRules.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(uniquenessRules); // http body (model) parameter - } - else - { - localVarPostBody = uniquenessRules; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementSetUniquenessRules", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates a given Document Type - /// - /// Thrown when fails to make API call - /// Identifier - /// Document Type information for update - /// DocumentTypeCompleteDTO - public DocumentTypeCompleteDTO DocumentTypesManagementUpdate (int? id, DocumentTypeForUpdateDTO documentTypeForUpdate) - { - ApiResponse localVarResponse = DocumentTypesManagementUpdateWithHttpInfo(id, documentTypeForUpdate); - return localVarResponse.Data; - } - - /// - /// This call updates a given Document Type - /// - /// Thrown when fails to make API call - /// Identifier - /// Document Type information for update - /// ApiResponse of DocumentTypeCompleteDTO - public ApiResponse< DocumentTypeCompleteDTO > DocumentTypesManagementUpdateWithHttpInfo (int? id, DocumentTypeForUpdateDTO documentTypeForUpdate) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentTypesManagementApi->DocumentTypesManagementUpdate"); - // verify the required parameter 'documentTypeForUpdate' is set - if (documentTypeForUpdate == null) - throw new ApiException(400, "Missing required parameter 'documentTypeForUpdate' when calling DocumentTypesManagementApi->DocumentTypesManagementUpdate"); - - var localVarPath = "/api/management/DocumentTypes/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (documentTypeForUpdate != null && documentTypeForUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(documentTypeForUpdate); // http body (model) parameter - } - else - { - localVarPostBody = documentTypeForUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeCompleteDTO))); - } - - /// - /// This call updates a given Document Type - /// - /// Thrown when fails to make API call - /// Identifier - /// Document Type information for update - /// Task of DocumentTypeCompleteDTO - public async System.Threading.Tasks.Task DocumentTypesManagementUpdateAsync (int? id, DocumentTypeForUpdateDTO documentTypeForUpdate) - { - ApiResponse localVarResponse = await DocumentTypesManagementUpdateAsyncWithHttpInfo(id, documentTypeForUpdate); - return localVarResponse.Data; - - } - - /// - /// This call updates a given Document Type - /// - /// Thrown when fails to make API call - /// Identifier - /// Document Type information for update - /// Task of ApiResponse (DocumentTypeCompleteDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementUpdateAsyncWithHttpInfo (int? id, DocumentTypeForUpdateDTO documentTypeForUpdate) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling DocumentTypesManagementApi->DocumentTypesManagementUpdate"); - // verify the required parameter 'documentTypeForUpdate' is set - if (documentTypeForUpdate == null) - throw new ApiException(400, "Missing required parameter 'documentTypeForUpdate' when calling DocumentTypesManagementApi->DocumentTypesManagementUpdate"); - - var localVarPath = "/api/management/DocumentTypes/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (documentTypeForUpdate != null && documentTypeForUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(documentTypeForUpdate); // http body (model) parameter - } - else - { - localVarPostBody = documentTypeForUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTypeCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTypeCompleteDTO))); - } - - /// - /// This call update automatic reference by its id - /// - /// Thrown when fails to make API call - /// Automatic reference for update - /// AutomaticReferenceDTO - public AutomaticReferenceDTO DocumentTypesManagementUpdateAutomaticReference (AutomaticReferenceDTO automaticReference) - { - ApiResponse localVarResponse = DocumentTypesManagementUpdateAutomaticReferenceWithHttpInfo(automaticReference); - return localVarResponse.Data; - } - - /// - /// This call update automatic reference by its id - /// - /// Thrown when fails to make API call - /// Automatic reference for update - /// ApiResponse of AutomaticReferenceDTO - public ApiResponse< AutomaticReferenceDTO > DocumentTypesManagementUpdateAutomaticReferenceWithHttpInfo (AutomaticReferenceDTO automaticReference) - { - // verify the required parameter 'automaticReference' is set - if (automaticReference == null) - throw new ApiException(400, "Missing required parameter 'automaticReference' when calling DocumentTypesManagementApi->DocumentTypesManagementUpdateAutomaticReference"); - - var localVarPath = "/api/management/DocumentTypes/AutomaticReferences"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (automaticReference != null && automaticReference.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(automaticReference); // http body (model) parameter - } - else - { - localVarPostBody = automaticReference; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementUpdateAutomaticReference", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AutomaticReferenceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AutomaticReferenceDTO))); - } - - /// - /// This call update automatic reference by its id - /// - /// Thrown when fails to make API call - /// Automatic reference for update - /// Task of AutomaticReferenceDTO - public async System.Threading.Tasks.Task DocumentTypesManagementUpdateAutomaticReferenceAsync (AutomaticReferenceDTO automaticReference) - { - ApiResponse localVarResponse = await DocumentTypesManagementUpdateAutomaticReferenceAsyncWithHttpInfo(automaticReference); - return localVarResponse.Data; - - } - - /// - /// This call update automatic reference by its id - /// - /// Thrown when fails to make API call - /// Automatic reference for update - /// Task of ApiResponse (AutomaticReferenceDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementUpdateAutomaticReferenceAsyncWithHttpInfo (AutomaticReferenceDTO automaticReference) - { - // verify the required parameter 'automaticReference' is set - if (automaticReference == null) - throw new ApiException(400, "Missing required parameter 'automaticReference' when calling DocumentTypesManagementApi->DocumentTypesManagementUpdateAutomaticReference"); - - var localVarPath = "/api/management/DocumentTypes/AutomaticReferences"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (automaticReference != null && automaticReference.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(automaticReference); // http body (model) parameter - } - else - { - localVarPostBody = automaticReference; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementUpdateAutomaticReference", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AutomaticReferenceDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AutomaticReferenceDTO))); - } - - /// - /// This call update states for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Document Type states - /// - public void DocumentTypesManagementUpdateDocumentTypeStates (int? documentTypeId, List documentTypeStates) - { - DocumentTypesManagementUpdateDocumentTypeStatesWithHttpInfo(documentTypeId, documentTypeStates); - } - - /// - /// This call update states for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Document Type states - /// ApiResponse of Object(void) - public ApiResponse DocumentTypesManagementUpdateDocumentTypeStatesWithHttpInfo (int? documentTypeId, List documentTypeStates) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementUpdateDocumentTypeStates"); - // verify the required parameter 'documentTypeStates' is set - if (documentTypeStates == null) - throw new ApiException(400, "Missing required parameter 'documentTypeStates' when calling DocumentTypesManagementApi->DocumentTypesManagementUpdateDocumentTypeStates"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (documentTypeStates != null && documentTypeStates.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(documentTypeStates); // http body (model) parameter - } - else - { - localVarPostBody = documentTypeStates; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementUpdateDocumentTypeStates", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update states for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Document Type states - /// Task of void - public async System.Threading.Tasks.Task DocumentTypesManagementUpdateDocumentTypeStatesAsync (int? documentTypeId, List documentTypeStates) - { - await DocumentTypesManagementUpdateDocumentTypeStatesAsyncWithHttpInfo(documentTypeId, documentTypeStates); - - } - - /// - /// This call update states for a document type - /// - /// Thrown when fails to make API call - /// Document Type system id - /// Document Type states - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentTypesManagementUpdateDocumentTypeStatesAsyncWithHttpInfo (int? documentTypeId, List documentTypeStates) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling DocumentTypesManagementApi->DocumentTypesManagementUpdateDocumentTypeStates"); - // verify the required parameter 'documentTypeStates' is set - if (documentTypeStates == null) - throw new ApiException(400, "Missing required parameter 'documentTypeStates' when calling DocumentTypesManagementApi->DocumentTypesManagementUpdateDocumentTypeStates"); - - var localVarPath = "/api/management/DocumentTypes/{documentTypeId}/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (documentTypeStates != null && documentTypeStates.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(documentTypeStates); // http body (model) parameter - } - else - { - localVarPostBody = documentTypeStates; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementUpdateDocumentTypeStates", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update specific document type folder - /// - /// Thrown when fails to make API call - /// Document type for update - /// FolderTypeDTO - public FolderTypeDTO DocumentTypesManagementUpdateDocumentTypesFolders (FolderTypeDTO folderType) - { - ApiResponse localVarResponse = DocumentTypesManagementUpdateDocumentTypesFoldersWithHttpInfo(folderType); - return localVarResponse.Data; - } - - /// - /// This call update specific document type folder - /// - /// Thrown when fails to make API call - /// Document type for update - /// ApiResponse of FolderTypeDTO - public ApiResponse< FolderTypeDTO > DocumentTypesManagementUpdateDocumentTypesFoldersWithHttpInfo (FolderTypeDTO folderType) - { - // verify the required parameter 'folderType' is set - if (folderType == null) - throw new ApiException(400, "Missing required parameter 'folderType' when calling DocumentTypesManagementApi->DocumentTypesManagementUpdateDocumentTypesFolders"); - - var localVarPath = "/api/management/DocumentTypes/Folders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (folderType != null && folderType.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(folderType); // http body (model) parameter - } - else - { - localVarPostBody = folderType; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementUpdateDocumentTypesFolders", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderTypeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderTypeDTO))); - } - - /// - /// This call update specific document type folder - /// - /// Thrown when fails to make API call - /// Document type for update - /// Task of FolderTypeDTO - public async System.Threading.Tasks.Task DocumentTypesManagementUpdateDocumentTypesFoldersAsync (FolderTypeDTO folderType) - { - ApiResponse localVarResponse = await DocumentTypesManagementUpdateDocumentTypesFoldersAsyncWithHttpInfo(folderType); - return localVarResponse.Data; - - } - - /// - /// This call update specific document type folder - /// - /// Thrown when fails to make API call - /// Document type for update - /// Task of ApiResponse (FolderTypeDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementUpdateDocumentTypesFoldersAsyncWithHttpInfo (FolderTypeDTO folderType) - { - // verify the required parameter 'folderType' is set - if (folderType == null) - throw new ApiException(400, "Missing required parameter 'folderType' when calling DocumentTypesManagementApi->DocumentTypesManagementUpdateDocumentTypesFolders"); - - var localVarPath = "/api/management/DocumentTypes/Folders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (folderType != null && folderType.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(folderType); // http body (model) parameter - } - else - { - localVarPostBody = folderType; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementUpdateDocumentTypesFolders", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FolderTypeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FolderTypeDTO))); - } - - /// - /// This call update pdf options by id - /// - /// Thrown when fails to make API call - /// Pdf options for update - /// PdfOptionsDTO - public PdfOptionsDTO DocumentTypesManagementUpdatePdfOptions (PdfOptionsDTO pdfOptions) - { - ApiResponse localVarResponse = DocumentTypesManagementUpdatePdfOptionsWithHttpInfo(pdfOptions); - return localVarResponse.Data; - } - - /// - /// This call update pdf options by id - /// - /// Thrown when fails to make API call - /// Pdf options for update - /// ApiResponse of PdfOptionsDTO - public ApiResponse< PdfOptionsDTO > DocumentTypesManagementUpdatePdfOptionsWithHttpInfo (PdfOptionsDTO pdfOptions) - { - // verify the required parameter 'pdfOptions' is set - if (pdfOptions == null) - throw new ApiException(400, "Missing required parameter 'pdfOptions' when calling DocumentTypesManagementApi->DocumentTypesManagementUpdatePdfOptions"); - - var localVarPath = "/api/management/DocumentTypes/PdfOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pdfOptions != null && pdfOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pdfOptions); // http body (model) parameter - } - else - { - localVarPostBody = pdfOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementUpdatePdfOptions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PdfOptionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PdfOptionsDTO))); - } - - /// - /// This call update pdf options by id - /// - /// Thrown when fails to make API call - /// Pdf options for update - /// Task of PdfOptionsDTO - public async System.Threading.Tasks.Task DocumentTypesManagementUpdatePdfOptionsAsync (PdfOptionsDTO pdfOptions) - { - ApiResponse localVarResponse = await DocumentTypesManagementUpdatePdfOptionsAsyncWithHttpInfo(pdfOptions); - return localVarResponse.Data; - - } - - /// - /// This call update pdf options by id - /// - /// Thrown when fails to make API call - /// Pdf options for update - /// Task of ApiResponse (PdfOptionsDTO) - public async System.Threading.Tasks.Task> DocumentTypesManagementUpdatePdfOptionsAsyncWithHttpInfo (PdfOptionsDTO pdfOptions) - { - // verify the required parameter 'pdfOptions' is set - if (pdfOptions == null) - throw new ApiException(400, "Missing required parameter 'pdfOptions' when calling DocumentTypesManagementApi->DocumentTypesManagementUpdatePdfOptions"); - - var localVarPath = "/api/management/DocumentTypes/PdfOptions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (pdfOptions != null && pdfOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(pdfOptions); // http body (model) parameter - } - else - { - localVarPostBody = pdfOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentTypesManagementUpdatePdfOptions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PdfOptionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PdfOptionsDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/DocumentsManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/DocumentsManagementApi.cs deleted file mode 100644 index 3048469..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/DocumentsManagementApi.cs +++ /dev/null @@ -1,1270 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDocumentsManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns document compression settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// DocumentCompressionSettingsDTO - DocumentCompressionSettingsDTO DocumentsManagementGetDocumentCompressionSettings (); - - /// - /// This call returns document compression settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of DocumentCompressionSettingsDTO - ApiResponse DocumentsManagementGetDocumentCompressionSettingsWithHttpInfo (); - /// - /// This call returns documents hash integrity settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// DocumentHashIntegritySettingsDTO - DocumentHashIntegritySettingsDTO DocumentsManagementGetDocumentHashIntegritySettings (); - - /// - /// This call returns documents hash integrity settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of DocumentHashIntegritySettingsDTO - ApiResponse DocumentsManagementGetDocumentHashIntegritySettingsWithHttpInfo (); - /// - /// This call returns documents compression zip protection settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// DocumentZipProtectionSettingsDTO - DocumentZipProtectionSettingsDTO DocumentsManagementGetDocumentZipProtectionSettings (); - - /// - /// This call returns documents compression zip protection settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of DocumentZipProtectionSettingsDTO - ApiResponse DocumentsManagementGetDocumentZipProtectionSettingsWithHttpInfo (); - /// - /// This call updates documents compression settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document compression settings - /// - void DocumentsManagementSetDocumentCompressionSettings (DocumentCompressionSettingsDTO compressionSettings); - - /// - /// This call updates documents compression settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document compression settings - /// ApiResponse of Object(void) - ApiResponse DocumentsManagementSetDocumentCompressionSettingsWithHttpInfo (DocumentCompressionSettingsDTO compressionSettings); - /// - /// Updates documents hash integrity settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Documents hash integrity settings - /// - void DocumentsManagementSetDocumentHashIntegritySettings (DocumentHashIntegritySettingsDTO hashIntegritySettings); - - /// - /// Updates documents hash integrity settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Documents hash integrity settings - /// ApiResponse of Object(void) - ApiResponse DocumentsManagementSetDocumentHashIntegritySettingsWithHttpInfo (DocumentHashIntegritySettingsDTO hashIntegritySettings); - /// - /// Updates documents compression zip protection settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Documents compression zip protection settings - /// - void DocumentsManagementSetDocumentZipProtectionSettings (DocumentZipProtectionSettingsDTO zipProtectionSettings); - - /// - /// Updates documents compression zip protection settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Documents compression zip protection settings - /// ApiResponse of Object(void) - ApiResponse DocumentsManagementSetDocumentZipProtectionSettingsWithHttpInfo (DocumentZipProtectionSettingsDTO zipProtectionSettings); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns document compression settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of DocumentCompressionSettingsDTO - System.Threading.Tasks.Task DocumentsManagementGetDocumentCompressionSettingsAsync (); - - /// - /// This call returns document compression settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DocumentCompressionSettingsDTO) - System.Threading.Tasks.Task> DocumentsManagementGetDocumentCompressionSettingsAsyncWithHttpInfo (); - /// - /// This call returns documents hash integrity settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of DocumentHashIntegritySettingsDTO - System.Threading.Tasks.Task DocumentsManagementGetDocumentHashIntegritySettingsAsync (); - - /// - /// This call returns documents hash integrity settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DocumentHashIntegritySettingsDTO) - System.Threading.Tasks.Task> DocumentsManagementGetDocumentHashIntegritySettingsAsyncWithHttpInfo (); - /// - /// This call returns documents compression zip protection settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of DocumentZipProtectionSettingsDTO - System.Threading.Tasks.Task DocumentsManagementGetDocumentZipProtectionSettingsAsync (); - - /// - /// This call returns documents compression zip protection settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DocumentZipProtectionSettingsDTO) - System.Threading.Tasks.Task> DocumentsManagementGetDocumentZipProtectionSettingsAsyncWithHttpInfo (); - /// - /// This call updates documents compression settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document compression settings - /// Task of void - System.Threading.Tasks.Task DocumentsManagementSetDocumentCompressionSettingsAsync (DocumentCompressionSettingsDTO compressionSettings); - - /// - /// This call updates documents compression settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document compression settings - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentsManagementSetDocumentCompressionSettingsAsyncWithHttpInfo (DocumentCompressionSettingsDTO compressionSettings); - /// - /// Updates documents hash integrity settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Documents hash integrity settings - /// Task of void - System.Threading.Tasks.Task DocumentsManagementSetDocumentHashIntegritySettingsAsync (DocumentHashIntegritySettingsDTO hashIntegritySettings); - - /// - /// Updates documents hash integrity settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Documents hash integrity settings - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentsManagementSetDocumentHashIntegritySettingsAsyncWithHttpInfo (DocumentHashIntegritySettingsDTO hashIntegritySettings); - /// - /// Updates documents compression zip protection settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Documents compression zip protection settings - /// Task of void - System.Threading.Tasks.Task DocumentsManagementSetDocumentZipProtectionSettingsAsync (DocumentZipProtectionSettingsDTO zipProtectionSettings); - - /// - /// Updates documents compression zip protection settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Documents compression zip protection settings - /// Task of ApiResponse - System.Threading.Tasks.Task> DocumentsManagementSetDocumentZipProtectionSettingsAsyncWithHttpInfo (DocumentZipProtectionSettingsDTO zipProtectionSettings); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class DocumentsManagementApi : IDocumentsManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public DocumentsManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public DocumentsManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns document compression settings - /// - /// Thrown when fails to make API call - /// DocumentCompressionSettingsDTO - public DocumentCompressionSettingsDTO DocumentsManagementGetDocumentCompressionSettings () - { - ApiResponse localVarResponse = DocumentsManagementGetDocumentCompressionSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns document compression settings - /// - /// Thrown when fails to make API call - /// ApiResponse of DocumentCompressionSettingsDTO - public ApiResponse< DocumentCompressionSettingsDTO > DocumentsManagementGetDocumentCompressionSettingsWithHttpInfo () - { - - var localVarPath = "/api/management/Documents/Compression"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsManagementGetDocumentCompressionSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentCompressionSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentCompressionSettingsDTO))); - } - - /// - /// This call returns document compression settings - /// - /// Thrown when fails to make API call - /// Task of DocumentCompressionSettingsDTO - public async System.Threading.Tasks.Task DocumentsManagementGetDocumentCompressionSettingsAsync () - { - ApiResponse localVarResponse = await DocumentsManagementGetDocumentCompressionSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns document compression settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DocumentCompressionSettingsDTO) - public async System.Threading.Tasks.Task> DocumentsManagementGetDocumentCompressionSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Documents/Compression"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsManagementGetDocumentCompressionSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentCompressionSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentCompressionSettingsDTO))); - } - - /// - /// This call returns documents hash integrity settings - /// - /// Thrown when fails to make API call - /// DocumentHashIntegritySettingsDTO - public DocumentHashIntegritySettingsDTO DocumentsManagementGetDocumentHashIntegritySettings () - { - ApiResponse localVarResponse = DocumentsManagementGetDocumentHashIntegritySettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns documents hash integrity settings - /// - /// Thrown when fails to make API call - /// ApiResponse of DocumentHashIntegritySettingsDTO - public ApiResponse< DocumentHashIntegritySettingsDTO > DocumentsManagementGetDocumentHashIntegritySettingsWithHttpInfo () - { - - var localVarPath = "/api/management/Documents/HashIntegrity"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsManagementGetDocumentHashIntegritySettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentHashIntegritySettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentHashIntegritySettingsDTO))); - } - - /// - /// This call returns documents hash integrity settings - /// - /// Thrown when fails to make API call - /// Task of DocumentHashIntegritySettingsDTO - public async System.Threading.Tasks.Task DocumentsManagementGetDocumentHashIntegritySettingsAsync () - { - ApiResponse localVarResponse = await DocumentsManagementGetDocumentHashIntegritySettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns documents hash integrity settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DocumentHashIntegritySettingsDTO) - public async System.Threading.Tasks.Task> DocumentsManagementGetDocumentHashIntegritySettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Documents/HashIntegrity"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsManagementGetDocumentHashIntegritySettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentHashIntegritySettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentHashIntegritySettingsDTO))); - } - - /// - /// This call returns documents compression zip protection settings - /// - /// Thrown when fails to make API call - /// DocumentZipProtectionSettingsDTO - public DocumentZipProtectionSettingsDTO DocumentsManagementGetDocumentZipProtectionSettings () - { - ApiResponse localVarResponse = DocumentsManagementGetDocumentZipProtectionSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns documents compression zip protection settings - /// - /// Thrown when fails to make API call - /// ApiResponse of DocumentZipProtectionSettingsDTO - public ApiResponse< DocumentZipProtectionSettingsDTO > DocumentsManagementGetDocumentZipProtectionSettingsWithHttpInfo () - { - - var localVarPath = "/api/management/Documents/ZipProtection"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsManagementGetDocumentZipProtectionSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentZipProtectionSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentZipProtectionSettingsDTO))); - } - - /// - /// This call returns documents compression zip protection settings - /// - /// Thrown when fails to make API call - /// Task of DocumentZipProtectionSettingsDTO - public async System.Threading.Tasks.Task DocumentsManagementGetDocumentZipProtectionSettingsAsync () - { - ApiResponse localVarResponse = await DocumentsManagementGetDocumentZipProtectionSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns documents compression zip protection settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (DocumentZipProtectionSettingsDTO) - public async System.Threading.Tasks.Task> DocumentsManagementGetDocumentZipProtectionSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Documents/ZipProtection"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsManagementGetDocumentZipProtectionSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentZipProtectionSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentZipProtectionSettingsDTO))); - } - - /// - /// This call updates documents compression settings - /// - /// Thrown when fails to make API call - /// Document compression settings - /// - public void DocumentsManagementSetDocumentCompressionSettings (DocumentCompressionSettingsDTO compressionSettings) - { - DocumentsManagementSetDocumentCompressionSettingsWithHttpInfo(compressionSettings); - } - - /// - /// This call updates documents compression settings - /// - /// Thrown when fails to make API call - /// Document compression settings - /// ApiResponse of Object(void) - public ApiResponse DocumentsManagementSetDocumentCompressionSettingsWithHttpInfo (DocumentCompressionSettingsDTO compressionSettings) - { - // verify the required parameter 'compressionSettings' is set - if (compressionSettings == null) - throw new ApiException(400, "Missing required parameter 'compressionSettings' when calling DocumentsManagementApi->DocumentsManagementSetDocumentCompressionSettings"); - - var localVarPath = "/api/management/Documents/Compression"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (compressionSettings != null && compressionSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(compressionSettings); // http body (model) parameter - } - else - { - localVarPostBody = compressionSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsManagementSetDocumentCompressionSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates documents compression settings - /// - /// Thrown when fails to make API call - /// Document compression settings - /// Task of void - public async System.Threading.Tasks.Task DocumentsManagementSetDocumentCompressionSettingsAsync (DocumentCompressionSettingsDTO compressionSettings) - { - await DocumentsManagementSetDocumentCompressionSettingsAsyncWithHttpInfo(compressionSettings); - - } - - /// - /// This call updates documents compression settings - /// - /// Thrown when fails to make API call - /// Document compression settings - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentsManagementSetDocumentCompressionSettingsAsyncWithHttpInfo (DocumentCompressionSettingsDTO compressionSettings) - { - // verify the required parameter 'compressionSettings' is set - if (compressionSettings == null) - throw new ApiException(400, "Missing required parameter 'compressionSettings' when calling DocumentsManagementApi->DocumentsManagementSetDocumentCompressionSettings"); - - var localVarPath = "/api/management/Documents/Compression"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (compressionSettings != null && compressionSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(compressionSettings); // http body (model) parameter - } - else - { - localVarPostBody = compressionSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsManagementSetDocumentCompressionSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Updates documents hash integrity settings - /// - /// Thrown when fails to make API call - /// Documents hash integrity settings - /// - public void DocumentsManagementSetDocumentHashIntegritySettings (DocumentHashIntegritySettingsDTO hashIntegritySettings) - { - DocumentsManagementSetDocumentHashIntegritySettingsWithHttpInfo(hashIntegritySettings); - } - - /// - /// Updates documents hash integrity settings - /// - /// Thrown when fails to make API call - /// Documents hash integrity settings - /// ApiResponse of Object(void) - public ApiResponse DocumentsManagementSetDocumentHashIntegritySettingsWithHttpInfo (DocumentHashIntegritySettingsDTO hashIntegritySettings) - { - // verify the required parameter 'hashIntegritySettings' is set - if (hashIntegritySettings == null) - throw new ApiException(400, "Missing required parameter 'hashIntegritySettings' when calling DocumentsManagementApi->DocumentsManagementSetDocumentHashIntegritySettings"); - - var localVarPath = "/api/management/Documents/HashIntegrity"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (hashIntegritySettings != null && hashIntegritySettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(hashIntegritySettings); // http body (model) parameter - } - else - { - localVarPostBody = hashIntegritySettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsManagementSetDocumentHashIntegritySettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Updates documents hash integrity settings - /// - /// Thrown when fails to make API call - /// Documents hash integrity settings - /// Task of void - public async System.Threading.Tasks.Task DocumentsManagementSetDocumentHashIntegritySettingsAsync (DocumentHashIntegritySettingsDTO hashIntegritySettings) - { - await DocumentsManagementSetDocumentHashIntegritySettingsAsyncWithHttpInfo(hashIntegritySettings); - - } - - /// - /// Updates documents hash integrity settings - /// - /// Thrown when fails to make API call - /// Documents hash integrity settings - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentsManagementSetDocumentHashIntegritySettingsAsyncWithHttpInfo (DocumentHashIntegritySettingsDTO hashIntegritySettings) - { - // verify the required parameter 'hashIntegritySettings' is set - if (hashIntegritySettings == null) - throw new ApiException(400, "Missing required parameter 'hashIntegritySettings' when calling DocumentsManagementApi->DocumentsManagementSetDocumentHashIntegritySettings"); - - var localVarPath = "/api/management/Documents/HashIntegrity"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (hashIntegritySettings != null && hashIntegritySettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(hashIntegritySettings); // http body (model) parameter - } - else - { - localVarPostBody = hashIntegritySettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsManagementSetDocumentHashIntegritySettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Updates documents compression zip protection settings - /// - /// Thrown when fails to make API call - /// Documents compression zip protection settings - /// - public void DocumentsManagementSetDocumentZipProtectionSettings (DocumentZipProtectionSettingsDTO zipProtectionSettings) - { - DocumentsManagementSetDocumentZipProtectionSettingsWithHttpInfo(zipProtectionSettings); - } - - /// - /// Updates documents compression zip protection settings - /// - /// Thrown when fails to make API call - /// Documents compression zip protection settings - /// ApiResponse of Object(void) - public ApiResponse DocumentsManagementSetDocumentZipProtectionSettingsWithHttpInfo (DocumentZipProtectionSettingsDTO zipProtectionSettings) - { - // verify the required parameter 'zipProtectionSettings' is set - if (zipProtectionSettings == null) - throw new ApiException(400, "Missing required parameter 'zipProtectionSettings' when calling DocumentsManagementApi->DocumentsManagementSetDocumentZipProtectionSettings"); - - var localVarPath = "/api/management/Documents/ZipProtection"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (zipProtectionSettings != null && zipProtectionSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(zipProtectionSettings); // http body (model) parameter - } - else - { - localVarPostBody = zipProtectionSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsManagementSetDocumentZipProtectionSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Updates documents compression zip protection settings - /// - /// Thrown when fails to make API call - /// Documents compression zip protection settings - /// Task of void - public async System.Threading.Tasks.Task DocumentsManagementSetDocumentZipProtectionSettingsAsync (DocumentZipProtectionSettingsDTO zipProtectionSettings) - { - await DocumentsManagementSetDocumentZipProtectionSettingsAsyncWithHttpInfo(zipProtectionSettings); - - } - - /// - /// Updates documents compression zip protection settings - /// - /// Thrown when fails to make API call - /// Documents compression zip protection settings - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DocumentsManagementSetDocumentZipProtectionSettingsAsyncWithHttpInfo (DocumentZipProtectionSettingsDTO zipProtectionSettings) - { - // verify the required parameter 'zipProtectionSettings' is set - if (zipProtectionSettings == null) - throw new ApiException(400, "Missing required parameter 'zipProtectionSettings' when calling DocumentsManagementApi->DocumentsManagementSetDocumentZipProtectionSettings"); - - var localVarPath = "/api/management/Documents/ZipProtection"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (zipProtectionSettings != null && zipProtectionSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(zipProtectionSettings); // http body (model) parameter - } - else - { - localVarPostBody = zipProtectionSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("DocumentsManagementSetDocumentZipProtectionSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/EncryptionManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/EncryptionManagementApi.cs deleted file mode 100644 index 2dd25f1..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/EncryptionManagementApi.cs +++ /dev/null @@ -1,906 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IEncryptionManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// bool? - bool? EncryptionManagementCanDbEncrypt (int? context); - - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// ApiResponse of bool? - ApiResponse EncryptionManagementCanDbEncryptWithHttpInfo (int? context); - /// - /// This call allows to get Metadata Encryption key - /// - /// - /// - /// - /// Thrown when fails to make API call - /// string - string EncryptionManagementGetMetadataEncryptionKey (); - - /// - /// This call allows to get Metadata Encryption key - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of string - ApiResponse EncryptionManagementGetMetadataEncryptionKeyWithHttpInfo (); - /// - /// This call allows to configure Metadata Encryption settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Metadata Encryption settings - /// - void EncryptionManagementSetMetadataEncryptionSettings (MetadataEncryptionSettingsDTO settings); - - /// - /// This call allows to configure Metadata Encryption settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Metadata Encryption settings - /// ApiResponse of Object(void) - ApiResponse EncryptionManagementSetMetadataEncryptionSettingsWithHttpInfo (MetadataEncryptionSettingsDTO settings); - /// - /// This call allows to configure Secure Storage settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Secure storage settings - /// - void EncryptionManagementSetSecureStorageSettings (SecureStorageSettingsDTO settings); - - /// - /// This call allows to configure Secure Storage settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Secure storage settings - /// ApiResponse of Object(void) - ApiResponse EncryptionManagementSetSecureStorageSettingsWithHttpInfo (SecureStorageSettingsDTO settings); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// Task of bool? - System.Threading.Tasks.Task EncryptionManagementCanDbEncryptAsync (int? context); - - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> EncryptionManagementCanDbEncryptAsyncWithHttpInfo (int? context); - /// - /// This call allows to get Metadata Encryption key - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of string - System.Threading.Tasks.Task EncryptionManagementGetMetadataEncryptionKeyAsync (); - - /// - /// This call allows to get Metadata Encryption key - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> EncryptionManagementGetMetadataEncryptionKeyAsyncWithHttpInfo (); - /// - /// This call allows to configure Metadata Encryption settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Metadata Encryption settings - /// Task of void - System.Threading.Tasks.Task EncryptionManagementSetMetadataEncryptionSettingsAsync (MetadataEncryptionSettingsDTO settings); - - /// - /// This call allows to configure Metadata Encryption settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Metadata Encryption settings - /// Task of ApiResponse - System.Threading.Tasks.Task> EncryptionManagementSetMetadataEncryptionSettingsAsyncWithHttpInfo (MetadataEncryptionSettingsDTO settings); - /// - /// This call allows to configure Secure Storage settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Secure storage settings - /// Task of void - System.Threading.Tasks.Task EncryptionManagementSetSecureStorageSettingsAsync (SecureStorageSettingsDTO settings); - - /// - /// This call allows to configure Secure Storage settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Secure storage settings - /// Task of ApiResponse - System.Threading.Tasks.Task> EncryptionManagementSetSecureStorageSettingsAsyncWithHttpInfo (SecureStorageSettingsDTO settings); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class EncryptionManagementApi : IEncryptionManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public EncryptionManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public EncryptionManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// bool? - public bool? EncryptionManagementCanDbEncrypt (int? context) - { - ApiResponse localVarResponse = EncryptionManagementCanDbEncryptWithHttpInfo(context); - return localVarResponse.Data; - } - - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// ApiResponse of bool? - public ApiResponse< bool? > EncryptionManagementCanDbEncryptWithHttpInfo (int? context) - { - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling EncryptionManagementApi->EncryptionManagementCanDbEncrypt"); - - var localVarPath = "/api/management/Encryption/CanDbEncrypt"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (context != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "context", context)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("EncryptionManagementCanDbEncrypt", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// Task of bool? - public async System.Threading.Tasks.Task EncryptionManagementCanDbEncryptAsync (int? context) - { - ApiResponse localVarResponse = await EncryptionManagementCanDbEncryptAsyncWithHttpInfo(context); - return localVarResponse.Data; - - } - - /// - /// This call allows to check if database supports encryption and if it is enabled for specified context - /// - /// Thrown when fails to make API call - /// Possible values: 0: SecureStorage 1: MetadataEncryption - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> EncryptionManagementCanDbEncryptAsyncWithHttpInfo (int? context) - { - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling EncryptionManagementApi->EncryptionManagementCanDbEncrypt"); - - var localVarPath = "/api/management/Encryption/CanDbEncrypt"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (context != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "context", context)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("EncryptionManagementCanDbEncrypt", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call allows to get Metadata Encryption key - /// - /// Thrown when fails to make API call - /// string - public string EncryptionManagementGetMetadataEncryptionKey () - { - ApiResponse localVarResponse = EncryptionManagementGetMetadataEncryptionKeyWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call allows to get Metadata Encryption key - /// - /// Thrown when fails to make API call - /// ApiResponse of string - public ApiResponse< string > EncryptionManagementGetMetadataEncryptionKeyWithHttpInfo () - { - - var localVarPath = "/api/management/Encryption/MetadataEncryption/Key"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("EncryptionManagementGetMetadataEncryptionKey", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call allows to get Metadata Encryption key - /// - /// Thrown when fails to make API call - /// Task of string - public async System.Threading.Tasks.Task EncryptionManagementGetMetadataEncryptionKeyAsync () - { - ApiResponse localVarResponse = await EncryptionManagementGetMetadataEncryptionKeyAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call allows to get Metadata Encryption key - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> EncryptionManagementGetMetadataEncryptionKeyAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Encryption/MetadataEncryption/Key"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("EncryptionManagementGetMetadataEncryptionKey", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); - } - - /// - /// This call allows to configure Metadata Encryption settings - /// - /// Thrown when fails to make API call - /// Metadata Encryption settings - /// - public void EncryptionManagementSetMetadataEncryptionSettings (MetadataEncryptionSettingsDTO settings) - { - EncryptionManagementSetMetadataEncryptionSettingsWithHttpInfo(settings); - } - - /// - /// This call allows to configure Metadata Encryption settings - /// - /// Thrown when fails to make API call - /// Metadata Encryption settings - /// ApiResponse of Object(void) - public ApiResponse EncryptionManagementSetMetadataEncryptionSettingsWithHttpInfo (MetadataEncryptionSettingsDTO settings) - { - // verify the required parameter 'settings' is set - if (settings == null) - throw new ApiException(400, "Missing required parameter 'settings' when calling EncryptionManagementApi->EncryptionManagementSetMetadataEncryptionSettings"); - - var localVarPath = "/api/management/Encryption/MetadataEncryption"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (settings != null && settings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(settings); // http body (model) parameter - } - else - { - localVarPostBody = settings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("EncryptionManagementSetMetadataEncryptionSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows to configure Metadata Encryption settings - /// - /// Thrown when fails to make API call - /// Metadata Encryption settings - /// Task of void - public async System.Threading.Tasks.Task EncryptionManagementSetMetadataEncryptionSettingsAsync (MetadataEncryptionSettingsDTO settings) - { - await EncryptionManagementSetMetadataEncryptionSettingsAsyncWithHttpInfo(settings); - - } - - /// - /// This call allows to configure Metadata Encryption settings - /// - /// Thrown when fails to make API call - /// Metadata Encryption settings - /// Task of ApiResponse - public async System.Threading.Tasks.Task> EncryptionManagementSetMetadataEncryptionSettingsAsyncWithHttpInfo (MetadataEncryptionSettingsDTO settings) - { - // verify the required parameter 'settings' is set - if (settings == null) - throw new ApiException(400, "Missing required parameter 'settings' when calling EncryptionManagementApi->EncryptionManagementSetMetadataEncryptionSettings"); - - var localVarPath = "/api/management/Encryption/MetadataEncryption"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (settings != null && settings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(settings); // http body (model) parameter - } - else - { - localVarPostBody = settings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("EncryptionManagementSetMetadataEncryptionSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows to configure Secure Storage settings - /// - /// Thrown when fails to make API call - /// Secure storage settings - /// - public void EncryptionManagementSetSecureStorageSettings (SecureStorageSettingsDTO settings) - { - EncryptionManagementSetSecureStorageSettingsWithHttpInfo(settings); - } - - /// - /// This call allows to configure Secure Storage settings - /// - /// Thrown when fails to make API call - /// Secure storage settings - /// ApiResponse of Object(void) - public ApiResponse EncryptionManagementSetSecureStorageSettingsWithHttpInfo (SecureStorageSettingsDTO settings) - { - // verify the required parameter 'settings' is set - if (settings == null) - throw new ApiException(400, "Missing required parameter 'settings' when calling EncryptionManagementApi->EncryptionManagementSetSecureStorageSettings"); - - var localVarPath = "/api/management/Encryption/SecureStorage"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (settings != null && settings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(settings); // http body (model) parameter - } - else - { - localVarPostBody = settings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("EncryptionManagementSetSecureStorageSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows to configure Secure Storage settings - /// - /// Thrown when fails to make API call - /// Secure storage settings - /// Task of void - public async System.Threading.Tasks.Task EncryptionManagementSetSecureStorageSettingsAsync (SecureStorageSettingsDTO settings) - { - await EncryptionManagementSetSecureStorageSettingsAsyncWithHttpInfo(settings); - - } - - /// - /// This call allows to configure Secure Storage settings - /// - /// Thrown when fails to make API call - /// Secure storage settings - /// Task of ApiResponse - public async System.Threading.Tasks.Task> EncryptionManagementSetSecureStorageSettingsAsyncWithHttpInfo (SecureStorageSettingsDTO settings) - { - // verify the required parameter 'settings' is set - if (settings == null) - throw new ApiException(400, "Missing required parameter 'settings' when calling EncryptionManagementApi->EncryptionManagementSetSecureStorageSettings"); - - var localVarPath = "/api/management/Encryption/SecureStorage"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (settings != null && settings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(settings); // http body (model) parameter - } - else - { - localVarPostBody = settings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("EncryptionManagementSetSecureStorageSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/ExternalAppsManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/ExternalAppsManagementApi.cs deleted file mode 100644 index 8c658e2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/ExternalAppsManagementApi.cs +++ /dev/null @@ -1,1123 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IExternalAppsManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This method deletes specific external application - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application identifier - /// - void ExternalAppsManagementDeleteExternalApplication (int? id); - - /// - /// This method deletes specific external application - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application identifier - /// ApiResponse of Object(void) - ApiResponse ExternalAppsManagementDeleteExternalApplicationWithHttpInfo (int? id); - /// - /// This method returns specific external application by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application identifier - /// ExternalAppDTO - ExternalAppDTO ExternalAppsManagementGetExternalApplication (int? id); - - /// - /// This method returns specific external application by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application identifier - /// ApiResponse of ExternalAppDTO - ApiResponse ExternalAppsManagementGetExternalApplicationWithHttpInfo (int? id); - /// - /// This method returns all external applications - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<ExternalAppDTO> - List ExternalAppsManagementGetExternalApplications (); - - /// - /// This method returns all external applications - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ExternalAppDTO> - ApiResponse> ExternalAppsManagementGetExternalApplicationsWithHttpInfo (); - /// - /// This method creates specific external application - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application for insert - /// ExternalAppDTO - ExternalAppDTO ExternalAppsManagementInsertExternalApplication (ExternalAppDTO externalApp); - - /// - /// This method creates specific external application - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application for insert - /// ApiResponse of ExternalAppDTO - ApiResponse ExternalAppsManagementInsertExternalApplicationWithHttpInfo (ExternalAppDTO externalApp); - /// - /// This method updates specific external application - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application identifier - /// External application for update - /// ExternalAppDTO - ExternalAppDTO ExternalAppsManagementUpdateExternalApplication (int? id, ExternalAppDTO externalApp); - - /// - /// This method updates specific external application - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application identifier - /// External application for update - /// ApiResponse of ExternalAppDTO - ApiResponse ExternalAppsManagementUpdateExternalApplicationWithHttpInfo (int? id, ExternalAppDTO externalApp); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This method deletes specific external application - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application identifier - /// Task of void - System.Threading.Tasks.Task ExternalAppsManagementDeleteExternalApplicationAsync (int? id); - - /// - /// This method deletes specific external application - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> ExternalAppsManagementDeleteExternalApplicationAsyncWithHttpInfo (int? id); - /// - /// This method returns specific external application by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application identifier - /// Task of ExternalAppDTO - System.Threading.Tasks.Task ExternalAppsManagementGetExternalApplicationAsync (int? id); - - /// - /// This method returns specific external application by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application identifier - /// Task of ApiResponse (ExternalAppDTO) - System.Threading.Tasks.Task> ExternalAppsManagementGetExternalApplicationAsyncWithHttpInfo (int? id); - /// - /// This method returns all external applications - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<ExternalAppDTO> - System.Threading.Tasks.Task> ExternalAppsManagementGetExternalApplicationsAsync (); - - /// - /// This method returns all external applications - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ExternalAppDTO>) - System.Threading.Tasks.Task>> ExternalAppsManagementGetExternalApplicationsAsyncWithHttpInfo (); - /// - /// This method creates specific external application - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application for insert - /// Task of ExternalAppDTO - System.Threading.Tasks.Task ExternalAppsManagementInsertExternalApplicationAsync (ExternalAppDTO externalApp); - - /// - /// This method creates specific external application - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application for insert - /// Task of ApiResponse (ExternalAppDTO) - System.Threading.Tasks.Task> ExternalAppsManagementInsertExternalApplicationAsyncWithHttpInfo (ExternalAppDTO externalApp); - /// - /// This method updates specific external application - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application identifier - /// External application for update - /// Task of ExternalAppDTO - System.Threading.Tasks.Task ExternalAppsManagementUpdateExternalApplicationAsync (int? id, ExternalAppDTO externalApp); - - /// - /// This method updates specific external application - /// - /// - /// - /// - /// Thrown when fails to make API call - /// External application identifier - /// External application for update - /// Task of ApiResponse (ExternalAppDTO) - System.Threading.Tasks.Task> ExternalAppsManagementUpdateExternalApplicationAsyncWithHttpInfo (int? id, ExternalAppDTO externalApp); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ExternalAppsManagementApi : IExternalAppsManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ExternalAppsManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ExternalAppsManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This method deletes specific external application - /// - /// Thrown when fails to make API call - /// External application identifier - /// - public void ExternalAppsManagementDeleteExternalApplication (int? id) - { - ExternalAppsManagementDeleteExternalApplicationWithHttpInfo(id); - } - - /// - /// This method deletes specific external application - /// - /// Thrown when fails to make API call - /// External application identifier - /// ApiResponse of Object(void) - public ApiResponse ExternalAppsManagementDeleteExternalApplicationWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ExternalAppsManagementApi->ExternalAppsManagementDeleteExternalApplication"); - - var localVarPath = "/api/management/ExternalApps/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsManagementDeleteExternalApplication", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method deletes specific external application - /// - /// Thrown when fails to make API call - /// External application identifier - /// Task of void - public async System.Threading.Tasks.Task ExternalAppsManagementDeleteExternalApplicationAsync (int? id) - { - await ExternalAppsManagementDeleteExternalApplicationAsyncWithHttpInfo(id); - - } - - /// - /// This method deletes specific external application - /// - /// Thrown when fails to make API call - /// External application identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ExternalAppsManagementDeleteExternalApplicationAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ExternalAppsManagementApi->ExternalAppsManagementDeleteExternalApplication"); - - var localVarPath = "/api/management/ExternalApps/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsManagementDeleteExternalApplication", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method returns specific external application by id - /// - /// Thrown when fails to make API call - /// External application identifier - /// ExternalAppDTO - public ExternalAppDTO ExternalAppsManagementGetExternalApplication (int? id) - { - ApiResponse localVarResponse = ExternalAppsManagementGetExternalApplicationWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This method returns specific external application by id - /// - /// Thrown when fails to make API call - /// External application identifier - /// ApiResponse of ExternalAppDTO - public ApiResponse< ExternalAppDTO > ExternalAppsManagementGetExternalApplicationWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ExternalAppsManagementApi->ExternalAppsManagementGetExternalApplication"); - - var localVarPath = "/api/management/ExternalApps/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsManagementGetExternalApplication", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ExternalAppDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalAppDTO))); - } - - /// - /// This method returns specific external application by id - /// - /// Thrown when fails to make API call - /// External application identifier - /// Task of ExternalAppDTO - public async System.Threading.Tasks.Task ExternalAppsManagementGetExternalApplicationAsync (int? id) - { - ApiResponse localVarResponse = await ExternalAppsManagementGetExternalApplicationAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This method returns specific external application by id - /// - /// Thrown when fails to make API call - /// External application identifier - /// Task of ApiResponse (ExternalAppDTO) - public async System.Threading.Tasks.Task> ExternalAppsManagementGetExternalApplicationAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ExternalAppsManagementApi->ExternalAppsManagementGetExternalApplication"); - - var localVarPath = "/api/management/ExternalApps/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsManagementGetExternalApplication", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ExternalAppDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalAppDTO))); - } - - /// - /// This method returns all external applications - /// - /// Thrown when fails to make API call - /// List<ExternalAppDTO> - public List ExternalAppsManagementGetExternalApplications () - { - ApiResponse> localVarResponse = ExternalAppsManagementGetExternalApplicationsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This method returns all external applications - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ExternalAppDTO> - public ApiResponse< List > ExternalAppsManagementGetExternalApplicationsWithHttpInfo () - { - - var localVarPath = "/api/management/ExternalApps"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsManagementGetExternalApplications", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns all external applications - /// - /// Thrown when fails to make API call - /// Task of List<ExternalAppDTO> - public async System.Threading.Tasks.Task> ExternalAppsManagementGetExternalApplicationsAsync () - { - ApiResponse> localVarResponse = await ExternalAppsManagementGetExternalApplicationsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This method returns all external applications - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ExternalAppDTO>) - public async System.Threading.Tasks.Task>> ExternalAppsManagementGetExternalApplicationsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/ExternalApps"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsManagementGetExternalApplications", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method creates specific external application - /// - /// Thrown when fails to make API call - /// External application for insert - /// ExternalAppDTO - public ExternalAppDTO ExternalAppsManagementInsertExternalApplication (ExternalAppDTO externalApp) - { - ApiResponse localVarResponse = ExternalAppsManagementInsertExternalApplicationWithHttpInfo(externalApp); - return localVarResponse.Data; - } - - /// - /// This method creates specific external application - /// - /// Thrown when fails to make API call - /// External application for insert - /// ApiResponse of ExternalAppDTO - public ApiResponse< ExternalAppDTO > ExternalAppsManagementInsertExternalApplicationWithHttpInfo (ExternalAppDTO externalApp) - { - // verify the required parameter 'externalApp' is set - if (externalApp == null) - throw new ApiException(400, "Missing required parameter 'externalApp' when calling ExternalAppsManagementApi->ExternalAppsManagementInsertExternalApplication"); - - var localVarPath = "/api/management/ExternalApps"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (externalApp != null && externalApp.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(externalApp); // http body (model) parameter - } - else - { - localVarPostBody = externalApp; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsManagementInsertExternalApplication", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ExternalAppDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalAppDTO))); - } - - /// - /// This method creates specific external application - /// - /// Thrown when fails to make API call - /// External application for insert - /// Task of ExternalAppDTO - public async System.Threading.Tasks.Task ExternalAppsManagementInsertExternalApplicationAsync (ExternalAppDTO externalApp) - { - ApiResponse localVarResponse = await ExternalAppsManagementInsertExternalApplicationAsyncWithHttpInfo(externalApp); - return localVarResponse.Data; - - } - - /// - /// This method creates specific external application - /// - /// Thrown when fails to make API call - /// External application for insert - /// Task of ApiResponse (ExternalAppDTO) - public async System.Threading.Tasks.Task> ExternalAppsManagementInsertExternalApplicationAsyncWithHttpInfo (ExternalAppDTO externalApp) - { - // verify the required parameter 'externalApp' is set - if (externalApp == null) - throw new ApiException(400, "Missing required parameter 'externalApp' when calling ExternalAppsManagementApi->ExternalAppsManagementInsertExternalApplication"); - - var localVarPath = "/api/management/ExternalApps"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (externalApp != null && externalApp.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(externalApp); // http body (model) parameter - } - else - { - localVarPostBody = externalApp; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsManagementInsertExternalApplication", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ExternalAppDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalAppDTO))); - } - - /// - /// This method updates specific external application - /// - /// Thrown when fails to make API call - /// External application identifier - /// External application for update - /// ExternalAppDTO - public ExternalAppDTO ExternalAppsManagementUpdateExternalApplication (int? id, ExternalAppDTO externalApp) - { - ApiResponse localVarResponse = ExternalAppsManagementUpdateExternalApplicationWithHttpInfo(id, externalApp); - return localVarResponse.Data; - } - - /// - /// This method updates specific external application - /// - /// Thrown when fails to make API call - /// External application identifier - /// External application for update - /// ApiResponse of ExternalAppDTO - public ApiResponse< ExternalAppDTO > ExternalAppsManagementUpdateExternalApplicationWithHttpInfo (int? id, ExternalAppDTO externalApp) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ExternalAppsManagementApi->ExternalAppsManagementUpdateExternalApplication"); - // verify the required parameter 'externalApp' is set - if (externalApp == null) - throw new ApiException(400, "Missing required parameter 'externalApp' when calling ExternalAppsManagementApi->ExternalAppsManagementUpdateExternalApplication"); - - var localVarPath = "/api/management/ExternalApps/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (externalApp != null && externalApp.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(externalApp); // http body (model) parameter - } - else - { - localVarPostBody = externalApp; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsManagementUpdateExternalApplication", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ExternalAppDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalAppDTO))); - } - - /// - /// This method updates specific external application - /// - /// Thrown when fails to make API call - /// External application identifier - /// External application for update - /// Task of ExternalAppDTO - public async System.Threading.Tasks.Task ExternalAppsManagementUpdateExternalApplicationAsync (int? id, ExternalAppDTO externalApp) - { - ApiResponse localVarResponse = await ExternalAppsManagementUpdateExternalApplicationAsyncWithHttpInfo(id, externalApp); - return localVarResponse.Data; - - } - - /// - /// This method updates specific external application - /// - /// Thrown when fails to make API call - /// External application identifier - /// External application for update - /// Task of ApiResponse (ExternalAppDTO) - public async System.Threading.Tasks.Task> ExternalAppsManagementUpdateExternalApplicationAsyncWithHttpInfo (int? id, ExternalAppDTO externalApp) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling ExternalAppsManagementApi->ExternalAppsManagementUpdateExternalApplication"); - // verify the required parameter 'externalApp' is set - if (externalApp == null) - throw new ApiException(400, "Missing required parameter 'externalApp' when calling ExternalAppsManagementApi->ExternalAppsManagementUpdateExternalApplication"); - - var localVarPath = "/api/management/ExternalApps/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (externalApp != null && externalApp.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(externalApp); // http body (model) parameter - } - else - { - localVarPostBody = externalApp; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ExternalAppsManagementUpdateExternalApplication", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ExternalAppDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalAppDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/FoldersManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/FoldersManagementApi.cs deleted file mode 100644 index 51ca376..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/FoldersManagementApi.cs +++ /dev/null @@ -1,512 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IFoldersManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This method allows to find folders by their name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The name to search - /// List<FolderDTO> - List FoldersManagementFindByName (string name); - - /// - /// This method allows to find folders by their name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The name to search - /// ApiResponse of List<FolderDTO> - ApiResponse> FoldersManagementFindByNameWithHttpInfo (string name); - /// - /// This method return the folders contained in specified parent folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// List<FolderDTO> - List FoldersManagementGetByParentId (int? parentId); - - /// - /// This method return the folders contained in specified parent folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// ApiResponse of List<FolderDTO> - ApiResponse> FoldersManagementGetByParentIdWithHttpInfo (int? parentId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This method allows to find folders by their name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of List<FolderDTO> - System.Threading.Tasks.Task> FoldersManagementFindByNameAsync (string name); - - /// - /// This method allows to find folders by their name - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of ApiResponse (List<FolderDTO>) - System.Threading.Tasks.Task>> FoldersManagementFindByNameAsyncWithHttpInfo (string name); - /// - /// This method return the folders contained in specified parent folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// Task of List<FolderDTO> - System.Threading.Tasks.Task> FoldersManagementGetByParentIdAsync (int? parentId); - - /// - /// This method return the folders contained in specified parent folder - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// Task of ApiResponse (List<FolderDTO>) - System.Threading.Tasks.Task>> FoldersManagementGetByParentIdAsyncWithHttpInfo (int? parentId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class FoldersManagementApi : IFoldersManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public FoldersManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public FoldersManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This method allows to find folders by their name - /// - /// Thrown when fails to make API call - /// The name to search - /// List<FolderDTO> - public List FoldersManagementFindByName (string name) - { - ApiResponse> localVarResponse = FoldersManagementFindByNameWithHttpInfo(name); - return localVarResponse.Data; - } - - /// - /// This method allows to find folders by their name - /// - /// Thrown when fails to make API call - /// The name to search - /// ApiResponse of List<FolderDTO> - public ApiResponse< List > FoldersManagementFindByNameWithHttpInfo (string name) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersManagementApi->FoldersManagementFindByName"); - - var localVarPath = "/api/management/Folders/find"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersManagementFindByName", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method allows to find folders by their name - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of List<FolderDTO> - public async System.Threading.Tasks.Task> FoldersManagementFindByNameAsync (string name) - { - ApiResponse> localVarResponse = await FoldersManagementFindByNameAsyncWithHttpInfo(name); - return localVarResponse.Data; - - } - - /// - /// This method allows to find folders by their name - /// - /// Thrown when fails to make API call - /// The name to search - /// Task of ApiResponse (List<FolderDTO>) - public async System.Threading.Tasks.Task>> FoldersManagementFindByNameAsyncWithHttpInfo (string name) - { - // verify the required parameter 'name' is set - if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling FoldersManagementApi->FoldersManagementFindByName"); - - var localVarPath = "/api/management/Folders/find"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersManagementFindByName", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method return the folders contained in specified parent folder - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// List<FolderDTO> - public List FoldersManagementGetByParentId (int? parentId) - { - ApiResponse> localVarResponse = FoldersManagementGetByParentIdWithHttpInfo(parentId); - return localVarResponse.Data; - } - - /// - /// This method return the folders contained in specified parent folder - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// ApiResponse of List<FolderDTO> - public ApiResponse< List > FoldersManagementGetByParentIdWithHttpInfo (int? parentId) - { - // verify the required parameter 'parentId' is set - if (parentId == null) - throw new ApiException(400, "Missing required parameter 'parentId' when calling FoldersManagementApi->FoldersManagementGetByParentId"); - - var localVarPath = "/api/management/Folders/parent/{parentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parentId != null) localVarPathParams.Add("parentId", this.Configuration.ApiClient.ParameterToString(parentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersManagementGetByParentId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method return the folders contained in specified parent folder - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// Task of List<FolderDTO> - public async System.Threading.Tasks.Task> FoldersManagementGetByParentIdAsync (int? parentId) - { - ApiResponse> localVarResponse = await FoldersManagementGetByParentIdAsyncWithHttpInfo(parentId); - return localVarResponse.Data; - - } - - /// - /// This method return the folders contained in specified parent folder - /// - /// Thrown when fails to make API call - /// The identifier of the parent folder - /// Task of ApiResponse (List<FolderDTO>) - public async System.Threading.Tasks.Task>> FoldersManagementGetByParentIdAsyncWithHttpInfo (int? parentId) - { - // verify the required parameter 'parentId' is set - if (parentId == null) - throw new ApiException(400, "Missing required parameter 'parentId' when calling FoldersManagementApi->FoldersManagementGetByParentId"); - - var localVarPath = "/api/management/Folders/parent/{parentId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parentId != null) localVarPathParams.Add("parentId", this.Configuration.ApiClient.ParameterToString(parentId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FoldersManagementGetByParentId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/FormulaManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/FormulaManagementApi.cs deleted file mode 100644 index 6e64111..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/FormulaManagementApi.cs +++ /dev/null @@ -1,910 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IFormulaManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call allows to test formula - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// FormulaTestResultDTO - FormulaTestResultDTO FormulaManagementFormulaTest (FormulaTestDTO formulaTest); - - /// - /// This call allows to test formula - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of FormulaTestResultDTO - ApiResponse FormulaManagementFormulaTestWithHttpInfo (FormulaTestDTO formulaTest); - /// - /// This call returns standard regex list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<KeyValueDTO> - List FormulaManagementGetDefaultRegex (); - - /// - /// This call returns standard regex list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<KeyValueDTO> - ApiResponse> FormulaManagementGetDefaultRegexWithHttpInfo (); - /// - /// This call returns formula list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<string> - List FormulaManagementGetFormulaList (); - - /// - /// This call returns formula list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<string> - ApiResponse> FormulaManagementGetFormulaListWithHttpInfo (); - /// - /// This call allows to test regex - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// bool? - bool? FormulaManagementRegexTest (RegexTestDTO regexTest); - - /// - /// This call allows to test regex - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of bool? - ApiResponse FormulaManagementRegexTestWithHttpInfo (RegexTestDTO regexTest); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call allows to test formula - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of FormulaTestResultDTO - System.Threading.Tasks.Task FormulaManagementFormulaTestAsync (FormulaTestDTO formulaTest); - - /// - /// This call allows to test formula - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (FormulaTestResultDTO) - System.Threading.Tasks.Task> FormulaManagementFormulaTestAsyncWithHttpInfo (FormulaTestDTO formulaTest); - /// - /// This call returns standard regex list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<KeyValueDTO> - System.Threading.Tasks.Task> FormulaManagementGetDefaultRegexAsync (); - - /// - /// This call returns standard regex list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<KeyValueDTO>) - System.Threading.Tasks.Task>> FormulaManagementGetDefaultRegexAsyncWithHttpInfo (); - /// - /// This call returns formula list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<string> - System.Threading.Tasks.Task> FormulaManagementGetFormulaListAsync (); - - /// - /// This call returns formula list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> FormulaManagementGetFormulaListAsyncWithHttpInfo (); - /// - /// This call allows to test regex - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of bool? - System.Threading.Tasks.Task FormulaManagementRegexTestAsync (RegexTestDTO regexTest); - - /// - /// This call allows to test regex - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> FormulaManagementRegexTestAsyncWithHttpInfo (RegexTestDTO regexTest); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class FormulaManagementApi : IFormulaManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public FormulaManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public FormulaManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call allows to test formula - /// - /// Thrown when fails to make API call - /// - /// FormulaTestResultDTO - public FormulaTestResultDTO FormulaManagementFormulaTest (FormulaTestDTO formulaTest) - { - ApiResponse localVarResponse = FormulaManagementFormulaTestWithHttpInfo(formulaTest); - return localVarResponse.Data; - } - - /// - /// This call allows to test formula - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of FormulaTestResultDTO - public ApiResponse< FormulaTestResultDTO > FormulaManagementFormulaTestWithHttpInfo (FormulaTestDTO formulaTest) - { - // verify the required parameter 'formulaTest' is set - if (formulaTest == null) - throw new ApiException(400, "Missing required parameter 'formulaTest' when calling FormulaManagementApi->FormulaManagementFormulaTest"); - - var localVarPath = "/api/management/Formula/Formula/Test"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (formulaTest != null && formulaTest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(formulaTest); // http body (model) parameter - } - else - { - localVarPostBody = formulaTest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FormulaManagementFormulaTest", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FormulaTestResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FormulaTestResultDTO))); - } - - /// - /// This call allows to test formula - /// - /// Thrown when fails to make API call - /// - /// Task of FormulaTestResultDTO - public async System.Threading.Tasks.Task FormulaManagementFormulaTestAsync (FormulaTestDTO formulaTest) - { - ApiResponse localVarResponse = await FormulaManagementFormulaTestAsyncWithHttpInfo(formulaTest); - return localVarResponse.Data; - - } - - /// - /// This call allows to test formula - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (FormulaTestResultDTO) - public async System.Threading.Tasks.Task> FormulaManagementFormulaTestAsyncWithHttpInfo (FormulaTestDTO formulaTest) - { - // verify the required parameter 'formulaTest' is set - if (formulaTest == null) - throw new ApiException(400, "Missing required parameter 'formulaTest' when calling FormulaManagementApi->FormulaManagementFormulaTest"); - - var localVarPath = "/api/management/Formula/Formula/Test"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (formulaTest != null && formulaTest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(formulaTest); // http body (model) parameter - } - else - { - localVarPostBody = formulaTest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FormulaManagementFormulaTest", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (FormulaTestResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FormulaTestResultDTO))); - } - - /// - /// This call returns standard regex list - /// - /// Thrown when fails to make API call - /// List<KeyValueDTO> - public List FormulaManagementGetDefaultRegex () - { - ApiResponse> localVarResponse = FormulaManagementGetDefaultRegexWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns standard regex list - /// - /// Thrown when fails to make API call - /// ApiResponse of List<KeyValueDTO> - public ApiResponse< List > FormulaManagementGetDefaultRegexWithHttpInfo () - { - - var localVarPath = "/api/management/Formula/Regex/Defaults"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FormulaManagementGetDefaultRegex", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns standard regex list - /// - /// Thrown when fails to make API call - /// Task of List<KeyValueDTO> - public async System.Threading.Tasks.Task> FormulaManagementGetDefaultRegexAsync () - { - ApiResponse> localVarResponse = await FormulaManagementGetDefaultRegexAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns standard regex list - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<KeyValueDTO>) - public async System.Threading.Tasks.Task>> FormulaManagementGetDefaultRegexAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Formula/Regex/Defaults"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FormulaManagementGetDefaultRegex", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns formula list - /// - /// Thrown when fails to make API call - /// List<string> - public List FormulaManagementGetFormulaList () - { - ApiResponse> localVarResponse = FormulaManagementGetFormulaListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns formula list - /// - /// Thrown when fails to make API call - /// ApiResponse of List<string> - public ApiResponse< List > FormulaManagementGetFormulaListWithHttpInfo () - { - - var localVarPath = "/api/management/Formula/Formula/List"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FormulaManagementGetFormulaList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns formula list - /// - /// Thrown when fails to make API call - /// Task of List<string> - public async System.Threading.Tasks.Task> FormulaManagementGetFormulaListAsync () - { - ApiResponse> localVarResponse = await FormulaManagementGetFormulaListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns formula list - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> FormulaManagementGetFormulaListAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Formula/Formula/List"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FormulaManagementGetFormulaList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows to test regex - /// - /// Thrown when fails to make API call - /// - /// bool? - public bool? FormulaManagementRegexTest (RegexTestDTO regexTest) - { - ApiResponse localVarResponse = FormulaManagementRegexTestWithHttpInfo(regexTest); - return localVarResponse.Data; - } - - /// - /// This call allows to test regex - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of bool? - public ApiResponse< bool? > FormulaManagementRegexTestWithHttpInfo (RegexTestDTO regexTest) - { - // verify the required parameter 'regexTest' is set - if (regexTest == null) - throw new ApiException(400, "Missing required parameter 'regexTest' when calling FormulaManagementApi->FormulaManagementRegexTest"); - - var localVarPath = "/api/management/Formula/Regex/Test"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (regexTest != null && regexTest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(regexTest); // http body (model) parameter - } - else - { - localVarPostBody = regexTest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FormulaManagementRegexTest", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call allows to test regex - /// - /// Thrown when fails to make API call - /// - /// Task of bool? - public async System.Threading.Tasks.Task FormulaManagementRegexTestAsync (RegexTestDTO regexTest) - { - ApiResponse localVarResponse = await FormulaManagementRegexTestAsyncWithHttpInfo(regexTest); - return localVarResponse.Data; - - } - - /// - /// This call allows to test regex - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> FormulaManagementRegexTestAsyncWithHttpInfo (RegexTestDTO regexTest) - { - // verify the required parameter 'regexTest' is set - if (regexTest == null) - throw new ApiException(400, "Missing required parameter 'regexTest' when calling FormulaManagementApi->FormulaManagementRegexTest"); - - var localVarPath = "/api/management/Formula/Regex/Test"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (regexTest != null && regexTest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(regexTest); // http body (model) parameter - } - else - { - localVarPostBody = regexTest; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("FormulaManagementRegexTest", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/GroupsManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/GroupsManagementApi.cs deleted file mode 100644 index 173230f..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/GroupsManagementApi.cs +++ /dev/null @@ -1,954 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IGroupsManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call gets the authorizations of users belonging to a group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// GroupAuthorizationsDTO - GroupAuthorizationsDTO GroupsManagementGetGroupAuthorizations (int? groupId); - - /// - /// This call gets the authorizations of users belonging to a group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// ApiResponse of GroupAuthorizationsDTO - ApiResponse GroupsManagementGetGroupAuthorizationsWithHttpInfo (int? groupId); - /// - /// This call gets all users by group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// List<UserSimpleDTO> - List GroupsManagementGetUserGroups (int? groupId); - - /// - /// This call gets all users by group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// ApiResponse of List<UserSimpleDTO> - ApiResponse> GroupsManagementGetUserGroupsWithHttpInfo (int? groupId); - /// - /// This call updates the authorizations of users belonging to a group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Authorizations for update - /// - void GroupsManagementSetGroupAuthorizations (int? groupId, GroupAuthorizationsDTO authorizations); - - /// - /// This call updates the authorizations of users belonging to a group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Authorizations for update - /// ApiResponse of Object(void) - ApiResponse GroupsManagementSetGroupAuthorizationsWithHttpInfo (int? groupId, GroupAuthorizationsDTO authorizations); - /// - /// This call updates group users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// User list for update - /// - void GroupsManagementSetUserGroups (int? groupId, List users); - - /// - /// This call updates group users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// User list for update - /// ApiResponse of Object(void) - ApiResponse GroupsManagementSetUserGroupsWithHttpInfo (int? groupId, List users); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call gets the authorizations of users belonging to a group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Task of GroupAuthorizationsDTO - System.Threading.Tasks.Task GroupsManagementGetGroupAuthorizationsAsync (int? groupId); - - /// - /// This call gets the authorizations of users belonging to a group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Task of ApiResponse (GroupAuthorizationsDTO) - System.Threading.Tasks.Task> GroupsManagementGetGroupAuthorizationsAsyncWithHttpInfo (int? groupId); - /// - /// This call gets all users by group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Task of List<UserSimpleDTO> - System.Threading.Tasks.Task> GroupsManagementGetUserGroupsAsync (int? groupId); - - /// - /// This call gets all users by group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Task of ApiResponse (List<UserSimpleDTO>) - System.Threading.Tasks.Task>> GroupsManagementGetUserGroupsAsyncWithHttpInfo (int? groupId); - /// - /// This call updates the authorizations of users belonging to a group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Authorizations for update - /// Task of void - System.Threading.Tasks.Task GroupsManagementSetGroupAuthorizationsAsync (int? groupId, GroupAuthorizationsDTO authorizations); - - /// - /// This call updates the authorizations of users belonging to a group - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Authorizations for update - /// Task of ApiResponse - System.Threading.Tasks.Task> GroupsManagementSetGroupAuthorizationsAsyncWithHttpInfo (int? groupId, GroupAuthorizationsDTO authorizations); - /// - /// This call updates group users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// User list for update - /// Task of void - System.Threading.Tasks.Task GroupsManagementSetUserGroupsAsync (int? groupId, List users); - - /// - /// This call updates group users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Group Identifier - /// User list for update - /// Task of ApiResponse - System.Threading.Tasks.Task> GroupsManagementSetUserGroupsAsyncWithHttpInfo (int? groupId, List users); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class GroupsManagementApi : IGroupsManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public GroupsManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public GroupsManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call gets the authorizations of users belonging to a group - /// - /// Thrown when fails to make API call - /// Group Identifier - /// GroupAuthorizationsDTO - public GroupAuthorizationsDTO GroupsManagementGetGroupAuthorizations (int? groupId) - { - ApiResponse localVarResponse = GroupsManagementGetGroupAuthorizationsWithHttpInfo(groupId); - return localVarResponse.Data; - } - - /// - /// This call gets the authorizations of users belonging to a group - /// - /// Thrown when fails to make API call - /// Group Identifier - /// ApiResponse of GroupAuthorizationsDTO - public ApiResponse< GroupAuthorizationsDTO > GroupsManagementGetGroupAuthorizationsWithHttpInfo (int? groupId) - { - // verify the required parameter 'groupId' is set - if (groupId == null) - throw new ApiException(400, "Missing required parameter 'groupId' when calling GroupsManagementApi->GroupsManagementGetGroupAuthorizations"); - - var localVarPath = "/api/management/Groups/{groupId}/Authorizations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (groupId != null) localVarPathParams.Add("groupId", this.Configuration.ApiClient.ParameterToString(groupId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsManagementGetGroupAuthorizations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (GroupAuthorizationsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(GroupAuthorizationsDTO))); - } - - /// - /// This call gets the authorizations of users belonging to a group - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Task of GroupAuthorizationsDTO - public async System.Threading.Tasks.Task GroupsManagementGetGroupAuthorizationsAsync (int? groupId) - { - ApiResponse localVarResponse = await GroupsManagementGetGroupAuthorizationsAsyncWithHttpInfo(groupId); - return localVarResponse.Data; - - } - - /// - /// This call gets the authorizations of users belonging to a group - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Task of ApiResponse (GroupAuthorizationsDTO) - public async System.Threading.Tasks.Task> GroupsManagementGetGroupAuthorizationsAsyncWithHttpInfo (int? groupId) - { - // verify the required parameter 'groupId' is set - if (groupId == null) - throw new ApiException(400, "Missing required parameter 'groupId' when calling GroupsManagementApi->GroupsManagementGetGroupAuthorizations"); - - var localVarPath = "/api/management/Groups/{groupId}/Authorizations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (groupId != null) localVarPathParams.Add("groupId", this.Configuration.ApiClient.ParameterToString(groupId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsManagementGetGroupAuthorizations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (GroupAuthorizationsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(GroupAuthorizationsDTO))); - } - - /// - /// This call gets all users by group - /// - /// Thrown when fails to make API call - /// Group Identifier - /// List<UserSimpleDTO> - public List GroupsManagementGetUserGroups (int? groupId) - { - ApiResponse> localVarResponse = GroupsManagementGetUserGroupsWithHttpInfo(groupId); - return localVarResponse.Data; - } - - /// - /// This call gets all users by group - /// - /// Thrown when fails to make API call - /// Group Identifier - /// ApiResponse of List<UserSimpleDTO> - public ApiResponse< List > GroupsManagementGetUserGroupsWithHttpInfo (int? groupId) - { - // verify the required parameter 'groupId' is set - if (groupId == null) - throw new ApiException(400, "Missing required parameter 'groupId' when calling GroupsManagementApi->GroupsManagementGetUserGroups"); - - var localVarPath = "/api/management/Groups/{groupId}/Users"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (groupId != null) localVarPathParams.Add("groupId", this.Configuration.ApiClient.ParameterToString(groupId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsManagementGetUserGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets all users by group - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Task of List<UserSimpleDTO> - public async System.Threading.Tasks.Task> GroupsManagementGetUserGroupsAsync (int? groupId) - { - ApiResponse> localVarResponse = await GroupsManagementGetUserGroupsAsyncWithHttpInfo(groupId); - return localVarResponse.Data; - - } - - /// - /// This call gets all users by group - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Task of ApiResponse (List<UserSimpleDTO>) - public async System.Threading.Tasks.Task>> GroupsManagementGetUserGroupsAsyncWithHttpInfo (int? groupId) - { - // verify the required parameter 'groupId' is set - if (groupId == null) - throw new ApiException(400, "Missing required parameter 'groupId' when calling GroupsManagementApi->GroupsManagementGetUserGroups"); - - var localVarPath = "/api/management/Groups/{groupId}/Users"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (groupId != null) localVarPathParams.Add("groupId", this.Configuration.ApiClient.ParameterToString(groupId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsManagementGetUserGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call updates the authorizations of users belonging to a group - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Authorizations for update - /// - public void GroupsManagementSetGroupAuthorizations (int? groupId, GroupAuthorizationsDTO authorizations) - { - GroupsManagementSetGroupAuthorizationsWithHttpInfo(groupId, authorizations); - } - - /// - /// This call updates the authorizations of users belonging to a group - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Authorizations for update - /// ApiResponse of Object(void) - public ApiResponse GroupsManagementSetGroupAuthorizationsWithHttpInfo (int? groupId, GroupAuthorizationsDTO authorizations) - { - // verify the required parameter 'groupId' is set - if (groupId == null) - throw new ApiException(400, "Missing required parameter 'groupId' when calling GroupsManagementApi->GroupsManagementSetGroupAuthorizations"); - // verify the required parameter 'authorizations' is set - if (authorizations == null) - throw new ApiException(400, "Missing required parameter 'authorizations' when calling GroupsManagementApi->GroupsManagementSetGroupAuthorizations"); - - var localVarPath = "/api/management/Groups/{groupId}/Authorizations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (groupId != null) localVarPathParams.Add("groupId", this.Configuration.ApiClient.ParameterToString(groupId)); // path parameter - if (authorizations != null && authorizations.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(authorizations); // http body (model) parameter - } - else - { - localVarPostBody = authorizations; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsManagementSetGroupAuthorizations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates the authorizations of users belonging to a group - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Authorizations for update - /// Task of void - public async System.Threading.Tasks.Task GroupsManagementSetGroupAuthorizationsAsync (int? groupId, GroupAuthorizationsDTO authorizations) - { - await GroupsManagementSetGroupAuthorizationsAsyncWithHttpInfo(groupId, authorizations); - - } - - /// - /// This call updates the authorizations of users belonging to a group - /// - /// Thrown when fails to make API call - /// Group Identifier - /// Authorizations for update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> GroupsManagementSetGroupAuthorizationsAsyncWithHttpInfo (int? groupId, GroupAuthorizationsDTO authorizations) - { - // verify the required parameter 'groupId' is set - if (groupId == null) - throw new ApiException(400, "Missing required parameter 'groupId' when calling GroupsManagementApi->GroupsManagementSetGroupAuthorizations"); - // verify the required parameter 'authorizations' is set - if (authorizations == null) - throw new ApiException(400, "Missing required parameter 'authorizations' when calling GroupsManagementApi->GroupsManagementSetGroupAuthorizations"); - - var localVarPath = "/api/management/Groups/{groupId}/Authorizations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (groupId != null) localVarPathParams.Add("groupId", this.Configuration.ApiClient.ParameterToString(groupId)); // path parameter - if (authorizations != null && authorizations.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(authorizations); // http body (model) parameter - } - else - { - localVarPostBody = authorizations; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsManagementSetGroupAuthorizations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates group users - /// - /// Thrown when fails to make API call - /// Group Identifier - /// User list for update - /// - public void GroupsManagementSetUserGroups (int? groupId, List users) - { - GroupsManagementSetUserGroupsWithHttpInfo(groupId, users); - } - - /// - /// This call updates group users - /// - /// Thrown when fails to make API call - /// Group Identifier - /// User list for update - /// ApiResponse of Object(void) - public ApiResponse GroupsManagementSetUserGroupsWithHttpInfo (int? groupId, List users) - { - // verify the required parameter 'groupId' is set - if (groupId == null) - throw new ApiException(400, "Missing required parameter 'groupId' when calling GroupsManagementApi->GroupsManagementSetUserGroups"); - // verify the required parameter 'users' is set - if (users == null) - throw new ApiException(400, "Missing required parameter 'users' when calling GroupsManagementApi->GroupsManagementSetUserGroups"); - - var localVarPath = "/api/management/Groups/{groupId}/Users"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (groupId != null) localVarPathParams.Add("groupId", this.Configuration.ApiClient.ParameterToString(groupId)); // path parameter - if (users != null && users.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(users); // http body (model) parameter - } - else - { - localVarPostBody = users; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsManagementSetUserGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates group users - /// - /// Thrown when fails to make API call - /// Group Identifier - /// User list for update - /// Task of void - public async System.Threading.Tasks.Task GroupsManagementSetUserGroupsAsync (int? groupId, List users) - { - await GroupsManagementSetUserGroupsAsyncWithHttpInfo(groupId, users); - - } - - /// - /// This call updates group users - /// - /// Thrown when fails to make API call - /// Group Identifier - /// User list for update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> GroupsManagementSetUserGroupsAsyncWithHttpInfo (int? groupId, List users) - { - // verify the required parameter 'groupId' is set - if (groupId == null) - throw new ApiException(400, "Missing required parameter 'groupId' when calling GroupsManagementApi->GroupsManagementSetUserGroups"); - // verify the required parameter 'users' is set - if (users == null) - throw new ApiException(400, "Missing required parameter 'users' when calling GroupsManagementApi->GroupsManagementSetUserGroups"); - - var localVarPath = "/api/management/Groups/{groupId}/Users"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (groupId != null) localVarPathParams.Add("groupId", this.Configuration.ApiClient.ParameterToString(groupId)); // path parameter - if (users != null && users.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(users); // http body (model) parameter - } - else - { - localVarPostBody = users; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("GroupsManagementSetUserGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/IxCeServicesManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/IxCeServicesManagementApi.cs deleted file mode 100644 index b6eea1c..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/IxCeServicesManagementApi.cs +++ /dev/null @@ -1,4313 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IIxCeServicesManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes specific business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// - void IxCeServicesManagementDeleteBusinessUnitSettings (int? id); - - /// - /// This call deletes specific business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// ApiResponse of Object(void) - ApiResponse IxCeServicesManagementDeleteBusinessUnitSettingsWithHttpInfo (int? id); - /// - /// This call deletes specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// - void IxCeServicesManagementDeleteNotificationSettings (int? id); - - /// - /// This call deletes specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// ApiResponse of Object(void) - ApiResponse IxCeServicesManagementDeleteNotificationSettingsWithHttpInfo (int? id); - /// - /// This call deletes specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// - void IxCeServicesManagementDeleteSendingSettings (int? id); - - /// - /// This call deletes specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of Object(void) - ApiResponse IxCeServicesManagementDeleteSendingSettingsWithHttpInfo (int? id); - /// - /// This call gets specific business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// IxCeBusinessUnitSettingsDTO - IxCeBusinessUnitSettingsDTO IxCeServicesManagementGetBusinessUnitSettingsById (int? id); - - /// - /// This call gets specific business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// ApiResponse of IxCeBusinessUnitSettingsDTO - ApiResponse IxCeServicesManagementGetBusinessUnitSettingsByIdWithHttpInfo (int? id); - /// - /// This call gets business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<IxCeBusinessUnitSettingsDTO> - List IxCeServicesManagementGetBusinessUnitsSettings (); - - /// - /// This call gets business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<IxCeBusinessUnitSettingsDTO> - ApiResponse> IxCeServicesManagementGetBusinessUnitsSettingsWithHttpInfo (); - /// - /// This call gets all notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<IxCeNotificationSettingsDTO> - List IxCeServicesManagementGetNotificationSettings (); - - /// - /// This call gets all notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<IxCeNotificationSettingsDTO> - ApiResponse> IxCeServicesManagementGetNotificationSettingsWithHttpInfo (); - /// - /// This call gets specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// IxCeNotificationSettingsDTO - IxCeNotificationSettingsDTO IxCeServicesManagementGetNotificationSettingsById (int? id); - - /// - /// This call gets specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// ApiResponse of IxCeNotificationSettingsDTO - ApiResponse IxCeServicesManagementGetNotificationSettingsByIdWithHttpInfo (int? id); - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// bool? - bool? IxCeServicesManagementGetSendWorkflowDocumentsOption (); - - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - ApiResponse IxCeServicesManagementGetSendWorkflowDocumentsOptionWithHttpInfo (); - /// - /// This call gets all sending settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business Unit code - /// List<IxCeSendingSettingsDTO> - List IxCeServicesManagementGetSendingSettings (string businessUnitCode); - - /// - /// This call gets all sending settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business Unit code - /// ApiResponse of List<IxCeSendingSettingsDTO> - ApiResponse> IxCeServicesManagementGetSendingSettingsWithHttpInfo (string businessUnitCode); - /// - /// This call gets specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// IxCeSendingSettingsDTO - IxCeSendingSettingsDTO IxCeServicesManagementGetSendingSettingsById (int? id); - - /// - /// This call gets specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of IxCeSendingSettingsDTO - ApiResponse IxCeServicesManagementGetSendingSettingsByIdWithHttpInfo (int? id); - /// - /// This call gets specific settings details for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// IxCeSendingSettingsDetailDTO - IxCeSendingSettingsDetailDTO IxCeServicesManagementGetSendingSettingsDetails (int? id); - - /// - /// This call gets specific settings details for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of IxCeSendingSettingsDetailDTO - ApiResponse IxCeServicesManagementGetSendingSettingsDetailsWithHttpInfo (int? id); - /// - /// This call inserts business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// IxCeBusinessUnitSettingsDTO - IxCeBusinessUnitSettingsDTO IxCeServicesManagementInsertBusinessUnitSettings (IxCeBusinessUnitSettingsDTO businessUnitSettings); - - /// - /// This call inserts business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// ApiResponse of IxCeBusinessUnitSettingsDTO - ApiResponse IxCeServicesManagementInsertBusinessUnitSettingsWithHttpInfo (IxCeBusinessUnitSettingsDTO businessUnitSettings); - /// - /// This call inserts specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// IxCeNotificationSettingsDTO - IxCeNotificationSettingsDTO IxCeServicesManagementInsertNotificationSettings (IxCeNotificationSettingsDTO notificationSettings); - - /// - /// This call inserts specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// ApiResponse of IxCeNotificationSettingsDTO - ApiResponse IxCeServicesManagementInsertNotificationSettingsWithHttpInfo (IxCeNotificationSettingsDTO notificationSettings); - /// - /// This call inserts specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// IxCeSendingSettingsDTO - IxCeSendingSettingsDTO IxCeServicesManagementInsertSendingSettings (IxCeSendingSettingsDTO sendingSettings); - - /// - /// This call inserts specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// ApiResponse of IxCeSendingSettingsDTO - ApiResponse IxCeServicesManagementInsertSendingSettingsWithHttpInfo (IxCeSendingSettingsDTO sendingSettings); - /// - /// This call allows to clone sending settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// IxCeCloneSendingSettingsByBusinessUnitResponseDTO - IxCeCloneSendingSettingsByBusinessUnitResponseDTO IxCeServicesManagementIxCeCloneSendingSettingsByBusinessUnitQueue (IxCeCloneOptionsByBusinessUnitDTO options); - - /// - /// This call allows to clone sending settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// ApiResponse of IxCeCloneSendingSettingsByBusinessUnitResponseDTO - ApiResponse IxCeServicesManagementIxCeCloneSendingSettingsByBusinessUnitQueueWithHttpInfo (IxCeCloneOptionsByBusinessUnitDTO options); - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option value - /// - void IxCeServicesManagementSetSendWorkflowDocumentsOption (bool? optionValue); - - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option value - /// ApiResponse of Object(void) - ApiResponse IxCeServicesManagementSetSendWorkflowDocumentsOptionWithHttpInfo (bool? optionValue); - /// - /// This call inserts specific settings details for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// - void IxCeServicesManagementSetSendingSettingsDetails (int? id, IxCeSendingSettingsDetailDTO sendingSettingsDetails); - - /// - /// This call inserts specific settings details for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// ApiResponse of Object(void) - ApiResponse IxCeServicesManagementSetSendingSettingsDetailsWithHttpInfo (int? id, IxCeSendingSettingsDetailDTO sendingSettingsDetails); - /// - /// This method allows sort settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group sort options - /// - void IxCeServicesManagementSortFieldGroups (List options); - - /// - /// This method allows sort settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group sort options - /// ApiResponse of Object(void) - ApiResponse IxCeServicesManagementSortFieldGroupsWithHttpInfo (List options); - /// - /// This call updates business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// IxCeBusinessUnitSettingsDTO - IxCeBusinessUnitSettingsDTO IxCeServicesManagementUpdateBusinessUnitSettings (int? id, IxCeBusinessUnitSettingsDTO businessUnitSettings); - - /// - /// This call updates business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// ApiResponse of IxCeBusinessUnitSettingsDTO - ApiResponse IxCeServicesManagementUpdateBusinessUnitSettingsWithHttpInfo (int? id, IxCeBusinessUnitSettingsDTO businessUnitSettings); - /// - /// This call updates specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// IxCeNotificationSettingsDTO - IxCeNotificationSettingsDTO IxCeServicesManagementUpdateNotificationSettings (int? id, IxCeNotificationSettingsDTO notificationSettings); - - /// - /// This call updates specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// ApiResponse of IxCeNotificationSettingsDTO - ApiResponse IxCeServicesManagementUpdateNotificationSettingsWithHttpInfo (int? id, IxCeNotificationSettingsDTO notificationSettings); - /// - /// This call updates specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// IxCeSendingSettingsDTO - IxCeSendingSettingsDTO IxCeServicesManagementUpdateSendingSettings (int? id, IxCeSendingSettingsDTO sendingSettings); - - /// - /// This call updates specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// ApiResponse of IxCeSendingSettingsDTO - ApiResponse IxCeServicesManagementUpdateSendingSettingsWithHttpInfo (int? id, IxCeSendingSettingsDTO sendingSettings); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes specific business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of void - System.Threading.Tasks.Task IxCeServicesManagementDeleteBusinessUnitSettingsAsync (int? id); - - /// - /// This call deletes specific business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> IxCeServicesManagementDeleteBusinessUnitSettingsAsyncWithHttpInfo (int? id); - /// - /// This call deletes specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of void - System.Threading.Tasks.Task IxCeServicesManagementDeleteNotificationSettingsAsync (int? id); - - /// - /// This call deletes specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> IxCeServicesManagementDeleteNotificationSettingsAsyncWithHttpInfo (int? id); - /// - /// This call deletes specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of void - System.Threading.Tasks.Task IxCeServicesManagementDeleteSendingSettingsAsync (int? id); - - /// - /// This call deletes specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> IxCeServicesManagementDeleteSendingSettingsAsyncWithHttpInfo (int? id); - /// - /// This call gets specific business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of IxCeBusinessUnitSettingsDTO - System.Threading.Tasks.Task IxCeServicesManagementGetBusinessUnitSettingsByIdAsync (int? id); - - /// - /// This call gets specific business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of ApiResponse (IxCeBusinessUnitSettingsDTO) - System.Threading.Tasks.Task> IxCeServicesManagementGetBusinessUnitSettingsByIdAsyncWithHttpInfo (int? id); - /// - /// This call gets business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<IxCeBusinessUnitSettingsDTO> - System.Threading.Tasks.Task> IxCeServicesManagementGetBusinessUnitsSettingsAsync (); - - /// - /// This call gets business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<IxCeBusinessUnitSettingsDTO>) - System.Threading.Tasks.Task>> IxCeServicesManagementGetBusinessUnitsSettingsAsyncWithHttpInfo (); - /// - /// This call gets all notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<IxCeNotificationSettingsDTO> - System.Threading.Tasks.Task> IxCeServicesManagementGetNotificationSettingsAsync (); - - /// - /// This call gets all notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<IxCeNotificationSettingsDTO>) - System.Threading.Tasks.Task>> IxCeServicesManagementGetNotificationSettingsAsyncWithHttpInfo (); - /// - /// This call gets specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of IxCeNotificationSettingsDTO - System.Threading.Tasks.Task IxCeServicesManagementGetNotificationSettingsByIdAsync (int? id); - - /// - /// This call gets specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of ApiResponse (IxCeNotificationSettingsDTO) - System.Threading.Tasks.Task> IxCeServicesManagementGetNotificationSettingsByIdAsyncWithHttpInfo (int? id); - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of bool? - System.Threading.Tasks.Task IxCeServicesManagementGetSendWorkflowDocumentsOptionAsync (); - - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> IxCeServicesManagementGetSendWorkflowDocumentsOptionAsyncWithHttpInfo (); - /// - /// This call gets all sending settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business Unit code - /// Task of List<IxCeSendingSettingsDTO> - System.Threading.Tasks.Task> IxCeServicesManagementGetSendingSettingsAsync (string businessUnitCode); - - /// - /// This call gets all sending settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business Unit code - /// Task of ApiResponse (List<IxCeSendingSettingsDTO>) - System.Threading.Tasks.Task>> IxCeServicesManagementGetSendingSettingsAsyncWithHttpInfo (string businessUnitCode); - /// - /// This call gets specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of IxCeSendingSettingsDTO - System.Threading.Tasks.Task IxCeServicesManagementGetSendingSettingsByIdAsync (int? id); - - /// - /// This call gets specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse (IxCeSendingSettingsDTO) - System.Threading.Tasks.Task> IxCeServicesManagementGetSendingSettingsByIdAsyncWithHttpInfo (int? id); - /// - /// This call gets specific settings details for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of IxCeSendingSettingsDetailDTO - System.Threading.Tasks.Task IxCeServicesManagementGetSendingSettingsDetailsAsync (int? id); - - /// - /// This call gets specific settings details for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse (IxCeSendingSettingsDetailDTO) - System.Threading.Tasks.Task> IxCeServicesManagementGetSendingSettingsDetailsAsyncWithHttpInfo (int? id); - /// - /// This call inserts business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// Task of IxCeBusinessUnitSettingsDTO - System.Threading.Tasks.Task IxCeServicesManagementInsertBusinessUnitSettingsAsync (IxCeBusinessUnitSettingsDTO businessUnitSettings); - - /// - /// This call inserts business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// Task of ApiResponse (IxCeBusinessUnitSettingsDTO) - System.Threading.Tasks.Task> IxCeServicesManagementInsertBusinessUnitSettingsAsyncWithHttpInfo (IxCeBusinessUnitSettingsDTO businessUnitSettings); - /// - /// This call inserts specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// Task of IxCeNotificationSettingsDTO - System.Threading.Tasks.Task IxCeServicesManagementInsertNotificationSettingsAsync (IxCeNotificationSettingsDTO notificationSettings); - - /// - /// This call inserts specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// Task of ApiResponse (IxCeNotificationSettingsDTO) - System.Threading.Tasks.Task> IxCeServicesManagementInsertNotificationSettingsAsyncWithHttpInfo (IxCeNotificationSettingsDTO notificationSettings); - /// - /// This call inserts specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// Task of IxCeSendingSettingsDTO - System.Threading.Tasks.Task IxCeServicesManagementInsertSendingSettingsAsync (IxCeSendingSettingsDTO sendingSettings); - - /// - /// This call inserts specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// Task of ApiResponse (IxCeSendingSettingsDTO) - System.Threading.Tasks.Task> IxCeServicesManagementInsertSendingSettingsAsyncWithHttpInfo (IxCeSendingSettingsDTO sendingSettings); - /// - /// This call allows to clone sending settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of IxCeCloneSendingSettingsByBusinessUnitResponseDTO - System.Threading.Tasks.Task IxCeServicesManagementIxCeCloneSendingSettingsByBusinessUnitQueueAsync (IxCeCloneOptionsByBusinessUnitDTO options); - - /// - /// This call allows to clone sending settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of ApiResponse (IxCeCloneSendingSettingsByBusinessUnitResponseDTO) - System.Threading.Tasks.Task> IxCeServicesManagementIxCeCloneSendingSettingsByBusinessUnitQueueAsyncWithHttpInfo (IxCeCloneOptionsByBusinessUnitDTO options); - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option value - /// Task of void - System.Threading.Tasks.Task IxCeServicesManagementSetSendWorkflowDocumentsOptionAsync (bool? optionValue); - - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option value - /// Task of ApiResponse - System.Threading.Tasks.Task> IxCeServicesManagementSetSendWorkflowDocumentsOptionAsyncWithHttpInfo (bool? optionValue); - /// - /// This call inserts specific settings details for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// Task of void - System.Threading.Tasks.Task IxCeServicesManagementSetSendingSettingsDetailsAsync (int? id, IxCeSendingSettingsDetailDTO sendingSettingsDetails); - - /// - /// This call inserts specific settings details for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// Task of ApiResponse - System.Threading.Tasks.Task> IxCeServicesManagementSetSendingSettingsDetailsAsyncWithHttpInfo (int? id, IxCeSendingSettingsDetailDTO sendingSettingsDetails); - /// - /// This method allows sort settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group sort options - /// Task of void - System.Threading.Tasks.Task IxCeServicesManagementSortFieldGroupsAsync (List options); - - /// - /// This method allows sort settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group sort options - /// Task of ApiResponse - System.Threading.Tasks.Task> IxCeServicesManagementSortFieldGroupsAsyncWithHttpInfo (List options); - /// - /// This call updates business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// Task of IxCeBusinessUnitSettingsDTO - System.Threading.Tasks.Task IxCeServicesManagementUpdateBusinessUnitSettingsAsync (int? id, IxCeBusinessUnitSettingsDTO businessUnitSettings); - - /// - /// This call updates business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// Task of ApiResponse (IxCeBusinessUnitSettingsDTO) - System.Threading.Tasks.Task> IxCeServicesManagementUpdateBusinessUnitSettingsAsyncWithHttpInfo (int? id, IxCeBusinessUnitSettingsDTO businessUnitSettings); - /// - /// This call updates specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// Task of IxCeNotificationSettingsDTO - System.Threading.Tasks.Task IxCeServicesManagementUpdateNotificationSettingsAsync (int? id, IxCeNotificationSettingsDTO notificationSettings); - - /// - /// This call updates specific notification settings for IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// Task of ApiResponse (IxCeNotificationSettingsDTO) - System.Threading.Tasks.Task> IxCeServicesManagementUpdateNotificationSettingsAsyncWithHttpInfo (int? id, IxCeNotificationSettingsDTO notificationSettings); - /// - /// This call updates specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// Task of IxCeSendingSettingsDTO - System.Threading.Tasks.Task IxCeServicesManagementUpdateSendingSettingsAsync (int? id, IxCeSendingSettingsDTO sendingSettings); - - /// - /// This call updates specific settings for sending docs to IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// Task of ApiResponse (IxCeSendingSettingsDTO) - System.Threading.Tasks.Task> IxCeServicesManagementUpdateSendingSettingsAsyncWithHttpInfo (int? id, IxCeSendingSettingsDTO sendingSettings); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class IxCeServicesManagementApi : IIxCeServicesManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public IxCeServicesManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public IxCeServicesManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes specific business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// - public void IxCeServicesManagementDeleteBusinessUnitSettings (int? id) - { - IxCeServicesManagementDeleteBusinessUnitSettingsWithHttpInfo(id); - } - - /// - /// This call deletes specific business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// ApiResponse of Object(void) - public ApiResponse IxCeServicesManagementDeleteBusinessUnitSettingsWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementDeleteBusinessUnitSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementDeleteBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of void - public async System.Threading.Tasks.Task IxCeServicesManagementDeleteBusinessUnitSettingsAsync (int? id) - { - await IxCeServicesManagementDeleteBusinessUnitSettingsAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes specific business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxCeServicesManagementDeleteBusinessUnitSettingsAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementDeleteBusinessUnitSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementDeleteBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// - public void IxCeServicesManagementDeleteNotificationSettings (int? id) - { - IxCeServicesManagementDeleteNotificationSettingsWithHttpInfo(id); - } - - /// - /// This call deletes specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// ApiResponse of Object(void) - public ApiResponse IxCeServicesManagementDeleteNotificationSettingsWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementDeleteNotificationSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementDeleteNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of void - public async System.Threading.Tasks.Task IxCeServicesManagementDeleteNotificationSettingsAsync (int? id) - { - await IxCeServicesManagementDeleteNotificationSettingsAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxCeServicesManagementDeleteNotificationSettingsAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementDeleteNotificationSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementDeleteNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// - public void IxCeServicesManagementDeleteSendingSettings (int? id) - { - IxCeServicesManagementDeleteSendingSettingsWithHttpInfo(id); - } - - /// - /// This call deletes specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of Object(void) - public ApiResponse IxCeServicesManagementDeleteSendingSettingsWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementDeleteSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementDeleteSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of void - public async System.Threading.Tasks.Task IxCeServicesManagementDeleteSendingSettingsAsync (int? id) - { - await IxCeServicesManagementDeleteSendingSettingsAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxCeServicesManagementDeleteSendingSettingsAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementDeleteSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementDeleteSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call gets specific business unit configured settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// IxCeBusinessUnitSettingsDTO - public IxCeBusinessUnitSettingsDTO IxCeServicesManagementGetBusinessUnitSettingsById (int? id) - { - ApiResponse localVarResponse = IxCeServicesManagementGetBusinessUnitSettingsByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets specific business unit configured settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// ApiResponse of IxCeBusinessUnitSettingsDTO - public ApiResponse< IxCeBusinessUnitSettingsDTO > IxCeServicesManagementGetBusinessUnitSettingsByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementGetBusinessUnitSettingsById"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetBusinessUnitSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeBusinessUnitSettingsDTO))); - } - - /// - /// This call gets specific business unit configured settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of IxCeBusinessUnitSettingsDTO - public async System.Threading.Tasks.Task IxCeServicesManagementGetBusinessUnitSettingsByIdAsync (int? id) - { - ApiResponse localVarResponse = await IxCeServicesManagementGetBusinessUnitSettingsByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets specific business unit configured settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of ApiResponse (IxCeBusinessUnitSettingsDTO) - public async System.Threading.Tasks.Task> IxCeServicesManagementGetBusinessUnitSettingsByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementGetBusinessUnitSettingsById"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetBusinessUnitSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeBusinessUnitSettingsDTO))); - } - - /// - /// This call gets business unit configured settings - /// - /// Thrown when fails to make API call - /// List<IxCeBusinessUnitSettingsDTO> - public List IxCeServicesManagementGetBusinessUnitsSettings () - { - ApiResponse> localVarResponse = IxCeServicesManagementGetBusinessUnitsSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call gets business unit configured settings - /// - /// Thrown when fails to make API call - /// ApiResponse of List<IxCeBusinessUnitSettingsDTO> - public ApiResponse< List > IxCeServicesManagementGetBusinessUnitsSettingsWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxCe/Settings/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetBusinessUnitsSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets business unit configured settings - /// - /// Thrown when fails to make API call - /// Task of List<IxCeBusinessUnitSettingsDTO> - public async System.Threading.Tasks.Task> IxCeServicesManagementGetBusinessUnitsSettingsAsync () - { - ApiResponse> localVarResponse = await IxCeServicesManagementGetBusinessUnitsSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call gets business unit configured settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<IxCeBusinessUnitSettingsDTO>) - public async System.Threading.Tasks.Task>> IxCeServicesManagementGetBusinessUnitsSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxCe/Settings/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetBusinessUnitsSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets all notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// List<IxCeNotificationSettingsDTO> - public List IxCeServicesManagementGetNotificationSettings () - { - ApiResponse> localVarResponse = IxCeServicesManagementGetNotificationSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call gets all notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// ApiResponse of List<IxCeNotificationSettingsDTO> - public ApiResponse< List > IxCeServicesManagementGetNotificationSettingsWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets all notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Task of List<IxCeNotificationSettingsDTO> - public async System.Threading.Tasks.Task> IxCeServicesManagementGetNotificationSettingsAsync () - { - ApiResponse> localVarResponse = await IxCeServicesManagementGetNotificationSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call gets all notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<IxCeNotificationSettingsDTO>) - public async System.Threading.Tasks.Task>> IxCeServicesManagementGetNotificationSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// IxCeNotificationSettingsDTO - public IxCeNotificationSettingsDTO IxCeServicesManagementGetNotificationSettingsById (int? id) - { - ApiResponse localVarResponse = IxCeServicesManagementGetNotificationSettingsByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// ApiResponse of IxCeNotificationSettingsDTO - public ApiResponse< IxCeNotificationSettingsDTO > IxCeServicesManagementGetNotificationSettingsByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementGetNotificationSettingsById"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetNotificationSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeNotificationSettingsDTO))); - } - - /// - /// This call gets specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of IxCeNotificationSettingsDTO - public async System.Threading.Tasks.Task IxCeServicesManagementGetNotificationSettingsByIdAsync (int? id) - { - ApiResponse localVarResponse = await IxCeServicesManagementGetNotificationSettingsByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of ApiResponse (IxCeNotificationSettingsDTO) - public async System.Threading.Tasks.Task> IxCeServicesManagementGetNotificationSettingsByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementGetNotificationSettingsById"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetNotificationSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeNotificationSettingsDTO))); - } - - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// Thrown when fails to make API call - /// bool? - public bool? IxCeServicesManagementGetSendWorkflowDocumentsOption () - { - ApiResponse localVarResponse = IxCeServicesManagementGetSendWorkflowDocumentsOptionWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - public ApiResponse< bool? > IxCeServicesManagementGetSendWorkflowDocumentsOptionWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxCe/Settings/SendWorkflowDocumentsOption"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetSendWorkflowDocumentsOption", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// Thrown when fails to make API call - /// Task of bool? - public async System.Threading.Tasks.Task IxCeServicesManagementGetSendWorkflowDocumentsOptionAsync () - { - ApiResponse localVarResponse = await IxCeServicesManagementGetSendWorkflowDocumentsOptionAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> IxCeServicesManagementGetSendWorkflowDocumentsOptionAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxCe/Settings/SendWorkflowDocumentsOption"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetSendWorkflowDocumentsOption", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call gets all sending settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Business Unit code - /// List<IxCeSendingSettingsDTO> - public List IxCeServicesManagementGetSendingSettings (string businessUnitCode) - { - ApiResponse> localVarResponse = IxCeServicesManagementGetSendingSettingsWithHttpInfo(businessUnitCode); - return localVarResponse.Data; - } - - /// - /// This call gets all sending settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Business Unit code - /// ApiResponse of List<IxCeSendingSettingsDTO> - public ApiResponse< List > IxCeServicesManagementGetSendingSettingsWithHttpInfo (string businessUnitCode) - { - // verify the required parameter 'businessUnitCode' is set - if (businessUnitCode == null) - throw new ApiException(400, "Missing required parameter 'businessUnitCode' when calling IxCeServicesManagementApi->IxCeServicesManagementGetSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets all sending settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Business Unit code - /// Task of List<IxCeSendingSettingsDTO> - public async System.Threading.Tasks.Task> IxCeServicesManagementGetSendingSettingsAsync (string businessUnitCode) - { - ApiResponse> localVarResponse = await IxCeServicesManagementGetSendingSettingsAsyncWithHttpInfo(businessUnitCode); - return localVarResponse.Data; - - } - - /// - /// This call gets all sending settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Business Unit code - /// Task of ApiResponse (List<IxCeSendingSettingsDTO>) - public async System.Threading.Tasks.Task>> IxCeServicesManagementGetSendingSettingsAsyncWithHttpInfo (string businessUnitCode) - { - // verify the required parameter 'businessUnitCode' is set - if (businessUnitCode == null) - throw new ApiException(400, "Missing required parameter 'businessUnitCode' when calling IxCeServicesManagementApi->IxCeServicesManagementGetSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// IxCeSendingSettingsDTO - public IxCeSendingSettingsDTO IxCeServicesManagementGetSendingSettingsById (int? id) - { - ApiResponse localVarResponse = IxCeServicesManagementGetSendingSettingsByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of IxCeSendingSettingsDTO - public ApiResponse< IxCeSendingSettingsDTO > IxCeServicesManagementGetSendingSettingsByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementGetSendingSettingsById"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetSendingSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeSendingSettingsDTO))); - } - - /// - /// This call gets specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of IxCeSendingSettingsDTO - public async System.Threading.Tasks.Task IxCeServicesManagementGetSendingSettingsByIdAsync (int? id) - { - ApiResponse localVarResponse = await IxCeServicesManagementGetSendingSettingsByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse (IxCeSendingSettingsDTO) - public async System.Threading.Tasks.Task> IxCeServicesManagementGetSendingSettingsByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementGetSendingSettingsById"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetSendingSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeSendingSettingsDTO))); - } - - /// - /// This call gets specific settings details for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// IxCeSendingSettingsDetailDTO - public IxCeSendingSettingsDetailDTO IxCeServicesManagementGetSendingSettingsDetails (int? id) - { - ApiResponse localVarResponse = IxCeServicesManagementGetSendingSettingsDetailsWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets specific settings details for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of IxCeSendingSettingsDetailDTO - public ApiResponse< IxCeSendingSettingsDetailDTO > IxCeServicesManagementGetSendingSettingsDetailsWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementGetSendingSettingsDetails"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending/{id}/Details"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetSendingSettingsDetails", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeSendingSettingsDetailDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeSendingSettingsDetailDTO))); - } - - /// - /// This call gets specific settings details for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of IxCeSendingSettingsDetailDTO - public async System.Threading.Tasks.Task IxCeServicesManagementGetSendingSettingsDetailsAsync (int? id) - { - ApiResponse localVarResponse = await IxCeServicesManagementGetSendingSettingsDetailsAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets specific settings details for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse (IxCeSendingSettingsDetailDTO) - public async System.Threading.Tasks.Task> IxCeServicesManagementGetSendingSettingsDetailsAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementGetSendingSettingsDetails"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending/{id}/Details"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementGetSendingSettingsDetails", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeSendingSettingsDetailDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeSendingSettingsDetailDTO))); - } - - /// - /// This call inserts business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// IxCeBusinessUnitSettingsDTO - public IxCeBusinessUnitSettingsDTO IxCeServicesManagementInsertBusinessUnitSettings (IxCeBusinessUnitSettingsDTO businessUnitSettings) - { - ApiResponse localVarResponse = IxCeServicesManagementInsertBusinessUnitSettingsWithHttpInfo(businessUnitSettings); - return localVarResponse.Data; - } - - /// - /// This call inserts business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// ApiResponse of IxCeBusinessUnitSettingsDTO - public ApiResponse< IxCeBusinessUnitSettingsDTO > IxCeServicesManagementInsertBusinessUnitSettingsWithHttpInfo (IxCeBusinessUnitSettingsDTO businessUnitSettings) - { - // verify the required parameter 'businessUnitSettings' is set - if (businessUnitSettings == null) - throw new ApiException(400, "Missing required parameter 'businessUnitSettings' when calling IxCeServicesManagementApi->IxCeServicesManagementInsertBusinessUnitSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitSettings != null && businessUnitSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitSettings); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementInsertBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeBusinessUnitSettingsDTO))); - } - - /// - /// This call inserts business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// Task of IxCeBusinessUnitSettingsDTO - public async System.Threading.Tasks.Task IxCeServicesManagementInsertBusinessUnitSettingsAsync (IxCeBusinessUnitSettingsDTO businessUnitSettings) - { - ApiResponse localVarResponse = await IxCeServicesManagementInsertBusinessUnitSettingsAsyncWithHttpInfo(businessUnitSettings); - return localVarResponse.Data; - - } - - /// - /// This call inserts business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// Task of ApiResponse (IxCeBusinessUnitSettingsDTO) - public async System.Threading.Tasks.Task> IxCeServicesManagementInsertBusinessUnitSettingsAsyncWithHttpInfo (IxCeBusinessUnitSettingsDTO businessUnitSettings) - { - // verify the required parameter 'businessUnitSettings' is set - if (businessUnitSettings == null) - throw new ApiException(400, "Missing required parameter 'businessUnitSettings' when calling IxCeServicesManagementApi->IxCeServicesManagementInsertBusinessUnitSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitSettings != null && businessUnitSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitSettings); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementInsertBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeBusinessUnitSettingsDTO))); - } - - /// - /// This call inserts specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// IxCeNotificationSettingsDTO - public IxCeNotificationSettingsDTO IxCeServicesManagementInsertNotificationSettings (IxCeNotificationSettingsDTO notificationSettings) - { - ApiResponse localVarResponse = IxCeServicesManagementInsertNotificationSettingsWithHttpInfo(notificationSettings); - return localVarResponse.Data; - } - - /// - /// This call inserts specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// ApiResponse of IxCeNotificationSettingsDTO - public ApiResponse< IxCeNotificationSettingsDTO > IxCeServicesManagementInsertNotificationSettingsWithHttpInfo (IxCeNotificationSettingsDTO notificationSettings) - { - // verify the required parameter 'notificationSettings' is set - if (notificationSettings == null) - throw new ApiException(400, "Missing required parameter 'notificationSettings' when calling IxCeServicesManagementApi->IxCeServicesManagementInsertNotificationSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (notificationSettings != null && notificationSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(notificationSettings); // http body (model) parameter - } - else - { - localVarPostBody = notificationSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementInsertNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeNotificationSettingsDTO))); - } - - /// - /// This call inserts specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// Task of IxCeNotificationSettingsDTO - public async System.Threading.Tasks.Task IxCeServicesManagementInsertNotificationSettingsAsync (IxCeNotificationSettingsDTO notificationSettings) - { - ApiResponse localVarResponse = await IxCeServicesManagementInsertNotificationSettingsAsyncWithHttpInfo(notificationSettings); - return localVarResponse.Data; - - } - - /// - /// This call inserts specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// Task of ApiResponse (IxCeNotificationSettingsDTO) - public async System.Threading.Tasks.Task> IxCeServicesManagementInsertNotificationSettingsAsyncWithHttpInfo (IxCeNotificationSettingsDTO notificationSettings) - { - // verify the required parameter 'notificationSettings' is set - if (notificationSettings == null) - throw new ApiException(400, "Missing required parameter 'notificationSettings' when calling IxCeServicesManagementApi->IxCeServicesManagementInsertNotificationSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (notificationSettings != null && notificationSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(notificationSettings); // http body (model) parameter - } - else - { - localVarPostBody = notificationSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementInsertNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeNotificationSettingsDTO))); - } - - /// - /// This call inserts specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// IxCeSendingSettingsDTO - public IxCeSendingSettingsDTO IxCeServicesManagementInsertSendingSettings (IxCeSendingSettingsDTO sendingSettings) - { - ApiResponse localVarResponse = IxCeServicesManagementInsertSendingSettingsWithHttpInfo(sendingSettings); - return localVarResponse.Data; - } - - /// - /// This call inserts specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// ApiResponse of IxCeSendingSettingsDTO - public ApiResponse< IxCeSendingSettingsDTO > IxCeServicesManagementInsertSendingSettingsWithHttpInfo (IxCeSendingSettingsDTO sendingSettings) - { - // verify the required parameter 'sendingSettings' is set - if (sendingSettings == null) - throw new ApiException(400, "Missing required parameter 'sendingSettings' when calling IxCeServicesManagementApi->IxCeServicesManagementInsertSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sendingSettings != null && sendingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettings); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementInsertSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeSendingSettingsDTO))); - } - - /// - /// This call inserts specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// Task of IxCeSendingSettingsDTO - public async System.Threading.Tasks.Task IxCeServicesManagementInsertSendingSettingsAsync (IxCeSendingSettingsDTO sendingSettings) - { - ApiResponse localVarResponse = await IxCeServicesManagementInsertSendingSettingsAsyncWithHttpInfo(sendingSettings); - return localVarResponse.Data; - - } - - /// - /// This call inserts specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// Task of ApiResponse (IxCeSendingSettingsDTO) - public async System.Threading.Tasks.Task> IxCeServicesManagementInsertSendingSettingsAsyncWithHttpInfo (IxCeSendingSettingsDTO sendingSettings) - { - // verify the required parameter 'sendingSettings' is set - if (sendingSettings == null) - throw new ApiException(400, "Missing required parameter 'sendingSettings' when calling IxCeServicesManagementApi->IxCeServicesManagementInsertSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sendingSettings != null && sendingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettings); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementInsertSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeSendingSettingsDTO))); - } - - /// - /// This call allows to clone sending settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// IxCeCloneSendingSettingsByBusinessUnitResponseDTO - public IxCeCloneSendingSettingsByBusinessUnitResponseDTO IxCeServicesManagementIxCeCloneSendingSettingsByBusinessUnitQueue (IxCeCloneOptionsByBusinessUnitDTO options) - { - ApiResponse localVarResponse = IxCeServicesManagementIxCeCloneSendingSettingsByBusinessUnitQueueWithHttpInfo(options); - return localVarResponse.Data; - } - - /// - /// This call allows to clone sending settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// ApiResponse of IxCeCloneSendingSettingsByBusinessUnitResponseDTO - public ApiResponse< IxCeCloneSendingSettingsByBusinessUnitResponseDTO > IxCeServicesManagementIxCeCloneSendingSettingsByBusinessUnitQueueWithHttpInfo (IxCeCloneOptionsByBusinessUnitDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling IxCeServicesManagementApi->IxCeServicesManagementIxCeCloneSendingSettingsByBusinessUnitQueue"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/CloneByBusinessUnit"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementIxCeCloneSendingSettingsByBusinessUnitQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeCloneSendingSettingsByBusinessUnitResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeCloneSendingSettingsByBusinessUnitResponseDTO))); - } - - /// - /// This call allows to clone sending settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of IxCeCloneSendingSettingsByBusinessUnitResponseDTO - public async System.Threading.Tasks.Task IxCeServicesManagementIxCeCloneSendingSettingsByBusinessUnitQueueAsync (IxCeCloneOptionsByBusinessUnitDTO options) - { - ApiResponse localVarResponse = await IxCeServicesManagementIxCeCloneSendingSettingsByBusinessUnitQueueAsyncWithHttpInfo(options); - return localVarResponse.Data; - - } - - /// - /// This call allows to clone sending settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of ApiResponse (IxCeCloneSendingSettingsByBusinessUnitResponseDTO) - public async System.Threading.Tasks.Task> IxCeServicesManagementIxCeCloneSendingSettingsByBusinessUnitQueueAsyncWithHttpInfo (IxCeCloneOptionsByBusinessUnitDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling IxCeServicesManagementApi->IxCeServicesManagementIxCeCloneSendingSettingsByBusinessUnitQueue"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/CloneByBusinessUnit"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementIxCeCloneSendingSettingsByBusinessUnitQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeCloneSendingSettingsByBusinessUnitResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeCloneSendingSettingsByBusinessUnitResponseDTO))); - } - - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// Thrown when fails to make API call - /// Option value - /// - public void IxCeServicesManagementSetSendWorkflowDocumentsOption (bool? optionValue) - { - IxCeServicesManagementSetSendWorkflowDocumentsOptionWithHttpInfo(optionValue); - } - - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// Thrown when fails to make API call - /// Option value - /// ApiResponse of Object(void) - public ApiResponse IxCeServicesManagementSetSendWorkflowDocumentsOptionWithHttpInfo (bool? optionValue) - { - // verify the required parameter 'optionValue' is set - if (optionValue == null) - throw new ApiException(400, "Missing required parameter 'optionValue' when calling IxCeServicesManagementApi->IxCeServicesManagementSetSendWorkflowDocumentsOption"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/SendWorkflowDocumentsOption"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (optionValue != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "optionValue", optionValue)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementSetSendWorkflowDocumentsOption", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// Thrown when fails to make API call - /// Option value - /// Task of void - public async System.Threading.Tasks.Task IxCeServicesManagementSetSendWorkflowDocumentsOptionAsync (bool? optionValue) - { - await IxCeServicesManagementSetSendWorkflowDocumentsOptionAsyncWithHttpInfo(optionValue); - - } - - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-CE / ARX-CE - /// - /// Thrown when fails to make API call - /// Option value - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxCeServicesManagementSetSendWorkflowDocumentsOptionAsyncWithHttpInfo (bool? optionValue) - { - // verify the required parameter 'optionValue' is set - if (optionValue == null) - throw new ApiException(400, "Missing required parameter 'optionValue' when calling IxCeServicesManagementApi->IxCeServicesManagementSetSendWorkflowDocumentsOption"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/SendWorkflowDocumentsOption"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (optionValue != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "optionValue", optionValue)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementSetSendWorkflowDocumentsOption", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts specific settings details for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// - public void IxCeServicesManagementSetSendingSettingsDetails (int? id, IxCeSendingSettingsDetailDTO sendingSettingsDetails) - { - IxCeServicesManagementSetSendingSettingsDetailsWithHttpInfo(id, sendingSettingsDetails); - } - - /// - /// This call inserts specific settings details for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// ApiResponse of Object(void) - public ApiResponse IxCeServicesManagementSetSendingSettingsDetailsWithHttpInfo (int? id, IxCeSendingSettingsDetailDTO sendingSettingsDetails) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementSetSendingSettingsDetails"); - // verify the required parameter 'sendingSettingsDetails' is set - if (sendingSettingsDetails == null) - throw new ApiException(400, "Missing required parameter 'sendingSettingsDetails' when calling IxCeServicesManagementApi->IxCeServicesManagementSetSendingSettingsDetails"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending/{id}/Details"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sendingSettingsDetails != null && sendingSettingsDetails.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettingsDetails); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettingsDetails; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementSetSendingSettingsDetails", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts specific settings details for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// Task of void - public async System.Threading.Tasks.Task IxCeServicesManagementSetSendingSettingsDetailsAsync (int? id, IxCeSendingSettingsDetailDTO sendingSettingsDetails) - { - await IxCeServicesManagementSetSendingSettingsDetailsAsyncWithHttpInfo(id, sendingSettingsDetails); - - } - - /// - /// This call inserts specific settings details for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings details for insert or update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxCeServicesManagementSetSendingSettingsDetailsAsyncWithHttpInfo (int? id, IxCeSendingSettingsDetailDTO sendingSettingsDetails) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementSetSendingSettingsDetails"); - // verify the required parameter 'sendingSettingsDetails' is set - if (sendingSettingsDetails == null) - throw new ApiException(400, "Missing required parameter 'sendingSettingsDetails' when calling IxCeServicesManagementApi->IxCeServicesManagementSetSendingSettingsDetails"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending/{id}/Details"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sendingSettingsDetails != null && sendingSettingsDetails.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettingsDetails); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettingsDetails; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementSetSendingSettingsDetails", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows sort settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Field group sort options - /// - public void IxCeServicesManagementSortFieldGroups (List options) - { - IxCeServicesManagementSortFieldGroupsWithHttpInfo(options); - } - - /// - /// This method allows sort settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Field group sort options - /// ApiResponse of Object(void) - public ApiResponse IxCeServicesManagementSortFieldGroupsWithHttpInfo (List options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling IxCeServicesManagementApi->IxCeServicesManagementSortFieldGroups"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending/Sort"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementSortFieldGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows sort settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Field group sort options - /// Task of void - public async System.Threading.Tasks.Task IxCeServicesManagementSortFieldGroupsAsync (List options) - { - await IxCeServicesManagementSortFieldGroupsAsyncWithHttpInfo(options); - - } - - /// - /// This method allows sort settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Field group sort options - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxCeServicesManagementSortFieldGroupsAsyncWithHttpInfo (List options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling IxCeServicesManagementApi->IxCeServicesManagementSortFieldGroups"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending/Sort"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementSortFieldGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// IxCeBusinessUnitSettingsDTO - public IxCeBusinessUnitSettingsDTO IxCeServicesManagementUpdateBusinessUnitSettings (int? id, IxCeBusinessUnitSettingsDTO businessUnitSettings) - { - ApiResponse localVarResponse = IxCeServicesManagementUpdateBusinessUnitSettingsWithHttpInfo(id, businessUnitSettings); - return localVarResponse.Data; - } - - /// - /// This call updates business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// ApiResponse of IxCeBusinessUnitSettingsDTO - public ApiResponse< IxCeBusinessUnitSettingsDTO > IxCeServicesManagementUpdateBusinessUnitSettingsWithHttpInfo (int? id, IxCeBusinessUnitSettingsDTO businessUnitSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementUpdateBusinessUnitSettings"); - // verify the required parameter 'businessUnitSettings' is set - if (businessUnitSettings == null) - throw new ApiException(400, "Missing required parameter 'businessUnitSettings' when calling IxCeServicesManagementApi->IxCeServicesManagementUpdateBusinessUnitSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (businessUnitSettings != null && businessUnitSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitSettings); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementUpdateBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeBusinessUnitSettingsDTO))); - } - - /// - /// This call updates business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// Task of IxCeBusinessUnitSettingsDTO - public async System.Threading.Tasks.Task IxCeServicesManagementUpdateBusinessUnitSettingsAsync (int? id, IxCeBusinessUnitSettingsDTO businessUnitSettings) - { - ApiResponse localVarResponse = await IxCeServicesManagementUpdateBusinessUnitSettingsAsyncWithHttpInfo(id, businessUnitSettings); - return localVarResponse.Data; - - } - - /// - /// This call updates business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// Task of ApiResponse (IxCeBusinessUnitSettingsDTO) - public async System.Threading.Tasks.Task> IxCeServicesManagementUpdateBusinessUnitSettingsAsyncWithHttpInfo (int? id, IxCeBusinessUnitSettingsDTO businessUnitSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementUpdateBusinessUnitSettings"); - // verify the required parameter 'businessUnitSettings' is set - if (businessUnitSettings == null) - throw new ApiException(400, "Missing required parameter 'businessUnitSettings' when calling IxCeServicesManagementApi->IxCeServicesManagementUpdateBusinessUnitSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (businessUnitSettings != null && businessUnitSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitSettings); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementUpdateBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeBusinessUnitSettingsDTO))); - } - - /// - /// This call updates specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// IxCeNotificationSettingsDTO - public IxCeNotificationSettingsDTO IxCeServicesManagementUpdateNotificationSettings (int? id, IxCeNotificationSettingsDTO notificationSettings) - { - ApiResponse localVarResponse = IxCeServicesManagementUpdateNotificationSettingsWithHttpInfo(id, notificationSettings); - return localVarResponse.Data; - } - - /// - /// This call updates specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// ApiResponse of IxCeNotificationSettingsDTO - public ApiResponse< IxCeNotificationSettingsDTO > IxCeServicesManagementUpdateNotificationSettingsWithHttpInfo (int? id, IxCeNotificationSettingsDTO notificationSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementUpdateNotificationSettings"); - // verify the required parameter 'notificationSettings' is set - if (notificationSettings == null) - throw new ApiException(400, "Missing required parameter 'notificationSettings' when calling IxCeServicesManagementApi->IxCeServicesManagementUpdateNotificationSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (notificationSettings != null && notificationSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(notificationSettings); // http body (model) parameter - } - else - { - localVarPostBody = notificationSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementUpdateNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeNotificationSettingsDTO))); - } - - /// - /// This call updates specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// Task of IxCeNotificationSettingsDTO - public async System.Threading.Tasks.Task IxCeServicesManagementUpdateNotificationSettingsAsync (int? id, IxCeNotificationSettingsDTO notificationSettings) - { - ApiResponse localVarResponse = await IxCeServicesManagementUpdateNotificationSettingsAsyncWithHttpInfo(id, notificationSettings); - return localVarResponse.Data; - - } - - /// - /// This call updates specific notification settings for IX-CE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// Task of ApiResponse (IxCeNotificationSettingsDTO) - public async System.Threading.Tasks.Task> IxCeServicesManagementUpdateNotificationSettingsAsyncWithHttpInfo (int? id, IxCeNotificationSettingsDTO notificationSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementUpdateNotificationSettings"); - // verify the required parameter 'notificationSettings' is set - if (notificationSettings == null) - throw new ApiException(400, "Missing required parameter 'notificationSettings' when calling IxCeServicesManagementApi->IxCeServicesManagementUpdateNotificationSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (notificationSettings != null && notificationSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(notificationSettings); // http body (model) parameter - } - else - { - localVarPostBody = notificationSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementUpdateNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeNotificationSettingsDTO))); - } - - /// - /// This call updates specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// IxCeSendingSettingsDTO - public IxCeSendingSettingsDTO IxCeServicesManagementUpdateSendingSettings (int? id, IxCeSendingSettingsDTO sendingSettings) - { - ApiResponse localVarResponse = IxCeServicesManagementUpdateSendingSettingsWithHttpInfo(id, sendingSettings); - return localVarResponse.Data; - } - - /// - /// This call updates specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// ApiResponse of IxCeSendingSettingsDTO - public ApiResponse< IxCeSendingSettingsDTO > IxCeServicesManagementUpdateSendingSettingsWithHttpInfo (int? id, IxCeSendingSettingsDTO sendingSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementUpdateSendingSettings"); - // verify the required parameter 'sendingSettings' is set - if (sendingSettings == null) - throw new ApiException(400, "Missing required parameter 'sendingSettings' when calling IxCeServicesManagementApi->IxCeServicesManagementUpdateSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sendingSettings != null && sendingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettings); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementUpdateSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeSendingSettingsDTO))); - } - - /// - /// This call updates specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// Task of IxCeSendingSettingsDTO - public async System.Threading.Tasks.Task IxCeServicesManagementUpdateSendingSettingsAsync (int? id, IxCeSendingSettingsDTO sendingSettings) - { - ApiResponse localVarResponse = await IxCeServicesManagementUpdateSendingSettingsAsyncWithHttpInfo(id, sendingSettings); - return localVarResponse.Data; - - } - - /// - /// This call updates specific settings for sending docs to IX-CE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// Task of ApiResponse (IxCeSendingSettingsDTO) - public async System.Threading.Tasks.Task> IxCeServicesManagementUpdateSendingSettingsAsyncWithHttpInfo (int? id, IxCeSendingSettingsDTO sendingSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxCeServicesManagementApi->IxCeServicesManagementUpdateSendingSettings"); - // verify the required parameter 'sendingSettings' is set - if (sendingSettings == null) - throw new ApiException(400, "Missing required parameter 'sendingSettings' when calling IxCeServicesManagementApi->IxCeServicesManagementUpdateSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxCe/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sendingSettings != null && sendingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettings); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxCeServicesManagementUpdateSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCeSendingSettingsDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/IxFeServicesManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/IxFeServicesManagementApi.cs deleted file mode 100644 index ad36d8c..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/IxFeServicesManagementApi.cs +++ /dev/null @@ -1,5489 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IIxFeServicesManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call allows to check if it is possible to generate default configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// bool? - bool? IxFeServicesManagementCanGenerateStandardMapping (); - - /// - /// This call allows to check if it is possible to generate default configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - ApiResponse IxFeServicesManagementCanGenerateStandardMappingWithHttpInfo (); - /// - /// This call deletes specific business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// - void IxFeServicesManagementDeleteBusinessUnitSettings (int? id); - - /// - /// This call deletes specific business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// ApiResponse of Object(void) - ApiResponse IxFeServicesManagementDeleteBusinessUnitSettingsWithHttpInfo (int? id); - /// - /// This call deletes specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// - void IxFeServicesManagementDeleteNotificationSettings (int? id); - - /// - /// This call deletes specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// ApiResponse of Object(void) - ApiResponse IxFeServicesManagementDeleteNotificationSettingsWithHttpInfo (int? id); - /// - /// This call deletes specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// - void IxFeServicesManagementDeleteReceivingSettings (int? id); - - /// - /// This call deletes specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// ApiResponse of Object(void) - ApiResponse IxFeServicesManagementDeleteReceivingSettingsWithHttpInfo (int? id); - /// - /// This call deletes specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// - void IxFeServicesManagementDeleteSendingSettings (int? id); - - /// - /// This call deletes specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of Object(void) - ApiResponse IxFeServicesManagementDeleteSendingSettingsWithHttpInfo (int? id); - /// - /// This call allows to generate default configuration mapping with IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Options for mapping - /// - void IxFeServicesManagementGenerateStandardMapping (IxFeMappingOptionsDTO options); - - /// - /// This call allows to generate default configuration mapping with IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Options for mapping - /// ApiResponse of Object(void) - ApiResponse IxFeServicesManagementGenerateStandardMappingWithHttpInfo (IxFeMappingOptionsDTO options); - /// - /// This call gets specific business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// IxFeBusinessUnitSettingsDTO - IxFeBusinessUnitSettingsDTO IxFeServicesManagementGetBusinessUnitSettingsById (int? id); - - /// - /// This call gets specific business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// ApiResponse of IxFeBusinessUnitSettingsDTO - ApiResponse IxFeServicesManagementGetBusinessUnitSettingsByIdWithHttpInfo (int? id); - /// - /// This call gets business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<IxFeBusinessUnitSettingsDTO> - List IxFeServicesManagementGetBusinessUnitsSettings (); - - /// - /// This call gets business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<IxFeBusinessUnitSettingsDTO> - ApiResponse> IxFeServicesManagementGetBusinessUnitsSettingsWithHttpInfo (); - /// - /// This call gets all notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<IxFeNotificationSettingsDTO> - List IxFeServicesManagementGetNotificationSettings (); - - /// - /// This call gets all notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<IxFeNotificationSettingsDTO> - ApiResponse> IxFeServicesManagementGetNotificationSettingsWithHttpInfo (); - /// - /// This call gets specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// IxFeNotificationSettingsDTO - IxFeNotificationSettingsDTO IxFeServicesManagementGetNotificationSettingsById (int? id); - - /// - /// This call gets specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// ApiResponse of IxFeNotificationSettingsDTO - ApiResponse IxFeServicesManagementGetNotificationSettingsByIdWithHttpInfo (int? id); - /// - /// This call gets all settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<IxFeReceivingSettingsDTO> - List IxFeServicesManagementGetReceivingSettings (); - - /// - /// This call gets all settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<IxFeReceivingSettingsDTO> - ApiResponse> IxFeServicesManagementGetReceivingSettingsWithHttpInfo (); - /// - /// This call gets specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// IxFeReceivingSettingsDTO - IxFeReceivingSettingsDTO IxFeServicesManagementGetReceivingSettingsById (int? id); - - /// - /// This call gets specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// ApiResponse of IxFeReceivingSettingsDTO - ApiResponse IxFeServicesManagementGetReceivingSettingsByIdWithHttpInfo (int? id); - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// bool? - bool? IxFeServicesManagementGetSendWorkflowDocumentsOption (); - - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - ApiResponse IxFeServicesManagementGetSendWorkflowDocumentsOptionWithHttpInfo (); - /// - /// This call gets all sending settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business Unit code - /// List<IxFeSendingSettingsDTO> - List IxFeServicesManagementGetSendingSettings (string businessUnitCode); - - /// - /// This call gets all sending settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business Unit code - /// ApiResponse of List<IxFeSendingSettingsDTO> - ApiResponse> IxFeServicesManagementGetSendingSettingsWithHttpInfo (string businessUnitCode); - /// - /// This call gets specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// IxFeSendingSettingsDTO - IxFeSendingSettingsDTO IxFeServicesManagementGetSendingSettingsById (int? id); - - /// - /// This call gets specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of IxFeSendingSettingsDTO - ApiResponse IxFeServicesManagementGetSendingSettingsByIdWithHttpInfo (int? id); - /// - /// This call inserts business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// IxFeBusinessUnitSettingsDTO - IxFeBusinessUnitSettingsDTO IxFeServicesManagementInsertBusinessUnitSettings (IxFeBusinessUnitSettingsDTO businessUnitSettings); - - /// - /// This call inserts business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// ApiResponse of IxFeBusinessUnitSettingsDTO - ApiResponse IxFeServicesManagementInsertBusinessUnitSettingsWithHttpInfo (IxFeBusinessUnitSettingsDTO businessUnitSettings); - /// - /// This call inserts specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// IxFeNotificationSettingsDTO - IxFeNotificationSettingsDTO IxFeServicesManagementInsertNotificationSettings (IxFeNotificationSettingsDTO notificationSettings); - - /// - /// This call inserts specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// ApiResponse of IxFeNotificationSettingsDTO - ApiResponse IxFeServicesManagementInsertNotificationSettingsWithHttpInfo (IxFeNotificationSettingsDTO notificationSettings); - /// - /// This call inserts specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings for insert - /// IxFeReceivingSettingsDTO - IxFeReceivingSettingsDTO IxFeServicesManagementInsertReceivingSettings (IxFeReceivingSettingsDTO receivingSettings); - - /// - /// This call inserts specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings for insert - /// ApiResponse of IxFeReceivingSettingsDTO - ApiResponse IxFeServicesManagementInsertReceivingSettingsWithHttpInfo (IxFeReceivingSettingsDTO receivingSettings); - /// - /// This call inserts specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// IxFeSendingSettingsDTO - IxFeSendingSettingsDTO IxFeServicesManagementInsertSendingSettings (IxFeSendingSettingsDTO sendingSettings); - - /// - /// This call inserts specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// ApiResponse of IxFeSendingSettingsDTO - ApiResponse IxFeServicesManagementInsertSendingSettingsWithHttpInfo (IxFeSendingSettingsDTO sendingSettings); - /// - /// This call allows to clone receiving settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// IxFeCloneReceivingSettingsByBusinessUnitResponseDTO - IxFeCloneReceivingSettingsByBusinessUnitResponseDTO IxFeServicesManagementIxFeCloneReceivingSettingsByBusinessUnitQueue (IxFeReceivingCloneOptionsByBusinessUnitDTO options); - - /// - /// This call allows to clone receiving settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// ApiResponse of IxFeCloneReceivingSettingsByBusinessUnitResponseDTO - ApiResponse IxFeServicesManagementIxFeCloneReceivingSettingsByBusinessUnitQueueWithHttpInfo (IxFeReceivingCloneOptionsByBusinessUnitDTO options); - /// - /// This call allows to clone sending settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// IxFeCloneSendingSettingsByBusinessUnitResponseDTO - IxFeCloneSendingSettingsByBusinessUnitResponseDTO IxFeServicesManagementIxFeCloneSendingSettingsByBusinessUnitQueue (IxFeSendingCloneOptionsByBusinessUnitDTO options); - - /// - /// This call allows to clone sending settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// ApiResponse of IxFeCloneSendingSettingsByBusinessUnitResponseDTO - ApiResponse IxFeServicesManagementIxFeCloneSendingSettingsByBusinessUnitQueueWithHttpInfo (IxFeSendingCloneOptionsByBusinessUnitDTO options); - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option value - /// - void IxFeServicesManagementSetSendWorkflowDocumentsOption (bool? optionValue); - - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option value - /// ApiResponse of Object(void) - ApiResponse IxFeServicesManagementSetSendWorkflowDocumentsOptionWithHttpInfo (bool? optionValue); - /// - /// This method allows sort settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group sort options - /// - void IxFeServicesManagementSortFieldGroups (List options); - - /// - /// This method allows sort settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group sort options - /// ApiResponse of Object(void) - ApiResponse IxFeServicesManagementSortFieldGroupsWithHttpInfo (List options); - /// - /// This call updates business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// IxFeBusinessUnitSettingsDTO - IxFeBusinessUnitSettingsDTO IxFeServicesManagementUpdateBusinessUnitSettings (int? id, IxFeBusinessUnitSettingsDTO businessUnitSettings); - - /// - /// This call updates business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// ApiResponse of IxFeBusinessUnitSettingsDTO - ApiResponse IxFeServicesManagementUpdateBusinessUnitSettingsWithHttpInfo (int? id, IxFeBusinessUnitSettingsDTO businessUnitSettings); - /// - /// This call updates specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// IxFeNotificationSettingsDTO - IxFeNotificationSettingsDTO IxFeServicesManagementUpdateNotificationSettings (int? id, IxFeNotificationSettingsDTO notificationSettings); - - /// - /// This call updates specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// ApiResponse of IxFeNotificationSettingsDTO - ApiResponse IxFeServicesManagementUpdateNotificationSettingsWithHttpInfo (int? id, IxFeNotificationSettingsDTO notificationSettings); - /// - /// This call updates specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Receiving settings for update - /// IxFeReceivingSettingsDTO - IxFeReceivingSettingsDTO IxFeServicesManagementUpdateReceivingSettings (int? id, IxFeReceivingSettingsDTO receivingSettings); - - /// - /// This call updates specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Receiving settings for update - /// ApiResponse of IxFeReceivingSettingsDTO - ApiResponse IxFeServicesManagementUpdateReceivingSettingsWithHttpInfo (int? id, IxFeReceivingSettingsDTO receivingSettings); - /// - /// This call updates specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// IxFeSendingSettingsDTO - IxFeSendingSettingsDTO IxFeServicesManagementUpdateSendingSettings (int? id, IxFeSendingSettingsDTO sendingSettings); - - /// - /// This call updates specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// ApiResponse of IxFeSendingSettingsDTO - ApiResponse IxFeServicesManagementUpdateSendingSettingsWithHttpInfo (int? id, IxFeSendingSettingsDTO sendingSettings); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call allows to check if it is possible to generate default configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of bool? - System.Threading.Tasks.Task IxFeServicesManagementCanGenerateStandardMappingAsync (); - - /// - /// This call allows to check if it is possible to generate default configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> IxFeServicesManagementCanGenerateStandardMappingAsyncWithHttpInfo (); - /// - /// This call deletes specific business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of void - System.Threading.Tasks.Task IxFeServicesManagementDeleteBusinessUnitSettingsAsync (int? id); - - /// - /// This call deletes specific business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> IxFeServicesManagementDeleteBusinessUnitSettingsAsyncWithHttpInfo (int? id); - /// - /// This call deletes specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of void - System.Threading.Tasks.Task IxFeServicesManagementDeleteNotificationSettingsAsync (int? id); - - /// - /// This call deletes specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> IxFeServicesManagementDeleteNotificationSettingsAsyncWithHttpInfo (int? id); - /// - /// This call deletes specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Task of void - System.Threading.Tasks.Task IxFeServicesManagementDeleteReceivingSettingsAsync (int? id); - - /// - /// This call deletes specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> IxFeServicesManagementDeleteReceivingSettingsAsyncWithHttpInfo (int? id); - /// - /// This call deletes specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of void - System.Threading.Tasks.Task IxFeServicesManagementDeleteSendingSettingsAsync (int? id); - - /// - /// This call deletes specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> IxFeServicesManagementDeleteSendingSettingsAsyncWithHttpInfo (int? id); - /// - /// This call allows to generate default configuration mapping with IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Options for mapping - /// Task of void - System.Threading.Tasks.Task IxFeServicesManagementGenerateStandardMappingAsync (IxFeMappingOptionsDTO options); - - /// - /// This call allows to generate default configuration mapping with IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Options for mapping - /// Task of ApiResponse - System.Threading.Tasks.Task> IxFeServicesManagementGenerateStandardMappingAsyncWithHttpInfo (IxFeMappingOptionsDTO options); - /// - /// This call gets specific business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of IxFeBusinessUnitSettingsDTO - System.Threading.Tasks.Task IxFeServicesManagementGetBusinessUnitSettingsByIdAsync (int? id); - - /// - /// This call gets specific business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of ApiResponse (IxFeBusinessUnitSettingsDTO) - System.Threading.Tasks.Task> IxFeServicesManagementGetBusinessUnitSettingsByIdAsyncWithHttpInfo (int? id); - /// - /// This call gets business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<IxFeBusinessUnitSettingsDTO> - System.Threading.Tasks.Task> IxFeServicesManagementGetBusinessUnitsSettingsAsync (); - - /// - /// This call gets business unit configured settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<IxFeBusinessUnitSettingsDTO>) - System.Threading.Tasks.Task>> IxFeServicesManagementGetBusinessUnitsSettingsAsyncWithHttpInfo (); - /// - /// This call gets all notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<IxFeNotificationSettingsDTO> - System.Threading.Tasks.Task> IxFeServicesManagementGetNotificationSettingsAsync (); - - /// - /// This call gets all notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<IxFeNotificationSettingsDTO>) - System.Threading.Tasks.Task>> IxFeServicesManagementGetNotificationSettingsAsyncWithHttpInfo (); - /// - /// This call gets specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of IxFeNotificationSettingsDTO - System.Threading.Tasks.Task IxFeServicesManagementGetNotificationSettingsByIdAsync (int? id); - - /// - /// This call gets specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of ApiResponse (IxFeNotificationSettingsDTO) - System.Threading.Tasks.Task> IxFeServicesManagementGetNotificationSettingsByIdAsyncWithHttpInfo (int? id); - /// - /// This call gets all settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<IxFeReceivingSettingsDTO> - System.Threading.Tasks.Task> IxFeServicesManagementGetReceivingSettingsAsync (); - - /// - /// This call gets all settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<IxFeReceivingSettingsDTO>) - System.Threading.Tasks.Task>> IxFeServicesManagementGetReceivingSettingsAsyncWithHttpInfo (); - /// - /// This call gets specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Task of IxFeReceivingSettingsDTO - System.Threading.Tasks.Task IxFeServicesManagementGetReceivingSettingsByIdAsync (int? id); - - /// - /// This call gets specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Task of ApiResponse (IxFeReceivingSettingsDTO) - System.Threading.Tasks.Task> IxFeServicesManagementGetReceivingSettingsByIdAsyncWithHttpInfo (int? id); - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of bool? - System.Threading.Tasks.Task IxFeServicesManagementGetSendWorkflowDocumentsOptionAsync (); - - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> IxFeServicesManagementGetSendWorkflowDocumentsOptionAsyncWithHttpInfo (); - /// - /// This call gets all sending settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business Unit code - /// Task of List<IxFeSendingSettingsDTO> - System.Threading.Tasks.Task> IxFeServicesManagementGetSendingSettingsAsync (string businessUnitCode); - - /// - /// This call gets all sending settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business Unit code - /// Task of ApiResponse (List<IxFeSendingSettingsDTO>) - System.Threading.Tasks.Task>> IxFeServicesManagementGetSendingSettingsAsyncWithHttpInfo (string businessUnitCode); - /// - /// This call gets specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of IxFeSendingSettingsDTO - System.Threading.Tasks.Task IxFeServicesManagementGetSendingSettingsByIdAsync (int? id); - - /// - /// This call gets specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse (IxFeSendingSettingsDTO) - System.Threading.Tasks.Task> IxFeServicesManagementGetSendingSettingsByIdAsyncWithHttpInfo (int? id); - /// - /// This call inserts business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// Task of IxFeBusinessUnitSettingsDTO - System.Threading.Tasks.Task IxFeServicesManagementInsertBusinessUnitSettingsAsync (IxFeBusinessUnitSettingsDTO businessUnitSettings); - - /// - /// This call inserts business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// Task of ApiResponse (IxFeBusinessUnitSettingsDTO) - System.Threading.Tasks.Task> IxFeServicesManagementInsertBusinessUnitSettingsAsyncWithHttpInfo (IxFeBusinessUnitSettingsDTO businessUnitSettings); - /// - /// This call inserts specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// Task of IxFeNotificationSettingsDTO - System.Threading.Tasks.Task IxFeServicesManagementInsertNotificationSettingsAsync (IxFeNotificationSettingsDTO notificationSettings); - - /// - /// This call inserts specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// Task of ApiResponse (IxFeNotificationSettingsDTO) - System.Threading.Tasks.Task> IxFeServicesManagementInsertNotificationSettingsAsyncWithHttpInfo (IxFeNotificationSettingsDTO notificationSettings); - /// - /// This call inserts specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings for insert - /// Task of IxFeReceivingSettingsDTO - System.Threading.Tasks.Task IxFeServicesManagementInsertReceivingSettingsAsync (IxFeReceivingSettingsDTO receivingSettings); - - /// - /// This call inserts specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings for insert - /// Task of ApiResponse (IxFeReceivingSettingsDTO) - System.Threading.Tasks.Task> IxFeServicesManagementInsertReceivingSettingsAsyncWithHttpInfo (IxFeReceivingSettingsDTO receivingSettings); - /// - /// This call inserts specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// Task of IxFeSendingSettingsDTO - System.Threading.Tasks.Task IxFeServicesManagementInsertSendingSettingsAsync (IxFeSendingSettingsDTO sendingSettings); - - /// - /// This call inserts specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// Task of ApiResponse (IxFeSendingSettingsDTO) - System.Threading.Tasks.Task> IxFeServicesManagementInsertSendingSettingsAsyncWithHttpInfo (IxFeSendingSettingsDTO sendingSettings); - /// - /// This call allows to clone receiving settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of IxFeCloneReceivingSettingsByBusinessUnitResponseDTO - System.Threading.Tasks.Task IxFeServicesManagementIxFeCloneReceivingSettingsByBusinessUnitQueueAsync (IxFeReceivingCloneOptionsByBusinessUnitDTO options); - - /// - /// This call allows to clone receiving settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of ApiResponse (IxFeCloneReceivingSettingsByBusinessUnitResponseDTO) - System.Threading.Tasks.Task> IxFeServicesManagementIxFeCloneReceivingSettingsByBusinessUnitQueueAsyncWithHttpInfo (IxFeReceivingCloneOptionsByBusinessUnitDTO options); - /// - /// This call allows to clone sending settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of IxFeCloneSendingSettingsByBusinessUnitResponseDTO - System.Threading.Tasks.Task IxFeServicesManagementIxFeCloneSendingSettingsByBusinessUnitQueueAsync (IxFeSendingCloneOptionsByBusinessUnitDTO options); - - /// - /// This call allows to clone sending settings by business unit - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of ApiResponse (IxFeCloneSendingSettingsByBusinessUnitResponseDTO) - System.Threading.Tasks.Task> IxFeServicesManagementIxFeCloneSendingSettingsByBusinessUnitQueueAsyncWithHttpInfo (IxFeSendingCloneOptionsByBusinessUnitDTO options); - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option value - /// Task of void - System.Threading.Tasks.Task IxFeServicesManagementSetSendWorkflowDocumentsOptionAsync (bool? optionValue); - - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option value - /// Task of ApiResponse - System.Threading.Tasks.Task> IxFeServicesManagementSetSendWorkflowDocumentsOptionAsyncWithHttpInfo (bool? optionValue); - /// - /// This method allows sort settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group sort options - /// Task of void - System.Threading.Tasks.Task IxFeServicesManagementSortFieldGroupsAsync (List options); - - /// - /// This method allows sort settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field group sort options - /// Task of ApiResponse - System.Threading.Tasks.Task> IxFeServicesManagementSortFieldGroupsAsyncWithHttpInfo (List options); - /// - /// This call updates business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// Task of IxFeBusinessUnitSettingsDTO - System.Threading.Tasks.Task IxFeServicesManagementUpdateBusinessUnitSettingsAsync (int? id, IxFeBusinessUnitSettingsDTO businessUnitSettings); - - /// - /// This call updates business unit settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// Task of ApiResponse (IxFeBusinessUnitSettingsDTO) - System.Threading.Tasks.Task> IxFeServicesManagementUpdateBusinessUnitSettingsAsyncWithHttpInfo (int? id, IxFeBusinessUnitSettingsDTO businessUnitSettings); - /// - /// This call updates specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// Task of IxFeNotificationSettingsDTO - System.Threading.Tasks.Task IxFeServicesManagementUpdateNotificationSettingsAsync (int? id, IxFeNotificationSettingsDTO notificationSettings); - - /// - /// This call updates specific notification settings for IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// Task of ApiResponse (IxFeNotificationSettingsDTO) - System.Threading.Tasks.Task> IxFeServicesManagementUpdateNotificationSettingsAsyncWithHttpInfo (int? id, IxFeNotificationSettingsDTO notificationSettings); - /// - /// This call updates specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Receiving settings for update - /// Task of IxFeReceivingSettingsDTO - System.Threading.Tasks.Task IxFeServicesManagementUpdateReceivingSettingsAsync (int? id, IxFeReceivingSettingsDTO receivingSettings); - - /// - /// This call updates specific settings for receiving docs from IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Receiving settings for update - /// Task of ApiResponse (IxFeReceivingSettingsDTO) - System.Threading.Tasks.Task> IxFeServicesManagementUpdateReceivingSettingsAsyncWithHttpInfo (int? id, IxFeReceivingSettingsDTO receivingSettings); - /// - /// This call updates specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// Task of IxFeSendingSettingsDTO - System.Threading.Tasks.Task IxFeServicesManagementUpdateSendingSettingsAsync (int? id, IxFeSendingSettingsDTO sendingSettings); - - /// - /// This call updates specific settings for sending docs to IX-FE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// Task of ApiResponse (IxFeSendingSettingsDTO) - System.Threading.Tasks.Task> IxFeServicesManagementUpdateSendingSettingsAsyncWithHttpInfo (int? id, IxFeSendingSettingsDTO sendingSettings); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class IxFeServicesManagementApi : IIxFeServicesManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public IxFeServicesManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public IxFeServicesManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call allows to check if it is possible to generate default configuration - /// - /// Thrown when fails to make API call - /// bool? - public bool? IxFeServicesManagementCanGenerateStandardMapping () - { - ApiResponse localVarResponse = IxFeServicesManagementCanGenerateStandardMappingWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call allows to check if it is possible to generate default configuration - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - public ApiResponse< bool? > IxFeServicesManagementCanGenerateStandardMappingWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxFe/Settings/CanGenerateStandardMapping"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementCanGenerateStandardMapping", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call allows to check if it is possible to generate default configuration - /// - /// Thrown when fails to make API call - /// Task of bool? - public async System.Threading.Tasks.Task IxFeServicesManagementCanGenerateStandardMappingAsync () - { - ApiResponse localVarResponse = await IxFeServicesManagementCanGenerateStandardMappingAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call allows to check if it is possible to generate default configuration - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> IxFeServicesManagementCanGenerateStandardMappingAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxFe/Settings/CanGenerateStandardMapping"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementCanGenerateStandardMapping", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call deletes specific business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// - public void IxFeServicesManagementDeleteBusinessUnitSettings (int? id) - { - IxFeServicesManagementDeleteBusinessUnitSettingsWithHttpInfo(id); - } - - /// - /// This call deletes specific business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// ApiResponse of Object(void) - public ApiResponse IxFeServicesManagementDeleteBusinessUnitSettingsWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementDeleteBusinessUnitSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementDeleteBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of void - public async System.Threading.Tasks.Task IxFeServicesManagementDeleteBusinessUnitSettingsAsync (int? id) - { - await IxFeServicesManagementDeleteBusinessUnitSettingsAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes specific business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxFeServicesManagementDeleteBusinessUnitSettingsAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementDeleteBusinessUnitSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementDeleteBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// - public void IxFeServicesManagementDeleteNotificationSettings (int? id) - { - IxFeServicesManagementDeleteNotificationSettingsWithHttpInfo(id); - } - - /// - /// This call deletes specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// ApiResponse of Object(void) - public ApiResponse IxFeServicesManagementDeleteNotificationSettingsWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementDeleteNotificationSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementDeleteNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of void - public async System.Threading.Tasks.Task IxFeServicesManagementDeleteNotificationSettingsAsync (int? id) - { - await IxFeServicesManagementDeleteNotificationSettingsAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxFeServicesManagementDeleteNotificationSettingsAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementDeleteNotificationSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementDeleteNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// - public void IxFeServicesManagementDeleteReceivingSettings (int? id) - { - IxFeServicesManagementDeleteReceivingSettingsWithHttpInfo(id); - } - - /// - /// This call deletes specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// ApiResponse of Object(void) - public ApiResponse IxFeServicesManagementDeleteReceivingSettingsWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementDeleteReceivingSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Receiving/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementDeleteReceivingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Task of void - public async System.Threading.Tasks.Task IxFeServicesManagementDeleteReceivingSettingsAsync (int? id) - { - await IxFeServicesManagementDeleteReceivingSettingsAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxFeServicesManagementDeleteReceivingSettingsAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementDeleteReceivingSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Receiving/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementDeleteReceivingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// - public void IxFeServicesManagementDeleteSendingSettings (int? id) - { - IxFeServicesManagementDeleteSendingSettingsWithHttpInfo(id); - } - - /// - /// This call deletes specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of Object(void) - public ApiResponse IxFeServicesManagementDeleteSendingSettingsWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementDeleteSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementDeleteSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of void - public async System.Threading.Tasks.Task IxFeServicesManagementDeleteSendingSettingsAsync (int? id) - { - await IxFeServicesManagementDeleteSendingSettingsAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxFeServicesManagementDeleteSendingSettingsAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementDeleteSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementDeleteSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows to generate default configuration mapping with IX-FE - /// - /// Thrown when fails to make API call - /// Options for mapping - /// - public void IxFeServicesManagementGenerateStandardMapping (IxFeMappingOptionsDTO options) - { - IxFeServicesManagementGenerateStandardMappingWithHttpInfo(options); - } - - /// - /// This call allows to generate default configuration mapping with IX-FE - /// - /// Thrown when fails to make API call - /// Options for mapping - /// ApiResponse of Object(void) - public ApiResponse IxFeServicesManagementGenerateStandardMappingWithHttpInfo (IxFeMappingOptionsDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling IxFeServicesManagementApi->IxFeServicesManagementGenerateStandardMapping"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/GenerateStandardMapping"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGenerateStandardMapping", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows to generate default configuration mapping with IX-FE - /// - /// Thrown when fails to make API call - /// Options for mapping - /// Task of void - public async System.Threading.Tasks.Task IxFeServicesManagementGenerateStandardMappingAsync (IxFeMappingOptionsDTO options) - { - await IxFeServicesManagementGenerateStandardMappingAsyncWithHttpInfo(options); - - } - - /// - /// This call allows to generate default configuration mapping with IX-FE - /// - /// Thrown when fails to make API call - /// Options for mapping - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxFeServicesManagementGenerateStandardMappingAsyncWithHttpInfo (IxFeMappingOptionsDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling IxFeServicesManagementApi->IxFeServicesManagementGenerateStandardMapping"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/GenerateStandardMapping"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGenerateStandardMapping", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call gets specific business unit configured settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// IxFeBusinessUnitSettingsDTO - public IxFeBusinessUnitSettingsDTO IxFeServicesManagementGetBusinessUnitSettingsById (int? id) - { - ApiResponse localVarResponse = IxFeServicesManagementGetBusinessUnitSettingsByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets specific business unit configured settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// ApiResponse of IxFeBusinessUnitSettingsDTO - public ApiResponse< IxFeBusinessUnitSettingsDTO > IxFeServicesManagementGetBusinessUnitSettingsByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementGetBusinessUnitSettingsById"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetBusinessUnitSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeBusinessUnitSettingsDTO))); - } - - /// - /// This call gets specific business unit configured settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of IxFeBusinessUnitSettingsDTO - public async System.Threading.Tasks.Task IxFeServicesManagementGetBusinessUnitSettingsByIdAsync (int? id) - { - ApiResponse localVarResponse = await IxFeServicesManagementGetBusinessUnitSettingsByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets specific business unit configured settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Task of ApiResponse (IxFeBusinessUnitSettingsDTO) - public async System.Threading.Tasks.Task> IxFeServicesManagementGetBusinessUnitSettingsByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementGetBusinessUnitSettingsById"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetBusinessUnitSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeBusinessUnitSettingsDTO))); - } - - /// - /// This call gets business unit configured settings - /// - /// Thrown when fails to make API call - /// List<IxFeBusinessUnitSettingsDTO> - public List IxFeServicesManagementGetBusinessUnitsSettings () - { - ApiResponse> localVarResponse = IxFeServicesManagementGetBusinessUnitsSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call gets business unit configured settings - /// - /// Thrown when fails to make API call - /// ApiResponse of List<IxFeBusinessUnitSettingsDTO> - public ApiResponse< List > IxFeServicesManagementGetBusinessUnitsSettingsWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxFe/Settings/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetBusinessUnitsSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets business unit configured settings - /// - /// Thrown when fails to make API call - /// Task of List<IxFeBusinessUnitSettingsDTO> - public async System.Threading.Tasks.Task> IxFeServicesManagementGetBusinessUnitsSettingsAsync () - { - ApiResponse> localVarResponse = await IxFeServicesManagementGetBusinessUnitsSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call gets business unit configured settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<IxFeBusinessUnitSettingsDTO>) - public async System.Threading.Tasks.Task>> IxFeServicesManagementGetBusinessUnitsSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxFe/Settings/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetBusinessUnitsSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets all notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// List<IxFeNotificationSettingsDTO> - public List IxFeServicesManagementGetNotificationSettings () - { - ApiResponse> localVarResponse = IxFeServicesManagementGetNotificationSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call gets all notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// ApiResponse of List<IxFeNotificationSettingsDTO> - public ApiResponse< List > IxFeServicesManagementGetNotificationSettingsWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets all notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Task of List<IxFeNotificationSettingsDTO> - public async System.Threading.Tasks.Task> IxFeServicesManagementGetNotificationSettingsAsync () - { - ApiResponse> localVarResponse = await IxFeServicesManagementGetNotificationSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call gets all notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<IxFeNotificationSettingsDTO>) - public async System.Threading.Tasks.Task>> IxFeServicesManagementGetNotificationSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// IxFeNotificationSettingsDTO - public IxFeNotificationSettingsDTO IxFeServicesManagementGetNotificationSettingsById (int? id) - { - ApiResponse localVarResponse = IxFeServicesManagementGetNotificationSettingsByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// ApiResponse of IxFeNotificationSettingsDTO - public ApiResponse< IxFeNotificationSettingsDTO > IxFeServicesManagementGetNotificationSettingsByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementGetNotificationSettingsById"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetNotificationSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeNotificationSettingsDTO))); - } - - /// - /// This call gets specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of IxFeNotificationSettingsDTO - public async System.Threading.Tasks.Task IxFeServicesManagementGetNotificationSettingsByIdAsync (int? id) - { - ApiResponse localVarResponse = await IxFeServicesManagementGetNotificationSettingsByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Task of ApiResponse (IxFeNotificationSettingsDTO) - public async System.Threading.Tasks.Task> IxFeServicesManagementGetNotificationSettingsByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementGetNotificationSettingsById"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetNotificationSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeNotificationSettingsDTO))); - } - - /// - /// This call gets all settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// List<IxFeReceivingSettingsDTO> - public List IxFeServicesManagementGetReceivingSettings () - { - ApiResponse> localVarResponse = IxFeServicesManagementGetReceivingSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call gets all settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// ApiResponse of List<IxFeReceivingSettingsDTO> - public ApiResponse< List > IxFeServicesManagementGetReceivingSettingsWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Receiving"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetReceivingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets all settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Task of List<IxFeReceivingSettingsDTO> - public async System.Threading.Tasks.Task> IxFeServicesManagementGetReceivingSettingsAsync () - { - ApiResponse> localVarResponse = await IxFeServicesManagementGetReceivingSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call gets all settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<IxFeReceivingSettingsDTO>) - public async System.Threading.Tasks.Task>> IxFeServicesManagementGetReceivingSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Receiving"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetReceivingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// IxFeReceivingSettingsDTO - public IxFeReceivingSettingsDTO IxFeServicesManagementGetReceivingSettingsById (int? id) - { - ApiResponse localVarResponse = IxFeServicesManagementGetReceivingSettingsByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// ApiResponse of IxFeReceivingSettingsDTO - public ApiResponse< IxFeReceivingSettingsDTO > IxFeServicesManagementGetReceivingSettingsByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementGetReceivingSettingsById"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Receiving/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetReceivingSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeReceivingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeReceivingSettingsDTO))); - } - - /// - /// This call gets specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Task of IxFeReceivingSettingsDTO - public async System.Threading.Tasks.Task IxFeServicesManagementGetReceivingSettingsByIdAsync (int? id) - { - ApiResponse localVarResponse = await IxFeServicesManagementGetReceivingSettingsByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Task of ApiResponse (IxFeReceivingSettingsDTO) - public async System.Threading.Tasks.Task> IxFeServicesManagementGetReceivingSettingsByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementGetReceivingSettingsById"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Receiving/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetReceivingSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeReceivingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeReceivingSettingsDTO))); - } - - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-FE - /// - /// Thrown when fails to make API call - /// bool? - public bool? IxFeServicesManagementGetSendWorkflowDocumentsOption () - { - ApiResponse localVarResponse = IxFeServicesManagementGetSendWorkflowDocumentsOptionWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-FE - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - public ApiResponse< bool? > IxFeServicesManagementGetSendWorkflowDocumentsOptionWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxFe/Settings/SendWorkflowDocumentsOption"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetSendWorkflowDocumentsOption", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-FE - /// - /// Thrown when fails to make API call - /// Task of bool? - public async System.Threading.Tasks.Task IxFeServicesManagementGetSendWorkflowDocumentsOptionAsync () - { - ApiResponse localVarResponse = await IxFeServicesManagementGetSendWorkflowDocumentsOptionAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the authorization to send the documents subjected to workflow for IX-FE - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> IxFeServicesManagementGetSendWorkflowDocumentsOptionAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxFe/Settings/SendWorkflowDocumentsOption"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetSendWorkflowDocumentsOption", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call gets all sending settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Business Unit code - /// List<IxFeSendingSettingsDTO> - public List IxFeServicesManagementGetSendingSettings (string businessUnitCode) - { - ApiResponse> localVarResponse = IxFeServicesManagementGetSendingSettingsWithHttpInfo(businessUnitCode); - return localVarResponse.Data; - } - - /// - /// This call gets all sending settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Business Unit code - /// ApiResponse of List<IxFeSendingSettingsDTO> - public ApiResponse< List > IxFeServicesManagementGetSendingSettingsWithHttpInfo (string businessUnitCode) - { - // verify the required parameter 'businessUnitCode' is set - if (businessUnitCode == null) - throw new ApiException(400, "Missing required parameter 'businessUnitCode' when calling IxFeServicesManagementApi->IxFeServicesManagementGetSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Sending"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets all sending settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Business Unit code - /// Task of List<IxFeSendingSettingsDTO> - public async System.Threading.Tasks.Task> IxFeServicesManagementGetSendingSettingsAsync (string businessUnitCode) - { - ApiResponse> localVarResponse = await IxFeServicesManagementGetSendingSettingsAsyncWithHttpInfo(businessUnitCode); - return localVarResponse.Data; - - } - - /// - /// This call gets all sending settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Business Unit code - /// Task of ApiResponse (List<IxFeSendingSettingsDTO>) - public async System.Threading.Tasks.Task>> IxFeServicesManagementGetSendingSettingsAsyncWithHttpInfo (string businessUnitCode) - { - // verify the required parameter 'businessUnitCode' is set - if (businessUnitCode == null) - throw new ApiException(400, "Missing required parameter 'businessUnitCode' when calling IxFeServicesManagementApi->IxFeServicesManagementGetSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Sending"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// IxFeSendingSettingsDTO - public IxFeSendingSettingsDTO IxFeServicesManagementGetSendingSettingsById (int? id) - { - ApiResponse localVarResponse = IxFeServicesManagementGetSendingSettingsByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// ApiResponse of IxFeSendingSettingsDTO - public ApiResponse< IxFeSendingSettingsDTO > IxFeServicesManagementGetSendingSettingsByIdWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementGetSendingSettingsById"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetSendingSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeSendingSettingsDTO))); - } - - /// - /// This call gets specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of IxFeSendingSettingsDTO - public async System.Threading.Tasks.Task IxFeServicesManagementGetSendingSettingsByIdAsync (int? id) - { - ApiResponse localVarResponse = await IxFeServicesManagementGetSendingSettingsByIdAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Task of ApiResponse (IxFeSendingSettingsDTO) - public async System.Threading.Tasks.Task> IxFeServicesManagementGetSendingSettingsByIdAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementGetSendingSettingsById"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementGetSendingSettingsById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeSendingSettingsDTO))); - } - - /// - /// This call inserts business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// IxFeBusinessUnitSettingsDTO - public IxFeBusinessUnitSettingsDTO IxFeServicesManagementInsertBusinessUnitSettings (IxFeBusinessUnitSettingsDTO businessUnitSettings) - { - ApiResponse localVarResponse = IxFeServicesManagementInsertBusinessUnitSettingsWithHttpInfo(businessUnitSettings); - return localVarResponse.Data; - } - - /// - /// This call inserts business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// ApiResponse of IxFeBusinessUnitSettingsDTO - public ApiResponse< IxFeBusinessUnitSettingsDTO > IxFeServicesManagementInsertBusinessUnitSettingsWithHttpInfo (IxFeBusinessUnitSettingsDTO businessUnitSettings) - { - // verify the required parameter 'businessUnitSettings' is set - if (businessUnitSettings == null) - throw new ApiException(400, "Missing required parameter 'businessUnitSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementInsertBusinessUnitSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitSettings != null && businessUnitSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitSettings); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementInsertBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeBusinessUnitSettingsDTO))); - } - - /// - /// This call inserts business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// Task of IxFeBusinessUnitSettingsDTO - public async System.Threading.Tasks.Task IxFeServicesManagementInsertBusinessUnitSettingsAsync (IxFeBusinessUnitSettingsDTO businessUnitSettings) - { - ApiResponse localVarResponse = await IxFeServicesManagementInsertBusinessUnitSettingsAsyncWithHttpInfo(businessUnitSettings); - return localVarResponse.Data; - - } - - /// - /// This call inserts business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings for insert - /// Task of ApiResponse (IxFeBusinessUnitSettingsDTO) - public async System.Threading.Tasks.Task> IxFeServicesManagementInsertBusinessUnitSettingsAsyncWithHttpInfo (IxFeBusinessUnitSettingsDTO businessUnitSettings) - { - // verify the required parameter 'businessUnitSettings' is set - if (businessUnitSettings == null) - throw new ApiException(400, "Missing required parameter 'businessUnitSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementInsertBusinessUnitSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/BusinessUnits"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitSettings != null && businessUnitSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitSettings); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementInsertBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeBusinessUnitSettingsDTO))); - } - - /// - /// This call inserts specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// IxFeNotificationSettingsDTO - public IxFeNotificationSettingsDTO IxFeServicesManagementInsertNotificationSettings (IxFeNotificationSettingsDTO notificationSettings) - { - ApiResponse localVarResponse = IxFeServicesManagementInsertNotificationSettingsWithHttpInfo(notificationSettings); - return localVarResponse.Data; - } - - /// - /// This call inserts specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// ApiResponse of IxFeNotificationSettingsDTO - public ApiResponse< IxFeNotificationSettingsDTO > IxFeServicesManagementInsertNotificationSettingsWithHttpInfo (IxFeNotificationSettingsDTO notificationSettings) - { - // verify the required parameter 'notificationSettings' is set - if (notificationSettings == null) - throw new ApiException(400, "Missing required parameter 'notificationSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementInsertNotificationSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (notificationSettings != null && notificationSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(notificationSettings); // http body (model) parameter - } - else - { - localVarPostBody = notificationSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementInsertNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeNotificationSettingsDTO))); - } - - /// - /// This call inserts specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// Task of IxFeNotificationSettingsDTO - public async System.Threading.Tasks.Task IxFeServicesManagementInsertNotificationSettingsAsync (IxFeNotificationSettingsDTO notificationSettings) - { - ApiResponse localVarResponse = await IxFeServicesManagementInsertNotificationSettingsAsyncWithHttpInfo(notificationSettings); - return localVarResponse.Data; - - } - - /// - /// This call inserts specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings for insert - /// Task of ApiResponse (IxFeNotificationSettingsDTO) - public async System.Threading.Tasks.Task> IxFeServicesManagementInsertNotificationSettingsAsyncWithHttpInfo (IxFeNotificationSettingsDTO notificationSettings) - { - // verify the required parameter 'notificationSettings' is set - if (notificationSettings == null) - throw new ApiException(400, "Missing required parameter 'notificationSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementInsertNotificationSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (notificationSettings != null && notificationSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(notificationSettings); // http body (model) parameter - } - else - { - localVarPostBody = notificationSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementInsertNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeNotificationSettingsDTO))); - } - - /// - /// This call inserts specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings for insert - /// IxFeReceivingSettingsDTO - public IxFeReceivingSettingsDTO IxFeServicesManagementInsertReceivingSettings (IxFeReceivingSettingsDTO receivingSettings) - { - ApiResponse localVarResponse = IxFeServicesManagementInsertReceivingSettingsWithHttpInfo(receivingSettings); - return localVarResponse.Data; - } - - /// - /// This call inserts specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings for insert - /// ApiResponse of IxFeReceivingSettingsDTO - public ApiResponse< IxFeReceivingSettingsDTO > IxFeServicesManagementInsertReceivingSettingsWithHttpInfo (IxFeReceivingSettingsDTO receivingSettings) - { - // verify the required parameter 'receivingSettings' is set - if (receivingSettings == null) - throw new ApiException(400, "Missing required parameter 'receivingSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementInsertReceivingSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Receiving"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (receivingSettings != null && receivingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(receivingSettings); // http body (model) parameter - } - else - { - localVarPostBody = receivingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementInsertReceivingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeReceivingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeReceivingSettingsDTO))); - } - - /// - /// This call inserts specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings for insert - /// Task of IxFeReceivingSettingsDTO - public async System.Threading.Tasks.Task IxFeServicesManagementInsertReceivingSettingsAsync (IxFeReceivingSettingsDTO receivingSettings) - { - ApiResponse localVarResponse = await IxFeServicesManagementInsertReceivingSettingsAsyncWithHttpInfo(receivingSettings); - return localVarResponse.Data; - - } - - /// - /// This call inserts specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings for insert - /// Task of ApiResponse (IxFeReceivingSettingsDTO) - public async System.Threading.Tasks.Task> IxFeServicesManagementInsertReceivingSettingsAsyncWithHttpInfo (IxFeReceivingSettingsDTO receivingSettings) - { - // verify the required parameter 'receivingSettings' is set - if (receivingSettings == null) - throw new ApiException(400, "Missing required parameter 'receivingSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementInsertReceivingSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Receiving"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (receivingSettings != null && receivingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(receivingSettings); // http body (model) parameter - } - else - { - localVarPostBody = receivingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementInsertReceivingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeReceivingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeReceivingSettingsDTO))); - } - - /// - /// This call inserts specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// IxFeSendingSettingsDTO - public IxFeSendingSettingsDTO IxFeServicesManagementInsertSendingSettings (IxFeSendingSettingsDTO sendingSettings) - { - ApiResponse localVarResponse = IxFeServicesManagementInsertSendingSettingsWithHttpInfo(sendingSettings); - return localVarResponse.Data; - } - - /// - /// This call inserts specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// ApiResponse of IxFeSendingSettingsDTO - public ApiResponse< IxFeSendingSettingsDTO > IxFeServicesManagementInsertSendingSettingsWithHttpInfo (IxFeSendingSettingsDTO sendingSettings) - { - // verify the required parameter 'sendingSettings' is set - if (sendingSettings == null) - throw new ApiException(400, "Missing required parameter 'sendingSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementInsertSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Sending"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sendingSettings != null && sendingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettings); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementInsertSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeSendingSettingsDTO))); - } - - /// - /// This call inserts specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// Task of IxFeSendingSettingsDTO - public async System.Threading.Tasks.Task IxFeServicesManagementInsertSendingSettingsAsync (IxFeSendingSettingsDTO sendingSettings) - { - ApiResponse localVarResponse = await IxFeServicesManagementInsertSendingSettingsAsyncWithHttpInfo(sendingSettings); - return localVarResponse.Data; - - } - - /// - /// This call inserts specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings for insert - /// Task of ApiResponse (IxFeSendingSettingsDTO) - public async System.Threading.Tasks.Task> IxFeServicesManagementInsertSendingSettingsAsyncWithHttpInfo (IxFeSendingSettingsDTO sendingSettings) - { - // verify the required parameter 'sendingSettings' is set - if (sendingSettings == null) - throw new ApiException(400, "Missing required parameter 'sendingSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementInsertSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Sending"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sendingSettings != null && sendingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettings); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementInsertSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeSendingSettingsDTO))); - } - - /// - /// This call allows to clone receiving settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// IxFeCloneReceivingSettingsByBusinessUnitResponseDTO - public IxFeCloneReceivingSettingsByBusinessUnitResponseDTO IxFeServicesManagementIxFeCloneReceivingSettingsByBusinessUnitQueue (IxFeReceivingCloneOptionsByBusinessUnitDTO options) - { - ApiResponse localVarResponse = IxFeServicesManagementIxFeCloneReceivingSettingsByBusinessUnitQueueWithHttpInfo(options); - return localVarResponse.Data; - } - - /// - /// This call allows to clone receiving settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// ApiResponse of IxFeCloneReceivingSettingsByBusinessUnitResponseDTO - public ApiResponse< IxFeCloneReceivingSettingsByBusinessUnitResponseDTO > IxFeServicesManagementIxFeCloneReceivingSettingsByBusinessUnitQueueWithHttpInfo (IxFeReceivingCloneOptionsByBusinessUnitDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling IxFeServicesManagementApi->IxFeServicesManagementIxFeCloneReceivingSettingsByBusinessUnitQueue"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Receiving/CloneByBusinessUnit"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementIxFeCloneReceivingSettingsByBusinessUnitQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeCloneReceivingSettingsByBusinessUnitResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeCloneReceivingSettingsByBusinessUnitResponseDTO))); - } - - /// - /// This call allows to clone receiving settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of IxFeCloneReceivingSettingsByBusinessUnitResponseDTO - public async System.Threading.Tasks.Task IxFeServicesManagementIxFeCloneReceivingSettingsByBusinessUnitQueueAsync (IxFeReceivingCloneOptionsByBusinessUnitDTO options) - { - ApiResponse localVarResponse = await IxFeServicesManagementIxFeCloneReceivingSettingsByBusinessUnitQueueAsyncWithHttpInfo(options); - return localVarResponse.Data; - - } - - /// - /// This call allows to clone receiving settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of ApiResponse (IxFeCloneReceivingSettingsByBusinessUnitResponseDTO) - public async System.Threading.Tasks.Task> IxFeServicesManagementIxFeCloneReceivingSettingsByBusinessUnitQueueAsyncWithHttpInfo (IxFeReceivingCloneOptionsByBusinessUnitDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling IxFeServicesManagementApi->IxFeServicesManagementIxFeCloneReceivingSettingsByBusinessUnitQueue"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Receiving/CloneByBusinessUnit"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementIxFeCloneReceivingSettingsByBusinessUnitQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeCloneReceivingSettingsByBusinessUnitResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeCloneReceivingSettingsByBusinessUnitResponseDTO))); - } - - /// - /// This call allows to clone sending settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// IxFeCloneSendingSettingsByBusinessUnitResponseDTO - public IxFeCloneSendingSettingsByBusinessUnitResponseDTO IxFeServicesManagementIxFeCloneSendingSettingsByBusinessUnitQueue (IxFeSendingCloneOptionsByBusinessUnitDTO options) - { - ApiResponse localVarResponse = IxFeServicesManagementIxFeCloneSendingSettingsByBusinessUnitQueueWithHttpInfo(options); - return localVarResponse.Data; - } - - /// - /// This call allows to clone sending settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// ApiResponse of IxFeCloneSendingSettingsByBusinessUnitResponseDTO - public ApiResponse< IxFeCloneSendingSettingsByBusinessUnitResponseDTO > IxFeServicesManagementIxFeCloneSendingSettingsByBusinessUnitQueueWithHttpInfo (IxFeSendingCloneOptionsByBusinessUnitDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling IxFeServicesManagementApi->IxFeServicesManagementIxFeCloneSendingSettingsByBusinessUnitQueue"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Sending/CloneByBusinessUnit"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementIxFeCloneSendingSettingsByBusinessUnitQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeCloneSendingSettingsByBusinessUnitResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeCloneSendingSettingsByBusinessUnitResponseDTO))); - } - - /// - /// This call allows to clone sending settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of IxFeCloneSendingSettingsByBusinessUnitResponseDTO - public async System.Threading.Tasks.Task IxFeServicesManagementIxFeCloneSendingSettingsByBusinessUnitQueueAsync (IxFeSendingCloneOptionsByBusinessUnitDTO options) - { - ApiResponse localVarResponse = await IxFeServicesManagementIxFeCloneSendingSettingsByBusinessUnitQueueAsyncWithHttpInfo(options); - return localVarResponse.Data; - - } - - /// - /// This call allows to clone sending settings by business unit - /// - /// Thrown when fails to make API call - /// Clone options - /// Task of ApiResponse (IxFeCloneSendingSettingsByBusinessUnitResponseDTO) - public async System.Threading.Tasks.Task> IxFeServicesManagementIxFeCloneSendingSettingsByBusinessUnitQueueAsyncWithHttpInfo (IxFeSendingCloneOptionsByBusinessUnitDTO options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling IxFeServicesManagementApi->IxFeServicesManagementIxFeCloneSendingSettingsByBusinessUnitQueue"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Sending/CloneByBusinessUnit"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementIxFeCloneSendingSettingsByBusinessUnitQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeCloneSendingSettingsByBusinessUnitResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeCloneSendingSettingsByBusinessUnitResponseDTO))); - } - - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-FE - /// - /// Thrown when fails to make API call - /// Option value - /// - public void IxFeServicesManagementSetSendWorkflowDocumentsOption (bool? optionValue) - { - IxFeServicesManagementSetSendWorkflowDocumentsOptionWithHttpInfo(optionValue); - } - - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-FE - /// - /// Thrown when fails to make API call - /// Option value - /// ApiResponse of Object(void) - public ApiResponse IxFeServicesManagementSetSendWorkflowDocumentsOptionWithHttpInfo (bool? optionValue) - { - // verify the required parameter 'optionValue' is set - if (optionValue == null) - throw new ApiException(400, "Missing required parameter 'optionValue' when calling IxFeServicesManagementApi->IxFeServicesManagementSetSendWorkflowDocumentsOption"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/SendWorkflowDocumentsOption"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (optionValue != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "optionValue", optionValue)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementSetSendWorkflowDocumentsOption", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-FE - /// - /// Thrown when fails to make API call - /// Option value - /// Task of void - public async System.Threading.Tasks.Task IxFeServicesManagementSetSendWorkflowDocumentsOptionAsync (bool? optionValue) - { - await IxFeServicesManagementSetSendWorkflowDocumentsOptionAsyncWithHttpInfo(optionValue); - - } - - /// - /// This call sets the authorization to send the documents subjected to workflow for IX-FE - /// - /// Thrown when fails to make API call - /// Option value - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxFeServicesManagementSetSendWorkflowDocumentsOptionAsyncWithHttpInfo (bool? optionValue) - { - // verify the required parameter 'optionValue' is set - if (optionValue == null) - throw new ApiException(400, "Missing required parameter 'optionValue' when calling IxFeServicesManagementApi->IxFeServicesManagementSetSendWorkflowDocumentsOption"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/SendWorkflowDocumentsOption"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (optionValue != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "optionValue", optionValue)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementSetSendWorkflowDocumentsOption", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows sort settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Field group sort options - /// - public void IxFeServicesManagementSortFieldGroups (List options) - { - IxFeServicesManagementSortFieldGroupsWithHttpInfo(options); - } - - /// - /// This method allows sort settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Field group sort options - /// ApiResponse of Object(void) - public ApiResponse IxFeServicesManagementSortFieldGroupsWithHttpInfo (List options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling IxFeServicesManagementApi->IxFeServicesManagementSortFieldGroups"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Sending/Sort"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementSortFieldGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method allows sort settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Field group sort options - /// Task of void - public async System.Threading.Tasks.Task IxFeServicesManagementSortFieldGroupsAsync (List options) - { - await IxFeServicesManagementSortFieldGroupsAsyncWithHttpInfo(options); - - } - - /// - /// This method allows sort settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Field group sort options - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxFeServicesManagementSortFieldGroupsAsyncWithHttpInfo (List options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling IxFeServicesManagementApi->IxFeServicesManagementSortFieldGroups"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Sending/Sort"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementSortFieldGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// IxFeBusinessUnitSettingsDTO - public IxFeBusinessUnitSettingsDTO IxFeServicesManagementUpdateBusinessUnitSettings (int? id, IxFeBusinessUnitSettingsDTO businessUnitSettings) - { - ApiResponse localVarResponse = IxFeServicesManagementUpdateBusinessUnitSettingsWithHttpInfo(id, businessUnitSettings); - return localVarResponse.Data; - } - - /// - /// This call updates business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// ApiResponse of IxFeBusinessUnitSettingsDTO - public ApiResponse< IxFeBusinessUnitSettingsDTO > IxFeServicesManagementUpdateBusinessUnitSettingsWithHttpInfo (int? id, IxFeBusinessUnitSettingsDTO businessUnitSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateBusinessUnitSettings"); - // verify the required parameter 'businessUnitSettings' is set - if (businessUnitSettings == null) - throw new ApiException(400, "Missing required parameter 'businessUnitSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateBusinessUnitSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (businessUnitSettings != null && businessUnitSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitSettings); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementUpdateBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeBusinessUnitSettingsDTO))); - } - - /// - /// This call updates business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// Task of IxFeBusinessUnitSettingsDTO - public async System.Threading.Tasks.Task IxFeServicesManagementUpdateBusinessUnitSettingsAsync (int? id, IxFeBusinessUnitSettingsDTO businessUnitSettings) - { - ApiResponse localVarResponse = await IxFeServicesManagementUpdateBusinessUnitSettingsAsyncWithHttpInfo(id, businessUnitSettings); - return localVarResponse.Data; - - } - - /// - /// This call updates business unit settings - /// - /// Thrown when fails to make API call - /// Business unit settings identifier - /// Business unit settings for update - /// Task of ApiResponse (IxFeBusinessUnitSettingsDTO) - public async System.Threading.Tasks.Task> IxFeServicesManagementUpdateBusinessUnitSettingsAsyncWithHttpInfo (int? id, IxFeBusinessUnitSettingsDTO businessUnitSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateBusinessUnitSettings"); - // verify the required parameter 'businessUnitSettings' is set - if (businessUnitSettings == null) - throw new ApiException(400, "Missing required parameter 'businessUnitSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateBusinessUnitSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/BusinessUnits/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (businessUnitSettings != null && businessUnitSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(businessUnitSettings); // http body (model) parameter - } - else - { - localVarPostBody = businessUnitSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementUpdateBusinessUnitSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeBusinessUnitSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeBusinessUnitSettingsDTO))); - } - - /// - /// This call updates specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// IxFeNotificationSettingsDTO - public IxFeNotificationSettingsDTO IxFeServicesManagementUpdateNotificationSettings (int? id, IxFeNotificationSettingsDTO notificationSettings) - { - ApiResponse localVarResponse = IxFeServicesManagementUpdateNotificationSettingsWithHttpInfo(id, notificationSettings); - return localVarResponse.Data; - } - - /// - /// This call updates specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// ApiResponse of IxFeNotificationSettingsDTO - public ApiResponse< IxFeNotificationSettingsDTO > IxFeServicesManagementUpdateNotificationSettingsWithHttpInfo (int? id, IxFeNotificationSettingsDTO notificationSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateNotificationSettings"); - // verify the required parameter 'notificationSettings' is set - if (notificationSettings == null) - throw new ApiException(400, "Missing required parameter 'notificationSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateNotificationSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (notificationSettings != null && notificationSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(notificationSettings); // http body (model) parameter - } - else - { - localVarPostBody = notificationSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementUpdateNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeNotificationSettingsDTO))); - } - - /// - /// This call updates specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// Task of IxFeNotificationSettingsDTO - public async System.Threading.Tasks.Task IxFeServicesManagementUpdateNotificationSettingsAsync (int? id, IxFeNotificationSettingsDTO notificationSettings) - { - ApiResponse localVarResponse = await IxFeServicesManagementUpdateNotificationSettingsAsyncWithHttpInfo(id, notificationSettings); - return localVarResponse.Data; - - } - - /// - /// This call updates specific notification settings for IX-FE - /// - /// Thrown when fails to make API call - /// Notification settings identifier - /// Notification settings for update - /// Task of ApiResponse (IxFeNotificationSettingsDTO) - public async System.Threading.Tasks.Task> IxFeServicesManagementUpdateNotificationSettingsAsyncWithHttpInfo (int? id, IxFeNotificationSettingsDTO notificationSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateNotificationSettings"); - // verify the required parameter 'notificationSettings' is set - if (notificationSettings == null) - throw new ApiException(400, "Missing required parameter 'notificationSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateNotificationSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Notifications/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (notificationSettings != null && notificationSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(notificationSettings); // http body (model) parameter - } - else - { - localVarPostBody = notificationSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementUpdateNotificationSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeNotificationSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeNotificationSettingsDTO))); - } - - /// - /// This call updates specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Receiving settings for update - /// IxFeReceivingSettingsDTO - public IxFeReceivingSettingsDTO IxFeServicesManagementUpdateReceivingSettings (int? id, IxFeReceivingSettingsDTO receivingSettings) - { - ApiResponse localVarResponse = IxFeServicesManagementUpdateReceivingSettingsWithHttpInfo(id, receivingSettings); - return localVarResponse.Data; - } - - /// - /// This call updates specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Receiving settings for update - /// ApiResponse of IxFeReceivingSettingsDTO - public ApiResponse< IxFeReceivingSettingsDTO > IxFeServicesManagementUpdateReceivingSettingsWithHttpInfo (int? id, IxFeReceivingSettingsDTO receivingSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateReceivingSettings"); - // verify the required parameter 'receivingSettings' is set - if (receivingSettings == null) - throw new ApiException(400, "Missing required parameter 'receivingSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateReceivingSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Receiving/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (receivingSettings != null && receivingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(receivingSettings); // http body (model) parameter - } - else - { - localVarPostBody = receivingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementUpdateReceivingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeReceivingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeReceivingSettingsDTO))); - } - - /// - /// This call updates specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Receiving settings for update - /// Task of IxFeReceivingSettingsDTO - public async System.Threading.Tasks.Task IxFeServicesManagementUpdateReceivingSettingsAsync (int? id, IxFeReceivingSettingsDTO receivingSettings) - { - ApiResponse localVarResponse = await IxFeServicesManagementUpdateReceivingSettingsAsyncWithHttpInfo(id, receivingSettings); - return localVarResponse.Data; - - } - - /// - /// This call updates specific settings for receiving docs from IX-FE - /// - /// Thrown when fails to make API call - /// Receiving settings identifier - /// Receiving settings for update - /// Task of ApiResponse (IxFeReceivingSettingsDTO) - public async System.Threading.Tasks.Task> IxFeServicesManagementUpdateReceivingSettingsAsyncWithHttpInfo (int? id, IxFeReceivingSettingsDTO receivingSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateReceivingSettings"); - // verify the required parameter 'receivingSettings' is set - if (receivingSettings == null) - throw new ApiException(400, "Missing required parameter 'receivingSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateReceivingSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Receiving/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (receivingSettings != null && receivingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(receivingSettings); // http body (model) parameter - } - else - { - localVarPostBody = receivingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementUpdateReceivingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeReceivingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeReceivingSettingsDTO))); - } - - /// - /// This call updates specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// IxFeSendingSettingsDTO - public IxFeSendingSettingsDTO IxFeServicesManagementUpdateSendingSettings (int? id, IxFeSendingSettingsDTO sendingSettings) - { - ApiResponse localVarResponse = IxFeServicesManagementUpdateSendingSettingsWithHttpInfo(id, sendingSettings); - return localVarResponse.Data; - } - - /// - /// This call updates specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// ApiResponse of IxFeSendingSettingsDTO - public ApiResponse< IxFeSendingSettingsDTO > IxFeServicesManagementUpdateSendingSettingsWithHttpInfo (int? id, IxFeSendingSettingsDTO sendingSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateSendingSettings"); - // verify the required parameter 'sendingSettings' is set - if (sendingSettings == null) - throw new ApiException(400, "Missing required parameter 'sendingSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sendingSettings != null && sendingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettings); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementUpdateSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeSendingSettingsDTO))); - } - - /// - /// This call updates specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// Task of IxFeSendingSettingsDTO - public async System.Threading.Tasks.Task IxFeServicesManagementUpdateSendingSettingsAsync (int? id, IxFeSendingSettingsDTO sendingSettings) - { - ApiResponse localVarResponse = await IxFeServicesManagementUpdateSendingSettingsAsyncWithHttpInfo(id, sendingSettings); - return localVarResponse.Data; - - } - - /// - /// This call updates specific settings for sending docs to IX-FE - /// - /// Thrown when fails to make API call - /// Sending settings identifier - /// Sending settings for update - /// Task of ApiResponse (IxFeSendingSettingsDTO) - public async System.Threading.Tasks.Task> IxFeServicesManagementUpdateSendingSettingsAsyncWithHttpInfo (int? id, IxFeSendingSettingsDTO sendingSettings) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateSendingSettings"); - // verify the required parameter 'sendingSettings' is set - if (sendingSettings == null) - throw new ApiException(400, "Missing required parameter 'sendingSettings' when calling IxFeServicesManagementApi->IxFeServicesManagementUpdateSendingSettings"); - - var localVarPath = "/api/management/IxServices/IxFe/Settings/Sending/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sendingSettings != null && sendingSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sendingSettings); // http body (model) parameter - } - else - { - localVarPostBody = sendingSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxFeServicesManagementUpdateSendingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxFeSendingSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxFeSendingSettingsDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/IxServicesManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/IxServicesManagementApi.cs deleted file mode 100644 index 521937e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/IxServicesManagementApi.cs +++ /dev/null @@ -1,2702 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IIxServicesManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call checks IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for test - /// bool? - bool? IxServicesManagementCheckIxCredentials (IxCredentialsForRequestDTO credentials); - - /// - /// This call checks IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for test - /// ApiResponse of bool? - ApiResponse IxServicesManagementCheckIxCredentialsWithHttpInfo (IxCredentialsForRequestDTO credentials); - /// - /// This call deletes IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// - void IxServicesManagementDeleteIxCredentials (int? id); - - /// - /// This call deletes IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// ApiResponse of Object(void) - ApiResponse IxServicesManagementDeleteIxCredentialsWithHttpInfo (int? id); - /// - /// This call returns IX-CE document type details - /// - /// - /// - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX document type identifier - /// Credentials - /// IxDocumentTypeDetailDTO - IxDocumentTypeDetailDTO IxServicesManagementGetDocumentTypeDetail (string businessUnitId, string docTypeId, IxCredentialsForRequestDTO credentials); - - /// - /// This call returns IX-CE document type details - /// - /// - /// - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX document type identifier - /// Credentials - /// ApiResponse of IxDocumentTypeDetailDTO - ApiResponse IxServicesManagementGetDocumentTypeDetailWithHttpInfo (string businessUnitId, string docTypeId, IxCredentialsForRequestDTO credentials); - /// - /// This call returns document types configured in IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX business unit UO identifier - /// Credentials - /// List<IxDocumentTypeDTO> - List IxServicesManagementGetDocumentTypes (string businessUnitId, string uoId, IxCredentialsForRequestDTO credentials); - - /// - /// This call returns document types configured in IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX business unit UO identifier - /// Credentials - /// ApiResponse of List<IxDocumentTypeDTO> - ApiResponse> IxServicesManagementGetDocumentTypesWithHttpInfo (string businessUnitId, string uoId, IxCredentialsForRequestDTO credentials); - /// - /// This call returns business unit UOs configured in IX - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// IX business unit identifier - /// Credentials - /// List<IxBusinessUnitUoDTO> - List IxServicesManagementGetIxBusinessUnitUos (int? serviceType, string businessUnitId, IxCredentialsForRequestDTO credentials); - - /// - /// This call returns business unit UOs configured in IX - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// IX business unit identifier - /// Credentials - /// ApiResponse of List<IxBusinessUnitUoDTO> - ApiResponse> IxServicesManagementGetIxBusinessUnitUosWithHttpInfo (int? serviceType, string businessUnitId, IxCredentialsForRequestDTO credentials); - /// - /// This call returns business units configured in IX - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Credentials - /// List<IxBusinessUnitDTO> - List IxServicesManagementGetIxBusinessUnits (int? serviceType, IxCredentialsForRequestDTO credentials); - - /// - /// This call returns business units configured in IX - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Credentials - /// ApiResponse of List<IxBusinessUnitDTO> - ApiResponse> IxServicesManagementGetIxBusinessUnitsWithHttpInfo (int? serviceType, IxCredentialsForRequestDTO credentials); - /// - /// This call returns IX-CE notification types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<IxCeNotificationDTO> - List IxServicesManagementGetIxCeNotifications (); - - /// - /// This call returns IX-CE notification types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<IxCeNotificationDTO> - ApiResponse> IxServicesManagementGetIxCeNotificationsWithHttpInfo (); - /// - /// This call returns IX configured credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Possible values: 0: Global 1: BusinessUnit 2: Rule - /// Business unit identifier (optional) - /// Sending setting rule identifier (optional) - /// IxCredentialsTreeDTO - IxCredentialsTreeDTO IxServicesManagementGetIxCredentials (int? serviceType, int? context, string businessUnitCode = null, int? ruleId = null); - - /// - /// This call returns IX configured credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Possible values: 0: Global 1: BusinessUnit 2: Rule - /// Business unit identifier (optional) - /// Sending setting rule identifier (optional) - /// ApiResponse of IxCredentialsTreeDTO - ApiResponse IxServicesManagementGetIxCredentialsWithHttpInfo (int? serviceType, int? context, string businessUnitCode = null, int? ruleId = null); - /// - /// This call returns IX-FE fields for mapping - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: File 1: Invoice 2: NotificationSending 3: NotificationReceiving - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification (optional) - /// List<IxFeFieldDTO> - List IxServicesManagementGetIxFeFields (int? context, int? notificationType = null); - - /// - /// This call returns IX-FE fields for mapping - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: File 1: Invoice 2: NotificationSending 3: NotificationReceiving - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification (optional) - /// ApiResponse of List<IxFeFieldDTO> - ApiResponse> IxServicesManagementGetIxFeFieldsWithHttpInfo (int? context, int? notificationType = null); - /// - /// This call returns IX-FE notification types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<IxFeNotificationDTO> - List IxServicesManagementGetIxFeNotifications (); - - /// - /// This call returns IX-FE notification types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<IxFeNotificationDTO> - ApiResponse> IxServicesManagementGetIxFeNotificationsWithHttpInfo (); - /// - /// This call inserts IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// - void IxServicesManagementInsertIxCredentials (IxCredentialsDTO credentials); - - /// - /// This call inserts IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// ApiResponse of Object(void) - ApiResponse IxServicesManagementInsertIxCredentialsWithHttpInfo (IxCredentialsDTO credentials); - /// - /// This call updates IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// - void IxServicesManagementUpdateIxCredentials (int? id, IxCredentialsDTO credentials); - - /// - /// This call updates IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// ApiResponse of Object(void) - ApiResponse IxServicesManagementUpdateIxCredentialsWithHttpInfo (int? id, IxCredentialsDTO credentials); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call checks IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for test - /// Task of bool? - System.Threading.Tasks.Task IxServicesManagementCheckIxCredentialsAsync (IxCredentialsForRequestDTO credentials); - - /// - /// This call checks IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for test - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> IxServicesManagementCheckIxCredentialsAsyncWithHttpInfo (IxCredentialsForRequestDTO credentials); - /// - /// This call deletes IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Task of void - System.Threading.Tasks.Task IxServicesManagementDeleteIxCredentialsAsync (int? id); - - /// - /// This call deletes IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> IxServicesManagementDeleteIxCredentialsAsyncWithHttpInfo (int? id); - /// - /// This call returns IX-CE document type details - /// - /// - /// - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX document type identifier - /// Credentials - /// Task of IxDocumentTypeDetailDTO - System.Threading.Tasks.Task IxServicesManagementGetDocumentTypeDetailAsync (string businessUnitId, string docTypeId, IxCredentialsForRequestDTO credentials); - - /// - /// This call returns IX-CE document type details - /// - /// - /// - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX document type identifier - /// Credentials - /// Task of ApiResponse (IxDocumentTypeDetailDTO) - System.Threading.Tasks.Task> IxServicesManagementGetDocumentTypeDetailAsyncWithHttpInfo (string businessUnitId, string docTypeId, IxCredentialsForRequestDTO credentials); - /// - /// This call returns document types configured in IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX business unit UO identifier - /// Credentials - /// Task of List<IxDocumentTypeDTO> - System.Threading.Tasks.Task> IxServicesManagementGetDocumentTypesAsync (string businessUnitId, string uoId, IxCredentialsForRequestDTO credentials); - - /// - /// This call returns document types configured in IX-CE - /// - /// - /// - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX business unit UO identifier - /// Credentials - /// Task of ApiResponse (List<IxDocumentTypeDTO>) - System.Threading.Tasks.Task>> IxServicesManagementGetDocumentTypesAsyncWithHttpInfo (string businessUnitId, string uoId, IxCredentialsForRequestDTO credentials); - /// - /// This call returns business unit UOs configured in IX - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// IX business unit identifier - /// Credentials - /// Task of List<IxBusinessUnitUoDTO> - System.Threading.Tasks.Task> IxServicesManagementGetIxBusinessUnitUosAsync (int? serviceType, string businessUnitId, IxCredentialsForRequestDTO credentials); - - /// - /// This call returns business unit UOs configured in IX - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// IX business unit identifier - /// Credentials - /// Task of ApiResponse (List<IxBusinessUnitUoDTO>) - System.Threading.Tasks.Task>> IxServicesManagementGetIxBusinessUnitUosAsyncWithHttpInfo (int? serviceType, string businessUnitId, IxCredentialsForRequestDTO credentials); - /// - /// This call returns business units configured in IX - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Credentials - /// Task of List<IxBusinessUnitDTO> - System.Threading.Tasks.Task> IxServicesManagementGetIxBusinessUnitsAsync (int? serviceType, IxCredentialsForRequestDTO credentials); - - /// - /// This call returns business units configured in IX - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Credentials - /// Task of ApiResponse (List<IxBusinessUnitDTO>) - System.Threading.Tasks.Task>> IxServicesManagementGetIxBusinessUnitsAsyncWithHttpInfo (int? serviceType, IxCredentialsForRequestDTO credentials); - /// - /// This call returns IX-CE notification types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<IxCeNotificationDTO> - System.Threading.Tasks.Task> IxServicesManagementGetIxCeNotificationsAsync (); - - /// - /// This call returns IX-CE notification types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<IxCeNotificationDTO>) - System.Threading.Tasks.Task>> IxServicesManagementGetIxCeNotificationsAsyncWithHttpInfo (); - /// - /// This call returns IX configured credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Possible values: 0: Global 1: BusinessUnit 2: Rule - /// Business unit identifier (optional) - /// Sending setting rule identifier (optional) - /// Task of IxCredentialsTreeDTO - System.Threading.Tasks.Task IxServicesManagementGetIxCredentialsAsync (int? serviceType, int? context, string businessUnitCode = null, int? ruleId = null); - - /// - /// This call returns IX configured credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Possible values: 0: Global 1: BusinessUnit 2: Rule - /// Business unit identifier (optional) - /// Sending setting rule identifier (optional) - /// Task of ApiResponse (IxCredentialsTreeDTO) - System.Threading.Tasks.Task> IxServicesManagementGetIxCredentialsAsyncWithHttpInfo (int? serviceType, int? context, string businessUnitCode = null, int? ruleId = null); - /// - /// This call returns IX-FE fields for mapping - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: File 1: Invoice 2: NotificationSending 3: NotificationReceiving - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification (optional) - /// Task of List<IxFeFieldDTO> - System.Threading.Tasks.Task> IxServicesManagementGetIxFeFieldsAsync (int? context, int? notificationType = null); - - /// - /// This call returns IX-FE fields for mapping - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: File 1: Invoice 2: NotificationSending 3: NotificationReceiving - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification (optional) - /// Task of ApiResponse (List<IxFeFieldDTO>) - System.Threading.Tasks.Task>> IxServicesManagementGetIxFeFieldsAsyncWithHttpInfo (int? context, int? notificationType = null); - /// - /// This call returns IX-FE notification types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<IxFeNotificationDTO> - System.Threading.Tasks.Task> IxServicesManagementGetIxFeNotificationsAsync (); - - /// - /// This call returns IX-FE notification types - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<IxFeNotificationDTO>) - System.Threading.Tasks.Task>> IxServicesManagementGetIxFeNotificationsAsyncWithHttpInfo (); - /// - /// This call inserts IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// Task of void - System.Threading.Tasks.Task IxServicesManagementInsertIxCredentialsAsync (IxCredentialsDTO credentials); - - /// - /// This call inserts IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// Task of ApiResponse - System.Threading.Tasks.Task> IxServicesManagementInsertIxCredentialsAsyncWithHttpInfo (IxCredentialsDTO credentials); - /// - /// This call updates IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// Task of void - System.Threading.Tasks.Task IxServicesManagementUpdateIxCredentialsAsync (int? id, IxCredentialsDTO credentials); - - /// - /// This call updates IX credentials - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// Task of ApiResponse - System.Threading.Tasks.Task> IxServicesManagementUpdateIxCredentialsAsyncWithHttpInfo (int? id, IxCredentialsDTO credentials); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class IxServicesManagementApi : IIxServicesManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public IxServicesManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public IxServicesManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call checks IX credentials - /// - /// Thrown when fails to make API call - /// Credentials for test - /// bool? - public bool? IxServicesManagementCheckIxCredentials (IxCredentialsForRequestDTO credentials) - { - ApiResponse localVarResponse = IxServicesManagementCheckIxCredentialsWithHttpInfo(credentials); - return localVarResponse.Data; - } - - /// - /// This call checks IX credentials - /// - /// Thrown when fails to make API call - /// Credentials for test - /// ApiResponse of bool? - public ApiResponse< bool? > IxServicesManagementCheckIxCredentialsWithHttpInfo (IxCredentialsForRequestDTO credentials) - { - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling IxServicesManagementApi->IxServicesManagementCheckIxCredentials"); - - var localVarPath = "/api/management/IxServices/Credentials/Check"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementCheckIxCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call checks IX credentials - /// - /// Thrown when fails to make API call - /// Credentials for test - /// Task of bool? - public async System.Threading.Tasks.Task IxServicesManagementCheckIxCredentialsAsync (IxCredentialsForRequestDTO credentials) - { - ApiResponse localVarResponse = await IxServicesManagementCheckIxCredentialsAsyncWithHttpInfo(credentials); - return localVarResponse.Data; - - } - - /// - /// This call checks IX credentials - /// - /// Thrown when fails to make API call - /// Credentials for test - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> IxServicesManagementCheckIxCredentialsAsyncWithHttpInfo (IxCredentialsForRequestDTO credentials) - { - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling IxServicesManagementApi->IxServicesManagementCheckIxCredentials"); - - var localVarPath = "/api/management/IxServices/Credentials/Check"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementCheckIxCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call deletes IX credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// - public void IxServicesManagementDeleteIxCredentials (int? id) - { - IxServicesManagementDeleteIxCredentialsWithHttpInfo(id); - } - - /// - /// This call deletes IX credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// ApiResponse of Object(void) - public ApiResponse IxServicesManagementDeleteIxCredentialsWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxServicesManagementApi->IxServicesManagementDeleteIxCredentials"); - - var localVarPath = "/api/management/IxServices/Credentials/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementDeleteIxCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes IX credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Task of void - public async System.Threading.Tasks.Task IxServicesManagementDeleteIxCredentialsAsync (int? id) - { - await IxServicesManagementDeleteIxCredentialsAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes IX credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxServicesManagementDeleteIxCredentialsAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxServicesManagementApi->IxServicesManagementDeleteIxCredentials"); - - var localVarPath = "/api/management/IxServices/Credentials/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementDeleteIxCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns IX-CE document type details - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX document type identifier - /// Credentials - /// IxDocumentTypeDetailDTO - public IxDocumentTypeDetailDTO IxServicesManagementGetDocumentTypeDetail (string businessUnitId, string docTypeId, IxCredentialsForRequestDTO credentials) - { - ApiResponse localVarResponse = IxServicesManagementGetDocumentTypeDetailWithHttpInfo(businessUnitId, docTypeId, credentials); - return localVarResponse.Data; - } - - /// - /// This call returns IX-CE document type details - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX document type identifier - /// Credentials - /// ApiResponse of IxDocumentTypeDetailDTO - public ApiResponse< IxDocumentTypeDetailDTO > IxServicesManagementGetDocumentTypeDetailWithHttpInfo (string businessUnitId, string docTypeId, IxCredentialsForRequestDTO credentials) - { - // verify the required parameter 'businessUnitId' is set - if (businessUnitId == null) - throw new ApiException(400, "Missing required parameter 'businessUnitId' when calling IxServicesManagementApi->IxServicesManagementGetDocumentTypeDetail"); - // verify the required parameter 'docTypeId' is set - if (docTypeId == null) - throw new ApiException(400, "Missing required parameter 'docTypeId' when calling IxServicesManagementApi->IxServicesManagementGetDocumentTypeDetail"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling IxServicesManagementApi->IxServicesManagementGetDocumentTypeDetail"); - - var localVarPath = "/api/management/IxServices/BusinessUnits/{businessUnitId}/DocumentTypes/{docTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitId != null) localVarPathParams.Add("businessUnitId", this.Configuration.ApiClient.ParameterToString(businessUnitId)); // path parameter - if (docTypeId != null) localVarPathParams.Add("docTypeId", this.Configuration.ApiClient.ParameterToString(docTypeId)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetDocumentTypeDetail", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxDocumentTypeDetailDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxDocumentTypeDetailDTO))); - } - - /// - /// This call returns IX-CE document type details - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX document type identifier - /// Credentials - /// Task of IxDocumentTypeDetailDTO - public async System.Threading.Tasks.Task IxServicesManagementGetDocumentTypeDetailAsync (string businessUnitId, string docTypeId, IxCredentialsForRequestDTO credentials) - { - ApiResponse localVarResponse = await IxServicesManagementGetDocumentTypeDetailAsyncWithHttpInfo(businessUnitId, docTypeId, credentials); - return localVarResponse.Data; - - } - - /// - /// This call returns IX-CE document type details - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX document type identifier - /// Credentials - /// Task of ApiResponse (IxDocumentTypeDetailDTO) - public async System.Threading.Tasks.Task> IxServicesManagementGetDocumentTypeDetailAsyncWithHttpInfo (string businessUnitId, string docTypeId, IxCredentialsForRequestDTO credentials) - { - // verify the required parameter 'businessUnitId' is set - if (businessUnitId == null) - throw new ApiException(400, "Missing required parameter 'businessUnitId' when calling IxServicesManagementApi->IxServicesManagementGetDocumentTypeDetail"); - // verify the required parameter 'docTypeId' is set - if (docTypeId == null) - throw new ApiException(400, "Missing required parameter 'docTypeId' when calling IxServicesManagementApi->IxServicesManagementGetDocumentTypeDetail"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling IxServicesManagementApi->IxServicesManagementGetDocumentTypeDetail"); - - var localVarPath = "/api/management/IxServices/BusinessUnits/{businessUnitId}/DocumentTypes/{docTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitId != null) localVarPathParams.Add("businessUnitId", this.Configuration.ApiClient.ParameterToString(businessUnitId)); // path parameter - if (docTypeId != null) localVarPathParams.Add("docTypeId", this.Configuration.ApiClient.ParameterToString(docTypeId)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetDocumentTypeDetail", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxDocumentTypeDetailDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxDocumentTypeDetailDTO))); - } - - /// - /// This call returns document types configured in IX-CE - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX business unit UO identifier - /// Credentials - /// List<IxDocumentTypeDTO> - public List IxServicesManagementGetDocumentTypes (string businessUnitId, string uoId, IxCredentialsForRequestDTO credentials) - { - ApiResponse> localVarResponse = IxServicesManagementGetDocumentTypesWithHttpInfo(businessUnitId, uoId, credentials); - return localVarResponse.Data; - } - - /// - /// This call returns document types configured in IX-CE - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX business unit UO identifier - /// Credentials - /// ApiResponse of List<IxDocumentTypeDTO> - public ApiResponse< List > IxServicesManagementGetDocumentTypesWithHttpInfo (string businessUnitId, string uoId, IxCredentialsForRequestDTO credentials) - { - // verify the required parameter 'businessUnitId' is set - if (businessUnitId == null) - throw new ApiException(400, "Missing required parameter 'businessUnitId' when calling IxServicesManagementApi->IxServicesManagementGetDocumentTypes"); - // verify the required parameter 'uoId' is set - if (uoId == null) - throw new ApiException(400, "Missing required parameter 'uoId' when calling IxServicesManagementApi->IxServicesManagementGetDocumentTypes"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling IxServicesManagementApi->IxServicesManagementGetDocumentTypes"); - - var localVarPath = "/api/management/IxServices/BusinessUnits/{businessUnitId}/Uos/{uoId}/DocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitId != null) localVarPathParams.Add("businessUnitId", this.Configuration.ApiClient.ParameterToString(businessUnitId)); // path parameter - if (uoId != null) localVarPathParams.Add("uoId", this.Configuration.ApiClient.ParameterToString(uoId)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetDocumentTypes", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns document types configured in IX-CE - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX business unit UO identifier - /// Credentials - /// Task of List<IxDocumentTypeDTO> - public async System.Threading.Tasks.Task> IxServicesManagementGetDocumentTypesAsync (string businessUnitId, string uoId, IxCredentialsForRequestDTO credentials) - { - ApiResponse> localVarResponse = await IxServicesManagementGetDocumentTypesAsyncWithHttpInfo(businessUnitId, uoId, credentials); - return localVarResponse.Data; - - } - - /// - /// This call returns document types configured in IX-CE - /// - /// Thrown when fails to make API call - /// IX business unit identifier - /// IX business unit UO identifier - /// Credentials - /// Task of ApiResponse (List<IxDocumentTypeDTO>) - public async System.Threading.Tasks.Task>> IxServicesManagementGetDocumentTypesAsyncWithHttpInfo (string businessUnitId, string uoId, IxCredentialsForRequestDTO credentials) - { - // verify the required parameter 'businessUnitId' is set - if (businessUnitId == null) - throw new ApiException(400, "Missing required parameter 'businessUnitId' when calling IxServicesManagementApi->IxServicesManagementGetDocumentTypes"); - // verify the required parameter 'uoId' is set - if (uoId == null) - throw new ApiException(400, "Missing required parameter 'uoId' when calling IxServicesManagementApi->IxServicesManagementGetDocumentTypes"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling IxServicesManagementApi->IxServicesManagementGetDocumentTypes"); - - var localVarPath = "/api/management/IxServices/BusinessUnits/{businessUnitId}/Uos/{uoId}/DocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (businessUnitId != null) localVarPathParams.Add("businessUnitId", this.Configuration.ApiClient.ParameterToString(businessUnitId)); // path parameter - if (uoId != null) localVarPathParams.Add("uoId", this.Configuration.ApiClient.ParameterToString(uoId)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetDocumentTypes", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns business unit UOs configured in IX - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// IX business unit identifier - /// Credentials - /// List<IxBusinessUnitUoDTO> - public List IxServicesManagementGetIxBusinessUnitUos (int? serviceType, string businessUnitId, IxCredentialsForRequestDTO credentials) - { - ApiResponse> localVarResponse = IxServicesManagementGetIxBusinessUnitUosWithHttpInfo(serviceType, businessUnitId, credentials); - return localVarResponse.Data; - } - - /// - /// This call returns business unit UOs configured in IX - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// IX business unit identifier - /// Credentials - /// ApiResponse of List<IxBusinessUnitUoDTO> - public ApiResponse< List > IxServicesManagementGetIxBusinessUnitUosWithHttpInfo (int? serviceType, string businessUnitId, IxCredentialsForRequestDTO credentials) - { - // verify the required parameter 'serviceType' is set - if (serviceType == null) - throw new ApiException(400, "Missing required parameter 'serviceType' when calling IxServicesManagementApi->IxServicesManagementGetIxBusinessUnitUos"); - // verify the required parameter 'businessUnitId' is set - if (businessUnitId == null) - throw new ApiException(400, "Missing required parameter 'businessUnitId' when calling IxServicesManagementApi->IxServicesManagementGetIxBusinessUnitUos"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling IxServicesManagementApi->IxServicesManagementGetIxBusinessUnitUos"); - - var localVarPath = "/api/management/IxServices/BusinessUnits/{serviceType}/{businessUnitId}/Uos"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (serviceType != null) localVarPathParams.Add("serviceType", this.Configuration.ApiClient.ParameterToString(serviceType)); // path parameter - if (businessUnitId != null) localVarPathParams.Add("businessUnitId", this.Configuration.ApiClient.ParameterToString(businessUnitId)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetIxBusinessUnitUos", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns business unit UOs configured in IX - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// IX business unit identifier - /// Credentials - /// Task of List<IxBusinessUnitUoDTO> - public async System.Threading.Tasks.Task> IxServicesManagementGetIxBusinessUnitUosAsync (int? serviceType, string businessUnitId, IxCredentialsForRequestDTO credentials) - { - ApiResponse> localVarResponse = await IxServicesManagementGetIxBusinessUnitUosAsyncWithHttpInfo(serviceType, businessUnitId, credentials); - return localVarResponse.Data; - - } - - /// - /// This call returns business unit UOs configured in IX - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// IX business unit identifier - /// Credentials - /// Task of ApiResponse (List<IxBusinessUnitUoDTO>) - public async System.Threading.Tasks.Task>> IxServicesManagementGetIxBusinessUnitUosAsyncWithHttpInfo (int? serviceType, string businessUnitId, IxCredentialsForRequestDTO credentials) - { - // verify the required parameter 'serviceType' is set - if (serviceType == null) - throw new ApiException(400, "Missing required parameter 'serviceType' when calling IxServicesManagementApi->IxServicesManagementGetIxBusinessUnitUos"); - // verify the required parameter 'businessUnitId' is set - if (businessUnitId == null) - throw new ApiException(400, "Missing required parameter 'businessUnitId' when calling IxServicesManagementApi->IxServicesManagementGetIxBusinessUnitUos"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling IxServicesManagementApi->IxServicesManagementGetIxBusinessUnitUos"); - - var localVarPath = "/api/management/IxServices/BusinessUnits/{serviceType}/{businessUnitId}/Uos"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (serviceType != null) localVarPathParams.Add("serviceType", this.Configuration.ApiClient.ParameterToString(serviceType)); // path parameter - if (businessUnitId != null) localVarPathParams.Add("businessUnitId", this.Configuration.ApiClient.ParameterToString(businessUnitId)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetIxBusinessUnitUos", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns business units configured in IX - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Credentials - /// List<IxBusinessUnitDTO> - public List IxServicesManagementGetIxBusinessUnits (int? serviceType, IxCredentialsForRequestDTO credentials) - { - ApiResponse> localVarResponse = IxServicesManagementGetIxBusinessUnitsWithHttpInfo(serviceType, credentials); - return localVarResponse.Data; - } - - /// - /// This call returns business units configured in IX - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Credentials - /// ApiResponse of List<IxBusinessUnitDTO> - public ApiResponse< List > IxServicesManagementGetIxBusinessUnitsWithHttpInfo (int? serviceType, IxCredentialsForRequestDTO credentials) - { - // verify the required parameter 'serviceType' is set - if (serviceType == null) - throw new ApiException(400, "Missing required parameter 'serviceType' when calling IxServicesManagementApi->IxServicesManagementGetIxBusinessUnits"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling IxServicesManagementApi->IxServicesManagementGetIxBusinessUnits"); - - var localVarPath = "/api/management/IxServices/BusinessUnits/{serviceType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (serviceType != null) localVarPathParams.Add("serviceType", this.Configuration.ApiClient.ParameterToString(serviceType)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetIxBusinessUnits", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns business units configured in IX - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Credentials - /// Task of List<IxBusinessUnitDTO> - public async System.Threading.Tasks.Task> IxServicesManagementGetIxBusinessUnitsAsync (int? serviceType, IxCredentialsForRequestDTO credentials) - { - ApiResponse> localVarResponse = await IxServicesManagementGetIxBusinessUnitsAsyncWithHttpInfo(serviceType, credentials); - return localVarResponse.Data; - - } - - /// - /// This call returns business units configured in IX - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Credentials - /// Task of ApiResponse (List<IxBusinessUnitDTO>) - public async System.Threading.Tasks.Task>> IxServicesManagementGetIxBusinessUnitsAsyncWithHttpInfo (int? serviceType, IxCredentialsForRequestDTO credentials) - { - // verify the required parameter 'serviceType' is set - if (serviceType == null) - throw new ApiException(400, "Missing required parameter 'serviceType' when calling IxServicesManagementApi->IxServicesManagementGetIxBusinessUnits"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling IxServicesManagementApi->IxServicesManagementGetIxBusinessUnits"); - - var localVarPath = "/api/management/IxServices/BusinessUnits/{serviceType}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (serviceType != null) localVarPathParams.Add("serviceType", this.Configuration.ApiClient.ParameterToString(serviceType)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetIxBusinessUnits", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns IX-CE notification types - /// - /// Thrown when fails to make API call - /// List<IxCeNotificationDTO> - public List IxServicesManagementGetIxCeNotifications () - { - ApiResponse> localVarResponse = IxServicesManagementGetIxCeNotificationsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns IX-CE notification types - /// - /// Thrown when fails to make API call - /// ApiResponse of List<IxCeNotificationDTO> - public ApiResponse< List > IxServicesManagementGetIxCeNotificationsWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxCe/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetIxCeNotifications", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns IX-CE notification types - /// - /// Thrown when fails to make API call - /// Task of List<IxCeNotificationDTO> - public async System.Threading.Tasks.Task> IxServicesManagementGetIxCeNotificationsAsync () - { - ApiResponse> localVarResponse = await IxServicesManagementGetIxCeNotificationsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns IX-CE notification types - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<IxCeNotificationDTO>) - public async System.Threading.Tasks.Task>> IxServicesManagementGetIxCeNotificationsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxCe/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetIxCeNotifications", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns IX configured credentials - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Possible values: 0: Global 1: BusinessUnit 2: Rule - /// Business unit identifier (optional) - /// Sending setting rule identifier (optional) - /// IxCredentialsTreeDTO - public IxCredentialsTreeDTO IxServicesManagementGetIxCredentials (int? serviceType, int? context, string businessUnitCode = null, int? ruleId = null) - { - ApiResponse localVarResponse = IxServicesManagementGetIxCredentialsWithHttpInfo(serviceType, context, businessUnitCode, ruleId); - return localVarResponse.Data; - } - - /// - /// This call returns IX configured credentials - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Possible values: 0: Global 1: BusinessUnit 2: Rule - /// Business unit identifier (optional) - /// Sending setting rule identifier (optional) - /// ApiResponse of IxCredentialsTreeDTO - public ApiResponse< IxCredentialsTreeDTO > IxServicesManagementGetIxCredentialsWithHttpInfo (int? serviceType, int? context, string businessUnitCode = null, int? ruleId = null) - { - // verify the required parameter 'serviceType' is set - if (serviceType == null) - throw new ApiException(400, "Missing required parameter 'serviceType' when calling IxServicesManagementApi->IxServicesManagementGetIxCredentials"); - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling IxServicesManagementApi->IxServicesManagementGetIxCredentials"); - - var localVarPath = "/api/management/IxServices/Credentials/{serviceType}/{context}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (serviceType != null) localVarPathParams.Add("serviceType", this.Configuration.ApiClient.ParameterToString(serviceType)); // path parameter - if (context != null) localVarPathParams.Add("context", this.Configuration.ApiClient.ParameterToString(context)); // path parameter - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - if (ruleId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "ruleId", ruleId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetIxCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCredentialsTreeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCredentialsTreeDTO))); - } - - /// - /// This call returns IX configured credentials - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Possible values: 0: Global 1: BusinessUnit 2: Rule - /// Business unit identifier (optional) - /// Sending setting rule identifier (optional) - /// Task of IxCredentialsTreeDTO - public async System.Threading.Tasks.Task IxServicesManagementGetIxCredentialsAsync (int? serviceType, int? context, string businessUnitCode = null, int? ruleId = null) - { - ApiResponse localVarResponse = await IxServicesManagementGetIxCredentialsAsyncWithHttpInfo(serviceType, context, businessUnitCode, ruleId); - return localVarResponse.Data; - - } - - /// - /// This call returns IX configured credentials - /// - /// Thrown when fails to make API call - /// Possible values: 0: IxFe 1: IxCe - /// Possible values: 0: Global 1: BusinessUnit 2: Rule - /// Business unit identifier (optional) - /// Sending setting rule identifier (optional) - /// Task of ApiResponse (IxCredentialsTreeDTO) - public async System.Threading.Tasks.Task> IxServicesManagementGetIxCredentialsAsyncWithHttpInfo (int? serviceType, int? context, string businessUnitCode = null, int? ruleId = null) - { - // verify the required parameter 'serviceType' is set - if (serviceType == null) - throw new ApiException(400, "Missing required parameter 'serviceType' when calling IxServicesManagementApi->IxServicesManagementGetIxCredentials"); - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling IxServicesManagementApi->IxServicesManagementGetIxCredentials"); - - var localVarPath = "/api/management/IxServices/Credentials/{serviceType}/{context}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (serviceType != null) localVarPathParams.Add("serviceType", this.Configuration.ApiClient.ParameterToString(serviceType)); // path parameter - if (context != null) localVarPathParams.Add("context", this.Configuration.ApiClient.ParameterToString(context)); // path parameter - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - if (ruleId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "ruleId", ruleId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetIxCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (IxCredentialsTreeDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IxCredentialsTreeDTO))); - } - - /// - /// This call returns IX-FE fields for mapping - /// - /// Thrown when fails to make API call - /// Possible values: 0: File 1: Invoice 2: NotificationSending 3: NotificationReceiving - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification (optional) - /// List<IxFeFieldDTO> - public List IxServicesManagementGetIxFeFields (int? context, int? notificationType = null) - { - ApiResponse> localVarResponse = IxServicesManagementGetIxFeFieldsWithHttpInfo(context, notificationType); - return localVarResponse.Data; - } - - /// - /// This call returns IX-FE fields for mapping - /// - /// Thrown when fails to make API call - /// Possible values: 0: File 1: Invoice 2: NotificationSending 3: NotificationReceiving - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification (optional) - /// ApiResponse of List<IxFeFieldDTO> - public ApiResponse< List > IxServicesManagementGetIxFeFieldsWithHttpInfo (int? context, int? notificationType = null) - { - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling IxServicesManagementApi->IxServicesManagementGetIxFeFields"); - - var localVarPath = "/api/management/IxServices/IxFe/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (context != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "context", context)); // query parameter - if (notificationType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "notificationType", notificationType)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetIxFeFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns IX-FE fields for mapping - /// - /// Thrown when fails to make API call - /// Possible values: 0: File 1: Invoice 2: NotificationSending 3: NotificationReceiving - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification (optional) - /// Task of List<IxFeFieldDTO> - public async System.Threading.Tasks.Task> IxServicesManagementGetIxFeFieldsAsync (int? context, int? notificationType = null) - { - ApiResponse> localVarResponse = await IxServicesManagementGetIxFeFieldsAsyncWithHttpInfo(context, notificationType); - return localVarResponse.Data; - - } - - /// - /// This call returns IX-FE fields for mapping - /// - /// Thrown when fails to make API call - /// Possible values: 0: File 1: Invoice 2: NotificationSending 3: NotificationReceiving - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification (optional) - /// Task of ApiResponse (List<IxFeFieldDTO>) - public async System.Threading.Tasks.Task>> IxServicesManagementGetIxFeFieldsAsyncWithHttpInfo (int? context, int? notificationType = null) - { - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling IxServicesManagementApi->IxServicesManagementGetIxFeFields"); - - var localVarPath = "/api/management/IxServices/IxFe/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (context != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "context", context)); // query parameter - if (notificationType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "notificationType", notificationType)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetIxFeFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns IX-FE notification types - /// - /// Thrown when fails to make API call - /// List<IxFeNotificationDTO> - public List IxServicesManagementGetIxFeNotifications () - { - ApiResponse> localVarResponse = IxServicesManagementGetIxFeNotificationsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns IX-FE notification types - /// - /// Thrown when fails to make API call - /// ApiResponse of List<IxFeNotificationDTO> - public ApiResponse< List > IxServicesManagementGetIxFeNotificationsWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxFe/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetIxFeNotifications", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns IX-FE notification types - /// - /// Thrown when fails to make API call - /// Task of List<IxFeNotificationDTO> - public async System.Threading.Tasks.Task> IxServicesManagementGetIxFeNotificationsAsync () - { - ApiResponse> localVarResponse = await IxServicesManagementGetIxFeNotificationsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns IX-FE notification types - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<IxFeNotificationDTO>) - public async System.Threading.Tasks.Task>> IxServicesManagementGetIxFeNotificationsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/IxServices/IxFe/Notifications"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementGetIxFeNotifications", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts IX credentials - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// - public void IxServicesManagementInsertIxCredentials (IxCredentialsDTO credentials) - { - IxServicesManagementInsertIxCredentialsWithHttpInfo(credentials); - } - - /// - /// This call inserts IX credentials - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// ApiResponse of Object(void) - public ApiResponse IxServicesManagementInsertIxCredentialsWithHttpInfo (IxCredentialsDTO credentials) - { - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling IxServicesManagementApi->IxServicesManagementInsertIxCredentials"); - - var localVarPath = "/api/management/IxServices/Credentials"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementInsertIxCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call inserts IX credentials - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// Task of void - public async System.Threading.Tasks.Task IxServicesManagementInsertIxCredentialsAsync (IxCredentialsDTO credentials) - { - await IxServicesManagementInsertIxCredentialsAsyncWithHttpInfo(credentials); - - } - - /// - /// This call inserts IX credentials - /// - /// Thrown when fails to make API call - /// Credentials for insert - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxServicesManagementInsertIxCredentialsAsyncWithHttpInfo (IxCredentialsDTO credentials) - { - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling IxServicesManagementApi->IxServicesManagementInsertIxCredentials"); - - var localVarPath = "/api/management/IxServices/Credentials"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementInsertIxCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates IX credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// - public void IxServicesManagementUpdateIxCredentials (int? id, IxCredentialsDTO credentials) - { - IxServicesManagementUpdateIxCredentialsWithHttpInfo(id, credentials); - } - - /// - /// This call updates IX credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// ApiResponse of Object(void) - public ApiResponse IxServicesManagementUpdateIxCredentialsWithHttpInfo (int? id, IxCredentialsDTO credentials) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxServicesManagementApi->IxServicesManagementUpdateIxCredentials"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling IxServicesManagementApi->IxServicesManagementUpdateIxCredentials"); - - var localVarPath = "/api/management/IxServices/Credentials/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementUpdateIxCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates IX credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// Task of void - public async System.Threading.Tasks.Task IxServicesManagementUpdateIxCredentialsAsync (int? id, IxCredentialsDTO credentials) - { - await IxServicesManagementUpdateIxCredentialsAsyncWithHttpInfo(id, credentials); - - } - - /// - /// This call updates IX credentials - /// - /// Thrown when fails to make API call - /// Credentials identifier - /// Credentials for update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IxServicesManagementUpdateIxCredentialsAsyncWithHttpInfo (int? id, IxCredentialsDTO credentials) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling IxServicesManagementApi->IxServicesManagementUpdateIxCredentials"); - // verify the required parameter 'credentials' is set - if (credentials == null) - throw new ApiException(400, "Missing required parameter 'credentials' when calling IxServicesManagementApi->IxServicesManagementUpdateIxCredentials"); - - var localVarPath = "/api/management/IxServices/Credentials/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (credentials != null && credentials.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter - } - else - { - localVarPostBody = credentials; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("IxServicesManagementUpdateIxCredentials", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/LicenseManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/LicenseManagementApi.cs deleted file mode 100644 index b72e977..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/LicenseManagementApi.cs +++ /dev/null @@ -1,1055 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ILicenseManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call gets license details - /// - /// - /// - /// - /// Thrown when fails to make API call - /// LicenseInfoDTO - LicenseInfoDTO LicenseManagementGetLicenseInfo (); - - /// - /// This call gets license details - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of LicenseInfoDTO - ApiResponse LicenseManagementGetLicenseInfoWithHttpInfo (); - /// - /// Tells if the license is loaded - /// - /// - /// - /// - /// Thrown when fails to make API call - /// bool? - bool? LicenseManagementLicenseIsLoaded (); - - /// - /// Tells if the license is loaded - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - ApiResponse LicenseManagementLicenseIsLoadedWithHttpInfo (); - /// - /// This allows to revoke software associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of software associations to revoke - /// - void LicenseManagementRevokeSoftwareAssociations (List software); - - /// - /// This allows to revoke software associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of software associations to revoke - /// ApiResponse of Object(void) - ApiResponse LicenseManagementRevokeSoftwareAssociationsWithHttpInfo (List software); - /// - /// Update the loaded license - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - void LicenseManagementUpdateLicense (); - - /// - /// Update the loaded license - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - ApiResponse LicenseManagementUpdateLicenseWithHttpInfo (); - /// - /// This allows to configure user-module associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User-module associations to update - /// - void LicenseManagementUpdateUserModuleAssociations (List associations); - - /// - /// This allows to configure user-module associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User-module associations to update - /// ApiResponse of Object(void) - ApiResponse LicenseManagementUpdateUserModuleAssociationsWithHttpInfo (List associations); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call gets license details - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of LicenseInfoDTO - System.Threading.Tasks.Task LicenseManagementGetLicenseInfoAsync (); - - /// - /// This call gets license details - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (LicenseInfoDTO) - System.Threading.Tasks.Task> LicenseManagementGetLicenseInfoAsyncWithHttpInfo (); - /// - /// Tells if the license is loaded - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of bool? - System.Threading.Tasks.Task LicenseManagementLicenseIsLoadedAsync (); - - /// - /// Tells if the license is loaded - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> LicenseManagementLicenseIsLoadedAsyncWithHttpInfo (); - /// - /// This allows to revoke software associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of software associations to revoke - /// Task of void - System.Threading.Tasks.Task LicenseManagementRevokeSoftwareAssociationsAsync (List software); - - /// - /// This allows to revoke software associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of software associations to revoke - /// Task of ApiResponse - System.Threading.Tasks.Task> LicenseManagementRevokeSoftwareAssociationsAsyncWithHttpInfo (List software); - /// - /// Update the loaded license - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of void - System.Threading.Tasks.Task LicenseManagementUpdateLicenseAsync (); - - /// - /// Update the loaded license - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - System.Threading.Tasks.Task> LicenseManagementUpdateLicenseAsyncWithHttpInfo (); - /// - /// This allows to configure user-module associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User-module associations to update - /// Task of void - System.Threading.Tasks.Task LicenseManagementUpdateUserModuleAssociationsAsync (List associations); - - /// - /// This allows to configure user-module associations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User-module associations to update - /// Task of ApiResponse - System.Threading.Tasks.Task> LicenseManagementUpdateUserModuleAssociationsAsyncWithHttpInfo (List associations); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class LicenseManagementApi : ILicenseManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public LicenseManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public LicenseManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call gets license details - /// - /// Thrown when fails to make API call - /// LicenseInfoDTO - public LicenseInfoDTO LicenseManagementGetLicenseInfo () - { - ApiResponse localVarResponse = LicenseManagementGetLicenseInfoWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call gets license details - /// - /// Thrown when fails to make API call - /// ApiResponse of LicenseInfoDTO - public ApiResponse< LicenseInfoDTO > LicenseManagementGetLicenseInfoWithHttpInfo () - { - - var localVarPath = "/api/management/License"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LicenseManagementGetLicenseInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LicenseInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LicenseInfoDTO))); - } - - /// - /// This call gets license details - /// - /// Thrown when fails to make API call - /// Task of LicenseInfoDTO - public async System.Threading.Tasks.Task LicenseManagementGetLicenseInfoAsync () - { - ApiResponse localVarResponse = await LicenseManagementGetLicenseInfoAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call gets license details - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (LicenseInfoDTO) - public async System.Threading.Tasks.Task> LicenseManagementGetLicenseInfoAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/License"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LicenseManagementGetLicenseInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LicenseInfoDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LicenseInfoDTO))); - } - - /// - /// Tells if the license is loaded - /// - /// Thrown when fails to make API call - /// bool? - public bool? LicenseManagementLicenseIsLoaded () - { - ApiResponse localVarResponse = LicenseManagementLicenseIsLoadedWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Tells if the license is loaded - /// - /// Thrown when fails to make API call - /// ApiResponse of bool? - public ApiResponse< bool? > LicenseManagementLicenseIsLoadedWithHttpInfo () - { - - var localVarPath = "/api/management/License/IsLoaded"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LicenseManagementLicenseIsLoaded", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// Tells if the license is loaded - /// - /// Thrown when fails to make API call - /// Task of bool? - public async System.Threading.Tasks.Task LicenseManagementLicenseIsLoadedAsync () - { - ApiResponse localVarResponse = await LicenseManagementLicenseIsLoadedAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// Tells if the license is loaded - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> LicenseManagementLicenseIsLoadedAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/License/IsLoaded"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LicenseManagementLicenseIsLoaded", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This allows to revoke software associations - /// - /// Thrown when fails to make API call - /// List of software associations to revoke - /// - public void LicenseManagementRevokeSoftwareAssociations (List software) - { - LicenseManagementRevokeSoftwareAssociationsWithHttpInfo(software); - } - - /// - /// This allows to revoke software associations - /// - /// Thrown when fails to make API call - /// List of software associations to revoke - /// ApiResponse of Object(void) - public ApiResponse LicenseManagementRevokeSoftwareAssociationsWithHttpInfo (List software) - { - // verify the required parameter 'software' is set - if (software == null) - throw new ApiException(400, "Missing required parameter 'software' when calling LicenseManagementApi->LicenseManagementRevokeSoftwareAssociations"); - - var localVarPath = "/api/management/License/RevokeSoftwareAssociations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (software != null && software.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(software); // http body (model) parameter - } - else - { - localVarPostBody = software; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LicenseManagementRevokeSoftwareAssociations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This allows to revoke software associations - /// - /// Thrown when fails to make API call - /// List of software associations to revoke - /// Task of void - public async System.Threading.Tasks.Task LicenseManagementRevokeSoftwareAssociationsAsync (List software) - { - await LicenseManagementRevokeSoftwareAssociationsAsyncWithHttpInfo(software); - - } - - /// - /// This allows to revoke software associations - /// - /// Thrown when fails to make API call - /// List of software associations to revoke - /// Task of ApiResponse - public async System.Threading.Tasks.Task> LicenseManagementRevokeSoftwareAssociationsAsyncWithHttpInfo (List software) - { - // verify the required parameter 'software' is set - if (software == null) - throw new ApiException(400, "Missing required parameter 'software' when calling LicenseManagementApi->LicenseManagementRevokeSoftwareAssociations"); - - var localVarPath = "/api/management/License/RevokeSoftwareAssociations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (software != null && software.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(software); // http body (model) parameter - } - else - { - localVarPostBody = software; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LicenseManagementRevokeSoftwareAssociations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Update the loaded license - /// - /// Thrown when fails to make API call - /// - public void LicenseManagementUpdateLicense () - { - LicenseManagementUpdateLicenseWithHttpInfo(); - } - - /// - /// Update the loaded license - /// - /// Thrown when fails to make API call - /// ApiResponse of Object(void) - public ApiResponse LicenseManagementUpdateLicenseWithHttpInfo () - { - - var localVarPath = "/api/management/License/Update"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LicenseManagementUpdateLicense", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Update the loaded license - /// - /// Thrown when fails to make API call - /// Task of void - public async System.Threading.Tasks.Task LicenseManagementUpdateLicenseAsync () - { - await LicenseManagementUpdateLicenseAsyncWithHttpInfo(); - - } - - /// - /// Update the loaded license - /// - /// Thrown when fails to make API call - /// Task of ApiResponse - public async System.Threading.Tasks.Task> LicenseManagementUpdateLicenseAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/License/Update"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LicenseManagementUpdateLicense", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This allows to configure user-module associations - /// - /// Thrown when fails to make API call - /// User-module associations to update - /// - public void LicenseManagementUpdateUserModuleAssociations (List associations) - { - LicenseManagementUpdateUserModuleAssociationsWithHttpInfo(associations); - } - - /// - /// This allows to configure user-module associations - /// - /// Thrown when fails to make API call - /// User-module associations to update - /// ApiResponse of Object(void) - public ApiResponse LicenseManagementUpdateUserModuleAssociationsWithHttpInfo (List associations) - { - // verify the required parameter 'associations' is set - if (associations == null) - throw new ApiException(400, "Missing required parameter 'associations' when calling LicenseManagementApi->LicenseManagementUpdateUserModuleAssociations"); - - var localVarPath = "/api/management/License/UserModuleAssociations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (associations != null && associations.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(associations); // http body (model) parameter - } - else - { - localVarPostBody = associations; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LicenseManagementUpdateUserModuleAssociations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This allows to configure user-module associations - /// - /// Thrown when fails to make API call - /// User-module associations to update - /// Task of void - public async System.Threading.Tasks.Task LicenseManagementUpdateUserModuleAssociationsAsync (List associations) - { - await LicenseManagementUpdateUserModuleAssociationsAsyncWithHttpInfo(associations); - - } - - /// - /// This allows to configure user-module associations - /// - /// Thrown when fails to make API call - /// User-module associations to update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> LicenseManagementUpdateUserModuleAssociationsAsyncWithHttpInfo (List associations) - { - // verify the required parameter 'associations' is set - if (associations == null) - throw new ApiException(400, "Missing required parameter 'associations' when calling LicenseManagementApi->LicenseManagementUpdateUserModuleAssociations"); - - var localVarPath = "/api/management/License/UserModuleAssociations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (associations != null && associations.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(associations); // http body (model) parameter - } - else - { - localVarPostBody = associations; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LicenseManagementUpdateUserModuleAssociations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/LogonProvidersManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/LogonProvidersManagementApi.cs deleted file mode 100644 index 893e513..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/LogonProvidersManagementApi.cs +++ /dev/null @@ -1,1585 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ILogonProvidersManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This method removes user association for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to remove - /// - void LogonProvidersManagementDeleteLogonProviderAssociation (string id, LogonProviderAssociationDTO association); - - /// - /// This method removes user association for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to remove - /// ApiResponse of Object(void) - ApiResponse LogonProvidersManagementDeleteLogonProviderAssociationWithHttpInfo (string id, LogonProviderAssociationDTO association); - /// - /// This method returns logon provider by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// LogonProviderConfigDTO - LogonProviderConfigDTO LogonProvidersManagementGetLogonProvider (string id); - - /// - /// This method returns logon provider by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// ApiResponse of LogonProviderConfigDTO - ApiResponse LogonProvidersManagementGetLogonProviderWithHttpInfo (string id); - /// - /// This method returns all user associations for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// List<LogonProviderAssociationDTO> - List LogonProvidersManagementGetLogonProviderAssociations (string id); - - /// - /// This method returns all user associations for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// ApiResponse of List<LogonProviderAssociationDTO> - ApiResponse> LogonProvidersManagementGetLogonProviderAssociationsWithHttpInfo (string id); - /// - /// This method returns all logon providers configurations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<LogonProviderConfigDTO> - List LogonProvidersManagementGetLogonProviders (); - - /// - /// This method returns all logon providers configurations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<LogonProviderConfigDTO> - ApiResponse> LogonProvidersManagementGetLogonProvidersWithHttpInfo (); - /// - /// This method inserts user association for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to insert - /// LogonProviderAssociationDTO - LogonProviderAssociationDTO LogonProvidersManagementInsertLogonProviderAssociation (string id, LogonProviderAssociationDTO association); - - /// - /// This method inserts user association for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to insert - /// ApiResponse of LogonProviderAssociationDTO - ApiResponse LogonProvidersManagementInsertLogonProviderAssociationWithHttpInfo (string id, LogonProviderAssociationDTO association); - /// - /// This method updates specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// (optional) - /// LogonProviderConfigDTO - LogonProviderConfigDTO LogonProvidersManagementUpdateLogonProvider (string id, LogonProviderConfigDTO logonproviderconfig = null); - - /// - /// This method updates specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// (optional) - /// ApiResponse of LogonProviderConfigDTO - ApiResponse LogonProvidersManagementUpdateLogonProviderWithHttpInfo (string id, LogonProviderConfigDTO logonproviderconfig = null); - /// - /// This method updates user association for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to update - /// LogonProviderAssociationDTO - LogonProviderAssociationDTO LogonProvidersManagementUpdateLogonProviderAssociation (string id, LogonProviderAssociationDTO association); - - /// - /// This method updates user association for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to update - /// ApiResponse of LogonProviderAssociationDTO - ApiResponse LogonProvidersManagementUpdateLogonProviderAssociationWithHttpInfo (string id, LogonProviderAssociationDTO association); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This method removes user association for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to remove - /// Task of void - System.Threading.Tasks.Task LogonProvidersManagementDeleteLogonProviderAssociationAsync (string id, LogonProviderAssociationDTO association); - - /// - /// This method removes user association for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to remove - /// Task of ApiResponse - System.Threading.Tasks.Task> LogonProvidersManagementDeleteLogonProviderAssociationAsyncWithHttpInfo (string id, LogonProviderAssociationDTO association); - /// - /// This method returns logon provider by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// Task of LogonProviderConfigDTO - System.Threading.Tasks.Task LogonProvidersManagementGetLogonProviderAsync (string id); - - /// - /// This method returns logon provider by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// Task of ApiResponse (LogonProviderConfigDTO) - System.Threading.Tasks.Task> LogonProvidersManagementGetLogonProviderAsyncWithHttpInfo (string id); - /// - /// This method returns all user associations for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// Task of List<LogonProviderAssociationDTO> - System.Threading.Tasks.Task> LogonProvidersManagementGetLogonProviderAssociationsAsync (string id); - - /// - /// This method returns all user associations for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// Task of ApiResponse (List<LogonProviderAssociationDTO>) - System.Threading.Tasks.Task>> LogonProvidersManagementGetLogonProviderAssociationsAsyncWithHttpInfo (string id); - /// - /// This method returns all logon providers configurations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<LogonProviderConfigDTO> - System.Threading.Tasks.Task> LogonProvidersManagementGetLogonProvidersAsync (); - - /// - /// This method returns all logon providers configurations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<LogonProviderConfigDTO>) - System.Threading.Tasks.Task>> LogonProvidersManagementGetLogonProvidersAsyncWithHttpInfo (); - /// - /// This method inserts user association for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to insert - /// Task of LogonProviderAssociationDTO - System.Threading.Tasks.Task LogonProvidersManagementInsertLogonProviderAssociationAsync (string id, LogonProviderAssociationDTO association); - - /// - /// This method inserts user association for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to insert - /// Task of ApiResponse (LogonProviderAssociationDTO) - System.Threading.Tasks.Task> LogonProvidersManagementInsertLogonProviderAssociationAsyncWithHttpInfo (string id, LogonProviderAssociationDTO association); - /// - /// This method updates specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// (optional) - /// Task of LogonProviderConfigDTO - System.Threading.Tasks.Task LogonProvidersManagementUpdateLogonProviderAsync (string id, LogonProviderConfigDTO logonproviderconfig = null); - - /// - /// This method updates specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// (optional) - /// Task of ApiResponse (LogonProviderConfigDTO) - System.Threading.Tasks.Task> LogonProvidersManagementUpdateLogonProviderAsyncWithHttpInfo (string id, LogonProviderConfigDTO logonproviderconfig = null); - /// - /// This method updates user association for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to update - /// Task of LogonProviderAssociationDTO - System.Threading.Tasks.Task LogonProvidersManagementUpdateLogonProviderAssociationAsync (string id, LogonProviderAssociationDTO association); - - /// - /// This method updates user association for specific logon provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to update - /// Task of ApiResponse (LogonProviderAssociationDTO) - System.Threading.Tasks.Task> LogonProvidersManagementUpdateLogonProviderAssociationAsyncWithHttpInfo (string id, LogonProviderAssociationDTO association); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class LogonProvidersManagementApi : ILogonProvidersManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public LogonProvidersManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public LogonProvidersManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This method removes user association for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to remove - /// - public void LogonProvidersManagementDeleteLogonProviderAssociation (string id, LogonProviderAssociationDTO association) - { - LogonProvidersManagementDeleteLogonProviderAssociationWithHttpInfo(id, association); - } - - /// - /// This method removes user association for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to remove - /// ApiResponse of Object(void) - public ApiResponse LogonProvidersManagementDeleteLogonProviderAssociationWithHttpInfo (string id, LogonProviderAssociationDTO association) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LogonProvidersManagementApi->LogonProvidersManagementDeleteLogonProviderAssociation"); - // verify the required parameter 'association' is set - if (association == null) - throw new ApiException(400, "Missing required parameter 'association' when calling LogonProvidersManagementApi->LogonProvidersManagementDeleteLogonProviderAssociation"); - - var localVarPath = "/api/management/Authentication/LogonProviders/{id}/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (association != null && association.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(association); // http body (model) parameter - } - else - { - localVarPostBody = association; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogonProvidersManagementDeleteLogonProviderAssociation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method removes user association for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to remove - /// Task of void - public async System.Threading.Tasks.Task LogonProvidersManagementDeleteLogonProviderAssociationAsync (string id, LogonProviderAssociationDTO association) - { - await LogonProvidersManagementDeleteLogonProviderAssociationAsyncWithHttpInfo(id, association); - - } - - /// - /// This method removes user association for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to remove - /// Task of ApiResponse - public async System.Threading.Tasks.Task> LogonProvidersManagementDeleteLogonProviderAssociationAsyncWithHttpInfo (string id, LogonProviderAssociationDTO association) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LogonProvidersManagementApi->LogonProvidersManagementDeleteLogonProviderAssociation"); - // verify the required parameter 'association' is set - if (association == null) - throw new ApiException(400, "Missing required parameter 'association' when calling LogonProvidersManagementApi->LogonProvidersManagementDeleteLogonProviderAssociation"); - - var localVarPath = "/api/management/Authentication/LogonProviders/{id}/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (association != null && association.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(association); // http body (model) parameter - } - else - { - localVarPostBody = association; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogonProvidersManagementDeleteLogonProviderAssociation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method returns logon provider by id - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// LogonProviderConfigDTO - public LogonProviderConfigDTO LogonProvidersManagementGetLogonProvider (string id) - { - ApiResponse localVarResponse = LogonProvidersManagementGetLogonProviderWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This method returns logon provider by id - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// ApiResponse of LogonProviderConfigDTO - public ApiResponse< LogonProviderConfigDTO > LogonProvidersManagementGetLogonProviderWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LogonProvidersManagementApi->LogonProvidersManagementGetLogonProvider"); - - var localVarPath = "/api/management/Authentication/LogonProviders/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogonProvidersManagementGetLogonProvider", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogonProviderConfigDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogonProviderConfigDTO))); - } - - /// - /// This method returns logon provider by id - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// Task of LogonProviderConfigDTO - public async System.Threading.Tasks.Task LogonProvidersManagementGetLogonProviderAsync (string id) - { - ApiResponse localVarResponse = await LogonProvidersManagementGetLogonProviderAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This method returns logon provider by id - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// Task of ApiResponse (LogonProviderConfigDTO) - public async System.Threading.Tasks.Task> LogonProvidersManagementGetLogonProviderAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LogonProvidersManagementApi->LogonProvidersManagementGetLogonProvider"); - - var localVarPath = "/api/management/Authentication/LogonProviders/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogonProvidersManagementGetLogonProvider", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogonProviderConfigDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogonProviderConfigDTO))); - } - - /// - /// This method returns all user associations for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// List<LogonProviderAssociationDTO> - public List LogonProvidersManagementGetLogonProviderAssociations (string id) - { - ApiResponse> localVarResponse = LogonProvidersManagementGetLogonProviderAssociationsWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This method returns all user associations for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// ApiResponse of List<LogonProviderAssociationDTO> - public ApiResponse< List > LogonProvidersManagementGetLogonProviderAssociationsWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LogonProvidersManagementApi->LogonProvidersManagementGetLogonProviderAssociations"); - - var localVarPath = "/api/management/Authentication/LogonProviders/{id}/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogonProvidersManagementGetLogonProviderAssociations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns all user associations for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// Task of List<LogonProviderAssociationDTO> - public async System.Threading.Tasks.Task> LogonProvidersManagementGetLogonProviderAssociationsAsync (string id) - { - ApiResponse> localVarResponse = await LogonProvidersManagementGetLogonProviderAssociationsAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This method returns all user associations for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// Task of ApiResponse (List<LogonProviderAssociationDTO>) - public async System.Threading.Tasks.Task>> LogonProvidersManagementGetLogonProviderAssociationsAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LogonProvidersManagementApi->LogonProvidersManagementGetLogonProviderAssociations"); - - var localVarPath = "/api/management/Authentication/LogonProviders/{id}/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogonProvidersManagementGetLogonProviderAssociations", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns all logon providers configurations - /// - /// Thrown when fails to make API call - /// List<LogonProviderConfigDTO> - public List LogonProvidersManagementGetLogonProviders () - { - ApiResponse> localVarResponse = LogonProvidersManagementGetLogonProvidersWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This method returns all logon providers configurations - /// - /// Thrown when fails to make API call - /// ApiResponse of List<LogonProviderConfigDTO> - public ApiResponse< List > LogonProvidersManagementGetLogonProvidersWithHttpInfo () - { - - var localVarPath = "/api/management/Authentication/LogonProviders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogonProvidersManagementGetLogonProviders", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method returns all logon providers configurations - /// - /// Thrown when fails to make API call - /// Task of List<LogonProviderConfigDTO> - public async System.Threading.Tasks.Task> LogonProvidersManagementGetLogonProvidersAsync () - { - ApiResponse> localVarResponse = await LogonProvidersManagementGetLogonProvidersAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This method returns all logon providers configurations - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<LogonProviderConfigDTO>) - public async System.Threading.Tasks.Task>> LogonProvidersManagementGetLogonProvidersAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Authentication/LogonProviders"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogonProvidersManagementGetLogonProviders", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This method inserts user association for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to insert - /// LogonProviderAssociationDTO - public LogonProviderAssociationDTO LogonProvidersManagementInsertLogonProviderAssociation (string id, LogonProviderAssociationDTO association) - { - ApiResponse localVarResponse = LogonProvidersManagementInsertLogonProviderAssociationWithHttpInfo(id, association); - return localVarResponse.Data; - } - - /// - /// This method inserts user association for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to insert - /// ApiResponse of LogonProviderAssociationDTO - public ApiResponse< LogonProviderAssociationDTO > LogonProvidersManagementInsertLogonProviderAssociationWithHttpInfo (string id, LogonProviderAssociationDTO association) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LogonProvidersManagementApi->LogonProvidersManagementInsertLogonProviderAssociation"); - // verify the required parameter 'association' is set - if (association == null) - throw new ApiException(400, "Missing required parameter 'association' when calling LogonProvidersManagementApi->LogonProvidersManagementInsertLogonProviderAssociation"); - - var localVarPath = "/api/management/Authentication/LogonProviders/{id}/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (association != null && association.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(association); // http body (model) parameter - } - else - { - localVarPostBody = association; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogonProvidersManagementInsertLogonProviderAssociation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogonProviderAssociationDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogonProviderAssociationDTO))); - } - - /// - /// This method inserts user association for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to insert - /// Task of LogonProviderAssociationDTO - public async System.Threading.Tasks.Task LogonProvidersManagementInsertLogonProviderAssociationAsync (string id, LogonProviderAssociationDTO association) - { - ApiResponse localVarResponse = await LogonProvidersManagementInsertLogonProviderAssociationAsyncWithHttpInfo(id, association); - return localVarResponse.Data; - - } - - /// - /// This method inserts user association for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to insert - /// Task of ApiResponse (LogonProviderAssociationDTO) - public async System.Threading.Tasks.Task> LogonProvidersManagementInsertLogonProviderAssociationAsyncWithHttpInfo (string id, LogonProviderAssociationDTO association) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LogonProvidersManagementApi->LogonProvidersManagementInsertLogonProviderAssociation"); - // verify the required parameter 'association' is set - if (association == null) - throw new ApiException(400, "Missing required parameter 'association' when calling LogonProvidersManagementApi->LogonProvidersManagementInsertLogonProviderAssociation"); - - var localVarPath = "/api/management/Authentication/LogonProviders/{id}/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (association != null && association.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(association); // http body (model) parameter - } - else - { - localVarPostBody = association; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogonProvidersManagementInsertLogonProviderAssociation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogonProviderAssociationDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogonProviderAssociationDTO))); - } - - /// - /// This method updates specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// (optional) - /// LogonProviderConfigDTO - public LogonProviderConfigDTO LogonProvidersManagementUpdateLogonProvider (string id, LogonProviderConfigDTO logonproviderconfig = null) - { - ApiResponse localVarResponse = LogonProvidersManagementUpdateLogonProviderWithHttpInfo(id, logonproviderconfig); - return localVarResponse.Data; - } - - /// - /// This method updates specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// (optional) - /// ApiResponse of LogonProviderConfigDTO - public ApiResponse< LogonProviderConfigDTO > LogonProvidersManagementUpdateLogonProviderWithHttpInfo (string id, LogonProviderConfigDTO logonproviderconfig = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LogonProvidersManagementApi->LogonProvidersManagementUpdateLogonProvider"); - - var localVarPath = "/api/management/Authentication/LogonProviders/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (logonproviderconfig != null && logonproviderconfig.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(logonproviderconfig); // http body (model) parameter - } - else - { - localVarPostBody = logonproviderconfig; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogonProvidersManagementUpdateLogonProvider", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogonProviderConfigDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogonProviderConfigDTO))); - } - - /// - /// This method updates specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// (optional) - /// Task of LogonProviderConfigDTO - public async System.Threading.Tasks.Task LogonProvidersManagementUpdateLogonProviderAsync (string id, LogonProviderConfigDTO logonproviderconfig = null) - { - ApiResponse localVarResponse = await LogonProvidersManagementUpdateLogonProviderAsyncWithHttpInfo(id, logonproviderconfig); - return localVarResponse.Data; - - } - - /// - /// This method updates specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// (optional) - /// Task of ApiResponse (LogonProviderConfigDTO) - public async System.Threading.Tasks.Task> LogonProvidersManagementUpdateLogonProviderAsyncWithHttpInfo (string id, LogonProviderConfigDTO logonproviderconfig = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LogonProvidersManagementApi->LogonProvidersManagementUpdateLogonProvider"); - - var localVarPath = "/api/management/Authentication/LogonProviders/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (logonproviderconfig != null && logonproviderconfig.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(logonproviderconfig); // http body (model) parameter - } - else - { - localVarPostBody = logonproviderconfig; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogonProvidersManagementUpdateLogonProvider", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogonProviderConfigDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogonProviderConfigDTO))); - } - - /// - /// This method updates user association for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to update - /// LogonProviderAssociationDTO - public LogonProviderAssociationDTO LogonProvidersManagementUpdateLogonProviderAssociation (string id, LogonProviderAssociationDTO association) - { - ApiResponse localVarResponse = LogonProvidersManagementUpdateLogonProviderAssociationWithHttpInfo(id, association); - return localVarResponse.Data; - } - - /// - /// This method updates user association for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to update - /// ApiResponse of LogonProviderAssociationDTO - public ApiResponse< LogonProviderAssociationDTO > LogonProvidersManagementUpdateLogonProviderAssociationWithHttpInfo (string id, LogonProviderAssociationDTO association) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LogonProvidersManagementApi->LogonProvidersManagementUpdateLogonProviderAssociation"); - // verify the required parameter 'association' is set - if (association == null) - throw new ApiException(400, "Missing required parameter 'association' when calling LogonProvidersManagementApi->LogonProvidersManagementUpdateLogonProviderAssociation"); - - var localVarPath = "/api/management/Authentication/LogonProviders/{id}/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (association != null && association.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(association); // http body (model) parameter - } - else - { - localVarPostBody = association; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogonProvidersManagementUpdateLogonProviderAssociation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogonProviderAssociationDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogonProviderAssociationDTO))); - } - - /// - /// This method updates user association for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to update - /// Task of LogonProviderAssociationDTO - public async System.Threading.Tasks.Task LogonProvidersManagementUpdateLogonProviderAssociationAsync (string id, LogonProviderAssociationDTO association) - { - ApiResponse localVarResponse = await LogonProvidersManagementUpdateLogonProviderAssociationAsyncWithHttpInfo(id, association); - return localVarResponse.Data; - - } - - /// - /// This method updates user association for specific logon provider - /// - /// Thrown when fails to make API call - /// Logon provider identifier - /// User association to update - /// Task of ApiResponse (LogonProviderAssociationDTO) - public async System.Threading.Tasks.Task> LogonProvidersManagementUpdateLogonProviderAssociationAsyncWithHttpInfo (string id, LogonProviderAssociationDTO association) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling LogonProvidersManagementApi->LogonProvidersManagementUpdateLogonProviderAssociation"); - // verify the required parameter 'association' is set - if (association == null) - throw new ApiException(400, "Missing required parameter 'association' when calling LogonProvidersManagementApi->LogonProvidersManagementUpdateLogonProviderAssociation"); - - var localVarPath = "/api/management/Authentication/LogonProviders/{id}/Associations"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (association != null && association.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(association); // http body (model) parameter - } - else - { - localVarPostBody = association; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("LogonProvidersManagementUpdateLogonProviderAssociation", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogonProviderAssociationDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogonProviderAssociationDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/MailManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/MailManagementApi.cs deleted file mode 100644 index aa89809..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/MailManagementApi.cs +++ /dev/null @@ -1,1917 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IMailManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// Build the redirect url needed to authorize to the external provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The information used to build the redirect url - /// ExternalAuthRedirectUrlResponseDTO - ExternalAuthRedirectUrlResponseDTO MailManagementGetExternalAuthRedirectUrl (ExternalAuthRedirectUrlRequestDTO model); - - /// - /// Build the redirect url needed to authorize to the external provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The information used to build the redirect url - /// ApiResponse of ExternalAuthRedirectUrlResponseDTO - ApiResponse MailManagementGetExternalAuthRedirectUrlWithHttpInfo (ExternalAuthRedirectUrlRequestDTO model); - /// - /// Build the redirect url needed to authorize to the external provider (used for global SMTP Settings) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ExternalAuthRedirectUrlResponseDTO - ExternalAuthRedirectUrlResponseDTO MailManagementGetExternalAuthRedirectUrlForSmtpSettings (ExternalAuthRedirectUrlRequestDTO model); - - /// - /// Build the redirect url needed to authorize to the external provider (used for global SMTP Settings) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ExternalAuthRedirectUrlResponseDTO - ApiResponse MailManagementGetExternalAuthRedirectUrlForSmtpSettingsWithHttpInfo (ExternalAuthRedirectUrlRequestDTO model); - /// - /// This call returns global mail settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// GlobalMailSettingsDTO - GlobalMailSettingsDTO MailManagementGetGlobalMailSettings (); - - /// - /// This call returns global mail settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of GlobalMailSettingsDTO - ApiResponse MailManagementGetGlobalMailSettingsWithHttpInfo (); - /// - /// This call returns IMAP folders by account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// List<MailBoxFolderDTO> - List MailManagementGetImapMailBoxStructureByAccount (int? mailAccountId); - - /// - /// This call returns IMAP folders by account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// ApiResponse of List<MailBoxFolderDTO> - ApiResponse> MailManagementGetImapMailBoxStructureByAccountWithHttpInfo (int? mailAccountId); - /// - /// This call returns IMAP folders by settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// List<MailBoxFolderDTO> - List MailManagementGetImapMailBoxStructureBySettings (MailServerSettingsDTO mailServerSettings); - - /// - /// This call returns IMAP folders by settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// ApiResponse of List<MailBoxFolderDTO> - ApiResponse> MailManagementGetImapMailBoxStructureBySettingsWithHttpInfo (MailServerSettingsDTO mailServerSettings); - /// - /// This call returns mail system variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// List<KeyValueDTO> - List MailManagementGetMailSystemVariables (int? type); - - /// - /// This call returns mail system variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// ApiResponse of List<KeyValueDTO> - ApiResponse> MailManagementGetMailSystemVariablesWithHttpInfo (int? type); - /// - /// This call returns the Global SMTP Settings configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SmtpSettingsDTO - SmtpSettingsDTO MailManagementGetSmtpSettings (); - - /// - /// This call returns the Global SMTP Settings configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SmtpSettingsDTO - ApiResponse MailManagementGetSmtpSettingsWithHttpInfo (); - /// - /// This call saves the specified SMTP Settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The SMTP Settings to save - /// - void MailManagementSaveSmtpSettings (SmtpSettingsDTO model); - - /// - /// This call saves the specified SMTP Settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The SMTP Settings to save - /// ApiResponse of Object(void) - ApiResponse MailManagementSaveSmtpSettingsWithHttpInfo (SmtpSettingsDTO model); - /// - /// This call updates global mail settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Global mail settings - /// - void MailManagementSetGlobalMailSettings (GlobalMailSettingsDTO mailSettings); - - /// - /// This call updates global mail settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Global mail settings - /// ApiResponse of Object(void) - ApiResponse MailManagementSetGlobalMailSettingsWithHttpInfo (GlobalMailSettingsDTO mailSettings); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// Build the redirect url needed to authorize to the external provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The information used to build the redirect url - /// Task of ExternalAuthRedirectUrlResponseDTO - System.Threading.Tasks.Task MailManagementGetExternalAuthRedirectUrlAsync (ExternalAuthRedirectUrlRequestDTO model); - - /// - /// Build the redirect url needed to authorize to the external provider - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The information used to build the redirect url - /// Task of ApiResponse (ExternalAuthRedirectUrlResponseDTO) - System.Threading.Tasks.Task> MailManagementGetExternalAuthRedirectUrlAsyncWithHttpInfo (ExternalAuthRedirectUrlRequestDTO model); - /// - /// Build the redirect url needed to authorize to the external provider (used for global SMTP Settings) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ExternalAuthRedirectUrlResponseDTO - System.Threading.Tasks.Task MailManagementGetExternalAuthRedirectUrlForSmtpSettingsAsync (ExternalAuthRedirectUrlRequestDTO model); - - /// - /// Build the redirect url needed to authorize to the external provider (used for global SMTP Settings) - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ExternalAuthRedirectUrlResponseDTO) - System.Threading.Tasks.Task> MailManagementGetExternalAuthRedirectUrlForSmtpSettingsAsyncWithHttpInfo (ExternalAuthRedirectUrlRequestDTO model); - /// - /// This call returns global mail settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of GlobalMailSettingsDTO - System.Threading.Tasks.Task MailManagementGetGlobalMailSettingsAsync (); - - /// - /// This call returns global mail settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (GlobalMailSettingsDTO) - System.Threading.Tasks.Task> MailManagementGetGlobalMailSettingsAsyncWithHttpInfo (); - /// - /// This call returns IMAP folders by account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// Task of List<MailBoxFolderDTO> - System.Threading.Tasks.Task> MailManagementGetImapMailBoxStructureByAccountAsync (int? mailAccountId); - - /// - /// This call returns IMAP folders by account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// Task of ApiResponse (List<MailBoxFolderDTO>) - System.Threading.Tasks.Task>> MailManagementGetImapMailBoxStructureByAccountAsyncWithHttpInfo (int? mailAccountId); - /// - /// This call returns IMAP folders by settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of List<MailBoxFolderDTO> - System.Threading.Tasks.Task> MailManagementGetImapMailBoxStructureBySettingsAsync (MailServerSettingsDTO mailServerSettings); - - /// - /// This call returns IMAP folders by settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of ApiResponse (List<MailBoxFolderDTO>) - System.Threading.Tasks.Task>> MailManagementGetImapMailBoxStructureBySettingsAsyncWithHttpInfo (MailServerSettingsDTO mailServerSettings); - /// - /// This call returns mail system variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// Task of List<KeyValueDTO> - System.Threading.Tasks.Task> MailManagementGetMailSystemVariablesAsync (int? type); - - /// - /// This call returns mail system variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// Task of ApiResponse (List<KeyValueDTO>) - System.Threading.Tasks.Task>> MailManagementGetMailSystemVariablesAsyncWithHttpInfo (int? type); - /// - /// This call returns the Global SMTP Settings configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SmtpSettingsDTO - System.Threading.Tasks.Task MailManagementGetSmtpSettingsAsync (); - - /// - /// This call returns the Global SMTP Settings configured - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SmtpSettingsDTO) - System.Threading.Tasks.Task> MailManagementGetSmtpSettingsAsyncWithHttpInfo (); - /// - /// This call saves the specified SMTP Settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The SMTP Settings to save - /// Task of void - System.Threading.Tasks.Task MailManagementSaveSmtpSettingsAsync (SmtpSettingsDTO model); - - /// - /// This call saves the specified SMTP Settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// The SMTP Settings to save - /// Task of ApiResponse - System.Threading.Tasks.Task> MailManagementSaveSmtpSettingsAsyncWithHttpInfo (SmtpSettingsDTO model); - /// - /// This call updates global mail settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Global mail settings - /// Task of void - System.Threading.Tasks.Task MailManagementSetGlobalMailSettingsAsync (GlobalMailSettingsDTO mailSettings); - - /// - /// This call updates global mail settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Global mail settings - /// Task of ApiResponse - System.Threading.Tasks.Task> MailManagementSetGlobalMailSettingsAsyncWithHttpInfo (GlobalMailSettingsDTO mailSettings); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class MailManagementApi : IMailManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public MailManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public MailManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// Build the redirect url needed to authorize to the external provider - /// - /// Thrown when fails to make API call - /// The information used to build the redirect url - /// ExternalAuthRedirectUrlResponseDTO - public ExternalAuthRedirectUrlResponseDTO MailManagementGetExternalAuthRedirectUrl (ExternalAuthRedirectUrlRequestDTO model) - { - ApiResponse localVarResponse = MailManagementGetExternalAuthRedirectUrlWithHttpInfo(model); - return localVarResponse.Data; - } - - /// - /// Build the redirect url needed to authorize to the external provider - /// - /// Thrown when fails to make API call - /// The information used to build the redirect url - /// ApiResponse of ExternalAuthRedirectUrlResponseDTO - public ApiResponse< ExternalAuthRedirectUrlResponseDTO > MailManagementGetExternalAuthRedirectUrlWithHttpInfo (ExternalAuthRedirectUrlRequestDTO model) - { - // verify the required parameter 'model' is set - if (model == null) - throw new ApiException(400, "Missing required parameter 'model' when calling MailManagementApi->MailManagementGetExternalAuthRedirectUrl"); - - var localVarPath = "/api/management/Mail/Auth/Redirect"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementGetExternalAuthRedirectUrl", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ExternalAuthRedirectUrlResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalAuthRedirectUrlResponseDTO))); - } - - /// - /// Build the redirect url needed to authorize to the external provider - /// - /// Thrown when fails to make API call - /// The information used to build the redirect url - /// Task of ExternalAuthRedirectUrlResponseDTO - public async System.Threading.Tasks.Task MailManagementGetExternalAuthRedirectUrlAsync (ExternalAuthRedirectUrlRequestDTO model) - { - ApiResponse localVarResponse = await MailManagementGetExternalAuthRedirectUrlAsyncWithHttpInfo(model); - return localVarResponse.Data; - - } - - /// - /// Build the redirect url needed to authorize to the external provider - /// - /// Thrown when fails to make API call - /// The information used to build the redirect url - /// Task of ApiResponse (ExternalAuthRedirectUrlResponseDTO) - public async System.Threading.Tasks.Task> MailManagementGetExternalAuthRedirectUrlAsyncWithHttpInfo (ExternalAuthRedirectUrlRequestDTO model) - { - // verify the required parameter 'model' is set - if (model == null) - throw new ApiException(400, "Missing required parameter 'model' when calling MailManagementApi->MailManagementGetExternalAuthRedirectUrl"); - - var localVarPath = "/api/management/Mail/Auth/Redirect"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementGetExternalAuthRedirectUrl", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ExternalAuthRedirectUrlResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalAuthRedirectUrlResponseDTO))); - } - - /// - /// Build the redirect url needed to authorize to the external provider (used for global SMTP Settings) - /// - /// Thrown when fails to make API call - /// - /// ExternalAuthRedirectUrlResponseDTO - public ExternalAuthRedirectUrlResponseDTO MailManagementGetExternalAuthRedirectUrlForSmtpSettings (ExternalAuthRedirectUrlRequestDTO model) - { - ApiResponse localVarResponse = MailManagementGetExternalAuthRedirectUrlForSmtpSettingsWithHttpInfo(model); - return localVarResponse.Data; - } - - /// - /// Build the redirect url needed to authorize to the external provider (used for global SMTP Settings) - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of ExternalAuthRedirectUrlResponseDTO - public ApiResponse< ExternalAuthRedirectUrlResponseDTO > MailManagementGetExternalAuthRedirectUrlForSmtpSettingsWithHttpInfo (ExternalAuthRedirectUrlRequestDTO model) - { - // verify the required parameter 'model' is set - if (model == null) - throw new ApiException(400, "Missing required parameter 'model' when calling MailManagementApi->MailManagementGetExternalAuthRedirectUrlForSmtpSettings"); - - var localVarPath = "/api/management/Mail/Auth/Redirect/Smtp"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementGetExternalAuthRedirectUrlForSmtpSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ExternalAuthRedirectUrlResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalAuthRedirectUrlResponseDTO))); - } - - /// - /// Build the redirect url needed to authorize to the external provider (used for global SMTP Settings) - /// - /// Thrown when fails to make API call - /// - /// Task of ExternalAuthRedirectUrlResponseDTO - public async System.Threading.Tasks.Task MailManagementGetExternalAuthRedirectUrlForSmtpSettingsAsync (ExternalAuthRedirectUrlRequestDTO model) - { - ApiResponse localVarResponse = await MailManagementGetExternalAuthRedirectUrlForSmtpSettingsAsyncWithHttpInfo(model); - return localVarResponse.Data; - - } - - /// - /// Build the redirect url needed to authorize to the external provider (used for global SMTP Settings) - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (ExternalAuthRedirectUrlResponseDTO) - public async System.Threading.Tasks.Task> MailManagementGetExternalAuthRedirectUrlForSmtpSettingsAsyncWithHttpInfo (ExternalAuthRedirectUrlRequestDTO model) - { - // verify the required parameter 'model' is set - if (model == null) - throw new ApiException(400, "Missing required parameter 'model' when calling MailManagementApi->MailManagementGetExternalAuthRedirectUrlForSmtpSettings"); - - var localVarPath = "/api/management/Mail/Auth/Redirect/Smtp"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementGetExternalAuthRedirectUrlForSmtpSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ExternalAuthRedirectUrlResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalAuthRedirectUrlResponseDTO))); - } - - /// - /// This call returns global mail settings - /// - /// Thrown when fails to make API call - /// GlobalMailSettingsDTO - public GlobalMailSettingsDTO MailManagementGetGlobalMailSettings () - { - ApiResponse localVarResponse = MailManagementGetGlobalMailSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns global mail settings - /// - /// Thrown when fails to make API call - /// ApiResponse of GlobalMailSettingsDTO - public ApiResponse< GlobalMailSettingsDTO > MailManagementGetGlobalMailSettingsWithHttpInfo () - { - - var localVarPath = "/api/management/Mail/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementGetGlobalMailSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (GlobalMailSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(GlobalMailSettingsDTO))); - } - - /// - /// This call returns global mail settings - /// - /// Thrown when fails to make API call - /// Task of GlobalMailSettingsDTO - public async System.Threading.Tasks.Task MailManagementGetGlobalMailSettingsAsync () - { - ApiResponse localVarResponse = await MailManagementGetGlobalMailSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns global mail settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (GlobalMailSettingsDTO) - public async System.Threading.Tasks.Task> MailManagementGetGlobalMailSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Mail/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementGetGlobalMailSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (GlobalMailSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(GlobalMailSettingsDTO))); - } - - /// - /// This call returns IMAP folders by account - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// List<MailBoxFolderDTO> - public List MailManagementGetImapMailBoxStructureByAccount (int? mailAccountId) - { - ApiResponse> localVarResponse = MailManagementGetImapMailBoxStructureByAccountWithHttpInfo(mailAccountId); - return localVarResponse.Data; - } - - /// - /// This call returns IMAP folders by account - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// ApiResponse of List<MailBoxFolderDTO> - public ApiResponse< List > MailManagementGetImapMailBoxStructureByAccountWithHttpInfo (int? mailAccountId) - { - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling MailManagementApi->MailManagementGetImapMailBoxStructureByAccount"); - - var localVarPath = "/api/management/Mail/ImapFolders/ByAccount/{mailAccountId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementGetImapMailBoxStructureByAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns IMAP folders by account - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// Task of List<MailBoxFolderDTO> - public async System.Threading.Tasks.Task> MailManagementGetImapMailBoxStructureByAccountAsync (int? mailAccountId) - { - ApiResponse> localVarResponse = await MailManagementGetImapMailBoxStructureByAccountAsyncWithHttpInfo(mailAccountId); - return localVarResponse.Data; - - } - - /// - /// This call returns IMAP folders by account - /// - /// Thrown when fails to make API call - /// Mail account identifier - /// Task of ApiResponse (List<MailBoxFolderDTO>) - public async System.Threading.Tasks.Task>> MailManagementGetImapMailBoxStructureByAccountAsyncWithHttpInfo (int? mailAccountId) - { - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling MailManagementApi->MailManagementGetImapMailBoxStructureByAccount"); - - var localVarPath = "/api/management/Mail/ImapFolders/ByAccount/{mailAccountId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementGetImapMailBoxStructureByAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns IMAP folders by settings - /// - /// Thrown when fails to make API call - /// Mail server settings - /// List<MailBoxFolderDTO> - public List MailManagementGetImapMailBoxStructureBySettings (MailServerSettingsDTO mailServerSettings) - { - ApiResponse> localVarResponse = MailManagementGetImapMailBoxStructureBySettingsWithHttpInfo(mailServerSettings); - return localVarResponse.Data; - } - - /// - /// This call returns IMAP folders by settings - /// - /// Thrown when fails to make API call - /// Mail server settings - /// ApiResponse of List<MailBoxFolderDTO> - public ApiResponse< List > MailManagementGetImapMailBoxStructureBySettingsWithHttpInfo (MailServerSettingsDTO mailServerSettings) - { - // verify the required parameter 'mailServerSettings' is set - if (mailServerSettings == null) - throw new ApiException(400, "Missing required parameter 'mailServerSettings' when calling MailManagementApi->MailManagementGetImapMailBoxStructureBySettings"); - - var localVarPath = "/api/management/Mail/ImapFolders/BySettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailServerSettings != null && mailServerSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailServerSettings); // http body (model) parameter - } - else - { - localVarPostBody = mailServerSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementGetImapMailBoxStructureBySettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns IMAP folders by settings - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of List<MailBoxFolderDTO> - public async System.Threading.Tasks.Task> MailManagementGetImapMailBoxStructureBySettingsAsync (MailServerSettingsDTO mailServerSettings) - { - ApiResponse> localVarResponse = await MailManagementGetImapMailBoxStructureBySettingsAsyncWithHttpInfo(mailServerSettings); - return localVarResponse.Data; - - } - - /// - /// This call returns IMAP folders by settings - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of ApiResponse (List<MailBoxFolderDTO>) - public async System.Threading.Tasks.Task>> MailManagementGetImapMailBoxStructureBySettingsAsyncWithHttpInfo (MailServerSettingsDTO mailServerSettings) - { - // verify the required parameter 'mailServerSettings' is set - if (mailServerSettings == null) - throw new ApiException(400, "Missing required parameter 'mailServerSettings' when calling MailManagementApi->MailManagementGetImapMailBoxStructureBySettings"); - - var localVarPath = "/api/management/Mail/ImapFolders/BySettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailServerSettings != null && mailServerSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailServerSettings); // http body (model) parameter - } - else - { - localVarPostBody = mailServerSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementGetImapMailBoxStructureBySettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns mail system variables - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// List<KeyValueDTO> - public List MailManagementGetMailSystemVariables (int? type) - { - ApiResponse> localVarResponse = MailManagementGetMailSystemVariablesWithHttpInfo(type); - return localVarResponse.Data; - } - - /// - /// This call returns mail system variables - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// ApiResponse of List<KeyValueDTO> - public ApiResponse< List > MailManagementGetMailSystemVariablesWithHttpInfo (int? type) - { - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling MailManagementApi->MailManagementGetMailSystemVariables"); - - var localVarPath = "/api/management/Mail/SystemVariables/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementGetMailSystemVariables", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns mail system variables - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// Task of List<KeyValueDTO> - public async System.Threading.Tasks.Task> MailManagementGetMailSystemVariablesAsync (int? type) - { - ApiResponse> localVarResponse = await MailManagementGetMailSystemVariablesAsyncWithHttpInfo(type); - return localVarResponse.Data; - - } - - /// - /// This call returns mail system variables - /// - /// Thrown when fails to make API call - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// Task of ApiResponse (List<KeyValueDTO>) - public async System.Threading.Tasks.Task>> MailManagementGetMailSystemVariablesAsyncWithHttpInfo (int? type) - { - // verify the required parameter 'type' is set - if (type == null) - throw new ApiException(400, "Missing required parameter 'type' when calling MailManagementApi->MailManagementGetMailSystemVariables"); - - var localVarPath = "/api/management/Mail/SystemVariables/{type}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementGetMailSystemVariables", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the Global SMTP Settings configured - /// - /// Thrown when fails to make API call - /// SmtpSettingsDTO - public SmtpSettingsDTO MailManagementGetSmtpSettings () - { - ApiResponse localVarResponse = MailManagementGetSmtpSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the Global SMTP Settings configured - /// - /// Thrown when fails to make API call - /// ApiResponse of SmtpSettingsDTO - public ApiResponse< SmtpSettingsDTO > MailManagementGetSmtpSettingsWithHttpInfo () - { - - var localVarPath = "/api/management/Mail/Settings/Smtp"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementGetSmtpSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SmtpSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SmtpSettingsDTO))); - } - - /// - /// This call returns the Global SMTP Settings configured - /// - /// Thrown when fails to make API call - /// Task of SmtpSettingsDTO - public async System.Threading.Tasks.Task MailManagementGetSmtpSettingsAsync () - { - ApiResponse localVarResponse = await MailManagementGetSmtpSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the Global SMTP Settings configured - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SmtpSettingsDTO) - public async System.Threading.Tasks.Task> MailManagementGetSmtpSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Mail/Settings/Smtp"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementGetSmtpSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SmtpSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SmtpSettingsDTO))); - } - - /// - /// This call saves the specified SMTP Settings - /// - /// Thrown when fails to make API call - /// The SMTP Settings to save - /// - public void MailManagementSaveSmtpSettings (SmtpSettingsDTO model) - { - MailManagementSaveSmtpSettingsWithHttpInfo(model); - } - - /// - /// This call saves the specified SMTP Settings - /// - /// Thrown when fails to make API call - /// The SMTP Settings to save - /// ApiResponse of Object(void) - public ApiResponse MailManagementSaveSmtpSettingsWithHttpInfo (SmtpSettingsDTO model) - { - // verify the required parameter 'model' is set - if (model == null) - throw new ApiException(400, "Missing required parameter 'model' when calling MailManagementApi->MailManagementSaveSmtpSettings"); - - var localVarPath = "/api/management/Mail/Settings/Smtp"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementSaveSmtpSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call saves the specified SMTP Settings - /// - /// Thrown when fails to make API call - /// The SMTP Settings to save - /// Task of void - public async System.Threading.Tasks.Task MailManagementSaveSmtpSettingsAsync (SmtpSettingsDTO model) - { - await MailManagementSaveSmtpSettingsAsyncWithHttpInfo(model); - - } - - /// - /// This call saves the specified SMTP Settings - /// - /// Thrown when fails to make API call - /// The SMTP Settings to save - /// Task of ApiResponse - public async System.Threading.Tasks.Task> MailManagementSaveSmtpSettingsAsyncWithHttpInfo (SmtpSettingsDTO model) - { - // verify the required parameter 'model' is set - if (model == null) - throw new ApiException(400, "Missing required parameter 'model' when calling MailManagementApi->MailManagementSaveSmtpSettings"); - - var localVarPath = "/api/management/Mail/Settings/Smtp"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (model != null && model.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(model); // http body (model) parameter - } - else - { - localVarPostBody = model; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementSaveSmtpSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates global mail settings - /// - /// Thrown when fails to make API call - /// Global mail settings - /// - public void MailManagementSetGlobalMailSettings (GlobalMailSettingsDTO mailSettings) - { - MailManagementSetGlobalMailSettingsWithHttpInfo(mailSettings); - } - - /// - /// This call updates global mail settings - /// - /// Thrown when fails to make API call - /// Global mail settings - /// ApiResponse of Object(void) - public ApiResponse MailManagementSetGlobalMailSettingsWithHttpInfo (GlobalMailSettingsDTO mailSettings) - { - // verify the required parameter 'mailSettings' is set - if (mailSettings == null) - throw new ApiException(400, "Missing required parameter 'mailSettings' when calling MailManagementApi->MailManagementSetGlobalMailSettings"); - - var localVarPath = "/api/management/Mail/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailSettings != null && mailSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailSettings); // http body (model) parameter - } - else - { - localVarPostBody = mailSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementSetGlobalMailSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates global mail settings - /// - /// Thrown when fails to make API call - /// Global mail settings - /// Task of void - public async System.Threading.Tasks.Task MailManagementSetGlobalMailSettingsAsync (GlobalMailSettingsDTO mailSettings) - { - await MailManagementSetGlobalMailSettingsAsyncWithHttpInfo(mailSettings); - - } - - /// - /// This call updates global mail settings - /// - /// Thrown when fails to make API call - /// Global mail settings - /// Task of ApiResponse - public async System.Threading.Tasks.Task> MailManagementSetGlobalMailSettingsAsyncWithHttpInfo (GlobalMailSettingsDTO mailSettings) - { - // verify the required parameter 'mailSettings' is set - if (mailSettings == null) - throw new ApiException(400, "Missing required parameter 'mailSettings' when calling MailManagementApi->MailManagementSetGlobalMailSettings"); - - var localVarPath = "/api/management/Mail/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailSettings != null && mailSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailSettings); // http body (model) parameter - } - else - { - localVarPostBody = mailSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MailManagementSetGlobalMailSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/MasksManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/MasksManagementApi.cs deleted file mode 100644 index 5804582..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/MasksManagementApi.cs +++ /dev/null @@ -1,1883 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IMasksManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes root mask field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// - void MasksManagementDeleteRootMaskField (string id); - - /// - /// This call deletes root mask field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// ApiResponse of Object(void) - ApiResponse MasksManagementDeleteRootMaskFieldWithHttpInfo (string id); - /// - /// This call returns the complete mask list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<MaskDTO> - List MasksManagementGetList (); - - /// - /// This call returns the complete mask list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<MaskDTO> - ApiResponse> MasksManagementGetListWithHttpInfo (); - /// - /// This call gets root mask field by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// RootMaskFieldDTO - RootMaskFieldDTO MasksManagementGetRootMaskField (string id); - - /// - /// This call gets root mask field by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// ApiResponse of RootMaskFieldDTO - ApiResponse MasksManagementGetRootMaskFieldWithHttpInfo (string id); - /// - /// This call gets root mask fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<RootMaskFieldDTO> - List MasksManagementGetRootMaskFields (); - - /// - /// This call gets root mask fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<RootMaskFieldDTO> - ApiResponse> MasksManagementGetRootMaskFieldsWithHttpInfo (); - /// - /// This call returns root mask settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// RootMaskSettingsDTO - RootMaskSettingsDTO MasksManagementGetSettings (); - - /// - /// This call returns root mask settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of RootMaskSettingsDTO - ApiResponse MasksManagementGetSettingsWithHttpInfo (); - /// - /// This call inserts root mask field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field for insert - /// RootMaskFieldDTO - RootMaskFieldDTO MasksManagementInsertRootMaskField (RootMaskFieldDTO field); - - /// - /// This call inserts root mask field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field for insert - /// ApiResponse of RootMaskFieldDTO - ApiResponse MasksManagementInsertRootMaskFieldWithHttpInfo (RootMaskFieldDTO field); - /// - /// This call updates root mask settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings for update - /// - void MasksManagementSetSettings (RootMaskSettingsDTO settings); - - /// - /// This call updates root mask settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings for update - /// ApiResponse of Object(void) - ApiResponse MasksManagementSetSettingsWithHttpInfo (RootMaskSettingsDTO settings); - /// - /// This method updates fields order in the root mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Fields sort options - /// - void MasksManagementSortRootMaskFields (List options); - - /// - /// This method updates fields order in the root mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Fields sort options - /// ApiResponse of Object(void) - ApiResponse MasksManagementSortRootMaskFieldsWithHttpInfo (List options); - /// - /// This call updates root mask field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// RootMaskFieldDTO - RootMaskFieldDTO MasksManagementUpdateRootMaskField (string id, RootMaskFieldDTO field); - - /// - /// This call updates root mask field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// ApiResponse of RootMaskFieldDTO - ApiResponse MasksManagementUpdateRootMaskFieldWithHttpInfo (string id, RootMaskFieldDTO field); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes root mask field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of void - System.Threading.Tasks.Task MasksManagementDeleteRootMaskFieldAsync (string id); - - /// - /// This call deletes root mask field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> MasksManagementDeleteRootMaskFieldAsyncWithHttpInfo (string id); - /// - /// This call returns the complete mask list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<MaskDTO> - System.Threading.Tasks.Task> MasksManagementGetListAsync (); - - /// - /// This call returns the complete mask list - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<MaskDTO>) - System.Threading.Tasks.Task>> MasksManagementGetListAsyncWithHttpInfo (); - /// - /// This call gets root mask field by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of RootMaskFieldDTO - System.Threading.Tasks.Task MasksManagementGetRootMaskFieldAsync (string id); - - /// - /// This call gets root mask field by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of ApiResponse (RootMaskFieldDTO) - System.Threading.Tasks.Task> MasksManagementGetRootMaskFieldAsyncWithHttpInfo (string id); - /// - /// This call gets root mask fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<RootMaskFieldDTO> - System.Threading.Tasks.Task> MasksManagementGetRootMaskFieldsAsync (); - - /// - /// This call gets root mask fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<RootMaskFieldDTO>) - System.Threading.Tasks.Task>> MasksManagementGetRootMaskFieldsAsyncWithHttpInfo (); - /// - /// This call returns root mask settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of RootMaskSettingsDTO - System.Threading.Tasks.Task MasksManagementGetSettingsAsync (); - - /// - /// This call returns root mask settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (RootMaskSettingsDTO) - System.Threading.Tasks.Task> MasksManagementGetSettingsAsyncWithHttpInfo (); - /// - /// This call inserts root mask field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field for insert - /// Task of RootMaskFieldDTO - System.Threading.Tasks.Task MasksManagementInsertRootMaskFieldAsync (RootMaskFieldDTO field); - - /// - /// This call inserts root mask field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field for insert - /// Task of ApiResponse (RootMaskFieldDTO) - System.Threading.Tasks.Task> MasksManagementInsertRootMaskFieldAsyncWithHttpInfo (RootMaskFieldDTO field); - /// - /// This call updates root mask settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings for update - /// Task of void - System.Threading.Tasks.Task MasksManagementSetSettingsAsync (RootMaskSettingsDTO settings); - - /// - /// This call updates root mask settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Settings for update - /// Task of ApiResponse - System.Threading.Tasks.Task> MasksManagementSetSettingsAsyncWithHttpInfo (RootMaskSettingsDTO settings); - /// - /// This method updates fields order in the root mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Fields sort options - /// Task of void - System.Threading.Tasks.Task MasksManagementSortRootMaskFieldsAsync (List options); - - /// - /// This method updates fields order in the root mask - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Fields sort options - /// Task of ApiResponse - System.Threading.Tasks.Task> MasksManagementSortRootMaskFieldsAsyncWithHttpInfo (List options); - /// - /// This call updates root mask field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// Task of RootMaskFieldDTO - System.Threading.Tasks.Task MasksManagementUpdateRootMaskFieldAsync (string id, RootMaskFieldDTO field); - - /// - /// This call updates root mask field - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// Task of ApiResponse (RootMaskFieldDTO) - System.Threading.Tasks.Task> MasksManagementUpdateRootMaskFieldAsyncWithHttpInfo (string id, RootMaskFieldDTO field); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class MasksManagementApi : IMasksManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public MasksManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public MasksManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes root mask field - /// - /// Thrown when fails to make API call - /// Field identifier - /// - public void MasksManagementDeleteRootMaskField (string id) - { - MasksManagementDeleteRootMaskFieldWithHttpInfo(id); - } - - /// - /// This call deletes root mask field - /// - /// Thrown when fails to make API call - /// Field identifier - /// ApiResponse of Object(void) - public ApiResponse MasksManagementDeleteRootMaskFieldWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling MasksManagementApi->MasksManagementDeleteRootMaskField"); - - var localVarPath = "/api/management/Masks/RootMask/Field/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementDeleteRootMaskField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes root mask field - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of void - public async System.Threading.Tasks.Task MasksManagementDeleteRootMaskFieldAsync (string id) - { - await MasksManagementDeleteRootMaskFieldAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes root mask field - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> MasksManagementDeleteRootMaskFieldAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling MasksManagementApi->MasksManagementDeleteRootMaskField"); - - var localVarPath = "/api/management/Masks/RootMask/Field/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementDeleteRootMaskField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns the complete mask list - /// - /// Thrown when fails to make API call - /// List<MaskDTO> - public List MasksManagementGetList () - { - ApiResponse> localVarResponse = MasksManagementGetListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns the complete mask list - /// - /// Thrown when fails to make API call - /// ApiResponse of List<MaskDTO> - public ApiResponse< List > MasksManagementGetListWithHttpInfo () - { - - var localVarPath = "/api/management/Masks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementGetList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the complete mask list - /// - /// Thrown when fails to make API call - /// Task of List<MaskDTO> - public async System.Threading.Tasks.Task> MasksManagementGetListAsync () - { - ApiResponse> localVarResponse = await MasksManagementGetListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns the complete mask list - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<MaskDTO>) - public async System.Threading.Tasks.Task>> MasksManagementGetListAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Masks"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementGetList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets root mask field by id - /// - /// Thrown when fails to make API call - /// Field identifier - /// RootMaskFieldDTO - public RootMaskFieldDTO MasksManagementGetRootMaskField (string id) - { - ApiResponse localVarResponse = MasksManagementGetRootMaskFieldWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets root mask field by id - /// - /// Thrown when fails to make API call - /// Field identifier - /// ApiResponse of RootMaskFieldDTO - public ApiResponse< RootMaskFieldDTO > MasksManagementGetRootMaskFieldWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling MasksManagementApi->MasksManagementGetRootMaskField"); - - var localVarPath = "/api/management/Masks/RootMask/Fields/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementGetRootMaskField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RootMaskFieldDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RootMaskFieldDTO))); - } - - /// - /// This call gets root mask field by id - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of RootMaskFieldDTO - public async System.Threading.Tasks.Task MasksManagementGetRootMaskFieldAsync (string id) - { - ApiResponse localVarResponse = await MasksManagementGetRootMaskFieldAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets root mask field by id - /// - /// Thrown when fails to make API call - /// Field identifier - /// Task of ApiResponse (RootMaskFieldDTO) - public async System.Threading.Tasks.Task> MasksManagementGetRootMaskFieldAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling MasksManagementApi->MasksManagementGetRootMaskField"); - - var localVarPath = "/api/management/Masks/RootMask/Fields/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementGetRootMaskField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RootMaskFieldDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RootMaskFieldDTO))); - } - - /// - /// This call gets root mask fields - /// - /// Thrown when fails to make API call - /// List<RootMaskFieldDTO> - public List MasksManagementGetRootMaskFields () - { - ApiResponse> localVarResponse = MasksManagementGetRootMaskFieldsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call gets root mask fields - /// - /// Thrown when fails to make API call - /// ApiResponse of List<RootMaskFieldDTO> - public ApiResponse< List > MasksManagementGetRootMaskFieldsWithHttpInfo () - { - - var localVarPath = "/api/management/Masks/RootMask/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementGetRootMaskFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets root mask fields - /// - /// Thrown when fails to make API call - /// Task of List<RootMaskFieldDTO> - public async System.Threading.Tasks.Task> MasksManagementGetRootMaskFieldsAsync () - { - ApiResponse> localVarResponse = await MasksManagementGetRootMaskFieldsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call gets root mask fields - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<RootMaskFieldDTO>) - public async System.Threading.Tasks.Task>> MasksManagementGetRootMaskFieldsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Masks/RootMask/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementGetRootMaskFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns root mask settings - /// - /// Thrown when fails to make API call - /// RootMaskSettingsDTO - public RootMaskSettingsDTO MasksManagementGetSettings () - { - ApiResponse localVarResponse = MasksManagementGetSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns root mask settings - /// - /// Thrown when fails to make API call - /// ApiResponse of RootMaskSettingsDTO - public ApiResponse< RootMaskSettingsDTO > MasksManagementGetSettingsWithHttpInfo () - { - - var localVarPath = "/api/management/Masks/RootMask/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementGetSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RootMaskSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RootMaskSettingsDTO))); - } - - /// - /// This call returns root mask settings - /// - /// Thrown when fails to make API call - /// Task of RootMaskSettingsDTO - public async System.Threading.Tasks.Task MasksManagementGetSettingsAsync () - { - ApiResponse localVarResponse = await MasksManagementGetSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns root mask settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (RootMaskSettingsDTO) - public async System.Threading.Tasks.Task> MasksManagementGetSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Masks/RootMask/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementGetSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RootMaskSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RootMaskSettingsDTO))); - } - - /// - /// This call inserts root mask field - /// - /// Thrown when fails to make API call - /// Field for insert - /// RootMaskFieldDTO - public RootMaskFieldDTO MasksManagementInsertRootMaskField (RootMaskFieldDTO field) - { - ApiResponse localVarResponse = MasksManagementInsertRootMaskFieldWithHttpInfo(field); - return localVarResponse.Data; - } - - /// - /// This call inserts root mask field - /// - /// Thrown when fails to make API call - /// Field for insert - /// ApiResponse of RootMaskFieldDTO - public ApiResponse< RootMaskFieldDTO > MasksManagementInsertRootMaskFieldWithHttpInfo (RootMaskFieldDTO field) - { - // verify the required parameter 'field' is set - if (field == null) - throw new ApiException(400, "Missing required parameter 'field' when calling MasksManagementApi->MasksManagementInsertRootMaskField"); - - var localVarPath = "/api/management/Masks/RootMask/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (field != null && field.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(field); // http body (model) parameter - } - else - { - localVarPostBody = field; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementInsertRootMaskField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RootMaskFieldDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RootMaskFieldDTO))); - } - - /// - /// This call inserts root mask field - /// - /// Thrown when fails to make API call - /// Field for insert - /// Task of RootMaskFieldDTO - public async System.Threading.Tasks.Task MasksManagementInsertRootMaskFieldAsync (RootMaskFieldDTO field) - { - ApiResponse localVarResponse = await MasksManagementInsertRootMaskFieldAsyncWithHttpInfo(field); - return localVarResponse.Data; - - } - - /// - /// This call inserts root mask field - /// - /// Thrown when fails to make API call - /// Field for insert - /// Task of ApiResponse (RootMaskFieldDTO) - public async System.Threading.Tasks.Task> MasksManagementInsertRootMaskFieldAsyncWithHttpInfo (RootMaskFieldDTO field) - { - // verify the required parameter 'field' is set - if (field == null) - throw new ApiException(400, "Missing required parameter 'field' when calling MasksManagementApi->MasksManagementInsertRootMaskField"); - - var localVarPath = "/api/management/Masks/RootMask/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (field != null && field.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(field); // http body (model) parameter - } - else - { - localVarPostBody = field; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementInsertRootMaskField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RootMaskFieldDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RootMaskFieldDTO))); - } - - /// - /// This call updates root mask settings - /// - /// Thrown when fails to make API call - /// Settings for update - /// - public void MasksManagementSetSettings (RootMaskSettingsDTO settings) - { - MasksManagementSetSettingsWithHttpInfo(settings); - } - - /// - /// This call updates root mask settings - /// - /// Thrown when fails to make API call - /// Settings for update - /// ApiResponse of Object(void) - public ApiResponse MasksManagementSetSettingsWithHttpInfo (RootMaskSettingsDTO settings) - { - // verify the required parameter 'settings' is set - if (settings == null) - throw new ApiException(400, "Missing required parameter 'settings' when calling MasksManagementApi->MasksManagementSetSettings"); - - var localVarPath = "/api/management/Masks/RootMask/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (settings != null && settings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(settings); // http body (model) parameter - } - else - { - localVarPostBody = settings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementSetSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates root mask settings - /// - /// Thrown when fails to make API call - /// Settings for update - /// Task of void - public async System.Threading.Tasks.Task MasksManagementSetSettingsAsync (RootMaskSettingsDTO settings) - { - await MasksManagementSetSettingsAsyncWithHttpInfo(settings); - - } - - /// - /// This call updates root mask settings - /// - /// Thrown when fails to make API call - /// Settings for update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> MasksManagementSetSettingsAsyncWithHttpInfo (RootMaskSettingsDTO settings) - { - // verify the required parameter 'settings' is set - if (settings == null) - throw new ApiException(400, "Missing required parameter 'settings' when calling MasksManagementApi->MasksManagementSetSettings"); - - var localVarPath = "/api/management/Masks/RootMask/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (settings != null && settings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(settings); // http body (model) parameter - } - else - { - localVarPostBody = settings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementSetSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method updates fields order in the root mask - /// - /// Thrown when fails to make API call - /// Fields sort options - /// - public void MasksManagementSortRootMaskFields (List options) - { - MasksManagementSortRootMaskFieldsWithHttpInfo(options); - } - - /// - /// This method updates fields order in the root mask - /// - /// Thrown when fails to make API call - /// Fields sort options - /// ApiResponse of Object(void) - public ApiResponse MasksManagementSortRootMaskFieldsWithHttpInfo (List options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling MasksManagementApi->MasksManagementSortRootMaskFields"); - - var localVarPath = "/api/management/Masks/RootMask/Fields/Sort"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementSortRootMaskFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This method updates fields order in the root mask - /// - /// Thrown when fails to make API call - /// Fields sort options - /// Task of void - public async System.Threading.Tasks.Task MasksManagementSortRootMaskFieldsAsync (List options) - { - await MasksManagementSortRootMaskFieldsAsyncWithHttpInfo(options); - - } - - /// - /// This method updates fields order in the root mask - /// - /// Thrown when fails to make API call - /// Fields sort options - /// Task of ApiResponse - public async System.Threading.Tasks.Task> MasksManagementSortRootMaskFieldsAsyncWithHttpInfo (List options) - { - // verify the required parameter 'options' is set - if (options == null) - throw new ApiException(400, "Missing required parameter 'options' when calling MasksManagementApi->MasksManagementSortRootMaskFields"); - - var localVarPath = "/api/management/Masks/RootMask/Fields/Sort"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (options != null && options.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(options); // http body (model) parameter - } - else - { - localVarPostBody = options; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementSortRootMaskFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates root mask field - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// RootMaskFieldDTO - public RootMaskFieldDTO MasksManagementUpdateRootMaskField (string id, RootMaskFieldDTO field) - { - ApiResponse localVarResponse = MasksManagementUpdateRootMaskFieldWithHttpInfo(id, field); - return localVarResponse.Data; - } - - /// - /// This call updates root mask field - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// ApiResponse of RootMaskFieldDTO - public ApiResponse< RootMaskFieldDTO > MasksManagementUpdateRootMaskFieldWithHttpInfo (string id, RootMaskFieldDTO field) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling MasksManagementApi->MasksManagementUpdateRootMaskField"); - // verify the required parameter 'field' is set - if (field == null) - throw new ApiException(400, "Missing required parameter 'field' when calling MasksManagementApi->MasksManagementUpdateRootMaskField"); - - var localVarPath = "/api/management/Masks/RootMask/Fields/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (field != null && field.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(field); // http body (model) parameter - } - else - { - localVarPostBody = field; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementUpdateRootMaskField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RootMaskFieldDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RootMaskFieldDTO))); - } - - /// - /// This call updates root mask field - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// Task of RootMaskFieldDTO - public async System.Threading.Tasks.Task MasksManagementUpdateRootMaskFieldAsync (string id, RootMaskFieldDTO field) - { - ApiResponse localVarResponse = await MasksManagementUpdateRootMaskFieldAsyncWithHttpInfo(id, field); - return localVarResponse.Data; - - } - - /// - /// This call updates root mask field - /// - /// Thrown when fails to make API call - /// Field identifier - /// Field for update - /// Task of ApiResponse (RootMaskFieldDTO) - public async System.Threading.Tasks.Task> MasksManagementUpdateRootMaskFieldAsyncWithHttpInfo (string id, RootMaskFieldDTO field) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling MasksManagementApi->MasksManagementUpdateRootMaskField"); - // verify the required parameter 'field' is set - if (field == null) - throw new ApiException(400, "Missing required parameter 'field' when calling MasksManagementApi->MasksManagementUpdateRootMaskField"); - - var localVarPath = "/api/management/Masks/RootMask/Fields/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (field != null && field.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(field); // http body (model) parameter - } - else - { - localVarPostBody = field; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MasksManagementUpdateRootMaskField", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RootMaskFieldDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RootMaskFieldDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/MonitoredFoldersManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/MonitoredFoldersManagementApi.cs deleted file mode 100644 index e55a243..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/MonitoredFoldersManagementApi.cs +++ /dev/null @@ -1,321 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IMonitoredFoldersManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all the monitored folders for a user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// List<MonitoredFolderDTO> - List MonitoredFoldersManagementGetByUserId (int? userId); - - /// - /// This call returns all the monitored folders for a user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of List<MonitoredFolderDTO> - ApiResponse> MonitoredFoldersManagementGetByUserIdWithHttpInfo (int? userId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all the monitored folders for a user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of List<MonitoredFolderDTO> - System.Threading.Tasks.Task> MonitoredFoldersManagementGetByUserIdAsync (int? userId); - - /// - /// This call returns all the monitored folders for a user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse (List<MonitoredFolderDTO>) - System.Threading.Tasks.Task>> MonitoredFoldersManagementGetByUserIdAsyncWithHttpInfo (int? userId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class MonitoredFoldersManagementApi : IMonitoredFoldersManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public MonitoredFoldersManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public MonitoredFoldersManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all the monitored folders for a user - /// - /// Thrown when fails to make API call - /// User Identifier - /// List<MonitoredFolderDTO> - public List MonitoredFoldersManagementGetByUserId (int? userId) - { - ApiResponse> localVarResponse = MonitoredFoldersManagementGetByUserIdWithHttpInfo(userId); - return localVarResponse.Data; - } - - /// - /// This call returns all the monitored folders for a user - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of List<MonitoredFolderDTO> - public ApiResponse< List > MonitoredFoldersManagementGetByUserIdWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling MonitoredFoldersManagementApi->MonitoredFoldersManagementGetByUserId"); - - var localVarPath = "/api/management/MonitoredFolders/byUser/{userId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersManagementGetByUserId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the monitored folders for a user - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of List<MonitoredFolderDTO> - public async System.Threading.Tasks.Task> MonitoredFoldersManagementGetByUserIdAsync (int? userId) - { - ApiResponse> localVarResponse = await MonitoredFoldersManagementGetByUserIdAsyncWithHttpInfo(userId); - return localVarResponse.Data; - - } - - /// - /// This call returns all the monitored folders for a user - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse (List<MonitoredFolderDTO>) - public async System.Threading.Tasks.Task>> MonitoredFoldersManagementGetByUserIdAsyncWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling MonitoredFoldersManagementApi->MonitoredFoldersManagementGetByUserId"); - - var localVarPath = "/api/management/MonitoredFolders/byUser/{userId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("MonitoredFoldersManagementGetByUserId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/OptionsManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/OptionsManagementApi.cs deleted file mode 100644 index 300befb..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/OptionsManagementApi.cs +++ /dev/null @@ -1,731 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IOptionsManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call retrieves options by the given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// List<OptionsDTO> - List OptionsManagementGetByArgomento (string argument); - - /// - /// This call retrieves options by the given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// ApiResponse of List<OptionsDTO> - ApiResponse> OptionsManagementGetByArgomentoWithHttpInfo (string argument); - /// - /// This call update options value for a given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// - void OptionsManagementSetOptionsValueByArgomento (OptionsRequestDTO requestDto); - - /// - /// This call update options value for a given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// ApiResponse of Object(void) - ApiResponse OptionsManagementSetOptionsValueByArgomentoWithHttpInfo (OptionsRequestDTO requestDto); - /// - /// This call update visible options for given arguments and users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Options information - /// - void OptionsManagementSetOptionsVisibleByArgomentiUtenti (List request); - - /// - /// This call update visible options for given arguments and users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Options information - /// ApiResponse of Object(void) - ApiResponse OptionsManagementSetOptionsVisibleByArgomentiUtentiWithHttpInfo (List request); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call retrieves options by the given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// Task of List<OptionsDTO> - System.Threading.Tasks.Task> OptionsManagementGetByArgomentoAsync (string argument); - - /// - /// This call retrieves options by the given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Argument filter - /// Task of ApiResponse (List<OptionsDTO>) - System.Threading.Tasks.Task>> OptionsManagementGetByArgomentoAsyncWithHttpInfo (string argument); - /// - /// This call update options value for a given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// Task of void - System.Threading.Tasks.Task OptionsManagementSetOptionsValueByArgomentoAsync (OptionsRequestDTO requestDto); - - /// - /// This call update options value for a given argument - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Option information - /// Task of ApiResponse - System.Threading.Tasks.Task> OptionsManagementSetOptionsValueByArgomentoAsyncWithHttpInfo (OptionsRequestDTO requestDto); - /// - /// This call update visible options for given arguments and users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Options information - /// Task of void - System.Threading.Tasks.Task OptionsManagementSetOptionsVisibleByArgomentiUtentiAsync (List request); - - /// - /// This call update visible options for given arguments and users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Options information - /// Task of ApiResponse - System.Threading.Tasks.Task> OptionsManagementSetOptionsVisibleByArgomentiUtentiAsyncWithHttpInfo (List request); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class OptionsManagementApi : IOptionsManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public OptionsManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public OptionsManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call retrieves options by the given argument - /// - /// Thrown when fails to make API call - /// Argument filter - /// List<OptionsDTO> - public List OptionsManagementGetByArgomento (string argument) - { - ApiResponse> localVarResponse = OptionsManagementGetByArgomentoWithHttpInfo(argument); - return localVarResponse.Data; - } - - /// - /// This call retrieves options by the given argument - /// - /// Thrown when fails to make API call - /// Argument filter - /// ApiResponse of List<OptionsDTO> - public ApiResponse< List > OptionsManagementGetByArgomentoWithHttpInfo (string argument) - { - // verify the required parameter 'argument' is set - if (argument == null) - throw new ApiException(400, "Missing required parameter 'argument' when calling OptionsManagementApi->OptionsManagementGetByArgomento"); - - var localVarPath = "/api/management/Options/topic/{argument}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (argument != null) localVarPathParams.Add("argument", this.Configuration.ApiClient.ParameterToString(argument)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsManagementGetByArgomento", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieves options by the given argument - /// - /// Thrown when fails to make API call - /// Argument filter - /// Task of List<OptionsDTO> - public async System.Threading.Tasks.Task> OptionsManagementGetByArgomentoAsync (string argument) - { - ApiResponse> localVarResponse = await OptionsManagementGetByArgomentoAsyncWithHttpInfo(argument); - return localVarResponse.Data; - - } - - /// - /// This call retrieves options by the given argument - /// - /// Thrown when fails to make API call - /// Argument filter - /// Task of ApiResponse (List<OptionsDTO>) - public async System.Threading.Tasks.Task>> OptionsManagementGetByArgomentoAsyncWithHttpInfo (string argument) - { - // verify the required parameter 'argument' is set - if (argument == null) - throw new ApiException(400, "Missing required parameter 'argument' when calling OptionsManagementApi->OptionsManagementGetByArgomento"); - - var localVarPath = "/api/management/Options/topic/{argument}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (argument != null) localVarPathParams.Add("argument", this.Configuration.ApiClient.ParameterToString(argument)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsManagementGetByArgomento", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call update options value for a given argument - /// - /// Thrown when fails to make API call - /// Option information - /// - public void OptionsManagementSetOptionsValueByArgomento (OptionsRequestDTO requestDto) - { - OptionsManagementSetOptionsValueByArgomentoWithHttpInfo(requestDto); - } - - /// - /// This call update options value for a given argument - /// - /// Thrown when fails to make API call - /// Option information - /// ApiResponse of Object(void) - public ApiResponse OptionsManagementSetOptionsValueByArgomentoWithHttpInfo (OptionsRequestDTO requestDto) - { - // verify the required parameter 'requestDto' is set - if (requestDto == null) - throw new ApiException(400, "Missing required parameter 'requestDto' when calling OptionsManagementApi->OptionsManagementSetOptionsValueByArgomento"); - - var localVarPath = "/api/management/Options/topic"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestDto != null && requestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestDto); // http body (model) parameter - } - else - { - localVarPostBody = requestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsManagementSetOptionsValueByArgomento", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update options value for a given argument - /// - /// Thrown when fails to make API call - /// Option information - /// Task of void - public async System.Threading.Tasks.Task OptionsManagementSetOptionsValueByArgomentoAsync (OptionsRequestDTO requestDto) - { - await OptionsManagementSetOptionsValueByArgomentoAsyncWithHttpInfo(requestDto); - - } - - /// - /// This call update options value for a given argument - /// - /// Thrown when fails to make API call - /// Option information - /// Task of ApiResponse - public async System.Threading.Tasks.Task> OptionsManagementSetOptionsValueByArgomentoAsyncWithHttpInfo (OptionsRequestDTO requestDto) - { - // verify the required parameter 'requestDto' is set - if (requestDto == null) - throw new ApiException(400, "Missing required parameter 'requestDto' when calling OptionsManagementApi->OptionsManagementSetOptionsValueByArgomento"); - - var localVarPath = "/api/management/Options/topic"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestDto != null && requestDto.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestDto); // http body (model) parameter - } - else - { - localVarPostBody = requestDto; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsManagementSetOptionsValueByArgomento", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update visible options for given arguments and users - /// - /// Thrown when fails to make API call - /// Options information - /// - public void OptionsManagementSetOptionsVisibleByArgomentiUtenti (List request) - { - OptionsManagementSetOptionsVisibleByArgomentiUtentiWithHttpInfo(request); - } - - /// - /// This call update visible options for given arguments and users - /// - /// Thrown when fails to make API call - /// Options information - /// ApiResponse of Object(void) - public ApiResponse OptionsManagementSetOptionsVisibleByArgomentiUtentiWithHttpInfo (List request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling OptionsManagementApi->OptionsManagementSetOptionsVisibleByArgomentiUtenti"); - - var localVarPath = "/api/management/Options/topicsAndUsersVisible"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsManagementSetOptionsVisibleByArgomentiUtenti", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update visible options for given arguments and users - /// - /// Thrown when fails to make API call - /// Options information - /// Task of void - public async System.Threading.Tasks.Task OptionsManagementSetOptionsVisibleByArgomentiUtentiAsync (List request) - { - await OptionsManagementSetOptionsVisibleByArgomentiUtentiAsyncWithHttpInfo(request); - - } - - /// - /// This call update visible options for given arguments and users - /// - /// Thrown when fails to make API call - /// Options information - /// Task of ApiResponse - public async System.Threading.Tasks.Task> OptionsManagementSetOptionsVisibleByArgomentiUtentiAsyncWithHttpInfo (List request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling OptionsManagementApi->OptionsManagementSetOptionsVisibleByArgomentiUtenti"); - - var localVarPath = "/api/management/Options/topicsAndUsersVisible"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("OptionsManagementSetOptionsVisibleByArgomentiUtenti", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/PredefinedProfilesManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/PredefinedProfilesManagementApi.cs deleted file mode 100644 index 257258e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/PredefinedProfilesManagementApi.cs +++ /dev/null @@ -1,496 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IPredefinedProfilesManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all the predefined profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<PredefinedProfileDTO> - List PredefinedProfilesManagementGet (); - - /// - /// This call returns all the predefined profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<PredefinedProfileDTO> - ApiResponse> PredefinedProfilesManagementGetWithHttpInfo (); - /// - /// This call returns a predefined profile by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// PredefinedProfileDTO - PredefinedProfileDTO PredefinedProfilesManagementGetById (int? predefinedProfileId); - - /// - /// This call returns a predefined profile by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// ApiResponse of PredefinedProfileDTO - ApiResponse PredefinedProfilesManagementGetByIdWithHttpInfo (int? predefinedProfileId); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all the predefined profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<PredefinedProfileDTO> - System.Threading.Tasks.Task> PredefinedProfilesManagementGetAsync (); - - /// - /// This call returns all the predefined profiles - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<PredefinedProfileDTO>) - System.Threading.Tasks.Task>> PredefinedProfilesManagementGetAsyncWithHttpInfo (); - /// - /// This call returns a predefined profile by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of PredefinedProfileDTO - System.Threading.Tasks.Task PredefinedProfilesManagementGetByIdAsync (int? predefinedProfileId); - - /// - /// This call returns a predefined profile by its id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of ApiResponse (PredefinedProfileDTO) - System.Threading.Tasks.Task> PredefinedProfilesManagementGetByIdAsyncWithHttpInfo (int? predefinedProfileId); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class PredefinedProfilesManagementApi : IPredefinedProfilesManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public PredefinedProfilesManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public PredefinedProfilesManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all the predefined profiles - /// - /// Thrown when fails to make API call - /// List<PredefinedProfileDTO> - public List PredefinedProfilesManagementGet () - { - ApiResponse> localVarResponse = PredefinedProfilesManagementGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all the predefined profiles - /// - /// Thrown when fails to make API call - /// ApiResponse of List<PredefinedProfileDTO> - public ApiResponse< List > PredefinedProfilesManagementGetWithHttpInfo () - { - - var localVarPath = "/api/management/PredefinedProfiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesManagementGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all the predefined profiles - /// - /// Thrown when fails to make API call - /// Task of List<PredefinedProfileDTO> - public async System.Threading.Tasks.Task> PredefinedProfilesManagementGetAsync () - { - ApiResponse> localVarResponse = await PredefinedProfilesManagementGetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all the predefined profiles - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<PredefinedProfileDTO>) - public async System.Threading.Tasks.Task>> PredefinedProfilesManagementGetAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/PredefinedProfiles"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesManagementGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns a predefined profile by its id - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// PredefinedProfileDTO - public PredefinedProfileDTO PredefinedProfilesManagementGetById (int? predefinedProfileId) - { - ApiResponse localVarResponse = PredefinedProfilesManagementGetByIdWithHttpInfo(predefinedProfileId); - return localVarResponse.Data; - } - - /// - /// This call returns a predefined profile by its id - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// ApiResponse of PredefinedProfileDTO - public ApiResponse< PredefinedProfileDTO > PredefinedProfilesManagementGetByIdWithHttpInfo (int? predefinedProfileId) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesManagementApi->PredefinedProfilesManagementGetById"); - - var localVarPath = "/api/management/PredefinedProfiles/{predefinedProfileId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesManagementGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PredefinedProfileDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PredefinedProfileDTO))); - } - - /// - /// This call returns a predefined profile by its id - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of PredefinedProfileDTO - public async System.Threading.Tasks.Task PredefinedProfilesManagementGetByIdAsync (int? predefinedProfileId) - { - ApiResponse localVarResponse = await PredefinedProfilesManagementGetByIdAsyncWithHttpInfo(predefinedProfileId); - return localVarResponse.Data; - - } - - /// - /// This call returns a predefined profile by its id - /// - /// Thrown when fails to make API call - /// Predefined profile identifier - /// Task of ApiResponse (PredefinedProfileDTO) - public async System.Threading.Tasks.Task> PredefinedProfilesManagementGetByIdAsyncWithHttpInfo (int? predefinedProfileId) - { - // verify the required parameter 'predefinedProfileId' is set - if (predefinedProfileId == null) - throw new ApiException(400, "Missing required parameter 'predefinedProfileId' when calling PredefinedProfilesManagementApi->PredefinedProfilesManagementGetById"); - - var localVarPath = "/api/management/PredefinedProfiles/{predefinedProfileId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (predefinedProfileId != null) localVarPathParams.Add("predefinedProfileId", this.Configuration.ApiClient.ParameterToString(predefinedProfileId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("PredefinedProfilesManagementGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PredefinedProfileDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PredefinedProfileDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/ProfilesManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/ProfilesManagementApi.cs deleted file mode 100644 index f7692e7..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/ProfilesManagementApi.cs +++ /dev/null @@ -1,1095 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IProfilesManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns log level - /// - /// - /// - /// - /// Thrown when fails to make API call - /// LogLevelDTO - LogLevelDTO ProfilesManagementGetLogLevel (); - - /// - /// This call returns log level - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of LogLevelDTO - ApiResponse ProfilesManagementGetLogLevelWithHttpInfo (); - /// - /// This call returns profiling settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ProfileSettingsDTO - ProfileSettingsDTO ProfilesManagementGetSettings (); - - /// - /// This call returns profiling settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of ProfileSettingsDTO - ApiResponse ProfilesManagementGetSettingsWithHttpInfo (); - /// - /// This call updates settings for writing documents - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document writing settings - /// - void ProfilesManagementSetDocumentsWritingSettings (DocumentsWritingSettingsDTO settings); - - /// - /// This call updates settings for writing documents - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document writing settings - /// ApiResponse of Object(void) - ApiResponse ProfilesManagementSetDocumentsWritingSettingsWithHttpInfo (DocumentsWritingSettingsDTO settings); - /// - /// This call updates log level - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Log level - /// - void ProfilesManagementSetLogLevel (LogLevelDTO logLevel); - - /// - /// This call updates log level - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Log level - /// ApiResponse of Object(void) - ApiResponse ProfilesManagementSetLogLevelWithHttpInfo (LogLevelDTO logLevel); - /// - /// This call updates list of file extensions that can be opened for reading only - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of file extensions that can be opened for reading only - /// - void ProfilesManagementSetReadOnlyFileExtensions (List readOnlyFileExtensions); - - /// - /// This call updates list of file extensions that can be opened for reading only - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of file extensions that can be opened for reading only - /// ApiResponse of Object(void) - ApiResponse ProfilesManagementSetReadOnlyFileExtensionsWithHttpInfo (List readOnlyFileExtensions); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns log level - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of LogLevelDTO - System.Threading.Tasks.Task ProfilesManagementGetLogLevelAsync (); - - /// - /// This call returns log level - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (LogLevelDTO) - System.Threading.Tasks.Task> ProfilesManagementGetLogLevelAsyncWithHttpInfo (); - /// - /// This call returns profiling settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ProfileSettingsDTO - System.Threading.Tasks.Task ProfilesManagementGetSettingsAsync (); - - /// - /// This call returns profiling settings - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (ProfileSettingsDTO) - System.Threading.Tasks.Task> ProfilesManagementGetSettingsAsyncWithHttpInfo (); - /// - /// This call updates settings for writing documents - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document writing settings - /// Task of void - System.Threading.Tasks.Task ProfilesManagementSetDocumentsWritingSettingsAsync (DocumentsWritingSettingsDTO settings); - - /// - /// This call updates settings for writing documents - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document writing settings - /// Task of ApiResponse - System.Threading.Tasks.Task> ProfilesManagementSetDocumentsWritingSettingsAsyncWithHttpInfo (DocumentsWritingSettingsDTO settings); - /// - /// This call updates log level - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Log level - /// Task of void - System.Threading.Tasks.Task ProfilesManagementSetLogLevelAsync (LogLevelDTO logLevel); - - /// - /// This call updates log level - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Log level - /// Task of ApiResponse - System.Threading.Tasks.Task> ProfilesManagementSetLogLevelAsyncWithHttpInfo (LogLevelDTO logLevel); - /// - /// This call updates list of file extensions that can be opened for reading only - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of file extensions that can be opened for reading only - /// Task of void - System.Threading.Tasks.Task ProfilesManagementSetReadOnlyFileExtensionsAsync (List readOnlyFileExtensions); - - /// - /// This call updates list of file extensions that can be opened for reading only - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List of file extensions that can be opened for reading only - /// Task of ApiResponse - System.Threading.Tasks.Task> ProfilesManagementSetReadOnlyFileExtensionsAsyncWithHttpInfo (List readOnlyFileExtensions); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ProfilesManagementApi : IProfilesManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ProfilesManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ProfilesManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns log level - /// - /// Thrown when fails to make API call - /// LogLevelDTO - public LogLevelDTO ProfilesManagementGetLogLevel () - { - ApiResponse localVarResponse = ProfilesManagementGetLogLevelWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns log level - /// - /// Thrown when fails to make API call - /// ApiResponse of LogLevelDTO - public ApiResponse< LogLevelDTO > ProfilesManagementGetLogLevelWithHttpInfo () - { - - var localVarPath = "/api/management/Profiles/LogLevel"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesManagementGetLogLevel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogLevelDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogLevelDTO))); - } - - /// - /// This call returns log level - /// - /// Thrown when fails to make API call - /// Task of LogLevelDTO - public async System.Threading.Tasks.Task ProfilesManagementGetLogLevelAsync () - { - ApiResponse localVarResponse = await ProfilesManagementGetLogLevelAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns log level - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (LogLevelDTO) - public async System.Threading.Tasks.Task> ProfilesManagementGetLogLevelAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Profiles/LogLevel"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesManagementGetLogLevel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LogLevelDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LogLevelDTO))); - } - - /// - /// This call returns profiling settings - /// - /// Thrown when fails to make API call - /// ProfileSettingsDTO - public ProfileSettingsDTO ProfilesManagementGetSettings () - { - ApiResponse localVarResponse = ProfilesManagementGetSettingsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns profiling settings - /// - /// Thrown when fails to make API call - /// ApiResponse of ProfileSettingsDTO - public ApiResponse< ProfileSettingsDTO > ProfilesManagementGetSettingsWithHttpInfo () - { - - var localVarPath = "/api/management/Profiles/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesManagementGetSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileSettingsDTO))); - } - - /// - /// This call returns profiling settings - /// - /// Thrown when fails to make API call - /// Task of ProfileSettingsDTO - public async System.Threading.Tasks.Task ProfilesManagementGetSettingsAsync () - { - ApiResponse localVarResponse = await ProfilesManagementGetSettingsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns profiling settings - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (ProfileSettingsDTO) - public async System.Threading.Tasks.Task> ProfilesManagementGetSettingsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Profiles/Settings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesManagementGetSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProfileSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProfileSettingsDTO))); - } - - /// - /// This call updates settings for writing documents - /// - /// Thrown when fails to make API call - /// Document writing settings - /// - public void ProfilesManagementSetDocumentsWritingSettings (DocumentsWritingSettingsDTO settings) - { - ProfilesManagementSetDocumentsWritingSettingsWithHttpInfo(settings); - } - - /// - /// This call updates settings for writing documents - /// - /// Thrown when fails to make API call - /// Document writing settings - /// ApiResponse of Object(void) - public ApiResponse ProfilesManagementSetDocumentsWritingSettingsWithHttpInfo (DocumentsWritingSettingsDTO settings) - { - // verify the required parameter 'settings' is set - if (settings == null) - throw new ApiException(400, "Missing required parameter 'settings' when calling ProfilesManagementApi->ProfilesManagementSetDocumentsWritingSettings"); - - var localVarPath = "/api/management/Profiles/DocumentsWritingSettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (settings != null && settings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(settings); // http body (model) parameter - } - else - { - localVarPostBody = settings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesManagementSetDocumentsWritingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates settings for writing documents - /// - /// Thrown when fails to make API call - /// Document writing settings - /// Task of void - public async System.Threading.Tasks.Task ProfilesManagementSetDocumentsWritingSettingsAsync (DocumentsWritingSettingsDTO settings) - { - await ProfilesManagementSetDocumentsWritingSettingsAsyncWithHttpInfo(settings); - - } - - /// - /// This call updates settings for writing documents - /// - /// Thrown when fails to make API call - /// Document writing settings - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ProfilesManagementSetDocumentsWritingSettingsAsyncWithHttpInfo (DocumentsWritingSettingsDTO settings) - { - // verify the required parameter 'settings' is set - if (settings == null) - throw new ApiException(400, "Missing required parameter 'settings' when calling ProfilesManagementApi->ProfilesManagementSetDocumentsWritingSettings"); - - var localVarPath = "/api/management/Profiles/DocumentsWritingSettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (settings != null && settings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(settings); // http body (model) parameter - } - else - { - localVarPostBody = settings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesManagementSetDocumentsWritingSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates log level - /// - /// Thrown when fails to make API call - /// Log level - /// - public void ProfilesManagementSetLogLevel (LogLevelDTO logLevel) - { - ProfilesManagementSetLogLevelWithHttpInfo(logLevel); - } - - /// - /// This call updates log level - /// - /// Thrown when fails to make API call - /// Log level - /// ApiResponse of Object(void) - public ApiResponse ProfilesManagementSetLogLevelWithHttpInfo (LogLevelDTO logLevel) - { - // verify the required parameter 'logLevel' is set - if (logLevel == null) - throw new ApiException(400, "Missing required parameter 'logLevel' when calling ProfilesManagementApi->ProfilesManagementSetLogLevel"); - - var localVarPath = "/api/management/Profiles/LogLevel"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (logLevel != null && logLevel.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(logLevel); // http body (model) parameter - } - else - { - localVarPostBody = logLevel; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesManagementSetLogLevel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates log level - /// - /// Thrown when fails to make API call - /// Log level - /// Task of void - public async System.Threading.Tasks.Task ProfilesManagementSetLogLevelAsync (LogLevelDTO logLevel) - { - await ProfilesManagementSetLogLevelAsyncWithHttpInfo(logLevel); - - } - - /// - /// This call updates log level - /// - /// Thrown when fails to make API call - /// Log level - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ProfilesManagementSetLogLevelAsyncWithHttpInfo (LogLevelDTO logLevel) - { - // verify the required parameter 'logLevel' is set - if (logLevel == null) - throw new ApiException(400, "Missing required parameter 'logLevel' when calling ProfilesManagementApi->ProfilesManagementSetLogLevel"); - - var localVarPath = "/api/management/Profiles/LogLevel"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (logLevel != null && logLevel.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(logLevel); // http body (model) parameter - } - else - { - localVarPostBody = logLevel; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesManagementSetLogLevel", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates list of file extensions that can be opened for reading only - /// - /// Thrown when fails to make API call - /// List of file extensions that can be opened for reading only - /// - public void ProfilesManagementSetReadOnlyFileExtensions (List readOnlyFileExtensions) - { - ProfilesManagementSetReadOnlyFileExtensionsWithHttpInfo(readOnlyFileExtensions); - } - - /// - /// This call updates list of file extensions that can be opened for reading only - /// - /// Thrown when fails to make API call - /// List of file extensions that can be opened for reading only - /// ApiResponse of Object(void) - public ApiResponse ProfilesManagementSetReadOnlyFileExtensionsWithHttpInfo (List readOnlyFileExtensions) - { - // verify the required parameter 'readOnlyFileExtensions' is set - if (readOnlyFileExtensions == null) - throw new ApiException(400, "Missing required parameter 'readOnlyFileExtensions' when calling ProfilesManagementApi->ProfilesManagementSetReadOnlyFileExtensions"); - - var localVarPath = "/api/management/Profiles/ReadOnlyFileExtensions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (readOnlyFileExtensions != null && readOnlyFileExtensions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(readOnlyFileExtensions); // http body (model) parameter - } - else - { - localVarPostBody = readOnlyFileExtensions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesManagementSetReadOnlyFileExtensions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates list of file extensions that can be opened for reading only - /// - /// Thrown when fails to make API call - /// List of file extensions that can be opened for reading only - /// Task of void - public async System.Threading.Tasks.Task ProfilesManagementSetReadOnlyFileExtensionsAsync (List readOnlyFileExtensions) - { - await ProfilesManagementSetReadOnlyFileExtensionsAsyncWithHttpInfo(readOnlyFileExtensions); - - } - - /// - /// This call updates list of file extensions that can be opened for reading only - /// - /// Thrown when fails to make API call - /// List of file extensions that can be opened for reading only - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ProfilesManagementSetReadOnlyFileExtensionsAsyncWithHttpInfo (List readOnlyFileExtensions) - { - // verify the required parameter 'readOnlyFileExtensions' is set - if (readOnlyFileExtensions == null) - throw new ApiException(400, "Missing required parameter 'readOnlyFileExtensions' when calling ProfilesManagementApi->ProfilesManagementSetReadOnlyFileExtensions"); - - var localVarPath = "/api/management/Profiles/ReadOnlyFileExtensions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (readOnlyFileExtensions != null && readOnlyFileExtensions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(readOnlyFileExtensions); // http body (model) parameter - } - else - { - localVarPostBody = readOnlyFileExtensions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ProfilesManagementSetReadOnlyFileExtensions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/RemoteSignConfigurationManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/RemoteSignConfigurationManagementApi.cs deleted file mode 100644 index 2a11dc9..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/RemoteSignConfigurationManagementApi.cs +++ /dev/null @@ -1,536 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IRemoteSignConfigurationManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// Get remote sign configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba - /// RemoteSignConfigurationDto - RemoteSignConfigurationDto RemoteSignConfigurationManagementGetRemoteSignConfiguration (int? signCertType); - - /// - /// Get remote sign configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba - /// ApiResponse of RemoteSignConfigurationDto - ApiResponse RemoteSignConfigurationManagementGetRemoteSignConfigurationWithHttpInfo (int? signCertType); - /// - /// Update remote sign configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// RemoteSignConfigurationDto - RemoteSignConfigurationDto RemoteSignConfigurationManagementUpdateRemoteSignConfiguration (RemoteSignConfigurationDto remoteSignConfiguration); - - /// - /// Update remote sign configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of RemoteSignConfigurationDto - ApiResponse RemoteSignConfigurationManagementUpdateRemoteSignConfigurationWithHttpInfo (RemoteSignConfigurationDto remoteSignConfiguration); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// Get remote sign configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba - /// Task of RemoteSignConfigurationDto - System.Threading.Tasks.Task RemoteSignConfigurationManagementGetRemoteSignConfigurationAsync (int? signCertType); - - /// - /// Get remote sign configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba - /// Task of ApiResponse (RemoteSignConfigurationDto) - System.Threading.Tasks.Task> RemoteSignConfigurationManagementGetRemoteSignConfigurationAsyncWithHttpInfo (int? signCertType); - /// - /// Update remote sign configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of RemoteSignConfigurationDto - System.Threading.Tasks.Task RemoteSignConfigurationManagementUpdateRemoteSignConfigurationAsync (RemoteSignConfigurationDto remoteSignConfiguration); - - /// - /// Update remote sign configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (RemoteSignConfigurationDto) - System.Threading.Tasks.Task> RemoteSignConfigurationManagementUpdateRemoteSignConfigurationAsyncWithHttpInfo (RemoteSignConfigurationDto remoteSignConfiguration); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class RemoteSignConfigurationManagementApi : IRemoteSignConfigurationManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public RemoteSignConfigurationManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public RemoteSignConfigurationManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// Get remote sign configuration - /// - /// Thrown when fails to make API call - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba - /// RemoteSignConfigurationDto - public RemoteSignConfigurationDto RemoteSignConfigurationManagementGetRemoteSignConfiguration (int? signCertType) - { - ApiResponse localVarResponse = RemoteSignConfigurationManagementGetRemoteSignConfigurationWithHttpInfo(signCertType); - return localVarResponse.Data; - } - - /// - /// Get remote sign configuration - /// - /// Thrown when fails to make API call - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba - /// ApiResponse of RemoteSignConfigurationDto - public ApiResponse< RemoteSignConfigurationDto > RemoteSignConfigurationManagementGetRemoteSignConfigurationWithHttpInfo (int? signCertType) - { - // verify the required parameter 'signCertType' is set - if (signCertType == null) - throw new ApiException(400, "Missing required parameter 'signCertType' when calling RemoteSignConfigurationManagementApi->RemoteSignConfigurationManagementGetRemoteSignConfiguration"); - - var localVarPath = "/api/management/RemoteSignConfiguration"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (signCertType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "signCertType", signCertType)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RemoteSignConfigurationManagementGetRemoteSignConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RemoteSignConfigurationDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteSignConfigurationDto))); - } - - /// - /// Get remote sign configuration - /// - /// Thrown when fails to make API call - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba - /// Task of RemoteSignConfigurationDto - public async System.Threading.Tasks.Task RemoteSignConfigurationManagementGetRemoteSignConfigurationAsync (int? signCertType) - { - ApiResponse localVarResponse = await RemoteSignConfigurationManagementGetRemoteSignConfigurationAsyncWithHttpInfo(signCertType); - return localVarResponse.Data; - - } - - /// - /// Get remote sign configuration - /// - /// Thrown when fails to make API call - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba - /// Task of ApiResponse (RemoteSignConfigurationDto) - public async System.Threading.Tasks.Task> RemoteSignConfigurationManagementGetRemoteSignConfigurationAsyncWithHttpInfo (int? signCertType) - { - // verify the required parameter 'signCertType' is set - if (signCertType == null) - throw new ApiException(400, "Missing required parameter 'signCertType' when calling RemoteSignConfigurationManagementApi->RemoteSignConfigurationManagementGetRemoteSignConfiguration"); - - var localVarPath = "/api/management/RemoteSignConfiguration"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (signCertType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "signCertType", signCertType)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RemoteSignConfigurationManagementGetRemoteSignConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RemoteSignConfigurationDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteSignConfigurationDto))); - } - - /// - /// Update remote sign configuration - /// - /// Thrown when fails to make API call - /// - /// RemoteSignConfigurationDto - public RemoteSignConfigurationDto RemoteSignConfigurationManagementUpdateRemoteSignConfiguration (RemoteSignConfigurationDto remoteSignConfiguration) - { - ApiResponse localVarResponse = RemoteSignConfigurationManagementUpdateRemoteSignConfigurationWithHttpInfo(remoteSignConfiguration); - return localVarResponse.Data; - } - - /// - /// Update remote sign configuration - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of RemoteSignConfigurationDto - public ApiResponse< RemoteSignConfigurationDto > RemoteSignConfigurationManagementUpdateRemoteSignConfigurationWithHttpInfo (RemoteSignConfigurationDto remoteSignConfiguration) - { - // verify the required parameter 'remoteSignConfiguration' is set - if (remoteSignConfiguration == null) - throw new ApiException(400, "Missing required parameter 'remoteSignConfiguration' when calling RemoteSignConfigurationManagementApi->RemoteSignConfigurationManagementUpdateRemoteSignConfiguration"); - - var localVarPath = "/api/management/RemoteSignConfiguration"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (remoteSignConfiguration != null && remoteSignConfiguration.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(remoteSignConfiguration); // http body (model) parameter - } - else - { - localVarPostBody = remoteSignConfiguration; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RemoteSignConfigurationManagementUpdateRemoteSignConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RemoteSignConfigurationDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteSignConfigurationDto))); - } - - /// - /// Update remote sign configuration - /// - /// Thrown when fails to make API call - /// - /// Task of RemoteSignConfigurationDto - public async System.Threading.Tasks.Task RemoteSignConfigurationManagementUpdateRemoteSignConfigurationAsync (RemoteSignConfigurationDto remoteSignConfiguration) - { - ApiResponse localVarResponse = await RemoteSignConfigurationManagementUpdateRemoteSignConfigurationAsyncWithHttpInfo(remoteSignConfiguration); - return localVarResponse.Data; - - } - - /// - /// Update remote sign configuration - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (RemoteSignConfigurationDto) - public async System.Threading.Tasks.Task> RemoteSignConfigurationManagementUpdateRemoteSignConfigurationAsyncWithHttpInfo (RemoteSignConfigurationDto remoteSignConfiguration) - { - // verify the required parameter 'remoteSignConfiguration' is set - if (remoteSignConfiguration == null) - throw new ApiException(400, "Missing required parameter 'remoteSignConfiguration' when calling RemoteSignConfigurationManagementApi->RemoteSignConfigurationManagementUpdateRemoteSignConfiguration"); - - var localVarPath = "/api/management/RemoteSignConfiguration"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (remoteSignConfiguration != null && remoteSignConfiguration.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(remoteSignConfiguration); // http body (model) parameter - } - else - { - localVarPostBody = remoteSignConfiguration; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("RemoteSignConfigurationManagementUpdateRemoteSignConfiguration", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RemoteSignConfigurationDto) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteSignConfigurationDto))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/SearchManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/SearchManagementApi.cs deleted file mode 100644 index a3d5b62..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/SearchManagementApi.cs +++ /dev/null @@ -1,305 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ISearchManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<FindDTO> - List SearchManagementGetQuickSearch (); - - /// - /// This call returns all quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<FindDTO> - ApiResponse> SearchManagementGetQuickSearchWithHttpInfo (); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<FindDTO> - System.Threading.Tasks.Task> SearchManagementGetQuickSearchAsync (); - - /// - /// This call returns all quick search - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<FindDTO>) - System.Threading.Tasks.Task>> SearchManagementGetQuickSearchAsyncWithHttpInfo (); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class SearchManagementApi : ISearchManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public SearchManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public SearchManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all quick search - /// - /// Thrown when fails to make API call - /// List<FindDTO> - public List SearchManagementGetQuickSearch () - { - ApiResponse> localVarResponse = SearchManagementGetQuickSearchWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all quick search - /// - /// Thrown when fails to make API call - /// ApiResponse of List<FindDTO> - public ApiResponse< List > SearchManagementGetQuickSearchWithHttpInfo () - { - - var localVarPath = "/api/management/Searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchManagementGetQuickSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all quick search - /// - /// Thrown when fails to make API call - /// Task of List<FindDTO> - public async System.Threading.Tasks.Task> SearchManagementGetQuickSearchAsync () - { - ApiResponse> localVarResponse = await SearchManagementGetQuickSearchAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all quick search - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<FindDTO>) - public async System.Threading.Tasks.Task>> SearchManagementGetQuickSearchAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Searches"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SearchManagementGetQuickSearch", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/SecurityManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/SecurityManagementApi.cs deleted file mode 100644 index a18eafb..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/SecurityManagementApi.cs +++ /dev/null @@ -1,1543 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ISecurityManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call allows to copy security from one business unit to many - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit copy options - /// - void SecurityManagementCopySecurityByBusinessUnit (SecurityBusinessUnitCopyOptionsDTO copyOptions); - - /// - /// This call allows to copy security from one business unit to many - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit copy options - /// ApiResponse of Object(void) - ApiResponse SecurityManagementCopySecurityByBusinessUnitWithHttpInfo (SecurityBusinessUnitCopyOptionsDTO copyOptions); - /// - /// This call allows to copy security from one document type to many - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type copy options - /// - void SecurityManagementCopySecurityByDocumentType (SecurityDocumentTypeCopyOptionsDTO copyOptions); - - /// - /// This call allows to copy security from one document type to many - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type copy options - /// ApiResponse of Object(void) - ApiResponse SecurityManagementCopySecurityByDocumentTypeWithHttpInfo (SecurityDocumentTypeCopyOptionsDTO copyOptions); - /// - /// This call allows to copy security from one user to many - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User copy options - /// - void SecurityManagementCopySecurityByUser (SecurityUserCopyOptionsDTO copyOptions); - - /// - /// This call allows to copy security from one user to many - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User copy options - /// ApiResponse of Object(void) - ApiResponse SecurityManagementCopySecurityByUserWithHttpInfo (SecurityUserCopyOptionsDTO copyOptions); - /// - /// This call exports security - /// - /// - /// - /// - /// Thrown when fails to make API call - /// SecurityExportCsvResponseDTO - SecurityExportCsvResponseDTO SecurityManagementExportSecurity (); - - /// - /// This call exports security - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of SecurityExportCsvResponseDTO - ApiResponse SecurityManagementExportSecurityWithHttpInfo (); - /// - /// This call exports security for profile by doc number - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// SecurityExportCsvResponseDTO - SecurityExportCsvResponseDTO SecurityManagementExportSecurityForProfile (int? docNumber); - - /// - /// This call exports security for profile by doc number - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SecurityExportCsvResponseDTO - ApiResponse SecurityManagementExportSecurityForProfileWithHttpInfo (int? docNumber); - /// - /// This call returns the security for user and business unit or document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: User 1: DocumentType - /// Business Unit identifier - /// User identifier (optional) - /// Document type identifier (optional) - /// List<SecurityDTO> - List SecurityManagementGetSecurityList (int? mode, string businessUnitCode, int? userId = null, int? documentTypeId = null); - - /// - /// This call returns the security for user and business unit or document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: User 1: DocumentType - /// Business Unit identifier - /// User identifier (optional) - /// Document type identifier (optional) - /// ApiResponse of List<SecurityDTO> - ApiResponse> SecurityManagementGetSecurityListWithHttpInfo (int? mode, string businessUnitCode, int? userId = null, int? documentTypeId = null); - /// - /// This call allows to insert or update security options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Security options - /// - void SecurityManagementWriteSecurity (List security); - - /// - /// This call allows to insert or update security options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Security options - /// ApiResponse of Object(void) - ApiResponse SecurityManagementWriteSecurityWithHttpInfo (List security); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call allows to copy security from one business unit to many - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit copy options - /// Task of void - System.Threading.Tasks.Task SecurityManagementCopySecurityByBusinessUnitAsync (SecurityBusinessUnitCopyOptionsDTO copyOptions); - - /// - /// This call allows to copy security from one business unit to many - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Business unit copy options - /// Task of ApiResponse - System.Threading.Tasks.Task> SecurityManagementCopySecurityByBusinessUnitAsyncWithHttpInfo (SecurityBusinessUnitCopyOptionsDTO copyOptions); - /// - /// This call allows to copy security from one document type to many - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type copy options - /// Task of void - System.Threading.Tasks.Task SecurityManagementCopySecurityByDocumentTypeAsync (SecurityDocumentTypeCopyOptionsDTO copyOptions); - - /// - /// This call allows to copy security from one document type to many - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document type copy options - /// Task of ApiResponse - System.Threading.Tasks.Task> SecurityManagementCopySecurityByDocumentTypeAsyncWithHttpInfo (SecurityDocumentTypeCopyOptionsDTO copyOptions); - /// - /// This call allows to copy security from one user to many - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User copy options - /// Task of void - System.Threading.Tasks.Task SecurityManagementCopySecurityByUserAsync (SecurityUserCopyOptionsDTO copyOptions); - - /// - /// This call allows to copy security from one user to many - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User copy options - /// Task of ApiResponse - System.Threading.Tasks.Task> SecurityManagementCopySecurityByUserAsyncWithHttpInfo (SecurityUserCopyOptionsDTO copyOptions); - /// - /// This call exports security - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of SecurityExportCsvResponseDTO - System.Threading.Tasks.Task SecurityManagementExportSecurityAsync (); - - /// - /// This call exports security - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SecurityExportCsvResponseDTO) - System.Threading.Tasks.Task> SecurityManagementExportSecurityAsyncWithHttpInfo (); - /// - /// This call exports security for profile by doc number - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of SecurityExportCsvResponseDTO - System.Threading.Tasks.Task SecurityManagementExportSecurityForProfileAsync (int? docNumber); - - /// - /// This call exports security for profile by doc number - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SecurityExportCsvResponseDTO) - System.Threading.Tasks.Task> SecurityManagementExportSecurityForProfileAsyncWithHttpInfo (int? docNumber); - /// - /// This call returns the security for user and business unit or document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: User 1: DocumentType - /// Business Unit identifier - /// User identifier (optional) - /// Document type identifier (optional) - /// Task of List<SecurityDTO> - System.Threading.Tasks.Task> SecurityManagementGetSecurityListAsync (int? mode, string businessUnitCode, int? userId = null, int? documentTypeId = null); - - /// - /// This call returns the security for user and business unit or document type - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: User 1: DocumentType - /// Business Unit identifier - /// User identifier (optional) - /// Document type identifier (optional) - /// Task of ApiResponse (List<SecurityDTO>) - System.Threading.Tasks.Task>> SecurityManagementGetSecurityListAsyncWithHttpInfo (int? mode, string businessUnitCode, int? userId = null, int? documentTypeId = null); - /// - /// This call allows to insert or update security options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Security options - /// Task of void - System.Threading.Tasks.Task SecurityManagementWriteSecurityAsync (List security); - - /// - /// This call allows to insert or update security options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Security options - /// Task of ApiResponse - System.Threading.Tasks.Task> SecurityManagementWriteSecurityAsyncWithHttpInfo (List security); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class SecurityManagementApi : ISecurityManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public SecurityManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public SecurityManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call allows to copy security from one business unit to many - /// - /// Thrown when fails to make API call - /// Business unit copy options - /// - public void SecurityManagementCopySecurityByBusinessUnit (SecurityBusinessUnitCopyOptionsDTO copyOptions) - { - SecurityManagementCopySecurityByBusinessUnitWithHttpInfo(copyOptions); - } - - /// - /// This call allows to copy security from one business unit to many - /// - /// Thrown when fails to make API call - /// Business unit copy options - /// ApiResponse of Object(void) - public ApiResponse SecurityManagementCopySecurityByBusinessUnitWithHttpInfo (SecurityBusinessUnitCopyOptionsDTO copyOptions) - { - // verify the required parameter 'copyOptions' is set - if (copyOptions == null) - throw new ApiException(400, "Missing required parameter 'copyOptions' when calling SecurityManagementApi->SecurityManagementCopySecurityByBusinessUnit"); - - var localVarPath = "/api/management/Security/security/copyByBusinessUnit"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (copyOptions != null && copyOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(copyOptions); // http body (model) parameter - } - else - { - localVarPostBody = copyOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SecurityManagementCopySecurityByBusinessUnit", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows to copy security from one business unit to many - /// - /// Thrown when fails to make API call - /// Business unit copy options - /// Task of void - public async System.Threading.Tasks.Task SecurityManagementCopySecurityByBusinessUnitAsync (SecurityBusinessUnitCopyOptionsDTO copyOptions) - { - await SecurityManagementCopySecurityByBusinessUnitAsyncWithHttpInfo(copyOptions); - - } - - /// - /// This call allows to copy security from one business unit to many - /// - /// Thrown when fails to make API call - /// Business unit copy options - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SecurityManagementCopySecurityByBusinessUnitAsyncWithHttpInfo (SecurityBusinessUnitCopyOptionsDTO copyOptions) - { - // verify the required parameter 'copyOptions' is set - if (copyOptions == null) - throw new ApiException(400, "Missing required parameter 'copyOptions' when calling SecurityManagementApi->SecurityManagementCopySecurityByBusinessUnit"); - - var localVarPath = "/api/management/Security/security/copyByBusinessUnit"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (copyOptions != null && copyOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(copyOptions); // http body (model) parameter - } - else - { - localVarPostBody = copyOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SecurityManagementCopySecurityByBusinessUnit", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows to copy security from one document type to many - /// - /// Thrown when fails to make API call - /// Document type copy options - /// - public void SecurityManagementCopySecurityByDocumentType (SecurityDocumentTypeCopyOptionsDTO copyOptions) - { - SecurityManagementCopySecurityByDocumentTypeWithHttpInfo(copyOptions); - } - - /// - /// This call allows to copy security from one document type to many - /// - /// Thrown when fails to make API call - /// Document type copy options - /// ApiResponse of Object(void) - public ApiResponse SecurityManagementCopySecurityByDocumentTypeWithHttpInfo (SecurityDocumentTypeCopyOptionsDTO copyOptions) - { - // verify the required parameter 'copyOptions' is set - if (copyOptions == null) - throw new ApiException(400, "Missing required parameter 'copyOptions' when calling SecurityManagementApi->SecurityManagementCopySecurityByDocumentType"); - - var localVarPath = "/api/management/Security/security/copyByDocumentType"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (copyOptions != null && copyOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(copyOptions); // http body (model) parameter - } - else - { - localVarPostBody = copyOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SecurityManagementCopySecurityByDocumentType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows to copy security from one document type to many - /// - /// Thrown when fails to make API call - /// Document type copy options - /// Task of void - public async System.Threading.Tasks.Task SecurityManagementCopySecurityByDocumentTypeAsync (SecurityDocumentTypeCopyOptionsDTO copyOptions) - { - await SecurityManagementCopySecurityByDocumentTypeAsyncWithHttpInfo(copyOptions); - - } - - /// - /// This call allows to copy security from one document type to many - /// - /// Thrown when fails to make API call - /// Document type copy options - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SecurityManagementCopySecurityByDocumentTypeAsyncWithHttpInfo (SecurityDocumentTypeCopyOptionsDTO copyOptions) - { - // verify the required parameter 'copyOptions' is set - if (copyOptions == null) - throw new ApiException(400, "Missing required parameter 'copyOptions' when calling SecurityManagementApi->SecurityManagementCopySecurityByDocumentType"); - - var localVarPath = "/api/management/Security/security/copyByDocumentType"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (copyOptions != null && copyOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(copyOptions); // http body (model) parameter - } - else - { - localVarPostBody = copyOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SecurityManagementCopySecurityByDocumentType", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows to copy security from one user to many - /// - /// Thrown when fails to make API call - /// User copy options - /// - public void SecurityManagementCopySecurityByUser (SecurityUserCopyOptionsDTO copyOptions) - { - SecurityManagementCopySecurityByUserWithHttpInfo(copyOptions); - } - - /// - /// This call allows to copy security from one user to many - /// - /// Thrown when fails to make API call - /// User copy options - /// ApiResponse of Object(void) - public ApiResponse SecurityManagementCopySecurityByUserWithHttpInfo (SecurityUserCopyOptionsDTO copyOptions) - { - // verify the required parameter 'copyOptions' is set - if (copyOptions == null) - throw new ApiException(400, "Missing required parameter 'copyOptions' when calling SecurityManagementApi->SecurityManagementCopySecurityByUser"); - - var localVarPath = "/api/management/Security/security/copyByUser"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (copyOptions != null && copyOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(copyOptions); // http body (model) parameter - } - else - { - localVarPostBody = copyOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SecurityManagementCopySecurityByUser", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows to copy security from one user to many - /// - /// Thrown when fails to make API call - /// User copy options - /// Task of void - public async System.Threading.Tasks.Task SecurityManagementCopySecurityByUserAsync (SecurityUserCopyOptionsDTO copyOptions) - { - await SecurityManagementCopySecurityByUserAsyncWithHttpInfo(copyOptions); - - } - - /// - /// This call allows to copy security from one user to many - /// - /// Thrown when fails to make API call - /// User copy options - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SecurityManagementCopySecurityByUserAsyncWithHttpInfo (SecurityUserCopyOptionsDTO copyOptions) - { - // verify the required parameter 'copyOptions' is set - if (copyOptions == null) - throw new ApiException(400, "Missing required parameter 'copyOptions' when calling SecurityManagementApi->SecurityManagementCopySecurityByUser"); - - var localVarPath = "/api/management/Security/security/copyByUser"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (copyOptions != null && copyOptions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(copyOptions); // http body (model) parameter - } - else - { - localVarPostBody = copyOptions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SecurityManagementCopySecurityByUser", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call exports security - /// - /// Thrown when fails to make API call - /// SecurityExportCsvResponseDTO - public SecurityExportCsvResponseDTO SecurityManagementExportSecurity () - { - ApiResponse localVarResponse = SecurityManagementExportSecurityWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call exports security - /// - /// Thrown when fails to make API call - /// ApiResponse of SecurityExportCsvResponseDTO - public ApiResponse< SecurityExportCsvResponseDTO > SecurityManagementExportSecurityWithHttpInfo () - { - - var localVarPath = "/api/management/Security/security/export"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SecurityManagementExportSecurity", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SecurityExportCsvResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SecurityExportCsvResponseDTO))); - } - - /// - /// This call exports security - /// - /// Thrown when fails to make API call - /// Task of SecurityExportCsvResponseDTO - public async System.Threading.Tasks.Task SecurityManagementExportSecurityAsync () - { - ApiResponse localVarResponse = await SecurityManagementExportSecurityAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call exports security - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (SecurityExportCsvResponseDTO) - public async System.Threading.Tasks.Task> SecurityManagementExportSecurityAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Security/security/export"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SecurityManagementExportSecurity", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SecurityExportCsvResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SecurityExportCsvResponseDTO))); - } - - /// - /// This call exports security for profile by doc number - /// - /// Thrown when fails to make API call - /// - /// SecurityExportCsvResponseDTO - public SecurityExportCsvResponseDTO SecurityManagementExportSecurityForProfile (int? docNumber) - { - ApiResponse localVarResponse = SecurityManagementExportSecurityForProfileWithHttpInfo(docNumber); - return localVarResponse.Data; - } - - /// - /// This call exports security for profile by doc number - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of SecurityExportCsvResponseDTO - public ApiResponse< SecurityExportCsvResponseDTO > SecurityManagementExportSecurityForProfileWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling SecurityManagementApi->SecurityManagementExportSecurityForProfile"); - - var localVarPath = "/api/management/Security/security/export/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SecurityManagementExportSecurityForProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SecurityExportCsvResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SecurityExportCsvResponseDTO))); - } - - /// - /// This call exports security for profile by doc number - /// - /// Thrown when fails to make API call - /// - /// Task of SecurityExportCsvResponseDTO - public async System.Threading.Tasks.Task SecurityManagementExportSecurityForProfileAsync (int? docNumber) - { - ApiResponse localVarResponse = await SecurityManagementExportSecurityForProfileAsyncWithHttpInfo(docNumber); - return localVarResponse.Data; - - } - - /// - /// This call exports security for profile by doc number - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (SecurityExportCsvResponseDTO) - public async System.Threading.Tasks.Task> SecurityManagementExportSecurityForProfileAsyncWithHttpInfo (int? docNumber) - { - // verify the required parameter 'docNumber' is set - if (docNumber == null) - throw new ApiException(400, "Missing required parameter 'docNumber' when calling SecurityManagementApi->SecurityManagementExportSecurityForProfile"); - - var localVarPath = "/api/management/Security/security/export/{docNumber}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (docNumber != null) localVarPathParams.Add("docNumber", this.Configuration.ApiClient.ParameterToString(docNumber)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SecurityManagementExportSecurityForProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SecurityExportCsvResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SecurityExportCsvResponseDTO))); - } - - /// - /// This call returns the security for user and business unit or document type - /// - /// Thrown when fails to make API call - /// Possible values: 0: User 1: DocumentType - /// Business Unit identifier - /// User identifier (optional) - /// Document type identifier (optional) - /// List<SecurityDTO> - public List SecurityManagementGetSecurityList (int? mode, string businessUnitCode, int? userId = null, int? documentTypeId = null) - { - ApiResponse> localVarResponse = SecurityManagementGetSecurityListWithHttpInfo(mode, businessUnitCode, userId, documentTypeId); - return localVarResponse.Data; - } - - /// - /// This call returns the security for user and business unit or document type - /// - /// Thrown when fails to make API call - /// Possible values: 0: User 1: DocumentType - /// Business Unit identifier - /// User identifier (optional) - /// Document type identifier (optional) - /// ApiResponse of List<SecurityDTO> - public ApiResponse< List > SecurityManagementGetSecurityListWithHttpInfo (int? mode, string businessUnitCode, int? userId = null, int? documentTypeId = null) - { - // verify the required parameter 'mode' is set - if (mode == null) - throw new ApiException(400, "Missing required parameter 'mode' when calling SecurityManagementApi->SecurityManagementGetSecurityList"); - // verify the required parameter 'businessUnitCode' is set - if (businessUnitCode == null) - throw new ApiException(400, "Missing required parameter 'businessUnitCode' when calling SecurityManagementApi->SecurityManagementGetSecurityList"); - - var localVarPath = "/api/management/Security/security/mode/{mode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mode != null) localVarPathParams.Add("mode", this.Configuration.ApiClient.ParameterToString(mode)); // path parameter - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter - if (documentTypeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "documentTypeId", documentTypeId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SecurityManagementGetSecurityList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns the security for user and business unit or document type - /// - /// Thrown when fails to make API call - /// Possible values: 0: User 1: DocumentType - /// Business Unit identifier - /// User identifier (optional) - /// Document type identifier (optional) - /// Task of List<SecurityDTO> - public async System.Threading.Tasks.Task> SecurityManagementGetSecurityListAsync (int? mode, string businessUnitCode, int? userId = null, int? documentTypeId = null) - { - ApiResponse> localVarResponse = await SecurityManagementGetSecurityListAsyncWithHttpInfo(mode, businessUnitCode, userId, documentTypeId); - return localVarResponse.Data; - - } - - /// - /// This call returns the security for user and business unit or document type - /// - /// Thrown when fails to make API call - /// Possible values: 0: User 1: DocumentType - /// Business Unit identifier - /// User identifier (optional) - /// Document type identifier (optional) - /// Task of ApiResponse (List<SecurityDTO>) - public async System.Threading.Tasks.Task>> SecurityManagementGetSecurityListAsyncWithHttpInfo (int? mode, string businessUnitCode, int? userId = null, int? documentTypeId = null) - { - // verify the required parameter 'mode' is set - if (mode == null) - throw new ApiException(400, "Missing required parameter 'mode' when calling SecurityManagementApi->SecurityManagementGetSecurityList"); - // verify the required parameter 'businessUnitCode' is set - if (businessUnitCode == null) - throw new ApiException(400, "Missing required parameter 'businessUnitCode' when calling SecurityManagementApi->SecurityManagementGetSecurityList"); - - var localVarPath = "/api/management/Security/security/mode/{mode}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mode != null) localVarPathParams.Add("mode", this.Configuration.ApiClient.ParameterToString(mode)); // path parameter - if (businessUnitCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "businessUnitCode", businessUnitCode)); // query parameter - if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter - if (documentTypeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "documentTypeId", documentTypeId)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SecurityManagementGetSecurityList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call allows to insert or update security options - /// - /// Thrown when fails to make API call - /// Security options - /// - public void SecurityManagementWriteSecurity (List security) - { - SecurityManagementWriteSecurityWithHttpInfo(security); - } - - /// - /// This call allows to insert or update security options - /// - /// Thrown when fails to make API call - /// Security options - /// ApiResponse of Object(void) - public ApiResponse SecurityManagementWriteSecurityWithHttpInfo (List security) - { - // verify the required parameter 'security' is set - if (security == null) - throw new ApiException(400, "Missing required parameter 'security' when calling SecurityManagementApi->SecurityManagementWriteSecurity"); - - var localVarPath = "/api/management/Security/security"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (security != null && security.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(security); // http body (model) parameter - } - else - { - localVarPostBody = security; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SecurityManagementWriteSecurity", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call allows to insert or update security options - /// - /// Thrown when fails to make API call - /// Security options - /// Task of void - public async System.Threading.Tasks.Task SecurityManagementWriteSecurityAsync (List security) - { - await SecurityManagementWriteSecurityAsyncWithHttpInfo(security); - - } - - /// - /// This call allows to insert or update security options - /// - /// Thrown when fails to make API call - /// Security options - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SecurityManagementWriteSecurityAsyncWithHttpInfo (List security) - { - // verify the required parameter 'security' is set - if (security == null) - throw new ApiException(400, "Missing required parameter 'security' when calling SecurityManagementApi->SecurityManagementWriteSecurity"); - - var localVarPath = "/api/management/Security/security"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (security != null && security.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(security); // http body (model) parameter - } - else - { - localVarPostBody = security; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SecurityManagementWriteSecurity", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/SqlConditionsManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/SqlConditionsManagementApi.cs deleted file mode 100644 index 71c5826..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/SqlConditionsManagementApi.cs +++ /dev/null @@ -1,1322 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ISqlConditionsManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes specific sql query condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql condition identifier - /// - void SqlConditionsManagementDeleteSqlCondition (string id); - - /// - /// This call deletes specific sql query condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql condition identifier - /// ApiResponse of Object(void) - ApiResponse SqlConditionsManagementDeleteSqlConditionWithHttpInfo (string id); - /// - /// This call returns specific sql query condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// SqlConditionBaseDTO - SqlConditionBaseDTO SqlConditionsManagementGetSqlCondition (string id); - - /// - /// This call returns specific sql query condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// ApiResponse of SqlConditionBaseDTO - ApiResponse SqlConditionsManagementGetSqlConditionWithHttpInfo (string id); - /// - /// This call returns all sql conditions for a specific query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// List<SqlConditionBaseDTO> - List SqlConditionsManagementGetSqlConditionsByQueryId (string queryId); - - /// - /// This call returns all sql conditions for a specific query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// ApiResponse of List<SqlConditionBaseDTO> - ApiResponse> SqlConditionsManagementGetSqlConditionsByQueryIdWithHttpInfo (string queryId); - /// - /// This call inserts sql query condition and link it to a query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// SqlConditionBaseDTO - SqlConditionBaseDTO SqlConditionsManagementInsertSqlConditionWithLink (string queryId, SqlConditionBaseDTO sqlcondition = null); - - /// - /// This call inserts sql query condition and link it to a query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// ApiResponse of SqlConditionBaseDTO - ApiResponse SqlConditionsManagementInsertSqlConditionWithLinkWithHttpInfo (string queryId, SqlConditionBaseDTO sqlcondition = null); - /// - /// This call validates a condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// SqlConditionValidateResultDTO - SqlConditionValidateResultDTO SqlConditionsManagementInsertSqlConditionWithLink_0 (SqlConditionBaseDTO sqlcondition = null); - - /// - /// This call validates a condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of SqlConditionValidateResultDTO - ApiResponse SqlConditionsManagementInsertSqlConditionWithLink_0WithHttpInfo (SqlConditionBaseDTO sqlcondition = null); - /// - /// This call updates specific sql query condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// (optional) - /// SqlConditionBaseDTO - SqlConditionBaseDTO SqlConditionsManagementUpdateSqlCondition (string id, SqlConditionBaseDTO sqlcondition = null); - - /// - /// This call updates specific sql query condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// (optional) - /// ApiResponse of SqlConditionBaseDTO - ApiResponse SqlConditionsManagementUpdateSqlConditionWithHttpInfo (string id, SqlConditionBaseDTO sqlcondition = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes specific sql query condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql condition identifier - /// Task of void - System.Threading.Tasks.Task SqlConditionsManagementDeleteSqlConditionAsync (string id); - - /// - /// This call deletes specific sql query condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql condition identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> SqlConditionsManagementDeleteSqlConditionAsyncWithHttpInfo (string id); - /// - /// This call returns specific sql query condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// Task of SqlConditionBaseDTO - System.Threading.Tasks.Task SqlConditionsManagementGetSqlConditionAsync (string id); - - /// - /// This call returns specific sql query condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// Task of ApiResponse (SqlConditionBaseDTO) - System.Threading.Tasks.Task> SqlConditionsManagementGetSqlConditionAsyncWithHttpInfo (string id); - /// - /// This call returns all sql conditions for a specific query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of List<SqlConditionBaseDTO> - System.Threading.Tasks.Task> SqlConditionsManagementGetSqlConditionsByQueryIdAsync (string queryId); - - /// - /// This call returns all sql conditions for a specific query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of ApiResponse (List<SqlConditionBaseDTO>) - System.Threading.Tasks.Task>> SqlConditionsManagementGetSqlConditionsByQueryIdAsyncWithHttpInfo (string queryId); - /// - /// This call inserts sql query condition and link it to a query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// Task of SqlConditionBaseDTO - System.Threading.Tasks.Task SqlConditionsManagementInsertSqlConditionWithLinkAsync (string queryId, SqlConditionBaseDTO sqlcondition = null); - - /// - /// This call inserts sql query condition and link it to a query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// Task of ApiResponse (SqlConditionBaseDTO) - System.Threading.Tasks.Task> SqlConditionsManagementInsertSqlConditionWithLinkAsyncWithHttpInfo (string queryId, SqlConditionBaseDTO sqlcondition = null); - /// - /// This call validates a condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of SqlConditionValidateResultDTO - System.Threading.Tasks.Task SqlConditionsManagementInsertSqlConditionWithLink_0Async (SqlConditionBaseDTO sqlcondition = null); - - /// - /// This call validates a condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (SqlConditionValidateResultDTO) - System.Threading.Tasks.Task> SqlConditionsManagementInsertSqlConditionWithLink_0AsyncWithHttpInfo (SqlConditionBaseDTO sqlcondition = null); - /// - /// This call updates specific sql query condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// (optional) - /// Task of SqlConditionBaseDTO - System.Threading.Tasks.Task SqlConditionsManagementUpdateSqlConditionAsync (string id, SqlConditionBaseDTO sqlcondition = null); - - /// - /// This call updates specific sql query condition - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// (optional) - /// Task of ApiResponse (SqlConditionBaseDTO) - System.Threading.Tasks.Task> SqlConditionsManagementUpdateSqlConditionAsyncWithHttpInfo (string id, SqlConditionBaseDTO sqlcondition = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class SqlConditionsManagementApi : ISqlConditionsManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public SqlConditionsManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public SqlConditionsManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes specific sql query condition - /// - /// Thrown when fails to make API call - /// Sql condition identifier - /// - public void SqlConditionsManagementDeleteSqlCondition (string id) - { - SqlConditionsManagementDeleteSqlConditionWithHttpInfo(id); - } - - /// - /// This call deletes specific sql query condition - /// - /// Thrown when fails to make API call - /// Sql condition identifier - /// ApiResponse of Object(void) - public ApiResponse SqlConditionsManagementDeleteSqlConditionWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlConditionsManagementApi->SqlConditionsManagementDeleteSqlCondition"); - - var localVarPath = "/api/management/DataSources/SqlConditions/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConditionsManagementDeleteSqlCondition", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific sql query condition - /// - /// Thrown when fails to make API call - /// Sql condition identifier - /// Task of void - public async System.Threading.Tasks.Task SqlConditionsManagementDeleteSqlConditionAsync (string id) - { - await SqlConditionsManagementDeleteSqlConditionAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes specific sql query condition - /// - /// Thrown when fails to make API call - /// Sql condition identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SqlConditionsManagementDeleteSqlConditionAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlConditionsManagementApi->SqlConditionsManagementDeleteSqlCondition"); - - var localVarPath = "/api/management/DataSources/SqlConditions/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConditionsManagementDeleteSqlCondition", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns specific sql query condition - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// SqlConditionBaseDTO - public SqlConditionBaseDTO SqlConditionsManagementGetSqlCondition (string id) - { - ApiResponse localVarResponse = SqlConditionsManagementGetSqlConditionWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call returns specific sql query condition - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// ApiResponse of SqlConditionBaseDTO - public ApiResponse< SqlConditionBaseDTO > SqlConditionsManagementGetSqlConditionWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlConditionsManagementApi->SqlConditionsManagementGetSqlCondition"); - - var localVarPath = "/api/management/DataSources/SqlConditions/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConditionsManagementGetSqlCondition", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlConditionBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlConditionBaseDTO))); - } - - /// - /// This call returns specific sql query condition - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// Task of SqlConditionBaseDTO - public async System.Threading.Tasks.Task SqlConditionsManagementGetSqlConditionAsync (string id) - { - ApiResponse localVarResponse = await SqlConditionsManagementGetSqlConditionAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call returns specific sql query condition - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// Task of ApiResponse (SqlConditionBaseDTO) - public async System.Threading.Tasks.Task> SqlConditionsManagementGetSqlConditionAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlConditionsManagementApi->SqlConditionsManagementGetSqlCondition"); - - var localVarPath = "/api/management/DataSources/SqlConditions/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConditionsManagementGetSqlCondition", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlConditionBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlConditionBaseDTO))); - } - - /// - /// This call returns all sql conditions for a specific query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// List<SqlConditionBaseDTO> - public List SqlConditionsManagementGetSqlConditionsByQueryId (string queryId) - { - ApiResponse> localVarResponse = SqlConditionsManagementGetSqlConditionsByQueryIdWithHttpInfo(queryId); - return localVarResponse.Data; - } - - /// - /// This call returns all sql conditions for a specific query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// ApiResponse of List<SqlConditionBaseDTO> - public ApiResponse< List > SqlConditionsManagementGetSqlConditionsByQueryIdWithHttpInfo (string queryId) - { - // verify the required parameter 'queryId' is set - if (queryId == null) - throw new ApiException(400, "Missing required parameter 'queryId' when calling SqlConditionsManagementApi->SqlConditionsManagementGetSqlConditionsByQueryId"); - - var localVarPath = "/api/management/DataSources/SqlConditions/byQuery/{queryId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queryId != null) localVarPathParams.Add("queryId", this.Configuration.ApiClient.ParameterToString(queryId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConditionsManagementGetSqlConditionsByQueryId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all sql conditions for a specific query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of List<SqlConditionBaseDTO> - public async System.Threading.Tasks.Task> SqlConditionsManagementGetSqlConditionsByQueryIdAsync (string queryId) - { - ApiResponse> localVarResponse = await SqlConditionsManagementGetSqlConditionsByQueryIdAsyncWithHttpInfo(queryId); - return localVarResponse.Data; - - } - - /// - /// This call returns all sql conditions for a specific query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of ApiResponse (List<SqlConditionBaseDTO>) - public async System.Threading.Tasks.Task>> SqlConditionsManagementGetSqlConditionsByQueryIdAsyncWithHttpInfo (string queryId) - { - // verify the required parameter 'queryId' is set - if (queryId == null) - throw new ApiException(400, "Missing required parameter 'queryId' when calling SqlConditionsManagementApi->SqlConditionsManagementGetSqlConditionsByQueryId"); - - var localVarPath = "/api/management/DataSources/SqlConditions/byQuery/{queryId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queryId != null) localVarPathParams.Add("queryId", this.Configuration.ApiClient.ParameterToString(queryId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConditionsManagementGetSqlConditionsByQueryId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts sql query condition and link it to a query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// SqlConditionBaseDTO - public SqlConditionBaseDTO SqlConditionsManagementInsertSqlConditionWithLink (string queryId, SqlConditionBaseDTO sqlcondition = null) - { - ApiResponse localVarResponse = SqlConditionsManagementInsertSqlConditionWithLinkWithHttpInfo(queryId, sqlcondition); - return localVarResponse.Data; - } - - /// - /// This call inserts sql query condition and link it to a query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// ApiResponse of SqlConditionBaseDTO - public ApiResponse< SqlConditionBaseDTO > SqlConditionsManagementInsertSqlConditionWithLinkWithHttpInfo (string queryId, SqlConditionBaseDTO sqlcondition = null) - { - // verify the required parameter 'queryId' is set - if (queryId == null) - throw new ApiException(400, "Missing required parameter 'queryId' when calling SqlConditionsManagementApi->SqlConditionsManagementInsertSqlConditionWithLink"); - - var localVarPath = "/api/management/DataSources/SqlConditions/{queryId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queryId != null) localVarPathParams.Add("queryId", this.Configuration.ApiClient.ParameterToString(queryId)); // path parameter - if (sqlcondition != null && sqlcondition.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sqlcondition); // http body (model) parameter - } - else - { - localVarPostBody = sqlcondition; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConditionsManagementInsertSqlConditionWithLink", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlConditionBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlConditionBaseDTO))); - } - - /// - /// This call inserts sql query condition and link it to a query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// Task of SqlConditionBaseDTO - public async System.Threading.Tasks.Task SqlConditionsManagementInsertSqlConditionWithLinkAsync (string queryId, SqlConditionBaseDTO sqlcondition = null) - { - ApiResponse localVarResponse = await SqlConditionsManagementInsertSqlConditionWithLinkAsyncWithHttpInfo(queryId, sqlcondition); - return localVarResponse.Data; - - } - - /// - /// This call inserts sql query condition and link it to a query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// Task of ApiResponse (SqlConditionBaseDTO) - public async System.Threading.Tasks.Task> SqlConditionsManagementInsertSqlConditionWithLinkAsyncWithHttpInfo (string queryId, SqlConditionBaseDTO sqlcondition = null) - { - // verify the required parameter 'queryId' is set - if (queryId == null) - throw new ApiException(400, "Missing required parameter 'queryId' when calling SqlConditionsManagementApi->SqlConditionsManagementInsertSqlConditionWithLink"); - - var localVarPath = "/api/management/DataSources/SqlConditions/{queryId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (queryId != null) localVarPathParams.Add("queryId", this.Configuration.ApiClient.ParameterToString(queryId)); // path parameter - if (sqlcondition != null && sqlcondition.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sqlcondition); // http body (model) parameter - } - else - { - localVarPostBody = sqlcondition; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConditionsManagementInsertSqlConditionWithLink", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlConditionBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlConditionBaseDTO))); - } - - /// - /// This call validates a condition - /// - /// Thrown when fails to make API call - /// (optional) - /// SqlConditionValidateResultDTO - public SqlConditionValidateResultDTO SqlConditionsManagementInsertSqlConditionWithLink_0 (SqlConditionBaseDTO sqlcondition = null) - { - ApiResponse localVarResponse = SqlConditionsManagementInsertSqlConditionWithLink_0WithHttpInfo(sqlcondition); - return localVarResponse.Data; - } - - /// - /// This call validates a condition - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of SqlConditionValidateResultDTO - public ApiResponse< SqlConditionValidateResultDTO > SqlConditionsManagementInsertSqlConditionWithLink_0WithHttpInfo (SqlConditionBaseDTO sqlcondition = null) - { - - var localVarPath = "/api/management/DataSources/SqlConditions/validate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sqlcondition != null && sqlcondition.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sqlcondition); // http body (model) parameter - } - else - { - localVarPostBody = sqlcondition; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConditionsManagementInsertSqlConditionWithLink_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlConditionValidateResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlConditionValidateResultDTO))); - } - - /// - /// This call validates a condition - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of SqlConditionValidateResultDTO - public async System.Threading.Tasks.Task SqlConditionsManagementInsertSqlConditionWithLink_0Async (SqlConditionBaseDTO sqlcondition = null) - { - ApiResponse localVarResponse = await SqlConditionsManagementInsertSqlConditionWithLink_0AsyncWithHttpInfo(sqlcondition); - return localVarResponse.Data; - - } - - /// - /// This call validates a condition - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (SqlConditionValidateResultDTO) - public async System.Threading.Tasks.Task> SqlConditionsManagementInsertSqlConditionWithLink_0AsyncWithHttpInfo (SqlConditionBaseDTO sqlcondition = null) - { - - var localVarPath = "/api/management/DataSources/SqlConditions/validate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sqlcondition != null && sqlcondition.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sqlcondition); // http body (model) parameter - } - else - { - localVarPostBody = sqlcondition; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConditionsManagementInsertSqlConditionWithLink_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlConditionValidateResultDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlConditionValidateResultDTO))); - } - - /// - /// This call updates specific sql query condition - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// (optional) - /// SqlConditionBaseDTO - public SqlConditionBaseDTO SqlConditionsManagementUpdateSqlCondition (string id, SqlConditionBaseDTO sqlcondition = null) - { - ApiResponse localVarResponse = SqlConditionsManagementUpdateSqlConditionWithHttpInfo(id, sqlcondition); - return localVarResponse.Data; - } - - /// - /// This call updates specific sql query condition - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// (optional) - /// ApiResponse of SqlConditionBaseDTO - public ApiResponse< SqlConditionBaseDTO > SqlConditionsManagementUpdateSqlConditionWithHttpInfo (string id, SqlConditionBaseDTO sqlcondition = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlConditionsManagementApi->SqlConditionsManagementUpdateSqlCondition"); - - var localVarPath = "/api/management/DataSources/SqlConditions/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sqlcondition != null && sqlcondition.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sqlcondition); // http body (model) parameter - } - else - { - localVarPostBody = sqlcondition; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConditionsManagementUpdateSqlCondition", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlConditionBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlConditionBaseDTO))); - } - - /// - /// This call updates specific sql query condition - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// (optional) - /// Task of SqlConditionBaseDTO - public async System.Threading.Tasks.Task SqlConditionsManagementUpdateSqlConditionAsync (string id, SqlConditionBaseDTO sqlcondition = null) - { - ApiResponse localVarResponse = await SqlConditionsManagementUpdateSqlConditionAsyncWithHttpInfo(id, sqlcondition); - return localVarResponse.Data; - - } - - /// - /// This call updates specific sql query condition - /// - /// Thrown when fails to make API call - /// Sql query condition identifier - /// (optional) - /// Task of ApiResponse (SqlConditionBaseDTO) - public async System.Threading.Tasks.Task> SqlConditionsManagementUpdateSqlConditionAsyncWithHttpInfo (string id, SqlConditionBaseDTO sqlcondition = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlConditionsManagementApi->SqlConditionsManagementUpdateSqlCondition"); - - var localVarPath = "/api/management/DataSources/SqlConditions/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sqlcondition != null && sqlcondition.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sqlcondition); // http body (model) parameter - } - else - { - localVarPostBody = sqlcondition; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConditionsManagementUpdateSqlCondition", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlConditionBaseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlConditionBaseDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/SqlConnectionsManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/SqlConnectionsManagementApi.cs deleted file mode 100644 index 4c0e14e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/SqlConnectionsManagementApi.cs +++ /dev/null @@ -1,1688 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ISqlConnectionsManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes specific sql connection configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// - void SqlConnectionsManagementDeleteSqlConnection (string id); - - /// - /// This call deletes specific sql connection configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// ApiResponse of Object(void) - ApiResponse SqlConnectionsManagementDeleteSqlConnectionWithHttpInfo (string id); - /// - /// This call gets list of connection string samples - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<KeyValueDTO> - List SqlConnectionsManagementGetConnectionStringSamples (); - - /// - /// This call gets list of connection string samples - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<KeyValueDTO> - ApiResponse> SqlConnectionsManagementGetConnectionStringSamplesWithHttpInfo (); - /// - /// This call gets list of DSN - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<KeyValueDTO> - List SqlConnectionsManagementGetDsnList (); - - /// - /// This call gets list of DSN - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<KeyValueDTO> - ApiResponse> SqlConnectionsManagementGetDsnListWithHttpInfo (); - /// - /// This call gets specific sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// SqlConnectionForViewDTO - SqlConnectionForViewDTO SqlConnectionsManagementGetSqlConnection (string id); - - /// - /// This call gets specific sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// ApiResponse of SqlConnectionForViewDTO - ApiResponse SqlConnectionsManagementGetSqlConnectionWithHttpInfo (string id); - /// - /// This call returns all sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<SqlConnectionForViewDTO> - List SqlConnectionsManagementGetSqlConnections (); - - /// - /// This call returns all sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SqlConnectionForViewDTO> - ApiResponse> SqlConnectionsManagementGetSqlConnectionsWithHttpInfo (); - /// - /// This call inserts sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection informations for insert - /// SqlConnectionForViewDTO - SqlConnectionForViewDTO SqlConnectionsManagementInsertSqlConnection (SqlConnectionDTO sqlConnection); - - /// - /// This call inserts sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection informations for insert - /// ApiResponse of SqlConnectionForViewDTO - ApiResponse SqlConnectionsManagementInsertSqlConnectionWithHttpInfo (SqlConnectionDTO sqlConnection); - /// - /// This call allows to test sql connection configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Test parameters - /// bool? - bool? SqlConnectionsManagementTestSqlConnection (SqlConnectionTestDTO parameters); - - /// - /// This call allows to test sql connection configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Test parameters - /// ApiResponse of bool? - ApiResponse SqlConnectionsManagementTestSqlConnectionWithHttpInfo (SqlConnectionTestDTO parameters); - /// - /// This call updates specific sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Sql connection informations for update - /// SqlConnectionForViewDTO - SqlConnectionForViewDTO SqlConnectionsManagementUpdateSqlConnection (string id, SqlConnectionDTO sqlConnection); - - /// - /// This call updates specific sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Sql connection informations for update - /// ApiResponse of SqlConnectionForViewDTO - ApiResponse SqlConnectionsManagementUpdateSqlConnectionWithHttpInfo (string id, SqlConnectionDTO sqlConnection); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes specific sql connection configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Task of void - System.Threading.Tasks.Task SqlConnectionsManagementDeleteSqlConnectionAsync (string id); - - /// - /// This call deletes specific sql connection configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> SqlConnectionsManagementDeleteSqlConnectionAsyncWithHttpInfo (string id); - /// - /// This call gets list of connection string samples - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<KeyValueDTO> - System.Threading.Tasks.Task> SqlConnectionsManagementGetConnectionStringSamplesAsync (); - - /// - /// This call gets list of connection string samples - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<KeyValueDTO>) - System.Threading.Tasks.Task>> SqlConnectionsManagementGetConnectionStringSamplesAsyncWithHttpInfo (); - /// - /// This call gets list of DSN - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<KeyValueDTO> - System.Threading.Tasks.Task> SqlConnectionsManagementGetDsnListAsync (); - - /// - /// This call gets list of DSN - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<KeyValueDTO>) - System.Threading.Tasks.Task>> SqlConnectionsManagementGetDsnListAsyncWithHttpInfo (); - /// - /// This call gets specific sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Task of SqlConnectionForViewDTO - System.Threading.Tasks.Task SqlConnectionsManagementGetSqlConnectionAsync (string id); - - /// - /// This call gets specific sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Task of ApiResponse (SqlConnectionForViewDTO) - System.Threading.Tasks.Task> SqlConnectionsManagementGetSqlConnectionAsyncWithHttpInfo (string id); - /// - /// This call returns all sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<SqlConnectionForViewDTO> - System.Threading.Tasks.Task> SqlConnectionsManagementGetSqlConnectionsAsync (); - - /// - /// This call returns all sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SqlConnectionForViewDTO>) - System.Threading.Tasks.Task>> SqlConnectionsManagementGetSqlConnectionsAsyncWithHttpInfo (); - /// - /// This call inserts sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection informations for insert - /// Task of SqlConnectionForViewDTO - System.Threading.Tasks.Task SqlConnectionsManagementInsertSqlConnectionAsync (SqlConnectionDTO sqlConnection); - - /// - /// This call inserts sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection informations for insert - /// Task of ApiResponse (SqlConnectionForViewDTO) - System.Threading.Tasks.Task> SqlConnectionsManagementInsertSqlConnectionAsyncWithHttpInfo (SqlConnectionDTO sqlConnection); - /// - /// This call allows to test sql connection configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Test parameters - /// Task of bool? - System.Threading.Tasks.Task SqlConnectionsManagementTestSqlConnectionAsync (SqlConnectionTestDTO parameters); - - /// - /// This call allows to test sql connection configuration - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Test parameters - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> SqlConnectionsManagementTestSqlConnectionAsyncWithHttpInfo (SqlConnectionTestDTO parameters); - /// - /// This call updates specific sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Sql connection informations for update - /// Task of SqlConnectionForViewDTO - System.Threading.Tasks.Task SqlConnectionsManagementUpdateSqlConnectionAsync (string id, SqlConnectionDTO sqlConnection); - - /// - /// This call updates specific sql connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Sql connection informations for update - /// Task of ApiResponse (SqlConnectionForViewDTO) - System.Threading.Tasks.Task> SqlConnectionsManagementUpdateSqlConnectionAsyncWithHttpInfo (string id, SqlConnectionDTO sqlConnection); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class SqlConnectionsManagementApi : ISqlConnectionsManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public SqlConnectionsManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public SqlConnectionsManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes specific sql connection configuration - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// - public void SqlConnectionsManagementDeleteSqlConnection (string id) - { - SqlConnectionsManagementDeleteSqlConnectionWithHttpInfo(id); - } - - /// - /// This call deletes specific sql connection configuration - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// ApiResponse of Object(void) - public ApiResponse SqlConnectionsManagementDeleteSqlConnectionWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlConnectionsManagementApi->SqlConnectionsManagementDeleteSqlConnection"); - - var localVarPath = "/api/management/DataSources/SqlConnections/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementDeleteSqlConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific sql connection configuration - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Task of void - public async System.Threading.Tasks.Task SqlConnectionsManagementDeleteSqlConnectionAsync (string id) - { - await SqlConnectionsManagementDeleteSqlConnectionAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes specific sql connection configuration - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SqlConnectionsManagementDeleteSqlConnectionAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlConnectionsManagementApi->SqlConnectionsManagementDeleteSqlConnection"); - - var localVarPath = "/api/management/DataSources/SqlConnections/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementDeleteSqlConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call gets list of connection string samples - /// - /// Thrown when fails to make API call - /// List<KeyValueDTO> - public List SqlConnectionsManagementGetConnectionStringSamples () - { - ApiResponse> localVarResponse = SqlConnectionsManagementGetConnectionStringSamplesWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call gets list of connection string samples - /// - /// Thrown when fails to make API call - /// ApiResponse of List<KeyValueDTO> - public ApiResponse< List > SqlConnectionsManagementGetConnectionStringSamplesWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/SqlConnections/Samples"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementGetConnectionStringSamples", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets list of connection string samples - /// - /// Thrown when fails to make API call - /// Task of List<KeyValueDTO> - public async System.Threading.Tasks.Task> SqlConnectionsManagementGetConnectionStringSamplesAsync () - { - ApiResponse> localVarResponse = await SqlConnectionsManagementGetConnectionStringSamplesAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call gets list of connection string samples - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<KeyValueDTO>) - public async System.Threading.Tasks.Task>> SqlConnectionsManagementGetConnectionStringSamplesAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/SqlConnections/Samples"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementGetConnectionStringSamples", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets list of DSN - /// - /// Thrown when fails to make API call - /// List<KeyValueDTO> - public List SqlConnectionsManagementGetDsnList () - { - ApiResponse> localVarResponse = SqlConnectionsManagementGetDsnListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call gets list of DSN - /// - /// Thrown when fails to make API call - /// ApiResponse of List<KeyValueDTO> - public ApiResponse< List > SqlConnectionsManagementGetDsnListWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/SqlConnections/dsn"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementGetDsnList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets list of DSN - /// - /// Thrown when fails to make API call - /// Task of List<KeyValueDTO> - public async System.Threading.Tasks.Task> SqlConnectionsManagementGetDsnListAsync () - { - ApiResponse> localVarResponse = await SqlConnectionsManagementGetDsnListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call gets list of DSN - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<KeyValueDTO>) - public async System.Threading.Tasks.Task>> SqlConnectionsManagementGetDsnListAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/SqlConnections/dsn"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementGetDsnList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets specific sql connection - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// SqlConnectionForViewDTO - public SqlConnectionForViewDTO SqlConnectionsManagementGetSqlConnection (string id) - { - ApiResponse localVarResponse = SqlConnectionsManagementGetSqlConnectionWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets specific sql connection - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// ApiResponse of SqlConnectionForViewDTO - public ApiResponse< SqlConnectionForViewDTO > SqlConnectionsManagementGetSqlConnectionWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlConnectionsManagementApi->SqlConnectionsManagementGetSqlConnection"); - - var localVarPath = "/api/management/DataSources/SqlConnections/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementGetSqlConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlConnectionForViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlConnectionForViewDTO))); - } - - /// - /// This call gets specific sql connection - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Task of SqlConnectionForViewDTO - public async System.Threading.Tasks.Task SqlConnectionsManagementGetSqlConnectionAsync (string id) - { - ApiResponse localVarResponse = await SqlConnectionsManagementGetSqlConnectionAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets specific sql connection - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Task of ApiResponse (SqlConnectionForViewDTO) - public async System.Threading.Tasks.Task> SqlConnectionsManagementGetSqlConnectionAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlConnectionsManagementApi->SqlConnectionsManagementGetSqlConnection"); - - var localVarPath = "/api/management/DataSources/SqlConnections/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementGetSqlConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlConnectionForViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlConnectionForViewDTO))); - } - - /// - /// This call returns all sql connection - /// - /// Thrown when fails to make API call - /// List<SqlConnectionForViewDTO> - public List SqlConnectionsManagementGetSqlConnections () - { - ApiResponse> localVarResponse = SqlConnectionsManagementGetSqlConnectionsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all sql connection - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SqlConnectionForViewDTO> - public ApiResponse< List > SqlConnectionsManagementGetSqlConnectionsWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/SqlConnections"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementGetSqlConnections", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all sql connection - /// - /// Thrown when fails to make API call - /// Task of List<SqlConnectionForViewDTO> - public async System.Threading.Tasks.Task> SqlConnectionsManagementGetSqlConnectionsAsync () - { - ApiResponse> localVarResponse = await SqlConnectionsManagementGetSqlConnectionsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all sql connection - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SqlConnectionForViewDTO>) - public async System.Threading.Tasks.Task>> SqlConnectionsManagementGetSqlConnectionsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/SqlConnections"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementGetSqlConnections", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts sql connection - /// - /// Thrown when fails to make API call - /// Sql connection informations for insert - /// SqlConnectionForViewDTO - public SqlConnectionForViewDTO SqlConnectionsManagementInsertSqlConnection (SqlConnectionDTO sqlConnection) - { - ApiResponse localVarResponse = SqlConnectionsManagementInsertSqlConnectionWithHttpInfo(sqlConnection); - return localVarResponse.Data; - } - - /// - /// This call inserts sql connection - /// - /// Thrown when fails to make API call - /// Sql connection informations for insert - /// ApiResponse of SqlConnectionForViewDTO - public ApiResponse< SqlConnectionForViewDTO > SqlConnectionsManagementInsertSqlConnectionWithHttpInfo (SqlConnectionDTO sqlConnection) - { - // verify the required parameter 'sqlConnection' is set - if (sqlConnection == null) - throw new ApiException(400, "Missing required parameter 'sqlConnection' when calling SqlConnectionsManagementApi->SqlConnectionsManagementInsertSqlConnection"); - - var localVarPath = "/api/management/DataSources/SqlConnections"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sqlConnection != null && sqlConnection.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sqlConnection); // http body (model) parameter - } - else - { - localVarPostBody = sqlConnection; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementInsertSqlConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlConnectionForViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlConnectionForViewDTO))); - } - - /// - /// This call inserts sql connection - /// - /// Thrown when fails to make API call - /// Sql connection informations for insert - /// Task of SqlConnectionForViewDTO - public async System.Threading.Tasks.Task SqlConnectionsManagementInsertSqlConnectionAsync (SqlConnectionDTO sqlConnection) - { - ApiResponse localVarResponse = await SqlConnectionsManagementInsertSqlConnectionAsyncWithHttpInfo(sqlConnection); - return localVarResponse.Data; - - } - - /// - /// This call inserts sql connection - /// - /// Thrown when fails to make API call - /// Sql connection informations for insert - /// Task of ApiResponse (SqlConnectionForViewDTO) - public async System.Threading.Tasks.Task> SqlConnectionsManagementInsertSqlConnectionAsyncWithHttpInfo (SqlConnectionDTO sqlConnection) - { - // verify the required parameter 'sqlConnection' is set - if (sqlConnection == null) - throw new ApiException(400, "Missing required parameter 'sqlConnection' when calling SqlConnectionsManagementApi->SqlConnectionsManagementInsertSqlConnection"); - - var localVarPath = "/api/management/DataSources/SqlConnections"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sqlConnection != null && sqlConnection.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sqlConnection); // http body (model) parameter - } - else - { - localVarPostBody = sqlConnection; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementInsertSqlConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlConnectionForViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlConnectionForViewDTO))); - } - - /// - /// This call allows to test sql connection configuration - /// - /// Thrown when fails to make API call - /// Test parameters - /// bool? - public bool? SqlConnectionsManagementTestSqlConnection (SqlConnectionTestDTO parameters) - { - ApiResponse localVarResponse = SqlConnectionsManagementTestSqlConnectionWithHttpInfo(parameters); - return localVarResponse.Data; - } - - /// - /// This call allows to test sql connection configuration - /// - /// Thrown when fails to make API call - /// Test parameters - /// ApiResponse of bool? - public ApiResponse< bool? > SqlConnectionsManagementTestSqlConnectionWithHttpInfo (SqlConnectionTestDTO parameters) - { - // verify the required parameter 'parameters' is set - if (parameters == null) - throw new ApiException(400, "Missing required parameter 'parameters' when calling SqlConnectionsManagementApi->SqlConnectionsManagementTestSqlConnection"); - - var localVarPath = "/api/management/DataSources/SqlConnections/Test"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parameters != null && parameters.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(parameters); // http body (model) parameter - } - else - { - localVarPostBody = parameters; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementTestSqlConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call allows to test sql connection configuration - /// - /// Thrown when fails to make API call - /// Test parameters - /// Task of bool? - public async System.Threading.Tasks.Task SqlConnectionsManagementTestSqlConnectionAsync (SqlConnectionTestDTO parameters) - { - ApiResponse localVarResponse = await SqlConnectionsManagementTestSqlConnectionAsyncWithHttpInfo(parameters); - return localVarResponse.Data; - - } - - /// - /// This call allows to test sql connection configuration - /// - /// Thrown when fails to make API call - /// Test parameters - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> SqlConnectionsManagementTestSqlConnectionAsyncWithHttpInfo (SqlConnectionTestDTO parameters) - { - // verify the required parameter 'parameters' is set - if (parameters == null) - throw new ApiException(400, "Missing required parameter 'parameters' when calling SqlConnectionsManagementApi->SqlConnectionsManagementTestSqlConnection"); - - var localVarPath = "/api/management/DataSources/SqlConnections/Test"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (parameters != null && parameters.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(parameters); // http body (model) parameter - } - else - { - localVarPostBody = parameters; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementTestSqlConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call updates specific sql connection - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Sql connection informations for update - /// SqlConnectionForViewDTO - public SqlConnectionForViewDTO SqlConnectionsManagementUpdateSqlConnection (string id, SqlConnectionDTO sqlConnection) - { - ApiResponse localVarResponse = SqlConnectionsManagementUpdateSqlConnectionWithHttpInfo(id, sqlConnection); - return localVarResponse.Data; - } - - /// - /// This call updates specific sql connection - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Sql connection informations for update - /// ApiResponse of SqlConnectionForViewDTO - public ApiResponse< SqlConnectionForViewDTO > SqlConnectionsManagementUpdateSqlConnectionWithHttpInfo (string id, SqlConnectionDTO sqlConnection) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlConnectionsManagementApi->SqlConnectionsManagementUpdateSqlConnection"); - // verify the required parameter 'sqlConnection' is set - if (sqlConnection == null) - throw new ApiException(400, "Missing required parameter 'sqlConnection' when calling SqlConnectionsManagementApi->SqlConnectionsManagementUpdateSqlConnection"); - - var localVarPath = "/api/management/DataSources/SqlConnections/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sqlConnection != null && sqlConnection.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sqlConnection); // http body (model) parameter - } - else - { - localVarPostBody = sqlConnection; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementUpdateSqlConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlConnectionForViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlConnectionForViewDTO))); - } - - /// - /// This call updates specific sql connection - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Sql connection informations for update - /// Task of SqlConnectionForViewDTO - public async System.Threading.Tasks.Task SqlConnectionsManagementUpdateSqlConnectionAsync (string id, SqlConnectionDTO sqlConnection) - { - ApiResponse localVarResponse = await SqlConnectionsManagementUpdateSqlConnectionAsyncWithHttpInfo(id, sqlConnection); - return localVarResponse.Data; - - } - - /// - /// This call updates specific sql connection - /// - /// Thrown when fails to make API call - /// Sql connection identifier - /// Sql connection informations for update - /// Task of ApiResponse (SqlConnectionForViewDTO) - public async System.Threading.Tasks.Task> SqlConnectionsManagementUpdateSqlConnectionAsyncWithHttpInfo (string id, SqlConnectionDTO sqlConnection) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlConnectionsManagementApi->SqlConnectionsManagementUpdateSqlConnection"); - // verify the required parameter 'sqlConnection' is set - if (sqlConnection == null) - throw new ApiException(400, "Missing required parameter 'sqlConnection' when calling SqlConnectionsManagementApi->SqlConnectionsManagementUpdateSqlConnection"); - - var localVarPath = "/api/management/DataSources/SqlConnections/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sqlConnection != null && sqlConnection.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sqlConnection); // http body (model) parameter - } - else - { - localVarPostBody = sqlConnection; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlConnectionsManagementUpdateSqlConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlConnectionForViewDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlConnectionForViewDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/SqlQueriesManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/SqlQueriesManagementApi.cs deleted file mode 100644 index 279ec2d..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/SqlQueriesManagementApi.cs +++ /dev/null @@ -1,1863 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ISqlQueriesManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes specific sql connection query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// - void SqlQueriesManagementDeleteSqlQuery (string id); - - /// - /// This call deletes specific sql connection query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// ApiResponse of Object(void) - ApiResponse SqlQueriesManagementDeleteSqlQueryWithHttpInfo (string id); - /// - /// This call returns all sql queries - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<SqlQueryDTO> - List SqlQueriesManagementGetSqlQueries (); - - /// - /// This call returns all sql queries - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SqlQueryDTO> - ApiResponse> SqlQueriesManagementGetSqlQueriesWithHttpInfo (); - /// - /// This call returns all sql queries by Context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// List<SqlQueryDTO> - List SqlQueriesManagementGetSqlQueriesByContext (int? context); - - /// - /// This call returns all sql queries by Context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// ApiResponse of List<SqlQueryDTO> - ApiResponse> SqlQueriesManagementGetSqlQueriesByContextWithHttpInfo (int? context); - /// - /// This call gets specific sql query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// SqlQueryDTO - SqlQueryDTO SqlQueriesManagementGetSqlQuery (string id); - - /// - /// This call gets specific sql query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// ApiResponse of SqlQueryDTO - ApiResponse SqlQueriesManagementGetSqlQueryWithHttpInfo (string id); - /// - /// This call gets sql query output fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// List<KeyValueDTO> - List SqlQueriesManagementGetSqlQueryFields (string id); - - /// - /// This call gets sql query output fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// ApiResponse of List<KeyValueDTO> - ApiResponse> SqlQueriesManagementGetSqlQueryFieldsWithHttpInfo (string id); - /// - /// This call returns all sql query variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<KeyValueDTO> - List SqlQueriesManagementGetSqlQueryVariables (); - - /// - /// This call returns all sql query variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<KeyValueDTO> - ApiResponse> SqlQueriesManagementGetSqlQueryVariablesWithHttpInfo (); - /// - /// This call inserts sql query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// SqlQueryDTO - SqlQueryDTO SqlQueriesManagementInsertSqlQuery (SqlQueryDTO sqlquery = null); - - /// - /// This call inserts sql query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of SqlQueryDTO - ApiResponse SqlQueriesManagementInsertSqlQueryWithHttpInfo (SqlQueryDTO sqlquery = null); - /// - /// This call executes specific sql query command - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql params - /// Object - Object SqlQueriesManagementTestSqlQuery (SqlQueryTestDTO test); - - /// - /// This call executes specific sql query command - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql params - /// ApiResponse of Object - ApiResponse SqlQueriesManagementTestSqlQueryWithHttpInfo (SqlQueryTestDTO test); - /// - /// This call updates specific sql query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// SqlQueryDTO - SqlQueryDTO SqlQueriesManagementUpdateSqlQuery (string id, SqlQueryDTO sqlquery = null); - - /// - /// This call updates specific sql query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// ApiResponse of SqlQueryDTO - ApiResponse SqlQueriesManagementUpdateSqlQueryWithHttpInfo (string id, SqlQueryDTO sqlquery = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes specific sql connection query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of void - System.Threading.Tasks.Task SqlQueriesManagementDeleteSqlQueryAsync (string id); - - /// - /// This call deletes specific sql connection query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> SqlQueriesManagementDeleteSqlQueryAsyncWithHttpInfo (string id); - /// - /// This call returns all sql queries - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<SqlQueryDTO> - System.Threading.Tasks.Task> SqlQueriesManagementGetSqlQueriesAsync (); - - /// - /// This call returns all sql queries - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SqlQueryDTO>) - System.Threading.Tasks.Task>> SqlQueriesManagementGetSqlQueriesAsyncWithHttpInfo (); - /// - /// This call returns all sql queries by Context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Task of List<SqlQueryDTO> - System.Threading.Tasks.Task> SqlQueriesManagementGetSqlQueriesByContextAsync (int? context); - - /// - /// This call returns all sql queries by Context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Task of ApiResponse (List<SqlQueryDTO>) - System.Threading.Tasks.Task>> SqlQueriesManagementGetSqlQueriesByContextAsyncWithHttpInfo (int? context); - /// - /// This call gets specific sql query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of SqlQueryDTO - System.Threading.Tasks.Task SqlQueriesManagementGetSqlQueryAsync (string id); - - /// - /// This call gets specific sql query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of ApiResponse (SqlQueryDTO) - System.Threading.Tasks.Task> SqlQueriesManagementGetSqlQueryAsyncWithHttpInfo (string id); - /// - /// This call gets sql query output fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of List<KeyValueDTO> - System.Threading.Tasks.Task> SqlQueriesManagementGetSqlQueryFieldsAsync (string id); - - /// - /// This call gets sql query output fields - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of ApiResponse (List<KeyValueDTO>) - System.Threading.Tasks.Task>> SqlQueriesManagementGetSqlQueryFieldsAsyncWithHttpInfo (string id); - /// - /// This call returns all sql query variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<KeyValueDTO> - System.Threading.Tasks.Task> SqlQueriesManagementGetSqlQueryVariablesAsync (); - - /// - /// This call returns all sql query variables - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<KeyValueDTO>) - System.Threading.Tasks.Task>> SqlQueriesManagementGetSqlQueryVariablesAsyncWithHttpInfo (); - /// - /// This call inserts sql query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of SqlQueryDTO - System.Threading.Tasks.Task SqlQueriesManagementInsertSqlQueryAsync (SqlQueryDTO sqlquery = null); - - /// - /// This call inserts sql query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (SqlQueryDTO) - System.Threading.Tasks.Task> SqlQueriesManagementInsertSqlQueryAsyncWithHttpInfo (SqlQueryDTO sqlquery = null); - /// - /// This call executes specific sql query command - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql params - /// Task of Object - System.Threading.Tasks.Task SqlQueriesManagementTestSqlQueryAsync (SqlQueryTestDTO test); - - /// - /// This call executes specific sql query command - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql params - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> SqlQueriesManagementTestSqlQueryAsyncWithHttpInfo (SqlQueryTestDTO test); - /// - /// This call updates specific sql query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// Task of SqlQueryDTO - System.Threading.Tasks.Task SqlQueriesManagementUpdateSqlQueryAsync (string id, SqlQueryDTO sqlquery = null); - - /// - /// This call updates specific sql query - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// Task of ApiResponse (SqlQueryDTO) - System.Threading.Tasks.Task> SqlQueriesManagementUpdateSqlQueryAsyncWithHttpInfo (string id, SqlQueryDTO sqlquery = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class SqlQueriesManagementApi : ISqlQueriesManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public SqlQueriesManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public SqlQueriesManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes specific sql connection query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// - public void SqlQueriesManagementDeleteSqlQuery (string id) - { - SqlQueriesManagementDeleteSqlQueryWithHttpInfo(id); - } - - /// - /// This call deletes specific sql connection query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// ApiResponse of Object(void) - public ApiResponse SqlQueriesManagementDeleteSqlQueryWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlQueriesManagementApi->SqlQueriesManagementDeleteSqlQuery"); - - var localVarPath = "/api/management/DataSources/SqlQueries/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementDeleteSqlQuery", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specific sql connection query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of void - public async System.Threading.Tasks.Task SqlQueriesManagementDeleteSqlQueryAsync (string id) - { - await SqlQueriesManagementDeleteSqlQueryAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes specific sql connection query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SqlQueriesManagementDeleteSqlQueryAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlQueriesManagementApi->SqlQueriesManagementDeleteSqlQuery"); - - var localVarPath = "/api/management/DataSources/SqlQueries/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementDeleteSqlQuery", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all sql queries - /// - /// Thrown when fails to make API call - /// List<SqlQueryDTO> - public List SqlQueriesManagementGetSqlQueries () - { - ApiResponse> localVarResponse = SqlQueriesManagementGetSqlQueriesWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all sql queries - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SqlQueryDTO> - public ApiResponse< List > SqlQueriesManagementGetSqlQueriesWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/SqlQueries"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementGetSqlQueries", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all sql queries - /// - /// Thrown when fails to make API call - /// Task of List<SqlQueryDTO> - public async System.Threading.Tasks.Task> SqlQueriesManagementGetSqlQueriesAsync () - { - ApiResponse> localVarResponse = await SqlQueriesManagementGetSqlQueriesAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all sql queries - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SqlQueryDTO>) - public async System.Threading.Tasks.Task>> SqlQueriesManagementGetSqlQueriesAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/SqlQueries"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementGetSqlQueries", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all sql queries by Context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// List<SqlQueryDTO> - public List SqlQueriesManagementGetSqlQueriesByContext (int? context) - { - ApiResponse> localVarResponse = SqlQueriesManagementGetSqlQueriesByContextWithHttpInfo(context); - return localVarResponse.Data; - } - - /// - /// This call returns all sql queries by Context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// ApiResponse of List<SqlQueryDTO> - public ApiResponse< List > SqlQueriesManagementGetSqlQueriesByContextWithHttpInfo (int? context) - { - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling SqlQueriesManagementApi->SqlQueriesManagementGetSqlQueriesByContext"); - - var localVarPath = "/api/management/DataSources/SqlQueries/ByContext/{context}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (context != null) localVarPathParams.Add("context", this.Configuration.ApiClient.ParameterToString(context)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementGetSqlQueriesByContext", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all sql queries by Context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Task of List<SqlQueryDTO> - public async System.Threading.Tasks.Task> SqlQueriesManagementGetSqlQueriesByContextAsync (int? context) - { - ApiResponse> localVarResponse = await SqlQueriesManagementGetSqlQueriesByContextAsyncWithHttpInfo(context); - return localVarResponse.Data; - - } - - /// - /// This call returns all sql queries by Context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Generic 1: Workflow 2: Process - /// Task of ApiResponse (List<SqlQueryDTO>) - public async System.Threading.Tasks.Task>> SqlQueriesManagementGetSqlQueriesByContextAsyncWithHttpInfo (int? context) - { - // verify the required parameter 'context' is set - if (context == null) - throw new ApiException(400, "Missing required parameter 'context' when calling SqlQueriesManagementApi->SqlQueriesManagementGetSqlQueriesByContext"); - - var localVarPath = "/api/management/DataSources/SqlQueries/ByContext/{context}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (context != null) localVarPathParams.Add("context", this.Configuration.ApiClient.ParameterToString(context)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementGetSqlQueriesByContext", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets specific sql query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// SqlQueryDTO - public SqlQueryDTO SqlQueriesManagementGetSqlQuery (string id) - { - ApiResponse localVarResponse = SqlQueriesManagementGetSqlQueryWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets specific sql query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// ApiResponse of SqlQueryDTO - public ApiResponse< SqlQueryDTO > SqlQueriesManagementGetSqlQueryWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlQueriesManagementApi->SqlQueriesManagementGetSqlQuery"); - - var localVarPath = "/api/management/DataSources/SqlQueries/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementGetSqlQuery", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlQueryDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlQueryDTO))); - } - - /// - /// This call gets specific sql query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of SqlQueryDTO - public async System.Threading.Tasks.Task SqlQueriesManagementGetSqlQueryAsync (string id) - { - ApiResponse localVarResponse = await SqlQueriesManagementGetSqlQueryAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets specific sql query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of ApiResponse (SqlQueryDTO) - public async System.Threading.Tasks.Task> SqlQueriesManagementGetSqlQueryAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlQueriesManagementApi->SqlQueriesManagementGetSqlQuery"); - - var localVarPath = "/api/management/DataSources/SqlQueries/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementGetSqlQuery", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlQueryDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlQueryDTO))); - } - - /// - /// This call gets sql query output fields - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// List<KeyValueDTO> - public List SqlQueriesManagementGetSqlQueryFields (string id) - { - ApiResponse> localVarResponse = SqlQueriesManagementGetSqlQueryFieldsWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets sql query output fields - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// ApiResponse of List<KeyValueDTO> - public ApiResponse< List > SqlQueriesManagementGetSqlQueryFieldsWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlQueriesManagementApi->SqlQueriesManagementGetSqlQueryFields"); - - var localVarPath = "/api/management/DataSources/SqlQueries/{id}/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementGetSqlQueryFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets sql query output fields - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of List<KeyValueDTO> - public async System.Threading.Tasks.Task> SqlQueriesManagementGetSqlQueryFieldsAsync (string id) - { - ApiResponse> localVarResponse = await SqlQueriesManagementGetSqlQueryFieldsAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets sql query output fields - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// Task of ApiResponse (List<KeyValueDTO>) - public async System.Threading.Tasks.Task>> SqlQueriesManagementGetSqlQueryFieldsAsyncWithHttpInfo (string id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlQueriesManagementApi->SqlQueriesManagementGetSqlQueryFields"); - - var localVarPath = "/api/management/DataSources/SqlQueries/{id}/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementGetSqlQueryFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all sql query variables - /// - /// Thrown when fails to make API call - /// List<KeyValueDTO> - public List SqlQueriesManagementGetSqlQueryVariables () - { - ApiResponse> localVarResponse = SqlQueriesManagementGetSqlQueryVariablesWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all sql query variables - /// - /// Thrown when fails to make API call - /// ApiResponse of List<KeyValueDTO> - public ApiResponse< List > SqlQueriesManagementGetSqlQueryVariablesWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/SqlQueries/Variables"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementGetSqlQueryVariables", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all sql query variables - /// - /// Thrown when fails to make API call - /// Task of List<KeyValueDTO> - public async System.Threading.Tasks.Task> SqlQueriesManagementGetSqlQueryVariablesAsync () - { - ApiResponse> localVarResponse = await SqlQueriesManagementGetSqlQueryVariablesAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all sql query variables - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<KeyValueDTO>) - public async System.Threading.Tasks.Task>> SqlQueriesManagementGetSqlQueryVariablesAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/DataSources/SqlQueries/Variables"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementGetSqlQueryVariables", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts sql query - /// - /// Thrown when fails to make API call - /// (optional) - /// SqlQueryDTO - public SqlQueryDTO SqlQueriesManagementInsertSqlQuery (SqlQueryDTO sqlquery = null) - { - ApiResponse localVarResponse = SqlQueriesManagementInsertSqlQueryWithHttpInfo(sqlquery); - return localVarResponse.Data; - } - - /// - /// This call inserts sql query - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of SqlQueryDTO - public ApiResponse< SqlQueryDTO > SqlQueriesManagementInsertSqlQueryWithHttpInfo (SqlQueryDTO sqlquery = null) - { - - var localVarPath = "/api/management/DataSources/SqlQueries"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sqlquery != null && sqlquery.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sqlquery); // http body (model) parameter - } - else - { - localVarPostBody = sqlquery; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementInsertSqlQuery", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlQueryDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlQueryDTO))); - } - - /// - /// This call inserts sql query - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of SqlQueryDTO - public async System.Threading.Tasks.Task SqlQueriesManagementInsertSqlQueryAsync (SqlQueryDTO sqlquery = null) - { - ApiResponse localVarResponse = await SqlQueriesManagementInsertSqlQueryAsyncWithHttpInfo(sqlquery); - return localVarResponse.Data; - - } - - /// - /// This call inserts sql query - /// - /// Thrown when fails to make API call - /// (optional) - /// Task of ApiResponse (SqlQueryDTO) - public async System.Threading.Tasks.Task> SqlQueriesManagementInsertSqlQueryAsyncWithHttpInfo (SqlQueryDTO sqlquery = null) - { - - var localVarPath = "/api/management/DataSources/SqlQueries"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sqlquery != null && sqlquery.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sqlquery); // http body (model) parameter - } - else - { - localVarPostBody = sqlquery; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementInsertSqlQuery", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlQueryDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlQueryDTO))); - } - - /// - /// This call executes specific sql query command - /// - /// Thrown when fails to make API call - /// Sql params - /// Object - public Object SqlQueriesManagementTestSqlQuery (SqlQueryTestDTO test) - { - ApiResponse localVarResponse = SqlQueriesManagementTestSqlQueryWithHttpInfo(test); - return localVarResponse.Data; - } - - /// - /// This call executes specific sql query command - /// - /// Thrown when fails to make API call - /// Sql params - /// ApiResponse of Object - public ApiResponse< Object > SqlQueriesManagementTestSqlQueryWithHttpInfo (SqlQueryTestDTO test) - { - // verify the required parameter 'test' is set - if (test == null) - throw new ApiException(400, "Missing required parameter 'test' when calling SqlQueriesManagementApi->SqlQueriesManagementTestSqlQuery"); - - var localVarPath = "/api/management/DataSources/SqlQueries/Test"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (test != null && test.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(test); // http body (model) parameter - } - else - { - localVarPostBody = test; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementTestSqlQuery", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call executes specific sql query command - /// - /// Thrown when fails to make API call - /// Sql params - /// Task of Object - public async System.Threading.Tasks.Task SqlQueriesManagementTestSqlQueryAsync (SqlQueryTestDTO test) - { - ApiResponse localVarResponse = await SqlQueriesManagementTestSqlQueryAsyncWithHttpInfo(test); - return localVarResponse.Data; - - } - - /// - /// This call executes specific sql query command - /// - /// Thrown when fails to make API call - /// Sql params - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> SqlQueriesManagementTestSqlQueryAsyncWithHttpInfo (SqlQueryTestDTO test) - { - // verify the required parameter 'test' is set - if (test == null) - throw new ApiException(400, "Missing required parameter 'test' when calling SqlQueriesManagementApi->SqlQueriesManagementTestSqlQuery"); - - var localVarPath = "/api/management/DataSources/SqlQueries/Test"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (test != null && test.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(test); // http body (model) parameter - } - else - { - localVarPostBody = test; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementTestSqlQuery", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); - } - - /// - /// This call updates specific sql query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// SqlQueryDTO - public SqlQueryDTO SqlQueriesManagementUpdateSqlQuery (string id, SqlQueryDTO sqlquery = null) - { - ApiResponse localVarResponse = SqlQueriesManagementUpdateSqlQueryWithHttpInfo(id, sqlquery); - return localVarResponse.Data; - } - - /// - /// This call updates specific sql query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// ApiResponse of SqlQueryDTO - public ApiResponse< SqlQueryDTO > SqlQueriesManagementUpdateSqlQueryWithHttpInfo (string id, SqlQueryDTO sqlquery = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlQueriesManagementApi->SqlQueriesManagementUpdateSqlQuery"); - - var localVarPath = "/api/management/DataSources/SqlQueries/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sqlquery != null && sqlquery.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sqlquery); // http body (model) parameter - } - else - { - localVarPostBody = sqlquery; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementUpdateSqlQuery", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlQueryDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlQueryDTO))); - } - - /// - /// This call updates specific sql query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// Task of SqlQueryDTO - public async System.Threading.Tasks.Task SqlQueriesManagementUpdateSqlQueryAsync (string id, SqlQueryDTO sqlquery = null) - { - ApiResponse localVarResponse = await SqlQueriesManagementUpdateSqlQueryAsyncWithHttpInfo(id, sqlquery); - return localVarResponse.Data; - - } - - /// - /// This call updates specific sql query - /// - /// Thrown when fails to make API call - /// Sql query identifier - /// (optional) - /// Task of ApiResponse (SqlQueryDTO) - public async System.Threading.Tasks.Task> SqlQueriesManagementUpdateSqlQueryAsyncWithHttpInfo (string id, SqlQueryDTO sqlquery = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling SqlQueriesManagementApi->SqlQueriesManagementUpdateSqlQuery"); - - var localVarPath = "/api/management/DataSources/SqlQueries/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (sqlquery != null && sqlquery.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(sqlquery); // http body (model) parameter - } - else - { - localVarPostBody = sqlquery; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SqlQueriesManagementUpdateSqlQuery", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SqlQueryDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SqlQueryDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/StatesManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/StatesManagementApi.cs deleted file mode 100644 index 17def6a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/StatesManagementApi.cs +++ /dev/null @@ -1,1995 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IStatesManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call deletes specified document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// - void StatesManagementDelete (StateSimpleDTO state); - - /// - /// This call deletes specified document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// ApiResponse of Object(void) - ApiResponse StatesManagementDeleteWithHttpInfo (StateSimpleDTO state); - /// - /// This call gets document state information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// StateCompleteDTO - StateCompleteDTO StatesManagementGetById (StateSimpleDTO state); - - /// - /// This call gets document state information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// ApiResponse of StateCompleteDTO - ApiResponse StatesManagementGetByIdWithHttpInfo (StateSimpleDTO state); - /// - /// This call returns all document types connected to the document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// StateDocumentTypesDTO - StateDocumentTypesDTO StatesManagementGetDocumentTypes (StateSimpleDTO state); - - /// - /// This call returns all document types connected to the document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// ApiResponse of StateDocumentTypesDTO - ApiResponse StatesManagementGetDocumentTypesWithHttpInfo (StateSimpleDTO state); - /// - /// This call returns all document states - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<StateCompleteDTO> - List StatesManagementGetList (); - - /// - /// This call returns all document states - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<StateCompleteDTO> - ApiResponse> StatesManagementGetListWithHttpInfo (); - /// - /// This call returns all permissions for specific document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// StatePermissionsDTO - StatePermissionsDTO StatesManagementGetPermissions (StateSimpleDTO state); - - /// - /// This call returns all permissions for specific document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// ApiResponse of StatePermissionsDTO - ApiResponse StatesManagementGetPermissionsWithHttpInfo (StateSimpleDTO state); - /// - /// This call inserts a new document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state information for insert - /// StateCompleteDTO - StateCompleteDTO StatesManagementInsert (StateCompleteDTO stateForInsert); - - /// - /// This call inserts a new document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state information for insert - /// ApiResponse of StateCompleteDTO - ApiResponse StatesManagementInsertWithHttpInfo (StateCompleteDTO stateForInsert); - /// - /// This call update connected document types for specific document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document types connected to the state - /// - void StatesManagementSetDocumentTypes (StateDocumentTypesDTO stateDocumentTypes); - - /// - /// This call update connected document types for specific document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document types connected to the state - /// ApiResponse of Object(void) - ApiResponse StatesManagementSetDocumentTypesWithHttpInfo (StateDocumentTypesDTO stateDocumentTypes); - /// - /// This call update permissions for specific document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Permissions to update - /// - void StatesManagementSetPermissions (StatePermissionsDTO statePermissions); - - /// - /// This call update permissions for specific document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Permissions to update - /// ApiResponse of Object(void) - ApiResponse StatesManagementSetPermissionsWithHttpInfo (StatePermissionsDTO statePermissions); - /// - /// This call updates a given document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state information for update - /// StateCompleteDTO - StateCompleteDTO StatesManagementUpdate (StateCompleteDTO stateForUpdate); - - /// - /// This call updates a given document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state information for update - /// ApiResponse of StateCompleteDTO - ApiResponse StatesManagementUpdateWithHttpInfo (StateCompleteDTO stateForUpdate); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call deletes specified document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// Task of void - System.Threading.Tasks.Task StatesManagementDeleteAsync (StateSimpleDTO state); - - /// - /// This call deletes specified document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// Task of ApiResponse - System.Threading.Tasks.Task> StatesManagementDeleteAsyncWithHttpInfo (StateSimpleDTO state); - /// - /// This call gets document state information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// Task of StateCompleteDTO - System.Threading.Tasks.Task StatesManagementGetByIdAsync (StateSimpleDTO state); - - /// - /// This call gets document state information - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// Task of ApiResponse (StateCompleteDTO) - System.Threading.Tasks.Task> StatesManagementGetByIdAsyncWithHttpInfo (StateSimpleDTO state); - /// - /// This call returns all document types connected to the document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// Task of StateDocumentTypesDTO - System.Threading.Tasks.Task StatesManagementGetDocumentTypesAsync (StateSimpleDTO state); - - /// - /// This call returns all document types connected to the document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// Task of ApiResponse (StateDocumentTypesDTO) - System.Threading.Tasks.Task> StatesManagementGetDocumentTypesAsyncWithHttpInfo (StateSimpleDTO state); - /// - /// This call returns all document states - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<StateCompleteDTO> - System.Threading.Tasks.Task> StatesManagementGetListAsync (); - - /// - /// This call returns all document states - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<StateCompleteDTO>) - System.Threading.Tasks.Task>> StatesManagementGetListAsyncWithHttpInfo (); - /// - /// This call returns all permissions for specific document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// Task of StatePermissionsDTO - System.Threading.Tasks.Task StatesManagementGetPermissionsAsync (StateSimpleDTO state); - - /// - /// This call returns all permissions for specific document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state - /// Task of ApiResponse (StatePermissionsDTO) - System.Threading.Tasks.Task> StatesManagementGetPermissionsAsyncWithHttpInfo (StateSimpleDTO state); - /// - /// This call inserts a new document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state information for insert - /// Task of StateCompleteDTO - System.Threading.Tasks.Task StatesManagementInsertAsync (StateCompleteDTO stateForInsert); - - /// - /// This call inserts a new document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state information for insert - /// Task of ApiResponse (StateCompleteDTO) - System.Threading.Tasks.Task> StatesManagementInsertAsyncWithHttpInfo (StateCompleteDTO stateForInsert); - /// - /// This call update connected document types for specific document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document types connected to the state - /// Task of void - System.Threading.Tasks.Task StatesManagementSetDocumentTypesAsync (StateDocumentTypesDTO stateDocumentTypes); - - /// - /// This call update connected document types for specific document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document types connected to the state - /// Task of ApiResponse - System.Threading.Tasks.Task> StatesManagementSetDocumentTypesAsyncWithHttpInfo (StateDocumentTypesDTO stateDocumentTypes); - /// - /// This call update permissions for specific document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Permissions to update - /// Task of void - System.Threading.Tasks.Task StatesManagementSetPermissionsAsync (StatePermissionsDTO statePermissions); - - /// - /// This call update permissions for specific document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Permissions to update - /// Task of ApiResponse - System.Threading.Tasks.Task> StatesManagementSetPermissionsAsyncWithHttpInfo (StatePermissionsDTO statePermissions); - /// - /// This call updates a given document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state information for update - /// Task of StateCompleteDTO - System.Threading.Tasks.Task StatesManagementUpdateAsync (StateCompleteDTO stateForUpdate); - - /// - /// This call updates a given document state - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document state information for update - /// Task of ApiResponse (StateCompleteDTO) - System.Threading.Tasks.Task> StatesManagementUpdateAsyncWithHttpInfo (StateCompleteDTO stateForUpdate); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class StatesManagementApi : IStatesManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public StatesManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public StatesManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call deletes specified document state - /// - /// Thrown when fails to make API call - /// Document state - /// - public void StatesManagementDelete (StateSimpleDTO state) - { - StatesManagementDeleteWithHttpInfo(state); - } - - /// - /// This call deletes specified document state - /// - /// Thrown when fails to make API call - /// Document state - /// ApiResponse of Object(void) - public ApiResponse StatesManagementDeleteWithHttpInfo (StateSimpleDTO state) - { - // verify the required parameter 'state' is set - if (state == null) - throw new ApiException(400, "Missing required parameter 'state' when calling StatesManagementApi->StatesManagementDelete"); - - var localVarPath = "/api/management/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (state != null && state.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(state); // http body (model) parameter - } - else - { - localVarPostBody = state; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes specified document state - /// - /// Thrown when fails to make API call - /// Document state - /// Task of void - public async System.Threading.Tasks.Task StatesManagementDeleteAsync (StateSimpleDTO state) - { - await StatesManagementDeleteAsyncWithHttpInfo(state); - - } - - /// - /// This call deletes specified document state - /// - /// Thrown when fails to make API call - /// Document state - /// Task of ApiResponse - public async System.Threading.Tasks.Task> StatesManagementDeleteAsyncWithHttpInfo (StateSimpleDTO state) - { - // verify the required parameter 'state' is set - if (state == null) - throw new ApiException(400, "Missing required parameter 'state' when calling StatesManagementApi->StatesManagementDelete"); - - var localVarPath = "/api/management/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (state != null && state.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(state); // http body (model) parameter - } - else - { - localVarPostBody = state; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call gets document state information - /// - /// Thrown when fails to make API call - /// Document state - /// StateCompleteDTO - public StateCompleteDTO StatesManagementGetById (StateSimpleDTO state) - { - ApiResponse localVarResponse = StatesManagementGetByIdWithHttpInfo(state); - return localVarResponse.Data; - } - - /// - /// This call gets document state information - /// - /// Thrown when fails to make API call - /// Document state - /// ApiResponse of StateCompleteDTO - public ApiResponse< StateCompleteDTO > StatesManagementGetByIdWithHttpInfo (StateSimpleDTO state) - { - // verify the required parameter 'state' is set - if (state == null) - throw new ApiException(400, "Missing required parameter 'state' when calling StatesManagementApi->StatesManagementGetById"); - - var localVarPath = "/api/management/States/GetState"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (state != null && state.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(state); // http body (model) parameter - } - else - { - localVarPostBody = state; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (StateCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StateCompleteDTO))); - } - - /// - /// This call gets document state information - /// - /// Thrown when fails to make API call - /// Document state - /// Task of StateCompleteDTO - public async System.Threading.Tasks.Task StatesManagementGetByIdAsync (StateSimpleDTO state) - { - ApiResponse localVarResponse = await StatesManagementGetByIdAsyncWithHttpInfo(state); - return localVarResponse.Data; - - } - - /// - /// This call gets document state information - /// - /// Thrown when fails to make API call - /// Document state - /// Task of ApiResponse (StateCompleteDTO) - public async System.Threading.Tasks.Task> StatesManagementGetByIdAsyncWithHttpInfo (StateSimpleDTO state) - { - // verify the required parameter 'state' is set - if (state == null) - throw new ApiException(400, "Missing required parameter 'state' when calling StatesManagementApi->StatesManagementGetById"); - - var localVarPath = "/api/management/States/GetState"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (state != null && state.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(state); // http body (model) parameter - } - else - { - localVarPostBody = state; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementGetById", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (StateCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StateCompleteDTO))); - } - - /// - /// This call returns all document types connected to the document state - /// - /// Thrown when fails to make API call - /// Document state - /// StateDocumentTypesDTO - public StateDocumentTypesDTO StatesManagementGetDocumentTypes (StateSimpleDTO state) - { - ApiResponse localVarResponse = StatesManagementGetDocumentTypesWithHttpInfo(state); - return localVarResponse.Data; - } - - /// - /// This call returns all document types connected to the document state - /// - /// Thrown when fails to make API call - /// Document state - /// ApiResponse of StateDocumentTypesDTO - public ApiResponse< StateDocumentTypesDTO > StatesManagementGetDocumentTypesWithHttpInfo (StateSimpleDTO state) - { - // verify the required parameter 'state' is set - if (state == null) - throw new ApiException(400, "Missing required parameter 'state' when calling StatesManagementApi->StatesManagementGetDocumentTypes"); - - var localVarPath = "/api/management/States/GetDocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (state != null && state.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(state); // http body (model) parameter - } - else - { - localVarPostBody = state; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementGetDocumentTypes", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (StateDocumentTypesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StateDocumentTypesDTO))); - } - - /// - /// This call returns all document types connected to the document state - /// - /// Thrown when fails to make API call - /// Document state - /// Task of StateDocumentTypesDTO - public async System.Threading.Tasks.Task StatesManagementGetDocumentTypesAsync (StateSimpleDTO state) - { - ApiResponse localVarResponse = await StatesManagementGetDocumentTypesAsyncWithHttpInfo(state); - return localVarResponse.Data; - - } - - /// - /// This call returns all document types connected to the document state - /// - /// Thrown when fails to make API call - /// Document state - /// Task of ApiResponse (StateDocumentTypesDTO) - public async System.Threading.Tasks.Task> StatesManagementGetDocumentTypesAsyncWithHttpInfo (StateSimpleDTO state) - { - // verify the required parameter 'state' is set - if (state == null) - throw new ApiException(400, "Missing required parameter 'state' when calling StatesManagementApi->StatesManagementGetDocumentTypes"); - - var localVarPath = "/api/management/States/GetDocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (state != null && state.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(state); // http body (model) parameter - } - else - { - localVarPostBody = state; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementGetDocumentTypes", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (StateDocumentTypesDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StateDocumentTypesDTO))); - } - - /// - /// This call returns all document states - /// - /// Thrown when fails to make API call - /// List<StateCompleteDTO> - public List StatesManagementGetList () - { - ApiResponse> localVarResponse = StatesManagementGetListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all document states - /// - /// Thrown when fails to make API call - /// ApiResponse of List<StateCompleteDTO> - public ApiResponse< List > StatesManagementGetListWithHttpInfo () - { - - var localVarPath = "/api/management/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementGetList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all document states - /// - /// Thrown when fails to make API call - /// Task of List<StateCompleteDTO> - public async System.Threading.Tasks.Task> StatesManagementGetListAsync () - { - ApiResponse> localVarResponse = await StatesManagementGetListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all document states - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<StateCompleteDTO>) - public async System.Threading.Tasks.Task>> StatesManagementGetListAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementGetList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all permissions for specific document state - /// - /// Thrown when fails to make API call - /// Document state - /// StatePermissionsDTO - public StatePermissionsDTO StatesManagementGetPermissions (StateSimpleDTO state) - { - ApiResponse localVarResponse = StatesManagementGetPermissionsWithHttpInfo(state); - return localVarResponse.Data; - } - - /// - /// This call returns all permissions for specific document state - /// - /// Thrown when fails to make API call - /// Document state - /// ApiResponse of StatePermissionsDTO - public ApiResponse< StatePermissionsDTO > StatesManagementGetPermissionsWithHttpInfo (StateSimpleDTO state) - { - // verify the required parameter 'state' is set - if (state == null) - throw new ApiException(400, "Missing required parameter 'state' when calling StatesManagementApi->StatesManagementGetPermissions"); - - var localVarPath = "/api/management/States/GetPermissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (state != null && state.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(state); // http body (model) parameter - } - else - { - localVarPostBody = state; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementGetPermissions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (StatePermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StatePermissionsDTO))); - } - - /// - /// This call returns all permissions for specific document state - /// - /// Thrown when fails to make API call - /// Document state - /// Task of StatePermissionsDTO - public async System.Threading.Tasks.Task StatesManagementGetPermissionsAsync (StateSimpleDTO state) - { - ApiResponse localVarResponse = await StatesManagementGetPermissionsAsyncWithHttpInfo(state); - return localVarResponse.Data; - - } - - /// - /// This call returns all permissions for specific document state - /// - /// Thrown when fails to make API call - /// Document state - /// Task of ApiResponse (StatePermissionsDTO) - public async System.Threading.Tasks.Task> StatesManagementGetPermissionsAsyncWithHttpInfo (StateSimpleDTO state) - { - // verify the required parameter 'state' is set - if (state == null) - throw new ApiException(400, "Missing required parameter 'state' when calling StatesManagementApi->StatesManagementGetPermissions"); - - var localVarPath = "/api/management/States/GetPermissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (state != null && state.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(state); // http body (model) parameter - } - else - { - localVarPostBody = state; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementGetPermissions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (StatePermissionsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StatePermissionsDTO))); - } - - /// - /// This call inserts a new document state - /// - /// Thrown when fails to make API call - /// Document state information for insert - /// StateCompleteDTO - public StateCompleteDTO StatesManagementInsert (StateCompleteDTO stateForInsert) - { - ApiResponse localVarResponse = StatesManagementInsertWithHttpInfo(stateForInsert); - return localVarResponse.Data; - } - - /// - /// This call inserts a new document state - /// - /// Thrown when fails to make API call - /// Document state information for insert - /// ApiResponse of StateCompleteDTO - public ApiResponse< StateCompleteDTO > StatesManagementInsertWithHttpInfo (StateCompleteDTO stateForInsert) - { - // verify the required parameter 'stateForInsert' is set - if (stateForInsert == null) - throw new ApiException(400, "Missing required parameter 'stateForInsert' when calling StatesManagementApi->StatesManagementInsert"); - - var localVarPath = "/api/management/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (stateForInsert != null && stateForInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(stateForInsert); // http body (model) parameter - } - else - { - localVarPostBody = stateForInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (StateCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StateCompleteDTO))); - } - - /// - /// This call inserts a new document state - /// - /// Thrown when fails to make API call - /// Document state information for insert - /// Task of StateCompleteDTO - public async System.Threading.Tasks.Task StatesManagementInsertAsync (StateCompleteDTO stateForInsert) - { - ApiResponse localVarResponse = await StatesManagementInsertAsyncWithHttpInfo(stateForInsert); - return localVarResponse.Data; - - } - - /// - /// This call inserts a new document state - /// - /// Thrown when fails to make API call - /// Document state information for insert - /// Task of ApiResponse (StateCompleteDTO) - public async System.Threading.Tasks.Task> StatesManagementInsertAsyncWithHttpInfo (StateCompleteDTO stateForInsert) - { - // verify the required parameter 'stateForInsert' is set - if (stateForInsert == null) - throw new ApiException(400, "Missing required parameter 'stateForInsert' when calling StatesManagementApi->StatesManagementInsert"); - - var localVarPath = "/api/management/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (stateForInsert != null && stateForInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(stateForInsert); // http body (model) parameter - } - else - { - localVarPostBody = stateForInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (StateCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StateCompleteDTO))); - } - - /// - /// This call update connected document types for specific document state - /// - /// Thrown when fails to make API call - /// Document types connected to the state - /// - public void StatesManagementSetDocumentTypes (StateDocumentTypesDTO stateDocumentTypes) - { - StatesManagementSetDocumentTypesWithHttpInfo(stateDocumentTypes); - } - - /// - /// This call update connected document types for specific document state - /// - /// Thrown when fails to make API call - /// Document types connected to the state - /// ApiResponse of Object(void) - public ApiResponse StatesManagementSetDocumentTypesWithHttpInfo (StateDocumentTypesDTO stateDocumentTypes) - { - // verify the required parameter 'stateDocumentTypes' is set - if (stateDocumentTypes == null) - throw new ApiException(400, "Missing required parameter 'stateDocumentTypes' when calling StatesManagementApi->StatesManagementSetDocumentTypes"); - - var localVarPath = "/api/management/States/UpdateDocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (stateDocumentTypes != null && stateDocumentTypes.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(stateDocumentTypes); // http body (model) parameter - } - else - { - localVarPostBody = stateDocumentTypes; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementSetDocumentTypes", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update connected document types for specific document state - /// - /// Thrown when fails to make API call - /// Document types connected to the state - /// Task of void - public async System.Threading.Tasks.Task StatesManagementSetDocumentTypesAsync (StateDocumentTypesDTO stateDocumentTypes) - { - await StatesManagementSetDocumentTypesAsyncWithHttpInfo(stateDocumentTypes); - - } - - /// - /// This call update connected document types for specific document state - /// - /// Thrown when fails to make API call - /// Document types connected to the state - /// Task of ApiResponse - public async System.Threading.Tasks.Task> StatesManagementSetDocumentTypesAsyncWithHttpInfo (StateDocumentTypesDTO stateDocumentTypes) - { - // verify the required parameter 'stateDocumentTypes' is set - if (stateDocumentTypes == null) - throw new ApiException(400, "Missing required parameter 'stateDocumentTypes' when calling StatesManagementApi->StatesManagementSetDocumentTypes"); - - var localVarPath = "/api/management/States/UpdateDocumentTypes"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (stateDocumentTypes != null && stateDocumentTypes.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(stateDocumentTypes); // http body (model) parameter - } - else - { - localVarPostBody = stateDocumentTypes; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementSetDocumentTypes", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update permissions for specific document state - /// - /// Thrown when fails to make API call - /// Permissions to update - /// - public void StatesManagementSetPermissions (StatePermissionsDTO statePermissions) - { - StatesManagementSetPermissionsWithHttpInfo(statePermissions); - } - - /// - /// This call update permissions for specific document state - /// - /// Thrown when fails to make API call - /// Permissions to update - /// ApiResponse of Object(void) - public ApiResponse StatesManagementSetPermissionsWithHttpInfo (StatePermissionsDTO statePermissions) - { - // verify the required parameter 'statePermissions' is set - if (statePermissions == null) - throw new ApiException(400, "Missing required parameter 'statePermissions' when calling StatesManagementApi->StatesManagementSetPermissions"); - - var localVarPath = "/api/management/States/UpdatePermissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (statePermissions != null && statePermissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(statePermissions); // http body (model) parameter - } - else - { - localVarPostBody = statePermissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementSetPermissions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update permissions for specific document state - /// - /// Thrown when fails to make API call - /// Permissions to update - /// Task of void - public async System.Threading.Tasks.Task StatesManagementSetPermissionsAsync (StatePermissionsDTO statePermissions) - { - await StatesManagementSetPermissionsAsyncWithHttpInfo(statePermissions); - - } - - /// - /// This call update permissions for specific document state - /// - /// Thrown when fails to make API call - /// Permissions to update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> StatesManagementSetPermissionsAsyncWithHttpInfo (StatePermissionsDTO statePermissions) - { - // verify the required parameter 'statePermissions' is set - if (statePermissions == null) - throw new ApiException(400, "Missing required parameter 'statePermissions' when calling StatesManagementApi->StatesManagementSetPermissions"); - - var localVarPath = "/api/management/States/UpdatePermissions"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (statePermissions != null && statePermissions.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(statePermissions); // http body (model) parameter - } - else - { - localVarPostBody = statePermissions; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementSetPermissions", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates a given document state - /// - /// Thrown when fails to make API call - /// Document state information for update - /// StateCompleteDTO - public StateCompleteDTO StatesManagementUpdate (StateCompleteDTO stateForUpdate) - { - ApiResponse localVarResponse = StatesManagementUpdateWithHttpInfo(stateForUpdate); - return localVarResponse.Data; - } - - /// - /// This call updates a given document state - /// - /// Thrown when fails to make API call - /// Document state information for update - /// ApiResponse of StateCompleteDTO - public ApiResponse< StateCompleteDTO > StatesManagementUpdateWithHttpInfo (StateCompleteDTO stateForUpdate) - { - // verify the required parameter 'stateForUpdate' is set - if (stateForUpdate == null) - throw new ApiException(400, "Missing required parameter 'stateForUpdate' when calling StatesManagementApi->StatesManagementUpdate"); - - var localVarPath = "/api/management/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (stateForUpdate != null && stateForUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(stateForUpdate); // http body (model) parameter - } - else - { - localVarPostBody = stateForUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (StateCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StateCompleteDTO))); - } - - /// - /// This call updates a given document state - /// - /// Thrown when fails to make API call - /// Document state information for update - /// Task of StateCompleteDTO - public async System.Threading.Tasks.Task StatesManagementUpdateAsync (StateCompleteDTO stateForUpdate) - { - ApiResponse localVarResponse = await StatesManagementUpdateAsyncWithHttpInfo(stateForUpdate); - return localVarResponse.Data; - - } - - /// - /// This call updates a given document state - /// - /// Thrown when fails to make API call - /// Document state information for update - /// Task of ApiResponse (StateCompleteDTO) - public async System.Threading.Tasks.Task> StatesManagementUpdateAsyncWithHttpInfo (StateCompleteDTO stateForUpdate) - { - // verify the required parameter 'stateForUpdate' is set - if (stateForUpdate == null) - throw new ApiException(400, "Missing required parameter 'stateForUpdate' when calling StatesManagementApi->StatesManagementUpdate"); - - var localVarPath = "/api/management/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (stateForUpdate != null && stateForUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(stateForUpdate); // http body (model) parameter - } - else - { - localVarPostBody = stateForUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("StatesManagementUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (StateCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StateCompleteDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/UsersManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/UsersManagementApi.cs deleted file mode 100644 index cde49d3..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/UsersManagementApi.cs +++ /dev/null @@ -1,6767 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IUsersManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call creates a new user starting from an existing one - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Source user Identifier - /// New User informations to insert - /// UserCompleteDTO - UserCompleteDTO UsersManagementClone (int? id, UserInsertDTO userInsert); - - /// - /// This call creates a new user starting from an existing one - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Source user Identifier - /// New User informations to insert - /// ApiResponse of UserCompleteDTO - ApiResponse UsersManagementCloneWithHttpInfo (int? id, UserInsertDTO userInsert); - /// - /// This call deletes user, group or service specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// - void UsersManagementDelete (int? id); - - /// - /// This call deletes user, group or service specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of Object(void) - ApiResponse UsersManagementDeleteWithHttpInfo (int? id); - /// - /// This call deletes user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// - void UsersManagementDeleteUserMailAccount (int? userId, int? mailAccountId); - - /// - /// This call deletes user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// ApiResponse of Object(void) - ApiResponse UsersManagementDeleteUserMailAccountWithHttpInfo (int? userId, int? mailAccountId); - /// - /// This call removes user sign image - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// - void UsersManagementDeleteUserSignImage (int? userId); - - /// - /// This call removes user sign image - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of Object(void) - ApiResponse UsersManagementDeleteUserSignImageWithHttpInfo (int? userId); - /// - /// This call returns all users, groups and services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<UserCompleteDTO> - List UsersManagementGet (); - - /// - /// This call returns all users, groups and services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<UserCompleteDTO> - ApiResponse> UsersManagementGetWithHttpInfo (); - /// - /// This call returns user option for automatic insert in the address book in profilation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// bool? - bool? UsersManagementGetAddressBookProfile (int? userId); - - /// - /// This call returns user option for automatic insert in the address book in profilation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// ApiResponse of bool? - ApiResponse UsersManagementGetAddressBookProfileWithHttpInfo (int? userId); - /// - /// This call gets user or group object for update - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// UserUpdateDTO - UserUpdateDTO UsersManagementGetForUpdate (int? id); - - /// - /// This call gets user or group object for update - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of UserUpdateDTO - ApiResponse UsersManagementGetForUpdateWithHttpInfo (int? id); - /// - /// This call returns user option for max size of output mail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// int? - int? UsersManagementGetMailOutMaxSize (int? userId); - - /// - /// This call returns user option for max size of output mail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// ApiResponse of int? - ApiResponse UsersManagementGetMailOutMaxSizeWithHttpInfo (int? userId); - /// - /// This call returns user password criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// UserPasswordCriteriaDTO - UserPasswordCriteriaDTO UsersManagementGetPasswordCriteria (); - - /// - /// This call returns user password criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of UserPasswordCriteriaDTO - ApiResponse UsersManagementGetPasswordCriteriaWithHttpInfo (); - /// - /// This call gets all groups by user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// List<UserSimpleDTO> - List UsersManagementGetUserGroups (int? userId); - - /// - /// This call gets all groups by user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of List<UserSimpleDTO> - ApiResponse> UsersManagementGetUserGroupsWithHttpInfo (int? userId); - /// - /// This call gets user impersonate informations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// ImpersonateDTO - ImpersonateDTO UsersManagementGetUserImpersonateData (int? userId); - - /// - /// This call gets user impersonate informations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of ImpersonateDTO - ApiResponse UsersManagementGetUserImpersonateDataWithHttpInfo (int? userId); - /// - /// This call gets specific mail account identified by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// MailAccountDTO - MailAccountDTO UsersManagementGetUserMailAccount (int? userId, int? mailAccountId); - - /// - /// This call gets specific mail account identified by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// ApiResponse of MailAccountDTO - ApiResponse UsersManagementGetUserMailAccountWithHttpInfo (int? userId, int? mailAccountId); - /// - /// This call gets mail accounts for specific user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// List<MailAccountDTO> - List UsersManagementGetUserMailAccounts (int? userId); - - /// - /// This call gets mail accounts for specific user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of List<MailAccountDTO> - ApiResponse> UsersManagementGetUserMailAccountsWithHttpInfo (int? userId); - /// - /// This call gets mail configuration options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// MailAccountSettingsDTO - MailAccountSettingsDTO UsersManagementGetUserMailSettings (int? userId); - - /// - /// This call gets mail configuration options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of MailAccountSettingsDTO - ApiResponse UsersManagementGetUserMailSettingsWithHttpInfo (int? userId); - /// - /// This call gets user Sign image - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// System.IO.Stream - System.IO.Stream UsersManagementGetUserSignImage (int? userId); - - /// - /// This call gets user Sign image - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of System.IO.Stream - ApiResponse UsersManagementGetUserSignImageWithHttpInfo (int? userId); - /// - /// This call gets all states enabled for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// List<UserSecurityStateDTO> - List UsersManagementGetUserState (int? userId); - - /// - /// This call gets all states enabled for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of List<UserSecurityStateDTO> - ApiResponse> UsersManagementGetUserStateWithHttpInfo (int? userId); - /// - /// This call inserts a new user, group or service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User information to insert - /// UserCompleteDTO - UserCompleteDTO UsersManagementInsert (UserInsertDTO userInsert); - - /// - /// This call inserts a new user, group or service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User information to insert - /// ApiResponse of UserCompleteDTO - ApiResponse UsersManagementInsertWithHttpInfo (UserInsertDTO userInsert); - /// - /// This call inserts user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// MailAccountDTO - MailAccountDTO UsersManagementInsertUserMailAccount (int? userId, MailAccountDTO mailaccount = null); - - /// - /// This call inserts user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// ApiResponse of MailAccountDTO - ApiResponse UsersManagementInsertUserMailAccountWithHttpInfo (int? userId, MailAccountDTO mailaccount = null); - /// - /// This call allows to import multiple users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request - /// UsersMassiveImportResponseDTO - UsersMassiveImportResponseDTO UsersManagementMassiveImportQueue (UsersMassiveImportRequestDTO request); - - /// - /// This call allows to import multiple users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request - /// ApiResponse of UsersMassiveImportResponseDTO - ApiResponse UsersManagementMassiveImportQueueWithHttpInfo (UsersMassiveImportRequestDTO request); - /// - /// This call restore deleted user or group and updates its informations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User informations to update - /// UserCompleteDTO - UserCompleteDTO UsersManagementRestore (UserInsertDTO userUpdate); - - /// - /// This call restore deleted user or group and updates its informations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User informations to update - /// ApiResponse of UserCompleteDTO - ApiResponse UsersManagementRestoreWithHttpInfo (UserInsertDTO userUpdate); - /// - /// This call updates user option for automatic insert in the address book in profilation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// Boolen which is true to enable the option - /// - void UsersManagementSetAddressBookProfile (int? userId, bool? enable); - - /// - /// This call updates user option for automatic insert in the address book in profilation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// Boolen which is true to enable the option - /// ApiResponse of Object(void) - ApiResponse UsersManagementSetAddressBookProfileWithHttpInfo (int? userId, bool? enable); - /// - /// This call updates default user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// - void UsersManagementSetDefaultUserMailAccount (int? userId, int? mailAccountId); - - /// - /// This call updates default user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// ApiResponse of Object(void) - ApiResponse UsersManagementSetDefaultUserMailAccountWithHttpInfo (int? userId, int? mailAccountId); - /// - /// This call updates user option for max size of output mail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// Mail max size (Kbyte) - /// - void UsersManagementSetMailOutMaxSize (int? userId, int? maxSize); - - /// - /// This call updates user option for max size of output mail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// Mail max size (Kbyte) - /// ApiResponse of Object(void) - ApiResponse UsersManagementSetMailOutMaxSizeWithHttpInfo (int? userId, int? maxSize); - /// - /// This call updates user password advanced criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Advanced criteria - /// - void UsersManagementSetPasswordAdvancedCriteria (UserPasswordAdvancedCriteriaDTO criteria); - - /// - /// This call updates user password advanced criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Advanced criteria - /// ApiResponse of Object(void) - ApiResponse UsersManagementSetPasswordAdvancedCriteriaWithHttpInfo (UserPasswordAdvancedCriteriaDTO criteria); - /// - /// This call updates user password manage criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Manage criteria - /// - void UsersManagementSetPasswordManageCriteria (UserPasswordManageCriteriaDTO criteria); - - /// - /// This call updates user password manage criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Manage criteria - /// ApiResponse of Object(void) - ApiResponse UsersManagementSetPasswordManageCriteriaWithHttpInfo (UserPasswordManageCriteriaDTO criteria); - /// - /// This call updates user password recovery criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Recovery criteria - /// - void UsersManagementSetPasswordRecoveryCriteria (UserPasswordRecoveryCriteriaDTO criteria); - - /// - /// This call updates user password recovery criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Recovery criteria - /// ApiResponse of Object(void) - ApiResponse UsersManagementSetPasswordRecoveryCriteriaWithHttpInfo (UserPasswordRecoveryCriteriaDTO criteria); - /// - /// This call updates user groups - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Group list - /// - void UsersManagementSetUserGroups (int? userId, List groups); - - /// - /// This call updates user groups - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Group list - /// ApiResponse of Object(void) - ApiResponse UsersManagementSetUserGroupsWithHttpInfo (int? userId, List groups); - /// - /// This call updates user impersonate informations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Impersonate data - /// - void UsersManagementSetUserImpersonateData (int? userId, ImpersonateDTO impersonate); - - /// - /// This call updates user impersonate informations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Impersonate data - /// ApiResponse of Object(void) - ApiResponse UsersManagementSetUserImpersonateDataWithHttpInfo (int? userId, ImpersonateDTO impersonate); - /// - /// This call sets mail configuration options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail settings - /// - void UsersManagementSetUserMailSettings (int? userId, MailAccountSettingsDTO mailSettings); - - /// - /// This call sets mail configuration options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail settings - /// ApiResponse of Object(void) - ApiResponse UsersManagementSetUserMailSettingsWithHttpInfo (int? userId, MailAccountSettingsDTO mailSettings); - /// - /// This call updates user sign image - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Identifier of the file buffered - /// - void UsersManagementSetUserSignImage (int? userId, string fileBufferId); - - /// - /// This call updates user sign image - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Identifier of the file buffered - /// ApiResponse of Object(void) - ApiResponse UsersManagementSetUserSignImageWithHttpInfo (int? userId, string fileBufferId); - /// - /// This call updates all states enabled for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// State list - /// - void UsersManagementSetUserState (int? userId, List states); - - /// - /// This call updates all states enabled for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// State list - /// ApiResponse of Object(void) - ApiResponse UsersManagementSetUserStateWithHttpInfo (int? userId, List states); - /// - /// This call updates a given user, group or service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// UserCompleteDTO - UserCompleteDTO UsersManagementUpdate (int? id, UserUpdateDTO userupdate = null); - - /// - /// This call updates a given user, group or service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// ApiResponse of UserCompleteDTO - ApiResponse UsersManagementUpdateWithHttpInfo (int? id, UserUpdateDTO userupdate = null); - /// - /// This call updates user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// MailAccountDTO - MailAccountDTO UsersManagementUpdateUserMailAccount (int? userId, MailAccountDTO mailaccount = null); - - /// - /// This call updates user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// ApiResponse of MailAccountDTO - ApiResponse UsersManagementUpdateUserMailAccountWithHttpInfo (int? userId, MailAccountDTO mailaccount = null); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call creates a new user starting from an existing one - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Source user Identifier - /// New User informations to insert - /// Task of UserCompleteDTO - System.Threading.Tasks.Task UsersManagementCloneAsync (int? id, UserInsertDTO userInsert); - - /// - /// This call creates a new user starting from an existing one - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Source user Identifier - /// New User informations to insert - /// Task of ApiResponse (UserCompleteDTO) - System.Threading.Tasks.Task> UsersManagementCloneAsyncWithHttpInfo (int? id, UserInsertDTO userInsert); - /// - /// This call deletes user, group or service specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of void - System.Threading.Tasks.Task UsersManagementDeleteAsync (int? id); - - /// - /// This call deletes user, group or service specified - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersManagementDeleteAsyncWithHttpInfo (int? id); - /// - /// This call deletes user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// Task of void - System.Threading.Tasks.Task UsersManagementDeleteUserMailAccountAsync (int? userId, int? mailAccountId); - - /// - /// This call deletes user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersManagementDeleteUserMailAccountAsyncWithHttpInfo (int? userId, int? mailAccountId); - /// - /// This call removes user sign image - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of void - System.Threading.Tasks.Task UsersManagementDeleteUserSignImageAsync (int? userId); - - /// - /// This call removes user sign image - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersManagementDeleteUserSignImageAsyncWithHttpInfo (int? userId); - /// - /// This call returns all users, groups and services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<UserCompleteDTO> - System.Threading.Tasks.Task> UsersManagementGetAsync (); - - /// - /// This call returns all users, groups and services - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<UserCompleteDTO>) - System.Threading.Tasks.Task>> UsersManagementGetAsyncWithHttpInfo (); - /// - /// This call returns user option for automatic insert in the address book in profilation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// Task of bool? - System.Threading.Tasks.Task UsersManagementGetAddressBookProfileAsync (int? userId); - - /// - /// This call returns user option for automatic insert in the address book in profilation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> UsersManagementGetAddressBookProfileAsyncWithHttpInfo (int? userId); - /// - /// This call gets user or group object for update - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of UserUpdateDTO - System.Threading.Tasks.Task UsersManagementGetForUpdateAsync (int? id); - - /// - /// This call gets user or group object for update - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse (UserUpdateDTO) - System.Threading.Tasks.Task> UsersManagementGetForUpdateAsyncWithHttpInfo (int? id); - /// - /// This call returns user option for max size of output mail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// Task of int? - System.Threading.Tasks.Task UsersManagementGetMailOutMaxSizeAsync (int? userId); - - /// - /// This call returns user option for max size of output mail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// Task of ApiResponse (int?) - System.Threading.Tasks.Task> UsersManagementGetMailOutMaxSizeAsyncWithHttpInfo (int? userId); - /// - /// This call returns user password criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of UserPasswordCriteriaDTO - System.Threading.Tasks.Task UsersManagementGetPasswordCriteriaAsync (); - - /// - /// This call returns user password criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (UserPasswordCriteriaDTO) - System.Threading.Tasks.Task> UsersManagementGetPasswordCriteriaAsyncWithHttpInfo (); - /// - /// This call gets all groups by user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of List<UserSimpleDTO> - System.Threading.Tasks.Task> UsersManagementGetUserGroupsAsync (int? userId); - - /// - /// This call gets all groups by user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse (List<UserSimpleDTO>) - System.Threading.Tasks.Task>> UsersManagementGetUserGroupsAsyncWithHttpInfo (int? userId); - /// - /// This call gets user impersonate informations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ImpersonateDTO - System.Threading.Tasks.Task UsersManagementGetUserImpersonateDataAsync (int? userId); - - /// - /// This call gets user impersonate informations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse (ImpersonateDTO) - System.Threading.Tasks.Task> UsersManagementGetUserImpersonateDataAsyncWithHttpInfo (int? userId); - /// - /// This call gets specific mail account identified by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// Task of MailAccountDTO - System.Threading.Tasks.Task UsersManagementGetUserMailAccountAsync (int? userId, int? mailAccountId); - - /// - /// This call gets specific mail account identified by id - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// Task of ApiResponse (MailAccountDTO) - System.Threading.Tasks.Task> UsersManagementGetUserMailAccountAsyncWithHttpInfo (int? userId, int? mailAccountId); - /// - /// This call gets mail accounts for specific user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of List<MailAccountDTO> - System.Threading.Tasks.Task> UsersManagementGetUserMailAccountsAsync (int? userId); - - /// - /// This call gets mail accounts for specific user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse (List<MailAccountDTO>) - System.Threading.Tasks.Task>> UsersManagementGetUserMailAccountsAsyncWithHttpInfo (int? userId); - /// - /// This call gets mail configuration options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of MailAccountSettingsDTO - System.Threading.Tasks.Task UsersManagementGetUserMailSettingsAsync (int? userId); - - /// - /// This call gets mail configuration options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse (MailAccountSettingsDTO) - System.Threading.Tasks.Task> UsersManagementGetUserMailSettingsAsyncWithHttpInfo (int? userId); - /// - /// This call gets user Sign image - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of System.IO.Stream - System.Threading.Tasks.Task UsersManagementGetUserSignImageAsync (int? userId); - - /// - /// This call gets user Sign image - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> UsersManagementGetUserSignImageAsyncWithHttpInfo (int? userId); - /// - /// This call gets all states enabled for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of List<UserSecurityStateDTO> - System.Threading.Tasks.Task> UsersManagementGetUserStateAsync (int? userId); - - /// - /// This call gets all states enabled for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse (List<UserSecurityStateDTO>) - System.Threading.Tasks.Task>> UsersManagementGetUserStateAsyncWithHttpInfo (int? userId); - /// - /// This call inserts a new user, group or service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User information to insert - /// Task of UserCompleteDTO - System.Threading.Tasks.Task UsersManagementInsertAsync (UserInsertDTO userInsert); - - /// - /// This call inserts a new user, group or service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User information to insert - /// Task of ApiResponse (UserCompleteDTO) - System.Threading.Tasks.Task> UsersManagementInsertAsyncWithHttpInfo (UserInsertDTO userInsert); - /// - /// This call inserts user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// Task of MailAccountDTO - System.Threading.Tasks.Task UsersManagementInsertUserMailAccountAsync (int? userId, MailAccountDTO mailaccount = null); - - /// - /// This call inserts user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// Task of ApiResponse (MailAccountDTO) - System.Threading.Tasks.Task> UsersManagementInsertUserMailAccountAsyncWithHttpInfo (int? userId, MailAccountDTO mailaccount = null); - /// - /// This call allows to import multiple users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request - /// Task of UsersMassiveImportResponseDTO - System.Threading.Tasks.Task UsersManagementMassiveImportQueueAsync (UsersMassiveImportRequestDTO request); - - /// - /// This call allows to import multiple users - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Request - /// Task of ApiResponse (UsersMassiveImportResponseDTO) - System.Threading.Tasks.Task> UsersManagementMassiveImportQueueAsyncWithHttpInfo (UsersMassiveImportRequestDTO request); - /// - /// This call restore deleted user or group and updates its informations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User informations to update - /// Task of UserCompleteDTO - System.Threading.Tasks.Task UsersManagementRestoreAsync (UserInsertDTO userUpdate); - - /// - /// This call restore deleted user or group and updates its informations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User informations to update - /// Task of ApiResponse (UserCompleteDTO) - System.Threading.Tasks.Task> UsersManagementRestoreAsyncWithHttpInfo (UserInsertDTO userUpdate); - /// - /// This call updates user option for automatic insert in the address book in profilation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// Boolen which is true to enable the option - /// Task of void - System.Threading.Tasks.Task UsersManagementSetAddressBookProfileAsync (int? userId, bool? enable); - - /// - /// This call updates user option for automatic insert in the address book in profilation - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// Boolen which is true to enable the option - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersManagementSetAddressBookProfileAsyncWithHttpInfo (int? userId, bool? enable); - /// - /// This call updates default user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// Task of void - System.Threading.Tasks.Task UsersManagementSetDefaultUserMailAccountAsync (int? userId, int? mailAccountId); - - /// - /// This call updates default user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersManagementSetDefaultUserMailAccountAsyncWithHttpInfo (int? userId, int? mailAccountId); - /// - /// This call updates user option for max size of output mail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// Mail max size (Kbyte) - /// Task of void - System.Threading.Tasks.Task UsersManagementSetMailOutMaxSizeAsync (int? userId, int? maxSize); - - /// - /// This call updates user option for max size of output mail - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User identifier - /// Mail max size (Kbyte) - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersManagementSetMailOutMaxSizeAsyncWithHttpInfo (int? userId, int? maxSize); - /// - /// This call updates user password advanced criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Advanced criteria - /// Task of void - System.Threading.Tasks.Task UsersManagementSetPasswordAdvancedCriteriaAsync (UserPasswordAdvancedCriteriaDTO criteria); - - /// - /// This call updates user password advanced criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Advanced criteria - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersManagementSetPasswordAdvancedCriteriaAsyncWithHttpInfo (UserPasswordAdvancedCriteriaDTO criteria); - /// - /// This call updates user password manage criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Manage criteria - /// Task of void - System.Threading.Tasks.Task UsersManagementSetPasswordManageCriteriaAsync (UserPasswordManageCriteriaDTO criteria); - - /// - /// This call updates user password manage criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Manage criteria - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersManagementSetPasswordManageCriteriaAsyncWithHttpInfo (UserPasswordManageCriteriaDTO criteria); - /// - /// This call updates user password recovery criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Recovery criteria - /// Task of void - System.Threading.Tasks.Task UsersManagementSetPasswordRecoveryCriteriaAsync (UserPasswordRecoveryCriteriaDTO criteria); - - /// - /// This call updates user password recovery criteria - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Recovery criteria - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersManagementSetPasswordRecoveryCriteriaAsyncWithHttpInfo (UserPasswordRecoveryCriteriaDTO criteria); - /// - /// This call updates user groups - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Group list - /// Task of void - System.Threading.Tasks.Task UsersManagementSetUserGroupsAsync (int? userId, List groups); - - /// - /// This call updates user groups - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Group list - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersManagementSetUserGroupsAsyncWithHttpInfo (int? userId, List groups); - /// - /// This call updates user impersonate informations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Impersonate data - /// Task of void - System.Threading.Tasks.Task UsersManagementSetUserImpersonateDataAsync (int? userId, ImpersonateDTO impersonate); - - /// - /// This call updates user impersonate informations - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Impersonate data - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersManagementSetUserImpersonateDataAsyncWithHttpInfo (int? userId, ImpersonateDTO impersonate); - /// - /// This call sets mail configuration options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail settings - /// Task of void - System.Threading.Tasks.Task UsersManagementSetUserMailSettingsAsync (int? userId, MailAccountSettingsDTO mailSettings); - - /// - /// This call sets mail configuration options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail settings - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersManagementSetUserMailSettingsAsyncWithHttpInfo (int? userId, MailAccountSettingsDTO mailSettings); - /// - /// This call updates user sign image - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Identifier of the file buffered - /// Task of void - System.Threading.Tasks.Task UsersManagementSetUserSignImageAsync (int? userId, string fileBufferId); - - /// - /// This call updates user sign image - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// Identifier of the file buffered - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersManagementSetUserSignImageAsyncWithHttpInfo (int? userId, string fileBufferId); - /// - /// This call updates all states enabled for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// State list - /// Task of void - System.Threading.Tasks.Task UsersManagementSetUserStateAsync (int? userId, List states); - - /// - /// This call updates all states enabled for the user - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// State list - /// Task of ApiResponse - System.Threading.Tasks.Task> UsersManagementSetUserStateAsyncWithHttpInfo (int? userId, List states); - /// - /// This call updates a given user, group or service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// Task of UserCompleteDTO - System.Threading.Tasks.Task UsersManagementUpdateAsync (int? id, UserUpdateDTO userupdate = null); - - /// - /// This call updates a given user, group or service - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// Task of ApiResponse (UserCompleteDTO) - System.Threading.Tasks.Task> UsersManagementUpdateAsyncWithHttpInfo (int? id, UserUpdateDTO userupdate = null); - /// - /// This call updates user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// Task of MailAccountDTO - System.Threading.Tasks.Task UsersManagementUpdateUserMailAccountAsync (int? userId, MailAccountDTO mailaccount = null); - - /// - /// This call updates user mail account - /// - /// - /// - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// Task of ApiResponse (MailAccountDTO) - System.Threading.Tasks.Task> UsersManagementUpdateUserMailAccountAsyncWithHttpInfo (int? userId, MailAccountDTO mailaccount = null); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class UsersManagementApi : IUsersManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public UsersManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public UsersManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call creates a new user starting from an existing one - /// - /// Thrown when fails to make API call - /// Source user Identifier - /// New User informations to insert - /// UserCompleteDTO - public UserCompleteDTO UsersManagementClone (int? id, UserInsertDTO userInsert) - { - ApiResponse localVarResponse = UsersManagementCloneWithHttpInfo(id, userInsert); - return localVarResponse.Data; - } - - /// - /// This call creates a new user starting from an existing one - /// - /// Thrown when fails to make API call - /// Source user Identifier - /// New User informations to insert - /// ApiResponse of UserCompleteDTO - public ApiResponse< UserCompleteDTO > UsersManagementCloneWithHttpInfo (int? id, UserInsertDTO userInsert) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersManagementApi->UsersManagementClone"); - // verify the required parameter 'userInsert' is set - if (userInsert == null) - throw new ApiException(400, "Missing required parameter 'userInsert' when calling UsersManagementApi->UsersManagementClone"); - - var localVarPath = "/api/management/Users/{id}/Clone"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (userInsert != null && userInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userInsert); // http body (model) parameter - } - else - { - localVarPostBody = userInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementClone", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserCompleteDTO))); - } - - /// - /// This call creates a new user starting from an existing one - /// - /// Thrown when fails to make API call - /// Source user Identifier - /// New User informations to insert - /// Task of UserCompleteDTO - public async System.Threading.Tasks.Task UsersManagementCloneAsync (int? id, UserInsertDTO userInsert) - { - ApiResponse localVarResponse = await UsersManagementCloneAsyncWithHttpInfo(id, userInsert); - return localVarResponse.Data; - - } - - /// - /// This call creates a new user starting from an existing one - /// - /// Thrown when fails to make API call - /// Source user Identifier - /// New User informations to insert - /// Task of ApiResponse (UserCompleteDTO) - public async System.Threading.Tasks.Task> UsersManagementCloneAsyncWithHttpInfo (int? id, UserInsertDTO userInsert) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersManagementApi->UsersManagementClone"); - // verify the required parameter 'userInsert' is set - if (userInsert == null) - throw new ApiException(400, "Missing required parameter 'userInsert' when calling UsersManagementApi->UsersManagementClone"); - - var localVarPath = "/api/management/Users/{id}/Clone"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (userInsert != null && userInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userInsert); // http body (model) parameter - } - else - { - localVarPostBody = userInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementClone", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserCompleteDTO))); - } - - /// - /// This call deletes user, group or service specified - /// - /// Thrown when fails to make API call - /// Identifier - /// - public void UsersManagementDelete (int? id) - { - UsersManagementDeleteWithHttpInfo(id); - } - - /// - /// This call deletes user, group or service specified - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of Object(void) - public ApiResponse UsersManagementDeleteWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersManagementApi->UsersManagementDelete"); - - var localVarPath = "/api/management/Users/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes user, group or service specified - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of void - public async System.Threading.Tasks.Task UsersManagementDeleteAsync (int? id) - { - await UsersManagementDeleteAsyncWithHttpInfo(id); - - } - - /// - /// This call deletes user, group or service specified - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersManagementDeleteAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersManagementApi->UsersManagementDelete"); - - var localVarPath = "/api/management/Users/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// - public void UsersManagementDeleteUserMailAccount (int? userId, int? mailAccountId) - { - UsersManagementDeleteUserMailAccountWithHttpInfo(userId, mailAccountId); - } - - /// - /// This call deletes user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// ApiResponse of Object(void) - public ApiResponse UsersManagementDeleteUserMailAccountWithHttpInfo (int? userId, int? mailAccountId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementDeleteUserMailAccount"); - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling UsersManagementApi->UsersManagementDeleteUserMailAccount"); - - var localVarPath = "/api/management/Users/{userId}/MailAccounts/{mailAccountId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementDeleteUserMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call deletes user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// Task of void - public async System.Threading.Tasks.Task UsersManagementDeleteUserMailAccountAsync (int? userId, int? mailAccountId) - { - await UsersManagementDeleteUserMailAccountAsyncWithHttpInfo(userId, mailAccountId); - - } - - /// - /// This call deletes user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersManagementDeleteUserMailAccountAsyncWithHttpInfo (int? userId, int? mailAccountId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementDeleteUserMailAccount"); - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling UsersManagementApi->UsersManagementDeleteUserMailAccount"); - - var localVarPath = "/api/management/Users/{userId}/MailAccounts/{mailAccountId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementDeleteUserMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call removes user sign image - /// - /// Thrown when fails to make API call - /// User Identifier - /// - public void UsersManagementDeleteUserSignImage (int? userId) - { - UsersManagementDeleteUserSignImageWithHttpInfo(userId); - } - - /// - /// This call removes user sign image - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of Object(void) - public ApiResponse UsersManagementDeleteUserSignImageWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementDeleteUserSignImage"); - - var localVarPath = "/api/management/Users/{userId}/SignImage"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementDeleteUserSignImage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call removes user sign image - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of void - public async System.Threading.Tasks.Task UsersManagementDeleteUserSignImageAsync (int? userId) - { - await UsersManagementDeleteUserSignImageAsyncWithHttpInfo(userId); - - } - - /// - /// This call removes user sign image - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersManagementDeleteUserSignImageAsyncWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementDeleteUserSignImage"); - - var localVarPath = "/api/management/Users/{userId}/SignImage"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementDeleteUserSignImage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call returns all users, groups and services - /// - /// Thrown when fails to make API call - /// List<UserCompleteDTO> - public List UsersManagementGet () - { - ApiResponse> localVarResponse = UsersManagementGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all users, groups and services - /// - /// Thrown when fails to make API call - /// ApiResponse of List<UserCompleteDTO> - public ApiResponse< List > UsersManagementGetWithHttpInfo () - { - - var localVarPath = "/api/management/Users"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all users, groups and services - /// - /// Thrown when fails to make API call - /// Task of List<UserCompleteDTO> - public async System.Threading.Tasks.Task> UsersManagementGetAsync () - { - ApiResponse> localVarResponse = await UsersManagementGetAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all users, groups and services - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<UserCompleteDTO>) - public async System.Threading.Tasks.Task>> UsersManagementGetAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Users"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGet", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns user option for automatic insert in the address book in profilation - /// - /// Thrown when fails to make API call - /// User identifier - /// bool? - public bool? UsersManagementGetAddressBookProfile (int? userId) - { - ApiResponse localVarResponse = UsersManagementGetAddressBookProfileWithHttpInfo(userId); - return localVarResponse.Data; - } - - /// - /// This call returns user option for automatic insert in the address book in profilation - /// - /// Thrown when fails to make API call - /// User identifier - /// ApiResponse of bool? - public ApiResponse< bool? > UsersManagementGetAddressBookProfileWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetAddressBookProfile"); - - var localVarPath = "/api/management/Users/{userId}/Options/GetAddressBookProfile"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetAddressBookProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns user option for automatic insert in the address book in profilation - /// - /// Thrown when fails to make API call - /// User identifier - /// Task of bool? - public async System.Threading.Tasks.Task UsersManagementGetAddressBookProfileAsync (int? userId) - { - ApiResponse localVarResponse = await UsersManagementGetAddressBookProfileAsyncWithHttpInfo(userId); - return localVarResponse.Data; - - } - - /// - /// This call returns user option for automatic insert in the address book in profilation - /// - /// Thrown when fails to make API call - /// User identifier - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> UsersManagementGetAddressBookProfileAsyncWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetAddressBookProfile"); - - var localVarPath = "/api/management/Users/{userId}/Options/GetAddressBookProfile"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetAddressBookProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call gets user or group object for update - /// - /// Thrown when fails to make API call - /// Identifier - /// UserUpdateDTO - public UserUpdateDTO UsersManagementGetForUpdate (int? id) - { - ApiResponse localVarResponse = UsersManagementGetForUpdateWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// This call gets user or group object for update - /// - /// Thrown when fails to make API call - /// Identifier - /// ApiResponse of UserUpdateDTO - public ApiResponse< UserUpdateDTO > UsersManagementGetForUpdateWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersManagementApi->UsersManagementGetForUpdate"); - - var localVarPath = "/api/management/Users/ForUpdate/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetForUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserUpdateDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserUpdateDTO))); - } - - /// - /// This call gets user or group object for update - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of UserUpdateDTO - public async System.Threading.Tasks.Task UsersManagementGetForUpdateAsync (int? id) - { - ApiResponse localVarResponse = await UsersManagementGetForUpdateAsyncWithHttpInfo(id); - return localVarResponse.Data; - - } - - /// - /// This call gets user or group object for update - /// - /// Thrown when fails to make API call - /// Identifier - /// Task of ApiResponse (UserUpdateDTO) - public async System.Threading.Tasks.Task> UsersManagementGetForUpdateAsyncWithHttpInfo (int? id) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersManagementApi->UsersManagementGetForUpdate"); - - var localVarPath = "/api/management/Users/ForUpdate/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetForUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserUpdateDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserUpdateDTO))); - } - - /// - /// This call returns user option for max size of output mail - /// - /// Thrown when fails to make API call - /// User identifier - /// int? - public int? UsersManagementGetMailOutMaxSize (int? userId) - { - ApiResponse localVarResponse = UsersManagementGetMailOutMaxSizeWithHttpInfo(userId); - return localVarResponse.Data; - } - - /// - /// This call returns user option for max size of output mail - /// - /// Thrown when fails to make API call - /// User identifier - /// ApiResponse of int? - public ApiResponse< int? > UsersManagementGetMailOutMaxSizeWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetMailOutMaxSize"); - - var localVarPath = "/api/management/Users/{userId}/Options/GetMailOutMaxSize"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetMailOutMaxSize", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call returns user option for max size of output mail - /// - /// Thrown when fails to make API call - /// User identifier - /// Task of int? - public async System.Threading.Tasks.Task UsersManagementGetMailOutMaxSizeAsync (int? userId) - { - ApiResponse localVarResponse = await UsersManagementGetMailOutMaxSizeAsyncWithHttpInfo(userId); - return localVarResponse.Data; - - } - - /// - /// This call returns user option for max size of output mail - /// - /// Thrown when fails to make API call - /// User identifier - /// Task of ApiResponse (int?) - public async System.Threading.Tasks.Task> UsersManagementGetMailOutMaxSizeAsyncWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetMailOutMaxSize"); - - var localVarPath = "/api/management/Users/{userId}/Options/GetMailOutMaxSize"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetMailOutMaxSize", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); - } - - /// - /// This call returns user password criteria - /// - /// Thrown when fails to make API call - /// UserPasswordCriteriaDTO - public UserPasswordCriteriaDTO UsersManagementGetPasswordCriteria () - { - ApiResponse localVarResponse = UsersManagementGetPasswordCriteriaWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns user password criteria - /// - /// Thrown when fails to make API call - /// ApiResponse of UserPasswordCriteriaDTO - public ApiResponse< UserPasswordCriteriaDTO > UsersManagementGetPasswordCriteriaWithHttpInfo () - { - - var localVarPath = "/api/management/Users/PasswordCriteria"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetPasswordCriteria", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserPasswordCriteriaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserPasswordCriteriaDTO))); - } - - /// - /// This call returns user password criteria - /// - /// Thrown when fails to make API call - /// Task of UserPasswordCriteriaDTO - public async System.Threading.Tasks.Task UsersManagementGetPasswordCriteriaAsync () - { - ApiResponse localVarResponse = await UsersManagementGetPasswordCriteriaAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns user password criteria - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (UserPasswordCriteriaDTO) - public async System.Threading.Tasks.Task> UsersManagementGetPasswordCriteriaAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Users/PasswordCriteria"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetPasswordCriteria", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserPasswordCriteriaDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserPasswordCriteriaDTO))); - } - - /// - /// This call gets all groups by user - /// - /// Thrown when fails to make API call - /// User Identifier - /// List<UserSimpleDTO> - public List UsersManagementGetUserGroups (int? userId) - { - ApiResponse> localVarResponse = UsersManagementGetUserGroupsWithHttpInfo(userId); - return localVarResponse.Data; - } - - /// - /// This call gets all groups by user - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of List<UserSimpleDTO> - public ApiResponse< List > UsersManagementGetUserGroupsWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetUserGroups"); - - var localVarPath = "/api/management/Users/{userId}/Groups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetUserGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets all groups by user - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of List<UserSimpleDTO> - public async System.Threading.Tasks.Task> UsersManagementGetUserGroupsAsync (int? userId) - { - ApiResponse> localVarResponse = await UsersManagementGetUserGroupsAsyncWithHttpInfo(userId); - return localVarResponse.Data; - - } - - /// - /// This call gets all groups by user - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse (List<UserSimpleDTO>) - public async System.Threading.Tasks.Task>> UsersManagementGetUserGroupsAsyncWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetUserGroups"); - - var localVarPath = "/api/management/Users/{userId}/Groups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetUserGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets user impersonate informations - /// - /// Thrown when fails to make API call - /// User Identifier - /// ImpersonateDTO - public ImpersonateDTO UsersManagementGetUserImpersonateData (int? userId) - { - ApiResponse localVarResponse = UsersManagementGetUserImpersonateDataWithHttpInfo(userId); - return localVarResponse.Data; - } - - /// - /// This call gets user impersonate informations - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of ImpersonateDTO - public ApiResponse< ImpersonateDTO > UsersManagementGetUserImpersonateDataWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetUserImpersonateData"); - - var localVarPath = "/api/management/Users/{userId}/Impersonate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetUserImpersonateData", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ImpersonateDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ImpersonateDTO))); - } - - /// - /// This call gets user impersonate informations - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ImpersonateDTO - public async System.Threading.Tasks.Task UsersManagementGetUserImpersonateDataAsync (int? userId) - { - ApiResponse localVarResponse = await UsersManagementGetUserImpersonateDataAsyncWithHttpInfo(userId); - return localVarResponse.Data; - - } - - /// - /// This call gets user impersonate informations - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse (ImpersonateDTO) - public async System.Threading.Tasks.Task> UsersManagementGetUserImpersonateDataAsyncWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetUserImpersonateData"); - - var localVarPath = "/api/management/Users/{userId}/Impersonate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetUserImpersonateData", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ImpersonateDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ImpersonateDTO))); - } - - /// - /// This call gets specific mail account identified by id - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// MailAccountDTO - public MailAccountDTO UsersManagementGetUserMailAccount (int? userId, int? mailAccountId) - { - ApiResponse localVarResponse = UsersManagementGetUserMailAccountWithHttpInfo(userId, mailAccountId); - return localVarResponse.Data; - } - - /// - /// This call gets specific mail account identified by id - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// ApiResponse of MailAccountDTO - public ApiResponse< MailAccountDTO > UsersManagementGetUserMailAccountWithHttpInfo (int? userId, int? mailAccountId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetUserMailAccount"); - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling UsersManagementApi->UsersManagementGetUserMailAccount"); - - var localVarPath = "/api/management/Users/{userId}/MailAccounts/{mailAccountId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetUserMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailAccountDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailAccountDTO))); - } - - /// - /// This call gets specific mail account identified by id - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// Task of MailAccountDTO - public async System.Threading.Tasks.Task UsersManagementGetUserMailAccountAsync (int? userId, int? mailAccountId) - { - ApiResponse localVarResponse = await UsersManagementGetUserMailAccountAsyncWithHttpInfo(userId, mailAccountId); - return localVarResponse.Data; - - } - - /// - /// This call gets specific mail account identified by id - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// Task of ApiResponse (MailAccountDTO) - public async System.Threading.Tasks.Task> UsersManagementGetUserMailAccountAsyncWithHttpInfo (int? userId, int? mailAccountId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetUserMailAccount"); - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling UsersManagementApi->UsersManagementGetUserMailAccount"); - - var localVarPath = "/api/management/Users/{userId}/MailAccounts/{mailAccountId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetUserMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailAccountDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailAccountDTO))); - } - - /// - /// This call gets mail accounts for specific user - /// - /// Thrown when fails to make API call - /// User Identifier - /// List<MailAccountDTO> - public List UsersManagementGetUserMailAccounts (int? userId) - { - ApiResponse> localVarResponse = UsersManagementGetUserMailAccountsWithHttpInfo(userId); - return localVarResponse.Data; - } - - /// - /// This call gets mail accounts for specific user - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of List<MailAccountDTO> - public ApiResponse< List > UsersManagementGetUserMailAccountsWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetUserMailAccounts"); - - var localVarPath = "/api/management/Users/{userId}/MailAccounts"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetUserMailAccounts", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets mail accounts for specific user - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of List<MailAccountDTO> - public async System.Threading.Tasks.Task> UsersManagementGetUserMailAccountsAsync (int? userId) - { - ApiResponse> localVarResponse = await UsersManagementGetUserMailAccountsAsyncWithHttpInfo(userId); - return localVarResponse.Data; - - } - - /// - /// This call gets mail accounts for specific user - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse (List<MailAccountDTO>) - public async System.Threading.Tasks.Task>> UsersManagementGetUserMailAccountsAsyncWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetUserMailAccounts"); - - var localVarPath = "/api/management/Users/{userId}/MailAccounts"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetUserMailAccounts", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets mail configuration options - /// - /// Thrown when fails to make API call - /// User Identifier - /// MailAccountSettingsDTO - public MailAccountSettingsDTO UsersManagementGetUserMailSettings (int? userId) - { - ApiResponse localVarResponse = UsersManagementGetUserMailSettingsWithHttpInfo(userId); - return localVarResponse.Data; - } - - /// - /// This call gets mail configuration options - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of MailAccountSettingsDTO - public ApiResponse< MailAccountSettingsDTO > UsersManagementGetUserMailSettingsWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetUserMailSettings"); - - var localVarPath = "/api/management/Users/{userId}/MailSettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetUserMailSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailAccountSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailAccountSettingsDTO))); - } - - /// - /// This call gets mail configuration options - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of MailAccountSettingsDTO - public async System.Threading.Tasks.Task UsersManagementGetUserMailSettingsAsync (int? userId) - { - ApiResponse localVarResponse = await UsersManagementGetUserMailSettingsAsyncWithHttpInfo(userId); - return localVarResponse.Data; - - } - - /// - /// This call gets mail configuration options - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse (MailAccountSettingsDTO) - public async System.Threading.Tasks.Task> UsersManagementGetUserMailSettingsAsyncWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetUserMailSettings"); - - var localVarPath = "/api/management/Users/{userId}/MailSettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetUserMailSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailAccountSettingsDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailAccountSettingsDTO))); - } - - /// - /// This call gets user Sign image - /// - /// Thrown when fails to make API call - /// User Identifier - /// System.IO.Stream - public System.IO.Stream UsersManagementGetUserSignImage (int? userId) - { - ApiResponse localVarResponse = UsersManagementGetUserSignImageWithHttpInfo(userId); - return localVarResponse.Data; - } - - /// - /// This call gets user Sign image - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of System.IO.Stream - public ApiResponse< System.IO.Stream > UsersManagementGetUserSignImageWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetUserSignImage"); - - var localVarPath = "/api/management/Users/{userId}/SignImage"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetUserSignImage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call gets user Sign image - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of System.IO.Stream - public async System.Threading.Tasks.Task UsersManagementGetUserSignImageAsync (int? userId) - { - ApiResponse localVarResponse = await UsersManagementGetUserSignImageAsyncWithHttpInfo(userId); - return localVarResponse.Data; - - } - - /// - /// This call gets user Sign image - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> UsersManagementGetUserSignImageAsyncWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetUserSignImage"); - - var localVarPath = "/api/management/Users/{userId}/SignImage"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/octet-stream" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetUserSignImage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (System.IO.Stream) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(System.IO.Stream))); - } - - /// - /// This call gets all states enabled for the user - /// - /// Thrown when fails to make API call - /// User Identifier - /// List<UserSecurityStateDTO> - public List UsersManagementGetUserState (int? userId) - { - ApiResponse> localVarResponse = UsersManagementGetUserStateWithHttpInfo(userId); - return localVarResponse.Data; - } - - /// - /// This call gets all states enabled for the user - /// - /// Thrown when fails to make API call - /// User Identifier - /// ApiResponse of List<UserSecurityStateDTO> - public ApiResponse< List > UsersManagementGetUserStateWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetUserState"); - - var localVarPath = "/api/management/Users/{userId}/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetUserState", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call gets all states enabled for the user - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of List<UserSecurityStateDTO> - public async System.Threading.Tasks.Task> UsersManagementGetUserStateAsync (int? userId) - { - ApiResponse> localVarResponse = await UsersManagementGetUserStateAsyncWithHttpInfo(userId); - return localVarResponse.Data; - - } - - /// - /// This call gets all states enabled for the user - /// - /// Thrown when fails to make API call - /// User Identifier - /// Task of ApiResponse (List<UserSecurityStateDTO>) - public async System.Threading.Tasks.Task>> UsersManagementGetUserStateAsyncWithHttpInfo (int? userId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementGetUserState"); - - var localVarPath = "/api/management/Users/{userId}/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementGetUserState", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call inserts a new user, group or service - /// - /// Thrown when fails to make API call - /// User information to insert - /// UserCompleteDTO - public UserCompleteDTO UsersManagementInsert (UserInsertDTO userInsert) - { - ApiResponse localVarResponse = UsersManagementInsertWithHttpInfo(userInsert); - return localVarResponse.Data; - } - - /// - /// This call inserts a new user, group or service - /// - /// Thrown when fails to make API call - /// User information to insert - /// ApiResponse of UserCompleteDTO - public ApiResponse< UserCompleteDTO > UsersManagementInsertWithHttpInfo (UserInsertDTO userInsert) - { - // verify the required parameter 'userInsert' is set - if (userInsert == null) - throw new ApiException(400, "Missing required parameter 'userInsert' when calling UsersManagementApi->UsersManagementInsert"); - - var localVarPath = "/api/management/Users"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userInsert != null && userInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userInsert); // http body (model) parameter - } - else - { - localVarPostBody = userInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserCompleteDTO))); - } - - /// - /// This call inserts a new user, group or service - /// - /// Thrown when fails to make API call - /// User information to insert - /// Task of UserCompleteDTO - public async System.Threading.Tasks.Task UsersManagementInsertAsync (UserInsertDTO userInsert) - { - ApiResponse localVarResponse = await UsersManagementInsertAsyncWithHttpInfo(userInsert); - return localVarResponse.Data; - - } - - /// - /// This call inserts a new user, group or service - /// - /// Thrown when fails to make API call - /// User information to insert - /// Task of ApiResponse (UserCompleteDTO) - public async System.Threading.Tasks.Task> UsersManagementInsertAsyncWithHttpInfo (UserInsertDTO userInsert) - { - // verify the required parameter 'userInsert' is set - if (userInsert == null) - throw new ApiException(400, "Missing required parameter 'userInsert' when calling UsersManagementApi->UsersManagementInsert"); - - var localVarPath = "/api/management/Users"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userInsert != null && userInsert.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userInsert); // http body (model) parameter - } - else - { - localVarPostBody = userInsert; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementInsert", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserCompleteDTO))); - } - - /// - /// This call inserts user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// MailAccountDTO - public MailAccountDTO UsersManagementInsertUserMailAccount (int? userId, MailAccountDTO mailaccount = null) - { - ApiResponse localVarResponse = UsersManagementInsertUserMailAccountWithHttpInfo(userId, mailaccount); - return localVarResponse.Data; - } - - /// - /// This call inserts user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// ApiResponse of MailAccountDTO - public ApiResponse< MailAccountDTO > UsersManagementInsertUserMailAccountWithHttpInfo (int? userId, MailAccountDTO mailaccount = null) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementInsertUserMailAccount"); - - var localVarPath = "/api/management/Users/{userId}/MailAccounts"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (mailaccount != null && mailaccount.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailaccount); // http body (model) parameter - } - else - { - localVarPostBody = mailaccount; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementInsertUserMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailAccountDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailAccountDTO))); - } - - /// - /// This call inserts user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// Task of MailAccountDTO - public async System.Threading.Tasks.Task UsersManagementInsertUserMailAccountAsync (int? userId, MailAccountDTO mailaccount = null) - { - ApiResponse localVarResponse = await UsersManagementInsertUserMailAccountAsyncWithHttpInfo(userId, mailaccount); - return localVarResponse.Data; - - } - - /// - /// This call inserts user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// Task of ApiResponse (MailAccountDTO) - public async System.Threading.Tasks.Task> UsersManagementInsertUserMailAccountAsyncWithHttpInfo (int? userId, MailAccountDTO mailaccount = null) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementInsertUserMailAccount"); - - var localVarPath = "/api/management/Users/{userId}/MailAccounts"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (mailaccount != null && mailaccount.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailaccount); // http body (model) parameter - } - else - { - localVarPostBody = mailaccount; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementInsertUserMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailAccountDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailAccountDTO))); - } - - /// - /// This call allows to import multiple users - /// - /// Thrown when fails to make API call - /// Request - /// UsersMassiveImportResponseDTO - public UsersMassiveImportResponseDTO UsersManagementMassiveImportQueue (UsersMassiveImportRequestDTO request) - { - ApiResponse localVarResponse = UsersManagementMassiveImportQueueWithHttpInfo(request); - return localVarResponse.Data; - } - - /// - /// This call allows to import multiple users - /// - /// Thrown when fails to make API call - /// Request - /// ApiResponse of UsersMassiveImportResponseDTO - public ApiResponse< UsersMassiveImportResponseDTO > UsersManagementMassiveImportQueueWithHttpInfo (UsersMassiveImportRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling UsersManagementApi->UsersManagementMassiveImportQueue"); - - var localVarPath = "/api/management/Users/MassiveImport"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementMassiveImportQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UsersMassiveImportResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UsersMassiveImportResponseDTO))); - } - - /// - /// This call allows to import multiple users - /// - /// Thrown when fails to make API call - /// Request - /// Task of UsersMassiveImportResponseDTO - public async System.Threading.Tasks.Task UsersManagementMassiveImportQueueAsync (UsersMassiveImportRequestDTO request) - { - ApiResponse localVarResponse = await UsersManagementMassiveImportQueueAsyncWithHttpInfo(request); - return localVarResponse.Data; - - } - - /// - /// This call allows to import multiple users - /// - /// Thrown when fails to make API call - /// Request - /// Task of ApiResponse (UsersMassiveImportResponseDTO) - public async System.Threading.Tasks.Task> UsersManagementMassiveImportQueueAsyncWithHttpInfo (UsersMassiveImportRequestDTO request) - { - // verify the required parameter 'request' is set - if (request == null) - throw new ApiException(400, "Missing required parameter 'request' when calling UsersManagementApi->UsersManagementMassiveImportQueue"); - - var localVarPath = "/api/management/Users/MassiveImport"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (request != null && request.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter - } - else - { - localVarPostBody = request; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementMassiveImportQueue", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UsersMassiveImportResponseDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UsersMassiveImportResponseDTO))); - } - - /// - /// This call restore deleted user or group and updates its informations - /// - /// Thrown when fails to make API call - /// User informations to update - /// UserCompleteDTO - public UserCompleteDTO UsersManagementRestore (UserInsertDTO userUpdate) - { - ApiResponse localVarResponse = UsersManagementRestoreWithHttpInfo(userUpdate); - return localVarResponse.Data; - } - - /// - /// This call restore deleted user or group and updates its informations - /// - /// Thrown when fails to make API call - /// User informations to update - /// ApiResponse of UserCompleteDTO - public ApiResponse< UserCompleteDTO > UsersManagementRestoreWithHttpInfo (UserInsertDTO userUpdate) - { - // verify the required parameter 'userUpdate' is set - if (userUpdate == null) - throw new ApiException(400, "Missing required parameter 'userUpdate' when calling UsersManagementApi->UsersManagementRestore"); - - var localVarPath = "/api/management/Users/Restore"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userUpdate != null && userUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userUpdate); // http body (model) parameter - } - else - { - localVarPostBody = userUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementRestore", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserCompleteDTO))); - } - - /// - /// This call restore deleted user or group and updates its informations - /// - /// Thrown when fails to make API call - /// User informations to update - /// Task of UserCompleteDTO - public async System.Threading.Tasks.Task UsersManagementRestoreAsync (UserInsertDTO userUpdate) - { - ApiResponse localVarResponse = await UsersManagementRestoreAsyncWithHttpInfo(userUpdate); - return localVarResponse.Data; - - } - - /// - /// This call restore deleted user or group and updates its informations - /// - /// Thrown when fails to make API call - /// User informations to update - /// Task of ApiResponse (UserCompleteDTO) - public async System.Threading.Tasks.Task> UsersManagementRestoreAsyncWithHttpInfo (UserInsertDTO userUpdate) - { - // verify the required parameter 'userUpdate' is set - if (userUpdate == null) - throw new ApiException(400, "Missing required parameter 'userUpdate' when calling UsersManagementApi->UsersManagementRestore"); - - var localVarPath = "/api/management/Users/Restore"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userUpdate != null && userUpdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userUpdate); // http body (model) parameter - } - else - { - localVarPostBody = userUpdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementRestore", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserCompleteDTO))); - } - - /// - /// This call updates user option for automatic insert in the address book in profilation - /// - /// Thrown when fails to make API call - /// User identifier - /// Boolen which is true to enable the option - /// - public void UsersManagementSetAddressBookProfile (int? userId, bool? enable) - { - UsersManagementSetAddressBookProfileWithHttpInfo(userId, enable); - } - - /// - /// This call updates user option for automatic insert in the address book in profilation - /// - /// Thrown when fails to make API call - /// User identifier - /// Boolen which is true to enable the option - /// ApiResponse of Object(void) - public ApiResponse UsersManagementSetAddressBookProfileWithHttpInfo (int? userId, bool? enable) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetAddressBookProfile"); - // verify the required parameter 'enable' is set - if (enable == null) - throw new ApiException(400, "Missing required parameter 'enable' when calling UsersManagementApi->UsersManagementSetAddressBookProfile"); - - var localVarPath = "/api/management/Users/{userId}/Options/SetAddressBookProfile/{enable}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (enable != null) localVarPathParams.Add("enable", this.Configuration.ApiClient.ParameterToString(enable)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetAddressBookProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates user option for automatic insert in the address book in profilation - /// - /// Thrown when fails to make API call - /// User identifier - /// Boolen which is true to enable the option - /// Task of void - public async System.Threading.Tasks.Task UsersManagementSetAddressBookProfileAsync (int? userId, bool? enable) - { - await UsersManagementSetAddressBookProfileAsyncWithHttpInfo(userId, enable); - - } - - /// - /// This call updates user option for automatic insert in the address book in profilation - /// - /// Thrown when fails to make API call - /// User identifier - /// Boolen which is true to enable the option - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersManagementSetAddressBookProfileAsyncWithHttpInfo (int? userId, bool? enable) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetAddressBookProfile"); - // verify the required parameter 'enable' is set - if (enable == null) - throw new ApiException(400, "Missing required parameter 'enable' when calling UsersManagementApi->UsersManagementSetAddressBookProfile"); - - var localVarPath = "/api/management/Users/{userId}/Options/SetAddressBookProfile/{enable}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (enable != null) localVarPathParams.Add("enable", this.Configuration.ApiClient.ParameterToString(enable)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetAddressBookProfile", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates default user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// - public void UsersManagementSetDefaultUserMailAccount (int? userId, int? mailAccountId) - { - UsersManagementSetDefaultUserMailAccountWithHttpInfo(userId, mailAccountId); - } - - /// - /// This call updates default user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// ApiResponse of Object(void) - public ApiResponse UsersManagementSetDefaultUserMailAccountWithHttpInfo (int? userId, int? mailAccountId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetDefaultUserMailAccount"); - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling UsersManagementApi->UsersManagementSetDefaultUserMailAccount"); - - var localVarPath = "/api/management/Users/{userId}/MailAccounts/{mailAccountId}/Default"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetDefaultUserMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates default user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// Task of void - public async System.Threading.Tasks.Task UsersManagementSetDefaultUserMailAccountAsync (int? userId, int? mailAccountId) - { - await UsersManagementSetDefaultUserMailAccountAsyncWithHttpInfo(userId, mailAccountId); - - } - - /// - /// This call updates default user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail account Identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersManagementSetDefaultUserMailAccountAsyncWithHttpInfo (int? userId, int? mailAccountId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetDefaultUserMailAccount"); - // verify the required parameter 'mailAccountId' is set - if (mailAccountId == null) - throw new ApiException(400, "Missing required parameter 'mailAccountId' when calling UsersManagementApi->UsersManagementSetDefaultUserMailAccount"); - - var localVarPath = "/api/management/Users/{userId}/MailAccounts/{mailAccountId}/Default"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (mailAccountId != null) localVarPathParams.Add("mailAccountId", this.Configuration.ApiClient.ParameterToString(mailAccountId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetDefaultUserMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates user option for max size of output mail - /// - /// Thrown when fails to make API call - /// User identifier - /// Mail max size (Kbyte) - /// - public void UsersManagementSetMailOutMaxSize (int? userId, int? maxSize) - { - UsersManagementSetMailOutMaxSizeWithHttpInfo(userId, maxSize); - } - - /// - /// This call updates user option for max size of output mail - /// - /// Thrown when fails to make API call - /// User identifier - /// Mail max size (Kbyte) - /// ApiResponse of Object(void) - public ApiResponse UsersManagementSetMailOutMaxSizeWithHttpInfo (int? userId, int? maxSize) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetMailOutMaxSize"); - // verify the required parameter 'maxSize' is set - if (maxSize == null) - throw new ApiException(400, "Missing required parameter 'maxSize' when calling UsersManagementApi->UsersManagementSetMailOutMaxSize"); - - var localVarPath = "/api/management/Users/{userId}/Options/SetMailOutMaxSize/{maxSize}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (maxSize != null) localVarPathParams.Add("maxSize", this.Configuration.ApiClient.ParameterToString(maxSize)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetMailOutMaxSize", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates user option for max size of output mail - /// - /// Thrown when fails to make API call - /// User identifier - /// Mail max size (Kbyte) - /// Task of void - public async System.Threading.Tasks.Task UsersManagementSetMailOutMaxSizeAsync (int? userId, int? maxSize) - { - await UsersManagementSetMailOutMaxSizeAsyncWithHttpInfo(userId, maxSize); - - } - - /// - /// This call updates user option for max size of output mail - /// - /// Thrown when fails to make API call - /// User identifier - /// Mail max size (Kbyte) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersManagementSetMailOutMaxSizeAsyncWithHttpInfo (int? userId, int? maxSize) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetMailOutMaxSize"); - // verify the required parameter 'maxSize' is set - if (maxSize == null) - throw new ApiException(400, "Missing required parameter 'maxSize' when calling UsersManagementApi->UsersManagementSetMailOutMaxSize"); - - var localVarPath = "/api/management/Users/{userId}/Options/SetMailOutMaxSize/{maxSize}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (maxSize != null) localVarPathParams.Add("maxSize", this.Configuration.ApiClient.ParameterToString(maxSize)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetMailOutMaxSize", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates user password advanced criteria - /// - /// Thrown when fails to make API call - /// Advanced criteria - /// - public void UsersManagementSetPasswordAdvancedCriteria (UserPasswordAdvancedCriteriaDTO criteria) - { - UsersManagementSetPasswordAdvancedCriteriaWithHttpInfo(criteria); - } - - /// - /// This call updates user password advanced criteria - /// - /// Thrown when fails to make API call - /// Advanced criteria - /// ApiResponse of Object(void) - public ApiResponse UsersManagementSetPasswordAdvancedCriteriaWithHttpInfo (UserPasswordAdvancedCriteriaDTO criteria) - { - // verify the required parameter 'criteria' is set - if (criteria == null) - throw new ApiException(400, "Missing required parameter 'criteria' when calling UsersManagementApi->UsersManagementSetPasswordAdvancedCriteria"); - - var localVarPath = "/api/management/Users/PasswordCriteria/Advanced"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetPasswordAdvancedCriteria", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates user password advanced criteria - /// - /// Thrown when fails to make API call - /// Advanced criteria - /// Task of void - public async System.Threading.Tasks.Task UsersManagementSetPasswordAdvancedCriteriaAsync (UserPasswordAdvancedCriteriaDTO criteria) - { - await UsersManagementSetPasswordAdvancedCriteriaAsyncWithHttpInfo(criteria); - - } - - /// - /// This call updates user password advanced criteria - /// - /// Thrown when fails to make API call - /// Advanced criteria - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersManagementSetPasswordAdvancedCriteriaAsyncWithHttpInfo (UserPasswordAdvancedCriteriaDTO criteria) - { - // verify the required parameter 'criteria' is set - if (criteria == null) - throw new ApiException(400, "Missing required parameter 'criteria' when calling UsersManagementApi->UsersManagementSetPasswordAdvancedCriteria"); - - var localVarPath = "/api/management/Users/PasswordCriteria/Advanced"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetPasswordAdvancedCriteria", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates user password manage criteria - /// - /// Thrown when fails to make API call - /// Manage criteria - /// - public void UsersManagementSetPasswordManageCriteria (UserPasswordManageCriteriaDTO criteria) - { - UsersManagementSetPasswordManageCriteriaWithHttpInfo(criteria); - } - - /// - /// This call updates user password manage criteria - /// - /// Thrown when fails to make API call - /// Manage criteria - /// ApiResponse of Object(void) - public ApiResponse UsersManagementSetPasswordManageCriteriaWithHttpInfo (UserPasswordManageCriteriaDTO criteria) - { - // verify the required parameter 'criteria' is set - if (criteria == null) - throw new ApiException(400, "Missing required parameter 'criteria' when calling UsersManagementApi->UsersManagementSetPasswordManageCriteria"); - - var localVarPath = "/api/management/Users/PasswordCriteria/Manage"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetPasswordManageCriteria", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates user password manage criteria - /// - /// Thrown when fails to make API call - /// Manage criteria - /// Task of void - public async System.Threading.Tasks.Task UsersManagementSetPasswordManageCriteriaAsync (UserPasswordManageCriteriaDTO criteria) - { - await UsersManagementSetPasswordManageCriteriaAsyncWithHttpInfo(criteria); - - } - - /// - /// This call updates user password manage criteria - /// - /// Thrown when fails to make API call - /// Manage criteria - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersManagementSetPasswordManageCriteriaAsyncWithHttpInfo (UserPasswordManageCriteriaDTO criteria) - { - // verify the required parameter 'criteria' is set - if (criteria == null) - throw new ApiException(400, "Missing required parameter 'criteria' when calling UsersManagementApi->UsersManagementSetPasswordManageCriteria"); - - var localVarPath = "/api/management/Users/PasswordCriteria/Manage"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetPasswordManageCriteria", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates user password recovery criteria - /// - /// Thrown when fails to make API call - /// Recovery criteria - /// - public void UsersManagementSetPasswordRecoveryCriteria (UserPasswordRecoveryCriteriaDTO criteria) - { - UsersManagementSetPasswordRecoveryCriteriaWithHttpInfo(criteria); - } - - /// - /// This call updates user password recovery criteria - /// - /// Thrown when fails to make API call - /// Recovery criteria - /// ApiResponse of Object(void) - public ApiResponse UsersManagementSetPasswordRecoveryCriteriaWithHttpInfo (UserPasswordRecoveryCriteriaDTO criteria) - { - // verify the required parameter 'criteria' is set - if (criteria == null) - throw new ApiException(400, "Missing required parameter 'criteria' when calling UsersManagementApi->UsersManagementSetPasswordRecoveryCriteria"); - - var localVarPath = "/api/management/Users/PasswordCriteria/Recovery"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetPasswordRecoveryCriteria", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates user password recovery criteria - /// - /// Thrown when fails to make API call - /// Recovery criteria - /// Task of void - public async System.Threading.Tasks.Task UsersManagementSetPasswordRecoveryCriteriaAsync (UserPasswordRecoveryCriteriaDTO criteria) - { - await UsersManagementSetPasswordRecoveryCriteriaAsyncWithHttpInfo(criteria); - - } - - /// - /// This call updates user password recovery criteria - /// - /// Thrown when fails to make API call - /// Recovery criteria - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersManagementSetPasswordRecoveryCriteriaAsyncWithHttpInfo (UserPasswordRecoveryCriteriaDTO criteria) - { - // verify the required parameter 'criteria' is set - if (criteria == null) - throw new ApiException(400, "Missing required parameter 'criteria' when calling UsersManagementApi->UsersManagementSetPasswordRecoveryCriteria"); - - var localVarPath = "/api/management/Users/PasswordCriteria/Recovery"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (criteria != null && criteria.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(criteria); // http body (model) parameter - } - else - { - localVarPostBody = criteria; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetPasswordRecoveryCriteria", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates user groups - /// - /// Thrown when fails to make API call - /// User Identifier - /// Group list - /// - public void UsersManagementSetUserGroups (int? userId, List groups) - { - UsersManagementSetUserGroupsWithHttpInfo(userId, groups); - } - - /// - /// This call updates user groups - /// - /// Thrown when fails to make API call - /// User Identifier - /// Group list - /// ApiResponse of Object(void) - public ApiResponse UsersManagementSetUserGroupsWithHttpInfo (int? userId, List groups) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetUserGroups"); - // verify the required parameter 'groups' is set - if (groups == null) - throw new ApiException(400, "Missing required parameter 'groups' when calling UsersManagementApi->UsersManagementSetUserGroups"); - - var localVarPath = "/api/management/Users/{userId}/Groups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (groups != null && groups.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(groups); // http body (model) parameter - } - else - { - localVarPostBody = groups; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetUserGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates user groups - /// - /// Thrown when fails to make API call - /// User Identifier - /// Group list - /// Task of void - public async System.Threading.Tasks.Task UsersManagementSetUserGroupsAsync (int? userId, List groups) - { - await UsersManagementSetUserGroupsAsyncWithHttpInfo(userId, groups); - - } - - /// - /// This call updates user groups - /// - /// Thrown when fails to make API call - /// User Identifier - /// Group list - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersManagementSetUserGroupsAsyncWithHttpInfo (int? userId, List groups) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetUserGroups"); - // verify the required parameter 'groups' is set - if (groups == null) - throw new ApiException(400, "Missing required parameter 'groups' when calling UsersManagementApi->UsersManagementSetUserGroups"); - - var localVarPath = "/api/management/Users/{userId}/Groups"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (groups != null && groups.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(groups); // http body (model) parameter - } - else - { - localVarPostBody = groups; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetUserGroups", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates user impersonate informations - /// - /// Thrown when fails to make API call - /// User Identifier - /// Impersonate data - /// - public void UsersManagementSetUserImpersonateData (int? userId, ImpersonateDTO impersonate) - { - UsersManagementSetUserImpersonateDataWithHttpInfo(userId, impersonate); - } - - /// - /// This call updates user impersonate informations - /// - /// Thrown when fails to make API call - /// User Identifier - /// Impersonate data - /// ApiResponse of Object(void) - public ApiResponse UsersManagementSetUserImpersonateDataWithHttpInfo (int? userId, ImpersonateDTO impersonate) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetUserImpersonateData"); - // verify the required parameter 'impersonate' is set - if (impersonate == null) - throw new ApiException(400, "Missing required parameter 'impersonate' when calling UsersManagementApi->UsersManagementSetUserImpersonateData"); - - var localVarPath = "/api/management/Users/{userId}/Impersonate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (impersonate != null && impersonate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(impersonate); // http body (model) parameter - } - else - { - localVarPostBody = impersonate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetUserImpersonateData", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates user impersonate informations - /// - /// Thrown when fails to make API call - /// User Identifier - /// Impersonate data - /// Task of void - public async System.Threading.Tasks.Task UsersManagementSetUserImpersonateDataAsync (int? userId, ImpersonateDTO impersonate) - { - await UsersManagementSetUserImpersonateDataAsyncWithHttpInfo(userId, impersonate); - - } - - /// - /// This call updates user impersonate informations - /// - /// Thrown when fails to make API call - /// User Identifier - /// Impersonate data - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersManagementSetUserImpersonateDataAsyncWithHttpInfo (int? userId, ImpersonateDTO impersonate) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetUserImpersonateData"); - // verify the required parameter 'impersonate' is set - if (impersonate == null) - throw new ApiException(400, "Missing required parameter 'impersonate' when calling UsersManagementApi->UsersManagementSetUserImpersonateData"); - - var localVarPath = "/api/management/Users/{userId}/Impersonate"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (impersonate != null && impersonate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(impersonate); // http body (model) parameter - } - else - { - localVarPostBody = impersonate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetUserImpersonateData", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets mail configuration options - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail settings - /// - public void UsersManagementSetUserMailSettings (int? userId, MailAccountSettingsDTO mailSettings) - { - UsersManagementSetUserMailSettingsWithHttpInfo(userId, mailSettings); - } - - /// - /// This call sets mail configuration options - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail settings - /// ApiResponse of Object(void) - public ApiResponse UsersManagementSetUserMailSettingsWithHttpInfo (int? userId, MailAccountSettingsDTO mailSettings) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetUserMailSettings"); - // verify the required parameter 'mailSettings' is set - if (mailSettings == null) - throw new ApiException(400, "Missing required parameter 'mailSettings' when calling UsersManagementApi->UsersManagementSetUserMailSettings"); - - var localVarPath = "/api/management/Users/{userId}/MailSettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (mailSettings != null && mailSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailSettings); // http body (model) parameter - } - else - { - localVarPostBody = mailSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetUserMailSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call sets mail configuration options - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail settings - /// Task of void - public async System.Threading.Tasks.Task UsersManagementSetUserMailSettingsAsync (int? userId, MailAccountSettingsDTO mailSettings) - { - await UsersManagementSetUserMailSettingsAsyncWithHttpInfo(userId, mailSettings); - - } - - /// - /// This call sets mail configuration options - /// - /// Thrown when fails to make API call - /// User Identifier - /// Mail settings - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersManagementSetUserMailSettingsAsyncWithHttpInfo (int? userId, MailAccountSettingsDTO mailSettings) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetUserMailSettings"); - // verify the required parameter 'mailSettings' is set - if (mailSettings == null) - throw new ApiException(400, "Missing required parameter 'mailSettings' when calling UsersManagementApi->UsersManagementSetUserMailSettings"); - - var localVarPath = "/api/management/Users/{userId}/MailSettings"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (mailSettings != null && mailSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailSettings); // http body (model) parameter - } - else - { - localVarPostBody = mailSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetUserMailSettings", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates user sign image - /// - /// Thrown when fails to make API call - /// User Identifier - /// Identifier of the file buffered - /// - public void UsersManagementSetUserSignImage (int? userId, string fileBufferId) - { - UsersManagementSetUserSignImageWithHttpInfo(userId, fileBufferId); - } - - /// - /// This call updates user sign image - /// - /// Thrown when fails to make API call - /// User Identifier - /// Identifier of the file buffered - /// ApiResponse of Object(void) - public ApiResponse UsersManagementSetUserSignImageWithHttpInfo (int? userId, string fileBufferId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetUserSignImage"); - // verify the required parameter 'fileBufferId' is set - if (fileBufferId == null) - throw new ApiException(400, "Missing required parameter 'fileBufferId' when calling UsersManagementApi->UsersManagementSetUserSignImage"); - - var localVarPath = "/api/management/Users/{userId}/SignImage/{fileBufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (fileBufferId != null) localVarPathParams.Add("fileBufferId", this.Configuration.ApiClient.ParameterToString(fileBufferId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetUserSignImage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates user sign image - /// - /// Thrown when fails to make API call - /// User Identifier - /// Identifier of the file buffered - /// Task of void - public async System.Threading.Tasks.Task UsersManagementSetUserSignImageAsync (int? userId, string fileBufferId) - { - await UsersManagementSetUserSignImageAsyncWithHttpInfo(userId, fileBufferId); - - } - - /// - /// This call updates user sign image - /// - /// Thrown when fails to make API call - /// User Identifier - /// Identifier of the file buffered - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersManagementSetUserSignImageAsyncWithHttpInfo (int? userId, string fileBufferId) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetUserSignImage"); - // verify the required parameter 'fileBufferId' is set - if (fileBufferId == null) - throw new ApiException(400, "Missing required parameter 'fileBufferId' when calling UsersManagementApi->UsersManagementSetUserSignImage"); - - var localVarPath = "/api/management/Users/{userId}/SignImage/{fileBufferId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (fileBufferId != null) localVarPathParams.Add("fileBufferId", this.Configuration.ApiClient.ParameterToString(fileBufferId)); // path parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetUserSignImage", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates all states enabled for the user - /// - /// Thrown when fails to make API call - /// User Identifier - /// State list - /// - public void UsersManagementSetUserState (int? userId, List states) - { - UsersManagementSetUserStateWithHttpInfo(userId, states); - } - - /// - /// This call updates all states enabled for the user - /// - /// Thrown when fails to make API call - /// User Identifier - /// State list - /// ApiResponse of Object(void) - public ApiResponse UsersManagementSetUserStateWithHttpInfo (int? userId, List states) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetUserState"); - // verify the required parameter 'states' is set - if (states == null) - throw new ApiException(400, "Missing required parameter 'states' when calling UsersManagementApi->UsersManagementSetUserState"); - - var localVarPath = "/api/management/Users/{userId}/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (states != null && states.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(states); // http body (model) parameter - } - else - { - localVarPostBody = states; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetUserState", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates all states enabled for the user - /// - /// Thrown when fails to make API call - /// User Identifier - /// State list - /// Task of void - public async System.Threading.Tasks.Task UsersManagementSetUserStateAsync (int? userId, List states) - { - await UsersManagementSetUserStateAsyncWithHttpInfo(userId, states); - - } - - /// - /// This call updates all states enabled for the user - /// - /// Thrown when fails to make API call - /// User Identifier - /// State list - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UsersManagementSetUserStateAsyncWithHttpInfo (int? userId, List states) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementSetUserState"); - // verify the required parameter 'states' is set - if (states == null) - throw new ApiException(400, "Missing required parameter 'states' when calling UsersManagementApi->UsersManagementSetUserState"); - - var localVarPath = "/api/management/Users/{userId}/States"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (states != null && states.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(states); // http body (model) parameter - } - else - { - localVarPostBody = states; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementSetUserState", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call updates a given user, group or service - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// UserCompleteDTO - public UserCompleteDTO UsersManagementUpdate (int? id, UserUpdateDTO userupdate = null) - { - ApiResponse localVarResponse = UsersManagementUpdateWithHttpInfo(id, userupdate); - return localVarResponse.Data; - } - - /// - /// This call updates a given user, group or service - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// ApiResponse of UserCompleteDTO - public ApiResponse< UserCompleteDTO > UsersManagementUpdateWithHttpInfo (int? id, UserUpdateDTO userupdate = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersManagementApi->UsersManagementUpdate"); - - var localVarPath = "/api/management/Users/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (userupdate != null && userupdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userupdate); // http body (model) parameter - } - else - { - localVarPostBody = userupdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserCompleteDTO))); - } - - /// - /// This call updates a given user, group or service - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// Task of UserCompleteDTO - public async System.Threading.Tasks.Task UsersManagementUpdateAsync (int? id, UserUpdateDTO userupdate = null) - { - ApiResponse localVarResponse = await UsersManagementUpdateAsyncWithHttpInfo(id, userupdate); - return localVarResponse.Data; - - } - - /// - /// This call updates a given user, group or service - /// - /// Thrown when fails to make API call - /// Identifier - /// (optional) - /// Task of ApiResponse (UserCompleteDTO) - public async System.Threading.Tasks.Task> UsersManagementUpdateAsyncWithHttpInfo (int? id, UserUpdateDTO userupdate = null) - { - // verify the required parameter 'id' is set - if (id == null) - throw new ApiException(400, "Missing required parameter 'id' when calling UsersManagementApi->UsersManagementUpdate"); - - var localVarPath = "/api/management/Users/{id}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter - if (userupdate != null && userupdate.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(userupdate); // http body (model) parameter - } - else - { - localVarPostBody = userupdate; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementUpdate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserCompleteDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserCompleteDTO))); - } - - /// - /// This call updates user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// MailAccountDTO - public MailAccountDTO UsersManagementUpdateUserMailAccount (int? userId, MailAccountDTO mailaccount = null) - { - ApiResponse localVarResponse = UsersManagementUpdateUserMailAccountWithHttpInfo(userId, mailaccount); - return localVarResponse.Data; - } - - /// - /// This call updates user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// ApiResponse of MailAccountDTO - public ApiResponse< MailAccountDTO > UsersManagementUpdateUserMailAccountWithHttpInfo (int? userId, MailAccountDTO mailaccount = null) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementUpdateUserMailAccount"); - - var localVarPath = "/api/management/Users/{userId}/MailAccounts"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (mailaccount != null && mailaccount.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailaccount); // http body (model) parameter - } - else - { - localVarPostBody = mailaccount; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementUpdateUserMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailAccountDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailAccountDTO))); - } - - /// - /// This call updates user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// Task of MailAccountDTO - public async System.Threading.Tasks.Task UsersManagementUpdateUserMailAccountAsync (int? userId, MailAccountDTO mailaccount = null) - { - ApiResponse localVarResponse = await UsersManagementUpdateUserMailAccountAsyncWithHttpInfo(userId, mailaccount); - return localVarResponse.Data; - - } - - /// - /// This call updates user mail account - /// - /// Thrown when fails to make API call - /// User Identifier - /// (optional) - /// Task of ApiResponse (MailAccountDTO) - public async System.Threading.Tasks.Task> UsersManagementUpdateUserMailAccountAsyncWithHttpInfo (int? userId, MailAccountDTO mailaccount = null) - { - // verify the required parameter 'userId' is set - if (userId == null) - throw new ApiException(400, "Missing required parameter 'userId' when calling UsersManagementApi->UsersManagementUpdateUserMailAccount"); - - var localVarPath = "/api/management/Users/{userId}/MailAccounts"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter - if (mailaccount != null && mailaccount.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailaccount); // http body (model) parameter - } - else - { - localVarPostBody = mailaccount; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UsersManagementUpdateUserMailAccount", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (MailAccountDTO) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MailAccountDTO))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/UtilitiesManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/UtilitiesManagementApi.cs deleted file mode 100644 index 69d564f..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/UtilitiesManagementApi.cs +++ /dev/null @@ -1,1893 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IUtilitiesManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call allows to check database connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Database properties - /// bool? - bool? UtilitiesManagementCheckDbConnection (DbPropertiesDTO dbProperties); - - /// - /// This call allows to check database connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Database properties - /// ApiResponse of bool? - ApiResponse UtilitiesManagementCheckDbConnectionWithHttpInfo (DbPropertiesDTO dbProperties); - /// - /// This call allows to check mail connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// bool? - bool? UtilitiesManagementCheckMailConnection (MailServerSettingsDTO mailServerSettings); - - /// - /// This call allows to check mail connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// ApiResponse of bool? - ApiResponse UtilitiesManagementCheckMailConnectionWithHttpInfo (MailServerSettingsDTO mailServerSettings); - /// - /// This call returns all fields for specific context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// List<FieldManagementDTO> - List UtilitiesManagementGetFields (int? fieldManagementMode); - - /// - /// This call returns all fields for specific context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// ApiResponse of List<FieldManagementDTO> - ApiResponse> UtilitiesManagementGetFieldsWithHttpInfo (int? fieldManagementMode); - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// List<FieldManagementDTO> - List UtilitiesManagementGetFields_0 (int? documentTypeId, int? fieldManagementMode); - - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// ApiResponse of List<FieldManagementDTO> - ApiResponse> UtilitiesManagementGetFields_0WithHttpInfo (int? documentTypeId, int? fieldManagementMode); - /// - /// This call returns all fonts supported for pdf options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<string> - List UtilitiesManagementGetOptionsPdfFonts (); - - /// - /// This call returns all fonts supported for pdf options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<string> - ApiResponse> UtilitiesManagementGetOptionsPdfFontsWithHttpInfo (); - /// - /// This call retrieve database parameters list for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<SetPathDatabaseBaseDTO> - List UtilitiesManagementGetSetPathDatabaseInfo (); - - /// - /// This call retrieve database parameters list for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SetPathDatabaseBaseDTO> - ApiResponse> UtilitiesManagementGetSetPathDatabaseInfoWithHttpInfo (); - /// - /// This call retrieve list of filesystem parameters for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<SetPathFilesystemBaseDTO> - List UtilitiesManagementGetSetPathFilesystemInfo (); - - /// - /// This call retrieve list of filesystem parameters for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SetPathFilesystemBaseDTO> - ApiResponse> UtilitiesManagementGetSetPathFilesystemInfoWithHttpInfo (); - /// - /// This call update database parameters for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Database parameters for update - /// - void UtilitiesManagementUpdateSetPathDatabaseInfo (SetPathDatabaseForUpdateDTO databaseParams); - - /// - /// This call update database parameters for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Database parameters for update - /// ApiResponse of Object(void) - ApiResponse UtilitiesManagementUpdateSetPathDatabaseInfoWithHttpInfo (SetPathDatabaseForUpdateDTO databaseParams); - /// - /// This call update filesystem parameters for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filesystem parameters for update - /// - void UtilitiesManagementUpdateSetPathFilesystemInfo (SetPathFilesystemForUpdateDTO filesystemParams); - - /// - /// This call update filesystem parameters for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filesystem parameters for update - /// ApiResponse of Object(void) - ApiResponse UtilitiesManagementUpdateSetPathFilesystemInfoWithHttpInfo (SetPathFilesystemForUpdateDTO filesystemParams); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call allows to check database connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Database properties - /// Task of bool? - System.Threading.Tasks.Task UtilitiesManagementCheckDbConnectionAsync (DbPropertiesDTO dbProperties); - - /// - /// This call allows to check database connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Database properties - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> UtilitiesManagementCheckDbConnectionAsyncWithHttpInfo (DbPropertiesDTO dbProperties); - /// - /// This call allows to check mail connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of bool? - System.Threading.Tasks.Task UtilitiesManagementCheckMailConnectionAsync (MailServerSettingsDTO mailServerSettings); - - /// - /// This call allows to check mail connection - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of ApiResponse (bool?) - System.Threading.Tasks.Task> UtilitiesManagementCheckMailConnectionAsyncWithHttpInfo (MailServerSettingsDTO mailServerSettings); - /// - /// This call returns all fields for specific context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// Task of List<FieldManagementDTO> - System.Threading.Tasks.Task> UtilitiesManagementGetFieldsAsync (int? fieldManagementMode); - - /// - /// This call returns all fields for specific context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// Task of ApiResponse (List<FieldManagementDTO>) - System.Threading.Tasks.Task>> UtilitiesManagementGetFieldsAsyncWithHttpInfo (int? fieldManagementMode); - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// Task of List<FieldManagementDTO> - System.Threading.Tasks.Task> UtilitiesManagementGetFields_0Async (int? documentTypeId, int? fieldManagementMode); - - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// Task of ApiResponse (List<FieldManagementDTO>) - System.Threading.Tasks.Task>> UtilitiesManagementGetFields_0AsyncWithHttpInfo (int? documentTypeId, int? fieldManagementMode); - /// - /// This call returns all fonts supported for pdf options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<string> - System.Threading.Tasks.Task> UtilitiesManagementGetOptionsPdfFontsAsync (); - - /// - /// This call returns all fonts supported for pdf options - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> UtilitiesManagementGetOptionsPdfFontsAsyncWithHttpInfo (); - /// - /// This call retrieve database parameters list for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<SetPathDatabaseBaseDTO> - System.Threading.Tasks.Task> UtilitiesManagementGetSetPathDatabaseInfoAsync (); - - /// - /// This call retrieve database parameters list for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SetPathDatabaseBaseDTO>) - System.Threading.Tasks.Task>> UtilitiesManagementGetSetPathDatabaseInfoAsyncWithHttpInfo (); - /// - /// This call retrieve list of filesystem parameters for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<SetPathFilesystemBaseDTO> - System.Threading.Tasks.Task> UtilitiesManagementGetSetPathFilesystemInfoAsync (); - - /// - /// This call retrieve list of filesystem parameters for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SetPathFilesystemBaseDTO>) - System.Threading.Tasks.Task>> UtilitiesManagementGetSetPathFilesystemInfoAsyncWithHttpInfo (); - /// - /// This call update database parameters for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Database parameters for update - /// Task of void - System.Threading.Tasks.Task UtilitiesManagementUpdateSetPathDatabaseInfoAsync (SetPathDatabaseForUpdateDTO databaseParams); - - /// - /// This call update database parameters for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Database parameters for update - /// Task of ApiResponse - System.Threading.Tasks.Task> UtilitiesManagementUpdateSetPathDatabaseInfoAsyncWithHttpInfo (SetPathDatabaseForUpdateDTO databaseParams); - /// - /// This call update filesystem parameters for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filesystem parameters for update - /// Task of void - System.Threading.Tasks.Task UtilitiesManagementUpdateSetPathFilesystemInfoAsync (SetPathFilesystemForUpdateDTO filesystemParams); - - /// - /// This call update filesystem parameters for files storage - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Filesystem parameters for update - /// Task of ApiResponse - System.Threading.Tasks.Task> UtilitiesManagementUpdateSetPathFilesystemInfoAsyncWithHttpInfo (SetPathFilesystemForUpdateDTO filesystemParams); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class UtilitiesManagementApi : IUtilitiesManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public UtilitiesManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public UtilitiesManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call allows to check database connection - /// - /// Thrown when fails to make API call - /// Database properties - /// bool? - public bool? UtilitiesManagementCheckDbConnection (DbPropertiesDTO dbProperties) - { - ApiResponse localVarResponse = UtilitiesManagementCheckDbConnectionWithHttpInfo(dbProperties); - return localVarResponse.Data; - } - - /// - /// This call allows to check database connection - /// - /// Thrown when fails to make API call - /// Database properties - /// ApiResponse of bool? - public ApiResponse< bool? > UtilitiesManagementCheckDbConnectionWithHttpInfo (DbPropertiesDTO dbProperties) - { - // verify the required parameter 'dbProperties' is set - if (dbProperties == null) - throw new ApiException(400, "Missing required parameter 'dbProperties' when calling UtilitiesManagementApi->UtilitiesManagementCheckDbConnection"); - - var localVarPath = "/api/management/Utilities/CheckDbConnection"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dbProperties != null && dbProperties.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(dbProperties); // http body (model) parameter - } - else - { - localVarPostBody = dbProperties; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementCheckDbConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call allows to check database connection - /// - /// Thrown when fails to make API call - /// Database properties - /// Task of bool? - public async System.Threading.Tasks.Task UtilitiesManagementCheckDbConnectionAsync (DbPropertiesDTO dbProperties) - { - ApiResponse localVarResponse = await UtilitiesManagementCheckDbConnectionAsyncWithHttpInfo(dbProperties); - return localVarResponse.Data; - - } - - /// - /// This call allows to check database connection - /// - /// Thrown when fails to make API call - /// Database properties - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> UtilitiesManagementCheckDbConnectionAsyncWithHttpInfo (DbPropertiesDTO dbProperties) - { - // verify the required parameter 'dbProperties' is set - if (dbProperties == null) - throw new ApiException(400, "Missing required parameter 'dbProperties' when calling UtilitiesManagementApi->UtilitiesManagementCheckDbConnection"); - - var localVarPath = "/api/management/Utilities/CheckDbConnection"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (dbProperties != null && dbProperties.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(dbProperties); // http body (model) parameter - } - else - { - localVarPostBody = dbProperties; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementCheckDbConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call allows to check mail connection - /// - /// Thrown when fails to make API call - /// Mail server settings - /// bool? - public bool? UtilitiesManagementCheckMailConnection (MailServerSettingsDTO mailServerSettings) - { - ApiResponse localVarResponse = UtilitiesManagementCheckMailConnectionWithHttpInfo(mailServerSettings); - return localVarResponse.Data; - } - - /// - /// This call allows to check mail connection - /// - /// Thrown when fails to make API call - /// Mail server settings - /// ApiResponse of bool? - public ApiResponse< bool? > UtilitiesManagementCheckMailConnectionWithHttpInfo (MailServerSettingsDTO mailServerSettings) - { - // verify the required parameter 'mailServerSettings' is set - if (mailServerSettings == null) - throw new ApiException(400, "Missing required parameter 'mailServerSettings' when calling UtilitiesManagementApi->UtilitiesManagementCheckMailConnection"); - - var localVarPath = "/api/management/Utilities/CheckMailConnection"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailServerSettings != null && mailServerSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailServerSettings); // http body (model) parameter - } - else - { - localVarPostBody = mailServerSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementCheckMailConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call allows to check mail connection - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of bool? - public async System.Threading.Tasks.Task UtilitiesManagementCheckMailConnectionAsync (MailServerSettingsDTO mailServerSettings) - { - ApiResponse localVarResponse = await UtilitiesManagementCheckMailConnectionAsyncWithHttpInfo(mailServerSettings); - return localVarResponse.Data; - - } - - /// - /// This call allows to check mail connection - /// - /// Thrown when fails to make API call - /// Mail server settings - /// Task of ApiResponse (bool?) - public async System.Threading.Tasks.Task> UtilitiesManagementCheckMailConnectionAsyncWithHttpInfo (MailServerSettingsDTO mailServerSettings) - { - // verify the required parameter 'mailServerSettings' is set - if (mailServerSettings == null) - throw new ApiException(400, "Missing required parameter 'mailServerSettings' when calling UtilitiesManagementApi->UtilitiesManagementCheckMailConnection"); - - var localVarPath = "/api/management/Utilities/CheckMailConnection"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (mailServerSettings != null && mailServerSettings.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(mailServerSettings); // http body (model) parameter - } - else - { - localVarPostBody = mailServerSettings; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementCheckMailConnection", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); - } - - /// - /// This call returns all fields for specific context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// List<FieldManagementDTO> - public List UtilitiesManagementGetFields (int? fieldManagementMode) - { - ApiResponse> localVarResponse = UtilitiesManagementGetFieldsWithHttpInfo(fieldManagementMode); - return localVarResponse.Data; - } - - /// - /// This call returns all fields for specific context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// ApiResponse of List<FieldManagementDTO> - public ApiResponse< List > UtilitiesManagementGetFieldsWithHttpInfo (int? fieldManagementMode) - { - // verify the required parameter 'fieldManagementMode' is set - if (fieldManagementMode == null) - throw new ApiException(400, "Missing required parameter 'fieldManagementMode' when calling UtilitiesManagementApi->UtilitiesManagementGetFields"); - - var localVarPath = "/api/management/Utilities/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldManagementMode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "fieldManagementMode", fieldManagementMode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementGetFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all fields for specific context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// Task of List<FieldManagementDTO> - public async System.Threading.Tasks.Task> UtilitiesManagementGetFieldsAsync (int? fieldManagementMode) - { - ApiResponse> localVarResponse = await UtilitiesManagementGetFieldsAsyncWithHttpInfo(fieldManagementMode); - return localVarResponse.Data; - - } - - /// - /// This call returns all fields for specific context - /// - /// Thrown when fails to make API call - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// Task of ApiResponse (List<FieldManagementDTO>) - public async System.Threading.Tasks.Task>> UtilitiesManagementGetFieldsAsyncWithHttpInfo (int? fieldManagementMode) - { - // verify the required parameter 'fieldManagementMode' is set - if (fieldManagementMode == null) - throw new ApiException(400, "Missing required parameter 'fieldManagementMode' when calling UtilitiesManagementApi->UtilitiesManagementGetFields"); - - var localVarPath = "/api/management/Utilities/Fields"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (fieldManagementMode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "fieldManagementMode", fieldManagementMode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementGetFields", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// List<FieldManagementDTO> - public List UtilitiesManagementGetFields_0 (int? documentTypeId, int? fieldManagementMode) - { - ApiResponse> localVarResponse = UtilitiesManagementGetFields_0WithHttpInfo(documentTypeId, fieldManagementMode); - return localVarResponse.Data; - } - - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// ApiResponse of List<FieldManagementDTO> - public ApiResponse< List > UtilitiesManagementGetFields_0WithHttpInfo (int? documentTypeId, int? fieldManagementMode) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling UtilitiesManagementApi->UtilitiesManagementGetFields_0"); - // verify the required parameter 'fieldManagementMode' is set - if (fieldManagementMode == null) - throw new ApiException(400, "Missing required parameter 'fieldManagementMode' when calling UtilitiesManagementApi->UtilitiesManagementGetFields_0"); - - var localVarPath = "/api/management/Utilities/Fields/{documentTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (fieldManagementMode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "fieldManagementMode", fieldManagementMode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementGetFields_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// Task of List<FieldManagementDTO> - public async System.Threading.Tasks.Task> UtilitiesManagementGetFields_0Async (int? documentTypeId, int? fieldManagementMode) - { - ApiResponse> localVarResponse = await UtilitiesManagementGetFields_0AsyncWithHttpInfo(documentTypeId, fieldManagementMode); - return localVarResponse.Data; - - } - - /// - /// This call returns all fields by docuemnt type for specific context - /// - /// Thrown when fails to make API call - /// Document Type identifier - /// Possible values: 0: Standard 1: UniquenessRules 2: Folders 3: SqlQuery 4: ApiCall 5: DataSource 6: AdditionalFieldSource 7: AdditionalFieldDestination 8: Formula 9: Additional 10: IxFeRuleMapping 11: IxFePPMapping 12: IxCeArxCe 13: RootMask - /// Task of ApiResponse (List<FieldManagementDTO>) - public async System.Threading.Tasks.Task>> UtilitiesManagementGetFields_0AsyncWithHttpInfo (int? documentTypeId, int? fieldManagementMode) - { - // verify the required parameter 'documentTypeId' is set - if (documentTypeId == null) - throw new ApiException(400, "Missing required parameter 'documentTypeId' when calling UtilitiesManagementApi->UtilitiesManagementGetFields_0"); - // verify the required parameter 'fieldManagementMode' is set - if (fieldManagementMode == null) - throw new ApiException(400, "Missing required parameter 'fieldManagementMode' when calling UtilitiesManagementApi->UtilitiesManagementGetFields_0"); - - var localVarPath = "/api/management/Utilities/Fields/{documentTypeId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (documentTypeId != null) localVarPathParams.Add("documentTypeId", this.Configuration.ApiClient.ParameterToString(documentTypeId)); // path parameter - if (fieldManagementMode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "fieldManagementMode", fieldManagementMode)); // query parameter - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementGetFields_0", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all fonts supported for pdf options - /// - /// Thrown when fails to make API call - /// List<string> - public List UtilitiesManagementGetOptionsPdfFonts () - { - ApiResponse> localVarResponse = UtilitiesManagementGetOptionsPdfFontsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all fonts supported for pdf options - /// - /// Thrown when fails to make API call - /// ApiResponse of List<string> - public ApiResponse< List > UtilitiesManagementGetOptionsPdfFontsWithHttpInfo () - { - - var localVarPath = "/api/management/Utilities/PdfOptions/Fonts"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementGetOptionsPdfFonts", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all fonts supported for pdf options - /// - /// Thrown when fails to make API call - /// Task of List<string> - public async System.Threading.Tasks.Task> UtilitiesManagementGetOptionsPdfFontsAsync () - { - ApiResponse> localVarResponse = await UtilitiesManagementGetOptionsPdfFontsAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all fonts supported for pdf options - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> UtilitiesManagementGetOptionsPdfFontsAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Utilities/PdfOptions/Fonts"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementGetOptionsPdfFonts", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieve database parameters list for files storage - /// - /// Thrown when fails to make API call - /// List<SetPathDatabaseBaseDTO> - public List UtilitiesManagementGetSetPathDatabaseInfo () - { - ApiResponse> localVarResponse = UtilitiesManagementGetSetPathDatabaseInfoWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call retrieve database parameters list for files storage - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SetPathDatabaseBaseDTO> - public ApiResponse< List > UtilitiesManagementGetSetPathDatabaseInfoWithHttpInfo () - { - - var localVarPath = "/api/management/Utilities/SetPath/Database"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementGetSetPathDatabaseInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieve database parameters list for files storage - /// - /// Thrown when fails to make API call - /// Task of List<SetPathDatabaseBaseDTO> - public async System.Threading.Tasks.Task> UtilitiesManagementGetSetPathDatabaseInfoAsync () - { - ApiResponse> localVarResponse = await UtilitiesManagementGetSetPathDatabaseInfoAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call retrieve database parameters list for files storage - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SetPathDatabaseBaseDTO>) - public async System.Threading.Tasks.Task>> UtilitiesManagementGetSetPathDatabaseInfoAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Utilities/SetPath/Database"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementGetSetPathDatabaseInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieve list of filesystem parameters for files storage - /// - /// Thrown when fails to make API call - /// List<SetPathFilesystemBaseDTO> - public List UtilitiesManagementGetSetPathFilesystemInfo () - { - ApiResponse> localVarResponse = UtilitiesManagementGetSetPathFilesystemInfoWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call retrieve list of filesystem parameters for files storage - /// - /// Thrown when fails to make API call - /// ApiResponse of List<SetPathFilesystemBaseDTO> - public ApiResponse< List > UtilitiesManagementGetSetPathFilesystemInfoWithHttpInfo () - { - - var localVarPath = "/api/management/Utilities/SetPath/Filesystem"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementGetSetPathFilesystemInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call retrieve list of filesystem parameters for files storage - /// - /// Thrown when fails to make API call - /// Task of List<SetPathFilesystemBaseDTO> - public async System.Threading.Tasks.Task> UtilitiesManagementGetSetPathFilesystemInfoAsync () - { - ApiResponse> localVarResponse = await UtilitiesManagementGetSetPathFilesystemInfoAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call retrieve list of filesystem parameters for files storage - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<SetPathFilesystemBaseDTO>) - public async System.Threading.Tasks.Task>> UtilitiesManagementGetSetPathFilesystemInfoAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Utilities/SetPath/Filesystem"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementGetSetPathFilesystemInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call update database parameters for files storage - /// - /// Thrown when fails to make API call - /// Database parameters for update - /// - public void UtilitiesManagementUpdateSetPathDatabaseInfo (SetPathDatabaseForUpdateDTO databaseParams) - { - UtilitiesManagementUpdateSetPathDatabaseInfoWithHttpInfo(databaseParams); - } - - /// - /// This call update database parameters for files storage - /// - /// Thrown when fails to make API call - /// Database parameters for update - /// ApiResponse of Object(void) - public ApiResponse UtilitiesManagementUpdateSetPathDatabaseInfoWithHttpInfo (SetPathDatabaseForUpdateDTO databaseParams) - { - // verify the required parameter 'databaseParams' is set - if (databaseParams == null) - throw new ApiException(400, "Missing required parameter 'databaseParams' when calling UtilitiesManagementApi->UtilitiesManagementUpdateSetPathDatabaseInfo"); - - var localVarPath = "/api/management/Utilities/SetPath/Database"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (databaseParams != null && databaseParams.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(databaseParams); // http body (model) parameter - } - else - { - localVarPostBody = databaseParams; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementUpdateSetPathDatabaseInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update database parameters for files storage - /// - /// Thrown when fails to make API call - /// Database parameters for update - /// Task of void - public async System.Threading.Tasks.Task UtilitiesManagementUpdateSetPathDatabaseInfoAsync (SetPathDatabaseForUpdateDTO databaseParams) - { - await UtilitiesManagementUpdateSetPathDatabaseInfoAsyncWithHttpInfo(databaseParams); - - } - - /// - /// This call update database parameters for files storage - /// - /// Thrown when fails to make API call - /// Database parameters for update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UtilitiesManagementUpdateSetPathDatabaseInfoAsyncWithHttpInfo (SetPathDatabaseForUpdateDTO databaseParams) - { - // verify the required parameter 'databaseParams' is set - if (databaseParams == null) - throw new ApiException(400, "Missing required parameter 'databaseParams' when calling UtilitiesManagementApi->UtilitiesManagementUpdateSetPathDatabaseInfo"); - - var localVarPath = "/api/management/Utilities/SetPath/Database"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (databaseParams != null && databaseParams.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(databaseParams); // http body (model) parameter - } - else - { - localVarPostBody = databaseParams; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementUpdateSetPathDatabaseInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update filesystem parameters for files storage - /// - /// Thrown when fails to make API call - /// Filesystem parameters for update - /// - public void UtilitiesManagementUpdateSetPathFilesystemInfo (SetPathFilesystemForUpdateDTO filesystemParams) - { - UtilitiesManagementUpdateSetPathFilesystemInfoWithHttpInfo(filesystemParams); - } - - /// - /// This call update filesystem parameters for files storage - /// - /// Thrown when fails to make API call - /// Filesystem parameters for update - /// ApiResponse of Object(void) - public ApiResponse UtilitiesManagementUpdateSetPathFilesystemInfoWithHttpInfo (SetPathFilesystemForUpdateDTO filesystemParams) - { - // verify the required parameter 'filesystemParams' is set - if (filesystemParams == null) - throw new ApiException(400, "Missing required parameter 'filesystemParams' when calling UtilitiesManagementApi->UtilitiesManagementUpdateSetPathFilesystemInfo"); - - var localVarPath = "/api/management/Utilities/SetPath/Filesystem"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (filesystemParams != null && filesystemParams.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(filesystemParams); // http body (model) parameter - } - else - { - localVarPostBody = filesystemParams; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementUpdateSetPathFilesystemInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// This call update filesystem parameters for files storage - /// - /// Thrown when fails to make API call - /// Filesystem parameters for update - /// Task of void - public async System.Threading.Tasks.Task UtilitiesManagementUpdateSetPathFilesystemInfoAsync (SetPathFilesystemForUpdateDTO filesystemParams) - { - await UtilitiesManagementUpdateSetPathFilesystemInfoAsyncWithHttpInfo(filesystemParams); - - } - - /// - /// This call update filesystem parameters for files storage - /// - /// Thrown when fails to make API call - /// Filesystem parameters for update - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UtilitiesManagementUpdateSetPathFilesystemInfoAsyncWithHttpInfo (SetPathFilesystemForUpdateDTO filesystemParams) - { - // verify the required parameter 'filesystemParams' is set - if (filesystemParams == null) - throw new ApiException(400, "Missing required parameter 'filesystemParams' when calling UtilitiesManagementApi->UtilitiesManagementUpdateSetPathFilesystemInfo"); - - var localVarPath = "/api/management/Utilities/SetPath/Filesystem"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (filesystemParams != null && filesystemParams.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(filesystemParams); // http body (model) parameter - } - else - { - localVarPostBody = filesystemParams; // byte array - } - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("UtilitiesManagementUpdateSetPathFilesystemInfo", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Api/ViewManagementApi.cs b/ACUtils.AXRepository/ArxivarNextManagement/Api/ViewManagementApi.cs deleted file mode 100644 index 8d498ec..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Api/ViewManagementApi.cs +++ /dev/null @@ -1,305 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; -using ACUtils.AXRepository.ArxivarNextManagement.Client; -using ACUtils.AXRepository.ArxivarNextManagement.Model; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IViewManagementApi : IApiAccessor - { - #region Synchronous Operations - /// - /// This call returns all views - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List<ViewDTO> - List ViewManagementGetList (); - - /// - /// This call returns all views - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ViewDTO> - ApiResponse> ViewManagementGetListWithHttpInfo (); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// This call returns all views - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of List<ViewDTO> - System.Threading.Tasks.Task> ViewManagementGetListAsync (); - - /// - /// This call returns all views - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ViewDTO>) - System.Threading.Tasks.Task>> ViewManagementGetListAsyncWithHttpInfo (); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ViewManagementApi : IViewManagementApi - { - private ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ViewManagementApi(String basePath) - { - this.Configuration = new ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration { BasePath = basePath }; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public ViewManagementApi(ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration configuration = null) - { - if (configuration == null) // use the default one in Configuration - this.Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - else - this.Configuration = configuration; - - ExceptionFactory = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] - public void SetBasePath(String basePath) - { - // do nothing - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration Configuration {get; set;} - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ACUtils.AXRepository.ArxivarNextManagement.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Gets the default header. - /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() - { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] - public void AddDefaultHeader(string key, string value) - { - this.Configuration.AddDefaultHeader(key, value); - } - - /// - /// This call returns all views - /// - /// Thrown when fails to make API call - /// List<ViewDTO> - public List ViewManagementGetList () - { - ApiResponse> localVarResponse = ViewManagementGetListWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// This call returns all views - /// - /// Thrown when fails to make API call - /// ApiResponse of List<ViewDTO> - public ApiResponse< List > ViewManagementGetListWithHttpInfo () - { - - var localVarPath = "/api/management/Views"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewManagementGetList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - /// - /// This call returns all views - /// - /// Thrown when fails to make API call - /// Task of List<ViewDTO> - public async System.Threading.Tasks.Task> ViewManagementGetListAsync () - { - ApiResponse> localVarResponse = await ViewManagementGetListAsyncWithHttpInfo(); - return localVarResponse.Data; - - } - - /// - /// This call returns all views - /// - /// Thrown when fails to make API call - /// Task of ApiResponse (List<ViewDTO>) - public async System.Threading.Tasks.Task>> ViewManagementGetListAsyncWithHttpInfo () - { - - var localVarPath = "/api/management/Views"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - - // authentication (Authorization) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ViewManagementGetList", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); - } - - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Client/ApiClient.cs b/ACUtils.AXRepository/ArxivarNextManagement/Client/ApiClient.cs deleted file mode 100644 index 21faaab..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Client/ApiClient.cs +++ /dev/null @@ -1,530 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Text.RegularExpressions; -using System.IO; -using System.Web; -using System.Linq; -using System.Net; -using System.Text; -using Newtonsoft.Json; -using RestSharp; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Client -{ - /// - /// API client is mainly responsible for making the HTTP call to the API backend. - /// - public partial class ApiClient - { - private JsonSerializerSettings serializerSettings = new JsonSerializerSettings - { - ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor - }; - - /// - /// Allows for extending request processing for generated code. - /// - /// The RestSharp request object - partial void InterceptRequest(IRestRequest request); - - /// - /// Allows for extending response processing for generated code. - /// - /// The RestSharp request object - /// The RestSharp response object - partial void InterceptResponse(IRestRequest request, IRestResponse response); - - /// - /// Initializes a new instance of the class - /// with default configuration. - /// - public ApiClient() - { - Configuration = ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - RestClient = new RestClient("http://192.168.255.200/ARXivarNextWebApi"); - } - - /// - /// Initializes a new instance of the class - /// with default base path (http://192.168.255.200/ARXivarNextWebApi). - /// - /// An instance of Configuration. - public ApiClient(Configuration config) - { - Configuration = config ?? ACUtils.AXRepository.ArxivarNextManagement.Client.Configuration.Default; - - RestClient = new RestClient(Configuration.BasePath); - } - - /// - /// Initializes a new instance of the class - /// with default configuration. - /// - /// The base path. - public ApiClient(String basePath = "http://192.168.255.200/ARXivarNextWebApi") - { - if (String.IsNullOrEmpty(basePath)) - throw new ArgumentException("basePath cannot be empty"); - - RestClient = new RestClient(basePath); - Configuration = Client.Configuration.Default; - } - - /// - /// Gets or sets the default API client for making HTTP calls. - /// - /// The default API client. - [Obsolete("ApiClient.Default is deprecated, please use 'Configuration.Default.ApiClient' instead.")] - public static ApiClient Default; - - /// - /// Gets or sets an instance of the IReadableConfiguration. - /// - /// An instance of the IReadableConfiguration. - /// - /// helps us to avoid modifying possibly global - /// configuration values from within a given client. It does not guarantee thread-safety - /// of the instance in any way. - /// - public IReadableConfiguration Configuration { get; set; } - - /// - /// Gets or sets the RestClient. - /// - /// An instance of the RestClient - public RestClient RestClient { get; set; } - - // Creates and sets up a RestRequest prior to a call. - private RestRequest PrepareRequest( - String path, RestSharp.Method method, List> queryParams, Object postBody, - Dictionary headerParams, Dictionary formParams, - Dictionary fileParams, Dictionary pathParams, - String contentType) - { - var request = new RestRequest(path, method); - - // add path parameter, if any - foreach(var param in pathParams) - request.AddParameter(param.Key, param.Value, ParameterType.UrlSegment); - - // add header parameter, if any - foreach(var param in headerParams) - request.AddHeader(param.Key, param.Value); - - // add query parameter, if any - foreach(var param in queryParams) - request.AddQueryParameter(param.Key, param.Value); - - // add form parameter, if any - foreach(var param in formParams) - request.AddParameter(param.Key, param.Value); - - // add file parameter, if any - foreach(var param in fileParams) - { - request.AddFile(param.Value.Name, param.Value.Writer, param.Value.FileName, param.Value.ContentType); - } - - if (postBody != null) // http body (model or byte[]) parameter - { - request.AddParameter(contentType, postBody, ParameterType.RequestBody); - } - - return request; - } - - /// - /// Makes the HTTP request (Sync). - /// - /// URL path. - /// HTTP method. - /// Query parameters. - /// HTTP body (POST request). - /// Header parameters. - /// Form parameters. - /// File parameters. - /// Path parameters. - /// Content Type of the request - /// Object - public Object CallApi( - String path, RestSharp.Method method, List> queryParams, Object postBody, - Dictionary headerParams, Dictionary formParams, - Dictionary fileParams, Dictionary pathParams, - String contentType) - { - var request = PrepareRequest( - path, method, queryParams, postBody, headerParams, formParams, fileParams, - pathParams, contentType); - - // set timeout - - RestClient.Timeout = Configuration.Timeout; - // set user agent - RestClient.UserAgent = Configuration.UserAgent; - - InterceptRequest(request); - var response = RestClient.Execute(request); - InterceptResponse(request, response); - - return (Object) response; - } - /// - /// Makes the asynchronous HTTP request. - /// - /// URL path. - /// HTTP method. - /// Query parameters. - /// HTTP body (POST request). - /// Header parameters. - /// Form parameters. - /// File parameters. - /// Path parameters. - /// Content type. - /// The Task instance. - public async System.Threading.Tasks.Task CallApiAsync( - String path, RestSharp.Method method, List> queryParams, Object postBody, - Dictionary headerParams, Dictionary formParams, - Dictionary fileParams, Dictionary pathParams, - String contentType) - { - var request = PrepareRequest( - path, method, queryParams, postBody, headerParams, formParams, fileParams, - pathParams, contentType); - InterceptRequest(request); - var response = await RestClient.ExecuteTaskAsync(request); - InterceptResponse(request, response); - return (Object)response; - } - - /// - /// Escape string (url-encoded). - /// - /// String to be escaped. - /// Escaped string. - public string EscapeString(string str) - { - return UrlEncode(str); - } - - /// - /// Create FileParameter based on Stream. - /// - /// Parameter name. - /// Input stream. - /// FileParameter. - public FileParameter ParameterToFile(string name, Stream stream) - { - if (stream is FileStream) - return FileParameter.Create(name, ReadAsBytes(stream), Path.GetFileName(((FileStream)stream).Name)); - else - return FileParameter.Create(name, ReadAsBytes(stream), "no_file_name_provided"); - } - - /// - /// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime. - /// If parameter is a list, join the list with ",". - /// Otherwise just return the string. - /// - /// The parameter (header, path, query, form). - /// Formatted string. - public string ParameterToString(object obj) - { - if (obj is DateTime) - // Return a formatted date string - Can be customized with Configuration.DateTimeFormat - // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") - // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 - // For example: 2009-06-15T13:45:30.0000000 - return ((DateTime)obj).ToString (Configuration.DateTimeFormat); - else if (obj is DateTimeOffset) - // Return a formatted date string - Can be customized with Configuration.DateTimeFormat - // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") - // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 - // For example: 2009-06-15T13:45:30.0000000 - return ((DateTimeOffset)obj).ToString (Configuration.DateTimeFormat); - else if (obj is IList) - { - var flattenedString = new StringBuilder(); - foreach (var param in (IList)obj) - { - if (flattenedString.Length > 0) - flattenedString.Append(","); - flattenedString.Append(param); - } - return flattenedString.ToString(); - } - else - return Convert.ToString (obj); - } - - /// - /// Deserialize the JSON string into a proper object. - /// - /// The HTTP response. - /// Object type. - /// Object representation of the JSON string. - public object Deserialize(IRestResponse response, Type type) - { - IList headers = response.Headers; - if (type == typeof(byte[])) // return byte array - { - return response.RawBytes; - } - - // TODO: ? if (type.IsAssignableFrom(typeof(Stream))) - if (type == typeof(Stream)) - { - if (headers != null) - { - var filePath = String.IsNullOrEmpty(Configuration.TempFolderPath) - ? Path.GetTempPath() - : Configuration.TempFolderPath; - var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$"); - foreach (var header in headers) - { - var match = regex.Match(header.ToString()); - if (match.Success) - { - string fileName = filePath + SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", "")); - File.WriteAllBytes(fileName, response.RawBytes); - return new FileStream(fileName, FileMode.Open); - } - } - } - var stream = new MemoryStream(response.RawBytes); - return stream; - } - - if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object - { - return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind); - } - - if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type - { - return ConvertType(response.Content, type); - } - - // at this point, it must be a model (json) - try - { - return JsonConvert.DeserializeObject(response.Content, type, serializerSettings); - } - catch (Exception e) - { - throw new ApiException(500, e.Message); - } - } - - /// - /// Serialize an input (model) into JSON string - /// - /// Object. - /// JSON string. - public String Serialize(object obj) - { - try - { - return obj != null ? JsonConvert.SerializeObject(obj) : null; - } - catch (Exception e) - { - throw new ApiException(500, e.Message); - } - } - - /// - ///Check if the given MIME is a JSON MIME. - ///JSON MIME examples: - /// application/json - /// application/json; charset=UTF8 - /// APPLICATION/JSON - /// application/vnd.company+json - /// - /// MIME - /// Returns True if MIME type is json. - public bool IsJsonMime(String mime) - { - var jsonRegex = new Regex("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); - return mime != null && (jsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json")); - } - - /// - /// Select the Content-Type header's value from the given content-type array: - /// if JSON type exists in the given array, use it; - /// otherwise use the first one defined in 'consumes' - /// - /// The Content-Type array to select from. - /// The Content-Type header to use. - public String SelectHeaderContentType(String[] contentTypes) - { - if (contentTypes.Length == 0) - return "application/json"; - - foreach (var contentType in contentTypes) - { - if (IsJsonMime(contentType.ToLower())) - return contentType; - } - - return contentTypes[0]; // use the first content type specified in 'consumes' - } - - /// - /// Select the Accept header's value from the given accepts array: - /// if JSON exists in the given array, use it; - /// otherwise use all of them (joining into a string) - /// - /// The accepts array to select from. - /// The Accept header to use. - public String SelectHeaderAccept(String[] accepts) - { - if (accepts.Length == 0) - return null; - - if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase)) - return "application/json"; - - return String.Join(",", accepts); - } - - /// - /// Encode string in base64 format. - /// - /// String to be encoded. - /// Encoded string. - public static string Base64Encode(string text) - { - return System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text)); - } - - /// - /// Dynamically cast the object into target type. - /// - /// Object to be casted - /// Target type - /// Casted object - public static dynamic ConvertType(dynamic fromObject, Type toObject) - { - return Convert.ChangeType(fromObject, toObject); - } - - /// - /// Convert stream to byte array - /// - /// Input stream to be converted - /// Byte array - public static byte[] ReadAsBytes(Stream inputStream) - { - byte[] buf = new byte[16*1024]; - using (MemoryStream ms = new MemoryStream()) - { - int count; - while ((count = inputStream.Read(buf, 0, buf.Length)) > 0) - { - ms.Write(buf, 0, count); - } - return ms.ToArray(); - } - } - - /// - /// URL encode a string - /// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50 - /// - /// String to be URL encoded - /// Byte array - public static string UrlEncode(string input) - { - const int maxLength = 32766; - - if (input == null) - { - throw new ArgumentNullException("input"); - } - - if (input.Length <= maxLength) - { - return Uri.EscapeDataString(input); - } - - StringBuilder sb = new StringBuilder(input.Length * 2); - int index = 0; - - while (index < input.Length) - { - int length = Math.Min(input.Length - index, maxLength); - string subString = input.Substring(index, length); - - sb.Append(Uri.EscapeDataString(subString)); - index += subString.Length; - } - - return sb.ToString(); - } - - /// - /// Sanitize filename by removing the path - /// - /// Filename - /// Filename - public static string SanitizeFilename(string filename) - { - Match match = Regex.Match(filename, @".*[/\\](.*)$"); - - if (match.Success) - { - return match.Groups[1].Value; - } - else - { - return filename; - } - } - - /// - /// Convert params to key/value pairs. - /// Use collectionFormat to properly format lists and collections. - /// - /// Key name. - /// Value object. - /// A list of KeyValuePairs - public IEnumerable> ParameterToKeyValuePairs(string collectionFormat, string name, object value) - { - var parameters = new List>(); - - if (IsCollection(value) && collectionFormat == "multi") - { - var valueCollection = value as IEnumerable; - parameters.AddRange(from object item in valueCollection select new KeyValuePair(name, ParameterToString(item))); - } - else - { - parameters.Add(new KeyValuePair(name, ParameterToString(value))); - } - - return parameters; - } - - /// - /// Check if generic object is a collection. - /// - /// - /// True if object is a collection type - private static bool IsCollection(object value) - { - return value is IList || value is ICollection; - } - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Client/ApiException.cs b/ACUtils.AXRepository/ArxivarNextManagement/Client/ApiException.cs deleted file mode 100644 index 03b0143..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Client/ApiException.cs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Client -{ - /// - /// API Exception - /// - public class ApiException : Exception - { - /// - /// Gets or sets the error code (HTTP status code) - /// - /// The error code (HTTP status code). - public int ErrorCode { get; set; } - - /// - /// Gets or sets the error content (body json object) - /// - /// The error content (Http response body). - public dynamic ErrorContent { get; private set; } - - /// - /// Initializes a new instance of the class. - /// - public ApiException() {} - - /// - /// Initializes a new instance of the class. - /// - /// HTTP status code. - /// Error message. - public ApiException(int errorCode, string message) : base(message) - { - this.ErrorCode = errorCode; - } - - /// - /// Initializes a new instance of the class. - /// - /// HTTP status code. - /// Error message. - /// Error content. - public ApiException(int errorCode, string message, dynamic errorContent = null) : base(message) - { - this.ErrorCode = errorCode; - this.ErrorContent = errorContent; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Client/ApiResponse.cs b/ACUtils.AXRepository/ArxivarNextManagement/Client/ApiResponse.cs deleted file mode 100644 index ffdba28..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Client/ApiResponse.cs +++ /dev/null @@ -1,54 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Collections.Generic; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Client -{ - /// - /// API Response - /// - public class ApiResponse - { - /// - /// Gets or sets the status code (HTTP status code) - /// - /// The status code. - public int StatusCode { get; private set; } - - /// - /// Gets or sets the HTTP headers - /// - /// HTTP headers - public IDictionary Headers { get; private set; } - - /// - /// Gets or sets the data (parsed HTTP body) - /// - /// The data. - public T Data { get; private set; } - - /// - /// Initializes a new instance of the class. - /// - /// HTTP status code. - /// HTTP headers. - /// Data (parsed HTTP body) - public ApiResponse(int statusCode, IDictionary headers, T data) - { - this.StatusCode= statusCode; - this.Headers = headers; - this.Data = data; - } - - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Client/Configuration.cs b/ACUtils.AXRepository/ArxivarNextManagement/Client/Configuration.cs deleted file mode 100644 index 0807a64..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Client/Configuration.cs +++ /dev/null @@ -1,453 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Reflection; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Client -{ - /// - /// Represents a set of configuration settings - /// - public class Configuration : IReadableConfiguration - { - #region Constants - - /// - /// Version of the package. - /// - /// Version of the package. - public const string Version = "1.0.0"; - - /// - /// Identifier for ISO 8601 DateTime Format - /// - /// See https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 for more information. - // ReSharper disable once InconsistentNaming - public const string ISO8601_DATETIME_FORMAT = "o"; - - #endregion Constants - - #region Static Members - - private static readonly object GlobalConfigSync = new { }; - private static Configuration _globalConfiguration; - - /// - /// Default creation of exceptions for a given method name and response object - /// - public static readonly ExceptionFactory DefaultExceptionFactory = (methodName, response) => - { - var status = (int)response.StatusCode; - if (status >= 400) - { - return new ApiException(status, - string.Format("Error calling {0}: {1}", methodName, response.Content), - response.Content); - } - if (status == 0) - { - return new ApiException(status, - string.Format("Error calling {0}: {1}", methodName, response.ErrorMessage), response.ErrorMessage); - } - return null; - }; - - /// - /// Gets or sets the default Configuration. - /// - /// Configuration. - public static Configuration Default - { - get { return _globalConfiguration; } - set - { - lock (GlobalConfigSync) - { - _globalConfiguration = value; - } - } - } - - #endregion Static Members - - #region Private Members - - /// - /// Gets or sets the API key based on the authentication name. - /// - /// The API key. - private IDictionary _apiKey = null; - - /// - /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. - /// - /// The prefix of the API key. - private IDictionary _apiKeyPrefix = null; - - private string _dateTimeFormat = ISO8601_DATETIME_FORMAT; - private string _tempFolderPath = Path.GetTempPath(); - - #endregion Private Members - - #region Constructors - - static Configuration() - { - _globalConfiguration = new GlobalConfiguration(); - } - - /// - /// Initializes a new instance of the class - /// - public Configuration() - { - UserAgent = "Swagger-Codegen/1.0.0/csharp"; - BasePath = "http://192.168.255.200/ARXivarNextWebApi"; - DefaultHeader = new ConcurrentDictionary(); - ApiKey = new ConcurrentDictionary(); - ApiKeyPrefix = new ConcurrentDictionary(); - - // Setting Timeout has side effects (forces ApiClient creation). - Timeout = 100000; - } - - /// - /// Initializes a new instance of the class - /// - public Configuration( - IDictionary defaultHeader, - IDictionary apiKey, - IDictionary apiKeyPrefix, - string basePath = "http://192.168.255.200/ARXivarNextWebApi") : this() - { - if (string.IsNullOrWhiteSpace(basePath)) - throw new ArgumentException("The provided basePath is invalid.", "basePath"); - if (defaultHeader == null) - throw new ArgumentNullException("defaultHeader"); - if (apiKey == null) - throw new ArgumentNullException("apiKey"); - if (apiKeyPrefix == null) - throw new ArgumentNullException("apiKeyPrefix"); - - BasePath = basePath; - - foreach (var keyValuePair in defaultHeader) - { - DefaultHeader.Add(keyValuePair); - } - - foreach (var keyValuePair in apiKey) - { - ApiKey.Add(keyValuePair); - } - - foreach (var keyValuePair in apiKeyPrefix) - { - ApiKeyPrefix.Add(keyValuePair); - } - } - - /// - /// Initializes a new instance of the class with different settings - /// - /// Api client - /// Dictionary of default HTTP header - /// Username - /// Password - /// accessToken - /// Dictionary of API key - /// Dictionary of API key prefix - /// Temp folder path - /// DateTime format string - /// HTTP connection timeout (in milliseconds) - /// HTTP user agent - [Obsolete("Use explicit object construction and setting of properties.", true)] - public Configuration( - // ReSharper disable UnusedParameter.Local - ApiClient apiClient = null, - IDictionary defaultHeader = null, - string username = null, - string password = null, - string accessToken = null, - IDictionary apiKey = null, - IDictionary apiKeyPrefix = null, - string tempFolderPath = null, - string dateTimeFormat = null, - int timeout = 100000, - string userAgent = "Swagger-Codegen/1.0.0/csharp" - // ReSharper restore UnusedParameter.Local - ) - { - - } - - /// - /// Initializes a new instance of the Configuration class. - /// - /// Api client. - [Obsolete("This constructor caused unexpected sharing of static data. It is no longer supported.", true)] - // ReSharper disable once UnusedParameter.Local - public Configuration(ApiClient apiClient) - { - - } - - #endregion Constructors - - - #region Properties - - private ApiClient _apiClient = null; - /// - /// Gets an instance of an ApiClient for this configuration - /// - public virtual ApiClient ApiClient - { - get - { - if (_apiClient == null) _apiClient = CreateApiClient(); - return _apiClient; - } - } - - private String _basePath = null; - /// - /// Gets or sets the base path for API access. - /// - public virtual string BasePath { - get { return _basePath; } - set { - _basePath = value; - // pass-through to ApiClient if it's set. - if(_apiClient != null) { - _apiClient.RestClient.BaseUrl = new Uri(_basePath); - } - } - } - - /// - /// Gets or sets the default header. - /// - public virtual IDictionary DefaultHeader { get; set; } - - /// - /// Gets or sets the HTTP timeout (milliseconds) of ApiClient. Default to 100000 milliseconds. - /// - public virtual int Timeout - { - - get { return ApiClient.RestClient.Timeout; } - set { ApiClient.RestClient.Timeout = value; } - } - - /// - /// Gets or sets the HTTP user agent. - /// - /// Http user agent. - public virtual string UserAgent { get; set; } - - /// - /// Gets or sets the username (HTTP basic authentication). - /// - /// The username. - public virtual string Username { get; set; } - - /// - /// Gets or sets the password (HTTP basic authentication). - /// - /// The password. - public virtual string Password { get; set; } - - /// - /// Gets the API key with prefix. - /// - /// API key identifier (authentication scheme). - /// API key with prefix. - public string GetApiKeyWithPrefix(string apiKeyIdentifier) - { - var apiKeyValue = ""; - ApiKey.TryGetValue (apiKeyIdentifier, out apiKeyValue); - var apiKeyPrefix = ""; - if (ApiKeyPrefix.TryGetValue (apiKeyIdentifier, out apiKeyPrefix)) - return apiKeyPrefix + " " + apiKeyValue; - else - return apiKeyValue; - } - - /// - /// Gets or sets the access token for OAuth2 authentication. - /// - /// The access token. - public virtual string AccessToken { get; set; } - - /// - /// Gets or sets the temporary folder path to store the files downloaded from the server. - /// - /// Folder path. - public virtual string TempFolderPath - { - get { return _tempFolderPath; } - - set - { - if (string.IsNullOrEmpty(value)) - { - // Possible breaking change since swagger-codegen 2.2.1, enforce a valid temporary path on set. - _tempFolderPath = Path.GetTempPath(); - return; - } - - // create the directory if it does not exist - if (!Directory.Exists(value)) - { - Directory.CreateDirectory(value); - } - - // check if the path contains directory separator at the end - if (value[value.Length - 1] == Path.DirectorySeparatorChar) - { - _tempFolderPath = value; - } - else - { - _tempFolderPath = value + Path.DirectorySeparatorChar; - } - } - } - - /// - /// Gets or sets the the date time format used when serializing in the ApiClient - /// By default, it's set to ISO 8601 - "o", for others see: - /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx - /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx - /// No validation is done to ensure that the string you're providing is valid - /// - /// The DateTimeFormat string - public virtual string DateTimeFormat - { - get { return _dateTimeFormat; } - set - { - if (string.IsNullOrEmpty(value)) - { - // Never allow a blank or null string, go back to the default - _dateTimeFormat = ISO8601_DATETIME_FORMAT; - return; - } - - // Caution, no validation when you choose date time format other than ISO 8601 - // Take a look at the above links - _dateTimeFormat = value; - } - } - - /// - /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. - /// - /// The prefix of the API key. - public virtual IDictionary ApiKeyPrefix - { - get { return _apiKeyPrefix; } - set - { - if (value == null) - { - throw new InvalidOperationException("ApiKeyPrefix collection may not be null."); - } - _apiKeyPrefix = value; - } - } - - /// - /// Gets or sets the API key based on the authentication name. - /// - /// The API key. - public virtual IDictionary ApiKey - { - get { return _apiKey; } - set - { - if (value == null) - { - throw new InvalidOperationException("ApiKey collection may not be null."); - } - _apiKey = value; - } - } - - #endregion Properties - - #region Methods - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - public void AddDefaultHeader(string key, string value) - { - DefaultHeader[key] = value; - } - - /// - /// Creates a new based on this instance. - /// - /// - public ApiClient CreateApiClient() - { - return new ApiClient(BasePath) { Configuration = this }; - } - - - /// - /// Returns a string with essential information for debugging. - /// - public static String ToDebugReport() - { - String report = "C# SDK (ACUtils.AXRepository.ArxivarNextManagement) Debug Report:\n"; - report += " OS: " + System.Environment.OSVersion + "\n"; - report += " .NET Framework Version: " + System.Environment.Version + "\n"; - report += " Version of the API: management\n"; - report += " SDK Package Version: 1.0.0\n"; - - return report; - } - - /// - /// Add Api Key Header. - /// - /// Api Key name. - /// Api Key value. - /// - public void AddApiKey(string key, string value) - { - ApiKey[key] = value; - } - - /// - /// Sets the API key prefix. - /// - /// Api Key name. - /// Api Key value. - public void AddApiKeyPrefix(string key, string value) - { - ApiKeyPrefix[key] = value; - } - - #endregion Methods - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Client/ExceptionFactory.cs b/ACUtils.AXRepository/ArxivarNextManagement/Client/ExceptionFactory.cs deleted file mode 100644 index 3965c84..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Client/ExceptionFactory.cs +++ /dev/null @@ -1,24 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - - -using System; -using RestSharp; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Client -{ - /// - /// A delegate to ExceptionFactory method - /// - /// Method name - /// Response - /// Exceptions - public delegate Exception ExceptionFactory(string methodName, IRestResponse response); -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Client/GlobalConfiguration.cs b/ACUtils.AXRepository/ArxivarNextManagement/Client/GlobalConfiguration.cs deleted file mode 100644 index f47e38e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Client/GlobalConfiguration.cs +++ /dev/null @@ -1,34 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - - -using System; -using System.Reflection; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Client -{ - /// - /// provides a compile-time extension point for globally configuring - /// API Clients. - /// - /// - /// A customized implementation via partial class may reside in another file and may - /// be excluded from automatic generation via a .swagger-codegen-ignore file. - /// - public partial class GlobalConfiguration : Configuration - { - - } -} \ No newline at end of file diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Client/IApiAccessor.cs b/ACUtils.AXRepository/ArxivarNextManagement/Client/IApiAccessor.cs deleted file mode 100644 index 11dae89..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Client/IApiAccessor.cs +++ /dev/null @@ -1,42 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using RestSharp; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Client -{ - /// - /// Represents configuration aspects required to interact with the API endpoints. - /// - public interface IApiAccessor - { - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - Configuration Configuration {get; set;} - - /// - /// Gets the base path of the API client. - /// - /// The base path - String GetBasePath(); - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - ExceptionFactory ExceptionFactory { get; set; } - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Client/IReadableConfiguration.cs b/ACUtils.AXRepository/ArxivarNextManagement/Client/IReadableConfiguration.cs deleted file mode 100644 index 77bde20..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Client/IReadableConfiguration.cs +++ /dev/null @@ -1,94 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - - -using System.Collections.Generic; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Client -{ - /// - /// Represents a readable-only configuration contract. - /// - public interface IReadableConfiguration - { - /// - /// Gets the access token. - /// - /// Access token. - string AccessToken { get; } - - /// - /// Gets the API key. - /// - /// API key. - IDictionary ApiKey { get; } - - /// - /// Gets the API key prefix. - /// - /// API key prefix. - IDictionary ApiKeyPrefix { get; } - - /// - /// Gets the base path. - /// - /// Base path. - string BasePath { get; } - - /// - /// Gets the date time format. - /// - /// Date time foramt. - string DateTimeFormat { get; } - - /// - /// Gets the default header. - /// - /// Default header. - IDictionary DefaultHeader { get; } - - /// - /// Gets the temp folder path. - /// - /// Temp folder path. - string TempFolderPath { get; } - - /// - /// Gets the HTTP connection timeout (in milliseconds) - /// - /// HTTP connection timeout. - int Timeout { get; } - - /// - /// Gets the user agent. - /// - /// User agent. - string UserAgent { get; } - - /// - /// Gets the username. - /// - /// Username. - string Username { get; } - - /// - /// Gets the password. - /// - /// Password. - string Password { get; } - - /// - /// Gets the API key with prefix. - /// - /// API key identifier (authentication scheme). - /// API key with prefix. - string GetApiKeyWithPrefix(string apiKeyIdentifier); - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Client/SwaggerDateConverter.cs b/ACUtils.AXRepository/ArxivarNextManagement/Client/SwaggerDateConverter.cs deleted file mode 100644 index 1ddbd93..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Client/SwaggerDateConverter.cs +++ /dev/null @@ -1,30 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using Newtonsoft.Json.Converters; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Client -{ - /// - /// Formatter for 'date' swagger formats ss defined by full-date - RFC3339 - /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types - /// - public class SwaggerDateConverter : IsoDateTimeConverter - { - /// - /// Initializes a new instance of the class. - /// - public SwaggerDateConverter() - { - // full-date = date-fullyear "-" date-month "-" date-mday - DateTimeFormat = "yyyy-MM-dd"; - } - } -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ActiveDirectoryUserDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ActiveDirectoryUserDTO.cs deleted file mode 100644 index a3c9bcc..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ActiveDirectoryUserDTO.cs +++ /dev/null @@ -1,312 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for active directory user - /// - [DataContract] - public partial class ActiveDirectoryUserDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Sam Account Name. - /// User Principal Name. - /// Given Name. - /// Cn. - /// FullName. - /// Mail. - /// Telephone Number. - /// Username. - /// Sn. - /// Display Name. - /// Uid. - /// User id. - public ActiveDirectoryUserDTO(string samAccountName = default(string), string userPrincipalName = default(string), string givenName = default(string), string cn = default(string), string fullName = default(string), string mail = default(string), string telephoneNumber = default(string), string username = default(string), string sn = default(string), string displayName = default(string), string uid = default(string), string userid = default(string)) - { - this.SamAccountName = samAccountName; - this.UserPrincipalName = userPrincipalName; - this.GivenName = givenName; - this.Cn = cn; - this.FullName = fullName; - this.Mail = mail; - this.TelephoneNumber = telephoneNumber; - this.Username = username; - this.Sn = sn; - this.DisplayName = displayName; - this.Uid = uid; - this.Userid = userid; - } - - /// - /// Sam Account Name - /// - /// Sam Account Name - [DataMember(Name="samAccountName", EmitDefaultValue=false)] - public string SamAccountName { get; set; } - - /// - /// User Principal Name - /// - /// User Principal Name - [DataMember(Name="userPrincipalName", EmitDefaultValue=false)] - public string UserPrincipalName { get; set; } - - /// - /// Given Name - /// - /// Given Name - [DataMember(Name="givenName", EmitDefaultValue=false)] - public string GivenName { get; set; } - - /// - /// Cn - /// - /// Cn - [DataMember(Name="cn", EmitDefaultValue=false)] - public string Cn { get; set; } - - /// - /// FullName - /// - /// FullName - [DataMember(Name="fullName", EmitDefaultValue=false)] - public string FullName { get; set; } - - /// - /// Mail - /// - /// Mail - [DataMember(Name="mail", EmitDefaultValue=false)] - public string Mail { get; set; } - - /// - /// Telephone Number - /// - /// Telephone Number - [DataMember(Name="telephoneNumber", EmitDefaultValue=false)] - public string TelephoneNumber { get; set; } - - /// - /// Username - /// - /// Username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Sn - /// - /// Sn - [DataMember(Name="sn", EmitDefaultValue=false)] - public string Sn { get; set; } - - /// - /// Display Name - /// - /// Display Name - [DataMember(Name="displayName", EmitDefaultValue=false)] - public string DisplayName { get; set; } - - /// - /// Uid - /// - /// Uid - [DataMember(Name="uid", EmitDefaultValue=false)] - public string Uid { get; set; } - - /// - /// User id - /// - /// User id - [DataMember(Name="userid", EmitDefaultValue=false)] - public string Userid { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ActiveDirectoryUserDTO {\n"); - sb.Append(" SamAccountName: ").Append(SamAccountName).Append("\n"); - sb.Append(" UserPrincipalName: ").Append(UserPrincipalName).Append("\n"); - sb.Append(" GivenName: ").Append(GivenName).Append("\n"); - sb.Append(" Cn: ").Append(Cn).Append("\n"); - sb.Append(" FullName: ").Append(FullName).Append("\n"); - sb.Append(" Mail: ").Append(Mail).Append("\n"); - sb.Append(" TelephoneNumber: ").Append(TelephoneNumber).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Sn: ").Append(Sn).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Uid: ").Append(Uid).Append("\n"); - sb.Append(" Userid: ").Append(Userid).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ActiveDirectoryUserDTO); - } - - /// - /// Returns true if ActiveDirectoryUserDTO instances are equal - /// - /// Instance of ActiveDirectoryUserDTO to be compared - /// Boolean - public bool Equals(ActiveDirectoryUserDTO input) - { - if (input == null) - return false; - - return - ( - this.SamAccountName == input.SamAccountName || - (this.SamAccountName != null && - this.SamAccountName.Equals(input.SamAccountName)) - ) && - ( - this.UserPrincipalName == input.UserPrincipalName || - (this.UserPrincipalName != null && - this.UserPrincipalName.Equals(input.UserPrincipalName)) - ) && - ( - this.GivenName == input.GivenName || - (this.GivenName != null && - this.GivenName.Equals(input.GivenName)) - ) && - ( - this.Cn == input.Cn || - (this.Cn != null && - this.Cn.Equals(input.Cn)) - ) && - ( - this.FullName == input.FullName || - (this.FullName != null && - this.FullName.Equals(input.FullName)) - ) && - ( - this.Mail == input.Mail || - (this.Mail != null && - this.Mail.Equals(input.Mail)) - ) && - ( - this.TelephoneNumber == input.TelephoneNumber || - (this.TelephoneNumber != null && - this.TelephoneNumber.Equals(input.TelephoneNumber)) - ) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.Sn == input.Sn || - (this.Sn != null && - this.Sn.Equals(input.Sn)) - ) && - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && - ( - this.Uid == input.Uid || - (this.Uid != null && - this.Uid.Equals(input.Uid)) - ) && - ( - this.Userid == input.Userid || - (this.Userid != null && - this.Userid.Equals(input.Userid)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SamAccountName != null) - hashCode = hashCode * 59 + this.SamAccountName.GetHashCode(); - if (this.UserPrincipalName != null) - hashCode = hashCode * 59 + this.UserPrincipalName.GetHashCode(); - if (this.GivenName != null) - hashCode = hashCode * 59 + this.GivenName.GetHashCode(); - if (this.Cn != null) - hashCode = hashCode * 59 + this.Cn.GetHashCode(); - if (this.FullName != null) - hashCode = hashCode * 59 + this.FullName.GetHashCode(); - if (this.Mail != null) - hashCode = hashCode * 59 + this.Mail.GetHashCode(); - if (this.TelephoneNumber != null) - hashCode = hashCode * 59 + this.TelephoneNumber.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Sn != null) - hashCode = hashCode * 59 + this.Sn.GetHashCode(); - if (this.DisplayName != null) - hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); - if (this.Uid != null) - hashCode = hashCode * 59 + this.Uid.GetHashCode(); - if (this.Userid != null) - hashCode = hashCode * 59 + this.Userid.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ActiveDirectoryUsersRequestDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ActiveDirectoryUsersRequestDTO.cs deleted file mode 100644 index 940d60b..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ActiveDirectoryUsersRequestDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for active directory users list request - /// - [DataContract] - public partial class ActiveDirectoryUsersRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Domain. - /// Username. - /// Password. - /// Possible values: 0: None 1: Secure 2: Encryption 2: Encryption 4: ReadonlyServer 16: Anonymous 32: FastBind 64: Signing 128: Sealing 256: Delegation 512: ServerBind . - public ActiveDirectoryUsersRequestDTO(string domain = default(string), string username = default(string), string password = default(string), int? authType = default(int?)) - { - this.Domain = domain; - this.Username = username; - this.Password = password; - this.AuthType = authType; - } - - /// - /// Domain - /// - /// Domain - [DataMember(Name="domain", EmitDefaultValue=false)] - public string Domain { get; set; } - - /// - /// Username - /// - /// Username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Possible values: 0: None 1: Secure 2: Encryption 2: Encryption 4: ReadonlyServer 16: Anonymous 32: FastBind 64: Signing 128: Sealing 256: Delegation 512: ServerBind - /// - /// Possible values: 0: None 1: Secure 2: Encryption 2: Encryption 4: ReadonlyServer 16: Anonymous 32: FastBind 64: Signing 128: Sealing 256: Delegation 512: ServerBind - [DataMember(Name="authType", EmitDefaultValue=false)] - public int? AuthType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ActiveDirectoryUsersRequestDTO {\n"); - sb.Append(" Domain: ").Append(Domain).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" AuthType: ").Append(AuthType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ActiveDirectoryUsersRequestDTO); - } - - /// - /// Returns true if ActiveDirectoryUsersRequestDTO instances are equal - /// - /// Instance of ActiveDirectoryUsersRequestDTO to be compared - /// Boolean - public bool Equals(ActiveDirectoryUsersRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Domain == input.Domain || - (this.Domain != null && - this.Domain.Equals(input.Domain)) - ) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.AuthType == input.AuthType || - (this.AuthType != null && - this.AuthType.Equals(input.AuthType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Domain != null) - hashCode = hashCode * 59 + this.Domain.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.AuthType != null) - hashCode = hashCode * 59 + this.AuthType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldBooleanDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldBooleanDTO.cs deleted file mode 100644 index ca8fb74..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldBooleanDTO.cs +++ /dev/null @@ -1,234 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of additional field for Boolean type - /// - [DataContract] - public partial class AdditionalFieldBooleanDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldBooleanDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldBooleanDTO(bool? value = default(bool?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldBooleanDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public bool? Value { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldBooleanDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldBooleanDTO); - } - - /// - /// Returns true if AdditionalFieldBooleanDTO instances are equal - /// - /// Instance of AdditionalFieldBooleanDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldBooleanDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldClasseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldClasseDTO.cs deleted file mode 100644 index 6997728..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldClasseDTO.cs +++ /dev/null @@ -1,438 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of additional field for Matrix type - /// - [DataContract] - public partial class AdditionalFieldClasseDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldClasseDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - /// List of search items. - /// Document Type for profiling. - /// Identifier of the profiling mask. - /// Identifier of the view. - /// Identifier Mask for view. - /// Identifier View for view. - /// Show all expanded items. - /// Only one item. - /// Columns to show. - /// Show command attachments. - /// Show command note. - /// Show command update profile. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldClasseDTO(List value = default(List), List composedValues = default(List), DocumentTypeBaseDTO documentType = default(DocumentTypeBaseDTO), string insertMaskId = default(string), string viewSearchId = default(string), string maskForViewId = default(string), string viewForViewId = default(string), bool? showExpanded = default(bool?), bool? singleElement = default(bool?), List columns = default(List), bool? showCommandAttachments = default(bool?), bool? showCommandNote = default(bool?), bool? showCommandUpdateProfile = default(bool?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldClasseDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook) - { - this.Value = value; - this.ComposedValues = composedValues; - this.DocumentType = documentType; - this.InsertMaskId = insertMaskId; - this.ViewSearchId = viewSearchId; - this.MaskForViewId = maskForViewId; - this.ViewForViewId = viewForViewId; - this.ShowExpanded = showExpanded; - this.SingleElement = singleElement; - this.Columns = columns; - this.ShowCommandAttachments = showCommandAttachments; - this.ShowCommandNote = showCommandNote; - this.ShowCommandUpdateProfile = showCommandUpdateProfile; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public List Value { get; set; } - - /// - /// List of search items - /// - /// List of search items - [DataMember(Name="composedValues", EmitDefaultValue=false)] - public List ComposedValues { get; set; } - - /// - /// Document Type for profiling - /// - /// Document Type for profiling - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeBaseDTO DocumentType { get; set; } - - /// - /// Identifier of the profiling mask - /// - /// Identifier of the profiling mask - [DataMember(Name="insertMaskId", EmitDefaultValue=false)] - public string InsertMaskId { get; set; } - - /// - /// Identifier of the view - /// - /// Identifier of the view - [DataMember(Name="viewSearchId", EmitDefaultValue=false)] - public string ViewSearchId { get; set; } - - /// - /// Identifier Mask for view - /// - /// Identifier Mask for view - [DataMember(Name="maskForViewId", EmitDefaultValue=false)] - public string MaskForViewId { get; set; } - - /// - /// Identifier View for view - /// - /// Identifier View for view - [DataMember(Name="viewForViewId", EmitDefaultValue=false)] - public string ViewForViewId { get; set; } - - /// - /// Show all expanded items - /// - /// Show all expanded items - [DataMember(Name="showExpanded", EmitDefaultValue=false)] - public bool? ShowExpanded { get; set; } - - /// - /// Only one item - /// - /// Only one item - [DataMember(Name="singleElement", EmitDefaultValue=false)] - public bool? SingleElement { get; set; } - - /// - /// Columns to show - /// - /// Columns to show - [DataMember(Name="columns", EmitDefaultValue=false)] - public List Columns { get; set; } - - /// - /// Show command attachments - /// - /// Show command attachments - [DataMember(Name="showCommandAttachments", EmitDefaultValue=false)] - public bool? ShowCommandAttachments { get; set; } - - /// - /// Show command note - /// - /// Show command note - [DataMember(Name="showCommandNote", EmitDefaultValue=false)] - public bool? ShowCommandNote { get; set; } - - /// - /// Show command update profile - /// - /// Show command update profile - [DataMember(Name="showCommandUpdateProfile", EmitDefaultValue=false)] - public bool? ShowCommandUpdateProfile { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldClasseDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" ComposedValues: ").Append(ComposedValues).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" InsertMaskId: ").Append(InsertMaskId).Append("\n"); - sb.Append(" ViewSearchId: ").Append(ViewSearchId).Append("\n"); - sb.Append(" MaskForViewId: ").Append(MaskForViewId).Append("\n"); - sb.Append(" ViewForViewId: ").Append(ViewForViewId).Append("\n"); - sb.Append(" ShowExpanded: ").Append(ShowExpanded).Append("\n"); - sb.Append(" SingleElement: ").Append(SingleElement).Append("\n"); - sb.Append(" Columns: ").Append(Columns).Append("\n"); - sb.Append(" ShowCommandAttachments: ").Append(ShowCommandAttachments).Append("\n"); - sb.Append(" ShowCommandNote: ").Append(ShowCommandNote).Append("\n"); - sb.Append(" ShowCommandUpdateProfile: ").Append(ShowCommandUpdateProfile).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldClasseDTO); - } - - /// - /// Returns true if AdditionalFieldClasseDTO instances are equal - /// - /// Instance of AdditionalFieldClasseDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldClasseDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - this.Value != null && - this.Value.SequenceEqual(input.Value) - ) && base.Equals(input) && - ( - this.ComposedValues == input.ComposedValues || - this.ComposedValues != null && - this.ComposedValues.SequenceEqual(input.ComposedValues) - ) && base.Equals(input) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && base.Equals(input) && - ( - this.InsertMaskId == input.InsertMaskId || - (this.InsertMaskId != null && - this.InsertMaskId.Equals(input.InsertMaskId)) - ) && base.Equals(input) && - ( - this.ViewSearchId == input.ViewSearchId || - (this.ViewSearchId != null && - this.ViewSearchId.Equals(input.ViewSearchId)) - ) && base.Equals(input) && - ( - this.MaskForViewId == input.MaskForViewId || - (this.MaskForViewId != null && - this.MaskForViewId.Equals(input.MaskForViewId)) - ) && base.Equals(input) && - ( - this.ViewForViewId == input.ViewForViewId || - (this.ViewForViewId != null && - this.ViewForViewId.Equals(input.ViewForViewId)) - ) && base.Equals(input) && - ( - this.ShowExpanded == input.ShowExpanded || - (this.ShowExpanded != null && - this.ShowExpanded.Equals(input.ShowExpanded)) - ) && base.Equals(input) && - ( - this.SingleElement == input.SingleElement || - (this.SingleElement != null && - this.SingleElement.Equals(input.SingleElement)) - ) && base.Equals(input) && - ( - this.Columns == input.Columns || - this.Columns != null && - this.Columns.SequenceEqual(input.Columns) - ) && base.Equals(input) && - ( - this.ShowCommandAttachments == input.ShowCommandAttachments || - (this.ShowCommandAttachments != null && - this.ShowCommandAttachments.Equals(input.ShowCommandAttachments)) - ) && base.Equals(input) && - ( - this.ShowCommandNote == input.ShowCommandNote || - (this.ShowCommandNote != null && - this.ShowCommandNote.Equals(input.ShowCommandNote)) - ) && base.Equals(input) && - ( - this.ShowCommandUpdateProfile == input.ShowCommandUpdateProfile || - (this.ShowCommandUpdateProfile != null && - this.ShowCommandUpdateProfile.Equals(input.ShowCommandUpdateProfile)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.ComposedValues != null) - hashCode = hashCode * 59 + this.ComposedValues.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.InsertMaskId != null) - hashCode = hashCode * 59 + this.InsertMaskId.GetHashCode(); - if (this.ViewSearchId != null) - hashCode = hashCode * 59 + this.ViewSearchId.GetHashCode(); - if (this.MaskForViewId != null) - hashCode = hashCode * 59 + this.MaskForViewId.GetHashCode(); - if (this.ViewForViewId != null) - hashCode = hashCode * 59 + this.ViewForViewId.GetHashCode(); - if (this.ShowExpanded != null) - hashCode = hashCode * 59 + this.ShowExpanded.GetHashCode(); - if (this.SingleElement != null) - hashCode = hashCode * 59 + this.SingleElement.GetHashCode(); - if (this.Columns != null) - hashCode = hashCode * 59 + this.Columns.GetHashCode(); - if (this.ShowCommandAttachments != null) - hashCode = hashCode * 59 + this.ShowCommandAttachments.GetHashCode(); - if (this.ShowCommandNote != null) - hashCode = hashCode * 59 + this.ShowCommandNote.GetHashCode(); - if (this.ShowCommandUpdateProfile != null) - hashCode = hashCode * 59 + this.ShowCommandUpdateProfile.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldComboDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldComboDTO.cs deleted file mode 100644 index 873b1c8..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldComboDTO.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of the additional field \"Combo\" - /// - [DataContract] - public partial class AdditionalFieldComboDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldComboDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values ​​limited to the list. - /// Value to display. - /// Value. - /// Maximum number of characters. - /// Maximum number of rows. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldComboDTO(bool? limitToList = default(bool?), string displayValue = default(string), string value = default(string), int? numMaxChar = default(int?), int? numRows = default(int?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldComboDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.LimitToList = limitToList; - this.DisplayValue = displayValue; - this.Value = value; - this.NumMaxChar = numMaxChar; - this.NumRows = numRows; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Possible values ​​limited to the list - /// - /// Possible values ​​limited to the list - [DataMember(Name="limitToList", EmitDefaultValue=false)] - public bool? LimitToList { get; set; } - - /// - /// Value to display - /// - /// Value to display - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Maximum number of rows - /// - /// Maximum number of rows - [DataMember(Name="numRows", EmitDefaultValue=false)] - public int? NumRows { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldComboDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" LimitToList: ").Append(LimitToList).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" NumRows: ").Append(NumRows).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldComboDTO); - } - - /// - /// Returns true if AdditionalFieldComboDTO instances are equal - /// - /// Instance of AdditionalFieldComboDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldComboDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.LimitToList == input.LimitToList || - (this.LimitToList != null && - this.LimitToList.Equals(input.LimitToList)) - ) && base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && base.Equals(input) && - ( - this.NumRows == input.NumRows || - (this.NumRows != null && - this.NumRows.Equals(input.NumRows)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.LimitToList != null) - hashCode = hashCode * 59 + this.LimitToList.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.NumRows != null) - hashCode = hashCode * 59 + this.NumRows.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldConfigurationComboDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldConfigurationComboDTO.cs deleted file mode 100644 index 29b6eb2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldConfigurationComboDTO.cs +++ /dev/null @@ -1,319 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of the additional field \"Combo\" - /// - [DataContract] - public partial class AdditionalFieldConfigurationComboDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldConfigurationComboDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// List of possible fields. - /// Possible values ​​limited to the list. - /// Value to display. - /// Value. - /// Maximum number of characters. - /// Maximum number of rows. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldConfigurationComboDTO(List values = default(List), bool? limitToList = default(bool?), string displayValue = default(string), string value = default(string), int? numMaxChar = default(int?), int? numRows = default(int?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldConfigurationComboDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Values = values; - this.LimitToList = limitToList; - this.DisplayValue = displayValue; - this.Value = value; - this.NumMaxChar = numMaxChar; - this.NumRows = numRows; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// List of possible fields - /// - /// List of possible fields - [DataMember(Name="values", EmitDefaultValue=false)] - public List Values { get; set; } - - /// - /// Possible values ​​limited to the list - /// - /// Possible values ​​limited to the list - [DataMember(Name="limitToList", EmitDefaultValue=false)] - public bool? LimitToList { get; set; } - - /// - /// Value to display - /// - /// Value to display - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Maximum number of rows - /// - /// Maximum number of rows - [DataMember(Name="numRows", EmitDefaultValue=false)] - public int? NumRows { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldConfigurationComboDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Values: ").Append(Values).Append("\n"); - sb.Append(" LimitToList: ").Append(LimitToList).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" NumRows: ").Append(NumRows).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldConfigurationComboDTO); - } - - /// - /// Returns true if AdditionalFieldConfigurationComboDTO instances are equal - /// - /// Instance of AdditionalFieldConfigurationComboDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldConfigurationComboDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Values == input.Values || - this.Values != null && - this.Values.SequenceEqual(input.Values) - ) && base.Equals(input) && - ( - this.LimitToList == input.LimitToList || - (this.LimitToList != null && - this.LimitToList.Equals(input.LimitToList)) - ) && base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && base.Equals(input) && - ( - this.NumRows == input.NumRows || - (this.NumRows != null && - this.NumRows.Equals(input.NumRows)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Values != null) - hashCode = hashCode * 59 + this.Values.GetHashCode(); - if (this.LimitToList != null) - hashCode = hashCode * 59 + this.LimitToList.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.NumRows != null) - hashCode = hashCode * 59 + this.NumRows.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldDTO.cs deleted file mode 100644 index 3888a23..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldDTO.cs +++ /dev/null @@ -1,217 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class if Additional Field - /// - [DataContract] - public partial class AdditionalFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldDTO(int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldDTO); - } - - /// - /// Returns true if AdditionalFieldDTO instances are equal - /// - /// Instance of AdditionalFieldDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldDateTimeDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldDateTimeDTO.cs deleted file mode 100644 index e9af741..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldDateTimeDTO.cs +++ /dev/null @@ -1,234 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of additional field for Datetime type - /// - [DataContract] - public partial class AdditionalFieldDateTimeDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldDateTimeDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldDateTimeDTO(DateTime? value = default(DateTime?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldDateTimeDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public DateTime? Value { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldDateTimeDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldDateTimeDTO); - } - - /// - /// Returns true if AdditionalFieldDateTimeDTO instances are equal - /// - /// Instance of AdditionalFieldDateTimeDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldDateTimeDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldDoubleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldDoubleDTO.cs deleted file mode 100644 index 0638102..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldDoubleDTO.cs +++ /dev/null @@ -1,251 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of additional field for Decimal type - /// - [DataContract] - public partial class AdditionalFieldDoubleDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldDoubleDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - /// Decimals number. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldDoubleDTO(double? value = default(double?), int? decimals = default(int?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldDoubleDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.Decimals = decimals; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public double? Value { get; set; } - - /// - /// Decimals number - /// - /// Decimals number - [DataMember(Name="decimals", EmitDefaultValue=false)] - public int? Decimals { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldDoubleDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" Decimals: ").Append(Decimals).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldDoubleDTO); - } - - /// - /// Returns true if AdditionalFieldDoubleDTO instances are equal - /// - /// Instance of AdditionalFieldDoubleDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldDoubleDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.Decimals == input.Decimals || - (this.Decimals != null && - this.Decimals.Equals(input.Decimals)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.Decimals != null) - hashCode = hashCode * 59 + this.Decimals.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldGroupDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldGroupDTO.cs deleted file mode 100644 index c0b54d6..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldGroupDTO.cs +++ /dev/null @@ -1,268 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of the additional field \"Group\" - /// - [DataContract] - public partial class AdditionalFieldGroupDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldGroupDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - /// Maximum number of characters. - /// Key. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldGroupDTO(string value = default(string), int? numMaxChar = default(int?), int? key = default(int?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldGroupDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.NumMaxChar = numMaxChar; - this.Key = key; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Key - /// - /// Key - [DataMember(Name="key", EmitDefaultValue=false)] - public int? Key { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldGroupDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldGroupDTO); - } - - /// - /// Returns true if AdditionalFieldGroupDTO instances are equal - /// - /// Instance of AdditionalFieldGroupDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldGroupDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && base.Equals(input) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldIntDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldIntDTO.cs deleted file mode 100644 index d762325..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldIntDTO.cs +++ /dev/null @@ -1,234 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Additional fields for Numeric type - /// - [DataContract] - public partial class AdditionalFieldIntDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldIntDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldIntDTO(int? value = default(int?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldIntDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public int? Value { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldIntDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldIntDTO); - } - - /// - /// Returns true if AdditionalFieldIntDTO instances are equal - /// - /// Instance of AdditionalFieldIntDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldIntDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementAssociationDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementAssociationDTO.cs deleted file mode 100644 index 5fdfff9..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementAssociationDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for additional field association - /// - [DataContract] - public partial class AdditionalFieldManagementAssociationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Source field. - /// Destination field. - public AdditionalFieldManagementAssociationDTO(string id = default(string), FieldManagementDTO sourceField = default(FieldManagementDTO), FieldManagementDTO destinationField = default(FieldManagementDTO)) - { - this.Id = id; - this.SourceField = sourceField; - this.DestinationField = destinationField; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Source field - /// - /// Source field - [DataMember(Name="sourceField", EmitDefaultValue=false)] - public FieldManagementDTO SourceField { get; set; } - - /// - /// Destination field - /// - /// Destination field - [DataMember(Name="destinationField", EmitDefaultValue=false)] - public FieldManagementDTO DestinationField { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementAssociationDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" SourceField: ").Append(SourceField).Append("\n"); - sb.Append(" DestinationField: ").Append(DestinationField).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementAssociationDTO); - } - - /// - /// Returns true if AdditionalFieldManagementAssociationDTO instances are equal - /// - /// Instance of AdditionalFieldManagementAssociationDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementAssociationDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.SourceField == input.SourceField || - (this.SourceField != null && - this.SourceField.Equals(input.SourceField)) - ) && - ( - this.DestinationField == input.DestinationField || - (this.DestinationField != null && - this.DestinationField.Equals(input.DestinationField)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.SourceField != null) - hashCode = hashCode * 59 + this.SourceField.GetHashCode(); - if (this.DestinationField != null) - hashCode = hashCode * 59 + this.DestinationField.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementBaseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementBaseDTO.cs deleted file mode 100644 index 5011e51..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementBaseDTO.cs +++ /dev/null @@ -1,345 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Base class of additional field for management - /// - [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldManagementStringDTO), "AdditionalFieldManagementStringDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldManagementComboDTO), "AdditionalFieldManagementComboDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldManagementMultivalueDTO), "AdditionalFieldManagementMultivalueDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldManagementNumericDTO), "AdditionalFieldManagementNumericDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldManagementDateTimeDTO), "AdditionalFieldManagementDateTimeDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldManagementTableDTO), "AdditionalFieldManagementTableDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldManagementClasseDTO), "AdditionalFieldManagementClasseDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldManagementBooleanDTO), "AdditionalFieldManagementBooleanDTO")] - public partial class AdditionalFieldManagementBaseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldManagementBaseDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Name of class (required). - /// Field key. - /// Field description. - /// Field group. - /// Document type. - /// Reference Identifier. - /// Order. - /// Required. - /// Visible. - /// External Id. - /// Formula. - /// Field description and errors translations. - public AdditionalFieldManagementBaseDTO(string className = default(string), string key = default(string), string description = default(string), FieldGroupSimpleDTO fieldGroup = default(FieldGroupSimpleDTO), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), string referenceId = default(string), int? order = default(int?), bool? required = default(bool?), bool? visible = default(bool?), string externalId = default(string), string formula = default(string), List translations = default(List)) - { - // to ensure "className" is required (not null) - if (className == null) - { - throw new InvalidDataException("className is a required property for AdditionalFieldManagementBaseDTO and cannot be null"); - } - else - { - this.ClassName = className; - } - this.Key = key; - this.Description = description; - this.FieldGroup = fieldGroup; - this.DocumentType = documentType; - this.ReferenceId = referenceId; - this.Order = order; - this.Required = required; - this.Visible = visible; - this.ExternalId = externalId; - this.Formula = formula; - this.Translations = translations; - } - - /// - /// Name of class - /// - /// Name of class - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Field key - /// - /// Field key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Field description - /// - /// Field description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Field group - /// - /// Field group - [DataMember(Name="fieldGroup", EmitDefaultValue=false)] - public FieldGroupSimpleDTO FieldGroup { get; set; } - - /// - /// Document type - /// - /// Document type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Reference Identifier - /// - /// Reference Identifier - [DataMember(Name="referenceId", EmitDefaultValue=false)] - public string ReferenceId { get; set; } - - /// - /// Order - /// - /// Order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// Required - /// - /// Required - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Visible - /// - /// Visible - [DataMember(Name="visible", EmitDefaultValue=false)] - public bool? Visible { get; set; } - - /// - /// External Id - /// - /// External Id - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Formula - /// - /// Formula - [DataMember(Name="formula", EmitDefaultValue=false)] - public string Formula { get; set; } - - /// - /// Field description and errors translations - /// - /// Field description and errors translations - [DataMember(Name="translations", EmitDefaultValue=false)] - public List Translations { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementBaseDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" FieldGroup: ").Append(FieldGroup).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" Visible: ").Append(Visible).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Formula: ").Append(Formula).Append("\n"); - sb.Append(" Translations: ").Append(Translations).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementBaseDTO); - } - - /// - /// Returns true if AdditionalFieldManagementBaseDTO instances are equal - /// - /// Instance of AdditionalFieldManagementBaseDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementBaseDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.FieldGroup == input.FieldGroup || - (this.FieldGroup != null && - this.FieldGroup.Equals(input.FieldGroup)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.ReferenceId == input.ReferenceId || - (this.ReferenceId != null && - this.ReferenceId.Equals(input.ReferenceId)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.Visible == input.Visible || - (this.Visible != null && - this.Visible.Equals(input.Visible)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Formula == input.Formula || - (this.Formula != null && - this.Formula.Equals(input.Formula)) - ) && - ( - this.Translations == input.Translations || - this.Translations != null && - this.Translations.SequenceEqual(input.Translations) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.FieldGroup != null) - hashCode = hashCode * 59 + this.FieldGroup.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.ReferenceId != null) - hashCode = hashCode * 59 + this.ReferenceId.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.Visible != null) - hashCode = hashCode * 59 + this.Visible.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Formula != null) - hashCode = hashCode * 59 + this.Formula.GetHashCode(); - if (this.Translations != null) - hashCode = hashCode * 59 + this.Translations.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementBooleanDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementBooleanDTO.cs deleted file mode 100644 index f1b3f11..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementBooleanDTO.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for additional field of type Boolean/CheckBox - /// - [DataContract] - public partial class AdditionalFieldManagementBooleanDTO : AdditionalFieldManagementBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldManagementBooleanDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Locked in read-only. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string formula. - public AdditionalFieldManagementBooleanDTO(bool? locked = default(bool?), int? validationType = default(int?), string validationString = default(string), string className = "AdditionalFieldManagementBooleanDTO", string key = default(string), string description = default(string), FieldGroupSimpleDTO fieldGroup = default(FieldGroupSimpleDTO), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), string referenceId = default(string), int? order = default(int?), bool? required = default(bool?), bool? visible = default(bool?), string externalId = default(string), string formula = default(string), List translations = default(List)) : base(className, key, description, fieldGroup, documentType, referenceId, order, required, visible, externalId, formula, translations) - { - this.Locked = locked; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Locked in read-only - /// - /// Locked in read-only - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string formula - /// - /// Validation string formula - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementBooleanDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementBooleanDTO); - } - - /// - /// Returns true if AdditionalFieldManagementBooleanDTO instances are equal - /// - /// Instance of AdditionalFieldManagementBooleanDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementBooleanDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementClasseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementClasseDTO.cs deleted file mode 100644 index c227d84..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementClasseDTO.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for additional field of type ClasseBox - /// - [DataContract] - public partial class AdditionalFieldManagementClasseDTO : AdditionalFieldManagementBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldManagementClasseDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Cascade 1: Owned . - /// Linked document type. - /// Mask for insert. - /// Mask for view. - /// View for view. - /// View for search. - /// Show expanded. - /// Single element. - /// Show command attachments. - /// Show command note. - /// Show command update profile. - public AdditionalFieldManagementClasseDTO(int? deleteRule = default(int?), DocumentTypeSimpleDTO linkedDocumentType = default(DocumentTypeSimpleDTO), MaskSimpleDTO maskForInsert = default(MaskSimpleDTO), MaskSimpleDTO maskForView = default(MaskSimpleDTO), ViewSimpleDTO viewForView = default(ViewSimpleDTO), ViewSimpleDTO viewForSearch = default(ViewSimpleDTO), bool? showExpanded = default(bool?), bool? singleElement = default(bool?), bool? showCommandAttachments = default(bool?), bool? showCommandNote = default(bool?), bool? showCommandUpdateProfile = default(bool?), string className = "AdditionalFieldManagementClasseDTO", string key = default(string), string description = default(string), FieldGroupSimpleDTO fieldGroup = default(FieldGroupSimpleDTO), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), string referenceId = default(string), int? order = default(int?), bool? required = default(bool?), bool? visible = default(bool?), string externalId = default(string), string formula = default(string), List translations = default(List)) : base(className, key, description, fieldGroup, documentType, referenceId, order, required, visible, externalId, formula, translations) - { - this.DeleteRule = deleteRule; - this.LinkedDocumentType = linkedDocumentType; - this.MaskForInsert = maskForInsert; - this.MaskForView = maskForView; - this.ViewForView = viewForView; - this.ViewForSearch = viewForSearch; - this.ShowExpanded = showExpanded; - this.SingleElement = singleElement; - this.ShowCommandAttachments = showCommandAttachments; - this.ShowCommandNote = showCommandNote; - this.ShowCommandUpdateProfile = showCommandUpdateProfile; - } - - /// - /// Possible values: 0: Cascade 1: Owned - /// - /// Possible values: 0: Cascade 1: Owned - [DataMember(Name="deleteRule", EmitDefaultValue=false)] - public int? DeleteRule { get; set; } - - /// - /// Linked document type - /// - /// Linked document type - [DataMember(Name="linkedDocumentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO LinkedDocumentType { get; set; } - - /// - /// Mask for insert - /// - /// Mask for insert - [DataMember(Name="maskForInsert", EmitDefaultValue=false)] - public MaskSimpleDTO MaskForInsert { get; set; } - - /// - /// Mask for view - /// - /// Mask for view - [DataMember(Name="maskForView", EmitDefaultValue=false)] - public MaskSimpleDTO MaskForView { get; set; } - - /// - /// View for view - /// - /// View for view - [DataMember(Name="viewForView", EmitDefaultValue=false)] - public ViewSimpleDTO ViewForView { get; set; } - - /// - /// View for search - /// - /// View for search - [DataMember(Name="viewForSearch", EmitDefaultValue=false)] - public ViewSimpleDTO ViewForSearch { get; set; } - - /// - /// Show expanded - /// - /// Show expanded - [DataMember(Name="showExpanded", EmitDefaultValue=false)] - public bool? ShowExpanded { get; set; } - - /// - /// Single element - /// - /// Single element - [DataMember(Name="singleElement", EmitDefaultValue=false)] - public bool? SingleElement { get; set; } - - /// - /// Show command attachments - /// - /// Show command attachments - [DataMember(Name="showCommandAttachments", EmitDefaultValue=false)] - public bool? ShowCommandAttachments { get; set; } - - /// - /// Show command note - /// - /// Show command note - [DataMember(Name="showCommandNote", EmitDefaultValue=false)] - public bool? ShowCommandNote { get; set; } - - /// - /// Show command update profile - /// - /// Show command update profile - [DataMember(Name="showCommandUpdateProfile", EmitDefaultValue=false)] - public bool? ShowCommandUpdateProfile { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementClasseDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DeleteRule: ").Append(DeleteRule).Append("\n"); - sb.Append(" LinkedDocumentType: ").Append(LinkedDocumentType).Append("\n"); - sb.Append(" MaskForInsert: ").Append(MaskForInsert).Append("\n"); - sb.Append(" MaskForView: ").Append(MaskForView).Append("\n"); - sb.Append(" ViewForView: ").Append(ViewForView).Append("\n"); - sb.Append(" ViewForSearch: ").Append(ViewForSearch).Append("\n"); - sb.Append(" ShowExpanded: ").Append(ShowExpanded).Append("\n"); - sb.Append(" SingleElement: ").Append(SingleElement).Append("\n"); - sb.Append(" ShowCommandAttachments: ").Append(ShowCommandAttachments).Append("\n"); - sb.Append(" ShowCommandNote: ").Append(ShowCommandNote).Append("\n"); - sb.Append(" ShowCommandUpdateProfile: ").Append(ShowCommandUpdateProfile).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementClasseDTO); - } - - /// - /// Returns true if AdditionalFieldManagementClasseDTO instances are equal - /// - /// Instance of AdditionalFieldManagementClasseDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementClasseDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DeleteRule == input.DeleteRule || - (this.DeleteRule != null && - this.DeleteRule.Equals(input.DeleteRule)) - ) && base.Equals(input) && - ( - this.LinkedDocumentType == input.LinkedDocumentType || - (this.LinkedDocumentType != null && - this.LinkedDocumentType.Equals(input.LinkedDocumentType)) - ) && base.Equals(input) && - ( - this.MaskForInsert == input.MaskForInsert || - (this.MaskForInsert != null && - this.MaskForInsert.Equals(input.MaskForInsert)) - ) && base.Equals(input) && - ( - this.MaskForView == input.MaskForView || - (this.MaskForView != null && - this.MaskForView.Equals(input.MaskForView)) - ) && base.Equals(input) && - ( - this.ViewForView == input.ViewForView || - (this.ViewForView != null && - this.ViewForView.Equals(input.ViewForView)) - ) && base.Equals(input) && - ( - this.ViewForSearch == input.ViewForSearch || - (this.ViewForSearch != null && - this.ViewForSearch.Equals(input.ViewForSearch)) - ) && base.Equals(input) && - ( - this.ShowExpanded == input.ShowExpanded || - (this.ShowExpanded != null && - this.ShowExpanded.Equals(input.ShowExpanded)) - ) && base.Equals(input) && - ( - this.SingleElement == input.SingleElement || - (this.SingleElement != null && - this.SingleElement.Equals(input.SingleElement)) - ) && base.Equals(input) && - ( - this.ShowCommandAttachments == input.ShowCommandAttachments || - (this.ShowCommandAttachments != null && - this.ShowCommandAttachments.Equals(input.ShowCommandAttachments)) - ) && base.Equals(input) && - ( - this.ShowCommandNote == input.ShowCommandNote || - (this.ShowCommandNote != null && - this.ShowCommandNote.Equals(input.ShowCommandNote)) - ) && base.Equals(input) && - ( - this.ShowCommandUpdateProfile == input.ShowCommandUpdateProfile || - (this.ShowCommandUpdateProfile != null && - this.ShowCommandUpdateProfile.Equals(input.ShowCommandUpdateProfile)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DeleteRule != null) - hashCode = hashCode * 59 + this.DeleteRule.GetHashCode(); - if (this.LinkedDocumentType != null) - hashCode = hashCode * 59 + this.LinkedDocumentType.GetHashCode(); - if (this.MaskForInsert != null) - hashCode = hashCode * 59 + this.MaskForInsert.GetHashCode(); - if (this.MaskForView != null) - hashCode = hashCode * 59 + this.MaskForView.GetHashCode(); - if (this.ViewForView != null) - hashCode = hashCode * 59 + this.ViewForView.GetHashCode(); - if (this.ViewForSearch != null) - hashCode = hashCode * 59 + this.ViewForSearch.GetHashCode(); - if (this.ShowExpanded != null) - hashCode = hashCode * 59 + this.ShowExpanded.GetHashCode(); - if (this.SingleElement != null) - hashCode = hashCode * 59 + this.SingleElement.GetHashCode(); - if (this.ShowCommandAttachments != null) - hashCode = hashCode * 59 + this.ShowCommandAttachments.GetHashCode(); - if (this.ShowCommandNote != null) - hashCode = hashCode * 59 + this.ShowCommandNote.GetHashCode(); - if (this.ShowCommandUpdateProfile != null) - hashCode = hashCode * 59 + this.ShowCommandUpdateProfile.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementCloneOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementCloneOptionsDTO.cs deleted file mode 100644 index a01ef46..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementCloneOptionsDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for additional field cloning options for copy/paste or cut/paste - /// - [DataContract] - public partial class AdditionalFieldManagementCloneOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Additional field identifier. - /// Document type identifier source. - /// Document type identifier destination. - /// Boolean that is true if you intend to delete the source field. - /// Boolean that is true if you intend to copy also original references. It is handled only if DeleteOriginalField is false, otherwise the references are automatically copied if they exist. - public AdditionalFieldManagementCloneOptionsDTO(string key = default(string), int? originalDocumentTypeId = default(int?), int? newDocumentTypeId = default(int?), bool? deleteOriginalField = default(bool?), bool? copyReferences = default(bool?)) - { - this.Key = key; - this.OriginalDocumentTypeId = originalDocumentTypeId; - this.NewDocumentTypeId = newDocumentTypeId; - this.DeleteOriginalField = deleteOriginalField; - this.CopyReferences = copyReferences; - } - - /// - /// Additional field identifier - /// - /// Additional field identifier - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Document type identifier source - /// - /// Document type identifier source - [DataMember(Name="originalDocumentTypeId", EmitDefaultValue=false)] - public int? OriginalDocumentTypeId { get; set; } - - /// - /// Document type identifier destination - /// - /// Document type identifier destination - [DataMember(Name="newDocumentTypeId", EmitDefaultValue=false)] - public int? NewDocumentTypeId { get; set; } - - /// - /// Boolean that is true if you intend to delete the source field - /// - /// Boolean that is true if you intend to delete the source field - [DataMember(Name="deleteOriginalField", EmitDefaultValue=false)] - public bool? DeleteOriginalField { get; set; } - - /// - /// Boolean that is true if you intend to copy also original references. It is handled only if DeleteOriginalField is false, otherwise the references are automatically copied if they exist - /// - /// Boolean that is true if you intend to copy also original references. It is handled only if DeleteOriginalField is false, otherwise the references are automatically copied if they exist - [DataMember(Name="copyReferences", EmitDefaultValue=false)] - public bool? CopyReferences { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementCloneOptionsDTO {\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" OriginalDocumentTypeId: ").Append(OriginalDocumentTypeId).Append("\n"); - sb.Append(" NewDocumentTypeId: ").Append(NewDocumentTypeId).Append("\n"); - sb.Append(" DeleteOriginalField: ").Append(DeleteOriginalField).Append("\n"); - sb.Append(" CopyReferences: ").Append(CopyReferences).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementCloneOptionsDTO); - } - - /// - /// Returns true if AdditionalFieldManagementCloneOptionsDTO instances are equal - /// - /// Instance of AdditionalFieldManagementCloneOptionsDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementCloneOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.OriginalDocumentTypeId == input.OriginalDocumentTypeId || - (this.OriginalDocumentTypeId != null && - this.OriginalDocumentTypeId.Equals(input.OriginalDocumentTypeId)) - ) && - ( - this.NewDocumentTypeId == input.NewDocumentTypeId || - (this.NewDocumentTypeId != null && - this.NewDocumentTypeId.Equals(input.NewDocumentTypeId)) - ) && - ( - this.DeleteOriginalField == input.DeleteOriginalField || - (this.DeleteOriginalField != null && - this.DeleteOriginalField.Equals(input.DeleteOriginalField)) - ) && - ( - this.CopyReferences == input.CopyReferences || - (this.CopyReferences != null && - this.CopyReferences.Equals(input.CopyReferences)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.OriginalDocumentTypeId != null) - hashCode = hashCode * 59 + this.OriginalDocumentTypeId.GetHashCode(); - if (this.NewDocumentTypeId != null) - hashCode = hashCode * 59 + this.NewDocumentTypeId.GetHashCode(); - if (this.DeleteOriginalField != null) - hashCode = hashCode * 59 + this.DeleteOriginalField.GetHashCode(); - if (this.CopyReferences != null) - hashCode = hashCode * 59 + this.CopyReferences.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementComboDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementComboDTO.cs deleted file mode 100644 index b0db1f9..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementComboDTO.cs +++ /dev/null @@ -1,370 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for additional field of type ComboBox - /// - [DataContract] - public partial class AdditionalFieldManagementComboDTO : AdditionalFieldManagementBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldManagementComboDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Data group. - /// Maximum number of characters. - /// Possible values limited to the list. - /// Automatic insert. - /// Autocomplete. - /// Autocomplete character. - /// Possible values: 0: Left 1: Right -1: None . - /// Field locked (readonly). - /// Enable field value encryption. - /// Enable field transcoding. - /// Transcoding: Table name. - /// Transcoding: Field name for code. - /// Transcoding: Field name for description. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (formula/regex). - public AdditionalFieldManagementComboDTO(DataGroupSimpleDTO dataGroup = default(DataGroupSimpleDTO), int? numMaxChar = default(int?), bool? limitToList = default(bool?), bool? autoinsert = default(bool?), bool? autocomplete = default(bool?), string autocompleteCharacter = default(string), int? autocompleteAlign = default(int?), bool? locked = default(bool?), bool? encryption = default(bool?), bool? transcoding = default(bool?), string tableName = default(string), string codeFieldName = default(string), string descriptionFieldName = default(string), int? validationType = default(int?), string validationString = default(string), string className = "AdditionalFieldManagementComboDTO", string key = default(string), string description = default(string), FieldGroupSimpleDTO fieldGroup = default(FieldGroupSimpleDTO), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), string referenceId = default(string), int? order = default(int?), bool? required = default(bool?), bool? visible = default(bool?), string externalId = default(string), string formula = default(string), List translations = default(List)) : base(className, key, description, fieldGroup, documentType, referenceId, order, required, visible, externalId, formula, translations) - { - this.DataGroup = dataGroup; - this.NumMaxChar = numMaxChar; - this.LimitToList = limitToList; - this.Autoinsert = autoinsert; - this.Autocomplete = autocomplete; - this.AutocompleteCharacter = autocompleteCharacter; - this.AutocompleteAlign = autocompleteAlign; - this.Locked = locked; - this.Encryption = encryption; - this.Transcoding = transcoding; - this.TableName = tableName; - this.CodeFieldName = codeFieldName; - this.DescriptionFieldName = descriptionFieldName; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Data group - /// - /// Data group - [DataMember(Name="dataGroup", EmitDefaultValue=false)] - public DataGroupSimpleDTO DataGroup { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Possible values limited to the list - /// - /// Possible values limited to the list - [DataMember(Name="limitToList", EmitDefaultValue=false)] - public bool? LimitToList { get; set; } - - /// - /// Automatic insert - /// - /// Automatic insert - [DataMember(Name="autoinsert", EmitDefaultValue=false)] - public bool? Autoinsert { get; set; } - - /// - /// Autocomplete - /// - /// Autocomplete - [DataMember(Name="autocomplete", EmitDefaultValue=false)] - public bool? Autocomplete { get; set; } - - /// - /// Autocomplete character - /// - /// Autocomplete character - [DataMember(Name="autocompleteCharacter", EmitDefaultValue=false)] - public string AutocompleteCharacter { get; set; } - - /// - /// Possible values: 0: Left 1: Right -1: None - /// - /// Possible values: 0: Left 1: Right -1: None - [DataMember(Name="autocompleteAlign", EmitDefaultValue=false)] - public int? AutocompleteAlign { get; set; } - - /// - /// Field locked (readonly) - /// - /// Field locked (readonly) - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Enable field value encryption - /// - /// Enable field value encryption - [DataMember(Name="encryption", EmitDefaultValue=false)] - public bool? Encryption { get; set; } - - /// - /// Enable field transcoding - /// - /// Enable field transcoding - [DataMember(Name="transcoding", EmitDefaultValue=false)] - public bool? Transcoding { get; set; } - - /// - /// Transcoding: Table name - /// - /// Transcoding: Table name - [DataMember(Name="tableName", EmitDefaultValue=false)] - public string TableName { get; set; } - - /// - /// Transcoding: Field name for code - /// - /// Transcoding: Field name for code - [DataMember(Name="codeFieldName", EmitDefaultValue=false)] - public string CodeFieldName { get; set; } - - /// - /// Transcoding: Field name for description - /// - /// Transcoding: Field name for description - [DataMember(Name="descriptionFieldName", EmitDefaultValue=false)] - public string DescriptionFieldName { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (formula/regex) - /// - /// Validation string (formula/regex) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementComboDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DataGroup: ").Append(DataGroup).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" LimitToList: ").Append(LimitToList).Append("\n"); - sb.Append(" Autoinsert: ").Append(Autoinsert).Append("\n"); - sb.Append(" Autocomplete: ").Append(Autocomplete).Append("\n"); - sb.Append(" AutocompleteCharacter: ").Append(AutocompleteCharacter).Append("\n"); - sb.Append(" AutocompleteAlign: ").Append(AutocompleteAlign).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" Encryption: ").Append(Encryption).Append("\n"); - sb.Append(" Transcoding: ").Append(Transcoding).Append("\n"); - sb.Append(" TableName: ").Append(TableName).Append("\n"); - sb.Append(" CodeFieldName: ").Append(CodeFieldName).Append("\n"); - sb.Append(" DescriptionFieldName: ").Append(DescriptionFieldName).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementComboDTO); - } - - /// - /// Returns true if AdditionalFieldManagementComboDTO instances are equal - /// - /// Instance of AdditionalFieldManagementComboDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementComboDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DataGroup == input.DataGroup || - (this.DataGroup != null && - this.DataGroup.Equals(input.DataGroup)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && base.Equals(input) && - ( - this.LimitToList == input.LimitToList || - (this.LimitToList != null && - this.LimitToList.Equals(input.LimitToList)) - ) && base.Equals(input) && - ( - this.Autoinsert == input.Autoinsert || - (this.Autoinsert != null && - this.Autoinsert.Equals(input.Autoinsert)) - ) && base.Equals(input) && - ( - this.Autocomplete == input.Autocomplete || - (this.Autocomplete != null && - this.Autocomplete.Equals(input.Autocomplete)) - ) && base.Equals(input) && - ( - this.AutocompleteCharacter == input.AutocompleteCharacter || - (this.AutocompleteCharacter != null && - this.AutocompleteCharacter.Equals(input.AutocompleteCharacter)) - ) && base.Equals(input) && - ( - this.AutocompleteAlign == input.AutocompleteAlign || - (this.AutocompleteAlign != null && - this.AutocompleteAlign.Equals(input.AutocompleteAlign)) - ) && base.Equals(input) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && base.Equals(input) && - ( - this.Encryption == input.Encryption || - (this.Encryption != null && - this.Encryption.Equals(input.Encryption)) - ) && base.Equals(input) && - ( - this.Transcoding == input.Transcoding || - (this.Transcoding != null && - this.Transcoding.Equals(input.Transcoding)) - ) && base.Equals(input) && - ( - this.TableName == input.TableName || - (this.TableName != null && - this.TableName.Equals(input.TableName)) - ) && base.Equals(input) && - ( - this.CodeFieldName == input.CodeFieldName || - (this.CodeFieldName != null && - this.CodeFieldName.Equals(input.CodeFieldName)) - ) && base.Equals(input) && - ( - this.DescriptionFieldName == input.DescriptionFieldName || - (this.DescriptionFieldName != null && - this.DescriptionFieldName.Equals(input.DescriptionFieldName)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DataGroup != null) - hashCode = hashCode * 59 + this.DataGroup.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.LimitToList != null) - hashCode = hashCode * 59 + this.LimitToList.GetHashCode(); - if (this.Autoinsert != null) - hashCode = hashCode * 59 + this.Autoinsert.GetHashCode(); - if (this.Autocomplete != null) - hashCode = hashCode * 59 + this.Autocomplete.GetHashCode(); - if (this.AutocompleteCharacter != null) - hashCode = hashCode * 59 + this.AutocompleteCharacter.GetHashCode(); - if (this.AutocompleteAlign != null) - hashCode = hashCode * 59 + this.AutocompleteAlign.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.Encryption != null) - hashCode = hashCode * 59 + this.Encryption.GetHashCode(); - if (this.Transcoding != null) - hashCode = hashCode * 59 + this.Transcoding.GetHashCode(); - if (this.TableName != null) - hashCode = hashCode * 59 + this.TableName.GetHashCode(); - if (this.CodeFieldName != null) - hashCode = hashCode * 59 + this.CodeFieldName.GetHashCode(); - if (this.DescriptionFieldName != null) - hashCode = hashCode * 59 + this.DescriptionFieldName.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementDateTimeDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementDateTimeDTO.cs deleted file mode 100644 index 2ef5cd7..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementDateTimeDTO.cs +++ /dev/null @@ -1,285 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for additional field of type DateBox - /// - [DataContract] - public partial class AdditionalFieldManagementDateTimeDTO : AdditionalFieldManagementBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldManagementDateTimeDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Autocomplete. - /// Autocomplete character. - /// Possible values: 0: Left 1: Right -1: None . - /// Field locked (readonly). - /// Enable field value encryption. - /// Enable field transcoding. - /// Transcoding: Field name for code. - /// Transcoding: Field name for description. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (formula/regex). - public AdditionalFieldManagementDateTimeDTO(bool? autocomplete = default(bool?), string autocompleteCharacter = default(string), int? autocompleteAlign = default(int?), bool? locked = default(bool?), bool? transcoding = default(bool?), string tableName = default(string), string codeFieldName = default(string), string descriptionFieldName = default(string), int? validationType = default(int?), string validationString = default(string), string className = "AdditionalFieldManagementDateTimeDTO", string key = default(string), string description = default(string), FieldGroupSimpleDTO fieldGroup = default(FieldGroupSimpleDTO), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), string referenceId = default(string), int? order = default(int?), bool? required = default(bool?), bool? visible = default(bool?), string externalId = default(string), string formula = default(string), List translations = default(List)) : base(className, key, description, fieldGroup, documentType, referenceId, order, required, visible, externalId, formula, translations) - { - this.Autocomplete = autocomplete; - this.AutocompleteCharacter = autocompleteCharacter; - this.AutocompleteAlign = autocompleteAlign; - this.Locked = locked; - this.Transcoding = transcoding; - this.TableName = tableName; - this.CodeFieldName = codeFieldName; - this.DescriptionFieldName = descriptionFieldName; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Autocomplete - /// - /// Autocomplete - [DataMember(Name="autocomplete", EmitDefaultValue=false)] - public bool? Autocomplete { get; set; } - - /// - /// Autocomplete character - /// - /// Autocomplete character - [DataMember(Name="autocompleteCharacter", EmitDefaultValue=false)] - public string AutocompleteCharacter { get; set; } - - /// - /// Possible values: 0: Left 1: Right -1: None - /// - /// Possible values: 0: Left 1: Right -1: None - [DataMember(Name="autocompleteAlign", EmitDefaultValue=false)] - public int? AutocompleteAlign { get; set; } - - /// - /// Field locked (readonly) - /// - /// Field locked (readonly) - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Enable field value encryption - /// - /// Enable field value encryption - [DataMember(Name="transcoding", EmitDefaultValue=false)] - public bool? Transcoding { get; set; } - - /// - /// Enable field transcoding - /// - /// Enable field transcoding - [DataMember(Name="tableName", EmitDefaultValue=false)] - public string TableName { get; set; } - - /// - /// Transcoding: Field name for code - /// - /// Transcoding: Field name for code - [DataMember(Name="codeFieldName", EmitDefaultValue=false)] - public string CodeFieldName { get; set; } - - /// - /// Transcoding: Field name for description - /// - /// Transcoding: Field name for description - [DataMember(Name="descriptionFieldName", EmitDefaultValue=false)] - public string DescriptionFieldName { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (formula/regex) - /// - /// Validation string (formula/regex) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementDateTimeDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Autocomplete: ").Append(Autocomplete).Append("\n"); - sb.Append(" AutocompleteCharacter: ").Append(AutocompleteCharacter).Append("\n"); - sb.Append(" AutocompleteAlign: ").Append(AutocompleteAlign).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" Transcoding: ").Append(Transcoding).Append("\n"); - sb.Append(" TableName: ").Append(TableName).Append("\n"); - sb.Append(" CodeFieldName: ").Append(CodeFieldName).Append("\n"); - sb.Append(" DescriptionFieldName: ").Append(DescriptionFieldName).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementDateTimeDTO); - } - - /// - /// Returns true if AdditionalFieldManagementDateTimeDTO instances are equal - /// - /// Instance of AdditionalFieldManagementDateTimeDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementDateTimeDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Autocomplete == input.Autocomplete || - (this.Autocomplete != null && - this.Autocomplete.Equals(input.Autocomplete)) - ) && base.Equals(input) && - ( - this.AutocompleteCharacter == input.AutocompleteCharacter || - (this.AutocompleteCharacter != null && - this.AutocompleteCharacter.Equals(input.AutocompleteCharacter)) - ) && base.Equals(input) && - ( - this.AutocompleteAlign == input.AutocompleteAlign || - (this.AutocompleteAlign != null && - this.AutocompleteAlign.Equals(input.AutocompleteAlign)) - ) && base.Equals(input) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && base.Equals(input) && - ( - this.Transcoding == input.Transcoding || - (this.Transcoding != null && - this.Transcoding.Equals(input.Transcoding)) - ) && base.Equals(input) && - ( - this.TableName == input.TableName || - (this.TableName != null && - this.TableName.Equals(input.TableName)) - ) && base.Equals(input) && - ( - this.CodeFieldName == input.CodeFieldName || - (this.CodeFieldName != null && - this.CodeFieldName.Equals(input.CodeFieldName)) - ) && base.Equals(input) && - ( - this.DescriptionFieldName == input.DescriptionFieldName || - (this.DescriptionFieldName != null && - this.DescriptionFieldName.Equals(input.DescriptionFieldName)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Autocomplete != null) - hashCode = hashCode * 59 + this.Autocomplete.GetHashCode(); - if (this.AutocompleteCharacter != null) - hashCode = hashCode * 59 + this.AutocompleteCharacter.GetHashCode(); - if (this.AutocompleteAlign != null) - hashCode = hashCode * 59 + this.AutocompleteAlign.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.Transcoding != null) - hashCode = hashCode * 59 + this.Transcoding.GetHashCode(); - if (this.TableName != null) - hashCode = hashCode * 59 + this.TableName.GetHashCode(); - if (this.CodeFieldName != null) - hashCode = hashCode * 59 + this.CodeFieldName.GetHashCode(); - if (this.DescriptionFieldName != null) - hashCode = hashCode * 59 + this.DescriptionFieldName.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementMultivalueDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementMultivalueDTO.cs deleted file mode 100644 index e5c1098..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementMultivalueDTO.cs +++ /dev/null @@ -1,251 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for additional field of type MultiValue - /// - [DataContract] - public partial class AdditionalFieldManagementMultivalueDTO : AdditionalFieldManagementBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldManagementMultivalueDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Data group. - /// Maximum number of characters. - /// Possible values​limited to the list. - /// Automatic insert. - /// Autocomplete. - /// Autocomplete character. - /// Possible values: 0: Left 1: Right -1: None . - /// Field locked (readonly). - public AdditionalFieldManagementMultivalueDTO(DataGroupSimpleDTO dataGroup = default(DataGroupSimpleDTO), int? numMaxChar = default(int?), bool? limitToList = default(bool?), bool? autoinsert = default(bool?), bool? autocomplete = default(bool?), string autocompleteCharacter = default(string), int? autocompleteAlign = default(int?), bool? locked = default(bool?), string className = "AdditionalFieldManagementMultivalueDTO", string key = default(string), string description = default(string), FieldGroupSimpleDTO fieldGroup = default(FieldGroupSimpleDTO), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), string referenceId = default(string), int? order = default(int?), bool? required = default(bool?), bool? visible = default(bool?), string externalId = default(string), string formula = default(string), List translations = default(List)) : base(className, key, description, fieldGroup, documentType, referenceId, order, required, visible, externalId, formula, translations) - { - this.DataGroup = dataGroup; - this.NumMaxChar = numMaxChar; - this.LimitToList = limitToList; - this.Autoinsert = autoinsert; - this.Autocomplete = autocomplete; - this.AutocompleteCharacter = autocompleteCharacter; - this.AutocompleteAlign = autocompleteAlign; - this.Locked = locked; - } - - /// - /// Data group - /// - /// Data group - [DataMember(Name="dataGroup", EmitDefaultValue=false)] - public DataGroupSimpleDTO DataGroup { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Possible values​limited to the list - /// - /// Possible values​limited to the list - [DataMember(Name="limitToList", EmitDefaultValue=false)] - public bool? LimitToList { get; set; } - - /// - /// Automatic insert - /// - /// Automatic insert - [DataMember(Name="autoinsert", EmitDefaultValue=false)] - public bool? Autoinsert { get; set; } - - /// - /// Autocomplete - /// - /// Autocomplete - [DataMember(Name="autocomplete", EmitDefaultValue=false)] - public bool? Autocomplete { get; set; } - - /// - /// Autocomplete character - /// - /// Autocomplete character - [DataMember(Name="autocompleteCharacter", EmitDefaultValue=false)] - public string AutocompleteCharacter { get; set; } - - /// - /// Possible values: 0: Left 1: Right -1: None - /// - /// Possible values: 0: Left 1: Right -1: None - [DataMember(Name="autocompleteAlign", EmitDefaultValue=false)] - public int? AutocompleteAlign { get; set; } - - /// - /// Field locked (readonly) - /// - /// Field locked (readonly) - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementMultivalueDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DataGroup: ").Append(DataGroup).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" LimitToList: ").Append(LimitToList).Append("\n"); - sb.Append(" Autoinsert: ").Append(Autoinsert).Append("\n"); - sb.Append(" Autocomplete: ").Append(Autocomplete).Append("\n"); - sb.Append(" AutocompleteCharacter: ").Append(AutocompleteCharacter).Append("\n"); - sb.Append(" AutocompleteAlign: ").Append(AutocompleteAlign).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementMultivalueDTO); - } - - /// - /// Returns true if AdditionalFieldManagementMultivalueDTO instances are equal - /// - /// Instance of AdditionalFieldManagementMultivalueDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementMultivalueDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DataGroup == input.DataGroup || - (this.DataGroup != null && - this.DataGroup.Equals(input.DataGroup)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && base.Equals(input) && - ( - this.LimitToList == input.LimitToList || - (this.LimitToList != null && - this.LimitToList.Equals(input.LimitToList)) - ) && base.Equals(input) && - ( - this.Autoinsert == input.Autoinsert || - (this.Autoinsert != null && - this.Autoinsert.Equals(input.Autoinsert)) - ) && base.Equals(input) && - ( - this.Autocomplete == input.Autocomplete || - (this.Autocomplete != null && - this.Autocomplete.Equals(input.Autocomplete)) - ) && base.Equals(input) && - ( - this.AutocompleteCharacter == input.AutocompleteCharacter || - (this.AutocompleteCharacter != null && - this.AutocompleteCharacter.Equals(input.AutocompleteCharacter)) - ) && base.Equals(input) && - ( - this.AutocompleteAlign == input.AutocompleteAlign || - (this.AutocompleteAlign != null && - this.AutocompleteAlign.Equals(input.AutocompleteAlign)) - ) && base.Equals(input) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DataGroup != null) - hashCode = hashCode * 59 + this.DataGroup.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.LimitToList != null) - hashCode = hashCode * 59 + this.LimitToList.GetHashCode(); - if (this.Autoinsert != null) - hashCode = hashCode * 59 + this.Autoinsert.GetHashCode(); - if (this.Autocomplete != null) - hashCode = hashCode * 59 + this.Autocomplete.GetHashCode(); - if (this.AutocompleteCharacter != null) - hashCode = hashCode * 59 + this.AutocompleteCharacter.GetHashCode(); - if (this.AutocompleteAlign != null) - hashCode = hashCode * 59 + this.AutocompleteAlign.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementNumericDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementNumericDTO.cs deleted file mode 100644 index d5d7503..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementNumericDTO.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for additional field of type Numeric - /// - [DataContract] - public partial class AdditionalFieldManagementNumericDTO : AdditionalFieldManagementBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldManagementNumericDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Decimals number. - /// Autocomplete. - /// Autocomplete character. - /// Possible values: 0: Left 1: Right -1: None . - /// Si definisce se il campo è bloccato per l'inserimento di un valore. - /// Enable field transcoding. - /// Transcoding: Table name. - /// Transcoding: Field name for code. - /// Transcoding: Field name for description. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (formula/regex). - public AdditionalFieldManagementNumericDTO(int? decimals = default(int?), bool? autocomplete = default(bool?), string autocompleteCharacter = default(string), int? autocompleteAlign = default(int?), bool? locked = default(bool?), bool? transcoding = default(bool?), string tableName = default(string), string codeFieldName = default(string), string descriptionFieldName = default(string), int? validationType = default(int?), string validationString = default(string), string className = "AdditionalFieldManagementNumericDTO", string key = default(string), string description = default(string), FieldGroupSimpleDTO fieldGroup = default(FieldGroupSimpleDTO), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), string referenceId = default(string), int? order = default(int?), bool? required = default(bool?), bool? visible = default(bool?), string externalId = default(string), string formula = default(string), List translations = default(List)) : base(className, key, description, fieldGroup, documentType, referenceId, order, required, visible, externalId, formula, translations) - { - this.Decimals = decimals; - this.Autocomplete = autocomplete; - this.AutocompleteCharacter = autocompleteCharacter; - this.AutocompleteAlign = autocompleteAlign; - this.Locked = locked; - this.Transcoding = transcoding; - this.TableName = tableName; - this.CodeFieldName = codeFieldName; - this.DescriptionFieldName = descriptionFieldName; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Decimals number - /// - /// Decimals number - [DataMember(Name="decimals", EmitDefaultValue=false)] - public int? Decimals { get; set; } - - /// - /// Autocomplete - /// - /// Autocomplete - [DataMember(Name="autocomplete", EmitDefaultValue=false)] - public bool? Autocomplete { get; set; } - - /// - /// Autocomplete character - /// - /// Autocomplete character - [DataMember(Name="autocompleteCharacter", EmitDefaultValue=false)] - public string AutocompleteCharacter { get; set; } - - /// - /// Possible values: 0: Left 1: Right -1: None - /// - /// Possible values: 0: Left 1: Right -1: None - [DataMember(Name="autocompleteAlign", EmitDefaultValue=false)] - public int? AutocompleteAlign { get; set; } - - /// - /// Si definisce se il campo è bloccato per l'inserimento di un valore - /// - /// Si definisce se il campo è bloccato per l'inserimento di un valore - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Enable field transcoding - /// - /// Enable field transcoding - [DataMember(Name="transcoding", EmitDefaultValue=false)] - public bool? Transcoding { get; set; } - - /// - /// Transcoding: Table name - /// - /// Transcoding: Table name - [DataMember(Name="tableName", EmitDefaultValue=false)] - public string TableName { get; set; } - - /// - /// Transcoding: Field name for code - /// - /// Transcoding: Field name for code - [DataMember(Name="codeFieldName", EmitDefaultValue=false)] - public string CodeFieldName { get; set; } - - /// - /// Transcoding: Field name for description - /// - /// Transcoding: Field name for description - [DataMember(Name="descriptionFieldName", EmitDefaultValue=false)] - public string DescriptionFieldName { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (formula/regex) - /// - /// Validation string (formula/regex) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementNumericDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Decimals: ").Append(Decimals).Append("\n"); - sb.Append(" Autocomplete: ").Append(Autocomplete).Append("\n"); - sb.Append(" AutocompleteCharacter: ").Append(AutocompleteCharacter).Append("\n"); - sb.Append(" AutocompleteAlign: ").Append(AutocompleteAlign).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" Transcoding: ").Append(Transcoding).Append("\n"); - sb.Append(" TableName: ").Append(TableName).Append("\n"); - sb.Append(" CodeFieldName: ").Append(CodeFieldName).Append("\n"); - sb.Append(" DescriptionFieldName: ").Append(DescriptionFieldName).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementNumericDTO); - } - - /// - /// Returns true if AdditionalFieldManagementNumericDTO instances are equal - /// - /// Instance of AdditionalFieldManagementNumericDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementNumericDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Decimals == input.Decimals || - (this.Decimals != null && - this.Decimals.Equals(input.Decimals)) - ) && base.Equals(input) && - ( - this.Autocomplete == input.Autocomplete || - (this.Autocomplete != null && - this.Autocomplete.Equals(input.Autocomplete)) - ) && base.Equals(input) && - ( - this.AutocompleteCharacter == input.AutocompleteCharacter || - (this.AutocompleteCharacter != null && - this.AutocompleteCharacter.Equals(input.AutocompleteCharacter)) - ) && base.Equals(input) && - ( - this.AutocompleteAlign == input.AutocompleteAlign || - (this.AutocompleteAlign != null && - this.AutocompleteAlign.Equals(input.AutocompleteAlign)) - ) && base.Equals(input) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && base.Equals(input) && - ( - this.Transcoding == input.Transcoding || - (this.Transcoding != null && - this.Transcoding.Equals(input.Transcoding)) - ) && base.Equals(input) && - ( - this.TableName == input.TableName || - (this.TableName != null && - this.TableName.Equals(input.TableName)) - ) && base.Equals(input) && - ( - this.CodeFieldName == input.CodeFieldName || - (this.CodeFieldName != null && - this.CodeFieldName.Equals(input.CodeFieldName)) - ) && base.Equals(input) && - ( - this.DescriptionFieldName == input.DescriptionFieldName || - (this.DescriptionFieldName != null && - this.DescriptionFieldName.Equals(input.DescriptionFieldName)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Decimals != null) - hashCode = hashCode * 59 + this.Decimals.GetHashCode(); - if (this.Autocomplete != null) - hashCode = hashCode * 59 + this.Autocomplete.GetHashCode(); - if (this.AutocompleteCharacter != null) - hashCode = hashCode * 59 + this.AutocompleteCharacter.GetHashCode(); - if (this.AutocompleteAlign != null) - hashCode = hashCode * 59 + this.AutocompleteAlign.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.Transcoding != null) - hashCode = hashCode * 59 + this.Transcoding.GetHashCode(); - if (this.TableName != null) - hashCode = hashCode * 59 + this.TableName.GetHashCode(); - if (this.CodeFieldName != null) - hashCode = hashCode * 59 + this.CodeFieldName.GetHashCode(); - if (this.DescriptionFieldName != null) - hashCode = hashCode * 59 + this.DescriptionFieldName.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementReferenceDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementReferenceDTO.cs deleted file mode 100644 index 980dd4d..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementReferenceDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for additional field reference - /// - [DataContract] - public partial class AdditionalFieldManagementReferenceDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document type of the additional reference field. - /// Key of the additional reference field. - public AdditionalFieldManagementReferenceDTO(int? documentTypeId = default(int?), string field = default(string)) - { - this.DocumentTypeId = documentTypeId; - this.Field = field; - } - - /// - /// Document type of the additional reference field - /// - /// Document type of the additional reference field - [DataMember(Name="documentTypeId", EmitDefaultValue=false)] - public int? DocumentTypeId { get; set; } - - /// - /// Key of the additional reference field - /// - /// Key of the additional reference field - [DataMember(Name="field", EmitDefaultValue=false)] - public string Field { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementReferenceDTO {\n"); - sb.Append(" DocumentTypeId: ").Append(DocumentTypeId).Append("\n"); - sb.Append(" Field: ").Append(Field).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementReferenceDTO); - } - - /// - /// Returns true if AdditionalFieldManagementReferenceDTO instances are equal - /// - /// Instance of AdditionalFieldManagementReferenceDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementReferenceDTO input) - { - if (input == null) - return false; - - return - ( - this.DocumentTypeId == input.DocumentTypeId || - (this.DocumentTypeId != null && - this.DocumentTypeId.Equals(input.DocumentTypeId)) - ) && - ( - this.Field == input.Field || - (this.Field != null && - this.Field.Equals(input.Field)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentTypeId != null) - hashCode = hashCode * 59 + this.DocumentTypeId.GetHashCode(); - if (this.Field != null) - hashCode = hashCode * 59 + this.Field.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementStringDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementStringDTO.cs deleted file mode 100644 index 650db57..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementStringDTO.cs +++ /dev/null @@ -1,336 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for additional field of type TextBox - /// - [DataContract] - public partial class AdditionalFieldManagementStringDTO : AdditionalFieldManagementBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldManagementStringDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Maximum number of characters. - /// Maximum number of rows. - /// Autocomplete. - /// Autocomplete character. - /// Possible values: 0: Left 1: Right -1: None . - /// Field locked (readonly). - /// Enable field value encryption. - /// Enable field transcoding. - /// Transcoding: Table name. - /// Transcoding: Field name for code. - /// Transcoding: Field name for description. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (formula/regex). - public AdditionalFieldManagementStringDTO(int? numMaxChar = default(int?), int? numRows = default(int?), bool? autocomplete = default(bool?), string autocompleteCharacter = default(string), int? autocompleteAlign = default(int?), bool? locked = default(bool?), bool? encryption = default(bool?), bool? transcoding = default(bool?), string tableName = default(string), string codeFieldName = default(string), string descriptionFieldName = default(string), int? validationType = default(int?), string validationString = default(string), string className = "AdditionalFieldManagementStringDTO", string key = default(string), string description = default(string), FieldGroupSimpleDTO fieldGroup = default(FieldGroupSimpleDTO), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), string referenceId = default(string), int? order = default(int?), bool? required = default(bool?), bool? visible = default(bool?), string externalId = default(string), string formula = default(string), List translations = default(List)) : base(className, key, description, fieldGroup, documentType, referenceId, order, required, visible, externalId, formula, translations) - { - this.NumMaxChar = numMaxChar; - this.NumRows = numRows; - this.Autocomplete = autocomplete; - this.AutocompleteCharacter = autocompleteCharacter; - this.AutocompleteAlign = autocompleteAlign; - this.Locked = locked; - this.Encryption = encryption; - this.Transcoding = transcoding; - this.TableName = tableName; - this.CodeFieldName = codeFieldName; - this.DescriptionFieldName = descriptionFieldName; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Maximum number of rows - /// - /// Maximum number of rows - [DataMember(Name="numRows", EmitDefaultValue=false)] - public int? NumRows { get; set; } - - /// - /// Autocomplete - /// - /// Autocomplete - [DataMember(Name="autocomplete", EmitDefaultValue=false)] - public bool? Autocomplete { get; set; } - - /// - /// Autocomplete character - /// - /// Autocomplete character - [DataMember(Name="autocompleteCharacter", EmitDefaultValue=false)] - public string AutocompleteCharacter { get; set; } - - /// - /// Possible values: 0: Left 1: Right -1: None - /// - /// Possible values: 0: Left 1: Right -1: None - [DataMember(Name="autocompleteAlign", EmitDefaultValue=false)] - public int? AutocompleteAlign { get; set; } - - /// - /// Field locked (readonly) - /// - /// Field locked (readonly) - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Enable field value encryption - /// - /// Enable field value encryption - [DataMember(Name="encryption", EmitDefaultValue=false)] - public bool? Encryption { get; set; } - - /// - /// Enable field transcoding - /// - /// Enable field transcoding - [DataMember(Name="transcoding", EmitDefaultValue=false)] - public bool? Transcoding { get; set; } - - /// - /// Transcoding: Table name - /// - /// Transcoding: Table name - [DataMember(Name="tableName", EmitDefaultValue=false)] - public string TableName { get; set; } - - /// - /// Transcoding: Field name for code - /// - /// Transcoding: Field name for code - [DataMember(Name="codeFieldName", EmitDefaultValue=false)] - public string CodeFieldName { get; set; } - - /// - /// Transcoding: Field name for description - /// - /// Transcoding: Field name for description - [DataMember(Name="descriptionFieldName", EmitDefaultValue=false)] - public string DescriptionFieldName { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (formula/regex) - /// - /// Validation string (formula/regex) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementStringDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" NumRows: ").Append(NumRows).Append("\n"); - sb.Append(" Autocomplete: ").Append(Autocomplete).Append("\n"); - sb.Append(" AutocompleteCharacter: ").Append(AutocompleteCharacter).Append("\n"); - sb.Append(" AutocompleteAlign: ").Append(AutocompleteAlign).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" Encryption: ").Append(Encryption).Append("\n"); - sb.Append(" Transcoding: ").Append(Transcoding).Append("\n"); - sb.Append(" TableName: ").Append(TableName).Append("\n"); - sb.Append(" CodeFieldName: ").Append(CodeFieldName).Append("\n"); - sb.Append(" DescriptionFieldName: ").Append(DescriptionFieldName).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementStringDTO); - } - - /// - /// Returns true if AdditionalFieldManagementStringDTO instances are equal - /// - /// Instance of AdditionalFieldManagementStringDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementStringDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && base.Equals(input) && - ( - this.NumRows == input.NumRows || - (this.NumRows != null && - this.NumRows.Equals(input.NumRows)) - ) && base.Equals(input) && - ( - this.Autocomplete == input.Autocomplete || - (this.Autocomplete != null && - this.Autocomplete.Equals(input.Autocomplete)) - ) && base.Equals(input) && - ( - this.AutocompleteCharacter == input.AutocompleteCharacter || - (this.AutocompleteCharacter != null && - this.AutocompleteCharacter.Equals(input.AutocompleteCharacter)) - ) && base.Equals(input) && - ( - this.AutocompleteAlign == input.AutocompleteAlign || - (this.AutocompleteAlign != null && - this.AutocompleteAlign.Equals(input.AutocompleteAlign)) - ) && base.Equals(input) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && base.Equals(input) && - ( - this.Encryption == input.Encryption || - (this.Encryption != null && - this.Encryption.Equals(input.Encryption)) - ) && base.Equals(input) && - ( - this.Transcoding == input.Transcoding || - (this.Transcoding != null && - this.Transcoding.Equals(input.Transcoding)) - ) && base.Equals(input) && - ( - this.TableName == input.TableName || - (this.TableName != null && - this.TableName.Equals(input.TableName)) - ) && base.Equals(input) && - ( - this.CodeFieldName == input.CodeFieldName || - (this.CodeFieldName != null && - this.CodeFieldName.Equals(input.CodeFieldName)) - ) && base.Equals(input) && - ( - this.DescriptionFieldName == input.DescriptionFieldName || - (this.DescriptionFieldName != null && - this.DescriptionFieldName.Equals(input.DescriptionFieldName)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.NumRows != null) - hashCode = hashCode * 59 + this.NumRows.GetHashCode(); - if (this.Autocomplete != null) - hashCode = hashCode * 59 + this.Autocomplete.GetHashCode(); - if (this.AutocompleteCharacter != null) - hashCode = hashCode * 59 + this.AutocompleteCharacter.GetHashCode(); - if (this.AutocompleteAlign != null) - hashCode = hashCode * 59 + this.AutocompleteAlign.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.Encryption != null) - hashCode = hashCode * 59 + this.Encryption.GetHashCode(); - if (this.Transcoding != null) - hashCode = hashCode * 59 + this.Transcoding.GetHashCode(); - if (this.TableName != null) - hashCode = hashCode * 59 + this.TableName.GetHashCode(); - if (this.CodeFieldName != null) - hashCode = hashCode * 59 + this.CodeFieldName.GetHashCode(); - if (this.DescriptionFieldName != null) - hashCode = hashCode * 59 + this.DescriptionFieldName.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementTableDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementTableDTO.cs deleted file mode 100644 index a215e78..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementTableDTO.cs +++ /dev/null @@ -1,353 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for additional field of type TableBox - /// - [DataContract] - public partial class AdditionalFieldManagementTableDTO : AdditionalFieldManagementBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldManagementTableDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Data group. - /// Maximum number of characters. - /// Possible values limited to the list. - /// Autocomplete. - /// Autocomplete character. - /// Possible values: 0: Left 1: Right -1: None . - /// Field locked (readonly). - /// Enable field value encryption. - /// Enable field transcoding. - /// Transcoding: Table name. - /// Transcoding: Field name for code. - /// Transcoding: Field name for description. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (formula/regex). - public AdditionalFieldManagementTableDTO(DataGroupSimpleDTO dataGroup = default(DataGroupSimpleDTO), int? numMaxChar = default(int?), bool? limitToList = default(bool?), bool? autocomplete = default(bool?), string autocompleteCharacter = default(string), int? autocompleteAlign = default(int?), bool? locked = default(bool?), bool? encryption = default(bool?), bool? transcoding = default(bool?), string tableName = default(string), string codeFieldName = default(string), string descriptionFieldName = default(string), int? validationType = default(int?), string validationString = default(string), string className = "AdditionalFieldManagementTableDTO", string key = default(string), string description = default(string), FieldGroupSimpleDTO fieldGroup = default(FieldGroupSimpleDTO), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), string referenceId = default(string), int? order = default(int?), bool? required = default(bool?), bool? visible = default(bool?), string externalId = default(string), string formula = default(string), List translations = default(List)) : base(className, key, description, fieldGroup, documentType, referenceId, order, required, visible, externalId, formula, translations) - { - this.DataGroup = dataGroup; - this.NumMaxChar = numMaxChar; - this.LimitToList = limitToList; - this.Autocomplete = autocomplete; - this.AutocompleteCharacter = autocompleteCharacter; - this.AutocompleteAlign = autocompleteAlign; - this.Locked = locked; - this.Encryption = encryption; - this.Transcoding = transcoding; - this.TableName = tableName; - this.CodeFieldName = codeFieldName; - this.DescriptionFieldName = descriptionFieldName; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Data group - /// - /// Data group - [DataMember(Name="dataGroup", EmitDefaultValue=false)] - public DataGroupSimpleDTO DataGroup { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Possible values limited to the list - /// - /// Possible values limited to the list - [DataMember(Name="limitToList", EmitDefaultValue=false)] - public bool? LimitToList { get; set; } - - /// - /// Autocomplete - /// - /// Autocomplete - [DataMember(Name="autocomplete", EmitDefaultValue=false)] - public bool? Autocomplete { get; set; } - - /// - /// Autocomplete character - /// - /// Autocomplete character - [DataMember(Name="autocompleteCharacter", EmitDefaultValue=false)] - public string AutocompleteCharacter { get; set; } - - /// - /// Possible values: 0: Left 1: Right -1: None - /// - /// Possible values: 0: Left 1: Right -1: None - [DataMember(Name="autocompleteAlign", EmitDefaultValue=false)] - public int? AutocompleteAlign { get; set; } - - /// - /// Field locked (readonly) - /// - /// Field locked (readonly) - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Enable field value encryption - /// - /// Enable field value encryption - [DataMember(Name="encryption", EmitDefaultValue=false)] - public bool? Encryption { get; set; } - - /// - /// Enable field transcoding - /// - /// Enable field transcoding - [DataMember(Name="transcoding", EmitDefaultValue=false)] - public bool? Transcoding { get; set; } - - /// - /// Transcoding: Table name - /// - /// Transcoding: Table name - [DataMember(Name="tableName", EmitDefaultValue=false)] - public string TableName { get; set; } - - /// - /// Transcoding: Field name for code - /// - /// Transcoding: Field name for code - [DataMember(Name="codeFieldName", EmitDefaultValue=false)] - public string CodeFieldName { get; set; } - - /// - /// Transcoding: Field name for description - /// - /// Transcoding: Field name for description - [DataMember(Name="descriptionFieldName", EmitDefaultValue=false)] - public string DescriptionFieldName { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (formula/regex) - /// - /// Validation string (formula/regex) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementTableDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DataGroup: ").Append(DataGroup).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" LimitToList: ").Append(LimitToList).Append("\n"); - sb.Append(" Autocomplete: ").Append(Autocomplete).Append("\n"); - sb.Append(" AutocompleteCharacter: ").Append(AutocompleteCharacter).Append("\n"); - sb.Append(" AutocompleteAlign: ").Append(AutocompleteAlign).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" Encryption: ").Append(Encryption).Append("\n"); - sb.Append(" Transcoding: ").Append(Transcoding).Append("\n"); - sb.Append(" TableName: ").Append(TableName).Append("\n"); - sb.Append(" CodeFieldName: ").Append(CodeFieldName).Append("\n"); - sb.Append(" DescriptionFieldName: ").Append(DescriptionFieldName).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementTableDTO); - } - - /// - /// Returns true if AdditionalFieldManagementTableDTO instances are equal - /// - /// Instance of AdditionalFieldManagementTableDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementTableDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DataGroup == input.DataGroup || - (this.DataGroup != null && - this.DataGroup.Equals(input.DataGroup)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && base.Equals(input) && - ( - this.LimitToList == input.LimitToList || - (this.LimitToList != null && - this.LimitToList.Equals(input.LimitToList)) - ) && base.Equals(input) && - ( - this.Autocomplete == input.Autocomplete || - (this.Autocomplete != null && - this.Autocomplete.Equals(input.Autocomplete)) - ) && base.Equals(input) && - ( - this.AutocompleteCharacter == input.AutocompleteCharacter || - (this.AutocompleteCharacter != null && - this.AutocompleteCharacter.Equals(input.AutocompleteCharacter)) - ) && base.Equals(input) && - ( - this.AutocompleteAlign == input.AutocompleteAlign || - (this.AutocompleteAlign != null && - this.AutocompleteAlign.Equals(input.AutocompleteAlign)) - ) && base.Equals(input) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && base.Equals(input) && - ( - this.Encryption == input.Encryption || - (this.Encryption != null && - this.Encryption.Equals(input.Encryption)) - ) && base.Equals(input) && - ( - this.Transcoding == input.Transcoding || - (this.Transcoding != null && - this.Transcoding.Equals(input.Transcoding)) - ) && base.Equals(input) && - ( - this.TableName == input.TableName || - (this.TableName != null && - this.TableName.Equals(input.TableName)) - ) && base.Equals(input) && - ( - this.CodeFieldName == input.CodeFieldName || - (this.CodeFieldName != null && - this.CodeFieldName.Equals(input.CodeFieldName)) - ) && base.Equals(input) && - ( - this.DescriptionFieldName == input.DescriptionFieldName || - (this.DescriptionFieldName != null && - this.DescriptionFieldName.Equals(input.DescriptionFieldName)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DataGroup != null) - hashCode = hashCode * 59 + this.DataGroup.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.LimitToList != null) - hashCode = hashCode * 59 + this.LimitToList.GetHashCode(); - if (this.Autocomplete != null) - hashCode = hashCode * 59 + this.Autocomplete.GetHashCode(); - if (this.AutocompleteCharacter != null) - hashCode = hashCode * 59 + this.AutocompleteCharacter.GetHashCode(); - if (this.AutocompleteAlign != null) - hashCode = hashCode * 59 + this.AutocompleteAlign.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.Encryption != null) - hashCode = hashCode * 59 + this.Encryption.GetHashCode(); - if (this.Transcoding != null) - hashCode = hashCode * 59 + this.Transcoding.GetHashCode(); - if (this.TableName != null) - hashCode = hashCode * 59 + this.TableName.GetHashCode(); - if (this.CodeFieldName != null) - hashCode = hashCode * 59 + this.CodeFieldName.GetHashCode(); - if (this.DescriptionFieldName != null) - hashCode = hashCode * 59 + this.DescriptionFieldName.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementTranslationDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementTranslationDTO.cs deleted file mode 100644 index 1e4e570..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldManagementTranslationDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of field translation - /// - [DataContract] - public partial class AdditionalFieldManagementTranslationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Description 1: ErrorValidation . - /// Language code. - /// Translation. - public AdditionalFieldManagementTranslationDTO(int? type = default(int?), string langCode = default(string), string value = default(string)) - { - this.Type = type; - this.LangCode = langCode; - this.Value = value; - } - - /// - /// Possible values: 0: Description 1: ErrorValidation - /// - /// Possible values: 0: Description 1: ErrorValidation - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Language code - /// - /// Language code - [DataMember(Name="langCode", EmitDefaultValue=false)] - public string LangCode { get; set; } - - /// - /// Translation - /// - /// Translation - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldManagementTranslationDTO {\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" LangCode: ").Append(LangCode).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldManagementTranslationDTO); - } - - /// - /// Returns true if AdditionalFieldManagementTranslationDTO instances are equal - /// - /// Instance of AdditionalFieldManagementTranslationDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldManagementTranslationDTO input) - { - if (input == null) - return false; - - return - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.LangCode == input.LangCode || - (this.LangCode != null && - this.LangCode.Equals(input.LangCode)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.LangCode != null) - hashCode = hashCode * 59 + this.LangCode.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldMultivalueDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldMultivalueDTO.cs deleted file mode 100644 index 0a0b6aa..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldMultivalueDTO.cs +++ /dev/null @@ -1,268 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Multivalue additional field - /// - [DataContract] - public partial class AdditionalFieldMultivalueDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldMultivalueDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Values to display. - /// Value. - /// Possible values ​​limited to the list. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldMultivalueDTO(List displayValue = default(List), List value = default(List), bool? limitToList = default(bool?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldMultivalueDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.DisplayValue = displayValue; - this.Value = value; - this.LimitToList = limitToList; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Values to display - /// - /// Values to display - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public List DisplayValue { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public List Value { get; set; } - - /// - /// Possible values ​​limited to the list - /// - /// Possible values ​​limited to the list - [DataMember(Name="limitToList", EmitDefaultValue=false)] - public bool? LimitToList { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldMultivalueDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" LimitToList: ").Append(LimitToList).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldMultivalueDTO); - } - - /// - /// Returns true if AdditionalFieldMultivalueDTO instances are equal - /// - /// Instance of AdditionalFieldMultivalueDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldMultivalueDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - this.DisplayValue != null && - this.DisplayValue.SequenceEqual(input.DisplayValue) - ) && base.Equals(input) && - ( - this.Value == input.Value || - this.Value != null && - this.Value.SequenceEqual(input.Value) - ) && base.Equals(input) && - ( - this.LimitToList == input.LimitToList || - (this.LimitToList != null && - this.LimitToList.Equals(input.LimitToList)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.LimitToList != null) - hashCode = hashCode * 59 + this.LimitToList.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldStringDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldStringDTO.cs deleted file mode 100644 index a5c8526..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldStringDTO.cs +++ /dev/null @@ -1,285 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of the additional field \"String\" - /// - [DataContract] - public partial class AdditionalFieldStringDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldStringDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value to display. - /// Value. - /// Maximum number of characters. - /// Maximum number of rows. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldStringDTO(string displayValue = default(string), string value = default(string), int? numMaxChar = default(int?), int? numRows = default(int?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldStringDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.DisplayValue = displayValue; - this.Value = value; - this.NumMaxChar = numMaxChar; - this.NumRows = numRows; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Value to display - /// - /// Value to display - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Maximum number of rows - /// - /// Maximum number of rows - [DataMember(Name="numRows", EmitDefaultValue=false)] - public int? NumRows { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldStringDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" NumRows: ").Append(NumRows).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldStringDTO); - } - - /// - /// Returns true if AdditionalFieldStringDTO instances are equal - /// - /// Instance of AdditionalFieldStringDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldStringDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && base.Equals(input) && - ( - this.NumRows == input.NumRows || - (this.NumRows != null && - this.NumRows.Equals(input.NumRows)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.NumRows != null) - hashCode = hashCode * 59 + this.NumRows.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldTableDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldTableDTO.cs deleted file mode 100644 index 139adcf..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AdditionalFieldTableDTO.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of the additional field \"Table\" - /// - [DataContract] - public partial class AdditionalFieldTableDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AdditionalFieldTableDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values ​​limited to the list. - /// Value to display. - /// Value. - /// Maximum number of characters. - /// Maximum number of rows. - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Group Identifier. - /// Binder Field Identifier. - /// Variable Identifier in taskword context. - /// Possible values: 0: None 1: Regex 2: Formula . - /// Validation string (regex or formula). - public AdditionalFieldTableDTO(bool? limitToList = default(bool?), string displayValue = default(string), string value = default(string), int? numMaxChar = default(int?), int? numRows = default(int?), int? additionalFieldType = default(int?), int? groupId = default(int?), int? binderFieldId = default(int?), int? taskWorkVariableId = default(int?), int? validationType = default(int?), string validationString = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AdditionalFieldTableDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.LimitToList = limitToList; - this.DisplayValue = displayValue; - this.Value = value; - this.NumMaxChar = numMaxChar; - this.NumRows = numRows; - this.AdditionalFieldType = additionalFieldType; - this.GroupId = groupId; - this.BinderFieldId = binderFieldId; - this.TaskWorkVariableId = taskWorkVariableId; - this.ValidationType = validationType; - this.ValidationString = validationString; - } - - /// - /// Possible values ​​limited to the list - /// - /// Possible values ​​limited to the list - [DataMember(Name="limitToList", EmitDefaultValue=false)] - public bool? LimitToList { get; set; } - - /// - /// Value to display - /// - /// Value to display - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Maximum number of characters - /// - /// Maximum number of characters - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Maximum number of rows - /// - /// Maximum number of rows - [DataMember(Name="numRows", EmitDefaultValue=false)] - public int? NumRows { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Binder Field Identifier - /// - /// Binder Field Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Variable Identifier in taskword context - /// - /// Variable Identifier in taskword context - [DataMember(Name="taskWorkVariableId", EmitDefaultValue=false)] - public int? TaskWorkVariableId { get; set; } - - /// - /// Possible values: 0: None 1: Regex 2: Formula - /// - /// Possible values: 0: None 1: Regex 2: Formula - [DataMember(Name="validationType", EmitDefaultValue=false)] - public int? ValidationType { get; set; } - - /// - /// Validation string (regex or formula) - /// - /// Validation string (regex or formula) - [DataMember(Name="validationString", EmitDefaultValue=false)] - public string ValidationString { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalFieldTableDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" LimitToList: ").Append(LimitToList).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append(" NumRows: ").Append(NumRows).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" TaskWorkVariableId: ").Append(TaskWorkVariableId).Append("\n"); - sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); - sb.Append(" ValidationString: ").Append(ValidationString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdditionalFieldTableDTO); - } - - /// - /// Returns true if AdditionalFieldTableDTO instances are equal - /// - /// Instance of AdditionalFieldTableDTO to be compared - /// Boolean - public bool Equals(AdditionalFieldTableDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.LimitToList == input.LimitToList || - (this.LimitToList != null && - this.LimitToList.Equals(input.LimitToList)) - ) && base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ) && base.Equals(input) && - ( - this.NumRows == input.NumRows || - (this.NumRows != null && - this.NumRows.Equals(input.NumRows)) - ) && base.Equals(input) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && base.Equals(input) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && base.Equals(input) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && base.Equals(input) && - ( - this.TaskWorkVariableId == input.TaskWorkVariableId || - (this.TaskWorkVariableId != null && - this.TaskWorkVariableId.Equals(input.TaskWorkVariableId)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - (this.ValidationType != null && - this.ValidationType.Equals(input.ValidationType)) - ) && base.Equals(input) && - ( - this.ValidationString == input.ValidationString || - (this.ValidationString != null && - this.ValidationString.Equals(input.ValidationString)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.LimitToList != null) - hashCode = hashCode * 59 + this.LimitToList.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - if (this.NumRows != null) - hashCode = hashCode * 59 + this.NumRows.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.TaskWorkVariableId != null) - hashCode = hashCode * 59 + this.TaskWorkVariableId.GetHashCode(); - if (this.ValidationType != null) - hashCode = hashCode * 59 + this.ValidationType.GetHashCode(); - if (this.ValidationString != null) - hashCode = hashCode * 59 + this.ValidationString.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AddressBookFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AddressBookFieldDTO.cs deleted file mode 100644 index 37b6e3e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AddressBookFieldDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for combo field domain value - /// - [DataContract] - public partial class AddressBookFieldDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Possible values: 0: String 1: Numeric 2: Date 3: Combo 4: Boolean . - /// Name. - /// Required. - /// Values (only for type Combo). - public AddressBookFieldDTO(int? id = default(int?), int? type = default(int?), string name = default(string), bool? required = default(bool?), List values = default(List)) - { - this.Id = id; - this.Type = type; - this.Name = name; - this.Required = required; - this.Values = values; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Possible values: 0: String 1: Numeric 2: Date 3: Combo 4: Boolean - /// - /// Possible values: 0: String 1: Numeric 2: Date 3: Combo 4: Boolean - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Required - /// - /// Required - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Values (only for type Combo) - /// - /// Values (only for type Combo) - [DataMember(Name="values", EmitDefaultValue=false)] - public List Values { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AddressBookFieldDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" Values: ").Append(Values).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AddressBookFieldDTO); - } - - /// - /// Returns true if AddressBookFieldDTO instances are equal - /// - /// Instance of AddressBookFieldDTO to be compared - /// Boolean - public bool Equals(AddressBookFieldDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.Values == input.Values || - this.Values != null && - this.Values.SequenceEqual(input.Values) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.Values != null) - hashCode = hashCode * 59 + this.Values.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AddressBookFieldValueDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AddressBookFieldValueDTO.cs deleted file mode 100644 index 9890588..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AddressBookFieldValueDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for combo field domain value - /// - [DataContract] - public partial class AddressBookFieldValueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Value. - public AddressBookFieldValueDTO(int? id = default(int?), string value = default(string)) - { - this.Id = id; - this.Value = value; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AddressBookFieldValueDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AddressBookFieldValueDTO); - } - - /// - /// Returns true if AddressBookFieldValueDTO instances are equal - /// - /// Instance of AddressBookFieldValueDTO to be compared - /// Boolean - public bool Equals(AddressBookFieldValueDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AooSearchFilterDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AooSearchFilterDto.cs deleted file mode 100644 index 8067b5e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AooSearchFilterDto.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of business unit filter - /// - [DataContract] - public partial class AooSearchFilterDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Code. - /// Name. - public AooSearchFilterDto(string code = default(string), string name = default(string)) - { - this.Code = code; - this.Name = name; - } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AooSearchFilterDto {\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AooSearchFilterDto); - } - - /// - /// Returns true if AooSearchFilterDto instances are equal - /// - /// Instance of AooSearchFilterDto to be compared - /// Boolean - public bool Equals(AooSearchFilterDto input) - { - if (input == null) - return false; - - return - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallDTO.cs deleted file mode 100644 index 42c0e69..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallDTO.cs +++ /dev/null @@ -1,363 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of API call - /// - [DataContract] - public partial class ApiCallDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Possible values: 0: Generic 1: Workflow 2: Process . - /// Possible values: 0: Authentication 1: Generic . - /// Description. - /// Call endpoint. - /// Possible values: 0: GET 1: POST 2: PUT 4: DELETE . - /// Request json data. - /// Possible values: 0: None 1: BasicAuthentication 2: Windows 3: Jwt 4: OAuth 5: Custom . - /// Authetication call identifier. - /// Cache enabled. - /// Cache duration. - /// Reference identifier. - /// Headers. - /// Input Variables. - /// Output Variables. - public ApiCallDTO(int? id = default(int?), int? context = default(int?), int? type = default(int?), string description = default(string), string endpoint = default(string), int? method = default(int?), string jsonBody = default(string), int? authMode = default(int?), int? authenticationCallId = default(int?), bool? enableCache = default(bool?), int? cacheDuration = default(int?), string referenceId = default(string), List headers = default(List), List variablesIn = default(List), List variablesOut = default(List)) - { - this.Id = id; - this.Context = context; - this.Type = type; - this.Description = description; - this.Endpoint = endpoint; - this.Method = method; - this.JsonBody = jsonBody; - this.AuthMode = authMode; - this.AuthenticationCallId = authenticationCallId; - this.EnableCache = enableCache; - this.CacheDuration = cacheDuration; - this.ReferenceId = referenceId; - this.Headers = headers; - this.VariablesIn = variablesIn; - this.VariablesOut = variablesOut; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Possible values: 0: Generic 1: Workflow 2: Process - /// - /// Possible values: 0: Generic 1: Workflow 2: Process - [DataMember(Name="context", EmitDefaultValue=false)] - public int? Context { get; set; } - - /// - /// Possible values: 0: Authentication 1: Generic - /// - /// Possible values: 0: Authentication 1: Generic - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Call endpoint - /// - /// Call endpoint - [DataMember(Name="endpoint", EmitDefaultValue=false)] - public string Endpoint { get; set; } - - /// - /// Possible values: 0: GET 1: POST 2: PUT 4: DELETE - /// - /// Possible values: 0: GET 1: POST 2: PUT 4: DELETE - [DataMember(Name="method", EmitDefaultValue=false)] - public int? Method { get; set; } - - /// - /// Request json data - /// - /// Request json data - [DataMember(Name="jsonBody", EmitDefaultValue=false)] - public string JsonBody { get; set; } - - /// - /// Possible values: 0: None 1: BasicAuthentication 2: Windows 3: Jwt 4: OAuth 5: Custom - /// - /// Possible values: 0: None 1: BasicAuthentication 2: Windows 3: Jwt 4: OAuth 5: Custom - [DataMember(Name="authMode", EmitDefaultValue=false)] - public int? AuthMode { get; set; } - - /// - /// Authetication call identifier - /// - /// Authetication call identifier - [DataMember(Name="authenticationCallId", EmitDefaultValue=false)] - public int? AuthenticationCallId { get; set; } - - /// - /// Cache enabled - /// - /// Cache enabled - [DataMember(Name="enableCache", EmitDefaultValue=false)] - public bool? EnableCache { get; set; } - - /// - /// Cache duration - /// - /// Cache duration - [DataMember(Name="cacheDuration", EmitDefaultValue=false)] - public int? CacheDuration { get; set; } - - /// - /// Reference identifier - /// - /// Reference identifier - [DataMember(Name="referenceId", EmitDefaultValue=false)] - public string ReferenceId { get; set; } - - /// - /// Headers - /// - /// Headers - [DataMember(Name="headers", EmitDefaultValue=false)] - public List Headers { get; set; } - - /// - /// Input Variables - /// - /// Input Variables - [DataMember(Name="variablesIn", EmitDefaultValue=false)] - public List VariablesIn { get; set; } - - /// - /// Output Variables - /// - /// Output Variables - [DataMember(Name="variablesOut", EmitDefaultValue=false)] - public List VariablesOut { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ApiCallDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Context: ").Append(Context).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Endpoint: ").Append(Endpoint).Append("\n"); - sb.Append(" Method: ").Append(Method).Append("\n"); - sb.Append(" JsonBody: ").Append(JsonBody).Append("\n"); - sb.Append(" AuthMode: ").Append(AuthMode).Append("\n"); - sb.Append(" AuthenticationCallId: ").Append(AuthenticationCallId).Append("\n"); - sb.Append(" EnableCache: ").Append(EnableCache).Append("\n"); - sb.Append(" CacheDuration: ").Append(CacheDuration).Append("\n"); - sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); - sb.Append(" Headers: ").Append(Headers).Append("\n"); - sb.Append(" VariablesIn: ").Append(VariablesIn).Append("\n"); - sb.Append(" VariablesOut: ").Append(VariablesOut).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ApiCallDTO); - } - - /// - /// Returns true if ApiCallDTO instances are equal - /// - /// Instance of ApiCallDTO to be compared - /// Boolean - public bool Equals(ApiCallDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Context == input.Context || - (this.Context != null && - this.Context.Equals(input.Context)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Endpoint == input.Endpoint || - (this.Endpoint != null && - this.Endpoint.Equals(input.Endpoint)) - ) && - ( - this.Method == input.Method || - (this.Method != null && - this.Method.Equals(input.Method)) - ) && - ( - this.JsonBody == input.JsonBody || - (this.JsonBody != null && - this.JsonBody.Equals(input.JsonBody)) - ) && - ( - this.AuthMode == input.AuthMode || - (this.AuthMode != null && - this.AuthMode.Equals(input.AuthMode)) - ) && - ( - this.AuthenticationCallId == input.AuthenticationCallId || - (this.AuthenticationCallId != null && - this.AuthenticationCallId.Equals(input.AuthenticationCallId)) - ) && - ( - this.EnableCache == input.EnableCache || - (this.EnableCache != null && - this.EnableCache.Equals(input.EnableCache)) - ) && - ( - this.CacheDuration == input.CacheDuration || - (this.CacheDuration != null && - this.CacheDuration.Equals(input.CacheDuration)) - ) && - ( - this.ReferenceId == input.ReferenceId || - (this.ReferenceId != null && - this.ReferenceId.Equals(input.ReferenceId)) - ) && - ( - this.Headers == input.Headers || - this.Headers != null && - this.Headers.SequenceEqual(input.Headers) - ) && - ( - this.VariablesIn == input.VariablesIn || - this.VariablesIn != null && - this.VariablesIn.SequenceEqual(input.VariablesIn) - ) && - ( - this.VariablesOut == input.VariablesOut || - this.VariablesOut != null && - this.VariablesOut.SequenceEqual(input.VariablesOut) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Context != null) - hashCode = hashCode * 59 + this.Context.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Endpoint != null) - hashCode = hashCode * 59 + this.Endpoint.GetHashCode(); - if (this.Method != null) - hashCode = hashCode * 59 + this.Method.GetHashCode(); - if (this.JsonBody != null) - hashCode = hashCode * 59 + this.JsonBody.GetHashCode(); - if (this.AuthMode != null) - hashCode = hashCode * 59 + this.AuthMode.GetHashCode(); - if (this.AuthenticationCallId != null) - hashCode = hashCode * 59 + this.AuthenticationCallId.GetHashCode(); - if (this.EnableCache != null) - hashCode = hashCode * 59 + this.EnableCache.GetHashCode(); - if (this.CacheDuration != null) - hashCode = hashCode * 59 + this.CacheDuration.GetHashCode(); - if (this.ReferenceId != null) - hashCode = hashCode * 59 + this.ReferenceId.GetHashCode(); - if (this.Headers != null) - hashCode = hashCode * 59 + this.Headers.GetHashCode(); - if (this.VariablesIn != null) - hashCode = hashCode * 59 + this.VariablesIn.GetHashCode(); - if (this.VariablesOut != null) - hashCode = hashCode * 59 + this.VariablesOut.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallForTestDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallForTestDTO.cs deleted file mode 100644 index bdf8224..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallForTestDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of API call - /// - [DataContract] - public partial class ApiCallForTestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// API call data. - /// Variables test values. - public ApiCallForTestDTO(ApiCallDTO apiCallData = default(ApiCallDTO), List testValues = default(List)) - { - this.ApiCallData = apiCallData; - this.TestValues = testValues; - } - - /// - /// API call data - /// - /// API call data - [DataMember(Name="apiCallData", EmitDefaultValue=false)] - public ApiCallDTO ApiCallData { get; set; } - - /// - /// Variables test values - /// - /// Variables test values - [DataMember(Name="testValues", EmitDefaultValue=false)] - public List TestValues { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ApiCallForTestDTO {\n"); - sb.Append(" ApiCallData: ").Append(ApiCallData).Append("\n"); - sb.Append(" TestValues: ").Append(TestValues).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ApiCallForTestDTO); - } - - /// - /// Returns true if ApiCallForTestDTO instances are equal - /// - /// Instance of ApiCallForTestDTO to be compared - /// Boolean - public bool Equals(ApiCallForTestDTO input) - { - if (input == null) - return false; - - return - ( - this.ApiCallData == input.ApiCallData || - (this.ApiCallData != null && - this.ApiCallData.Equals(input.ApiCallData)) - ) && - ( - this.TestValues == input.TestValues || - this.TestValues != null && - this.TestValues.SequenceEqual(input.TestValues) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ApiCallData != null) - hashCode = hashCode * 59 + this.ApiCallData.GetHashCode(); - if (this.TestValues != null) - hashCode = hashCode * 59 + this.TestValues.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallHeaderDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallHeaderDTO.cs deleted file mode 100644 index fac5eb6..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallHeaderDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of API call header - /// - [DataContract] - public partial class ApiCallHeaderDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Header name. - /// Header value. - public ApiCallHeaderDTO(int? id = default(int?), string name = default(string), string value = default(string)) - { - this.Id = id; - this.Name = name; - this.Value = value; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Header name - /// - /// Header name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Header value - /// - /// Header value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ApiCallHeaderDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ApiCallHeaderDTO); - } - - /// - /// Returns true if ApiCallHeaderDTO instances are equal - /// - /// Instance of ApiCallHeaderDTO to be compared - /// Boolean - public bool Equals(ApiCallHeaderDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallVariableDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallVariableDTO.cs deleted file mode 100644 index 8760f78..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallVariableDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of variable for API Call - /// - [DataContract] - public partial class ApiCallVariableDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Variable key. - /// Variable label. - /// Possible values: 0: System 1: SystemAuth 2: Api 3: Custom 4: Profile 5: Variable . - /// Auth mode for system auth variables. - public ApiCallVariableDTO(string key = default(string), string label = default(string), int? type = default(int?), List authMode = default(List)) - { - this.Key = key; - this.Label = label; - this.Type = type; - this.AuthMode = authMode; - } - - /// - /// Variable key - /// - /// Variable key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Variable label - /// - /// Variable label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Possible values: 0: System 1: SystemAuth 2: Api 3: Custom 4: Profile 5: Variable - /// - /// Possible values: 0: System 1: SystemAuth 2: Api 3: Custom 4: Profile 5: Variable - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Auth mode for system auth variables - /// - /// Auth mode for system auth variables - [DataMember(Name="authMode", EmitDefaultValue=false)] - public List AuthMode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ApiCallVariableDTO {\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" AuthMode: ").Append(AuthMode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ApiCallVariableDTO); - } - - /// - /// Returns true if ApiCallVariableDTO instances are equal - /// - /// Instance of ApiCallVariableDTO to be compared - /// Boolean - public bool Equals(ApiCallVariableDTO input) - { - if (input == null) - return false; - - return - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.AuthMode == input.AuthMode || - this.AuthMode != null && - this.AuthMode.SequenceEqual(input.AuthMode) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.AuthMode != null) - hashCode = hashCode * 59 + this.AuthMode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallVariableInDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallVariableInDTO.cs deleted file mode 100644 index f58425f..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallVariableInDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of API call variable - /// - [DataContract] - public partial class ApiCallVariableInDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Possible values: 0: System 1: SystemAuth 2: Api 3: Custom 4: Profile 5: Variable . - /// Name. - /// Default value. - /// Boolean represents if variable is encrypted. - /// Login API call identifier. - /// Login API call variable out identifier. - public ApiCallVariableInDTO(int? id = default(int?), int? type = default(int?), string name = default(string), string defaultValue = default(string), bool? isEncrypted = default(bool?), int? apiCallId = default(int?), int? apiCallVariableOutId = default(int?)) - { - this.Id = id; - this.Type = type; - this.Name = name; - this.DefaultValue = defaultValue; - this.IsEncrypted = isEncrypted; - this.ApiCallId = apiCallId; - this.ApiCallVariableOutId = apiCallVariableOutId; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Possible values: 0: System 1: SystemAuth 2: Api 3: Custom 4: Profile 5: Variable - /// - /// Possible values: 0: System 1: SystemAuth 2: Api 3: Custom 4: Profile 5: Variable - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Default value - /// - /// Default value - [DataMember(Name="defaultValue", EmitDefaultValue=false)] - public string DefaultValue { get; set; } - - /// - /// Boolean represents if variable is encrypted - /// - /// Boolean represents if variable is encrypted - [DataMember(Name="isEncrypted", EmitDefaultValue=false)] - public bool? IsEncrypted { get; set; } - - /// - /// Login API call identifier - /// - /// Login API call identifier - [DataMember(Name="apiCallId", EmitDefaultValue=false)] - public int? ApiCallId { get; set; } - - /// - /// Login API call variable out identifier - /// - /// Login API call variable out identifier - [DataMember(Name="apiCallVariableOutId", EmitDefaultValue=false)] - public int? ApiCallVariableOutId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ApiCallVariableInDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" DefaultValue: ").Append(DefaultValue).Append("\n"); - sb.Append(" IsEncrypted: ").Append(IsEncrypted).Append("\n"); - sb.Append(" ApiCallId: ").Append(ApiCallId).Append("\n"); - sb.Append(" ApiCallVariableOutId: ").Append(ApiCallVariableOutId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ApiCallVariableInDTO); - } - - /// - /// Returns true if ApiCallVariableInDTO instances are equal - /// - /// Instance of ApiCallVariableInDTO to be compared - /// Boolean - public bool Equals(ApiCallVariableInDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.DefaultValue == input.DefaultValue || - (this.DefaultValue != null && - this.DefaultValue.Equals(input.DefaultValue)) - ) && - ( - this.IsEncrypted == input.IsEncrypted || - (this.IsEncrypted != null && - this.IsEncrypted.Equals(input.IsEncrypted)) - ) && - ( - this.ApiCallId == input.ApiCallId || - (this.ApiCallId != null && - this.ApiCallId.Equals(input.ApiCallId)) - ) && - ( - this.ApiCallVariableOutId == input.ApiCallVariableOutId || - (this.ApiCallVariableOutId != null && - this.ApiCallVariableOutId.Equals(input.ApiCallVariableOutId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.DefaultValue != null) - hashCode = hashCode * 59 + this.DefaultValue.GetHashCode(); - if (this.IsEncrypted != null) - hashCode = hashCode * 59 + this.IsEncrypted.GetHashCode(); - if (this.ApiCallId != null) - hashCode = hashCode * 59 + this.ApiCallId.GetHashCode(); - if (this.ApiCallVariableOutId != null) - hashCode = hashCode * 59 + this.ApiCallVariableOutId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallVariableOutDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallVariableOutDTO.cs deleted file mode 100644 index e8e13f0..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ApiCallVariableOutDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of API call result values - /// - [DataContract] - public partial class ApiCallVariableOutDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Variable name. - /// Variable path inside JSON. - /// The order index. - /// Possible values: 0: String 1: Int 2: Decimal 3: DateTime 4: Boolean . - public ApiCallVariableOutDTO(int? id = default(int?), string name = default(string), string jsonPath = default(string), int? index = default(int?), int? type = default(int?)) - { - this.Id = id; - this.Name = name; - this.JsonPath = jsonPath; - this.Index = index; - this.Type = type; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Variable name - /// - /// Variable name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Variable path inside JSON - /// - /// Variable path inside JSON - [DataMember(Name="jsonPath", EmitDefaultValue=false)] - public string JsonPath { get; set; } - - /// - /// The order index - /// - /// The order index - [DataMember(Name="index", EmitDefaultValue=false)] - public int? Index { get; set; } - - /// - /// Possible values: 0: String 1: Int 2: Decimal 3: DateTime 4: Boolean - /// - /// Possible values: 0: String 1: Int 2: Decimal 3: DateTime 4: Boolean - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ApiCallVariableOutDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" JsonPath: ").Append(JsonPath).Append("\n"); - sb.Append(" Index: ").Append(Index).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ApiCallVariableOutDTO); - } - - /// - /// Returns true if ApiCallVariableOutDTO instances are equal - /// - /// Instance of ApiCallVariableOutDTO to be compared - /// Boolean - public bool Equals(ApiCallVariableOutDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.JsonPath == input.JsonPath || - (this.JsonPath != null && - this.JsonPath.Equals(input.JsonPath)) - ) && - ( - this.Index == input.Index || - (this.Index != null && - this.Index.Equals(input.Index)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.JsonPath != null) - hashCode = hashCode * 59 + this.JsonPath.GetHashCode(); - if (this.Index != null) - hashCode = hashCode * 59 + this.Index.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArchiveOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArchiveOptionsDTO.cs deleted file mode 100644 index abf64f8..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArchiveOptionsDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type: archive options - /// - [DataContract] - public partial class ArchiveOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document type. - /// Days without writing before moving. - /// Days without reading before moving. - /// Possible values: 0: AND 1: OR . - public ArchiveOptionsDTO(DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), int? numDayWrite = default(int?), int? numDayRead = default(int?), int? _operator = default(int?)) - { - this.DocumentType = documentType; - this.NumDayWrite = numDayWrite; - this.NumDayRead = numDayRead; - this.Operator = _operator; - } - - /// - /// Document type - /// - /// Document type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Days without writing before moving - /// - /// Days without writing before moving - [DataMember(Name="numDayWrite", EmitDefaultValue=false)] - public int? NumDayWrite { get; set; } - - /// - /// Days without reading before moving - /// - /// Days without reading before moving - [DataMember(Name="numDayRead", EmitDefaultValue=false)] - public int? NumDayRead { get; set; } - - /// - /// Possible values: 0: AND 1: OR - /// - /// Possible values: 0: AND 1: OR - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArchiveOptionsDTO {\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" NumDayWrite: ").Append(NumDayWrite).Append("\n"); - sb.Append(" NumDayRead: ").Append(NumDayRead).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArchiveOptionsDTO); - } - - /// - /// Returns true if ArchiveOptionsDTO instances are equal - /// - /// Instance of ArchiveOptionsDTO to be compared - /// Boolean - public bool Equals(ArchiveOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.NumDayWrite == input.NumDayWrite || - (this.NumDayWrite != null && - this.NumDayWrite.Equals(input.NumDayWrite)) - ) && - ( - this.NumDayRead == input.NumDayRead || - (this.NumDayRead != null && - this.NumDayRead.Equals(input.NumDayRead)) - ) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.NumDayWrite != null) - hashCode = hashCode * 59 + this.NumDayWrite.GetHashCode(); - if (this.NumDayRead != null) - hashCode = hashCode * 59 + this.NumDayRead.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArchiveOptionsForViewDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArchiveOptionsForViewDTO.cs deleted file mode 100644 index 78cf1e2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArchiveOptionsForViewDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type: archive options for view - /// - [DataContract] - public partial class ArchiveOptionsForViewDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Inherited options by parent document type if present they exist. - /// Document type. - /// Days without writing before moving. - /// Days without reading before moving. - /// Possible values: 0: AND 1: OR . - public ArchiveOptionsForViewDTO(ArchiveOptionsForViewDTO inheritedOptions = default(ArchiveOptionsForViewDTO), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), int? numDayWrite = default(int?), int? numDayRead = default(int?), int? _operator = default(int?)) - { - this.InheritedOptions = inheritedOptions; - this.DocumentType = documentType; - this.NumDayWrite = numDayWrite; - this.NumDayRead = numDayRead; - this.Operator = _operator; - } - - /// - /// Inherited options by parent document type if present they exist - /// - /// Inherited options by parent document type if present they exist - [DataMember(Name="inheritedOptions", EmitDefaultValue=false)] - public ArchiveOptionsForViewDTO InheritedOptions { get; set; } - - /// - /// Document type - /// - /// Document type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Days without writing before moving - /// - /// Days without writing before moving - [DataMember(Name="numDayWrite", EmitDefaultValue=false)] - public int? NumDayWrite { get; set; } - - /// - /// Days without reading before moving - /// - /// Days without reading before moving - [DataMember(Name="numDayRead", EmitDefaultValue=false)] - public int? NumDayRead { get; set; } - - /// - /// Possible values: 0: AND 1: OR - /// - /// Possible values: 0: AND 1: OR - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArchiveOptionsForViewDTO {\n"); - sb.Append(" InheritedOptions: ").Append(InheritedOptions).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" NumDayWrite: ").Append(NumDayWrite).Append("\n"); - sb.Append(" NumDayRead: ").Append(NumDayRead).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArchiveOptionsForViewDTO); - } - - /// - /// Returns true if ArchiveOptionsForViewDTO instances are equal - /// - /// Instance of ArchiveOptionsForViewDTO to be compared - /// Boolean - public bool Equals(ArchiveOptionsForViewDTO input) - { - if (input == null) - return false; - - return - ( - this.InheritedOptions == input.InheritedOptions || - (this.InheritedOptions != null && - this.InheritedOptions.Equals(input.InheritedOptions)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.NumDayWrite == input.NumDayWrite || - (this.NumDayWrite != null && - this.NumDayWrite.Equals(input.NumDayWrite)) - ) && - ( - this.NumDayRead == input.NumDayRead || - (this.NumDayRead != null && - this.NumDayRead.Equals(input.NumDayRead)) - ) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.InheritedOptions != null) - hashCode = hashCode * 59 + this.InheritedOptions.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.NumDayWrite != null) - hashCode = hashCode * 59 + this.NumDayWrite.GetHashCode(); - if (this.NumDayRead != null) - hashCode = hashCode * 59 + this.NumDayRead.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArrayKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArrayKeyValueDTO.cs deleted file mode 100644 index 83588b8..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArrayKeyValueDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Array key value - /// - [DataContract] - public partial class ArrayKeyValueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// ClassName. - /// Key. - /// Values. - public ArrayKeyValueDTO(string className = default(string), string key = default(string), List values = default(List)) - { - this.ClassName = className; - this.Key = key; - this.Values = values; - } - - /// - /// ClassName - /// - /// ClassName - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Key - /// - /// Key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Values - /// - /// Values - [DataMember(Name="values", EmitDefaultValue=false)] - public List Values { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArrayKeyValueDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Values: ").Append(Values).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArrayKeyValueDTO); - } - - /// - /// Returns true if ArrayKeyValueDTO instances are equal - /// - /// Instance of ArrayKeyValueDTO to be compared - /// Boolean - public bool Equals(ArrayKeyValueDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Values == input.Values || - this.Values != null && - this.Values.SequenceEqual(input.Values) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Values != null) - hashCode = hashCode * 59 + this.Values.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeBusinessUnitDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeBusinessUnitDTO.cs deleted file mode 100644 index 63d5e54..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeBusinessUnitDTO.cs +++ /dev/null @@ -1,516 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe Business unit - /// - [DataContract] - public partial class ArxCeBusinessUnitDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// Description. - /// Business name. - /// Vat code. - /// Fiscal code. - /// Pec. - /// BusinessRegister. - /// REA. - /// Address. - /// House number. - /// City. - /// E-mail. - /// Phone number. - /// Mobile phone. - /// Fax. - /// Legal address. - /// Legal House number. - /// Legal city. - /// Legal e-mail. - /// Legal phone number. - /// Legal mobile phone. - /// Legal fax. - /// Metadata. - public ArxCeBusinessUnitDTO(string id = default(string), string name = default(string), string description = default(string), string businessName = default(string), string vatCode = default(string), string fiscalCode = default(string), string pec = default(string), string businessRegister = default(string), string rea = default(string), string address = default(string), string houseNumber = default(string), ArxCeCity city = default(ArxCeCity), string email = default(string), string phone = default(string), string mobilePhone = default(string), string fax = default(string), string legalAddress = default(string), string legalHouseNumber = default(string), ArxCeCity legalCity = default(ArxCeCity), string legalEmail = default(string), string legalPhone = default(string), string legalMobilePhone = default(string), string legalFax = default(string), List metadata = default(List)) - { - this.Id = id; - this.Name = name; - this.Description = description; - this.BusinessName = businessName; - this.VatCode = vatCode; - this.FiscalCode = fiscalCode; - this.Pec = pec; - this.BusinessRegister = businessRegister; - this.Rea = rea; - this.Address = address; - this.HouseNumber = houseNumber; - this.City = city; - this.Email = email; - this.Phone = phone; - this.MobilePhone = mobilePhone; - this.Fax = fax; - this.LegalAddress = legalAddress; - this.LegalHouseNumber = legalHouseNumber; - this.LegalCity = legalCity; - this.LegalEmail = legalEmail; - this.LegalPhone = legalPhone; - this.LegalMobilePhone = legalMobilePhone; - this.LegalFax = legalFax; - this.Metadata = metadata; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Business name - /// - /// Business name - [DataMember(Name="businessName", EmitDefaultValue=false)] - public string BusinessName { get; set; } - - /// - /// Vat code - /// - /// Vat code - [DataMember(Name="vatCode", EmitDefaultValue=false)] - public string VatCode { get; set; } - - /// - /// Fiscal code - /// - /// Fiscal code - [DataMember(Name="fiscalCode", EmitDefaultValue=false)] - public string FiscalCode { get; set; } - - /// - /// Pec - /// - /// Pec - [DataMember(Name="pec", EmitDefaultValue=false)] - public string Pec { get; set; } - - /// - /// BusinessRegister - /// - /// BusinessRegister - [DataMember(Name="businessRegister", EmitDefaultValue=false)] - public string BusinessRegister { get; set; } - - /// - /// REA - /// - /// REA - [DataMember(Name="rea", EmitDefaultValue=false)] - public string Rea { get; set; } - - /// - /// Address - /// - /// Address - [DataMember(Name="address", EmitDefaultValue=false)] - public string Address { get; set; } - - /// - /// House number - /// - /// House number - [DataMember(Name="houseNumber", EmitDefaultValue=false)] - public string HouseNumber { get; set; } - - /// - /// City - /// - /// City - [DataMember(Name="city", EmitDefaultValue=false)] - public ArxCeCity City { get; set; } - - /// - /// E-mail - /// - /// E-mail - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Phone number - /// - /// Phone number - [DataMember(Name="phone", EmitDefaultValue=false)] - public string Phone { get; set; } - - /// - /// Mobile phone - /// - /// Mobile phone - [DataMember(Name="mobilePhone", EmitDefaultValue=false)] - public string MobilePhone { get; set; } - - /// - /// Fax - /// - /// Fax - [DataMember(Name="fax", EmitDefaultValue=false)] - public string Fax { get; set; } - - /// - /// Legal address - /// - /// Legal address - [DataMember(Name="legalAddress", EmitDefaultValue=false)] - public string LegalAddress { get; set; } - - /// - /// Legal House number - /// - /// Legal House number - [DataMember(Name="legalHouseNumber", EmitDefaultValue=false)] - public string LegalHouseNumber { get; set; } - - /// - /// Legal city - /// - /// Legal city - [DataMember(Name="legalCity", EmitDefaultValue=false)] - public ArxCeCity LegalCity { get; set; } - - /// - /// Legal e-mail - /// - /// Legal e-mail - [DataMember(Name="legalEmail", EmitDefaultValue=false)] - public string LegalEmail { get; set; } - - /// - /// Legal phone number - /// - /// Legal phone number - [DataMember(Name="legalPhone", EmitDefaultValue=false)] - public string LegalPhone { get; set; } - - /// - /// Legal mobile phone - /// - /// Legal mobile phone - [DataMember(Name="legalMobilePhone", EmitDefaultValue=false)] - public string LegalMobilePhone { get; set; } - - /// - /// Legal fax - /// - /// Legal fax - [DataMember(Name="legalFax", EmitDefaultValue=false)] - public string LegalFax { get; set; } - - /// - /// Metadata - /// - /// Metadata - [DataMember(Name="metadata", EmitDefaultValue=false)] - public List Metadata { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeBusinessUnitDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" BusinessName: ").Append(BusinessName).Append("\n"); - sb.Append(" VatCode: ").Append(VatCode).Append("\n"); - sb.Append(" FiscalCode: ").Append(FiscalCode).Append("\n"); - sb.Append(" Pec: ").Append(Pec).Append("\n"); - sb.Append(" BusinessRegister: ").Append(BusinessRegister).Append("\n"); - sb.Append(" Rea: ").Append(Rea).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" HouseNumber: ").Append(HouseNumber).Append("\n"); - sb.Append(" City: ").Append(City).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Phone: ").Append(Phone).Append("\n"); - sb.Append(" MobilePhone: ").Append(MobilePhone).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" LegalAddress: ").Append(LegalAddress).Append("\n"); - sb.Append(" LegalHouseNumber: ").Append(LegalHouseNumber).Append("\n"); - sb.Append(" LegalCity: ").Append(LegalCity).Append("\n"); - sb.Append(" LegalEmail: ").Append(LegalEmail).Append("\n"); - sb.Append(" LegalPhone: ").Append(LegalPhone).Append("\n"); - sb.Append(" LegalMobilePhone: ").Append(LegalMobilePhone).Append("\n"); - sb.Append(" LegalFax: ").Append(LegalFax).Append("\n"); - sb.Append(" Metadata: ").Append(Metadata).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeBusinessUnitDTO); - } - - /// - /// Returns true if ArxCeBusinessUnitDTO instances are equal - /// - /// Instance of ArxCeBusinessUnitDTO to be compared - /// Boolean - public bool Equals(ArxCeBusinessUnitDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.BusinessName == input.BusinessName || - (this.BusinessName != null && - this.BusinessName.Equals(input.BusinessName)) - ) && - ( - this.VatCode == input.VatCode || - (this.VatCode != null && - this.VatCode.Equals(input.VatCode)) - ) && - ( - this.FiscalCode == input.FiscalCode || - (this.FiscalCode != null && - this.FiscalCode.Equals(input.FiscalCode)) - ) && - ( - this.Pec == input.Pec || - (this.Pec != null && - this.Pec.Equals(input.Pec)) - ) && - ( - this.BusinessRegister == input.BusinessRegister || - (this.BusinessRegister != null && - this.BusinessRegister.Equals(input.BusinessRegister)) - ) && - ( - this.Rea == input.Rea || - (this.Rea != null && - this.Rea.Equals(input.Rea)) - ) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && - ( - this.HouseNumber == input.HouseNumber || - (this.HouseNumber != null && - this.HouseNumber.Equals(input.HouseNumber)) - ) && - ( - this.City == input.City || - (this.City != null && - this.City.Equals(input.City)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.Phone == input.Phone || - (this.Phone != null && - this.Phone.Equals(input.Phone)) - ) && - ( - this.MobilePhone == input.MobilePhone || - (this.MobilePhone != null && - this.MobilePhone.Equals(input.MobilePhone)) - ) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && - ( - this.LegalAddress == input.LegalAddress || - (this.LegalAddress != null && - this.LegalAddress.Equals(input.LegalAddress)) - ) && - ( - this.LegalHouseNumber == input.LegalHouseNumber || - (this.LegalHouseNumber != null && - this.LegalHouseNumber.Equals(input.LegalHouseNumber)) - ) && - ( - this.LegalCity == input.LegalCity || - (this.LegalCity != null && - this.LegalCity.Equals(input.LegalCity)) - ) && - ( - this.LegalEmail == input.LegalEmail || - (this.LegalEmail != null && - this.LegalEmail.Equals(input.LegalEmail)) - ) && - ( - this.LegalPhone == input.LegalPhone || - (this.LegalPhone != null && - this.LegalPhone.Equals(input.LegalPhone)) - ) && - ( - this.LegalMobilePhone == input.LegalMobilePhone || - (this.LegalMobilePhone != null && - this.LegalMobilePhone.Equals(input.LegalMobilePhone)) - ) && - ( - this.LegalFax == input.LegalFax || - (this.LegalFax != null && - this.LegalFax.Equals(input.LegalFax)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.BusinessName != null) - hashCode = hashCode * 59 + this.BusinessName.GetHashCode(); - if (this.VatCode != null) - hashCode = hashCode * 59 + this.VatCode.GetHashCode(); - if (this.FiscalCode != null) - hashCode = hashCode * 59 + this.FiscalCode.GetHashCode(); - if (this.Pec != null) - hashCode = hashCode * 59 + this.Pec.GetHashCode(); - if (this.BusinessRegister != null) - hashCode = hashCode * 59 + this.BusinessRegister.GetHashCode(); - if (this.Rea != null) - hashCode = hashCode * 59 + this.Rea.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.HouseNumber != null) - hashCode = hashCode * 59 + this.HouseNumber.GetHashCode(); - if (this.City != null) - hashCode = hashCode * 59 + this.City.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Phone != null) - hashCode = hashCode * 59 + this.Phone.GetHashCode(); - if (this.MobilePhone != null) - hashCode = hashCode * 59 + this.MobilePhone.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.LegalAddress != null) - hashCode = hashCode * 59 + this.LegalAddress.GetHashCode(); - if (this.LegalHouseNumber != null) - hashCode = hashCode * 59 + this.LegalHouseNumber.GetHashCode(); - if (this.LegalCity != null) - hashCode = hashCode * 59 + this.LegalCity.GetHashCode(); - if (this.LegalEmail != null) - hashCode = hashCode * 59 + this.LegalEmail.GetHashCode(); - if (this.LegalPhone != null) - hashCode = hashCode * 59 + this.LegalPhone.GetHashCode(); - if (this.LegalMobilePhone != null) - hashCode = hashCode * 59 + this.LegalMobilePhone.GetHashCode(); - if (this.LegalFax != null) - hashCode = hashCode * 59 + this.LegalFax.GetHashCode(); - if (this.Metadata != null) - hashCode = hashCode * 59 + this.Metadata.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeBusinessUnitGeneratorOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeBusinessUnitGeneratorOptionsDTO.cs deleted file mode 100644 index b59f732..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeBusinessUnitGeneratorOptionsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for business unit generator options - /// - [DataContract] - public partial class ArxCeBusinessUnitGeneratorOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Arxivar business unit codes. - /// Execute create operation or only the validation. - public ArxCeBusinessUnitGeneratorOptionsDTO(List businessUnitCodes = default(List), bool? doCreation = default(bool?)) - { - this.BusinessUnitCodes = businessUnitCodes; - this.DoCreation = doCreation; - } - - /// - /// Arxivar business unit codes - /// - /// Arxivar business unit codes - [DataMember(Name="businessUnitCodes", EmitDefaultValue=false)] - public List BusinessUnitCodes { get; set; } - - /// - /// Execute create operation or only the validation - /// - /// Execute create operation or only the validation - [DataMember(Name="doCreation", EmitDefaultValue=false)] - public bool? DoCreation { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeBusinessUnitGeneratorOptionsDTO {\n"); - sb.Append(" BusinessUnitCodes: ").Append(BusinessUnitCodes).Append("\n"); - sb.Append(" DoCreation: ").Append(DoCreation).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeBusinessUnitGeneratorOptionsDTO); - } - - /// - /// Returns true if ArxCeBusinessUnitGeneratorOptionsDTO instances are equal - /// - /// Instance of ArxCeBusinessUnitGeneratorOptionsDTO to be compared - /// Boolean - public bool Equals(ArxCeBusinessUnitGeneratorOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.BusinessUnitCodes == input.BusinessUnitCodes || - this.BusinessUnitCodes != null && - this.BusinessUnitCodes.SequenceEqual(input.BusinessUnitCodes) - ) && - ( - this.DoCreation == input.DoCreation || - (this.DoCreation != null && - this.DoCreation.Equals(input.DoCreation)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.BusinessUnitCodes != null) - hashCode = hashCode * 59 + this.BusinessUnitCodes.GetHashCode(); - if (this.DoCreation != null) - hashCode = hashCode * 59 + this.DoCreation.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeBusinessUnitGeneratorResponseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeBusinessUnitGeneratorResponseDTO.cs deleted file mode 100644 index 1e923f0..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeBusinessUnitGeneratorResponseDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for business unit generation in ArxCe - /// - [DataContract] - public partial class ArxCeBusinessUnitGeneratorResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of generator process in progress. - public ArxCeBusinessUnitGeneratorResponseDTO(string generatorRequestId = default(string)) - { - this.GeneratorRequestId = generatorRequestId; - } - - /// - /// Identifier of generator process in progress - /// - /// Identifier of generator process in progress - [DataMember(Name="generatorRequestId", EmitDefaultValue=false)] - public string GeneratorRequestId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeBusinessUnitGeneratorResponseDTO {\n"); - sb.Append(" GeneratorRequestId: ").Append(GeneratorRequestId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeBusinessUnitGeneratorResponseDTO); - } - - /// - /// Returns true if ArxCeBusinessUnitGeneratorResponseDTO instances are equal - /// - /// Instance of ArxCeBusinessUnitGeneratorResponseDTO to be compared - /// Boolean - public bool Equals(ArxCeBusinessUnitGeneratorResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.GeneratorRequestId == input.GeneratorRequestId || - (this.GeneratorRequestId != null && - this.GeneratorRequestId.Equals(input.GeneratorRequestId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.GeneratorRequestId != null) - hashCode = hashCode * 59 + this.GeneratorRequestId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeBusinessUnitSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeBusinessUnitSettingsDTO.cs deleted file mode 100644 index e5691db..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeBusinessUnitSettingsDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe Business unit settings - /// - [DataContract] - public partial class ArxCeBusinessUnitSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// ArxCe Business unit. - /// Arxivar Business unit. - /// Enabled. - /// Credentials for business unit. - public ArxCeBusinessUnitSettingsDTO(int? id = default(int?), BusinessUnitDTO arxBusinessUnit = default(BusinessUnitDTO), ArxCeBusinessUnitSimpleDTO arxCeBusinessUnit = default(ArxCeBusinessUnitSimpleDTO), bool? enabled = default(bool?), ArxCeCredentialsDTO credentials = default(ArxCeCredentialsDTO)) - { - this.Id = id; - this.ArxBusinessUnit = arxBusinessUnit; - this.ArxCeBusinessUnit = arxCeBusinessUnit; - this.Enabled = enabled; - this.Credentials = credentials; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// ArxCe Business unit - /// - /// ArxCe Business unit - [DataMember(Name="arxBusinessUnit", EmitDefaultValue=false)] - public BusinessUnitDTO ArxBusinessUnit { get; set; } - - /// - /// Arxivar Business unit - /// - /// Arxivar Business unit - [DataMember(Name="arxCeBusinessUnit", EmitDefaultValue=false)] - public ArxCeBusinessUnitSimpleDTO ArxCeBusinessUnit { get; set; } - - /// - /// Enabled - /// - /// Enabled - [DataMember(Name="enabled", EmitDefaultValue=false)] - public bool? Enabled { get; set; } - - /// - /// Credentials for business unit - /// - /// Credentials for business unit - [DataMember(Name="credentials", EmitDefaultValue=false)] - public ArxCeCredentialsDTO Credentials { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeBusinessUnitSettingsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ArxBusinessUnit: ").Append(ArxBusinessUnit).Append("\n"); - sb.Append(" ArxCeBusinessUnit: ").Append(ArxCeBusinessUnit).Append("\n"); - sb.Append(" Enabled: ").Append(Enabled).Append("\n"); - sb.Append(" Credentials: ").Append(Credentials).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeBusinessUnitSettingsDTO); - } - - /// - /// Returns true if ArxCeBusinessUnitSettingsDTO instances are equal - /// - /// Instance of ArxCeBusinessUnitSettingsDTO to be compared - /// Boolean - public bool Equals(ArxCeBusinessUnitSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ArxBusinessUnit == input.ArxBusinessUnit || - (this.ArxBusinessUnit != null && - this.ArxBusinessUnit.Equals(input.ArxBusinessUnit)) - ) && - ( - this.ArxCeBusinessUnit == input.ArxCeBusinessUnit || - (this.ArxCeBusinessUnit != null && - this.ArxCeBusinessUnit.Equals(input.ArxCeBusinessUnit)) - ) && - ( - this.Enabled == input.Enabled || - (this.Enabled != null && - this.Enabled.Equals(input.Enabled)) - ) && - ( - this.Credentials == input.Credentials || - (this.Credentials != null && - this.Credentials.Equals(input.Credentials)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ArxBusinessUnit != null) - hashCode = hashCode * 59 + this.ArxBusinessUnit.GetHashCode(); - if (this.ArxCeBusinessUnit != null) - hashCode = hashCode * 59 + this.ArxCeBusinessUnit.GetHashCode(); - if (this.Enabled != null) - hashCode = hashCode * 59 + this.Enabled.GetHashCode(); - if (this.Credentials != null) - hashCode = hashCode * 59 + this.Credentials.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeBusinessUnitSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeBusinessUnitSimpleDTO.cs deleted file mode 100644 index b32bce4..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeBusinessUnitSimpleDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Business unit with essential data - /// - [DataContract] - public partial class ArxCeBusinessUnitSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - /// Vat Code. - /// Fiscal Code. - public ArxCeBusinessUnitSimpleDTO(string id = default(string), string description = default(string), string vatCode = default(string), string fiscalCode = default(string)) - { - this.Id = id; - this.Description = description; - this.VatCode = vatCode; - this.FiscalCode = fiscalCode; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Vat Code - /// - /// Vat Code - [DataMember(Name="vatCode", EmitDefaultValue=false)] - public string VatCode { get; set; } - - /// - /// Fiscal Code - /// - /// Fiscal Code - [DataMember(Name="fiscalCode", EmitDefaultValue=false)] - public string FiscalCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeBusinessUnitSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" VatCode: ").Append(VatCode).Append("\n"); - sb.Append(" FiscalCode: ").Append(FiscalCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeBusinessUnitSimpleDTO); - } - - /// - /// Returns true if ArxCeBusinessUnitSimpleDTO instances are equal - /// - /// Instance of ArxCeBusinessUnitSimpleDTO to be compared - /// Boolean - public bool Equals(ArxCeBusinessUnitSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.VatCode == input.VatCode || - (this.VatCode != null && - this.VatCode.Equals(input.VatCode)) - ) && - ( - this.FiscalCode == input.FiscalCode || - (this.FiscalCode != null && - this.FiscalCode.Equals(input.FiscalCode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.VatCode != null) - hashCode = hashCode * 59 + this.VatCode.GetHashCode(); - if (this.FiscalCode != null) - hashCode = hashCode * 59 + this.FiscalCode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCity.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCity.cs deleted file mode 100644 index 0b89445..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCity.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe city - /// - [DataContract] - public partial class ArxCeCity : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - /// Zip code. - /// Province. - public ArxCeCity(string id = default(string), string description = default(string), string zipCode = default(string), ArxCeProvince province = default(ArxCeProvince)) - { - this.Id = id; - this.Description = description; - this.ZipCode = zipCode; - this.Province = province; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Zip code - /// - /// Zip code - [DataMember(Name="zipCode", EmitDefaultValue=false)] - public string ZipCode { get; set; } - - /// - /// Province - /// - /// Province - [DataMember(Name="province", EmitDefaultValue=false)] - public ArxCeProvince Province { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeCity {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ZipCode: ").Append(ZipCode).Append("\n"); - sb.Append(" Province: ").Append(Province).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeCity); - } - - /// - /// Returns true if ArxCeCity instances are equal - /// - /// Instance of ArxCeCity to be compared - /// Boolean - public bool Equals(ArxCeCity input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.ZipCode == input.ZipCode || - (this.ZipCode != null && - this.ZipCode.Equals(input.ZipCode)) - ) && - ( - this.Province == input.Province || - (this.Province != null && - this.Province.Equals(input.Province)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ZipCode != null) - hashCode = hashCode * 59 + this.ZipCode.GetHashCode(); - if (this.Province != null) - hashCode = hashCode * 59 + this.Province.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCloneOptionsByBusinessUnitDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCloneOptionsByBusinessUnitDTO.cs deleted file mode 100644 index fb0e269..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCloneOptionsByBusinessUnitDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for cloning settings by business unit for ArxCe - /// - [DataContract] - public partial class ArxCeCloneOptionsByBusinessUnitDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Business unit source. - /// Document types to clone. - /// Destination business units. - public ArxCeCloneOptionsByBusinessUnitDTO(string originalBusinessUnitCode = default(string), List documentTypeIds = default(List), List businessUnitCodes = default(List)) - { - this.OriginalBusinessUnitCode = originalBusinessUnitCode; - this.DocumentTypeIds = documentTypeIds; - this.BusinessUnitCodes = businessUnitCodes; - } - - /// - /// Business unit source - /// - /// Business unit source - [DataMember(Name="originalBusinessUnitCode", EmitDefaultValue=false)] - public string OriginalBusinessUnitCode { get; set; } - - /// - /// Document types to clone - /// - /// Document types to clone - [DataMember(Name="documentTypeIds", EmitDefaultValue=false)] - public List DocumentTypeIds { get; set; } - - /// - /// Destination business units - /// - /// Destination business units - [DataMember(Name="businessUnitCodes", EmitDefaultValue=false)] - public List BusinessUnitCodes { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeCloneOptionsByBusinessUnitDTO {\n"); - sb.Append(" OriginalBusinessUnitCode: ").Append(OriginalBusinessUnitCode).Append("\n"); - sb.Append(" DocumentTypeIds: ").Append(DocumentTypeIds).Append("\n"); - sb.Append(" BusinessUnitCodes: ").Append(BusinessUnitCodes).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeCloneOptionsByBusinessUnitDTO); - } - - /// - /// Returns true if ArxCeCloneOptionsByBusinessUnitDTO instances are equal - /// - /// Instance of ArxCeCloneOptionsByBusinessUnitDTO to be compared - /// Boolean - public bool Equals(ArxCeCloneOptionsByBusinessUnitDTO input) - { - if (input == null) - return false; - - return - ( - this.OriginalBusinessUnitCode == input.OriginalBusinessUnitCode || - (this.OriginalBusinessUnitCode != null && - this.OriginalBusinessUnitCode.Equals(input.OriginalBusinessUnitCode)) - ) && - ( - this.DocumentTypeIds == input.DocumentTypeIds || - this.DocumentTypeIds != null && - this.DocumentTypeIds.SequenceEqual(input.DocumentTypeIds) - ) && - ( - this.BusinessUnitCodes == input.BusinessUnitCodes || - this.BusinessUnitCodes != null && - this.BusinessUnitCodes.SequenceEqual(input.BusinessUnitCodes) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.OriginalBusinessUnitCode != null) - hashCode = hashCode * 59 + this.OriginalBusinessUnitCode.GetHashCode(); - if (this.DocumentTypeIds != null) - hashCode = hashCode * 59 + this.DocumentTypeIds.GetHashCode(); - if (this.BusinessUnitCodes != null) - hashCode = hashCode * 59 + this.BusinessUnitCodes.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCloneOptionsByDocumentTypeDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCloneOptionsByDocumentTypeDTO.cs deleted file mode 100644 index 7ccfc42..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCloneOptionsByDocumentTypeDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for cloning settings by document type - /// - [DataContract] - public partial class ArxCeCloneOptionsByDocumentTypeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Business unit. - /// Document type source. - /// Detination Document types. - public ArxCeCloneOptionsByDocumentTypeDTO(string originalBusinessUnitCode = default(string), int? originalDocumentTypeId = default(int?), List documentTypeIds = default(List)) - { - this.OriginalBusinessUnitCode = originalBusinessUnitCode; - this.OriginalDocumentTypeId = originalDocumentTypeId; - this.DocumentTypeIds = documentTypeIds; - } - - /// - /// Business unit - /// - /// Business unit - [DataMember(Name="originalBusinessUnitCode", EmitDefaultValue=false)] - public string OriginalBusinessUnitCode { get; set; } - - /// - /// Document type source - /// - /// Document type source - [DataMember(Name="originalDocumentTypeId", EmitDefaultValue=false)] - public int? OriginalDocumentTypeId { get; set; } - - /// - /// Detination Document types - /// - /// Detination Document types - [DataMember(Name="documentTypeIds", EmitDefaultValue=false)] - public List DocumentTypeIds { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeCloneOptionsByDocumentTypeDTO {\n"); - sb.Append(" OriginalBusinessUnitCode: ").Append(OriginalBusinessUnitCode).Append("\n"); - sb.Append(" OriginalDocumentTypeId: ").Append(OriginalDocumentTypeId).Append("\n"); - sb.Append(" DocumentTypeIds: ").Append(DocumentTypeIds).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeCloneOptionsByDocumentTypeDTO); - } - - /// - /// Returns true if ArxCeCloneOptionsByDocumentTypeDTO instances are equal - /// - /// Instance of ArxCeCloneOptionsByDocumentTypeDTO to be compared - /// Boolean - public bool Equals(ArxCeCloneOptionsByDocumentTypeDTO input) - { - if (input == null) - return false; - - return - ( - this.OriginalBusinessUnitCode == input.OriginalBusinessUnitCode || - (this.OriginalBusinessUnitCode != null && - this.OriginalBusinessUnitCode.Equals(input.OriginalBusinessUnitCode)) - ) && - ( - this.OriginalDocumentTypeId == input.OriginalDocumentTypeId || - (this.OriginalDocumentTypeId != null && - this.OriginalDocumentTypeId.Equals(input.OriginalDocumentTypeId)) - ) && - ( - this.DocumentTypeIds == input.DocumentTypeIds || - this.DocumentTypeIds != null && - this.DocumentTypeIds.SequenceEqual(input.DocumentTypeIds) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.OriginalBusinessUnitCode != null) - hashCode = hashCode * 59 + this.OriginalBusinessUnitCode.GetHashCode(); - if (this.OriginalDocumentTypeId != null) - hashCode = hashCode * 59 + this.OriginalDocumentTypeId.GetHashCode(); - if (this.DocumentTypeIds != null) - hashCode = hashCode * 59 + this.DocumentTypeIds.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCloneSendingSettingsByBusinessUnitResponseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCloneSendingSettingsByBusinessUnitResponseDTO.cs deleted file mode 100644 index 23ebd71..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCloneSendingSettingsByBusinessUnitResponseDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for business unit settings clone result in ArxCe - /// - [DataContract] - public partial class ArxCeCloneSendingSettingsByBusinessUnitResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of clone process in progress. - public ArxCeCloneSendingSettingsByBusinessUnitResponseDTO(string cloneRequestId = default(string)) - { - this.CloneRequestId = cloneRequestId; - } - - /// - /// Identifier of clone process in progress - /// - /// Identifier of clone process in progress - [DataMember(Name="cloneRequestId", EmitDefaultValue=false)] - public string CloneRequestId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeCloneSendingSettingsByBusinessUnitResponseDTO {\n"); - sb.Append(" CloneRequestId: ").Append(CloneRequestId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeCloneSendingSettingsByBusinessUnitResponseDTO); - } - - /// - /// Returns true if ArxCeCloneSendingSettingsByBusinessUnitResponseDTO instances are equal - /// - /// Instance of ArxCeCloneSendingSettingsByBusinessUnitResponseDTO to be compared - /// Boolean - public bool Equals(ArxCeCloneSendingSettingsByBusinessUnitResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.CloneRequestId == input.CloneRequestId || - (this.CloneRequestId != null && - this.CloneRequestId.Equals(input.CloneRequestId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CloneRequestId != null) - hashCode = hashCode * 59 + this.CloneRequestId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCloneSendingSettingsByDocumentTypeResponseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCloneSendingSettingsByDocumentTypeResponseDTO.cs deleted file mode 100644 index 8999d34..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCloneSendingSettingsByDocumentTypeResponseDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for business unit settings clone result in ArxCe - /// - [DataContract] - public partial class ArxCeCloneSendingSettingsByDocumentTypeResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of clone process in progress. - public ArxCeCloneSendingSettingsByDocumentTypeResponseDTO(string cloneRequestId = default(string)) - { - this.CloneRequestId = cloneRequestId; - } - - /// - /// Identifier of clone process in progress - /// - /// Identifier of clone process in progress - [DataMember(Name="cloneRequestId", EmitDefaultValue=false)] - public string CloneRequestId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeCloneSendingSettingsByDocumentTypeResponseDTO {\n"); - sb.Append(" CloneRequestId: ").Append(CloneRequestId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeCloneSendingSettingsByDocumentTypeResponseDTO); - } - - /// - /// Returns true if ArxCeCloneSendingSettingsByDocumentTypeResponseDTO instances are equal - /// - /// Instance of ArxCeCloneSendingSettingsByDocumentTypeResponseDTO to be compared - /// Boolean - public bool Equals(ArxCeCloneSendingSettingsByDocumentTypeResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.CloneRequestId == input.CloneRequestId || - (this.CloneRequestId != null && - this.CloneRequestId.Equals(input.CloneRequestId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CloneRequestId != null) - hashCode = hashCode * 59 + this.CloneRequestId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCountry.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCountry.cs deleted file mode 100644 index 530f6b2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCountry.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe country - /// - [DataContract] - public partial class ArxCeCountry : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Code. - /// Description. - public ArxCeCountry(string id = default(string), string code = default(string), string description = default(string)) - { - this.Id = id; - this.Code = code; - this.Description = description; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeCountry {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeCountry); - } - - /// - /// Returns true if ArxCeCountry instances are equal - /// - /// Instance of ArxCeCountry to be compared - /// Boolean - public bool Equals(ArxCeCountry input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCredentialsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCredentialsDTO.cs deleted file mode 100644 index 1d37591..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCredentialsDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe credentials - /// - [DataContract] - public partial class ArxCeCredentialsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Possible values: 0: Global 1: BusinessUnit 2: DocumentType . - /// Service endpoint. - /// Username. - /// Password for insert/update. - /// Boolean representing whether the password is stored. - /// Business unit code. - /// Arxivar Document type. - public ArxCeCredentialsDTO(int? id = default(int?), int? context = default(int?), string endpoint = default(string), string username = default(string), string password = default(string), bool? hasPassword = default(bool?), string businessUnitCode = default(string), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO)) - { - this.Id = id; - this.Context = context; - this.Endpoint = endpoint; - this.Username = username; - this.Password = password; - this.HasPassword = hasPassword; - this.BusinessUnitCode = businessUnitCode; - this.DocumentType = documentType; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Possible values: 0: Global 1: BusinessUnit 2: DocumentType - /// - /// Possible values: 0: Global 1: BusinessUnit 2: DocumentType - [DataMember(Name="context", EmitDefaultValue=false)] - public int? Context { get; set; } - - /// - /// Service endpoint - /// - /// Service endpoint - [DataMember(Name="endpoint", EmitDefaultValue=false)] - public string Endpoint { get; set; } - - /// - /// Username - /// - /// Username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password for insert/update - /// - /// Password for insert/update - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Boolean representing whether the password is stored - /// - /// Boolean representing whether the password is stored - [DataMember(Name="hasPassword", EmitDefaultValue=false)] - public bool? HasPassword { get; set; } - - /// - /// Business unit code - /// - /// Business unit code - [DataMember(Name="businessUnitCode", EmitDefaultValue=false)] - public string BusinessUnitCode { get; set; } - - /// - /// Arxivar Document type - /// - /// Arxivar Document type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeCredentialsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Context: ").Append(Context).Append("\n"); - sb.Append(" Endpoint: ").Append(Endpoint).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" HasPassword: ").Append(HasPassword).Append("\n"); - sb.Append(" BusinessUnitCode: ").Append(BusinessUnitCode).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeCredentialsDTO); - } - - /// - /// Returns true if ArxCeCredentialsDTO instances are equal - /// - /// Instance of ArxCeCredentialsDTO to be compared - /// Boolean - public bool Equals(ArxCeCredentialsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Context == input.Context || - (this.Context != null && - this.Context.Equals(input.Context)) - ) && - ( - this.Endpoint == input.Endpoint || - (this.Endpoint != null && - this.Endpoint.Equals(input.Endpoint)) - ) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.HasPassword == input.HasPassword || - (this.HasPassword != null && - this.HasPassword.Equals(input.HasPassword)) - ) && - ( - this.BusinessUnitCode == input.BusinessUnitCode || - (this.BusinessUnitCode != null && - this.BusinessUnitCode.Equals(input.BusinessUnitCode)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Context != null) - hashCode = hashCode * 59 + this.Context.GetHashCode(); - if (this.Endpoint != null) - hashCode = hashCode * 59 + this.Endpoint.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.HasPassword != null) - hashCode = hashCode * 59 + this.HasPassword.GetHashCode(); - if (this.BusinessUnitCode != null) - hashCode = hashCode * 59 + this.BusinessUnitCode.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCredentialsForRequestDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCredentialsForRequestDTO.cs deleted file mode 100644 index 150c018..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCredentialsForRequestDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of credentials for ArxCe Services request - /// - [DataContract] - public partial class ArxCeCredentialsForRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Saved credentials id. - /// Endpoint. - /// Username. - /// Password. - public ArxCeCredentialsForRequestDTO(int? credentialsId = default(int?), string endpoint = default(string), string username = default(string), string password = default(string)) - { - this.CredentialsId = credentialsId; - this.Endpoint = endpoint; - this.Username = username; - this.Password = password; - } - - /// - /// Saved credentials id - /// - /// Saved credentials id - [DataMember(Name="credentialsId", EmitDefaultValue=false)] - public int? CredentialsId { get; set; } - - /// - /// Endpoint - /// - /// Endpoint - [DataMember(Name="endpoint", EmitDefaultValue=false)] - public string Endpoint { get; set; } - - /// - /// Username - /// - /// Username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeCredentialsForRequestDTO {\n"); - sb.Append(" CredentialsId: ").Append(CredentialsId).Append("\n"); - sb.Append(" Endpoint: ").Append(Endpoint).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeCredentialsForRequestDTO); - } - - /// - /// Returns true if ArxCeCredentialsForRequestDTO instances are equal - /// - /// Instance of ArxCeCredentialsForRequestDTO to be compared - /// Boolean - public bool Equals(ArxCeCredentialsForRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.CredentialsId == input.CredentialsId || - (this.CredentialsId != null && - this.CredentialsId.Equals(input.CredentialsId)) - ) && - ( - this.Endpoint == input.Endpoint || - (this.Endpoint != null && - this.Endpoint.Equals(input.Endpoint)) - ) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CredentialsId != null) - hashCode = hashCode * 59 + this.CredentialsId.GetHashCode(); - if (this.Endpoint != null) - hashCode = hashCode * 59 + this.Endpoint.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCredentialsTreeDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCredentialsTreeDTO.cs deleted file mode 100644 index 65f3e03..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeCredentialsTreeDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of credentials with parents - /// - [DataContract] - public partial class ArxCeCredentialsTreeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Credentials. - /// Parent credentials. - public ArxCeCredentialsTreeDTO(ArxCeCredentialsDTO credentials = default(ArxCeCredentialsDTO), ArxCeCredentialsTreeDTO parentCredentials = default(ArxCeCredentialsTreeDTO)) - { - this.Credentials = credentials; - this.ParentCredentials = parentCredentials; - } - - /// - /// Credentials - /// - /// Credentials - [DataMember(Name="credentials", EmitDefaultValue=false)] - public ArxCeCredentialsDTO Credentials { get; set; } - - /// - /// Parent credentials - /// - /// Parent credentials - [DataMember(Name="parentCredentials", EmitDefaultValue=false)] - public ArxCeCredentialsTreeDTO ParentCredentials { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeCredentialsTreeDTO {\n"); - sb.Append(" Credentials: ").Append(Credentials).Append("\n"); - sb.Append(" ParentCredentials: ").Append(ParentCredentials).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeCredentialsTreeDTO); - } - - /// - /// Returns true if ArxCeCredentialsTreeDTO instances are equal - /// - /// Instance of ArxCeCredentialsTreeDTO to be compared - /// Boolean - public bool Equals(ArxCeCredentialsTreeDTO input) - { - if (input == null) - return false; - - return - ( - this.Credentials == input.Credentials || - (this.Credentials != null && - this.Credentials.Equals(input.Credentials)) - ) && - ( - this.ParentCredentials == input.ParentCredentials || - (this.ParentCredentials != null && - this.ParentCredentials.Equals(input.ParentCredentials)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Credentials != null) - hashCode = hashCode * 59 + this.Credentials.GetHashCode(); - if (this.ParentCredentials != null) - hashCode = hashCode * 59 + this.ParentCredentials.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeDocumentTypeDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeDocumentTypeDTO.cs deleted file mode 100644 index 0735407..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeDocumentTypeDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe document type - /// - [DataContract] - public partial class ArxCeDocumentTypeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - public ArxCeDocumentTypeDTO(string id = default(string), string description = default(string)) - { - this.Id = id; - this.Description = description; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeDocumentTypeDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeDocumentTypeDTO); - } - - /// - /// Returns true if ArxCeDocumentTypeDTO instances are equal - /// - /// Instance of ArxCeDocumentTypeDTO to be compared - /// Boolean - public bool Equals(ArxCeDocumentTypeDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeDocumentTypeDetailDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeDocumentTypeDetailDTO.cs deleted file mode 100644 index 4bdb26c..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeDocumentTypeDetailDTO.cs +++ /dev/null @@ -1,312 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe document type detail - /// - [DataContract] - public partial class ArxCeDocumentTypeDetailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Fields. - /// Breaking fields. - /// Numeration field. - /// Numeration field additional info. - /// Possible values: 0: None 1: RegularExpression . - /// Signature required. - /// Marking required. - /// Notes. - /// Time control. - /// System fields. - /// Possible values: 0: ErrorIfNotMarked 1: MarkIfNotMarked 2: None . - /// Possible values: 0: ErrorIfNotSigned 1: SignIfNotSigned 2: SignIfBadSigned 3: None . - public ArxCeDocumentTypeDetailDTO(List fields = default(List), List breakingFields = default(List), string numerationField = default(string), string numerationFieldExtraInfo = default(string), int? numerationFieldAlgorithm = default(int?), bool? signatureRequired = default(bool?), bool? markingRequired = default(bool?), string notes = default(string), ArxCeTimeControlDTO timeControl = default(ArxCeTimeControlDTO), List systemFields = default(List), int? markingSettings = default(int?), int? signatureSettings = default(int?)) - { - this.Fields = fields; - this.BreakingFields = breakingFields; - this.NumerationField = numerationField; - this.NumerationFieldExtraInfo = numerationFieldExtraInfo; - this.NumerationFieldAlgorithm = numerationFieldAlgorithm; - this.SignatureRequired = signatureRequired; - this.MarkingRequired = markingRequired; - this.Notes = notes; - this.TimeControl = timeControl; - this.SystemFields = systemFields; - this.MarkingSettings = markingSettings; - this.SignatureSettings = signatureSettings; - } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Breaking fields - /// - /// Breaking fields - [DataMember(Name="breakingFields", EmitDefaultValue=false)] - public List BreakingFields { get; set; } - - /// - /// Numeration field - /// - /// Numeration field - [DataMember(Name="numerationField", EmitDefaultValue=false)] - public string NumerationField { get; set; } - - /// - /// Numeration field additional info - /// - /// Numeration field additional info - [DataMember(Name="numerationFieldExtraInfo", EmitDefaultValue=false)] - public string NumerationFieldExtraInfo { get; set; } - - /// - /// Possible values: 0: None 1: RegularExpression - /// - /// Possible values: 0: None 1: RegularExpression - [DataMember(Name="numerationFieldAlgorithm", EmitDefaultValue=false)] - public int? NumerationFieldAlgorithm { get; set; } - - /// - /// Signature required - /// - /// Signature required - [DataMember(Name="signatureRequired", EmitDefaultValue=false)] - public bool? SignatureRequired { get; set; } - - /// - /// Marking required - /// - /// Marking required - [DataMember(Name="markingRequired", EmitDefaultValue=false)] - public bool? MarkingRequired { get; set; } - - /// - /// Notes - /// - /// Notes - [DataMember(Name="notes", EmitDefaultValue=false)] - public string Notes { get; set; } - - /// - /// Time control - /// - /// Time control - [DataMember(Name="timeControl", EmitDefaultValue=false)] - public ArxCeTimeControlDTO TimeControl { get; set; } - - /// - /// System fields - /// - /// System fields - [DataMember(Name="systemFields", EmitDefaultValue=false)] - public List SystemFields { get; set; } - - /// - /// Possible values: 0: ErrorIfNotMarked 1: MarkIfNotMarked 2: None - /// - /// Possible values: 0: ErrorIfNotMarked 1: MarkIfNotMarked 2: None - [DataMember(Name="markingSettings", EmitDefaultValue=false)] - public int? MarkingSettings { get; set; } - - /// - /// Possible values: 0: ErrorIfNotSigned 1: SignIfNotSigned 2: SignIfBadSigned 3: None - /// - /// Possible values: 0: ErrorIfNotSigned 1: SignIfNotSigned 2: SignIfBadSigned 3: None - [DataMember(Name="signatureSettings", EmitDefaultValue=false)] - public int? SignatureSettings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeDocumentTypeDetailDTO {\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append(" BreakingFields: ").Append(BreakingFields).Append("\n"); - sb.Append(" NumerationField: ").Append(NumerationField).Append("\n"); - sb.Append(" NumerationFieldExtraInfo: ").Append(NumerationFieldExtraInfo).Append("\n"); - sb.Append(" NumerationFieldAlgorithm: ").Append(NumerationFieldAlgorithm).Append("\n"); - sb.Append(" SignatureRequired: ").Append(SignatureRequired).Append("\n"); - sb.Append(" MarkingRequired: ").Append(MarkingRequired).Append("\n"); - sb.Append(" Notes: ").Append(Notes).Append("\n"); - sb.Append(" TimeControl: ").Append(TimeControl).Append("\n"); - sb.Append(" SystemFields: ").Append(SystemFields).Append("\n"); - sb.Append(" MarkingSettings: ").Append(MarkingSettings).Append("\n"); - sb.Append(" SignatureSettings: ").Append(SignatureSettings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeDocumentTypeDetailDTO); - } - - /// - /// Returns true if ArxCeDocumentTypeDetailDTO instances are equal - /// - /// Instance of ArxCeDocumentTypeDetailDTO to be compared - /// Boolean - public bool Equals(ArxCeDocumentTypeDetailDTO input) - { - if (input == null) - return false; - - return - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ) && - ( - this.BreakingFields == input.BreakingFields || - this.BreakingFields != null && - this.BreakingFields.SequenceEqual(input.BreakingFields) - ) && - ( - this.NumerationField == input.NumerationField || - (this.NumerationField != null && - this.NumerationField.Equals(input.NumerationField)) - ) && - ( - this.NumerationFieldExtraInfo == input.NumerationFieldExtraInfo || - (this.NumerationFieldExtraInfo != null && - this.NumerationFieldExtraInfo.Equals(input.NumerationFieldExtraInfo)) - ) && - ( - this.NumerationFieldAlgorithm == input.NumerationFieldAlgorithm || - (this.NumerationFieldAlgorithm != null && - this.NumerationFieldAlgorithm.Equals(input.NumerationFieldAlgorithm)) - ) && - ( - this.SignatureRequired == input.SignatureRequired || - (this.SignatureRequired != null && - this.SignatureRequired.Equals(input.SignatureRequired)) - ) && - ( - this.MarkingRequired == input.MarkingRequired || - (this.MarkingRequired != null && - this.MarkingRequired.Equals(input.MarkingRequired)) - ) && - ( - this.Notes == input.Notes || - (this.Notes != null && - this.Notes.Equals(input.Notes)) - ) && - ( - this.TimeControl == input.TimeControl || - (this.TimeControl != null && - this.TimeControl.Equals(input.TimeControl)) - ) && - ( - this.SystemFields == input.SystemFields || - this.SystemFields != null && - this.SystemFields.SequenceEqual(input.SystemFields) - ) && - ( - this.MarkingSettings == input.MarkingSettings || - (this.MarkingSettings != null && - this.MarkingSettings.Equals(input.MarkingSettings)) - ) && - ( - this.SignatureSettings == input.SignatureSettings || - (this.SignatureSettings != null && - this.SignatureSettings.Equals(input.SignatureSettings)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - if (this.BreakingFields != null) - hashCode = hashCode * 59 + this.BreakingFields.GetHashCode(); - if (this.NumerationField != null) - hashCode = hashCode * 59 + this.NumerationField.GetHashCode(); - if (this.NumerationFieldExtraInfo != null) - hashCode = hashCode * 59 + this.NumerationFieldExtraInfo.GetHashCode(); - if (this.NumerationFieldAlgorithm != null) - hashCode = hashCode * 59 + this.NumerationFieldAlgorithm.GetHashCode(); - if (this.SignatureRequired != null) - hashCode = hashCode * 59 + this.SignatureRequired.GetHashCode(); - if (this.MarkingRequired != null) - hashCode = hashCode * 59 + this.MarkingRequired.GetHashCode(); - if (this.Notes != null) - hashCode = hashCode * 59 + this.Notes.GetHashCode(); - if (this.TimeControl != null) - hashCode = hashCode * 59 + this.TimeControl.GetHashCode(); - if (this.SystemFields != null) - hashCode = hashCode * 59 + this.SystemFields.GetHashCode(); - if (this.MarkingSettings != null) - hashCode = hashCode * 59 + this.MarkingSettings.GetHashCode(); - if (this.SignatureSettings != null) - hashCode = hashCode * 59 + this.SignatureSettings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeFieldDTO.cs deleted file mode 100644 index 796779a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeFieldDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe document type field - /// - [DataContract] - public partial class ArxCeFieldDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Name. - /// Description. - /// External identifier. - /// Required. - /// Possible values: 0: String 1: Int 2: Date 3: DateTime 4: Double 5: Bit . - /// Possible values: 0: None 1: FiscalCode 2: VatCode . - /// Possible values: 0: Single 1: SingleSelectable . - /// Values. - /// Possible values: 0: Generico 1: ModalitaDiFormazione 2: DatiDiRegistrazioneTipologiaDiFlusso 3: DatiDiRegistrazioneTipoRegistro 4: DatiDiRegistrazioneDataRegistrazione 5: DatiDiRegistrazioneNumeroDocumento 6: DatiDiRegistrazioneCodiceRegistro 7: ChiaveDescrittivaOggetto 8: ChiaveDescrittivaParoleChiave 9: ClassificazioneIndiceDiClassificazione 10: ClassificazioneDescrizione 11: ClassificazionePianoDiClassificazione 12: Riservato 13: IdentificativoDelFormatoProdottoSoftwareNomeProdotto 14: IdentificativoDelFormatoProdottoSoftwareVersioneProdotto 15: IdentificativoDelFormatoProdottoSoftwareProduttore 16: Note 17: SoggettiAutoreNome 18: SoggettiAutoreCognome 19: SoggettiAutoreCodiceFiscale 20: SoggettiAutoreRagioneSociale 21: SoggettiAutorePartitaIva 22: SoggettiAutoreCodiceIpa 23: SoggettiAutoreCodiceUnivocoUfficio 24: SoggettiMittenteNome 25: SoggettiMittenteCognome 26: SoggettiMittenteCodiceFiscale 27: SoggettiMittenteRagioneSociale 28: SoggettiMittentePartitaIva 29: SoggettiMittenteCodiceIpa 30: SoggettiMittenteCodiceUnivocoUfficio 31: SoggettiDestinatarioNome 32: SoggettiDestinatarioCognome 33: SoggettiDestinatarioCodiceFiscale 34: SoggettiDestinatarioRagioneSociale 35: SoggettiDestinatarioPartitaIva 36: SoggettiDestinatarioCodiceIpa 37: SoggettiDestinatarioCodiceUnivocoUfficio 38: SoggettiOperatoreNome 39: SoggettiOperatoreCognome 40: SoggettiOperatoreCodiceFiscale 41: SoggettiOperatoreRagioneSociale 42: SoggettiOperatorePartitaIva 43: SoggettiOperatoreCodiceIpa 44: SoggettiOperatoreCodiceUnivocoUfficio 45: TempoDiConservazione 46: SoggettiSoggettoCheEffettuaLaRegistrazioneNome 47: SoggettiSoggettoCheEffettuaLaRegistrazioneCognome 48: SoggettiSoggettoCheEffettuaLaRegistrazioneRagioneSociale 49: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceFiscale 50: SoggettiSoggettoCheEffettuaLaRegistrazionePartitaIva 51: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceUnivocoUfficio 52: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceIpa . - /// Metadata field advanced options. - public ArxCeFieldDTO(string name = default(string), string description = default(string), string externalId = default(string), bool? required = default(bool?), int? fieldType = default(int?), int? validation = default(int?), int? inputMode = default(int?), List values = default(List), int? metadataType = default(int?), ArxCeFieldMetadataAdvancedOptionsDTO fieldMetadataAdvancedOptions = default(ArxCeFieldMetadataAdvancedOptionsDTO)) - { - this.Name = name; - this.Description = description; - this.ExternalId = externalId; - this.Required = required; - this.FieldType = fieldType; - this.Validation = validation; - this.InputMode = inputMode; - this.Values = values; - this.MetadataType = metadataType; - this.FieldMetadataAdvancedOptions = fieldMetadataAdvancedOptions; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// External identifier - /// - /// External identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Required - /// - /// Required - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Possible values: 0: String 1: Int 2: Date 3: DateTime 4: Double 5: Bit - /// - /// Possible values: 0: String 1: Int 2: Date 3: DateTime 4: Double 5: Bit - [DataMember(Name="fieldType", EmitDefaultValue=false)] - public int? FieldType { get; set; } - - /// - /// Possible values: 0: None 1: FiscalCode 2: VatCode - /// - /// Possible values: 0: None 1: FiscalCode 2: VatCode - [DataMember(Name="validation", EmitDefaultValue=false)] - public int? Validation { get; set; } - - /// - /// Possible values: 0: Single 1: SingleSelectable - /// - /// Possible values: 0: Single 1: SingleSelectable - [DataMember(Name="inputMode", EmitDefaultValue=false)] - public int? InputMode { get; set; } - - /// - /// Values - /// - /// Values - [DataMember(Name="values", EmitDefaultValue=false)] - public List Values { get; set; } - - /// - /// Possible values: 0: Generico 1: ModalitaDiFormazione 2: DatiDiRegistrazioneTipologiaDiFlusso 3: DatiDiRegistrazioneTipoRegistro 4: DatiDiRegistrazioneDataRegistrazione 5: DatiDiRegistrazioneNumeroDocumento 6: DatiDiRegistrazioneCodiceRegistro 7: ChiaveDescrittivaOggetto 8: ChiaveDescrittivaParoleChiave 9: ClassificazioneIndiceDiClassificazione 10: ClassificazioneDescrizione 11: ClassificazionePianoDiClassificazione 12: Riservato 13: IdentificativoDelFormatoProdottoSoftwareNomeProdotto 14: IdentificativoDelFormatoProdottoSoftwareVersioneProdotto 15: IdentificativoDelFormatoProdottoSoftwareProduttore 16: Note 17: SoggettiAutoreNome 18: SoggettiAutoreCognome 19: SoggettiAutoreCodiceFiscale 20: SoggettiAutoreRagioneSociale 21: SoggettiAutorePartitaIva 22: SoggettiAutoreCodiceIpa 23: SoggettiAutoreCodiceUnivocoUfficio 24: SoggettiMittenteNome 25: SoggettiMittenteCognome 26: SoggettiMittenteCodiceFiscale 27: SoggettiMittenteRagioneSociale 28: SoggettiMittentePartitaIva 29: SoggettiMittenteCodiceIpa 30: SoggettiMittenteCodiceUnivocoUfficio 31: SoggettiDestinatarioNome 32: SoggettiDestinatarioCognome 33: SoggettiDestinatarioCodiceFiscale 34: SoggettiDestinatarioRagioneSociale 35: SoggettiDestinatarioPartitaIva 36: SoggettiDestinatarioCodiceIpa 37: SoggettiDestinatarioCodiceUnivocoUfficio 38: SoggettiOperatoreNome 39: SoggettiOperatoreCognome 40: SoggettiOperatoreCodiceFiscale 41: SoggettiOperatoreRagioneSociale 42: SoggettiOperatorePartitaIva 43: SoggettiOperatoreCodiceIpa 44: SoggettiOperatoreCodiceUnivocoUfficio 45: TempoDiConservazione 46: SoggettiSoggettoCheEffettuaLaRegistrazioneNome 47: SoggettiSoggettoCheEffettuaLaRegistrazioneCognome 48: SoggettiSoggettoCheEffettuaLaRegistrazioneRagioneSociale 49: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceFiscale 50: SoggettiSoggettoCheEffettuaLaRegistrazionePartitaIva 51: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceUnivocoUfficio 52: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceIpa - /// - /// Possible values: 0: Generico 1: ModalitaDiFormazione 2: DatiDiRegistrazioneTipologiaDiFlusso 3: DatiDiRegistrazioneTipoRegistro 4: DatiDiRegistrazioneDataRegistrazione 5: DatiDiRegistrazioneNumeroDocumento 6: DatiDiRegistrazioneCodiceRegistro 7: ChiaveDescrittivaOggetto 8: ChiaveDescrittivaParoleChiave 9: ClassificazioneIndiceDiClassificazione 10: ClassificazioneDescrizione 11: ClassificazionePianoDiClassificazione 12: Riservato 13: IdentificativoDelFormatoProdottoSoftwareNomeProdotto 14: IdentificativoDelFormatoProdottoSoftwareVersioneProdotto 15: IdentificativoDelFormatoProdottoSoftwareProduttore 16: Note 17: SoggettiAutoreNome 18: SoggettiAutoreCognome 19: SoggettiAutoreCodiceFiscale 20: SoggettiAutoreRagioneSociale 21: SoggettiAutorePartitaIva 22: SoggettiAutoreCodiceIpa 23: SoggettiAutoreCodiceUnivocoUfficio 24: SoggettiMittenteNome 25: SoggettiMittenteCognome 26: SoggettiMittenteCodiceFiscale 27: SoggettiMittenteRagioneSociale 28: SoggettiMittentePartitaIva 29: SoggettiMittenteCodiceIpa 30: SoggettiMittenteCodiceUnivocoUfficio 31: SoggettiDestinatarioNome 32: SoggettiDestinatarioCognome 33: SoggettiDestinatarioCodiceFiscale 34: SoggettiDestinatarioRagioneSociale 35: SoggettiDestinatarioPartitaIva 36: SoggettiDestinatarioCodiceIpa 37: SoggettiDestinatarioCodiceUnivocoUfficio 38: SoggettiOperatoreNome 39: SoggettiOperatoreCognome 40: SoggettiOperatoreCodiceFiscale 41: SoggettiOperatoreRagioneSociale 42: SoggettiOperatorePartitaIva 43: SoggettiOperatoreCodiceIpa 44: SoggettiOperatoreCodiceUnivocoUfficio 45: TempoDiConservazione 46: SoggettiSoggettoCheEffettuaLaRegistrazioneNome 47: SoggettiSoggettoCheEffettuaLaRegistrazioneCognome 48: SoggettiSoggettoCheEffettuaLaRegistrazioneRagioneSociale 49: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceFiscale 50: SoggettiSoggettoCheEffettuaLaRegistrazionePartitaIva 51: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceUnivocoUfficio 52: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceIpa - [DataMember(Name="metadataType", EmitDefaultValue=false)] - public int? MetadataType { get; set; } - - /// - /// Metadata field advanced options - /// - /// Metadata field advanced options - [DataMember(Name="fieldMetadataAdvancedOptions", EmitDefaultValue=false)] - public ArxCeFieldMetadataAdvancedOptionsDTO FieldMetadataAdvancedOptions { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeFieldDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" FieldType: ").Append(FieldType).Append("\n"); - sb.Append(" Validation: ").Append(Validation).Append("\n"); - sb.Append(" InputMode: ").Append(InputMode).Append("\n"); - sb.Append(" Values: ").Append(Values).Append("\n"); - sb.Append(" MetadataType: ").Append(MetadataType).Append("\n"); - sb.Append(" FieldMetadataAdvancedOptions: ").Append(FieldMetadataAdvancedOptions).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeFieldDTO); - } - - /// - /// Returns true if ArxCeFieldDTO instances are equal - /// - /// Instance of ArxCeFieldDTO to be compared - /// Boolean - public bool Equals(ArxCeFieldDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.FieldType == input.FieldType || - (this.FieldType != null && - this.FieldType.Equals(input.FieldType)) - ) && - ( - this.Validation == input.Validation || - (this.Validation != null && - this.Validation.Equals(input.Validation)) - ) && - ( - this.InputMode == input.InputMode || - (this.InputMode != null && - this.InputMode.Equals(input.InputMode)) - ) && - ( - this.Values == input.Values || - this.Values != null && - this.Values.SequenceEqual(input.Values) - ) && - ( - this.MetadataType == input.MetadataType || - (this.MetadataType != null && - this.MetadataType.Equals(input.MetadataType)) - ) && - ( - this.FieldMetadataAdvancedOptions == input.FieldMetadataAdvancedOptions || - (this.FieldMetadataAdvancedOptions != null && - this.FieldMetadataAdvancedOptions.Equals(input.FieldMetadataAdvancedOptions)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.FieldType != null) - hashCode = hashCode * 59 + this.FieldType.GetHashCode(); - if (this.Validation != null) - hashCode = hashCode * 59 + this.Validation.GetHashCode(); - if (this.InputMode != null) - hashCode = hashCode * 59 + this.InputMode.GetHashCode(); - if (this.Values != null) - hashCode = hashCode * 59 + this.Values.GetHashCode(); - if (this.MetadataType != null) - hashCode = hashCode * 59 + this.MetadataType.GetHashCode(); - if (this.FieldMetadataAdvancedOptions != null) - hashCode = hashCode * 59 + this.FieldMetadataAdvancedOptions.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeFieldMetadataAdvancedOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeFieldMetadataAdvancedOptionsDTO.cs deleted file mode 100644 index 5e2db30..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeFieldMetadataAdvancedOptionsDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe metadata field advanced options - /// - [DataContract] - public partial class ArxCeFieldMetadataAdvancedOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Nessuno 1: ValoreFisso 2: AltroCampo 3: DataRegDocumento 4: IdentificativoDoc 5: AooPiva 6: AooCf 7: AooRagioneSociale 8: ClientePiva 9: ClienteCf 10: ClienteRagioneSociale . - /// Field default value. - /// Possible values: 0: None 1: Regex . - /// Formula field. - /// CodiceCampo reference field. - public ArxCeFieldMetadataAdvancedOptionsDTO(int? defaultValueType = default(int?), string defaultValue = default(string), int? formulaAdvancedOptionsType = default(int?), string formula = default(string), string referenceFieldCode = default(string)) - { - this.DefaultValueType = defaultValueType; - this.DefaultValue = defaultValue; - this.FormulaAdvancedOptionsType = formulaAdvancedOptionsType; - this.Formula = formula; - this.ReferenceFieldCode = referenceFieldCode; - } - - /// - /// Possible values: 0: Nessuno 1: ValoreFisso 2: AltroCampo 3: DataRegDocumento 4: IdentificativoDoc 5: AooPiva 6: AooCf 7: AooRagioneSociale 8: ClientePiva 9: ClienteCf 10: ClienteRagioneSociale - /// - /// Possible values: 0: Nessuno 1: ValoreFisso 2: AltroCampo 3: DataRegDocumento 4: IdentificativoDoc 5: AooPiva 6: AooCf 7: AooRagioneSociale 8: ClientePiva 9: ClienteCf 10: ClienteRagioneSociale - [DataMember(Name="defaultValueType", EmitDefaultValue=false)] - public int? DefaultValueType { get; set; } - - /// - /// Field default value - /// - /// Field default value - [DataMember(Name="defaultValue", EmitDefaultValue=false)] - public string DefaultValue { get; set; } - - /// - /// Possible values: 0: None 1: Regex - /// - /// Possible values: 0: None 1: Regex - [DataMember(Name="formulaAdvancedOptionsType", EmitDefaultValue=false)] - public int? FormulaAdvancedOptionsType { get; set; } - - /// - /// Formula field - /// - /// Formula field - [DataMember(Name="formula", EmitDefaultValue=false)] - public string Formula { get; set; } - - /// - /// CodiceCampo reference field - /// - /// CodiceCampo reference field - [DataMember(Name="referenceFieldCode", EmitDefaultValue=false)] - public string ReferenceFieldCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeFieldMetadataAdvancedOptionsDTO {\n"); - sb.Append(" DefaultValueType: ").Append(DefaultValueType).Append("\n"); - sb.Append(" DefaultValue: ").Append(DefaultValue).Append("\n"); - sb.Append(" FormulaAdvancedOptionsType: ").Append(FormulaAdvancedOptionsType).Append("\n"); - sb.Append(" Formula: ").Append(Formula).Append("\n"); - sb.Append(" ReferenceFieldCode: ").Append(ReferenceFieldCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeFieldMetadataAdvancedOptionsDTO); - } - - /// - /// Returns true if ArxCeFieldMetadataAdvancedOptionsDTO instances are equal - /// - /// Instance of ArxCeFieldMetadataAdvancedOptionsDTO to be compared - /// Boolean - public bool Equals(ArxCeFieldMetadataAdvancedOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.DefaultValueType == input.DefaultValueType || - (this.DefaultValueType != null && - this.DefaultValueType.Equals(input.DefaultValueType)) - ) && - ( - this.DefaultValue == input.DefaultValue || - (this.DefaultValue != null && - this.DefaultValue.Equals(input.DefaultValue)) - ) && - ( - this.FormulaAdvancedOptionsType == input.FormulaAdvancedOptionsType || - (this.FormulaAdvancedOptionsType != null && - this.FormulaAdvancedOptionsType.Equals(input.FormulaAdvancedOptionsType)) - ) && - ( - this.Formula == input.Formula || - (this.Formula != null && - this.Formula.Equals(input.Formula)) - ) && - ( - this.ReferenceFieldCode == input.ReferenceFieldCode || - (this.ReferenceFieldCode != null && - this.ReferenceFieldCode.Equals(input.ReferenceFieldCode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DefaultValueType != null) - hashCode = hashCode * 59 + this.DefaultValueType.GetHashCode(); - if (this.DefaultValue != null) - hashCode = hashCode * 59 + this.DefaultValue.GetHashCode(); - if (this.FormulaAdvancedOptionsType != null) - hashCode = hashCode * 59 + this.FormulaAdvancedOptionsType.GetHashCode(); - if (this.Formula != null) - hashCode = hashCode * 59 + this.Formula.GetHashCode(); - if (this.ReferenceFieldCode != null) - hashCode = hashCode * 59 + this.ReferenceFieldCode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeMetadataDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeMetadataDTO.cs deleted file mode 100644 index d38f9b2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeMetadataDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe field metadata - /// - [DataContract] - public partial class ArxCeMetadataDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Name. - /// Value. - /// Type. - public ArxCeMetadataDTO(string name = default(string), string value = default(string), string type = default(string)) - { - this.Name = name; - this.Value = value; - this.Type = type; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Type - /// - /// Type - [DataMember(Name="type", EmitDefaultValue=false)] - public string Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeMetadataDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeMetadataDTO); - } - - /// - /// Returns true if ArxCeMetadataDTO instances are equal - /// - /// Instance of ArxCeMetadataDTO to be compared - /// Boolean - public bool Equals(ArxCeMetadataDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeNotificationDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeNotificationDTO.cs deleted file mode 100644 index 36b5c67..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeNotificationDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe Notification - /// - [DataContract] - public partial class ArxCeNotificationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: TakeChargeError 5: IxceTakeCharge 6: ToValidate 7: Validated 8: InError 9: Discarded 10: Preserved . - /// Label. - /// Description. - public ArxCeNotificationDTO(int? type = default(int?), string label = default(string), string description = default(string)) - { - this.Type = type; - this.Label = label; - this.Description = description; - } - - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: TakeChargeError 5: IxceTakeCharge 6: ToValidate 7: Validated 8: InError 9: Discarded 10: Preserved - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: TakeChargeError 5: IxceTakeCharge 6: ToValidate 7: Validated 8: InError 9: Discarded 10: Preserved - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeNotificationDTO {\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeNotificationDTO); - } - - /// - /// Returns true if ArxCeNotificationDTO instances are equal - /// - /// Instance of ArxCeNotificationDTO to be compared - /// Boolean - public bool Equals(ArxCeNotificationDTO input) - { - if (input == null) - return false; - - return - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeNotificationSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeNotificationSettingsDTO.cs deleted file mode 100644 index e2140e2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeNotificationSettingsDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe Notification settings - /// - [DataContract] - public partial class ArxCeNotificationSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// ArxCe notification. - /// Arxivar state. - public ArxCeNotificationSettingsDTO(int? id = default(int?), ArxCeNotificationDTO type = default(ArxCeNotificationDTO), StateSimpleDTO state = default(StateSimpleDTO)) - { - this.Id = id; - this.Type = type; - this.State = state; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// ArxCe notification - /// - /// ArxCe notification - [DataMember(Name="type", EmitDefaultValue=false)] - public ArxCeNotificationDTO Type { get; set; } - - /// - /// Arxivar state - /// - /// Arxivar state - [DataMember(Name="state", EmitDefaultValue=false)] - public StateSimpleDTO State { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeNotificationSettingsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeNotificationSettingsDTO); - } - - /// - /// Returns true if ArxCeNotificationSettingsDTO instances are equal - /// - /// Instance of ArxCeNotificationSettingsDTO to be compared - /// Boolean - public bool Equals(ArxCeNotificationSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeProvince.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeProvince.cs deleted file mode 100644 index 6e24cee..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeProvince.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe province - /// - [DataContract] - public partial class ArxCeProvince : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Code. - /// Description. - /// Region. - /// Country. - public ArxCeProvince(string id = default(string), string code = default(string), string description = default(string), ArxCeRegion region = default(ArxCeRegion), ArxCeCountry country = default(ArxCeCountry)) - { - this.Id = id; - this.Code = code; - this.Description = description; - this.Region = region; - this.Country = country; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Region - /// - /// Region - [DataMember(Name="region", EmitDefaultValue=false)] - public ArxCeRegion Region { get; set; } - - /// - /// Country - /// - /// Country - [DataMember(Name="country", EmitDefaultValue=false)] - public ArxCeCountry Country { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeProvince {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Region: ").Append(Region).Append("\n"); - sb.Append(" Country: ").Append(Country).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeProvince); - } - - /// - /// Returns true if ArxCeProvince instances are equal - /// - /// Instance of ArxCeProvince to be compared - /// Boolean - public bool Equals(ArxCeProvince input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Region == input.Region || - (this.Region != null && - this.Region.Equals(input.Region)) - ) && - ( - this.Country == input.Country || - (this.Country != null && - this.Country.Equals(input.Country)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Region != null) - hashCode = hashCode * 59 + this.Region.GetHashCode(); - if (this.Country != null) - hashCode = hashCode * 59 + this.Country.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeRegion.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeRegion.cs deleted file mode 100644 index b9f0018..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeRegion.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe region - /// - [DataContract] - public partial class ArxCeRegion : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - /// Country. - public ArxCeRegion(string id = default(string), string description = default(string), ArxCeCountry country = default(ArxCeCountry)) - { - this.Id = id; - this.Description = description; - this.Country = country; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Country - /// - /// Country - [DataMember(Name="country", EmitDefaultValue=false)] - public ArxCeCountry Country { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeRegion {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Country: ").Append(Country).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeRegion); - } - - /// - /// Returns true if ArxCeRegion instances are equal - /// - /// Instance of ArxCeRegion to be compared - /// Boolean - public bool Equals(ArxCeRegion input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Country == input.Country || - (this.Country != null && - this.Country.Equals(input.Country)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Country != null) - hashCode = hashCode * 59 + this.Country.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeSendingSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeSendingSettingsDTO.cs deleted file mode 100644 index b3d8827..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeSendingSettingsDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe sending rule - /// - [DataContract] - public partial class ArxCeSendingSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Arxivar Business unit code. - /// Arxivar Document type. - /// Search. - /// Has custome credentials. - public ArxCeSendingSettingsDTO(int? id = default(int?), string businessUnitCode = default(string), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), FindSimpleDTO search = default(FindSimpleDTO), bool? hasCustomCredentials = default(bool?)) - { - this.Id = id; - this.BusinessUnitCode = businessUnitCode; - this.DocumentType = documentType; - this.Search = search; - this.HasCustomCredentials = hasCustomCredentials; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Arxivar Business unit code - /// - /// Arxivar Business unit code - [DataMember(Name="businessUnitCode", EmitDefaultValue=false)] - public string BusinessUnitCode { get; set; } - - /// - /// Arxivar Document type - /// - /// Arxivar Document type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Search - /// - /// Search - [DataMember(Name="search", EmitDefaultValue=false)] - public FindSimpleDTO Search { get; set; } - - /// - /// Has custome credentials - /// - /// Has custome credentials - [DataMember(Name="hasCustomCredentials", EmitDefaultValue=false)] - public bool? HasCustomCredentials { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeSendingSettingsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" BusinessUnitCode: ").Append(BusinessUnitCode).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Search: ").Append(Search).Append("\n"); - sb.Append(" HasCustomCredentials: ").Append(HasCustomCredentials).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeSendingSettingsDTO); - } - - /// - /// Returns true if ArxCeSendingSettingsDTO instances are equal - /// - /// Instance of ArxCeSendingSettingsDTO to be compared - /// Boolean - public bool Equals(ArxCeSendingSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.BusinessUnitCode == input.BusinessUnitCode || - (this.BusinessUnitCode != null && - this.BusinessUnitCode.Equals(input.BusinessUnitCode)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Search == input.Search || - (this.Search != null && - this.Search.Equals(input.Search)) - ) && - ( - this.HasCustomCredentials == input.HasCustomCredentials || - (this.HasCustomCredentials != null && - this.HasCustomCredentials.Equals(input.HasCustomCredentials)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.BusinessUnitCode != null) - hashCode = hashCode * 59 + this.BusinessUnitCode.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Search != null) - hashCode = hashCode * 59 + this.Search.GetHashCode(); - if (this.HasCustomCredentials != null) - hashCode = hashCode * 59 + this.HasCustomCredentials.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeSendingSettingsDetailDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeSendingSettingsDetailDTO.cs deleted file mode 100644 index 8f63a50..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeSendingSettingsDetailDTO.cs +++ /dev/null @@ -1,261 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe sending settings details - /// - [DataContract] - public partial class ArxCeSendingSettingsDetailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// ArxCe Document type. - /// Search. - /// Search. - /// Search. - /// Required marking. - /// Possible values: 0: ErrorIfNotMarked 1: MarkIfNotMarked 2: None . - /// Possible values: 0: ErrorIfNotSigned 1: SignIfNotSigned 2: SignIfBadSigned 3: None . - /// Search. - /// Credentials for document type. - public ArxCeSendingSettingsDetailDTO(ArxCeDocumentTypeDTO arxCeDocumentType = default(ArxCeDocumentTypeDTO), string numerationField = default(string), List breakingFields = default(List), bool? signatureRequired = default(bool?), bool? markingRequired = default(bool?), int? markingOption = default(int?), int? signatureOption = default(int?), List mapping = default(List), ArxCeCredentialsDTO credentials = default(ArxCeCredentialsDTO)) - { - this.ArxCeDocumentType = arxCeDocumentType; - this.NumerationField = numerationField; - this.BreakingFields = breakingFields; - this.SignatureRequired = signatureRequired; - this.MarkingRequired = markingRequired; - this.MarkingOption = markingOption; - this.SignatureOption = signatureOption; - this.Mapping = mapping; - this.Credentials = credentials; - } - - /// - /// ArxCe Document type - /// - /// ArxCe Document type - [DataMember(Name="arxCeDocumentType", EmitDefaultValue=false)] - public ArxCeDocumentTypeDTO ArxCeDocumentType { get; set; } - - /// - /// Search - /// - /// Search - [DataMember(Name="numerationField", EmitDefaultValue=false)] - public string NumerationField { get; set; } - - /// - /// Search - /// - /// Search - [DataMember(Name="breakingFields", EmitDefaultValue=false)] - public List BreakingFields { get; set; } - - /// - /// Search - /// - /// Search - [DataMember(Name="signatureRequired", EmitDefaultValue=false)] - public bool? SignatureRequired { get; set; } - - /// - /// Required marking - /// - /// Required marking - [DataMember(Name="markingRequired", EmitDefaultValue=false)] - public bool? MarkingRequired { get; set; } - - /// - /// Possible values: 0: ErrorIfNotMarked 1: MarkIfNotMarked 2: None - /// - /// Possible values: 0: ErrorIfNotMarked 1: MarkIfNotMarked 2: None - [DataMember(Name="markingOption", EmitDefaultValue=false)] - public int? MarkingOption { get; set; } - - /// - /// Possible values: 0: ErrorIfNotSigned 1: SignIfNotSigned 2: SignIfBadSigned 3: None - /// - /// Possible values: 0: ErrorIfNotSigned 1: SignIfNotSigned 2: SignIfBadSigned 3: None - [DataMember(Name="signatureOption", EmitDefaultValue=false)] - public int? SignatureOption { get; set; } - - /// - /// Search - /// - /// Search - [DataMember(Name="mapping", EmitDefaultValue=false)] - public List Mapping { get; set; } - - /// - /// Credentials for document type - /// - /// Credentials for document type - [DataMember(Name="credentials", EmitDefaultValue=false)] - public ArxCeCredentialsDTO Credentials { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeSendingSettingsDetailDTO {\n"); - sb.Append(" ArxCeDocumentType: ").Append(ArxCeDocumentType).Append("\n"); - sb.Append(" NumerationField: ").Append(NumerationField).Append("\n"); - sb.Append(" BreakingFields: ").Append(BreakingFields).Append("\n"); - sb.Append(" SignatureRequired: ").Append(SignatureRequired).Append("\n"); - sb.Append(" MarkingRequired: ").Append(MarkingRequired).Append("\n"); - sb.Append(" MarkingOption: ").Append(MarkingOption).Append("\n"); - sb.Append(" SignatureOption: ").Append(SignatureOption).Append("\n"); - sb.Append(" Mapping: ").Append(Mapping).Append("\n"); - sb.Append(" Credentials: ").Append(Credentials).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeSendingSettingsDetailDTO); - } - - /// - /// Returns true if ArxCeSendingSettingsDetailDTO instances are equal - /// - /// Instance of ArxCeSendingSettingsDetailDTO to be compared - /// Boolean - public bool Equals(ArxCeSendingSettingsDetailDTO input) - { - if (input == null) - return false; - - return - ( - this.ArxCeDocumentType == input.ArxCeDocumentType || - (this.ArxCeDocumentType != null && - this.ArxCeDocumentType.Equals(input.ArxCeDocumentType)) - ) && - ( - this.NumerationField == input.NumerationField || - (this.NumerationField != null && - this.NumerationField.Equals(input.NumerationField)) - ) && - ( - this.BreakingFields == input.BreakingFields || - this.BreakingFields != null && - this.BreakingFields.SequenceEqual(input.BreakingFields) - ) && - ( - this.SignatureRequired == input.SignatureRequired || - (this.SignatureRequired != null && - this.SignatureRequired.Equals(input.SignatureRequired)) - ) && - ( - this.MarkingRequired == input.MarkingRequired || - (this.MarkingRequired != null && - this.MarkingRequired.Equals(input.MarkingRequired)) - ) && - ( - this.MarkingOption == input.MarkingOption || - (this.MarkingOption != null && - this.MarkingOption.Equals(input.MarkingOption)) - ) && - ( - this.SignatureOption == input.SignatureOption || - (this.SignatureOption != null && - this.SignatureOption.Equals(input.SignatureOption)) - ) && - ( - this.Mapping == input.Mapping || - this.Mapping != null && - this.Mapping.SequenceEqual(input.Mapping) - ) && - ( - this.Credentials == input.Credentials || - (this.Credentials != null && - this.Credentials.Equals(input.Credentials)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ArxCeDocumentType != null) - hashCode = hashCode * 59 + this.ArxCeDocumentType.GetHashCode(); - if (this.NumerationField != null) - hashCode = hashCode * 59 + this.NumerationField.GetHashCode(); - if (this.BreakingFields != null) - hashCode = hashCode * 59 + this.BreakingFields.GetHashCode(); - if (this.SignatureRequired != null) - hashCode = hashCode * 59 + this.SignatureRequired.GetHashCode(); - if (this.MarkingRequired != null) - hashCode = hashCode * 59 + this.MarkingRequired.GetHashCode(); - if (this.MarkingOption != null) - hashCode = hashCode * 59 + this.MarkingOption.GetHashCode(); - if (this.SignatureOption != null) - hashCode = hashCode * 59 + this.SignatureOption.GetHashCode(); - if (this.Mapping != null) - hashCode = hashCode * 59 + this.Mapping.GetHashCode(); - if (this.Credentials != null) - hashCode = hashCode * 59 + this.Credentials.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeSendingSettingsMappingDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeSendingSettingsMappingDTO.cs deleted file mode 100644 index 70a3fe3..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeSendingSettingsMappingDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe sending rule mapping - /// - [DataContract] - public partial class ArxCeSendingSettingsMappingDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// ArxCe field name. - /// ArxCe field description. - /// Arxivar field. - /// Possible values: 0: String 1: Int 2: Date 3: DateTime 4: Double 5: Bit . - /// Possible values: 0: None 1: FiscalCode 2: VatCode . - /// ArxCe required field. - /// Possible values: 0: Generico 1: ModalitaDiFormazione 2: DatiDiRegistrazioneTipologiaDiFlusso 3: DatiDiRegistrazioneTipoRegistro 4: DatiDiRegistrazioneDataRegistrazione 5: DatiDiRegistrazioneNumeroDocumento 6: DatiDiRegistrazioneCodiceRegistro 7: ChiaveDescrittivaOggetto 8: ChiaveDescrittivaParoleChiave 9: ClassificazioneIndiceDiClassificazione 10: ClassificazioneDescrizione 11: ClassificazionePianoDiClassificazione 12: Riservato 13: IdentificativoDelFormatoProdottoSoftwareNomeProdotto 14: IdentificativoDelFormatoProdottoSoftwareVersioneProdotto 15: IdentificativoDelFormatoProdottoSoftwareProduttore 16: Note 17: SoggettiAutoreNome 18: SoggettiAutoreCognome 19: SoggettiAutoreCodiceFiscale 20: SoggettiAutoreRagioneSociale 21: SoggettiAutorePartitaIva 22: SoggettiAutoreCodiceIpa 23: SoggettiAutoreCodiceUnivocoUfficio 24: SoggettiMittenteNome 25: SoggettiMittenteCognome 26: SoggettiMittenteCodiceFiscale 27: SoggettiMittenteRagioneSociale 28: SoggettiMittentePartitaIva 29: SoggettiMittenteCodiceIpa 30: SoggettiMittenteCodiceUnivocoUfficio 31: SoggettiDestinatarioNome 32: SoggettiDestinatarioCognome 33: SoggettiDestinatarioCodiceFiscale 34: SoggettiDestinatarioRagioneSociale 35: SoggettiDestinatarioPartitaIva 36: SoggettiDestinatarioCodiceIpa 37: SoggettiDestinatarioCodiceUnivocoUfficio 38: SoggettiOperatoreNome 39: SoggettiOperatoreCognome 40: SoggettiOperatoreCodiceFiscale 41: SoggettiOperatoreRagioneSociale 42: SoggettiOperatorePartitaIva 43: SoggettiOperatoreCodiceIpa 44: SoggettiOperatoreCodiceUnivocoUfficio 45: TempoDiConservazione 46: SoggettiSoggettoCheEffettuaLaRegistrazioneNome 47: SoggettiSoggettoCheEffettuaLaRegistrazioneCognome 48: SoggettiSoggettoCheEffettuaLaRegistrazioneRagioneSociale 49: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceFiscale 50: SoggettiSoggettoCheEffettuaLaRegistrazionePartitaIva 51: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceUnivocoUfficio 52: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceIpa . - /// Metadata field advanced options. - /// Allowed values. - /// Possible values: 0: Single 1: SingleSelectable . - public ArxCeSendingSettingsMappingDTO(string name = default(string), string description = default(string), FieldManagementDTO arxField = default(FieldManagementDTO), int? fieldType = default(int?), int? fieldValidation = default(int?), bool? required = default(bool?), int? metadataType = default(int?), ArxCeFieldMetadataAdvancedOptionsDTO fieldMetadataAdvancedOptions = default(ArxCeFieldMetadataAdvancedOptionsDTO), List allowedValues = default(List), int? inputMode = default(int?)) - { - this.Name = name; - this.Description = description; - this.ArxField = arxField; - this.FieldType = fieldType; - this.FieldValidation = fieldValidation; - this.Required = required; - this.MetadataType = metadataType; - this.FieldMetadataAdvancedOptions = fieldMetadataAdvancedOptions; - this.AllowedValues = allowedValues; - this.InputMode = inputMode; - } - - /// - /// ArxCe field name - /// - /// ArxCe field name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// ArxCe field description - /// - /// ArxCe field description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Arxivar field - /// - /// Arxivar field - [DataMember(Name="arxField", EmitDefaultValue=false)] - public FieldManagementDTO ArxField { get; set; } - - /// - /// Possible values: 0: String 1: Int 2: Date 3: DateTime 4: Double 5: Bit - /// - /// Possible values: 0: String 1: Int 2: Date 3: DateTime 4: Double 5: Bit - [DataMember(Name="fieldType", EmitDefaultValue=false)] - public int? FieldType { get; set; } - - /// - /// Possible values: 0: None 1: FiscalCode 2: VatCode - /// - /// Possible values: 0: None 1: FiscalCode 2: VatCode - [DataMember(Name="fieldValidation", EmitDefaultValue=false)] - public int? FieldValidation { get; set; } - - /// - /// ArxCe required field - /// - /// ArxCe required field - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Possible values: 0: Generico 1: ModalitaDiFormazione 2: DatiDiRegistrazioneTipologiaDiFlusso 3: DatiDiRegistrazioneTipoRegistro 4: DatiDiRegistrazioneDataRegistrazione 5: DatiDiRegistrazioneNumeroDocumento 6: DatiDiRegistrazioneCodiceRegistro 7: ChiaveDescrittivaOggetto 8: ChiaveDescrittivaParoleChiave 9: ClassificazioneIndiceDiClassificazione 10: ClassificazioneDescrizione 11: ClassificazionePianoDiClassificazione 12: Riservato 13: IdentificativoDelFormatoProdottoSoftwareNomeProdotto 14: IdentificativoDelFormatoProdottoSoftwareVersioneProdotto 15: IdentificativoDelFormatoProdottoSoftwareProduttore 16: Note 17: SoggettiAutoreNome 18: SoggettiAutoreCognome 19: SoggettiAutoreCodiceFiscale 20: SoggettiAutoreRagioneSociale 21: SoggettiAutorePartitaIva 22: SoggettiAutoreCodiceIpa 23: SoggettiAutoreCodiceUnivocoUfficio 24: SoggettiMittenteNome 25: SoggettiMittenteCognome 26: SoggettiMittenteCodiceFiscale 27: SoggettiMittenteRagioneSociale 28: SoggettiMittentePartitaIva 29: SoggettiMittenteCodiceIpa 30: SoggettiMittenteCodiceUnivocoUfficio 31: SoggettiDestinatarioNome 32: SoggettiDestinatarioCognome 33: SoggettiDestinatarioCodiceFiscale 34: SoggettiDestinatarioRagioneSociale 35: SoggettiDestinatarioPartitaIva 36: SoggettiDestinatarioCodiceIpa 37: SoggettiDestinatarioCodiceUnivocoUfficio 38: SoggettiOperatoreNome 39: SoggettiOperatoreCognome 40: SoggettiOperatoreCodiceFiscale 41: SoggettiOperatoreRagioneSociale 42: SoggettiOperatorePartitaIva 43: SoggettiOperatoreCodiceIpa 44: SoggettiOperatoreCodiceUnivocoUfficio 45: TempoDiConservazione 46: SoggettiSoggettoCheEffettuaLaRegistrazioneNome 47: SoggettiSoggettoCheEffettuaLaRegistrazioneCognome 48: SoggettiSoggettoCheEffettuaLaRegistrazioneRagioneSociale 49: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceFiscale 50: SoggettiSoggettoCheEffettuaLaRegistrazionePartitaIva 51: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceUnivocoUfficio 52: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceIpa - /// - /// Possible values: 0: Generico 1: ModalitaDiFormazione 2: DatiDiRegistrazioneTipologiaDiFlusso 3: DatiDiRegistrazioneTipoRegistro 4: DatiDiRegistrazioneDataRegistrazione 5: DatiDiRegistrazioneNumeroDocumento 6: DatiDiRegistrazioneCodiceRegistro 7: ChiaveDescrittivaOggetto 8: ChiaveDescrittivaParoleChiave 9: ClassificazioneIndiceDiClassificazione 10: ClassificazioneDescrizione 11: ClassificazionePianoDiClassificazione 12: Riservato 13: IdentificativoDelFormatoProdottoSoftwareNomeProdotto 14: IdentificativoDelFormatoProdottoSoftwareVersioneProdotto 15: IdentificativoDelFormatoProdottoSoftwareProduttore 16: Note 17: SoggettiAutoreNome 18: SoggettiAutoreCognome 19: SoggettiAutoreCodiceFiscale 20: SoggettiAutoreRagioneSociale 21: SoggettiAutorePartitaIva 22: SoggettiAutoreCodiceIpa 23: SoggettiAutoreCodiceUnivocoUfficio 24: SoggettiMittenteNome 25: SoggettiMittenteCognome 26: SoggettiMittenteCodiceFiscale 27: SoggettiMittenteRagioneSociale 28: SoggettiMittentePartitaIva 29: SoggettiMittenteCodiceIpa 30: SoggettiMittenteCodiceUnivocoUfficio 31: SoggettiDestinatarioNome 32: SoggettiDestinatarioCognome 33: SoggettiDestinatarioCodiceFiscale 34: SoggettiDestinatarioRagioneSociale 35: SoggettiDestinatarioPartitaIva 36: SoggettiDestinatarioCodiceIpa 37: SoggettiDestinatarioCodiceUnivocoUfficio 38: SoggettiOperatoreNome 39: SoggettiOperatoreCognome 40: SoggettiOperatoreCodiceFiscale 41: SoggettiOperatoreRagioneSociale 42: SoggettiOperatorePartitaIva 43: SoggettiOperatoreCodiceIpa 44: SoggettiOperatoreCodiceUnivocoUfficio 45: TempoDiConservazione 46: SoggettiSoggettoCheEffettuaLaRegistrazioneNome 47: SoggettiSoggettoCheEffettuaLaRegistrazioneCognome 48: SoggettiSoggettoCheEffettuaLaRegistrazioneRagioneSociale 49: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceFiscale 50: SoggettiSoggettoCheEffettuaLaRegistrazionePartitaIva 51: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceUnivocoUfficio 52: SoggettiSoggettoCheEffettuaLaRegistrazioneCodiceIpa - [DataMember(Name="metadataType", EmitDefaultValue=false)] - public int? MetadataType { get; set; } - - /// - /// Metadata field advanced options - /// - /// Metadata field advanced options - [DataMember(Name="fieldMetadataAdvancedOptions", EmitDefaultValue=false)] - public ArxCeFieldMetadataAdvancedOptionsDTO FieldMetadataAdvancedOptions { get; set; } - - /// - /// Allowed values - /// - /// Allowed values - [DataMember(Name="allowedValues", EmitDefaultValue=false)] - public List AllowedValues { get; set; } - - /// - /// Possible values: 0: Single 1: SingleSelectable - /// - /// Possible values: 0: Single 1: SingleSelectable - [DataMember(Name="inputMode", EmitDefaultValue=false)] - public int? InputMode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeSendingSettingsMappingDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ArxField: ").Append(ArxField).Append("\n"); - sb.Append(" FieldType: ").Append(FieldType).Append("\n"); - sb.Append(" FieldValidation: ").Append(FieldValidation).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" MetadataType: ").Append(MetadataType).Append("\n"); - sb.Append(" FieldMetadataAdvancedOptions: ").Append(FieldMetadataAdvancedOptions).Append("\n"); - sb.Append(" AllowedValues: ").Append(AllowedValues).Append("\n"); - sb.Append(" InputMode: ").Append(InputMode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeSendingSettingsMappingDTO); - } - - /// - /// Returns true if ArxCeSendingSettingsMappingDTO instances are equal - /// - /// Instance of ArxCeSendingSettingsMappingDTO to be compared - /// Boolean - public bool Equals(ArxCeSendingSettingsMappingDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.ArxField == input.ArxField || - (this.ArxField != null && - this.ArxField.Equals(input.ArxField)) - ) && - ( - this.FieldType == input.FieldType || - (this.FieldType != null && - this.FieldType.Equals(input.FieldType)) - ) && - ( - this.FieldValidation == input.FieldValidation || - (this.FieldValidation != null && - this.FieldValidation.Equals(input.FieldValidation)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.MetadataType == input.MetadataType || - (this.MetadataType != null && - this.MetadataType.Equals(input.MetadataType)) - ) && - ( - this.FieldMetadataAdvancedOptions == input.FieldMetadataAdvancedOptions || - (this.FieldMetadataAdvancedOptions != null && - this.FieldMetadataAdvancedOptions.Equals(input.FieldMetadataAdvancedOptions)) - ) && - ( - this.AllowedValues == input.AllowedValues || - this.AllowedValues != null && - this.AllowedValues.SequenceEqual(input.AllowedValues) - ) && - ( - this.InputMode == input.InputMode || - (this.InputMode != null && - this.InputMode.Equals(input.InputMode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ArxField != null) - hashCode = hashCode * 59 + this.ArxField.GetHashCode(); - if (this.FieldType != null) - hashCode = hashCode * 59 + this.FieldType.GetHashCode(); - if (this.FieldValidation != null) - hashCode = hashCode * 59 + this.FieldValidation.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.MetadataType != null) - hashCode = hashCode * 59 + this.MetadataType.GetHashCode(); - if (this.FieldMetadataAdvancedOptions != null) - hashCode = hashCode * 59 + this.FieldMetadataAdvancedOptions.GetHashCode(); - if (this.AllowedValues != null) - hashCode = hashCode * 59 + this.AllowedValues.GetHashCode(); - if (this.InputMode != null) - hashCode = hashCode * 59 + this.InputMode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeTimeControlDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeTimeControlDTO.cs deleted file mode 100644 index f52915e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxCeTimeControlDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of ArxCe time control - /// - [DataContract] - public partial class ArxCeTimeControlDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Start date. - /// End date. - /// Control field. - public ArxCeTimeControlDTO(string id = default(string), string startDate = default(string), string endDate = default(string), string controlField = default(string)) - { - this.Id = id; - this.StartDate = startDate; - this.EndDate = endDate; - this.ControlField = controlField; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Start date - /// - /// Start date - [DataMember(Name="startDate", EmitDefaultValue=false)] - public string StartDate { get; set; } - - /// - /// End date - /// - /// End date - [DataMember(Name="endDate", EmitDefaultValue=false)] - public string EndDate { get; set; } - - /// - /// Control field - /// - /// Control field - [DataMember(Name="controlField", EmitDefaultValue=false)] - public string ControlField { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxCeTimeControlDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" ControlField: ").Append(ControlField).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxCeTimeControlDTO); - } - - /// - /// Returns true if ArxCeTimeControlDTO instances are equal - /// - /// Instance of ArxCeTimeControlDTO to be compared - /// Boolean - public bool Equals(ArxCeTimeControlDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && - ( - this.ControlField == input.ControlField || - (this.ControlField != null && - this.ControlField.Equals(input.ControlField)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.ControlField != null) - hashCode = hashCode * 59 + this.ControlField.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxESignConfigurationDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxESignConfigurationDto.cs deleted file mode 100644 index 00ff09c..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxESignConfigurationDto.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Sign Flow configuration - /// - [DataContract] - public partial class ArxESignConfigurationDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Base url custom. Overrides ApiBaseUrlLicense. - /// Access token custom. Overrides ApiBaseUrlLicense -&gt; is set. - /// Access token custom. Overrides ApiBaseUrlLicense. - /// Base url from license permission -&gt; is set. - /// Access token from license permission -&gt; is set. - /// Creation date. - /// Last update. - public ArxESignConfigurationDto(string apiBaseUrlCustom = default(string), bool? isSetApiTokenCustom = default(bool?), string apiTokenCustom = default(string), bool? isSetApiBaseUrlLicense = default(bool?), bool? isSetApiTokenLicense = default(bool?), DateTime? creationDate = default(DateTime?), DateTime? lastUpdate = default(DateTime?)) - { - this.ApiBaseUrlCustom = apiBaseUrlCustom; - this.IsSetApiTokenCustom = isSetApiTokenCustom; - this.ApiTokenCustom = apiTokenCustom; - this.IsSetApiBaseUrlLicense = isSetApiBaseUrlLicense; - this.IsSetApiTokenLicense = isSetApiTokenLicense; - this.CreationDate = creationDate; - this.LastUpdate = lastUpdate; - } - - /// - /// Base url custom. Overrides ApiBaseUrlLicense - /// - /// Base url custom. Overrides ApiBaseUrlLicense - [DataMember(Name="apiBaseUrlCustom", EmitDefaultValue=false)] - public string ApiBaseUrlCustom { get; set; } - - /// - /// Access token custom. Overrides ApiBaseUrlLicense -&gt; is set - /// - /// Access token custom. Overrides ApiBaseUrlLicense -&gt; is set - [DataMember(Name="isSetApiTokenCustom", EmitDefaultValue=false)] - public bool? IsSetApiTokenCustom { get; set; } - - /// - /// Access token custom. Overrides ApiBaseUrlLicense - /// - /// Access token custom. Overrides ApiBaseUrlLicense - [DataMember(Name="apiTokenCustom", EmitDefaultValue=false)] - public string ApiTokenCustom { get; set; } - - /// - /// Base url from license permission -&gt; is set - /// - /// Base url from license permission -&gt; is set - [DataMember(Name="isSetApiBaseUrlLicense", EmitDefaultValue=false)] - public bool? IsSetApiBaseUrlLicense { get; set; } - - /// - /// Access token from license permission -&gt; is set - /// - /// Access token from license permission -&gt; is set - [DataMember(Name="isSetApiTokenLicense", EmitDefaultValue=false)] - public bool? IsSetApiTokenLicense { get; set; } - - /// - /// Creation date - /// - /// Creation date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Last update - /// - /// Last update - [DataMember(Name="lastUpdate", EmitDefaultValue=false)] - public DateTime? LastUpdate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignConfigurationDto {\n"); - sb.Append(" ApiBaseUrlCustom: ").Append(ApiBaseUrlCustom).Append("\n"); - sb.Append(" IsSetApiTokenCustom: ").Append(IsSetApiTokenCustom).Append("\n"); - sb.Append(" ApiTokenCustom: ").Append(ApiTokenCustom).Append("\n"); - sb.Append(" IsSetApiBaseUrlLicense: ").Append(IsSetApiBaseUrlLicense).Append("\n"); - sb.Append(" IsSetApiTokenLicense: ").Append(IsSetApiTokenLicense).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" LastUpdate: ").Append(LastUpdate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignConfigurationDto); - } - - /// - /// Returns true if ArxESignConfigurationDto instances are equal - /// - /// Instance of ArxESignConfigurationDto to be compared - /// Boolean - public bool Equals(ArxESignConfigurationDto input) - { - if (input == null) - return false; - - return - ( - this.ApiBaseUrlCustom == input.ApiBaseUrlCustom || - (this.ApiBaseUrlCustom != null && - this.ApiBaseUrlCustom.Equals(input.ApiBaseUrlCustom)) - ) && - ( - this.IsSetApiTokenCustom == input.IsSetApiTokenCustom || - (this.IsSetApiTokenCustom != null && - this.IsSetApiTokenCustom.Equals(input.IsSetApiTokenCustom)) - ) && - ( - this.ApiTokenCustom == input.ApiTokenCustom || - (this.ApiTokenCustom != null && - this.ApiTokenCustom.Equals(input.ApiTokenCustom)) - ) && - ( - this.IsSetApiBaseUrlLicense == input.IsSetApiBaseUrlLicense || - (this.IsSetApiBaseUrlLicense != null && - this.IsSetApiBaseUrlLicense.Equals(input.IsSetApiBaseUrlLicense)) - ) && - ( - this.IsSetApiTokenLicense == input.IsSetApiTokenLicense || - (this.IsSetApiTokenLicense != null && - this.IsSetApiTokenLicense.Equals(input.IsSetApiTokenLicense)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.LastUpdate == input.LastUpdate || - (this.LastUpdate != null && - this.LastUpdate.Equals(input.LastUpdate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ApiBaseUrlCustom != null) - hashCode = hashCode * 59 + this.ApiBaseUrlCustom.GetHashCode(); - if (this.IsSetApiTokenCustom != null) - hashCode = hashCode * 59 + this.IsSetApiTokenCustom.GetHashCode(); - if (this.ApiTokenCustom != null) - hashCode = hashCode * 59 + this.ApiTokenCustom.GetHashCode(); - if (this.IsSetApiBaseUrlLicense != null) - hashCode = hashCode * 59 + this.IsSetApiBaseUrlLicense.GetHashCode(); - if (this.IsSetApiTokenLicense != null) - hashCode = hashCode * 59 + this.IsSetApiTokenLicense.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.LastUpdate != null) - hashCode = hashCode * 59 + this.LastUpdate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxESignConfigurationStatusDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxESignConfigurationStatusDto.cs deleted file mode 100644 index a23709e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxESignConfigurationStatusDto.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Sign Flow configuration status - /// - [DataContract] - public partial class ArxESignConfigurationStatusDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Exists a configuration record for Sign Flow and ApiBaseUrlLicense/ApiTokenLicense are set. - /// The license contains the SIGNFLOW module. - /// Secure storage is configured. - public ArxESignConfigurationStatusDto(bool? licenseConfiguration = default(bool?), bool? licenseModule = default(bool?), bool? secureStorageConfigured = default(bool?)) - { - this.LicenseConfiguration = licenseConfiguration; - this.LicenseModule = licenseModule; - this.SecureStorageConfigured = secureStorageConfigured; - } - - /// - /// Exists a configuration record for Sign Flow and ApiBaseUrlLicense/ApiTokenLicense are set - /// - /// Exists a configuration record for Sign Flow and ApiBaseUrlLicense/ApiTokenLicense are set - [DataMember(Name="licenseConfiguration", EmitDefaultValue=false)] - public bool? LicenseConfiguration { get; set; } - - /// - /// The license contains the SIGNFLOW module - /// - /// The license contains the SIGNFLOW module - [DataMember(Name="licenseModule", EmitDefaultValue=false)] - public bool? LicenseModule { get; set; } - - /// - /// Secure storage is configured - /// - /// Secure storage is configured - [DataMember(Name="secureStorageConfigured", EmitDefaultValue=false)] - public bool? SecureStorageConfigured { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignConfigurationStatusDto {\n"); - sb.Append(" LicenseConfiguration: ").Append(LicenseConfiguration).Append("\n"); - sb.Append(" LicenseModule: ").Append(LicenseModule).Append("\n"); - sb.Append(" SecureStorageConfigured: ").Append(SecureStorageConfigured).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignConfigurationStatusDto); - } - - /// - /// Returns true if ArxESignConfigurationStatusDto instances are equal - /// - /// Instance of ArxESignConfigurationStatusDto to be compared - /// Boolean - public bool Equals(ArxESignConfigurationStatusDto input) - { - if (input == null) - return false; - - return - ( - this.LicenseConfiguration == input.LicenseConfiguration || - (this.LicenseConfiguration != null && - this.LicenseConfiguration.Equals(input.LicenseConfiguration)) - ) && - ( - this.LicenseModule == input.LicenseModule || - (this.LicenseModule != null && - this.LicenseModule.Equals(input.LicenseModule)) - ) && - ( - this.SecureStorageConfigured == input.SecureStorageConfigured || - (this.SecureStorageConfigured != null && - this.SecureStorageConfigured.Equals(input.SecureStorageConfigured)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.LicenseConfiguration != null) - hashCode = hashCode * 59 + this.LicenseConfiguration.GetHashCode(); - if (this.LicenseModule != null) - hashCode = hashCode * 59 + this.LicenseModule.GetHashCode(); - if (this.SecureStorageConfigured != null) - hashCode = hashCode * 59 + this.SecureStorageConfigured.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxESignConfigurationUpdateDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxESignConfigurationUpdateDto.cs deleted file mode 100644 index ef7017d..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ArxESignConfigurationUpdateDto.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Sign Flow configuration update model - /// - [DataContract] - public partial class ArxESignConfigurationUpdateDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Base url custom. Overrides ApiBaseUrlLicense. - /// Access token custom. Overrides ApiBaseUrlLicense -&gt; is set. - /// Access token custom. Overrides ApiBaseUrlLicense. - /// Organization Id Custom. Overrides OrganizationIdLicense. - public ArxESignConfigurationUpdateDto(string apiBaseUrlCustom = default(string), bool? isSetApiTokenCustom = default(bool?), string apiTokenCustom = default(string), string organizationIdCustom = default(string)) - { - this.ApiBaseUrlCustom = apiBaseUrlCustom; - this.IsSetApiTokenCustom = isSetApiTokenCustom; - this.ApiTokenCustom = apiTokenCustom; - this.OrganizationIdCustom = organizationIdCustom; - } - - /// - /// Base url custom. Overrides ApiBaseUrlLicense - /// - /// Base url custom. Overrides ApiBaseUrlLicense - [DataMember(Name="apiBaseUrlCustom", EmitDefaultValue=false)] - public string ApiBaseUrlCustom { get; set; } - - /// - /// Access token custom. Overrides ApiBaseUrlLicense -&gt; is set - /// - /// Access token custom. Overrides ApiBaseUrlLicense -&gt; is set - [DataMember(Name="isSetApiTokenCustom", EmitDefaultValue=false)] - public bool? IsSetApiTokenCustom { get; set; } - - /// - /// Access token custom. Overrides ApiBaseUrlLicense - /// - /// Access token custom. Overrides ApiBaseUrlLicense - [DataMember(Name="apiTokenCustom", EmitDefaultValue=false)] - public string ApiTokenCustom { get; set; } - - /// - /// Organization Id Custom. Overrides OrganizationIdLicense - /// - /// Organization Id Custom. Overrides OrganizationIdLicense - [DataMember(Name="organizationIdCustom", EmitDefaultValue=false)] - public string OrganizationIdCustom { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ArxESignConfigurationUpdateDto {\n"); - sb.Append(" ApiBaseUrlCustom: ").Append(ApiBaseUrlCustom).Append("\n"); - sb.Append(" IsSetApiTokenCustom: ").Append(IsSetApiTokenCustom).Append("\n"); - sb.Append(" ApiTokenCustom: ").Append(ApiTokenCustom).Append("\n"); - sb.Append(" OrganizationIdCustom: ").Append(OrganizationIdCustom).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ArxESignConfigurationUpdateDto); - } - - /// - /// Returns true if ArxESignConfigurationUpdateDto instances are equal - /// - /// Instance of ArxESignConfigurationUpdateDto to be compared - /// Boolean - public bool Equals(ArxESignConfigurationUpdateDto input) - { - if (input == null) - return false; - - return - ( - this.ApiBaseUrlCustom == input.ApiBaseUrlCustom || - (this.ApiBaseUrlCustom != null && - this.ApiBaseUrlCustom.Equals(input.ApiBaseUrlCustom)) - ) && - ( - this.IsSetApiTokenCustom == input.IsSetApiTokenCustom || - (this.IsSetApiTokenCustom != null && - this.IsSetApiTokenCustom.Equals(input.IsSetApiTokenCustom)) - ) && - ( - this.ApiTokenCustom == input.ApiTokenCustom || - (this.ApiTokenCustom != null && - this.ApiTokenCustom.Equals(input.ApiTokenCustom)) - ) && - ( - this.OrganizationIdCustom == input.OrganizationIdCustom || - (this.OrganizationIdCustom != null && - this.OrganizationIdCustom.Equals(input.OrganizationIdCustom)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ApiBaseUrlCustom != null) - hashCode = hashCode * 59 + this.ApiBaseUrlCustom.GetHashCode(); - if (this.IsSetApiTokenCustom != null) - hashCode = hashCode * 59 + this.IsSetApiTokenCustom.GetHashCode(); - if (this.ApiTokenCustom != null) - hashCode = hashCode * 59 + this.ApiTokenCustom.GetHashCode(); - if (this.OrganizationIdCustom != null) - hashCode = hashCode * 59 + this.OrganizationIdCustom.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AssociationDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AssociationDTO.cs deleted file mode 100644 index f27cb25..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AssociationDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of association item - /// - [DataContract] - public partial class AssociationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique Identifier. - /// Identifier of the principal profile. - /// Identifier of author. - /// Creation Date. - /// Name. - /// Full Name of the author. - public AssociationDTO(int? id = default(int?), int? docNumber = default(int?), int? user = default(int?), DateTime? date = default(DateTime?), string description = default(string), string userNameComplete = default(string)) - { - this.Id = id; - this.DocNumber = docNumber; - this.User = user; - this.Date = date; - this.Description = description; - this.UserNameComplete = userNameComplete; - } - - /// - /// Unique Identifier - /// - /// Unique Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Identifier of the principal profile - /// - /// Identifier of the principal profile - [DataMember(Name="docNumber", EmitDefaultValue=false)] - public int? DocNumber { get; set; } - - /// - /// Identifier of author - /// - /// Identifier of author - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="date", EmitDefaultValue=false)] - public DateTime? Date { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Full Name of the author - /// - /// Full Name of the author - [DataMember(Name="userNameComplete", EmitDefaultValue=false)] - public string UserNameComplete { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AssociationDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" DocNumber: ").Append(DocNumber).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" UserNameComplete: ").Append(UserNameComplete).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AssociationDTO); - } - - /// - /// Returns true if AssociationDTO instances are equal - /// - /// Instance of AssociationDTO to be compared - /// Boolean - public bool Equals(AssociationDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.DocNumber == input.DocNumber || - (this.DocNumber != null && - this.DocNumber.Equals(input.DocNumber)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.UserNameComplete == input.UserNameComplete || - (this.UserNameComplete != null && - this.UserNameComplete.Equals(input.UserNameComplete)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.DocNumber != null) - hashCode = hashCode * 59 + this.DocNumber.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.UserNameComplete != null) - hashCode = hashCode * 59 + this.UserNameComplete.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AssociationFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AssociationFieldDTO.cs deleted file mode 100644 index 7b1a484..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AssociationFieldDTO.cs +++ /dev/null @@ -1,131 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// AssociationFieldDTO - /// - [DataContract] - public partial class AssociationFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AssociationFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// value. - public AssociationFieldDTO(AssociationDTO value = default(AssociationDTO), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AssociationFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public AssociationDTO Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AssociationFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AssociationFieldDTO); - } - - /// - /// Returns true if AssociationFieldDTO instances are equal - /// - /// Instance of AssociationFieldDTO to be compared - /// Boolean - public bool Equals(AssociationFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AssocitationFieldItem.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AssocitationFieldItem.cs deleted file mode 100644 index 1191f29..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AssocitationFieldItem.cs +++ /dev/null @@ -1,141 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// AssocitationFieldItem - /// - [DataContract] - public partial class AssocitationFieldItem : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// fieldName. - /// Name. - public AssocitationFieldItem(string fieldName = default(string), string association = default(string)) - { - this.FieldName = fieldName; - this.Association = association; - } - - /// - /// Gets or Sets FieldName - /// - [DataMember(Name="fieldName", EmitDefaultValue=false)] - public string FieldName { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="association", EmitDefaultValue=false)] - public string Association { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AssocitationFieldItem {\n"); - sb.Append(" FieldName: ").Append(FieldName).Append("\n"); - sb.Append(" Association: ").Append(Association).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AssocitationFieldItem); - } - - /// - /// Returns true if AssocitationFieldItem instances are equal - /// - /// Instance of AssocitationFieldItem to be compared - /// Boolean - public bool Equals(AssocitationFieldItem input) - { - if (input == null) - return false; - - return - ( - this.FieldName == input.FieldName || - (this.FieldName != null && - this.FieldName.Equals(input.FieldName)) - ) && - ( - this.Association == input.Association || - (this.Association != null && - this.Association.Equals(input.Association)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.FieldName != null) - hashCode = hashCode * 59 + this.FieldName.GetHashCode(); - if (this.Association != null) - hashCode = hashCode * 59 + this.Association.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AttachmentDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AttachmentDTO.cs deleted file mode 100644 index b6823d1..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AttachmentDTO.cs +++ /dev/null @@ -1,532 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Attachment - /// - [DataContract] - public partial class AttachmentDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique identifier. - /// Document Identifier. - /// Revision number. - /// Name for the zip file.. - /// Path of compressed file.. - /// Name of the file.. - /// Possible values: 0: Hd 1: Cd . - /// CD Label. - /// Description. - /// Creation Date. - /// Identifier of the author. - /// Full name of the author. - /// Possible values: 0: None 1: Active 2: Marked . - /// Replace with the profile data for web visualization. - /// Hash of the file. - /// Send the file in the case of email shipment. - /// Kept in the replacement mode with the document profile. - /// Possible values: 0: Access_Denied 1: Read_Only 2: Edit 4: Full_Trust -1: None . - /// Possible values: 0: File_System 1: Database . - /// File Size. - /// Possible values: 0: ExternalAttachement 1: InternalAttachement . - /// Document Identifier if the internal attachment. - /// Send the file to IX service in the case of shipment. - /// attachmentRevision. - /// Possible values: 0: None 1: CompressChilkat91 2: CompressChilkat95 3: CompressChilkat95AndCryptoAes256 . - public AttachmentDTO(int? id = default(int?), int? docnumber = default(int?), int? revision = default(int?), string filename = default(string), string filepath = default(string), string originalname = default(string), int? device = default(int?), string cdlabel = default(string), string comment = default(string), DateTime? importdate = default(DateTime?), int? user = default(int?), string userCompleteName = default(string), int? block = default(int?), bool? compliantcopy = default(bool?), string footprint = default(string), bool? checksend = default(bool?), bool? aosflag = default(bool?), int? access = default(int?), int? saveType = default(int?), long? filesize = default(long?), int? kind = default(int?), int? attachedDocnumber = default(int?), bool? ixCheck = default(bool?), int? attachmentRevision = default(int?), int? compressionMode = default(int?)) - { - this.Id = id; - this.Docnumber = docnumber; - this.Revision = revision; - this.Filename = filename; - this.Filepath = filepath; - this.Originalname = originalname; - this.Device = device; - this.Cdlabel = cdlabel; - this.Comment = comment; - this.Importdate = importdate; - this.User = user; - this.UserCompleteName = userCompleteName; - this.Block = block; - this.Compliantcopy = compliantcopy; - this.Footprint = footprint; - this.Checksend = checksend; - this.Aosflag = aosflag; - this.Access = access; - this.SaveType = saveType; - this.Filesize = filesize; - this.Kind = kind; - this.AttachedDocnumber = attachedDocnumber; - this.IxCheck = ixCheck; - this.AttachmentRevision = attachmentRevision; - this.CompressionMode = compressionMode; - } - - /// - /// Unique identifier - /// - /// Unique identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Revision number - /// - /// Revision number - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Name for the zip file. - /// - /// Name for the zip file. - [DataMember(Name="filename", EmitDefaultValue=false)] - public string Filename { get; set; } - - /// - /// Path of compressed file. - /// - /// Path of compressed file. - [DataMember(Name="filepath", EmitDefaultValue=false)] - public string Filepath { get; set; } - - /// - /// Name of the file. - /// - /// Name of the file. - [DataMember(Name="originalname", EmitDefaultValue=false)] - public string Originalname { get; set; } - - /// - /// Possible values: 0: Hd 1: Cd - /// - /// Possible values: 0: Hd 1: Cd - [DataMember(Name="device", EmitDefaultValue=false)] - public int? Device { get; set; } - - /// - /// CD Label - /// - /// CD Label - [DataMember(Name="cdlabel", EmitDefaultValue=false)] - public string Cdlabel { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="comment", EmitDefaultValue=false)] - public string Comment { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="importdate", EmitDefaultValue=false)] - public DateTime? Importdate { get; set; } - - /// - /// Identifier of the author - /// - /// Identifier of the author - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Full name of the author - /// - /// Full name of the author - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Possible values: 0: None 1: Active 2: Marked - /// - /// Possible values: 0: None 1: Active 2: Marked - [DataMember(Name="block", EmitDefaultValue=false)] - public int? Block { get; set; } - - /// - /// Replace with the profile data for web visualization - /// - /// Replace with the profile data for web visualization - [DataMember(Name="compliantcopy", EmitDefaultValue=false)] - public bool? Compliantcopy { get; set; } - - /// - /// Hash of the file - /// - /// Hash of the file - [DataMember(Name="footprint", EmitDefaultValue=false)] - public string Footprint { get; set; } - - /// - /// Send the file in the case of email shipment - /// - /// Send the file in the case of email shipment - [DataMember(Name="checksend", EmitDefaultValue=false)] - public bool? Checksend { get; set; } - - /// - /// Kept in the replacement mode with the document profile - /// - /// Kept in the replacement mode with the document profile - [DataMember(Name="aosflag", EmitDefaultValue=false)] - public bool? Aosflag { get; set; } - - /// - /// Possible values: 0: Access_Denied 1: Read_Only 2: Edit 4: Full_Trust -1: None - /// - /// Possible values: 0: Access_Denied 1: Read_Only 2: Edit 4: Full_Trust -1: None - [DataMember(Name="access", EmitDefaultValue=false)] - public int? Access { get; set; } - - /// - /// Possible values: 0: File_System 1: Database - /// - /// Possible values: 0: File_System 1: Database - [DataMember(Name="saveType", EmitDefaultValue=false)] - public int? SaveType { get; set; } - - /// - /// File Size - /// - /// File Size - [DataMember(Name="filesize", EmitDefaultValue=false)] - public long? Filesize { get; set; } - - /// - /// Possible values: 0: ExternalAttachement 1: InternalAttachement - /// - /// Possible values: 0: ExternalAttachement 1: InternalAttachement - [DataMember(Name="kind", EmitDefaultValue=false)] - public int? Kind { get; set; } - - /// - /// Document Identifier if the internal attachment - /// - /// Document Identifier if the internal attachment - [DataMember(Name="attachedDocnumber", EmitDefaultValue=false)] - public int? AttachedDocnumber { get; set; } - - /// - /// Send the file to IX service in the case of shipment - /// - /// Send the file to IX service in the case of shipment - [DataMember(Name="ixCheck", EmitDefaultValue=false)] - public bool? IxCheck { get; set; } - - /// - /// Gets or Sets AttachmentRevision - /// - [DataMember(Name="attachmentRevision", EmitDefaultValue=false)] - public int? AttachmentRevision { get; set; } - - /// - /// Possible values: 0: None 1: CompressChilkat91 2: CompressChilkat95 3: CompressChilkat95AndCryptoAes256 - /// - /// Possible values: 0: None 1: CompressChilkat91 2: CompressChilkat95 3: CompressChilkat95AndCryptoAes256 - [DataMember(Name="compressionMode", EmitDefaultValue=false)] - public int? CompressionMode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttachmentDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" Filename: ").Append(Filename).Append("\n"); - sb.Append(" Filepath: ").Append(Filepath).Append("\n"); - sb.Append(" Originalname: ").Append(Originalname).Append("\n"); - sb.Append(" Device: ").Append(Device).Append("\n"); - sb.Append(" Cdlabel: ").Append(Cdlabel).Append("\n"); - sb.Append(" Comment: ").Append(Comment).Append("\n"); - sb.Append(" Importdate: ").Append(Importdate).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" Block: ").Append(Block).Append("\n"); - sb.Append(" Compliantcopy: ").Append(Compliantcopy).Append("\n"); - sb.Append(" Footprint: ").Append(Footprint).Append("\n"); - sb.Append(" Checksend: ").Append(Checksend).Append("\n"); - sb.Append(" Aosflag: ").Append(Aosflag).Append("\n"); - sb.Append(" Access: ").Append(Access).Append("\n"); - sb.Append(" SaveType: ").Append(SaveType).Append("\n"); - sb.Append(" Filesize: ").Append(Filesize).Append("\n"); - sb.Append(" Kind: ").Append(Kind).Append("\n"); - sb.Append(" AttachedDocnumber: ").Append(AttachedDocnumber).Append("\n"); - sb.Append(" IxCheck: ").Append(IxCheck).Append("\n"); - sb.Append(" AttachmentRevision: ").Append(AttachmentRevision).Append("\n"); - sb.Append(" CompressionMode: ").Append(CompressionMode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttachmentDTO); - } - - /// - /// Returns true if AttachmentDTO instances are equal - /// - /// Instance of AttachmentDTO to be compared - /// Boolean - public bool Equals(AttachmentDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.Filename == input.Filename || - (this.Filename != null && - this.Filename.Equals(input.Filename)) - ) && - ( - this.Filepath == input.Filepath || - (this.Filepath != null && - this.Filepath.Equals(input.Filepath)) - ) && - ( - this.Originalname == input.Originalname || - (this.Originalname != null && - this.Originalname.Equals(input.Originalname)) - ) && - ( - this.Device == input.Device || - (this.Device != null && - this.Device.Equals(input.Device)) - ) && - ( - this.Cdlabel == input.Cdlabel || - (this.Cdlabel != null && - this.Cdlabel.Equals(input.Cdlabel)) - ) && - ( - this.Comment == input.Comment || - (this.Comment != null && - this.Comment.Equals(input.Comment)) - ) && - ( - this.Importdate == input.Importdate || - (this.Importdate != null && - this.Importdate.Equals(input.Importdate)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.Block == input.Block || - (this.Block != null && - this.Block.Equals(input.Block)) - ) && - ( - this.Compliantcopy == input.Compliantcopy || - (this.Compliantcopy != null && - this.Compliantcopy.Equals(input.Compliantcopy)) - ) && - ( - this.Footprint == input.Footprint || - (this.Footprint != null && - this.Footprint.Equals(input.Footprint)) - ) && - ( - this.Checksend == input.Checksend || - (this.Checksend != null && - this.Checksend.Equals(input.Checksend)) - ) && - ( - this.Aosflag == input.Aosflag || - (this.Aosflag != null && - this.Aosflag.Equals(input.Aosflag)) - ) && - ( - this.Access == input.Access || - (this.Access != null && - this.Access.Equals(input.Access)) - ) && - ( - this.SaveType == input.SaveType || - (this.SaveType != null && - this.SaveType.Equals(input.SaveType)) - ) && - ( - this.Filesize == input.Filesize || - (this.Filesize != null && - this.Filesize.Equals(input.Filesize)) - ) && - ( - this.Kind == input.Kind || - (this.Kind != null && - this.Kind.Equals(input.Kind)) - ) && - ( - this.AttachedDocnumber == input.AttachedDocnumber || - (this.AttachedDocnumber != null && - this.AttachedDocnumber.Equals(input.AttachedDocnumber)) - ) && - ( - this.IxCheck == input.IxCheck || - (this.IxCheck != null && - this.IxCheck.Equals(input.IxCheck)) - ) && - ( - this.AttachmentRevision == input.AttachmentRevision || - (this.AttachmentRevision != null && - this.AttachmentRevision.Equals(input.AttachmentRevision)) - ) && - ( - this.CompressionMode == input.CompressionMode || - (this.CompressionMode != null && - this.CompressionMode.Equals(input.CompressionMode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.Filename != null) - hashCode = hashCode * 59 + this.Filename.GetHashCode(); - if (this.Filepath != null) - hashCode = hashCode * 59 + this.Filepath.GetHashCode(); - if (this.Originalname != null) - hashCode = hashCode * 59 + this.Originalname.GetHashCode(); - if (this.Device != null) - hashCode = hashCode * 59 + this.Device.GetHashCode(); - if (this.Cdlabel != null) - hashCode = hashCode * 59 + this.Cdlabel.GetHashCode(); - if (this.Comment != null) - hashCode = hashCode * 59 + this.Comment.GetHashCode(); - if (this.Importdate != null) - hashCode = hashCode * 59 + this.Importdate.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.Block != null) - hashCode = hashCode * 59 + this.Block.GetHashCode(); - if (this.Compliantcopy != null) - hashCode = hashCode * 59 + this.Compliantcopy.GetHashCode(); - if (this.Footprint != null) - hashCode = hashCode * 59 + this.Footprint.GetHashCode(); - if (this.Checksend != null) - hashCode = hashCode * 59 + this.Checksend.GetHashCode(); - if (this.Aosflag != null) - hashCode = hashCode * 59 + this.Aosflag.GetHashCode(); - if (this.Access != null) - hashCode = hashCode * 59 + this.Access.GetHashCode(); - if (this.SaveType != null) - hashCode = hashCode * 59 + this.SaveType.GetHashCode(); - if (this.Filesize != null) - hashCode = hashCode * 59 + this.Filesize.GetHashCode(); - if (this.Kind != null) - hashCode = hashCode * 59 + this.Kind.GetHashCode(); - if (this.AttachedDocnumber != null) - hashCode = hashCode * 59 + this.AttachedDocnumber.GetHashCode(); - if (this.IxCheck != null) - hashCode = hashCode * 59 + this.IxCheck.GetHashCode(); - if (this.AttachmentRevision != null) - hashCode = hashCode * 59 + this.AttachmentRevision.GetHashCode(); - if (this.CompressionMode != null) - hashCode = hashCode * 59 + this.CompressionMode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AttachmentFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AttachmentFieldDTO.cs deleted file mode 100644 index a235dd0..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AttachmentFieldDTO.cs +++ /dev/null @@ -1,131 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// AttachmentFieldDTO - /// - [DataContract] - public partial class AttachmentFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AttachmentFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// value. - public AttachmentFieldDTO(AttachmentDTO value = default(AttachmentDTO), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AttachmentFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public AttachmentDTO Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttachmentFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttachmentFieldDTO); - } - - /// - /// Returns true if AttachmentFieldDTO instances are equal - /// - /// Instance of AttachmentFieldDTO to be compared - /// Boolean - public bool Equals(AttachmentFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AuthorityDataDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AuthorityDataDTO.cs deleted file mode 100644 index 0c45280..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AuthorityDataDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of the authority data - /// - [DataContract] - public partial class AuthorityDataDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Authority Identifier. - /// Document Identifier. - /// Protocol number. - /// Protocol Date and time. - /// Office. - /// Reference person. - /// Shipping address. - /// Referent. - public AuthorityDataDTO(int? id = default(int?), int? docNumber = default(int?), string protocol = default(string), DateTime? protocolDate = default(DateTime?), string office = default(string), string person = default(string), string shipping = default(string), string yourReferent = default(string)) - { - this.Id = id; - this.DocNumber = docNumber; - this.Protocol = protocol; - this.ProtocolDate = protocolDate; - this.Office = office; - this.Person = person; - this.Shipping = shipping; - this.YourReferent = yourReferent; - } - - /// - /// Authority Identifier - /// - /// Authority Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docNumber", EmitDefaultValue=false)] - public int? DocNumber { get; set; } - - /// - /// Protocol number - /// - /// Protocol number - [DataMember(Name="protocol", EmitDefaultValue=false)] - public string Protocol { get; set; } - - /// - /// Protocol Date and time - /// - /// Protocol Date and time - [DataMember(Name="protocolDate", EmitDefaultValue=false)] - public DateTime? ProtocolDate { get; set; } - - /// - /// Office - /// - /// Office - [DataMember(Name="office", EmitDefaultValue=false)] - public string Office { get; set; } - - /// - /// Reference person - /// - /// Reference person - [DataMember(Name="person", EmitDefaultValue=false)] - public string Person { get; set; } - - /// - /// Shipping address - /// - /// Shipping address - [DataMember(Name="shipping", EmitDefaultValue=false)] - public string Shipping { get; set; } - - /// - /// Referent - /// - /// Referent - [DataMember(Name="yourReferent", EmitDefaultValue=false)] - public string YourReferent { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AuthorityDataDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" DocNumber: ").Append(DocNumber).Append("\n"); - sb.Append(" Protocol: ").Append(Protocol).Append("\n"); - sb.Append(" ProtocolDate: ").Append(ProtocolDate).Append("\n"); - sb.Append(" Office: ").Append(Office).Append("\n"); - sb.Append(" Person: ").Append(Person).Append("\n"); - sb.Append(" Shipping: ").Append(Shipping).Append("\n"); - sb.Append(" YourReferent: ").Append(YourReferent).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AuthorityDataDTO); - } - - /// - /// Returns true if AuthorityDataDTO instances are equal - /// - /// Instance of AuthorityDataDTO to be compared - /// Boolean - public bool Equals(AuthorityDataDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.DocNumber == input.DocNumber || - (this.DocNumber != null && - this.DocNumber.Equals(input.DocNumber)) - ) && - ( - this.Protocol == input.Protocol || - (this.Protocol != null && - this.Protocol.Equals(input.Protocol)) - ) && - ( - this.ProtocolDate == input.ProtocolDate || - (this.ProtocolDate != null && - this.ProtocolDate.Equals(input.ProtocolDate)) - ) && - ( - this.Office == input.Office || - (this.Office != null && - this.Office.Equals(input.Office)) - ) && - ( - this.Person == input.Person || - (this.Person != null && - this.Person.Equals(input.Person)) - ) && - ( - this.Shipping == input.Shipping || - (this.Shipping != null && - this.Shipping.Equals(input.Shipping)) - ) && - ( - this.YourReferent == input.YourReferent || - (this.YourReferent != null && - this.YourReferent.Equals(input.YourReferent)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.DocNumber != null) - hashCode = hashCode * 59 + this.DocNumber.GetHashCode(); - if (this.Protocol != null) - hashCode = hashCode * 59 + this.Protocol.GetHashCode(); - if (this.ProtocolDate != null) - hashCode = hashCode * 59 + this.ProtocolDate.GetHashCode(); - if (this.Office != null) - hashCode = hashCode * 59 + this.Office.GetHashCode(); - if (this.Person != null) - hashCode = hashCode * 59 + this.Person.GetHashCode(); - if (this.Shipping != null) - hashCode = hashCode * 59 + this.Shipping.GetHashCode(); - if (this.YourReferent != null) - hashCode = hashCode * 59 + this.YourReferent.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AuthorityDataFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AuthorityDataFieldDTO.cs deleted file mode 100644 index 4384da1..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AuthorityDataFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Authority data - /// - [DataContract] - public partial class AuthorityDataFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AuthorityDataFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// List of values. - public AuthorityDataFieldDTO(List value = default(List), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "AuthorityDataFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// List of values - /// - /// List of values - [DataMember(Name="value", EmitDefaultValue=false)] - public List Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AuthorityDataFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AuthorityDataFieldDTO); - } - - /// - /// Returns true if AuthorityDataFieldDTO instances are equal - /// - /// Instance of AuthorityDataFieldDTO to be compared - /// Boolean - public bool Equals(AuthorityDataFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - this.Value != null && - this.Value.SequenceEqual(input.Value) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/AutomaticReferenceDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/AutomaticReferenceDTO.cs deleted file mode 100644 index 47cdb5f..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/AutomaticReferenceDTO.cs +++ /dev/null @@ -1,329 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type: automatic reference - /// - [DataContract] - public partial class AutomaticReferenceDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Codice della classe documentale. - /// Business unit. - /// Possible values: 0: Active 1: Suspended 2: Manual . - /// Sign of protocol. - /// Sequential number. - /// Initial validity date. - /// End date of validity. - /// Possible values: 0: RegistrationDate 1: DocumentDate . - /// Priority. - /// Field for origin in. - /// Flag for origin out. - /// Flag for origin internal. - public AutomaticReferenceDTO(int? id = default(int?), int? documentTypeId = default(int?), string businessUnitCode = default(string), int? state = default(int?), string sign = default(string), int? value = default(int?), DateTime? dateFrom = default(DateTime?), DateTime? dateTo = default(DateTime?), int? field = default(int?), bool? priority = default(bool?), bool? _in = default(bool?), bool? _out = default(bool?), bool? _internal = default(bool?)) - { - this.Id = id; - this.DocumentTypeId = documentTypeId; - this.BusinessUnitCode = businessUnitCode; - this.State = state; - this.Sign = sign; - this.Value = value; - this.DateFrom = dateFrom; - this.DateTo = dateTo; - this.Field = field; - this.Priority = priority; - this.In = _in; - this.Out = _out; - this.Internal = _internal; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Codice della classe documentale - /// - /// Codice della classe documentale - [DataMember(Name="documentTypeId", EmitDefaultValue=false)] - public int? DocumentTypeId { get; set; } - - /// - /// Business unit - /// - /// Business unit - [DataMember(Name="businessUnitCode", EmitDefaultValue=false)] - public string BusinessUnitCode { get; set; } - - /// - /// Possible values: 0: Active 1: Suspended 2: Manual - /// - /// Possible values: 0: Active 1: Suspended 2: Manual - [DataMember(Name="state", EmitDefaultValue=false)] - public int? State { get; set; } - - /// - /// Sign of protocol - /// - /// Sign of protocol - [DataMember(Name="sign", EmitDefaultValue=false)] - public string Sign { get; set; } - - /// - /// Sequential number - /// - /// Sequential number - [DataMember(Name="value", EmitDefaultValue=false)] - public int? Value { get; set; } - - /// - /// Initial validity date - /// - /// Initial validity date - [DataMember(Name="dateFrom", EmitDefaultValue=false)] - public DateTime? DateFrom { get; set; } - - /// - /// End date of validity - /// - /// End date of validity - [DataMember(Name="dateTo", EmitDefaultValue=false)] - public DateTime? DateTo { get; set; } - - /// - /// Possible values: 0: RegistrationDate 1: DocumentDate - /// - /// Possible values: 0: RegistrationDate 1: DocumentDate - [DataMember(Name="field", EmitDefaultValue=false)] - public int? Field { get; set; } - - /// - /// Priority - /// - /// Priority - [DataMember(Name="priority", EmitDefaultValue=false)] - public bool? Priority { get; set; } - - /// - /// Field for origin in - /// - /// Field for origin in - [DataMember(Name="in", EmitDefaultValue=false)] - public bool? In { get; set; } - - /// - /// Flag for origin out - /// - /// Flag for origin out - [DataMember(Name="out", EmitDefaultValue=false)] - public bool? Out { get; set; } - - /// - /// Flag for origin internal - /// - /// Flag for origin internal - [DataMember(Name="internal", EmitDefaultValue=false)] - public bool? Internal { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AutomaticReferenceDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" DocumentTypeId: ").Append(DocumentTypeId).Append("\n"); - sb.Append(" BusinessUnitCode: ").Append(BusinessUnitCode).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" Sign: ").Append(Sign).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" DateFrom: ").Append(DateFrom).Append("\n"); - sb.Append(" DateTo: ").Append(DateTo).Append("\n"); - sb.Append(" Field: ").Append(Field).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" In: ").Append(In).Append("\n"); - sb.Append(" Out: ").Append(Out).Append("\n"); - sb.Append(" Internal: ").Append(Internal).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AutomaticReferenceDTO); - } - - /// - /// Returns true if AutomaticReferenceDTO instances are equal - /// - /// Instance of AutomaticReferenceDTO to be compared - /// Boolean - public bool Equals(AutomaticReferenceDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.DocumentTypeId == input.DocumentTypeId || - (this.DocumentTypeId != null && - this.DocumentTypeId.Equals(input.DocumentTypeId)) - ) && - ( - this.BusinessUnitCode == input.BusinessUnitCode || - (this.BusinessUnitCode != null && - this.BusinessUnitCode.Equals(input.BusinessUnitCode)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && - ( - this.Sign == input.Sign || - (this.Sign != null && - this.Sign.Equals(input.Sign)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && - ( - this.DateFrom == input.DateFrom || - (this.DateFrom != null && - this.DateFrom.Equals(input.DateFrom)) - ) && - ( - this.DateTo == input.DateTo || - (this.DateTo != null && - this.DateTo.Equals(input.DateTo)) - ) && - ( - this.Field == input.Field || - (this.Field != null && - this.Field.Equals(input.Field)) - ) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && - ( - this.In == input.In || - (this.In != null && - this.In.Equals(input.In)) - ) && - ( - this.Out == input.Out || - (this.Out != null && - this.Out.Equals(input.Out)) - ) && - ( - this.Internal == input.Internal || - (this.Internal != null && - this.Internal.Equals(input.Internal)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.DocumentTypeId != null) - hashCode = hashCode * 59 + this.DocumentTypeId.GetHashCode(); - if (this.BusinessUnitCode != null) - hashCode = hashCode * 59 + this.BusinessUnitCode.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.Sign != null) - hashCode = hashCode * 59 + this.Sign.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.DateFrom != null) - hashCode = hashCode * 59 + this.DateFrom.GetHashCode(); - if (this.DateTo != null) - hashCode = hashCode * 59 + this.DateTo.GetHashCode(); - if (this.Field != null) - hashCode = hashCode * 59 + this.Field.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.In != null) - hashCode = hashCode * 59 + this.In.GetHashCode(); - if (this.Out != null) - hashCode = hashCode * 59 + this.Out.GetHashCode(); - if (this.Internal != null) - hashCode = hashCode * 59 + this.Internal.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/BarcodeFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/BarcodeFieldDTO.cs deleted file mode 100644 index f935852..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/BarcodeFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Barcode - /// - [DataContract] - public partial class BarcodeFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected BarcodeFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Barcode value. - public BarcodeFieldDTO(string value = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "BarcodeFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Barcode value - /// - /// Barcode value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BarcodeFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BarcodeFieldDTO); - } - - /// - /// Returns true if BarcodeFieldDTO instances are equal - /// - /// Instance of BarcodeFieldDTO to be compared - /// Boolean - public bool Equals(BarcodeFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/BinderBaseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/BinderBaseDTO.cs deleted file mode 100644 index e9cf205..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/BinderBaseDTO.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// BinderBaseDTO - /// - [DataContract] - public partial class BinderBaseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// name. - /// code. - public BinderBaseDTO(int? id = default(int?), string name = default(string), string code = default(string)) - { - this.Id = id; - this.Name = name; - this.Code = code; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Gets or Sets Code - /// - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderBaseDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderBaseDTO); - } - - /// - /// Returns true if BinderBaseDTO instances are equal - /// - /// Instance of BinderBaseDTO to be compared - /// Boolean - public bool Equals(BinderBaseDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/BinderDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/BinderDTO.cs deleted file mode 100644 index d4a5b64..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/BinderDTO.cs +++ /dev/null @@ -1,328 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of binder - /// - [DataContract] - public partial class BinderDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Type Identifier. - /// Folder Identifier. - /// Name. - /// Code. - /// Expiry. - /// Start Date. - /// State. - /// Author Identifier. - /// Author Name. - /// External Identifier. - /// Type Description. - /// fields. - public BinderDTO(int? id = default(int?), int? binderTypeId = default(int?), int? folderId = default(int?), string binderName = default(string), string code = default(string), DateTime? endDate = default(DateTime?), DateTime? startDate = default(DateTime?), int? binderState = default(int?), int? user = default(int?), string userCompleteName = default(string), string externalId = default(string), string binderTypeDescription = default(string), List fields = default(List)) - { - this.Id = id; - this.BinderTypeId = binderTypeId; - this.FolderId = folderId; - this.BinderName = binderName; - this.Code = code; - this.EndDate = endDate; - this.StartDate = startDate; - this.BinderState = binderState; - this.User = user; - this.UserCompleteName = userCompleteName; - this.ExternalId = externalId; - this.BinderTypeDescription = binderTypeDescription; - this.Fields = fields; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Type Identifier - /// - /// Type Identifier - [DataMember(Name="binderTypeId", EmitDefaultValue=false)] - public int? BinderTypeId { get; set; } - - /// - /// Folder Identifier - /// - /// Folder Identifier - [DataMember(Name="folderId", EmitDefaultValue=false)] - public int? FolderId { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="binderName", EmitDefaultValue=false)] - public string BinderName { get; set; } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Expiry - /// - /// Expiry - [DataMember(Name="endDate", EmitDefaultValue=false)] - public DateTime? EndDate { get; set; } - - /// - /// Start Date - /// - /// Start Date - [DataMember(Name="startDate", EmitDefaultValue=false)] - public DateTime? StartDate { get; set; } - - /// - /// State - /// - /// State - [DataMember(Name="binderState", EmitDefaultValue=false)] - public int? BinderState { get; set; } - - /// - /// Author Identifier - /// - /// Author Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Author Name - /// - /// Author Name - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Type Description - /// - /// Type Description - [DataMember(Name="binderTypeDescription", EmitDefaultValue=false)] - public string BinderTypeDescription { get; set; } - - /// - /// Gets or Sets Fields - /// - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" BinderTypeId: ").Append(BinderTypeId).Append("\n"); - sb.Append(" FolderId: ").Append(FolderId).Append("\n"); - sb.Append(" BinderName: ").Append(BinderName).Append("\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" BinderState: ").Append(BinderState).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" BinderTypeDescription: ").Append(BinderTypeDescription).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderDTO); - } - - /// - /// Returns true if BinderDTO instances are equal - /// - /// Instance of BinderDTO to be compared - /// Boolean - public bool Equals(BinderDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.BinderTypeId == input.BinderTypeId || - (this.BinderTypeId != null && - this.BinderTypeId.Equals(input.BinderTypeId)) - ) && - ( - this.FolderId == input.FolderId || - (this.FolderId != null && - this.FolderId.Equals(input.FolderId)) - ) && - ( - this.BinderName == input.BinderName || - (this.BinderName != null && - this.BinderName.Equals(input.BinderName)) - ) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && - ( - this.BinderState == input.BinderState || - (this.BinderState != null && - this.BinderState.Equals(input.BinderState)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.BinderTypeDescription == input.BinderTypeDescription || - (this.BinderTypeDescription != null && - this.BinderTypeDescription.Equals(input.BinderTypeDescription)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.BinderTypeId != null) - hashCode = hashCode * 59 + this.BinderTypeId.GetHashCode(); - if (this.FolderId != null) - hashCode = hashCode * 59 + this.FolderId.GetHashCode(); - if (this.BinderName != null) - hashCode = hashCode * 59 + this.BinderName.GetHashCode(); - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.BinderState != null) - hashCode = hashCode * 59 + this.BinderState.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.BinderTypeDescription != null) - hashCode = hashCode * 59 + this.BinderTypeDescription.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/BinderFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/BinderFieldDTO.cs deleted file mode 100644 index bdc4d12..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/BinderFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of binder - /// - [DataContract] - public partial class BinderFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected BinderFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Bionder value list. - public BinderFieldDTO(List value = default(List), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "BinderFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Bionder value list - /// - /// Bionder value list - [DataMember(Name="value", EmitDefaultValue=false)] - public List Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderFieldDTO); - } - - /// - /// Returns true if BinderFieldDTO instances are equal - /// - /// Instance of BinderFieldDTO to be compared - /// Boolean - public bool Equals(BinderFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - this.Value != null && - this.Value.SequenceEqual(input.Value) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/BinderPreviewFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/BinderPreviewFieldDTO.cs deleted file mode 100644 index 2825c72..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/BinderPreviewFieldDTO.cs +++ /dev/null @@ -1,131 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// BinderPreviewFieldDTO - /// - [DataContract] - public partial class BinderPreviewFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected BinderPreviewFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// value. - public BinderPreviewFieldDTO(BinderDTO value = default(BinderDTO), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "BinderPreviewFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public BinderDTO Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BinderPreviewFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BinderPreviewFieldDTO); - } - - /// - /// Returns true if BinderPreviewFieldDTO instances are equal - /// - /// Instance of BinderPreviewFieldDTO to be compared - /// Boolean - public bool Equals(BinderPreviewFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/BooleanKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/BooleanKeyValueDTO.cs deleted file mode 100644 index 17e04ee..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/BooleanKeyValueDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Boolean key value - /// - [DataContract] - public partial class BooleanKeyValueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// ClassName. - /// Key. - /// Value. - public BooleanKeyValueDTO(string className = default(string), string key = default(string), bool? value = default(bool?)) - { - this.ClassName = className; - this.Key = key; - this.Value = value; - } - - /// - /// ClassName - /// - /// ClassName - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Key - /// - /// Key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public bool? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BooleanKeyValueDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BooleanKeyValueDTO); - } - - /// - /// Returns true if BooleanKeyValueDTO instances are equal - /// - /// Instance of BooleanKeyValueDTO to be compared - /// Boolean - public bool Equals(BooleanKeyValueDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitBaseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitBaseDTO.cs deleted file mode 100644 index 291edb9..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitBaseDTO.cs +++ /dev/null @@ -1,703 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Business Unit - /// - [DataContract] - public partial class BusinessUnitBaseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Email. - /// Manager. - /// Creation date. - /// Suppression date. - /// Domain user. - /// Possible values: 0: FileSystem 1: Database . - /// File path. - /// Logs path. - /// Document buffer path. - /// Mail path. - /// Possible values: 0: SqlServer 1: Mysql 2: Oracle -1: Nessuno . - /// Db Server. - /// Db Database. - /// Db user. - /// Vat code. - /// Fiscal code. - /// Country code. - /// Country Registration Code. - /// REA. - /// Legal address. - /// Legal House number. - /// Legal zip code. - /// Legal city. - /// Legal province. - /// Address. - /// House number. - /// Zip code. - /// City. - /// Province. - /// Archive Files path. - /// Archive Db Server. - /// Archive Db Database. - /// Archive Db user. - /// Code. - /// Name. - public BusinessUnitBaseDTO(string email = default(string), string manager = default(string), DateTime? creationDate = default(DateTime?), DateTime? suppressionDate = default(DateTime?), string domainUser = default(string), int? storageType = default(int?), string filesPath = default(string), string logsPath = default(string), string editPath = default(string), string mailPath = default(string), int? dbOrigin = default(int?), string dbServer = default(string), string dbDatabase = default(string), string dbUser = default(string), string vat = default(string), string fiscalCode = default(string), string countryCode = default(string), string countryRegistrationCode = default(string), string rea = default(string), string legalAddress = default(string), string legalHouseNumber = default(string), string legalZipCode = default(string), string legalCity = default(string), string legalProvince = default(string), string address = default(string), string houseNumber = default(string), string zipCode = default(string), string city = default(string), string province = default(string), string archiveFilesPath = default(string), string archiveDbServer = default(string), string archiveDbDatabase = default(string), string archiveDbUser = default(string), string code = default(string), string name = default(string)) - { - this.Email = email; - this.Manager = manager; - this.CreationDate = creationDate; - this.SuppressionDate = suppressionDate; - this.DomainUser = domainUser; - this.StorageType = storageType; - this.FilesPath = filesPath; - this.LogsPath = logsPath; - this.EditPath = editPath; - this.MailPath = mailPath; - this.DbOrigin = dbOrigin; - this.DbServer = dbServer; - this.DbDatabase = dbDatabase; - this.DbUser = dbUser; - this.Vat = vat; - this.FiscalCode = fiscalCode; - this.CountryCode = countryCode; - this.CountryRegistrationCode = countryRegistrationCode; - this.Rea = rea; - this.LegalAddress = legalAddress; - this.LegalHouseNumber = legalHouseNumber; - this.LegalZipCode = legalZipCode; - this.LegalCity = legalCity; - this.LegalProvince = legalProvince; - this.Address = address; - this.HouseNumber = houseNumber; - this.ZipCode = zipCode; - this.City = city; - this.Province = province; - this.ArchiveFilesPath = archiveFilesPath; - this.ArchiveDbServer = archiveDbServer; - this.ArchiveDbDatabase = archiveDbDatabase; - this.ArchiveDbUser = archiveDbUser; - this.Code = code; - this.Name = name; - } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Manager - /// - /// Manager - [DataMember(Name="manager", EmitDefaultValue=false)] - public string Manager { get; set; } - - /// - /// Creation date - /// - /// Creation date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Suppression date - /// - /// Suppression date - [DataMember(Name="suppressionDate", EmitDefaultValue=false)] - public DateTime? SuppressionDate { get; set; } - - /// - /// Domain user - /// - /// Domain user - [DataMember(Name="domainUser", EmitDefaultValue=false)] - public string DomainUser { get; set; } - - /// - /// Possible values: 0: FileSystem 1: Database - /// - /// Possible values: 0: FileSystem 1: Database - [DataMember(Name="storageType", EmitDefaultValue=false)] - public int? StorageType { get; set; } - - /// - /// File path - /// - /// File path - [DataMember(Name="filesPath", EmitDefaultValue=false)] - public string FilesPath { get; set; } - - /// - /// Logs path - /// - /// Logs path - [DataMember(Name="logsPath", EmitDefaultValue=false)] - public string LogsPath { get; set; } - - /// - /// Document buffer path - /// - /// Document buffer path - [DataMember(Name="editPath", EmitDefaultValue=false)] - public string EditPath { get; set; } - - /// - /// Mail path - /// - /// Mail path - [DataMember(Name="mailPath", EmitDefaultValue=false)] - public string MailPath { get; set; } - - /// - /// Possible values: 0: SqlServer 1: Mysql 2: Oracle -1: Nessuno - /// - /// Possible values: 0: SqlServer 1: Mysql 2: Oracle -1: Nessuno - [DataMember(Name="dbOrigin", EmitDefaultValue=false)] - public int? DbOrigin { get; set; } - - /// - /// Db Server - /// - /// Db Server - [DataMember(Name="dbServer", EmitDefaultValue=false)] - public string DbServer { get; set; } - - /// - /// Db Database - /// - /// Db Database - [DataMember(Name="dbDatabase", EmitDefaultValue=false)] - public string DbDatabase { get; set; } - - /// - /// Db user - /// - /// Db user - [DataMember(Name="dbUser", EmitDefaultValue=false)] - public string DbUser { get; set; } - - /// - /// Vat code - /// - /// Vat code - [DataMember(Name="vat", EmitDefaultValue=false)] - public string Vat { get; set; } - - /// - /// Fiscal code - /// - /// Fiscal code - [DataMember(Name="fiscalCode", EmitDefaultValue=false)] - public string FiscalCode { get; set; } - - /// - /// Country code - /// - /// Country code - [DataMember(Name="countryCode", EmitDefaultValue=false)] - public string CountryCode { get; set; } - - /// - /// Country Registration Code - /// - /// Country Registration Code - [DataMember(Name="countryRegistrationCode", EmitDefaultValue=false)] - public string CountryRegistrationCode { get; set; } - - /// - /// REA - /// - /// REA - [DataMember(Name="rea", EmitDefaultValue=false)] - public string Rea { get; set; } - - /// - /// Legal address - /// - /// Legal address - [DataMember(Name="legalAddress", EmitDefaultValue=false)] - public string LegalAddress { get; set; } - - /// - /// Legal House number - /// - /// Legal House number - [DataMember(Name="legalHouseNumber", EmitDefaultValue=false)] - public string LegalHouseNumber { get; set; } - - /// - /// Legal zip code - /// - /// Legal zip code - [DataMember(Name="legalZipCode", EmitDefaultValue=false)] - public string LegalZipCode { get; set; } - - /// - /// Legal city - /// - /// Legal city - [DataMember(Name="legalCity", EmitDefaultValue=false)] - public string LegalCity { get; set; } - - /// - /// Legal province - /// - /// Legal province - [DataMember(Name="legalProvince", EmitDefaultValue=false)] - public string LegalProvince { get; set; } - - /// - /// Address - /// - /// Address - [DataMember(Name="address", EmitDefaultValue=false)] - public string Address { get; set; } - - /// - /// House number - /// - /// House number - [DataMember(Name="houseNumber", EmitDefaultValue=false)] - public string HouseNumber { get; set; } - - /// - /// Zip code - /// - /// Zip code - [DataMember(Name="zipCode", EmitDefaultValue=false)] - public string ZipCode { get; set; } - - /// - /// City - /// - /// City - [DataMember(Name="city", EmitDefaultValue=false)] - public string City { get; set; } - - /// - /// Province - /// - /// Province - [DataMember(Name="province", EmitDefaultValue=false)] - public string Province { get; set; } - - /// - /// Archive Files path - /// - /// Archive Files path - [DataMember(Name="archiveFilesPath", EmitDefaultValue=false)] - public string ArchiveFilesPath { get; set; } - - /// - /// Archive Db Server - /// - /// Archive Db Server - [DataMember(Name="archiveDbServer", EmitDefaultValue=false)] - public string ArchiveDbServer { get; set; } - - /// - /// Archive Db Database - /// - /// Archive Db Database - [DataMember(Name="archiveDbDatabase", EmitDefaultValue=false)] - public string ArchiveDbDatabase { get; set; } - - /// - /// Archive Db user - /// - /// Archive Db user - [DataMember(Name="archiveDbUser", EmitDefaultValue=false)] - public string ArchiveDbUser { get; set; } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessUnitBaseDTO {\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Manager: ").Append(Manager).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" SuppressionDate: ").Append(SuppressionDate).Append("\n"); - sb.Append(" DomainUser: ").Append(DomainUser).Append("\n"); - sb.Append(" StorageType: ").Append(StorageType).Append("\n"); - sb.Append(" FilesPath: ").Append(FilesPath).Append("\n"); - sb.Append(" LogsPath: ").Append(LogsPath).Append("\n"); - sb.Append(" EditPath: ").Append(EditPath).Append("\n"); - sb.Append(" MailPath: ").Append(MailPath).Append("\n"); - sb.Append(" DbOrigin: ").Append(DbOrigin).Append("\n"); - sb.Append(" DbServer: ").Append(DbServer).Append("\n"); - sb.Append(" DbDatabase: ").Append(DbDatabase).Append("\n"); - sb.Append(" DbUser: ").Append(DbUser).Append("\n"); - sb.Append(" Vat: ").Append(Vat).Append("\n"); - sb.Append(" FiscalCode: ").Append(FiscalCode).Append("\n"); - sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); - sb.Append(" CountryRegistrationCode: ").Append(CountryRegistrationCode).Append("\n"); - sb.Append(" Rea: ").Append(Rea).Append("\n"); - sb.Append(" LegalAddress: ").Append(LegalAddress).Append("\n"); - sb.Append(" LegalHouseNumber: ").Append(LegalHouseNumber).Append("\n"); - sb.Append(" LegalZipCode: ").Append(LegalZipCode).Append("\n"); - sb.Append(" LegalCity: ").Append(LegalCity).Append("\n"); - sb.Append(" LegalProvince: ").Append(LegalProvince).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" HouseNumber: ").Append(HouseNumber).Append("\n"); - sb.Append(" ZipCode: ").Append(ZipCode).Append("\n"); - sb.Append(" City: ").Append(City).Append("\n"); - sb.Append(" Province: ").Append(Province).Append("\n"); - sb.Append(" ArchiveFilesPath: ").Append(ArchiveFilesPath).Append("\n"); - sb.Append(" ArchiveDbServer: ").Append(ArchiveDbServer).Append("\n"); - sb.Append(" ArchiveDbDatabase: ").Append(ArchiveDbDatabase).Append("\n"); - sb.Append(" ArchiveDbUser: ").Append(ArchiveDbUser).Append("\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessUnitBaseDTO); - } - - /// - /// Returns true if BusinessUnitBaseDTO instances are equal - /// - /// Instance of BusinessUnitBaseDTO to be compared - /// Boolean - public bool Equals(BusinessUnitBaseDTO input) - { - if (input == null) - return false; - - return - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.Manager == input.Manager || - (this.Manager != null && - this.Manager.Equals(input.Manager)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.SuppressionDate == input.SuppressionDate || - (this.SuppressionDate != null && - this.SuppressionDate.Equals(input.SuppressionDate)) - ) && - ( - this.DomainUser == input.DomainUser || - (this.DomainUser != null && - this.DomainUser.Equals(input.DomainUser)) - ) && - ( - this.StorageType == input.StorageType || - (this.StorageType != null && - this.StorageType.Equals(input.StorageType)) - ) && - ( - this.FilesPath == input.FilesPath || - (this.FilesPath != null && - this.FilesPath.Equals(input.FilesPath)) - ) && - ( - this.LogsPath == input.LogsPath || - (this.LogsPath != null && - this.LogsPath.Equals(input.LogsPath)) - ) && - ( - this.EditPath == input.EditPath || - (this.EditPath != null && - this.EditPath.Equals(input.EditPath)) - ) && - ( - this.MailPath == input.MailPath || - (this.MailPath != null && - this.MailPath.Equals(input.MailPath)) - ) && - ( - this.DbOrigin == input.DbOrigin || - (this.DbOrigin != null && - this.DbOrigin.Equals(input.DbOrigin)) - ) && - ( - this.DbServer == input.DbServer || - (this.DbServer != null && - this.DbServer.Equals(input.DbServer)) - ) && - ( - this.DbDatabase == input.DbDatabase || - (this.DbDatabase != null && - this.DbDatabase.Equals(input.DbDatabase)) - ) && - ( - this.DbUser == input.DbUser || - (this.DbUser != null && - this.DbUser.Equals(input.DbUser)) - ) && - ( - this.Vat == input.Vat || - (this.Vat != null && - this.Vat.Equals(input.Vat)) - ) && - ( - this.FiscalCode == input.FiscalCode || - (this.FiscalCode != null && - this.FiscalCode.Equals(input.FiscalCode)) - ) && - ( - this.CountryCode == input.CountryCode || - (this.CountryCode != null && - this.CountryCode.Equals(input.CountryCode)) - ) && - ( - this.CountryRegistrationCode == input.CountryRegistrationCode || - (this.CountryRegistrationCode != null && - this.CountryRegistrationCode.Equals(input.CountryRegistrationCode)) - ) && - ( - this.Rea == input.Rea || - (this.Rea != null && - this.Rea.Equals(input.Rea)) - ) && - ( - this.LegalAddress == input.LegalAddress || - (this.LegalAddress != null && - this.LegalAddress.Equals(input.LegalAddress)) - ) && - ( - this.LegalHouseNumber == input.LegalHouseNumber || - (this.LegalHouseNumber != null && - this.LegalHouseNumber.Equals(input.LegalHouseNumber)) - ) && - ( - this.LegalZipCode == input.LegalZipCode || - (this.LegalZipCode != null && - this.LegalZipCode.Equals(input.LegalZipCode)) - ) && - ( - this.LegalCity == input.LegalCity || - (this.LegalCity != null && - this.LegalCity.Equals(input.LegalCity)) - ) && - ( - this.LegalProvince == input.LegalProvince || - (this.LegalProvince != null && - this.LegalProvince.Equals(input.LegalProvince)) - ) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && - ( - this.HouseNumber == input.HouseNumber || - (this.HouseNumber != null && - this.HouseNumber.Equals(input.HouseNumber)) - ) && - ( - this.ZipCode == input.ZipCode || - (this.ZipCode != null && - this.ZipCode.Equals(input.ZipCode)) - ) && - ( - this.City == input.City || - (this.City != null && - this.City.Equals(input.City)) - ) && - ( - this.Province == input.Province || - (this.Province != null && - this.Province.Equals(input.Province)) - ) && - ( - this.ArchiveFilesPath == input.ArchiveFilesPath || - (this.ArchiveFilesPath != null && - this.ArchiveFilesPath.Equals(input.ArchiveFilesPath)) - ) && - ( - this.ArchiveDbServer == input.ArchiveDbServer || - (this.ArchiveDbServer != null && - this.ArchiveDbServer.Equals(input.ArchiveDbServer)) - ) && - ( - this.ArchiveDbDatabase == input.ArchiveDbDatabase || - (this.ArchiveDbDatabase != null && - this.ArchiveDbDatabase.Equals(input.ArchiveDbDatabase)) - ) && - ( - this.ArchiveDbUser == input.ArchiveDbUser || - (this.ArchiveDbUser != null && - this.ArchiveDbUser.Equals(input.ArchiveDbUser)) - ) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Manager != null) - hashCode = hashCode * 59 + this.Manager.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.SuppressionDate != null) - hashCode = hashCode * 59 + this.SuppressionDate.GetHashCode(); - if (this.DomainUser != null) - hashCode = hashCode * 59 + this.DomainUser.GetHashCode(); - if (this.StorageType != null) - hashCode = hashCode * 59 + this.StorageType.GetHashCode(); - if (this.FilesPath != null) - hashCode = hashCode * 59 + this.FilesPath.GetHashCode(); - if (this.LogsPath != null) - hashCode = hashCode * 59 + this.LogsPath.GetHashCode(); - if (this.EditPath != null) - hashCode = hashCode * 59 + this.EditPath.GetHashCode(); - if (this.MailPath != null) - hashCode = hashCode * 59 + this.MailPath.GetHashCode(); - if (this.DbOrigin != null) - hashCode = hashCode * 59 + this.DbOrigin.GetHashCode(); - if (this.DbServer != null) - hashCode = hashCode * 59 + this.DbServer.GetHashCode(); - if (this.DbDatabase != null) - hashCode = hashCode * 59 + this.DbDatabase.GetHashCode(); - if (this.DbUser != null) - hashCode = hashCode * 59 + this.DbUser.GetHashCode(); - if (this.Vat != null) - hashCode = hashCode * 59 + this.Vat.GetHashCode(); - if (this.FiscalCode != null) - hashCode = hashCode * 59 + this.FiscalCode.GetHashCode(); - if (this.CountryCode != null) - hashCode = hashCode * 59 + this.CountryCode.GetHashCode(); - if (this.CountryRegistrationCode != null) - hashCode = hashCode * 59 + this.CountryRegistrationCode.GetHashCode(); - if (this.Rea != null) - hashCode = hashCode * 59 + this.Rea.GetHashCode(); - if (this.LegalAddress != null) - hashCode = hashCode * 59 + this.LegalAddress.GetHashCode(); - if (this.LegalHouseNumber != null) - hashCode = hashCode * 59 + this.LegalHouseNumber.GetHashCode(); - if (this.LegalZipCode != null) - hashCode = hashCode * 59 + this.LegalZipCode.GetHashCode(); - if (this.LegalCity != null) - hashCode = hashCode * 59 + this.LegalCity.GetHashCode(); - if (this.LegalProvince != null) - hashCode = hashCode * 59 + this.LegalProvince.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.HouseNumber != null) - hashCode = hashCode * 59 + this.HouseNumber.GetHashCode(); - if (this.ZipCode != null) - hashCode = hashCode * 59 + this.ZipCode.GetHashCode(); - if (this.City != null) - hashCode = hashCode * 59 + this.City.GetHashCode(); - if (this.Province != null) - hashCode = hashCode * 59 + this.Province.GetHashCode(); - if (this.ArchiveFilesPath != null) - hashCode = hashCode * 59 + this.ArchiveFilesPath.GetHashCode(); - if (this.ArchiveDbServer != null) - hashCode = hashCode * 59 + this.ArchiveDbServer.GetHashCode(); - if (this.ArchiveDbDatabase != null) - hashCode = hashCode * 59 + this.ArchiveDbDatabase.GetHashCode(); - if (this.ArchiveDbUser != null) - hashCode = hashCode * 59 + this.ArchiveDbUser.GetHashCode(); - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitCloneOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitCloneOptionsDTO.cs deleted file mode 100644 index 8a9fadd..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitCloneOptionsDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Business Unit clone options - /// - [DataContract] - public partial class BusinessUnitCloneOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Business Unit code to clone. - /// Code. - /// Name. - public BusinessUnitCloneOptionsDTO(string originalAooCode = default(string), string newCode = default(string), string newName = default(string)) - { - this.OriginalAooCode = originalAooCode; - this.NewCode = newCode; - this.NewName = newName; - } - - /// - /// Business Unit code to clone - /// - /// Business Unit code to clone - [DataMember(Name="originalAooCode", EmitDefaultValue=false)] - public string OriginalAooCode { get; set; } - - /// - /// Code - /// - /// Code - [DataMember(Name="newCode", EmitDefaultValue=false)] - public string NewCode { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="newName", EmitDefaultValue=false)] - public string NewName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessUnitCloneOptionsDTO {\n"); - sb.Append(" OriginalAooCode: ").Append(OriginalAooCode).Append("\n"); - sb.Append(" NewCode: ").Append(NewCode).Append("\n"); - sb.Append(" NewName: ").Append(NewName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessUnitCloneOptionsDTO); - } - - /// - /// Returns true if BusinessUnitCloneOptionsDTO instances are equal - /// - /// Instance of BusinessUnitCloneOptionsDTO to be compared - /// Boolean - public bool Equals(BusinessUnitCloneOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.OriginalAooCode == input.OriginalAooCode || - (this.OriginalAooCode != null && - this.OriginalAooCode.Equals(input.OriginalAooCode)) - ) && - ( - this.NewCode == input.NewCode || - (this.NewCode != null && - this.NewCode.Equals(input.NewCode)) - ) && - ( - this.NewName == input.NewName || - (this.NewName != null && - this.NewName.Equals(input.NewName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.OriginalAooCode != null) - hashCode = hashCode * 59 + this.OriginalAooCode.GetHashCode(); - if (this.NewCode != null) - hashCode = hashCode * 59 + this.NewCode.GetHashCode(); - if (this.NewName != null) - hashCode = hashCode * 59 + this.NewName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitDTO.cs deleted file mode 100644 index f391f15..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Business Unit - /// - [DataContract] - public partial class BusinessUnitDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Code. - /// Name. - public BusinessUnitDTO(string code = default(string), string name = default(string)) - { - this.Code = code; - this.Name = name; - } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessUnitDTO {\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessUnitDTO); - } - - /// - /// Returns true if BusinessUnitDTO instances are equal - /// - /// Instance of BusinessUnitDTO to be compared - /// Boolean - public bool Equals(BusinessUnitDTO input) - { - if (input == null) - return false; - - return - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitFieldDTO.cs deleted file mode 100644 index 8197dff..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitFieldDTO.cs +++ /dev/null @@ -1,149 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of business unit - /// - [DataContract] - public partial class BusinessUnitFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected BusinessUnitFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Business unit code. - /// Business unit description. - public BusinessUnitFieldDTO(string value = default(string), string displayValue = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "BusinessUnitFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.DisplayValue = displayValue; - } - - /// - /// Business unit code - /// - /// Business unit code - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Business unit description - /// - /// Business unit description - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessUnitFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessUnitFieldDTO); - } - - /// - /// Returns true if BusinessUnitFieldDTO instances are equal - /// - /// Instance of BusinessUnitFieldDTO to be compared - /// Boolean - public bool Equals(BusinessUnitFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitForOperationsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitForOperationsDTO.cs deleted file mode 100644 index 160c490..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitForOperationsDTO.cs +++ /dev/null @@ -1,754 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// BusinessUnitForOperationsDTO - /// - [DataContract] - public partial class BusinessUnitForOperationsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Domain password. - /// Archive Db password. - /// Db password. - /// Email. - /// Manager. - /// Creation date. - /// Suppression date. - /// Domain user. - /// Possible values: 0: FileSystem 1: Database . - /// File path. - /// Logs path. - /// Document buffer path. - /// Mail path. - /// Possible values: 0: SqlServer 1: Mysql 2: Oracle -1: Nessuno . - /// Db Server. - /// Db Database. - /// Db user. - /// Vat code. - /// Fiscal code. - /// Country code. - /// Country Registration Code. - /// REA. - /// Legal address. - /// Legal House number. - /// Legal zip code. - /// Legal city. - /// Legal province. - /// Address. - /// House number. - /// Zip code. - /// City. - /// Province. - /// Archive Files path. - /// Archive Db Server. - /// Archive Db Database. - /// Archive Db user. - /// Code. - /// Name. - public BusinessUnitForOperationsDTO(string domainPassword = default(string), string archiveDbPassword = default(string), string dbPassword = default(string), string email = default(string), string manager = default(string), DateTime? creationDate = default(DateTime?), DateTime? suppressionDate = default(DateTime?), string domainUser = default(string), int? storageType = default(int?), string filesPath = default(string), string logsPath = default(string), string editPath = default(string), string mailPath = default(string), int? dbOrigin = default(int?), string dbServer = default(string), string dbDatabase = default(string), string dbUser = default(string), string vat = default(string), string fiscalCode = default(string), string countryCode = default(string), string countryRegistrationCode = default(string), string rea = default(string), string legalAddress = default(string), string legalHouseNumber = default(string), string legalZipCode = default(string), string legalCity = default(string), string legalProvince = default(string), string address = default(string), string houseNumber = default(string), string zipCode = default(string), string city = default(string), string province = default(string), string archiveFilesPath = default(string), string archiveDbServer = default(string), string archiveDbDatabase = default(string), string archiveDbUser = default(string), string code = default(string), string name = default(string)) - { - this.DomainPassword = domainPassword; - this.ArchiveDbPassword = archiveDbPassword; - this.DbPassword = dbPassword; - this.Email = email; - this.Manager = manager; - this.CreationDate = creationDate; - this.SuppressionDate = suppressionDate; - this.DomainUser = domainUser; - this.StorageType = storageType; - this.FilesPath = filesPath; - this.LogsPath = logsPath; - this.EditPath = editPath; - this.MailPath = mailPath; - this.DbOrigin = dbOrigin; - this.DbServer = dbServer; - this.DbDatabase = dbDatabase; - this.DbUser = dbUser; - this.Vat = vat; - this.FiscalCode = fiscalCode; - this.CountryCode = countryCode; - this.CountryRegistrationCode = countryRegistrationCode; - this.Rea = rea; - this.LegalAddress = legalAddress; - this.LegalHouseNumber = legalHouseNumber; - this.LegalZipCode = legalZipCode; - this.LegalCity = legalCity; - this.LegalProvince = legalProvince; - this.Address = address; - this.HouseNumber = houseNumber; - this.ZipCode = zipCode; - this.City = city; - this.Province = province; - this.ArchiveFilesPath = archiveFilesPath; - this.ArchiveDbServer = archiveDbServer; - this.ArchiveDbDatabase = archiveDbDatabase; - this.ArchiveDbUser = archiveDbUser; - this.Code = code; - this.Name = name; - } - - /// - /// Domain password - /// - /// Domain password - [DataMember(Name="domainPassword", EmitDefaultValue=false)] - public string DomainPassword { get; set; } - - /// - /// Archive Db password - /// - /// Archive Db password - [DataMember(Name="archiveDbPassword", EmitDefaultValue=false)] - public string ArchiveDbPassword { get; set; } - - /// - /// Db password - /// - /// Db password - [DataMember(Name="dbPassword", EmitDefaultValue=false)] - public string DbPassword { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Manager - /// - /// Manager - [DataMember(Name="manager", EmitDefaultValue=false)] - public string Manager { get; set; } - - /// - /// Creation date - /// - /// Creation date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Suppression date - /// - /// Suppression date - [DataMember(Name="suppressionDate", EmitDefaultValue=false)] - public DateTime? SuppressionDate { get; set; } - - /// - /// Domain user - /// - /// Domain user - [DataMember(Name="domainUser", EmitDefaultValue=false)] - public string DomainUser { get; set; } - - /// - /// Possible values: 0: FileSystem 1: Database - /// - /// Possible values: 0: FileSystem 1: Database - [DataMember(Name="storageType", EmitDefaultValue=false)] - public int? StorageType { get; set; } - - /// - /// File path - /// - /// File path - [DataMember(Name="filesPath", EmitDefaultValue=false)] - public string FilesPath { get; set; } - - /// - /// Logs path - /// - /// Logs path - [DataMember(Name="logsPath", EmitDefaultValue=false)] - public string LogsPath { get; set; } - - /// - /// Document buffer path - /// - /// Document buffer path - [DataMember(Name="editPath", EmitDefaultValue=false)] - public string EditPath { get; set; } - - /// - /// Mail path - /// - /// Mail path - [DataMember(Name="mailPath", EmitDefaultValue=false)] - public string MailPath { get; set; } - - /// - /// Possible values: 0: SqlServer 1: Mysql 2: Oracle -1: Nessuno - /// - /// Possible values: 0: SqlServer 1: Mysql 2: Oracle -1: Nessuno - [DataMember(Name="dbOrigin", EmitDefaultValue=false)] - public int? DbOrigin { get; set; } - - /// - /// Db Server - /// - /// Db Server - [DataMember(Name="dbServer", EmitDefaultValue=false)] - public string DbServer { get; set; } - - /// - /// Db Database - /// - /// Db Database - [DataMember(Name="dbDatabase", EmitDefaultValue=false)] - public string DbDatabase { get; set; } - - /// - /// Db user - /// - /// Db user - [DataMember(Name="dbUser", EmitDefaultValue=false)] - public string DbUser { get; set; } - - /// - /// Vat code - /// - /// Vat code - [DataMember(Name="vat", EmitDefaultValue=false)] - public string Vat { get; set; } - - /// - /// Fiscal code - /// - /// Fiscal code - [DataMember(Name="fiscalCode", EmitDefaultValue=false)] - public string FiscalCode { get; set; } - - /// - /// Country code - /// - /// Country code - [DataMember(Name="countryCode", EmitDefaultValue=false)] - public string CountryCode { get; set; } - - /// - /// Country Registration Code - /// - /// Country Registration Code - [DataMember(Name="countryRegistrationCode", EmitDefaultValue=false)] - public string CountryRegistrationCode { get; set; } - - /// - /// REA - /// - /// REA - [DataMember(Name="rea", EmitDefaultValue=false)] - public string Rea { get; set; } - - /// - /// Legal address - /// - /// Legal address - [DataMember(Name="legalAddress", EmitDefaultValue=false)] - public string LegalAddress { get; set; } - - /// - /// Legal House number - /// - /// Legal House number - [DataMember(Name="legalHouseNumber", EmitDefaultValue=false)] - public string LegalHouseNumber { get; set; } - - /// - /// Legal zip code - /// - /// Legal zip code - [DataMember(Name="legalZipCode", EmitDefaultValue=false)] - public string LegalZipCode { get; set; } - - /// - /// Legal city - /// - /// Legal city - [DataMember(Name="legalCity", EmitDefaultValue=false)] - public string LegalCity { get; set; } - - /// - /// Legal province - /// - /// Legal province - [DataMember(Name="legalProvince", EmitDefaultValue=false)] - public string LegalProvince { get; set; } - - /// - /// Address - /// - /// Address - [DataMember(Name="address", EmitDefaultValue=false)] - public string Address { get; set; } - - /// - /// House number - /// - /// House number - [DataMember(Name="houseNumber", EmitDefaultValue=false)] - public string HouseNumber { get; set; } - - /// - /// Zip code - /// - /// Zip code - [DataMember(Name="zipCode", EmitDefaultValue=false)] - public string ZipCode { get; set; } - - /// - /// City - /// - /// City - [DataMember(Name="city", EmitDefaultValue=false)] - public string City { get; set; } - - /// - /// Province - /// - /// Province - [DataMember(Name="province", EmitDefaultValue=false)] - public string Province { get; set; } - - /// - /// Archive Files path - /// - /// Archive Files path - [DataMember(Name="archiveFilesPath", EmitDefaultValue=false)] - public string ArchiveFilesPath { get; set; } - - /// - /// Archive Db Server - /// - /// Archive Db Server - [DataMember(Name="archiveDbServer", EmitDefaultValue=false)] - public string ArchiveDbServer { get; set; } - - /// - /// Archive Db Database - /// - /// Archive Db Database - [DataMember(Name="archiveDbDatabase", EmitDefaultValue=false)] - public string ArchiveDbDatabase { get; set; } - - /// - /// Archive Db user - /// - /// Archive Db user - [DataMember(Name="archiveDbUser", EmitDefaultValue=false)] - public string ArchiveDbUser { get; set; } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessUnitForOperationsDTO {\n"); - sb.Append(" DomainPassword: ").Append(DomainPassword).Append("\n"); - sb.Append(" ArchiveDbPassword: ").Append(ArchiveDbPassword).Append("\n"); - sb.Append(" DbPassword: ").Append(DbPassword).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Manager: ").Append(Manager).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" SuppressionDate: ").Append(SuppressionDate).Append("\n"); - sb.Append(" DomainUser: ").Append(DomainUser).Append("\n"); - sb.Append(" StorageType: ").Append(StorageType).Append("\n"); - sb.Append(" FilesPath: ").Append(FilesPath).Append("\n"); - sb.Append(" LogsPath: ").Append(LogsPath).Append("\n"); - sb.Append(" EditPath: ").Append(EditPath).Append("\n"); - sb.Append(" MailPath: ").Append(MailPath).Append("\n"); - sb.Append(" DbOrigin: ").Append(DbOrigin).Append("\n"); - sb.Append(" DbServer: ").Append(DbServer).Append("\n"); - sb.Append(" DbDatabase: ").Append(DbDatabase).Append("\n"); - sb.Append(" DbUser: ").Append(DbUser).Append("\n"); - sb.Append(" Vat: ").Append(Vat).Append("\n"); - sb.Append(" FiscalCode: ").Append(FiscalCode).Append("\n"); - sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); - sb.Append(" CountryRegistrationCode: ").Append(CountryRegistrationCode).Append("\n"); - sb.Append(" Rea: ").Append(Rea).Append("\n"); - sb.Append(" LegalAddress: ").Append(LegalAddress).Append("\n"); - sb.Append(" LegalHouseNumber: ").Append(LegalHouseNumber).Append("\n"); - sb.Append(" LegalZipCode: ").Append(LegalZipCode).Append("\n"); - sb.Append(" LegalCity: ").Append(LegalCity).Append("\n"); - sb.Append(" LegalProvince: ").Append(LegalProvince).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" HouseNumber: ").Append(HouseNumber).Append("\n"); - sb.Append(" ZipCode: ").Append(ZipCode).Append("\n"); - sb.Append(" City: ").Append(City).Append("\n"); - sb.Append(" Province: ").Append(Province).Append("\n"); - sb.Append(" ArchiveFilesPath: ").Append(ArchiveFilesPath).Append("\n"); - sb.Append(" ArchiveDbServer: ").Append(ArchiveDbServer).Append("\n"); - sb.Append(" ArchiveDbDatabase: ").Append(ArchiveDbDatabase).Append("\n"); - sb.Append(" ArchiveDbUser: ").Append(ArchiveDbUser).Append("\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessUnitForOperationsDTO); - } - - /// - /// Returns true if BusinessUnitForOperationsDTO instances are equal - /// - /// Instance of BusinessUnitForOperationsDTO to be compared - /// Boolean - public bool Equals(BusinessUnitForOperationsDTO input) - { - if (input == null) - return false; - - return - ( - this.DomainPassword == input.DomainPassword || - (this.DomainPassword != null && - this.DomainPassword.Equals(input.DomainPassword)) - ) && - ( - this.ArchiveDbPassword == input.ArchiveDbPassword || - (this.ArchiveDbPassword != null && - this.ArchiveDbPassword.Equals(input.ArchiveDbPassword)) - ) && - ( - this.DbPassword == input.DbPassword || - (this.DbPassword != null && - this.DbPassword.Equals(input.DbPassword)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.Manager == input.Manager || - (this.Manager != null && - this.Manager.Equals(input.Manager)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.SuppressionDate == input.SuppressionDate || - (this.SuppressionDate != null && - this.SuppressionDate.Equals(input.SuppressionDate)) - ) && - ( - this.DomainUser == input.DomainUser || - (this.DomainUser != null && - this.DomainUser.Equals(input.DomainUser)) - ) && - ( - this.StorageType == input.StorageType || - (this.StorageType != null && - this.StorageType.Equals(input.StorageType)) - ) && - ( - this.FilesPath == input.FilesPath || - (this.FilesPath != null && - this.FilesPath.Equals(input.FilesPath)) - ) && - ( - this.LogsPath == input.LogsPath || - (this.LogsPath != null && - this.LogsPath.Equals(input.LogsPath)) - ) && - ( - this.EditPath == input.EditPath || - (this.EditPath != null && - this.EditPath.Equals(input.EditPath)) - ) && - ( - this.MailPath == input.MailPath || - (this.MailPath != null && - this.MailPath.Equals(input.MailPath)) - ) && - ( - this.DbOrigin == input.DbOrigin || - (this.DbOrigin != null && - this.DbOrigin.Equals(input.DbOrigin)) - ) && - ( - this.DbServer == input.DbServer || - (this.DbServer != null && - this.DbServer.Equals(input.DbServer)) - ) && - ( - this.DbDatabase == input.DbDatabase || - (this.DbDatabase != null && - this.DbDatabase.Equals(input.DbDatabase)) - ) && - ( - this.DbUser == input.DbUser || - (this.DbUser != null && - this.DbUser.Equals(input.DbUser)) - ) && - ( - this.Vat == input.Vat || - (this.Vat != null && - this.Vat.Equals(input.Vat)) - ) && - ( - this.FiscalCode == input.FiscalCode || - (this.FiscalCode != null && - this.FiscalCode.Equals(input.FiscalCode)) - ) && - ( - this.CountryCode == input.CountryCode || - (this.CountryCode != null && - this.CountryCode.Equals(input.CountryCode)) - ) && - ( - this.CountryRegistrationCode == input.CountryRegistrationCode || - (this.CountryRegistrationCode != null && - this.CountryRegistrationCode.Equals(input.CountryRegistrationCode)) - ) && - ( - this.Rea == input.Rea || - (this.Rea != null && - this.Rea.Equals(input.Rea)) - ) && - ( - this.LegalAddress == input.LegalAddress || - (this.LegalAddress != null && - this.LegalAddress.Equals(input.LegalAddress)) - ) && - ( - this.LegalHouseNumber == input.LegalHouseNumber || - (this.LegalHouseNumber != null && - this.LegalHouseNumber.Equals(input.LegalHouseNumber)) - ) && - ( - this.LegalZipCode == input.LegalZipCode || - (this.LegalZipCode != null && - this.LegalZipCode.Equals(input.LegalZipCode)) - ) && - ( - this.LegalCity == input.LegalCity || - (this.LegalCity != null && - this.LegalCity.Equals(input.LegalCity)) - ) && - ( - this.LegalProvince == input.LegalProvince || - (this.LegalProvince != null && - this.LegalProvince.Equals(input.LegalProvince)) - ) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && - ( - this.HouseNumber == input.HouseNumber || - (this.HouseNumber != null && - this.HouseNumber.Equals(input.HouseNumber)) - ) && - ( - this.ZipCode == input.ZipCode || - (this.ZipCode != null && - this.ZipCode.Equals(input.ZipCode)) - ) && - ( - this.City == input.City || - (this.City != null && - this.City.Equals(input.City)) - ) && - ( - this.Province == input.Province || - (this.Province != null && - this.Province.Equals(input.Province)) - ) && - ( - this.ArchiveFilesPath == input.ArchiveFilesPath || - (this.ArchiveFilesPath != null && - this.ArchiveFilesPath.Equals(input.ArchiveFilesPath)) - ) && - ( - this.ArchiveDbServer == input.ArchiveDbServer || - (this.ArchiveDbServer != null && - this.ArchiveDbServer.Equals(input.ArchiveDbServer)) - ) && - ( - this.ArchiveDbDatabase == input.ArchiveDbDatabase || - (this.ArchiveDbDatabase != null && - this.ArchiveDbDatabase.Equals(input.ArchiveDbDatabase)) - ) && - ( - this.ArchiveDbUser == input.ArchiveDbUser || - (this.ArchiveDbUser != null && - this.ArchiveDbUser.Equals(input.ArchiveDbUser)) - ) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DomainPassword != null) - hashCode = hashCode * 59 + this.DomainPassword.GetHashCode(); - if (this.ArchiveDbPassword != null) - hashCode = hashCode * 59 + this.ArchiveDbPassword.GetHashCode(); - if (this.DbPassword != null) - hashCode = hashCode * 59 + this.DbPassword.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Manager != null) - hashCode = hashCode * 59 + this.Manager.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.SuppressionDate != null) - hashCode = hashCode * 59 + this.SuppressionDate.GetHashCode(); - if (this.DomainUser != null) - hashCode = hashCode * 59 + this.DomainUser.GetHashCode(); - if (this.StorageType != null) - hashCode = hashCode * 59 + this.StorageType.GetHashCode(); - if (this.FilesPath != null) - hashCode = hashCode * 59 + this.FilesPath.GetHashCode(); - if (this.LogsPath != null) - hashCode = hashCode * 59 + this.LogsPath.GetHashCode(); - if (this.EditPath != null) - hashCode = hashCode * 59 + this.EditPath.GetHashCode(); - if (this.MailPath != null) - hashCode = hashCode * 59 + this.MailPath.GetHashCode(); - if (this.DbOrigin != null) - hashCode = hashCode * 59 + this.DbOrigin.GetHashCode(); - if (this.DbServer != null) - hashCode = hashCode * 59 + this.DbServer.GetHashCode(); - if (this.DbDatabase != null) - hashCode = hashCode * 59 + this.DbDatabase.GetHashCode(); - if (this.DbUser != null) - hashCode = hashCode * 59 + this.DbUser.GetHashCode(); - if (this.Vat != null) - hashCode = hashCode * 59 + this.Vat.GetHashCode(); - if (this.FiscalCode != null) - hashCode = hashCode * 59 + this.FiscalCode.GetHashCode(); - if (this.CountryCode != null) - hashCode = hashCode * 59 + this.CountryCode.GetHashCode(); - if (this.CountryRegistrationCode != null) - hashCode = hashCode * 59 + this.CountryRegistrationCode.GetHashCode(); - if (this.Rea != null) - hashCode = hashCode * 59 + this.Rea.GetHashCode(); - if (this.LegalAddress != null) - hashCode = hashCode * 59 + this.LegalAddress.GetHashCode(); - if (this.LegalHouseNumber != null) - hashCode = hashCode * 59 + this.LegalHouseNumber.GetHashCode(); - if (this.LegalZipCode != null) - hashCode = hashCode * 59 + this.LegalZipCode.GetHashCode(); - if (this.LegalCity != null) - hashCode = hashCode * 59 + this.LegalCity.GetHashCode(); - if (this.LegalProvince != null) - hashCode = hashCode * 59 + this.LegalProvince.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.HouseNumber != null) - hashCode = hashCode * 59 + this.HouseNumber.GetHashCode(); - if (this.ZipCode != null) - hashCode = hashCode * 59 + this.ZipCode.GetHashCode(); - if (this.City != null) - hashCode = hashCode * 59 + this.City.GetHashCode(); - if (this.Province != null) - hashCode = hashCode * 59 + this.Province.GetHashCode(); - if (this.ArchiveFilesPath != null) - hashCode = hashCode * 59 + this.ArchiveFilesPath.GetHashCode(); - if (this.ArchiveDbServer != null) - hashCode = hashCode * 59 + this.ArchiveDbServer.GetHashCode(); - if (this.ArchiveDbDatabase != null) - hashCode = hashCode * 59 + this.ArchiveDbDatabase.GetHashCode(); - if (this.ArchiveDbUser != null) - hashCode = hashCode * 59 + this.ArchiveDbUser.GetHashCode(); - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitSetupParamsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitSetupParamsDTO.cs deleted file mode 100644 index af2260c..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/BusinessUnitSetupParamsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// BusinessUnitSetupParamsDTO - /// - [DataContract] - public partial class BusinessUnitSetupParamsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// CodAmm. - /// IdPa. - public BusinessUnitSetupParamsDTO(string codAmm = default(string), string idPa = default(string)) - { - this.CodAmm = codAmm; - this.IdPa = idPa; - } - - /// - /// CodAmm - /// - /// CodAmm - [DataMember(Name="codAmm", EmitDefaultValue=false)] - public string CodAmm { get; set; } - - /// - /// IdPa - /// - /// IdPa - [DataMember(Name="idPa", EmitDefaultValue=false)] - public string IdPa { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessUnitSetupParamsDTO {\n"); - sb.Append(" CodAmm: ").Append(CodAmm).Append("\n"); - sb.Append(" IdPa: ").Append(IdPa).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessUnitSetupParamsDTO); - } - - /// - /// Returns true if BusinessUnitSetupParamsDTO instances are equal - /// - /// Instance of BusinessUnitSetupParamsDTO to be compared - /// Boolean - public bool Equals(BusinessUnitSetupParamsDTO input) - { - if (input == null) - return false; - - return - ( - this.CodAmm == input.CodAmm || - (this.CodAmm != null && - this.CodAmm.Equals(input.CodAmm)) - ) && - ( - this.IdPa == input.IdPa || - (this.IdPa != null && - this.IdPa.Equals(input.IdPa)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CodAmm != null) - hashCode = hashCode * 59 + this.CodAmm.GetHashCode(); - if (this.IdPa != null) - hashCode = hashCode * 59 + this.IdPa.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/CcFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/CcFieldDTO.cs deleted file mode 100644 index 7ae3119..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/CcFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of cc - /// - [DataContract] - public partial class CcFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected CcFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// CC list value. - public CcFieldDTO(List value = default(List), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "CcFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// CC list value - /// - /// CC list value - [DataMember(Name="value", EmitDefaultValue=false)] - public List Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CcFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CcFieldDTO); - } - - /// - /// Returns true if CcFieldDTO instances are equal - /// - /// Instance of CcFieldDTO to be compared - /// Boolean - public bool Equals(CcFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - this.Value != null && - this.Value.SequenceEqual(input.Value) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ColumnInfo.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ColumnInfo.cs deleted file mode 100644 index dcf95bb..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ColumnInfo.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of column information - /// - [DataContract] - public partial class ColumnInfo : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Name. - /// Label. - /// Possible values: 0: Standard 1: Group 2: Additional . - public ColumnInfo(string name = default(string), string label = default(string), int? fieldType = default(int?)) - { - this.Name = name; - this.Label = label; - this.FieldType = fieldType; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Possible values: 0: Standard 1: Group 2: Additional - /// - /// Possible values: 0: Standard 1: Group 2: Additional - [DataMember(Name="fieldType", EmitDefaultValue=false)] - public int? FieldType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ColumnInfo {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" FieldType: ").Append(FieldType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ColumnInfo); - } - - /// - /// Returns true if ColumnInfo instances are equal - /// - /// Instance of ColumnInfo to be compared - /// Boolean - public bool Equals(ColumnInfo input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.FieldType == input.FieldType || - (this.FieldType != null && - this.FieldType.Equals(input.FieldType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.FieldType != null) - hashCode = hashCode * 59 + this.FieldType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ColumnSearchResult.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ColumnSearchResult.cs deleted file mode 100644 index 682c95a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ColumnSearchResult.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of columns for search results - /// - [DataContract] - public partial class ColumnSearchResult : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Position. - /// Value. - /// Label. - /// Identifier. - /// Visibility. - /// Type. - public ColumnSearchResult(int? position = default(int?), Object value = default(Object), string label = default(string), string id = default(string), bool? visible = default(bool?), string columnType = default(string)) - { - this.Position = position; - this.Value = value; - this.Label = label; - this.Id = id; - this.Visible = visible; - this.ColumnType = columnType; - } - - /// - /// Position - /// - /// Position - [DataMember(Name="position", EmitDefaultValue=false)] - public int? Position { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public Object Value { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Visibility - /// - /// Visibility - [DataMember(Name="visible", EmitDefaultValue=false)] - public bool? Visible { get; set; } - - /// - /// Type - /// - /// Type - [DataMember(Name="columnType", EmitDefaultValue=false)] - public string ColumnType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ColumnSearchResult {\n"); - sb.Append(" Position: ").Append(Position).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Visible: ").Append(Visible).Append("\n"); - sb.Append(" ColumnType: ").Append(ColumnType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ColumnSearchResult); - } - - /// - /// Returns true if ColumnSearchResult instances are equal - /// - /// Instance of ColumnSearchResult to be compared - /// Boolean - public bool Equals(ColumnSearchResult input) - { - if (input == null) - return false; - - return - ( - this.Position == input.Position || - (this.Position != null && - this.Position.Equals(input.Position)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Visible == input.Visible || - (this.Visible != null && - this.Visible.Equals(input.Visible)) - ) && - ( - this.ColumnType == input.ColumnType || - (this.ColumnType != null && - this.ColumnType.Equals(input.ColumnType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Position != null) - hashCode = hashCode * 59 + this.Position.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Visible != null) - hashCode = hashCode * 59 + this.Visible.GetHashCode(); - if (this.ColumnType != null) - hashCode = hashCode * 59 + this.ColumnType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ContactSearchFilterDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ContactSearchFilterDto.cs deleted file mode 100644 index 46e84de..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ContactSearchFilterDto.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of filter for contact search - /// - [DataContract] - public partial class ContactSearchFilterDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Text 1: Id 2: Advanced . - /// Values. - /// Filter of Profile data. - public ContactSearchFilterDto(int? modality = default(int?), List values = default(List), JoinDmDatiProfilo profileData = default(JoinDmDatiProfilo)) - { - this.Modality = modality; - this.Values = values; - this.ProfileData = profileData; - } - - /// - /// Possible values: 0: Text 1: Id 2: Advanced - /// - /// Possible values: 0: Text 1: Id 2: Advanced - [DataMember(Name="modality", EmitDefaultValue=false)] - public int? Modality { get; set; } - - /// - /// Values - /// - /// Values - [DataMember(Name="values", EmitDefaultValue=false)] - public List Values { get; set; } - - /// - /// Filter of Profile data - /// - /// Filter of Profile data - [DataMember(Name="profileData", EmitDefaultValue=false)] - public JoinDmDatiProfilo ProfileData { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContactSearchFilterDto {\n"); - sb.Append(" Modality: ").Append(Modality).Append("\n"); - sb.Append(" Values: ").Append(Values).Append("\n"); - sb.Append(" ProfileData: ").Append(ProfileData).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContactSearchFilterDto); - } - - /// - /// Returns true if ContactSearchFilterDto instances are equal - /// - /// Instance of ContactSearchFilterDto to be compared - /// Boolean - public bool Equals(ContactSearchFilterDto input) - { - if (input == null) - return false; - - return - ( - this.Modality == input.Modality || - (this.Modality != null && - this.Modality.Equals(input.Modality)) - ) && - ( - this.Values == input.Values || - this.Values != null && - this.Values.SequenceEqual(input.Values) - ) && - ( - this.ProfileData == input.ProfileData || - (this.ProfileData != null && - this.ProfileData.Equals(input.ProfileData)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Modality != null) - hashCode = hashCode * 59 + this.Modality.GetHashCode(); - if (this.Values != null) - hashCode = hashCode * 59 + this.Values.GetHashCode(); - if (this.ProfileData != null) - hashCode = hashCode * 59 + this.ProfileData.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DataGroupDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DataGroupDTO.cs deleted file mode 100644 index a855870..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DataGroupDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of data group - /// - [DataContract] - public partial class DataGroupDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// External identifier. - /// Possible values: 0: Static 1: External . - /// Possible values: 0: Generic 1: Workflow 2: Process . - public DataGroupDTO(string id = default(string), string name = default(string), string referenceId = default(string), int? source = default(int?), int? context = default(int?)) - { - this.Id = id; - this.Name = name; - this.ReferenceId = referenceId; - this.Source = source; - this.Context = context; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// External identifier - /// - /// External identifier - [DataMember(Name="referenceId", EmitDefaultValue=false)] - public string ReferenceId { get; set; } - - /// - /// Possible values: 0: Static 1: External - /// - /// Possible values: 0: Static 1: External - [DataMember(Name="source", EmitDefaultValue=false)] - public int? Source { get; set; } - - /// - /// Possible values: 0: Generic 1: Workflow 2: Process - /// - /// Possible values: 0: Generic 1: Workflow 2: Process - [DataMember(Name="context", EmitDefaultValue=false)] - public int? Context { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DataGroupDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); - sb.Append(" Source: ").Append(Source).Append("\n"); - sb.Append(" Context: ").Append(Context).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DataGroupDTO); - } - - /// - /// Returns true if DataGroupDTO instances are equal - /// - /// Instance of DataGroupDTO to be compared - /// Boolean - public bool Equals(DataGroupDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.ReferenceId == input.ReferenceId || - (this.ReferenceId != null && - this.ReferenceId.Equals(input.ReferenceId)) - ) && - ( - this.Source == input.Source || - (this.Source != null && - this.Source.Equals(input.Source)) - ) && - ( - this.Context == input.Context || - (this.Context != null && - this.Context.Equals(input.Context)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.ReferenceId != null) - hashCode = hashCode * 59 + this.ReferenceId.GetHashCode(); - if (this.Source != null) - hashCode = hashCode * 59 + this.Source.GetHashCode(); - if (this.Context != null) - hashCode = hashCode * 59 + this.Context.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DataGroupElementDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DataGroupElementDTO.cs deleted file mode 100644 index dd61fdc..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DataGroupElementDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of data group static element - /// - [DataContract] - public partial class DataGroupElementDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Business unit code or 0 for all. - /// Value. - public DataGroupElementDTO(int? id = default(int?), string businessUnitCode = default(string), string value = default(string)) - { - this.Id = id; - this.BusinessUnitCode = businessUnitCode; - this.Value = value; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Business unit code or 0 for all - /// - /// Business unit code or 0 for all - [DataMember(Name="businessUnitCode", EmitDefaultValue=false)] - public string BusinessUnitCode { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DataGroupElementDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" BusinessUnitCode: ").Append(BusinessUnitCode).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DataGroupElementDTO); - } - - /// - /// Returns true if DataGroupElementDTO instances are equal - /// - /// Instance of DataGroupElementDTO to be compared - /// Boolean - public bool Equals(DataGroupElementDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.BusinessUnitCode == input.BusinessUnitCode || - (this.BusinessUnitCode != null && - this.BusinessUnitCode.Equals(input.BusinessUnitCode)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.BusinessUnitCode != null) - hashCode = hashCode * 59 + this.BusinessUnitCode.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DataGroupSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DataGroupSimpleDTO.cs deleted file mode 100644 index 7a405ef..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DataGroupSimpleDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of data group - /// - [DataContract] - public partial class DataGroupSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - public DataGroupSimpleDTO(string id = default(string), string name = default(string)) - { - this.Id = id; - this.Name = name; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DataGroupSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DataGroupSimpleDTO); - } - - /// - /// Returns true if DataGroupSimpleDTO instances are equal - /// - /// Instance of DataGroupSimpleDTO to be compared - /// Boolean - public bool Equals(DataGroupSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DataGroupSourceDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DataGroupSourceDTO.cs deleted file mode 100644 index e87d0a1..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DataGroupSourceDTO.cs +++ /dev/null @@ -1,329 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of data group external source - /// - [DataContract] - public partial class DataGroupSourceDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Data Group identifier. - /// Possible values: 0: Sql 1: Api . - /// Sql query identifier if mode is SQL. - /// Api Call Identifier if mode is API. - /// Api Call or Sql Query description. - /// Business unit code or 0 for all. - /// Field for select. - /// Field description. - /// Default filter field. - /// Show only description (hide code). - /// Automatic fill. - /// Fields Mapping. - public DataGroupSourceDTO(string id = default(string), string dataGroupId = default(string), int? mode = default(int?), string sqlQueryId = default(string), int? apiCallId = default(int?), string sourceDescription = default(string), string businessUnitCode = default(string), string fieldSelect = default(string), string fieldDescription = default(string), string defaultFilter = default(string), bool? showOnlyDecription = default(bool?), bool? autoFill = default(bool?), List mapping = default(List)) - { - this.Id = id; - this.DataGroupId = dataGroupId; - this.Mode = mode; - this.SqlQueryId = sqlQueryId; - this.ApiCallId = apiCallId; - this.SourceDescription = sourceDescription; - this.BusinessUnitCode = businessUnitCode; - this.FieldSelect = fieldSelect; - this.FieldDescription = fieldDescription; - this.DefaultFilter = defaultFilter; - this.ShowOnlyDecription = showOnlyDecription; - this.AutoFill = autoFill; - this.Mapping = mapping; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Data Group identifier - /// - /// Data Group identifier - [DataMember(Name="dataGroupId", EmitDefaultValue=false)] - public string DataGroupId { get; set; } - - /// - /// Possible values: 0: Sql 1: Api - /// - /// Possible values: 0: Sql 1: Api - [DataMember(Name="mode", EmitDefaultValue=false)] - public int? Mode { get; set; } - - /// - /// Sql query identifier if mode is SQL - /// - /// Sql query identifier if mode is SQL - [DataMember(Name="sqlQueryId", EmitDefaultValue=false)] - public string SqlQueryId { get; set; } - - /// - /// Api Call Identifier if mode is API - /// - /// Api Call Identifier if mode is API - [DataMember(Name="apiCallId", EmitDefaultValue=false)] - public int? ApiCallId { get; set; } - - /// - /// Api Call or Sql Query description - /// - /// Api Call or Sql Query description - [DataMember(Name="sourceDescription", EmitDefaultValue=false)] - public string SourceDescription { get; set; } - - /// - /// Business unit code or 0 for all - /// - /// Business unit code or 0 for all - [DataMember(Name="businessUnitCode", EmitDefaultValue=false)] - public string BusinessUnitCode { get; set; } - - /// - /// Field for select - /// - /// Field for select - [DataMember(Name="fieldSelect", EmitDefaultValue=false)] - public string FieldSelect { get; set; } - - /// - /// Field description - /// - /// Field description - [DataMember(Name="fieldDescription", EmitDefaultValue=false)] - public string FieldDescription { get; set; } - - /// - /// Default filter field - /// - /// Default filter field - [DataMember(Name="defaultFilter", EmitDefaultValue=false)] - public string DefaultFilter { get; set; } - - /// - /// Show only description (hide code) - /// - /// Show only description (hide code) - [DataMember(Name="showOnlyDecription", EmitDefaultValue=false)] - public bool? ShowOnlyDecription { get; set; } - - /// - /// Automatic fill - /// - /// Automatic fill - [DataMember(Name="autoFill", EmitDefaultValue=false)] - public bool? AutoFill { get; set; } - - /// - /// Fields Mapping - /// - /// Fields Mapping - [DataMember(Name="mapping", EmitDefaultValue=false)] - public List Mapping { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DataGroupSourceDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" DataGroupId: ").Append(DataGroupId).Append("\n"); - sb.Append(" Mode: ").Append(Mode).Append("\n"); - sb.Append(" SqlQueryId: ").Append(SqlQueryId).Append("\n"); - sb.Append(" ApiCallId: ").Append(ApiCallId).Append("\n"); - sb.Append(" SourceDescription: ").Append(SourceDescription).Append("\n"); - sb.Append(" BusinessUnitCode: ").Append(BusinessUnitCode).Append("\n"); - sb.Append(" FieldSelect: ").Append(FieldSelect).Append("\n"); - sb.Append(" FieldDescription: ").Append(FieldDescription).Append("\n"); - sb.Append(" DefaultFilter: ").Append(DefaultFilter).Append("\n"); - sb.Append(" ShowOnlyDecription: ").Append(ShowOnlyDecription).Append("\n"); - sb.Append(" AutoFill: ").Append(AutoFill).Append("\n"); - sb.Append(" Mapping: ").Append(Mapping).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DataGroupSourceDTO); - } - - /// - /// Returns true if DataGroupSourceDTO instances are equal - /// - /// Instance of DataGroupSourceDTO to be compared - /// Boolean - public bool Equals(DataGroupSourceDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.DataGroupId == input.DataGroupId || - (this.DataGroupId != null && - this.DataGroupId.Equals(input.DataGroupId)) - ) && - ( - this.Mode == input.Mode || - (this.Mode != null && - this.Mode.Equals(input.Mode)) - ) && - ( - this.SqlQueryId == input.SqlQueryId || - (this.SqlQueryId != null && - this.SqlQueryId.Equals(input.SqlQueryId)) - ) && - ( - this.ApiCallId == input.ApiCallId || - (this.ApiCallId != null && - this.ApiCallId.Equals(input.ApiCallId)) - ) && - ( - this.SourceDescription == input.SourceDescription || - (this.SourceDescription != null && - this.SourceDescription.Equals(input.SourceDescription)) - ) && - ( - this.BusinessUnitCode == input.BusinessUnitCode || - (this.BusinessUnitCode != null && - this.BusinessUnitCode.Equals(input.BusinessUnitCode)) - ) && - ( - this.FieldSelect == input.FieldSelect || - (this.FieldSelect != null && - this.FieldSelect.Equals(input.FieldSelect)) - ) && - ( - this.FieldDescription == input.FieldDescription || - (this.FieldDescription != null && - this.FieldDescription.Equals(input.FieldDescription)) - ) && - ( - this.DefaultFilter == input.DefaultFilter || - (this.DefaultFilter != null && - this.DefaultFilter.Equals(input.DefaultFilter)) - ) && - ( - this.ShowOnlyDecription == input.ShowOnlyDecription || - (this.ShowOnlyDecription != null && - this.ShowOnlyDecription.Equals(input.ShowOnlyDecription)) - ) && - ( - this.AutoFill == input.AutoFill || - (this.AutoFill != null && - this.AutoFill.Equals(input.AutoFill)) - ) && - ( - this.Mapping == input.Mapping || - this.Mapping != null && - this.Mapping.SequenceEqual(input.Mapping) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.DataGroupId != null) - hashCode = hashCode * 59 + this.DataGroupId.GetHashCode(); - if (this.Mode != null) - hashCode = hashCode * 59 + this.Mode.GetHashCode(); - if (this.SqlQueryId != null) - hashCode = hashCode * 59 + this.SqlQueryId.GetHashCode(); - if (this.ApiCallId != null) - hashCode = hashCode * 59 + this.ApiCallId.GetHashCode(); - if (this.SourceDescription != null) - hashCode = hashCode * 59 + this.SourceDescription.GetHashCode(); - if (this.BusinessUnitCode != null) - hashCode = hashCode * 59 + this.BusinessUnitCode.GetHashCode(); - if (this.FieldSelect != null) - hashCode = hashCode * 59 + this.FieldSelect.GetHashCode(); - if (this.FieldDescription != null) - hashCode = hashCode * 59 + this.FieldDescription.GetHashCode(); - if (this.DefaultFilter != null) - hashCode = hashCode * 59 + this.DefaultFilter.GetHashCode(); - if (this.ShowOnlyDecription != null) - hashCode = hashCode * 59 + this.ShowOnlyDecription.GetHashCode(); - if (this.AutoFill != null) - hashCode = hashCode * 59 + this.AutoFill.GetHashCode(); - if (this.Mapping != null) - hashCode = hashCode * 59 + this.Mapping.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DataGroupSourceMappingDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DataGroupSourceMappingDTO.cs deleted file mode 100644 index 6b95229..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DataGroupSourceMappingDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of data group external source mapping - /// - [DataContract] - public partial class DataGroupSourceMappingDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Source field from SQL or API. - /// Destination field. - public DataGroupSourceMappingDTO(string sourceField = default(string), FieldManagementDTO destinationField = default(FieldManagementDTO)) - { - this.SourceField = sourceField; - this.DestinationField = destinationField; - } - - /// - /// Source field from SQL or API - /// - /// Source field from SQL or API - [DataMember(Name="sourceField", EmitDefaultValue=false)] - public string SourceField { get; set; } - - /// - /// Destination field - /// - /// Destination field - [DataMember(Name="destinationField", EmitDefaultValue=false)] - public FieldManagementDTO DestinationField { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DataGroupSourceMappingDTO {\n"); - sb.Append(" SourceField: ").Append(SourceField).Append("\n"); - sb.Append(" DestinationField: ").Append(DestinationField).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DataGroupSourceMappingDTO); - } - - /// - /// Returns true if DataGroupSourceMappingDTO instances are equal - /// - /// Instance of DataGroupSourceMappingDTO to be compared - /// Boolean - public bool Equals(DataGroupSourceMappingDTO input) - { - if (input == null) - return false; - - return - ( - this.SourceField == input.SourceField || - (this.SourceField != null && - this.SourceField.Equals(input.SourceField)) - ) && - ( - this.DestinationField == input.DestinationField || - (this.DestinationField != null && - this.DestinationField.Equals(input.DestinationField)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SourceField != null) - hashCode = hashCode * 59 + this.SourceField.GetHashCode(); - if (this.DestinationField != null) - hashCode = hashCode * 59 + this.DestinationField.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DateTimeKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DateTimeKeyValueDTO.cs deleted file mode 100644 index c2ebeb6..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DateTimeKeyValueDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// DateTime key value - /// - [DataContract] - public partial class DateTimeKeyValueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// ClassName. - /// Key. - /// Value. - public DateTimeKeyValueDTO(string className = default(string), string key = default(string), DateTime? value = default(DateTime?)) - { - this.ClassName = className; - this.Key = key; - this.Value = value; - } - - /// - /// ClassName - /// - /// ClassName - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Key - /// - /// Key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public DateTime? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DateTimeKeyValueDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DateTimeKeyValueDTO); - } - - /// - /// Returns true if DateTimeKeyValueDTO instances are equal - /// - /// Instance of DateTimeKeyValueDTO to be compared - /// Boolean - public bool Equals(DateTimeKeyValueDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DbPropertiesDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DbPropertiesDTO.cs deleted file mode 100644 index 9e24331..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DbPropertiesDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Database connection properties - /// - [DataContract] - public partial class DbPropertiesDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: SqlServer 1: Mysql 2: Oracle -1: Nessuno . - /// Database server host. - /// Database server port. - /// Database name. - /// Username. - /// Password. - /// Schema. - public DbPropertiesDTO(int? dbType = default(int?), string server = default(string), int? port = default(int?), string database = default(string), string username = default(string), string password = default(string), string schema = default(string)) - { - this.DbType = dbType; - this.Server = server; - this.Port = port; - this.Database = database; - this.Username = username; - this.Password = password; - this.Schema = schema; - } - - /// - /// Possible values: 0: SqlServer 1: Mysql 2: Oracle -1: Nessuno - /// - /// Possible values: 0: SqlServer 1: Mysql 2: Oracle -1: Nessuno - [DataMember(Name="dbType", EmitDefaultValue=false)] - public int? DbType { get; set; } - - /// - /// Database server host - /// - /// Database server host - [DataMember(Name="server", EmitDefaultValue=false)] - public string Server { get; set; } - - /// - /// Database server port - /// - /// Database server port - [DataMember(Name="port", EmitDefaultValue=false)] - public int? Port { get; set; } - - /// - /// Database name - /// - /// Database name - [DataMember(Name="database", EmitDefaultValue=false)] - public string Database { get; set; } - - /// - /// Username - /// - /// Username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Schema - /// - /// Schema - [DataMember(Name="schema", EmitDefaultValue=false)] - public string Schema { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DbPropertiesDTO {\n"); - sb.Append(" DbType: ").Append(DbType).Append("\n"); - sb.Append(" Server: ").Append(Server).Append("\n"); - sb.Append(" Port: ").Append(Port).Append("\n"); - sb.Append(" Database: ").Append(Database).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Schema: ").Append(Schema).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DbPropertiesDTO); - } - - /// - /// Returns true if DbPropertiesDTO instances are equal - /// - /// Instance of DbPropertiesDTO to be compared - /// Boolean - public bool Equals(DbPropertiesDTO input) - { - if (input == null) - return false; - - return - ( - this.DbType == input.DbType || - (this.DbType != null && - this.DbType.Equals(input.DbType)) - ) && - ( - this.Server == input.Server || - (this.Server != null && - this.Server.Equals(input.Server)) - ) && - ( - this.Port == input.Port || - (this.Port != null && - this.Port.Equals(input.Port)) - ) && - ( - this.Database == input.Database || - (this.Database != null && - this.Database.Equals(input.Database)) - ) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.Schema == input.Schema || - (this.Schema != null && - this.Schema.Equals(input.Schema)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DbType != null) - hashCode = hashCode * 59 + this.DbType.GetHashCode(); - if (this.Server != null) - hashCode = hashCode * 59 + this.Server.GetHashCode(); - if (this.Port != null) - hashCode = hashCode * 59 + this.Port.GetHashCode(); - if (this.Database != null) - hashCode = hashCode * 59 + this.Database.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Schema != null) - hashCode = hashCode * 59 + this.Schema.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DecimalKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DecimalKeyValueDTO.cs deleted file mode 100644 index 38b28ec..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DecimalKeyValueDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Decimal key value - /// - [DataContract] - public partial class DecimalKeyValueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// ClassName. - /// Key. - /// Value. - public DecimalKeyValueDTO(string className = default(string), string key = default(string), double? value = default(double?)) - { - this.ClassName = className; - this.Key = key; - this.Value = value; - } - - /// - /// ClassName - /// - /// ClassName - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Key - /// - /// Key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public double? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DecimalKeyValueDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DecimalKeyValueDTO); - } - - /// - /// Returns true if DecimalKeyValueDTO instances are equal - /// - /// Instance of DecimalKeyValueDTO to be compared - /// Boolean - public bool Equals(DecimalKeyValueDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DependencyFieldItem.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DependencyFieldItem.cs deleted file mode 100644 index fa68f2f..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DependencyFieldItem.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Dependent Field - /// - [DataContract] - public partial class DependencyFieldItem : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Dependent Classname. - /// Name. - public DependencyFieldItem(string fieldClassName = default(string), string fieldId = default(string)) - { - this.FieldClassName = fieldClassName; - this.FieldId = fieldId; - } - - /// - /// Dependent Classname - /// - /// Dependent Classname - [DataMember(Name="fieldClassName", EmitDefaultValue=false)] - public string FieldClassName { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="fieldId", EmitDefaultValue=false)] - public string FieldId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DependencyFieldItem {\n"); - sb.Append(" FieldClassName: ").Append(FieldClassName).Append("\n"); - sb.Append(" FieldId: ").Append(FieldId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DependencyFieldItem); - } - - /// - /// Returns true if DependencyFieldItem instances are equal - /// - /// Instance of DependencyFieldItem to be compared - /// Boolean - public bool Equals(DependencyFieldItem input) - { - if (input == null) - return false; - - return - ( - this.FieldClassName == input.FieldClassName || - (this.FieldClassName != null && - this.FieldClassName.Equals(input.FieldClassName)) - ) && - ( - this.FieldId == input.FieldId || - (this.FieldId != null && - this.FieldId.Equals(input.FieldId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.FieldClassName != null) - hashCode = hashCode * 59 + this.FieldClassName.GetHashCode(); - if (this.FieldId != null) - hashCode = hashCode * 59 + this.FieldId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentCompressionSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentCompressionSettingsDTO.cs deleted file mode 100644 index e8a00f1..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentCompressionSettingsDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// DocumentCompressionSettingsDTO - /// - [DataContract] - public partial class DocumentCompressionSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Compression expluded extension list. * indicates all extensions. - /// Documents grater than will not be compressed. - /// Documents smaller than will not be compressed. - public DocumentCompressionSettingsDTO(List compressionExtensionExclusionList = default(List), int? noCompressGreaterThanMB = default(int?), int? noCompressSmallerThanMB = default(int?)) - { - this.CompressionExtensionExclusionList = compressionExtensionExclusionList; - this.NoCompressGreaterThanMB = noCompressGreaterThanMB; - this.NoCompressSmallerThanMB = noCompressSmallerThanMB; - } - - /// - /// Compression expluded extension list. * indicates all extensions - /// - /// Compression expluded extension list. * indicates all extensions - [DataMember(Name="compressionExtensionExclusionList", EmitDefaultValue=false)] - public List CompressionExtensionExclusionList { get; set; } - - /// - /// Documents grater than will not be compressed - /// - /// Documents grater than will not be compressed - [DataMember(Name="noCompressGreaterThanMB", EmitDefaultValue=false)] - public int? NoCompressGreaterThanMB { get; set; } - - /// - /// Documents smaller than will not be compressed - /// - /// Documents smaller than will not be compressed - [DataMember(Name="noCompressSmallerThanMB", EmitDefaultValue=false)] - public int? NoCompressSmallerThanMB { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentCompressionSettingsDTO {\n"); - sb.Append(" CompressionExtensionExclusionList: ").Append(CompressionExtensionExclusionList).Append("\n"); - sb.Append(" NoCompressGreaterThanMB: ").Append(NoCompressGreaterThanMB).Append("\n"); - sb.Append(" NoCompressSmallerThanMB: ").Append(NoCompressSmallerThanMB).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentCompressionSettingsDTO); - } - - /// - /// Returns true if DocumentCompressionSettingsDTO instances are equal - /// - /// Instance of DocumentCompressionSettingsDTO to be compared - /// Boolean - public bool Equals(DocumentCompressionSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.CompressionExtensionExclusionList == input.CompressionExtensionExclusionList || - this.CompressionExtensionExclusionList != null && - this.CompressionExtensionExclusionList.SequenceEqual(input.CompressionExtensionExclusionList) - ) && - ( - this.NoCompressGreaterThanMB == input.NoCompressGreaterThanMB || - (this.NoCompressGreaterThanMB != null && - this.NoCompressGreaterThanMB.Equals(input.NoCompressGreaterThanMB)) - ) && - ( - this.NoCompressSmallerThanMB == input.NoCompressSmallerThanMB || - (this.NoCompressSmallerThanMB != null && - this.NoCompressSmallerThanMB.Equals(input.NoCompressSmallerThanMB)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CompressionExtensionExclusionList != null) - hashCode = hashCode * 59 + this.CompressionExtensionExclusionList.GetHashCode(); - if (this.NoCompressGreaterThanMB != null) - hashCode = hashCode * 59 + this.NoCompressGreaterThanMB.GetHashCode(); - if (this.NoCompressSmallerThanMB != null) - hashCode = hashCode * 59 + this.NoCompressSmallerThanMB.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentDateExpiredFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentDateExpiredFieldDTO.cs deleted file mode 100644 index 2865792..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentDateExpiredFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document expire date - /// - [DataContract] - public partial class DocumentDateExpiredFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected DocumentDateExpiredFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Expire datetime. - public DocumentDateExpiredFieldDTO(DateTime? value = default(DateTime?), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "DocumentDateExpiredFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Expire datetime - /// - /// Expire datetime - [DataMember(Name="value", EmitDefaultValue=false)] - public DateTime? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentDateExpiredFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentDateExpiredFieldDTO); - } - - /// - /// Returns true if DocumentDateExpiredFieldDTO instances are equal - /// - /// Instance of DocumentDateExpiredFieldDTO to be compared - /// Boolean - public bool Equals(DocumentDateExpiredFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentDateFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentDateFieldDTO.cs deleted file mode 100644 index 4b1430b..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentDateFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Document datetime - /// - [DataContract] - public partial class DocumentDateFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected DocumentDateFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Document datetime. - public DocumentDateFieldDTO(DateTime? value = default(DateTime?), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "DocumentDateFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Document datetime - /// - /// Document datetime - [DataMember(Name="value", EmitDefaultValue=false)] - public DateTime? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentDateFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentDateFieldDTO); - } - - /// - /// Returns true if DocumentDateFieldDTO instances are equal - /// - /// Instance of DocumentDateFieldDTO to be compared - /// Boolean - public bool Equals(DocumentDateFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentHashIntegritySettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentHashIntegritySettingsDTO.cs deleted file mode 100644 index 9e9e36b..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentHashIntegritySettingsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// DocumentHashIntegritySettingsDTO - /// - [DataContract] - public partial class DocumentHashIntegritySettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document hash integrity. - /// Computes further document accesibility during profile insert and update. - public DocumentHashIntegritySettingsDTO(bool? hashIntegrity = default(bool?), bool? verifyFileArchive = default(bool?)) - { - this.HashIntegrity = hashIntegrity; - this.VerifyFileArchive = verifyFileArchive; - } - - /// - /// Document hash integrity - /// - /// Document hash integrity - [DataMember(Name="hashIntegrity", EmitDefaultValue=false)] - public bool? HashIntegrity { get; set; } - - /// - /// Computes further document accesibility during profile insert and update - /// - /// Computes further document accesibility during profile insert and update - [DataMember(Name="verifyFileArchive", EmitDefaultValue=false)] - public bool? VerifyFileArchive { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentHashIntegritySettingsDTO {\n"); - sb.Append(" HashIntegrity: ").Append(HashIntegrity).Append("\n"); - sb.Append(" VerifyFileArchive: ").Append(VerifyFileArchive).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentHashIntegritySettingsDTO); - } - - /// - /// Returns true if DocumentHashIntegritySettingsDTO instances are equal - /// - /// Instance of DocumentHashIntegritySettingsDTO to be compared - /// Boolean - public bool Equals(DocumentHashIntegritySettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.HashIntegrity == input.HashIntegrity || - (this.HashIntegrity != null && - this.HashIntegrity.Equals(input.HashIntegrity)) - ) && - ( - this.VerifyFileArchive == input.VerifyFileArchive || - (this.VerifyFileArchive != null && - this.VerifyFileArchive.Equals(input.VerifyFileArchive)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.HashIntegrity != null) - hashCode = hashCode * 59 + this.HashIntegrity.GetHashCode(); - if (this.VerifyFileArchive != null) - hashCode = hashCode * 59 + this.VerifyFileArchive.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeBaseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeBaseDTO.cs deleted file mode 100644 index be49395..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeBaseDTO.cs +++ /dev/null @@ -1,329 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type - /// - [DataContract] - public partial class DocumentTypeBaseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique identifier. - /// Identifier of the parent document type. - /// Complete key. - /// Description. - /// Identifier of the first level. - /// Identifier of the second level. - /// Identifier of the third level. - /// Default value of the document status. - /// Default value of the document inout. - /// Defines if the document type no has underlying levels. - /// Required file. - /// Required Public Administration (PA). - /// Default value of the PA protocol check,. - public DocumentTypeBaseDTO(int? id = default(int?), int? idParent = default(int?), string key = default(string), string description = default(string), int? documentType = default(int?), int? type2 = default(int?), int? type3 = default(int?), string docState = default(string), int? inOut = default(int?), bool? isLeaf = default(bool?), int? requireFile = default(int?), int? pa = default(int?), bool? paDefaultValue = default(bool?)) - { - this.Id = id; - this.IdParent = idParent; - this.Key = key; - this.Description = description; - this.DocumentType = documentType; - this.Type2 = type2; - this.Type3 = type3; - this.DocState = docState; - this.InOut = inOut; - this.IsLeaf = isLeaf; - this.RequireFile = requireFile; - this.Pa = pa; - this.PaDefaultValue = paDefaultValue; - } - - /// - /// Unique identifier - /// - /// Unique identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Identifier of the parent document type - /// - /// Identifier of the parent document type - [DataMember(Name="idParent", EmitDefaultValue=false)] - public int? IdParent { get; set; } - - /// - /// Complete key - /// - /// Complete key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Identifier of the first level - /// - /// Identifier of the first level - [DataMember(Name="documentType", EmitDefaultValue=false)] - public int? DocumentType { get; set; } - - /// - /// Identifier of the second level - /// - /// Identifier of the second level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Identifier of the third level - /// - /// Identifier of the third level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Default value of the document status - /// - /// Default value of the document status - [DataMember(Name="docState", EmitDefaultValue=false)] - public string DocState { get; set; } - - /// - /// Default value of the document inout - /// - /// Default value of the document inout - [DataMember(Name="inOut", EmitDefaultValue=false)] - public int? InOut { get; set; } - - /// - /// Defines if the document type no has underlying levels - /// - /// Defines if the document type no has underlying levels - [DataMember(Name="isLeaf", EmitDefaultValue=false)] - public bool? IsLeaf { get; set; } - - /// - /// Required file - /// - /// Required file - [DataMember(Name="requireFile", EmitDefaultValue=false)] - public int? RequireFile { get; set; } - - /// - /// Required Public Administration (PA) - /// - /// Required Public Administration (PA) - [DataMember(Name="pa", EmitDefaultValue=false)] - public int? Pa { get; set; } - - /// - /// Default value of the PA protocol check, - /// - /// Default value of the PA protocol check, - [DataMember(Name="paDefaultValue", EmitDefaultValue=false)] - public bool? PaDefaultValue { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentTypeBaseDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IdParent: ").Append(IdParent).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append(" DocState: ").Append(DocState).Append("\n"); - sb.Append(" InOut: ").Append(InOut).Append("\n"); - sb.Append(" IsLeaf: ").Append(IsLeaf).Append("\n"); - sb.Append(" RequireFile: ").Append(RequireFile).Append("\n"); - sb.Append(" Pa: ").Append(Pa).Append("\n"); - sb.Append(" PaDefaultValue: ").Append(PaDefaultValue).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentTypeBaseDTO); - } - - /// - /// Returns true if DocumentTypeBaseDTO instances are equal - /// - /// Instance of DocumentTypeBaseDTO to be compared - /// Boolean - public bool Equals(DocumentTypeBaseDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.IdParent == input.IdParent || - (this.IdParent != null && - this.IdParent.Equals(input.IdParent)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ) && - ( - this.DocState == input.DocState || - (this.DocState != null && - this.DocState.Equals(input.DocState)) - ) && - ( - this.InOut == input.InOut || - (this.InOut != null && - this.InOut.Equals(input.InOut)) - ) && - ( - this.IsLeaf == input.IsLeaf || - (this.IsLeaf != null && - this.IsLeaf.Equals(input.IsLeaf)) - ) && - ( - this.RequireFile == input.RequireFile || - (this.RequireFile != null && - this.RequireFile.Equals(input.RequireFile)) - ) && - ( - this.Pa == input.Pa || - (this.Pa != null && - this.Pa.Equals(input.Pa)) - ) && - ( - this.PaDefaultValue == input.PaDefaultValue || - (this.PaDefaultValue != null && - this.PaDefaultValue.Equals(input.PaDefaultValue)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.IdParent != null) - hashCode = hashCode * 59 + this.IdParent.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - if (this.DocState != null) - hashCode = hashCode * 59 + this.DocState.GetHashCode(); - if (this.InOut != null) - hashCode = hashCode * 59 + this.InOut.GetHashCode(); - if (this.IsLeaf != null) - hashCode = hashCode * 59 + this.IsLeaf.GetHashCode(); - if (this.RequireFile != null) - hashCode = hashCode * 59 + this.RequireFile.GetHashCode(); - if (this.Pa != null) - hashCode = hashCode * 59 + this.Pa.GetHashCode(); - if (this.PaDefaultValue != null) - hashCode = hashCode * 59 + this.PaDefaultValue.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeCompleteDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeCompleteDTO.cs deleted file mode 100644 index 497b9f8..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeCompleteDTO.cs +++ /dev/null @@ -1,584 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type with all fields - /// - [DataContract] - public partial class DocumentTypeCompleteDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique identifier. - /// Identifier of the first level. - /// Identifier of the second level. - /// Identifier of the third level. - /// Complete key. - /// Stylesheet. - /// Mask id. - /// Possible values: 0: UseNewValues 1: KeepOldValuesIfEmpty . - /// Enable e-mail notification on profilation. - /// Hierarchical level and identifier code of the document type. - /// Identifier of the parent document type. - /// Level of the document type. - /// Defines if the document type no has underlying levels. - /// Description. - /// Possible values: 0: Attivo 1: Sospeso 2: Nessuno . - /// Enable timestamp on pdf. - /// Status Id of substitutive conservation. - /// Default value of the document status. - /// Possible values: 0: Uscita 1: Entrata 2: Interno -1: NonValorizzato . - /// Enable \"libro unico del lavoro\" concatenation. - /// Possible values: 0: Never 1: Always 2: Optionally . - /// Possible values: 0: Nothing 1: FileRequired 2: FileOptional 4: NoFile . - /// Check for PDF/A conversion. - /// Filename rule. - /// Possible values: 0: Allow 1: Deny 2: ParentConfiguration . - /// Possible values: 0: UseDateTimeNow 1: UseExistingValue 2: ParentConfiguration . - /// Default value of the PA protocol check. - /// Document Type translations. - public DocumentTypeCompleteDTO(int? id = default(int?), int? documentType = default(int?), int? type2 = default(int?), int? type3 = default(int?), string key = default(string), string stylesheet = default(string), string maskId = default(string), int? uniquenessRunMode = default(int?), bool? forward = default(bool?), string typeId = default(string), int? idParent = default(int?), int? level = default(int?), bool? isLeaf = default(bool?), string description = default(string), int? status = default(int?), bool? pdfStampsExport = default(bool?), int? docStateAos = default(int?), string docState = default(string), int? inOut = default(int?), bool? isLUL = default(bool?), int? pa = default(int?), int? requireFile = default(int?), bool? pdfAConversion = default(bool?), string displayFileName = default(string), int? duplicateProfileMode = default(int?), int? duplicateProfileDataDocMode = default(int?), bool? paDefaultValue = default(bool?), List translations = default(List)) - { - this.Id = id; - this.DocumentType = documentType; - this.Type2 = type2; - this.Type3 = type3; - this.Key = key; - this.Stylesheet = stylesheet; - this.MaskId = maskId; - this.UniquenessRunMode = uniquenessRunMode; - this.Forward = forward; - this.TypeId = typeId; - this.IdParent = idParent; - this.Level = level; - this.IsLeaf = isLeaf; - this.Description = description; - this.Status = status; - this.PdfStampsExport = pdfStampsExport; - this.DocStateAos = docStateAos; - this.DocState = docState; - this.InOut = inOut; - this.IsLUL = isLUL; - this.Pa = pa; - this.RequireFile = requireFile; - this.PdfAConversion = pdfAConversion; - this.DisplayFileName = displayFileName; - this.DuplicateProfileMode = duplicateProfileMode; - this.DuplicateProfileDataDocMode = duplicateProfileDataDocMode; - this.PaDefaultValue = paDefaultValue; - this.Translations = translations; - } - - /// - /// Unique identifier - /// - /// Unique identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Identifier of the first level - /// - /// Identifier of the first level - [DataMember(Name="documentType", EmitDefaultValue=false)] - public int? DocumentType { get; set; } - - /// - /// Identifier of the second level - /// - /// Identifier of the second level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Identifier of the third level - /// - /// Identifier of the third level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Complete key - /// - /// Complete key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Stylesheet - /// - /// Stylesheet - [DataMember(Name="stylesheet", EmitDefaultValue=false)] - public string Stylesheet { get; set; } - - /// - /// Mask id - /// - /// Mask id - [DataMember(Name="maskId", EmitDefaultValue=false)] - public string MaskId { get; set; } - - /// - /// Possible values: 0: UseNewValues 1: KeepOldValuesIfEmpty - /// - /// Possible values: 0: UseNewValues 1: KeepOldValuesIfEmpty - [DataMember(Name="uniquenessRunMode", EmitDefaultValue=false)] - public int? UniquenessRunMode { get; set; } - - /// - /// Enable e-mail notification on profilation - /// - /// Enable e-mail notification on profilation - [DataMember(Name="forward", EmitDefaultValue=false)] - public bool? Forward { get; set; } - - /// - /// Hierarchical level and identifier code of the document type - /// - /// Hierarchical level and identifier code of the document type - [DataMember(Name="typeId", EmitDefaultValue=false)] - public string TypeId { get; set; } - - /// - /// Identifier of the parent document type - /// - /// Identifier of the parent document type - [DataMember(Name="idParent", EmitDefaultValue=false)] - public int? IdParent { get; set; } - - /// - /// Level of the document type - /// - /// Level of the document type - [DataMember(Name="level", EmitDefaultValue=false)] - public int? Level { get; set; } - - /// - /// Defines if the document type no has underlying levels - /// - /// Defines if the document type no has underlying levels - [DataMember(Name="isLeaf", EmitDefaultValue=false)] - public bool? IsLeaf { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 0: Attivo 1: Sospeso 2: Nessuno - /// - /// Possible values: 0: Attivo 1: Sospeso 2: Nessuno - [DataMember(Name="status", EmitDefaultValue=false)] - public int? Status { get; set; } - - /// - /// Enable timestamp on pdf - /// - /// Enable timestamp on pdf - [DataMember(Name="pdfStampsExport", EmitDefaultValue=false)] - public bool? PdfStampsExport { get; set; } - - /// - /// Status Id of substitutive conservation - /// - /// Status Id of substitutive conservation - [DataMember(Name="docStateAos", EmitDefaultValue=false)] - public int? DocStateAos { get; set; } - - /// - /// Default value of the document status - /// - /// Default value of the document status - [DataMember(Name="docState", EmitDefaultValue=false)] - public string DocState { get; set; } - - /// - /// Possible values: 0: Uscita 1: Entrata 2: Interno -1: NonValorizzato - /// - /// Possible values: 0: Uscita 1: Entrata 2: Interno -1: NonValorizzato - [DataMember(Name="inOut", EmitDefaultValue=false)] - public int? InOut { get; set; } - - /// - /// Enable \"libro unico del lavoro\" concatenation - /// - /// Enable \"libro unico del lavoro\" concatenation - [DataMember(Name="isLUL", EmitDefaultValue=false)] - public bool? IsLUL { get; set; } - - /// - /// Possible values: 0: Never 1: Always 2: Optionally - /// - /// Possible values: 0: Never 1: Always 2: Optionally - [DataMember(Name="pa", EmitDefaultValue=false)] - public int? Pa { get; set; } - - /// - /// Possible values: 0: Nothing 1: FileRequired 2: FileOptional 4: NoFile - /// - /// Possible values: 0: Nothing 1: FileRequired 2: FileOptional 4: NoFile - [DataMember(Name="requireFile", EmitDefaultValue=false)] - public int? RequireFile { get; set; } - - /// - /// Check for PDF/A conversion - /// - /// Check for PDF/A conversion - [DataMember(Name="pdfAConversion", EmitDefaultValue=false)] - public bool? PdfAConversion { get; set; } - - /// - /// Filename rule - /// - /// Filename rule - [DataMember(Name="displayFileName", EmitDefaultValue=false)] - public string DisplayFileName { get; set; } - - /// - /// Possible values: 0: Allow 1: Deny 2: ParentConfiguration - /// - /// Possible values: 0: Allow 1: Deny 2: ParentConfiguration - [DataMember(Name="duplicateProfileMode", EmitDefaultValue=false)] - public int? DuplicateProfileMode { get; set; } - - /// - /// Possible values: 0: UseDateTimeNow 1: UseExistingValue 2: ParentConfiguration - /// - /// Possible values: 0: UseDateTimeNow 1: UseExistingValue 2: ParentConfiguration - [DataMember(Name="duplicateProfileDataDocMode", EmitDefaultValue=false)] - public int? DuplicateProfileDataDocMode { get; set; } - - /// - /// Default value of the PA protocol check - /// - /// Default value of the PA protocol check - [DataMember(Name="paDefaultValue", EmitDefaultValue=false)] - public bool? PaDefaultValue { get; set; } - - /// - /// Document Type translations - /// - /// Document Type translations - [DataMember(Name="translations", EmitDefaultValue=false)] - public List Translations { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentTypeCompleteDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Stylesheet: ").Append(Stylesheet).Append("\n"); - sb.Append(" MaskId: ").Append(MaskId).Append("\n"); - sb.Append(" UniquenessRunMode: ").Append(UniquenessRunMode).Append("\n"); - sb.Append(" Forward: ").Append(Forward).Append("\n"); - sb.Append(" TypeId: ").Append(TypeId).Append("\n"); - sb.Append(" IdParent: ").Append(IdParent).Append("\n"); - sb.Append(" Level: ").Append(Level).Append("\n"); - sb.Append(" IsLeaf: ").Append(IsLeaf).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" PdfStampsExport: ").Append(PdfStampsExport).Append("\n"); - sb.Append(" DocStateAos: ").Append(DocStateAos).Append("\n"); - sb.Append(" DocState: ").Append(DocState).Append("\n"); - sb.Append(" InOut: ").Append(InOut).Append("\n"); - sb.Append(" IsLUL: ").Append(IsLUL).Append("\n"); - sb.Append(" Pa: ").Append(Pa).Append("\n"); - sb.Append(" RequireFile: ").Append(RequireFile).Append("\n"); - sb.Append(" PdfAConversion: ").Append(PdfAConversion).Append("\n"); - sb.Append(" DisplayFileName: ").Append(DisplayFileName).Append("\n"); - sb.Append(" DuplicateProfileMode: ").Append(DuplicateProfileMode).Append("\n"); - sb.Append(" DuplicateProfileDataDocMode: ").Append(DuplicateProfileDataDocMode).Append("\n"); - sb.Append(" PaDefaultValue: ").Append(PaDefaultValue).Append("\n"); - sb.Append(" Translations: ").Append(Translations).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentTypeCompleteDTO); - } - - /// - /// Returns true if DocumentTypeCompleteDTO instances are equal - /// - /// Instance of DocumentTypeCompleteDTO to be compared - /// Boolean - public bool Equals(DocumentTypeCompleteDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Stylesheet == input.Stylesheet || - (this.Stylesheet != null && - this.Stylesheet.Equals(input.Stylesheet)) - ) && - ( - this.MaskId == input.MaskId || - (this.MaskId != null && - this.MaskId.Equals(input.MaskId)) - ) && - ( - this.UniquenessRunMode == input.UniquenessRunMode || - (this.UniquenessRunMode != null && - this.UniquenessRunMode.Equals(input.UniquenessRunMode)) - ) && - ( - this.Forward == input.Forward || - (this.Forward != null && - this.Forward.Equals(input.Forward)) - ) && - ( - this.TypeId == input.TypeId || - (this.TypeId != null && - this.TypeId.Equals(input.TypeId)) - ) && - ( - this.IdParent == input.IdParent || - (this.IdParent != null && - this.IdParent.Equals(input.IdParent)) - ) && - ( - this.Level == input.Level || - (this.Level != null && - this.Level.Equals(input.Level)) - ) && - ( - this.IsLeaf == input.IsLeaf || - (this.IsLeaf != null && - this.IsLeaf.Equals(input.IsLeaf)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && - ( - this.PdfStampsExport == input.PdfStampsExport || - (this.PdfStampsExport != null && - this.PdfStampsExport.Equals(input.PdfStampsExport)) - ) && - ( - this.DocStateAos == input.DocStateAos || - (this.DocStateAos != null && - this.DocStateAos.Equals(input.DocStateAos)) - ) && - ( - this.DocState == input.DocState || - (this.DocState != null && - this.DocState.Equals(input.DocState)) - ) && - ( - this.InOut == input.InOut || - (this.InOut != null && - this.InOut.Equals(input.InOut)) - ) && - ( - this.IsLUL == input.IsLUL || - (this.IsLUL != null && - this.IsLUL.Equals(input.IsLUL)) - ) && - ( - this.Pa == input.Pa || - (this.Pa != null && - this.Pa.Equals(input.Pa)) - ) && - ( - this.RequireFile == input.RequireFile || - (this.RequireFile != null && - this.RequireFile.Equals(input.RequireFile)) - ) && - ( - this.PdfAConversion == input.PdfAConversion || - (this.PdfAConversion != null && - this.PdfAConversion.Equals(input.PdfAConversion)) - ) && - ( - this.DisplayFileName == input.DisplayFileName || - (this.DisplayFileName != null && - this.DisplayFileName.Equals(input.DisplayFileName)) - ) && - ( - this.DuplicateProfileMode == input.DuplicateProfileMode || - (this.DuplicateProfileMode != null && - this.DuplicateProfileMode.Equals(input.DuplicateProfileMode)) - ) && - ( - this.DuplicateProfileDataDocMode == input.DuplicateProfileDataDocMode || - (this.DuplicateProfileDataDocMode != null && - this.DuplicateProfileDataDocMode.Equals(input.DuplicateProfileDataDocMode)) - ) && - ( - this.PaDefaultValue == input.PaDefaultValue || - (this.PaDefaultValue != null && - this.PaDefaultValue.Equals(input.PaDefaultValue)) - ) && - ( - this.Translations == input.Translations || - this.Translations != null && - this.Translations.SequenceEqual(input.Translations) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Stylesheet != null) - hashCode = hashCode * 59 + this.Stylesheet.GetHashCode(); - if (this.MaskId != null) - hashCode = hashCode * 59 + this.MaskId.GetHashCode(); - if (this.UniquenessRunMode != null) - hashCode = hashCode * 59 + this.UniquenessRunMode.GetHashCode(); - if (this.Forward != null) - hashCode = hashCode * 59 + this.Forward.GetHashCode(); - if (this.TypeId != null) - hashCode = hashCode * 59 + this.TypeId.GetHashCode(); - if (this.IdParent != null) - hashCode = hashCode * 59 + this.IdParent.GetHashCode(); - if (this.Level != null) - hashCode = hashCode * 59 + this.Level.GetHashCode(); - if (this.IsLeaf != null) - hashCode = hashCode * 59 + this.IsLeaf.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.PdfStampsExport != null) - hashCode = hashCode * 59 + this.PdfStampsExport.GetHashCode(); - if (this.DocStateAos != null) - hashCode = hashCode * 59 + this.DocStateAos.GetHashCode(); - if (this.DocState != null) - hashCode = hashCode * 59 + this.DocState.GetHashCode(); - if (this.InOut != null) - hashCode = hashCode * 59 + this.InOut.GetHashCode(); - if (this.IsLUL != null) - hashCode = hashCode * 59 + this.IsLUL.GetHashCode(); - if (this.Pa != null) - hashCode = hashCode * 59 + this.Pa.GetHashCode(); - if (this.RequireFile != null) - hashCode = hashCode * 59 + this.RequireFile.GetHashCode(); - if (this.PdfAConversion != null) - hashCode = hashCode * 59 + this.PdfAConversion.GetHashCode(); - if (this.DisplayFileName != null) - hashCode = hashCode * 59 + this.DisplayFileName.GetHashCode(); - if (this.DuplicateProfileMode != null) - hashCode = hashCode * 59 + this.DuplicateProfileMode.GetHashCode(); - if (this.DuplicateProfileDataDocMode != null) - hashCode = hashCode * 59 + this.DuplicateProfileDataDocMode.GetHashCode(); - if (this.PaDefaultValue != null) - hashCode = hashCode * 59 + this.PaDefaultValue.GetHashCode(); - if (this.Translations != null) - hashCode = hashCode * 59 + this.Translations.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeFieldDTO.cs deleted file mode 100644 index 4a761df..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeFieldDTO.cs +++ /dev/null @@ -1,183 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Document type class - /// - [DataContract] - public partial class DocumentTypeFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected DocumentTypeFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Document type id. - /// Document type display value. - /// Document type code. - /// Document type description. - public DocumentTypeFieldDTO(int? value = default(int?), string displayValue = default(string), string code = default(string), string classDescription = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "DocumentTypeFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.DisplayValue = displayValue; - this.Code = code; - this.ClassDescription = classDescription; - } - - /// - /// Document type id - /// - /// Document type id - [DataMember(Name="value", EmitDefaultValue=false)] - public int? Value { get; set; } - - /// - /// Document type display value - /// - /// Document type display value - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// Document type code - /// - /// Document type code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Document type description - /// - /// Document type description - [DataMember(Name="classDescription", EmitDefaultValue=false)] - public string ClassDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentTypeFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" ClassDescription: ").Append(ClassDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentTypeFieldDTO); - } - - /// - /// Returns true if DocumentTypeFieldDTO instances are equal - /// - /// Instance of DocumentTypeFieldDTO to be compared - /// Boolean - public bool Equals(DocumentTypeFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ) && base.Equals(input) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && base.Equals(input) && - ( - this.ClassDescription == input.ClassDescription || - (this.ClassDescription != null && - this.ClassDescription.Equals(input.ClassDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.ClassDescription != null) - hashCode = hashCode * 59 + this.ClassDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeForInsertDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeForInsertDTO.cs deleted file mode 100644 index 4471279..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeForInsertDTO.cs +++ /dev/null @@ -1,414 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type for insert operation - /// - [DataContract] - public partial class DocumentTypeForInsertDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Buffer id for stylesheet update. - /// Code. - /// Identifier of the parent document type. - /// Description. - /// Possible values: 0: Attivo 1: Sospeso 2: Nessuno . - /// Enable timestamp on pdf. - /// Status Id of substitutive conservation. - /// Default value of the document status. - /// Possible values: 0: Uscita 1: Entrata 2: Interno -1: NonValorizzato . - /// Enable \"libro unico del lavoro\" concatenation. - /// Possible values: 0: Never 1: Always 2: Optionally . - /// Possible values: 0: Nothing 1: FileRequired 2: FileOptional 4: NoFile . - /// Check for PDF/A conversion. - /// Filename rule. - /// Possible values: 0: Allow 1: Deny 2: ParentConfiguration . - /// Possible values: 0: UseDateTimeNow 1: UseExistingValue 2: ParentConfiguration . - /// Default value of the PA protocol check. - /// Document Type translations. - public DocumentTypeForInsertDTO(string bufferId = default(string), string code = default(string), int? idParent = default(int?), string description = default(string), int? status = default(int?), bool? pdfStampsExport = default(bool?), int? docStateAos = default(int?), string docState = default(string), int? inOut = default(int?), bool? isLUL = default(bool?), int? pa = default(int?), int? requireFile = default(int?), bool? pdfAConversion = default(bool?), string displayFileName = default(string), int? duplicateProfileMode = default(int?), int? duplicateProfileDataDocMode = default(int?), bool? paDefaultValue = default(bool?), List translations = default(List)) - { - this.BufferId = bufferId; - this.Code = code; - this.IdParent = idParent; - this.Description = description; - this.Status = status; - this.PdfStampsExport = pdfStampsExport; - this.DocStateAos = docStateAos; - this.DocState = docState; - this.InOut = inOut; - this.IsLUL = isLUL; - this.Pa = pa; - this.RequireFile = requireFile; - this.PdfAConversion = pdfAConversion; - this.DisplayFileName = displayFileName; - this.DuplicateProfileMode = duplicateProfileMode; - this.DuplicateProfileDataDocMode = duplicateProfileDataDocMode; - this.PaDefaultValue = paDefaultValue; - this.Translations = translations; - } - - /// - /// Buffer id for stylesheet update - /// - /// Buffer id for stylesheet update - [DataMember(Name="bufferId", EmitDefaultValue=false)] - public string BufferId { get; set; } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Identifier of the parent document type - /// - /// Identifier of the parent document type - [DataMember(Name="idParent", EmitDefaultValue=false)] - public int? IdParent { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 0: Attivo 1: Sospeso 2: Nessuno - /// - /// Possible values: 0: Attivo 1: Sospeso 2: Nessuno - [DataMember(Name="status", EmitDefaultValue=false)] - public int? Status { get; set; } - - /// - /// Enable timestamp on pdf - /// - /// Enable timestamp on pdf - [DataMember(Name="pdfStampsExport", EmitDefaultValue=false)] - public bool? PdfStampsExport { get; set; } - - /// - /// Status Id of substitutive conservation - /// - /// Status Id of substitutive conservation - [DataMember(Name="docStateAos", EmitDefaultValue=false)] - public int? DocStateAos { get; set; } - - /// - /// Default value of the document status - /// - /// Default value of the document status - [DataMember(Name="docState", EmitDefaultValue=false)] - public string DocState { get; set; } - - /// - /// Possible values: 0: Uscita 1: Entrata 2: Interno -1: NonValorizzato - /// - /// Possible values: 0: Uscita 1: Entrata 2: Interno -1: NonValorizzato - [DataMember(Name="inOut", EmitDefaultValue=false)] - public int? InOut { get; set; } - - /// - /// Enable \"libro unico del lavoro\" concatenation - /// - /// Enable \"libro unico del lavoro\" concatenation - [DataMember(Name="isLUL", EmitDefaultValue=false)] - public bool? IsLUL { get; set; } - - /// - /// Possible values: 0: Never 1: Always 2: Optionally - /// - /// Possible values: 0: Never 1: Always 2: Optionally - [DataMember(Name="pa", EmitDefaultValue=false)] - public int? Pa { get; set; } - - /// - /// Possible values: 0: Nothing 1: FileRequired 2: FileOptional 4: NoFile - /// - /// Possible values: 0: Nothing 1: FileRequired 2: FileOptional 4: NoFile - [DataMember(Name="requireFile", EmitDefaultValue=false)] - public int? RequireFile { get; set; } - - /// - /// Check for PDF/A conversion - /// - /// Check for PDF/A conversion - [DataMember(Name="pdfAConversion", EmitDefaultValue=false)] - public bool? PdfAConversion { get; set; } - - /// - /// Filename rule - /// - /// Filename rule - [DataMember(Name="displayFileName", EmitDefaultValue=false)] - public string DisplayFileName { get; set; } - - /// - /// Possible values: 0: Allow 1: Deny 2: ParentConfiguration - /// - /// Possible values: 0: Allow 1: Deny 2: ParentConfiguration - [DataMember(Name="duplicateProfileMode", EmitDefaultValue=false)] - public int? DuplicateProfileMode { get; set; } - - /// - /// Possible values: 0: UseDateTimeNow 1: UseExistingValue 2: ParentConfiguration - /// - /// Possible values: 0: UseDateTimeNow 1: UseExistingValue 2: ParentConfiguration - [DataMember(Name="duplicateProfileDataDocMode", EmitDefaultValue=false)] - public int? DuplicateProfileDataDocMode { get; set; } - - /// - /// Default value of the PA protocol check - /// - /// Default value of the PA protocol check - [DataMember(Name="paDefaultValue", EmitDefaultValue=false)] - public bool? PaDefaultValue { get; set; } - - /// - /// Document Type translations - /// - /// Document Type translations - [DataMember(Name="translations", EmitDefaultValue=false)] - public List Translations { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentTypeForInsertDTO {\n"); - sb.Append(" BufferId: ").Append(BufferId).Append("\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" IdParent: ").Append(IdParent).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" PdfStampsExport: ").Append(PdfStampsExport).Append("\n"); - sb.Append(" DocStateAos: ").Append(DocStateAos).Append("\n"); - sb.Append(" DocState: ").Append(DocState).Append("\n"); - sb.Append(" InOut: ").Append(InOut).Append("\n"); - sb.Append(" IsLUL: ").Append(IsLUL).Append("\n"); - sb.Append(" Pa: ").Append(Pa).Append("\n"); - sb.Append(" RequireFile: ").Append(RequireFile).Append("\n"); - sb.Append(" PdfAConversion: ").Append(PdfAConversion).Append("\n"); - sb.Append(" DisplayFileName: ").Append(DisplayFileName).Append("\n"); - sb.Append(" DuplicateProfileMode: ").Append(DuplicateProfileMode).Append("\n"); - sb.Append(" DuplicateProfileDataDocMode: ").Append(DuplicateProfileDataDocMode).Append("\n"); - sb.Append(" PaDefaultValue: ").Append(PaDefaultValue).Append("\n"); - sb.Append(" Translations: ").Append(Translations).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentTypeForInsertDTO); - } - - /// - /// Returns true if DocumentTypeForInsertDTO instances are equal - /// - /// Instance of DocumentTypeForInsertDTO to be compared - /// Boolean - public bool Equals(DocumentTypeForInsertDTO input) - { - if (input == null) - return false; - - return - ( - this.BufferId == input.BufferId || - (this.BufferId != null && - this.BufferId.Equals(input.BufferId)) - ) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.IdParent == input.IdParent || - (this.IdParent != null && - this.IdParent.Equals(input.IdParent)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && - ( - this.PdfStampsExport == input.PdfStampsExport || - (this.PdfStampsExport != null && - this.PdfStampsExport.Equals(input.PdfStampsExport)) - ) && - ( - this.DocStateAos == input.DocStateAos || - (this.DocStateAos != null && - this.DocStateAos.Equals(input.DocStateAos)) - ) && - ( - this.DocState == input.DocState || - (this.DocState != null && - this.DocState.Equals(input.DocState)) - ) && - ( - this.InOut == input.InOut || - (this.InOut != null && - this.InOut.Equals(input.InOut)) - ) && - ( - this.IsLUL == input.IsLUL || - (this.IsLUL != null && - this.IsLUL.Equals(input.IsLUL)) - ) && - ( - this.Pa == input.Pa || - (this.Pa != null && - this.Pa.Equals(input.Pa)) - ) && - ( - this.RequireFile == input.RequireFile || - (this.RequireFile != null && - this.RequireFile.Equals(input.RequireFile)) - ) && - ( - this.PdfAConversion == input.PdfAConversion || - (this.PdfAConversion != null && - this.PdfAConversion.Equals(input.PdfAConversion)) - ) && - ( - this.DisplayFileName == input.DisplayFileName || - (this.DisplayFileName != null && - this.DisplayFileName.Equals(input.DisplayFileName)) - ) && - ( - this.DuplicateProfileMode == input.DuplicateProfileMode || - (this.DuplicateProfileMode != null && - this.DuplicateProfileMode.Equals(input.DuplicateProfileMode)) - ) && - ( - this.DuplicateProfileDataDocMode == input.DuplicateProfileDataDocMode || - (this.DuplicateProfileDataDocMode != null && - this.DuplicateProfileDataDocMode.Equals(input.DuplicateProfileDataDocMode)) - ) && - ( - this.PaDefaultValue == input.PaDefaultValue || - (this.PaDefaultValue != null && - this.PaDefaultValue.Equals(input.PaDefaultValue)) - ) && - ( - this.Translations == input.Translations || - this.Translations != null && - this.Translations.SequenceEqual(input.Translations) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.BufferId != null) - hashCode = hashCode * 59 + this.BufferId.GetHashCode(); - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.IdParent != null) - hashCode = hashCode * 59 + this.IdParent.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.PdfStampsExport != null) - hashCode = hashCode * 59 + this.PdfStampsExport.GetHashCode(); - if (this.DocStateAos != null) - hashCode = hashCode * 59 + this.DocStateAos.GetHashCode(); - if (this.DocState != null) - hashCode = hashCode * 59 + this.DocState.GetHashCode(); - if (this.InOut != null) - hashCode = hashCode * 59 + this.InOut.GetHashCode(); - if (this.IsLUL != null) - hashCode = hashCode * 59 + this.IsLUL.GetHashCode(); - if (this.Pa != null) - hashCode = hashCode * 59 + this.Pa.GetHashCode(); - if (this.RequireFile != null) - hashCode = hashCode * 59 + this.RequireFile.GetHashCode(); - if (this.PdfAConversion != null) - hashCode = hashCode * 59 + this.PdfAConversion.GetHashCode(); - if (this.DisplayFileName != null) - hashCode = hashCode * 59 + this.DisplayFileName.GetHashCode(); - if (this.DuplicateProfileMode != null) - hashCode = hashCode * 59 + this.DuplicateProfileMode.GetHashCode(); - if (this.DuplicateProfileDataDocMode != null) - hashCode = hashCode * 59 + this.DuplicateProfileDataDocMode.GetHashCode(); - if (this.PaDefaultValue != null) - hashCode = hashCode * 59 + this.PaDefaultValue.GetHashCode(); - if (this.Translations != null) - hashCode = hashCode * 59 + this.Translations.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeForUpdateDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeForUpdateDTO.cs deleted file mode 100644 index 06b34b9..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeForUpdateDTO.cs +++ /dev/null @@ -1,397 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type for update operation - /// - [DataContract] - public partial class DocumentTypeForUpdateDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique identifier. - /// Buffer id for stylesheet insert. - /// Description. - /// Possible values: 0: Attivo 1: Sospeso 2: Nessuno . - /// Enable timestamp on pdf. - /// Status Id of substitutive conservation. - /// Default value of the document status. - /// Possible values: 0: Uscita 1: Entrata 2: Interno -1: NonValorizzato . - /// Enable \"libro unico del lavoro\" concatenation. - /// Possible values: 0: Never 1: Always 2: Optionally . - /// Possible values: 0: Nothing 1: FileRequired 2: FileOptional 4: NoFile . - /// Check for PDF/A conversion. - /// Filename rule. - /// Possible values: 0: Allow 1: Deny 2: ParentConfiguration . - /// Possible values: 0: UseDateTimeNow 1: UseExistingValue 2: ParentConfiguration . - /// Default value of the PA protocol check. - /// Document Type translations. - public DocumentTypeForUpdateDTO(int? id = default(int?), string bufferId = default(string), string description = default(string), int? status = default(int?), bool? pdfStampsExport = default(bool?), int? docStateAos = default(int?), string docState = default(string), int? inOut = default(int?), bool? isLUL = default(bool?), int? pa = default(int?), int? requireFile = default(int?), bool? pdfAConversion = default(bool?), string displayFileName = default(string), int? duplicateProfileMode = default(int?), int? duplicateProfileDataDocMode = default(int?), bool? paDefaultValue = default(bool?), List translations = default(List)) - { - this.Id = id; - this.BufferId = bufferId; - this.Description = description; - this.Status = status; - this.PdfStampsExport = pdfStampsExport; - this.DocStateAos = docStateAos; - this.DocState = docState; - this.InOut = inOut; - this.IsLUL = isLUL; - this.Pa = pa; - this.RequireFile = requireFile; - this.PdfAConversion = pdfAConversion; - this.DisplayFileName = displayFileName; - this.DuplicateProfileMode = duplicateProfileMode; - this.DuplicateProfileDataDocMode = duplicateProfileDataDocMode; - this.PaDefaultValue = paDefaultValue; - this.Translations = translations; - } - - /// - /// Unique identifier - /// - /// Unique identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Buffer id for stylesheet insert - /// - /// Buffer id for stylesheet insert - [DataMember(Name="bufferId", EmitDefaultValue=false)] - public string BufferId { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 0: Attivo 1: Sospeso 2: Nessuno - /// - /// Possible values: 0: Attivo 1: Sospeso 2: Nessuno - [DataMember(Name="status", EmitDefaultValue=false)] - public int? Status { get; set; } - - /// - /// Enable timestamp on pdf - /// - /// Enable timestamp on pdf - [DataMember(Name="pdfStampsExport", EmitDefaultValue=false)] - public bool? PdfStampsExport { get; set; } - - /// - /// Status Id of substitutive conservation - /// - /// Status Id of substitutive conservation - [DataMember(Name="docStateAos", EmitDefaultValue=false)] - public int? DocStateAos { get; set; } - - /// - /// Default value of the document status - /// - /// Default value of the document status - [DataMember(Name="docState", EmitDefaultValue=false)] - public string DocState { get; set; } - - /// - /// Possible values: 0: Uscita 1: Entrata 2: Interno -1: NonValorizzato - /// - /// Possible values: 0: Uscita 1: Entrata 2: Interno -1: NonValorizzato - [DataMember(Name="inOut", EmitDefaultValue=false)] - public int? InOut { get; set; } - - /// - /// Enable \"libro unico del lavoro\" concatenation - /// - /// Enable \"libro unico del lavoro\" concatenation - [DataMember(Name="isLUL", EmitDefaultValue=false)] - public bool? IsLUL { get; set; } - - /// - /// Possible values: 0: Never 1: Always 2: Optionally - /// - /// Possible values: 0: Never 1: Always 2: Optionally - [DataMember(Name="pa", EmitDefaultValue=false)] - public int? Pa { get; set; } - - /// - /// Possible values: 0: Nothing 1: FileRequired 2: FileOptional 4: NoFile - /// - /// Possible values: 0: Nothing 1: FileRequired 2: FileOptional 4: NoFile - [DataMember(Name="requireFile", EmitDefaultValue=false)] - public int? RequireFile { get; set; } - - /// - /// Check for PDF/A conversion - /// - /// Check for PDF/A conversion - [DataMember(Name="pdfAConversion", EmitDefaultValue=false)] - public bool? PdfAConversion { get; set; } - - /// - /// Filename rule - /// - /// Filename rule - [DataMember(Name="displayFileName", EmitDefaultValue=false)] - public string DisplayFileName { get; set; } - - /// - /// Possible values: 0: Allow 1: Deny 2: ParentConfiguration - /// - /// Possible values: 0: Allow 1: Deny 2: ParentConfiguration - [DataMember(Name="duplicateProfileMode", EmitDefaultValue=false)] - public int? DuplicateProfileMode { get; set; } - - /// - /// Possible values: 0: UseDateTimeNow 1: UseExistingValue 2: ParentConfiguration - /// - /// Possible values: 0: UseDateTimeNow 1: UseExistingValue 2: ParentConfiguration - [DataMember(Name="duplicateProfileDataDocMode", EmitDefaultValue=false)] - public int? DuplicateProfileDataDocMode { get; set; } - - /// - /// Default value of the PA protocol check - /// - /// Default value of the PA protocol check - [DataMember(Name="paDefaultValue", EmitDefaultValue=false)] - public bool? PaDefaultValue { get; set; } - - /// - /// Document Type translations - /// - /// Document Type translations - [DataMember(Name="translations", EmitDefaultValue=false)] - public List Translations { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentTypeForUpdateDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" BufferId: ").Append(BufferId).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" PdfStampsExport: ").Append(PdfStampsExport).Append("\n"); - sb.Append(" DocStateAos: ").Append(DocStateAos).Append("\n"); - sb.Append(" DocState: ").Append(DocState).Append("\n"); - sb.Append(" InOut: ").Append(InOut).Append("\n"); - sb.Append(" IsLUL: ").Append(IsLUL).Append("\n"); - sb.Append(" Pa: ").Append(Pa).Append("\n"); - sb.Append(" RequireFile: ").Append(RequireFile).Append("\n"); - sb.Append(" PdfAConversion: ").Append(PdfAConversion).Append("\n"); - sb.Append(" DisplayFileName: ").Append(DisplayFileName).Append("\n"); - sb.Append(" DuplicateProfileMode: ").Append(DuplicateProfileMode).Append("\n"); - sb.Append(" DuplicateProfileDataDocMode: ").Append(DuplicateProfileDataDocMode).Append("\n"); - sb.Append(" PaDefaultValue: ").Append(PaDefaultValue).Append("\n"); - sb.Append(" Translations: ").Append(Translations).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentTypeForUpdateDTO); - } - - /// - /// Returns true if DocumentTypeForUpdateDTO instances are equal - /// - /// Instance of DocumentTypeForUpdateDTO to be compared - /// Boolean - public bool Equals(DocumentTypeForUpdateDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.BufferId == input.BufferId || - (this.BufferId != null && - this.BufferId.Equals(input.BufferId)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && - ( - this.PdfStampsExport == input.PdfStampsExport || - (this.PdfStampsExport != null && - this.PdfStampsExport.Equals(input.PdfStampsExport)) - ) && - ( - this.DocStateAos == input.DocStateAos || - (this.DocStateAos != null && - this.DocStateAos.Equals(input.DocStateAos)) - ) && - ( - this.DocState == input.DocState || - (this.DocState != null && - this.DocState.Equals(input.DocState)) - ) && - ( - this.InOut == input.InOut || - (this.InOut != null && - this.InOut.Equals(input.InOut)) - ) && - ( - this.IsLUL == input.IsLUL || - (this.IsLUL != null && - this.IsLUL.Equals(input.IsLUL)) - ) && - ( - this.Pa == input.Pa || - (this.Pa != null && - this.Pa.Equals(input.Pa)) - ) && - ( - this.RequireFile == input.RequireFile || - (this.RequireFile != null && - this.RequireFile.Equals(input.RequireFile)) - ) && - ( - this.PdfAConversion == input.PdfAConversion || - (this.PdfAConversion != null && - this.PdfAConversion.Equals(input.PdfAConversion)) - ) && - ( - this.DisplayFileName == input.DisplayFileName || - (this.DisplayFileName != null && - this.DisplayFileName.Equals(input.DisplayFileName)) - ) && - ( - this.DuplicateProfileMode == input.DuplicateProfileMode || - (this.DuplicateProfileMode != null && - this.DuplicateProfileMode.Equals(input.DuplicateProfileMode)) - ) && - ( - this.DuplicateProfileDataDocMode == input.DuplicateProfileDataDocMode || - (this.DuplicateProfileDataDocMode != null && - this.DuplicateProfileDataDocMode.Equals(input.DuplicateProfileDataDocMode)) - ) && - ( - this.PaDefaultValue == input.PaDefaultValue || - (this.PaDefaultValue != null && - this.PaDefaultValue.Equals(input.PaDefaultValue)) - ) && - ( - this.Translations == input.Translations || - this.Translations != null && - this.Translations.SequenceEqual(input.Translations) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.BufferId != null) - hashCode = hashCode * 59 + this.BufferId.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.PdfStampsExport != null) - hashCode = hashCode * 59 + this.PdfStampsExport.GetHashCode(); - if (this.DocStateAos != null) - hashCode = hashCode * 59 + this.DocStateAos.GetHashCode(); - if (this.DocState != null) - hashCode = hashCode * 59 + this.DocState.GetHashCode(); - if (this.InOut != null) - hashCode = hashCode * 59 + this.InOut.GetHashCode(); - if (this.IsLUL != null) - hashCode = hashCode * 59 + this.IsLUL.GetHashCode(); - if (this.Pa != null) - hashCode = hashCode * 59 + this.Pa.GetHashCode(); - if (this.RequireFile != null) - hashCode = hashCode * 59 + this.RequireFile.GetHashCode(); - if (this.PdfAConversion != null) - hashCode = hashCode * 59 + this.PdfAConversion.GetHashCode(); - if (this.DisplayFileName != null) - hashCode = hashCode * 59 + this.DisplayFileName.GetHashCode(); - if (this.DuplicateProfileMode != null) - hashCode = hashCode * 59 + this.DuplicateProfileMode.GetHashCode(); - if (this.DuplicateProfileDataDocMode != null) - hashCode = hashCode * 59 + this.DuplicateProfileDataDocMode.GetHashCode(); - if (this.PaDefaultValue != null) - hashCode = hashCode * 59 + this.PaDefaultValue.GetHashCode(); - if (this.Translations != null) - hashCode = hashCode * 59 + this.Translations.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeSearchFilterDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeSearchFilterDto.cs deleted file mode 100644 index 0966a9e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeSearchFilterDto.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type filter - /// - [DataContract] - public partial class DocumentTypeSearchFilterDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document Type of first level. - /// Document Type of second level. - /// Document Type of third level. - public DocumentTypeSearchFilterDto(int? documentType = default(int?), int? type2 = default(int?), int? type3 = default(int?)) - { - this.DocumentType = documentType; - this.Type2 = type2; - this.Type3 = type3; - } - - /// - /// Document Type of first level - /// - /// Document Type of first level - [DataMember(Name="documentType", EmitDefaultValue=false)] - public int? DocumentType { get; set; } - - /// - /// Document Type of second level - /// - /// Document Type of second level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Document Type of third level - /// - /// Document Type of third level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentTypeSearchFilterDto {\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentTypeSearchFilterDto); - } - - /// - /// Returns true if DocumentTypeSearchFilterDto instances are equal - /// - /// Instance of DocumentTypeSearchFilterDto to be compared - /// Boolean - public bool Equals(DocumentTypeSearchFilterDto input) - { - if (input == null) - return false; - - return - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeSimpleDTO.cs deleted file mode 100644 index 210a647..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeSimpleDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type - /// - [DataContract] - public partial class DocumentTypeSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique identifier. - /// Description. - /// Complete key. - public DocumentTypeSimpleDTO(int? id = default(int?), string description = default(string), string key = default(string)) - { - this.Id = id; - this.Description = description; - this.Key = key; - } - - /// - /// Unique identifier - /// - /// Unique identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Complete key - /// - /// Complete key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentTypeSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentTypeSimpleDTO); - } - - /// - /// Returns true if DocumentTypeSimpleDTO instances are equal - /// - /// Instance of DocumentTypeSimpleDTO to be compared - /// Boolean - public bool Equals(DocumentTypeSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeStateDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeStateDTO.cs deleted file mode 100644 index 407fde3..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeStateDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type: states - /// - [DataContract] - public partial class DocumentTypeStateDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document type. - /// State value. - /// State basic information for visualization. - public DocumentTypeStateDTO(DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), string stateId = default(string), StateSimpleDTO state = default(StateSimpleDTO)) - { - this.DocumentType = documentType; - this.StateId = stateId; - this.State = state; - } - - /// - /// Document type - /// - /// Document type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// State value - /// - /// State value - [DataMember(Name="stateId", EmitDefaultValue=false)] - public string StateId { get; set; } - - /// - /// State basic information for visualization - /// - /// State basic information for visualization - [DataMember(Name="state", EmitDefaultValue=false)] - public StateSimpleDTO State { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentTypeStateDTO {\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" StateId: ").Append(StateId).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentTypeStateDTO); - } - - /// - /// Returns true if DocumentTypeStateDTO instances are equal - /// - /// Instance of DocumentTypeStateDTO to be compared - /// Boolean - public bool Equals(DocumentTypeStateDTO input) - { - if (input == null) - return false; - - return - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.StateId == input.StateId || - (this.StateId != null && - this.StateId.Equals(input.StateId)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.StateId != null) - hashCode = hashCode * 59 + this.StateId.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeTranslationsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeTranslationsDTO.cs deleted file mode 100644 index ed09997..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentTypeTranslationsDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type translations - /// - [DataContract] - public partial class DocumentTypeTranslationsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: DocumentType 1: IdentificationLabel . - /// Original label to translate. - /// Language code. - /// Translation. - public DocumentTypeTranslationsDTO(int? type = default(int?), string field = default(string), string langCode = default(string), string value = default(string)) - { - this.Type = type; - this.Field = field; - this.LangCode = langCode; - this.Value = value; - } - - /// - /// Possible values: 0: DocumentType 1: IdentificationLabel - /// - /// Possible values: 0: DocumentType 1: IdentificationLabel - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Original label to translate - /// - /// Original label to translate - [DataMember(Name="field", EmitDefaultValue=false)] - public string Field { get; set; } - - /// - /// Language code - /// - /// Language code - [DataMember(Name="langCode", EmitDefaultValue=false)] - public string LangCode { get; set; } - - /// - /// Translation - /// - /// Translation - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentTypeTranslationsDTO {\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Field: ").Append(Field).Append("\n"); - sb.Append(" LangCode: ").Append(LangCode).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentTypeTranslationsDTO); - } - - /// - /// Returns true if DocumentTypeTranslationsDTO instances are equal - /// - /// Instance of DocumentTypeTranslationsDTO to be compared - /// Boolean - public bool Equals(DocumentTypeTranslationsDTO input) - { - if (input == null) - return false; - - return - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Field == input.Field || - (this.Field != null && - this.Field.Equals(input.Field)) - ) && - ( - this.LangCode == input.LangCode || - (this.LangCode != null && - this.LangCode.Equals(input.LangCode)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Field != null) - hashCode = hashCode * 59 + this.Field.GetHashCode(); - if (this.LangCode != null) - hashCode = hashCode * 59 + this.LangCode.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentZipProtectionSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentZipProtectionSettingsDTO.cs deleted file mode 100644 index 2c90d8e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentZipProtectionSettingsDTO.cs +++ /dev/null @@ -1,157 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// DocumentZipProtectionSettingsDTO - /// - [DataContract] - public partial class DocumentZipProtectionSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: None 1: PasswordLegacy 2: EncryptionAes256 . - /// password. - /// hasPassword. - public DocumentZipProtectionSettingsDTO(int? zipProtectionMode = default(int?), string password = default(string), bool? hasPassword = default(bool?)) - { - this.ZipProtectionMode = zipProtectionMode; - this.Password = password; - this.HasPassword = hasPassword; - } - - /// - /// Possible values: 0: None 1: PasswordLegacy 2: EncryptionAes256 - /// - /// Possible values: 0: None 1: PasswordLegacy 2: EncryptionAes256 - [DataMember(Name="zipProtectionMode", EmitDefaultValue=false)] - public int? ZipProtectionMode { get; set; } - - /// - /// Gets or Sets Password - /// - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Gets or Sets HasPassword - /// - [DataMember(Name="hasPassword", EmitDefaultValue=false)] - public bool? HasPassword { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentZipProtectionSettingsDTO {\n"); - sb.Append(" ZipProtectionMode: ").Append(ZipProtectionMode).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" HasPassword: ").Append(HasPassword).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentZipProtectionSettingsDTO); - } - - /// - /// Returns true if DocumentZipProtectionSettingsDTO instances are equal - /// - /// Instance of DocumentZipProtectionSettingsDTO to be compared - /// Boolean - public bool Equals(DocumentZipProtectionSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.ZipProtectionMode == input.ZipProtectionMode || - (this.ZipProtectionMode != null && - this.ZipProtectionMode.Equals(input.ZipProtectionMode)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.HasPassword == input.HasPassword || - (this.HasPassword != null && - this.HasPassword.Equals(input.HasPassword)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ZipProtectionMode != null) - hashCode = hashCode * 59 + this.ZipProtectionMode.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.HasPassword != null) - hashCode = hashCode * 59 + this.HasPassword.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentsDistributionSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentsDistributionSettingsDTO.cs deleted file mode 100644 index 075a69d..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentsDistributionSettingsDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for document distribution settings - /// - [DataContract] - public partial class DocumentsDistributionSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Enable document distribution. - /// Enable cancel distribution. - /// Title of distribution (formula). - public DocumentsDistributionSettingsDTO(bool? enableDistribution = default(bool?), bool? enableCancelDistribution = default(bool?), string distributionFormula = default(string)) - { - this.EnableDistribution = enableDistribution; - this.EnableCancelDistribution = enableCancelDistribution; - this.DistributionFormula = distributionFormula; - } - - /// - /// Enable document distribution - /// - /// Enable document distribution - [DataMember(Name="enableDistribution", EmitDefaultValue=false)] - public bool? EnableDistribution { get; set; } - - /// - /// Enable cancel distribution - /// - /// Enable cancel distribution - [DataMember(Name="enableCancelDistribution", EmitDefaultValue=false)] - public bool? EnableCancelDistribution { get; set; } - - /// - /// Title of distribution (formula) - /// - /// Title of distribution (formula) - [DataMember(Name="distributionFormula", EmitDefaultValue=false)] - public string DistributionFormula { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentsDistributionSettingsDTO {\n"); - sb.Append(" EnableDistribution: ").Append(EnableDistribution).Append("\n"); - sb.Append(" EnableCancelDistribution: ").Append(EnableCancelDistribution).Append("\n"); - sb.Append(" DistributionFormula: ").Append(DistributionFormula).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentsDistributionSettingsDTO); - } - - /// - /// Returns true if DocumentsDistributionSettingsDTO instances are equal - /// - /// Instance of DocumentsDistributionSettingsDTO to be compared - /// Boolean - public bool Equals(DocumentsDistributionSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.EnableDistribution == input.EnableDistribution || - (this.EnableDistribution != null && - this.EnableDistribution.Equals(input.EnableDistribution)) - ) && - ( - this.EnableCancelDistribution == input.EnableCancelDistribution || - (this.EnableCancelDistribution != null && - this.EnableCancelDistribution.Equals(input.EnableCancelDistribution)) - ) && - ( - this.DistributionFormula == input.DistributionFormula || - (this.DistributionFormula != null && - this.DistributionFormula.Equals(input.DistributionFormula)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.EnableDistribution != null) - hashCode = hashCode * 59 + this.EnableDistribution.GetHashCode(); - if (this.EnableCancelDistribution != null) - hashCode = hashCode * 59 + this.EnableCancelDistribution.GetHashCode(); - if (this.DistributionFormula != null) - hashCode = hashCode * 59 + this.DistributionFormula.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentsWritingSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentsWritingSettingsDTO.cs deleted file mode 100644 index 9e9c28c..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DocumentsWritingSettingsDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of the documents writing settings - /// - [DataContract] - public partial class DocumentsWritingSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// List of file extensions that can't be accepted. - /// List of file extensions that can be accepted. - /// Minimum writable document size. - /// Maximum writable document size. - public DocumentsWritingSettingsDTO(List blacklistFileExtensions = default(List), List whitelistFileExtensions = default(List), long? minFileSize = default(long?), long? maxFileSize = default(long?)) - { - this.BlacklistFileExtensions = blacklistFileExtensions; - this.WhitelistFileExtensions = whitelistFileExtensions; - this.MinFileSize = minFileSize; - this.MaxFileSize = maxFileSize; - } - - /// - /// List of file extensions that can't be accepted - /// - /// List of file extensions that can't be accepted - [DataMember(Name="blacklistFileExtensions", EmitDefaultValue=false)] - public List BlacklistFileExtensions { get; set; } - - /// - /// List of file extensions that can be accepted - /// - /// List of file extensions that can be accepted - [DataMember(Name="whitelistFileExtensions", EmitDefaultValue=false)] - public List WhitelistFileExtensions { get; set; } - - /// - /// Minimum writable document size - /// - /// Minimum writable document size - [DataMember(Name="minFileSize", EmitDefaultValue=false)] - public long? MinFileSize { get; set; } - - /// - /// Maximum writable document size - /// - /// Maximum writable document size - [DataMember(Name="maxFileSize", EmitDefaultValue=false)] - public long? MaxFileSize { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocumentsWritingSettingsDTO {\n"); - sb.Append(" BlacklistFileExtensions: ").Append(BlacklistFileExtensions).Append("\n"); - sb.Append(" WhitelistFileExtensions: ").Append(WhitelistFileExtensions).Append("\n"); - sb.Append(" MinFileSize: ").Append(MinFileSize).Append("\n"); - sb.Append(" MaxFileSize: ").Append(MaxFileSize).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocumentsWritingSettingsDTO); - } - - /// - /// Returns true if DocumentsWritingSettingsDTO instances are equal - /// - /// Instance of DocumentsWritingSettingsDTO to be compared - /// Boolean - public bool Equals(DocumentsWritingSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.BlacklistFileExtensions == input.BlacklistFileExtensions || - this.BlacklistFileExtensions != null && - this.BlacklistFileExtensions.SequenceEqual(input.BlacklistFileExtensions) - ) && - ( - this.WhitelistFileExtensions == input.WhitelistFileExtensions || - this.WhitelistFileExtensions != null && - this.WhitelistFileExtensions.SequenceEqual(input.WhitelistFileExtensions) - ) && - ( - this.MinFileSize == input.MinFileSize || - (this.MinFileSize != null && - this.MinFileSize.Equals(input.MinFileSize)) - ) && - ( - this.MaxFileSize == input.MaxFileSize || - (this.MaxFileSize != null && - this.MaxFileSize.Equals(input.MaxFileSize)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.BlacklistFileExtensions != null) - hashCode = hashCode * 59 + this.BlacklistFileExtensions.GetHashCode(); - if (this.WhitelistFileExtensions != null) - hashCode = hashCode * 59 + this.WhitelistFileExtensions.GetHashCode(); - if (this.MinFileSize != null) - hashCode = hashCode * 59 + this.MinFileSize.GetHashCode(); - if (this.MaxFileSize != null) - hashCode = hashCode * 59 + this.MaxFileSize.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/DoubleKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/DoubleKeyValueDTO.cs deleted file mode 100644 index 92bd544..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/DoubleKeyValueDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Int key value - /// - [DataContract] - public partial class DoubleKeyValueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// ClassName. - /// Key. - /// Value. - public DoubleKeyValueDTO(string className = default(string), string key = default(string), double? value = default(double?)) - { - this.ClassName = className; - this.Key = key; - this.Value = value; - } - - /// - /// ClassName - /// - /// ClassName - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Key - /// - /// Key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public double? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DoubleKeyValueDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DoubleKeyValueDTO); - } - - /// - /// Returns true if DoubleKeyValueDTO instances are equal - /// - /// Instance of DoubleKeyValueDTO to be compared - /// Boolean - public bool Equals(DoubleKeyValueDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ExternalAppDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ExternalAppDTO.cs deleted file mode 100644 index 39c975f..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ExternalAppDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for external application configuration - /// - [DataContract] - public partial class ExternalAppDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Application identifier. - /// Possible values: 0: Office365 . - /// Application name. - /// Application description. - /// Client Id. - /// Enabled configuration. - /// Profilation modes. - public ExternalAppDTO(int? id = default(int?), int? type = default(int?), string name = default(string), string description = default(string), string clientId = default(string), bool? enabled = default(bool?), List profilationModes = default(List)) - { - this.Id = id; - this.Type = type; - this.Name = name; - this.Description = description; - this.ClientId = clientId; - this.Enabled = enabled; - this.ProfilationModes = profilationModes; - } - - /// - /// Application identifier - /// - /// Application identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Possible values: 0: Office365 - /// - /// Possible values: 0: Office365 - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Application name - /// - /// Application name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Application description - /// - /// Application description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Client Id - /// - /// Client Id - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// Enabled configuration - /// - /// Enabled configuration - [DataMember(Name="enabled", EmitDefaultValue=false)] - public bool? Enabled { get; set; } - - /// - /// Profilation modes - /// - /// Profilation modes - [DataMember(Name="profilationModes", EmitDefaultValue=false)] - public List ProfilationModes { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExternalAppDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" Enabled: ").Append(Enabled).Append("\n"); - sb.Append(" ProfilationModes: ").Append(ProfilationModes).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExternalAppDTO); - } - - /// - /// Returns true if ExternalAppDTO instances are equal - /// - /// Instance of ExternalAppDTO to be compared - /// Boolean - public bool Equals(ExternalAppDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.Enabled == input.Enabled || - (this.Enabled != null && - this.Enabled.Equals(input.Enabled)) - ) && - ( - this.ProfilationModes == input.ProfilationModes || - this.ProfilationModes != null && - this.ProfilationModes.SequenceEqual(input.ProfilationModes) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.Enabled != null) - hashCode = hashCode * 59 + this.Enabled.GetHashCode(); - if (this.ProfilationModes != null) - hashCode = hashCode * 59 + this.ProfilationModes.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ExternalAppProfilationModeDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ExternalAppProfilationModeDTO.cs deleted file mode 100644 index a42dae5..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ExternalAppProfilationModeDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for external application profilation mode - /// - [DataContract] - public partial class ExternalAppProfilationModeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Profilation Identifier. - /// Profilation name. - /// Profilation description. - /// Possible values: 0: Standard 1: Mask . - /// Profilation reference. - public ExternalAppProfilationModeDTO(int? id = default(int?), string name = default(string), string description = default(string), int? mode = default(int?), string reference = default(string)) - { - this.Id = id; - this.Name = name; - this.Description = description; - this.Mode = mode; - this.Reference = reference; - } - - /// - /// Profilation Identifier - /// - /// Profilation Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Profilation name - /// - /// Profilation name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Profilation description - /// - /// Profilation description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 0: Standard 1: Mask - /// - /// Possible values: 0: Standard 1: Mask - [DataMember(Name="mode", EmitDefaultValue=false)] - public int? Mode { get; set; } - - /// - /// Profilation reference - /// - /// Profilation reference - [DataMember(Name="reference", EmitDefaultValue=false)] - public string Reference { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExternalAppProfilationModeDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Mode: ").Append(Mode).Append("\n"); - sb.Append(" Reference: ").Append(Reference).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExternalAppProfilationModeDTO); - } - - /// - /// Returns true if ExternalAppProfilationModeDTO instances are equal - /// - /// Instance of ExternalAppProfilationModeDTO to be compared - /// Boolean - public bool Equals(ExternalAppProfilationModeDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Mode == input.Mode || - (this.Mode != null && - this.Mode.Equals(input.Mode)) - ) && - ( - this.Reference == input.Reference || - (this.Reference != null && - this.Reference.Equals(input.Reference)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Mode != null) - hashCode = hashCode * 59 + this.Mode.GetHashCode(); - if (this.Reference != null) - hashCode = hashCode * 59 + this.Reference.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ExternalAuthRedirectUrlRequestDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ExternalAuthRedirectUrlRequestDTO.cs deleted file mode 100644 index 066e70d..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ExternalAuthRedirectUrlRequestDTO.cs +++ /dev/null @@ -1,180 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Defines the information needed to build the authorization redirect url to the external provider (Google, Microsoft, ...) - /// - [DataContract] - public partial class ExternalAuthRedirectUrlRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ExternalAuthRedirectUrlRequestDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// The {Abletech.Arxivar.Server.Dtos.Mail.MailServerSettingsDTO} information (required). - /// Possible values: 0: Send 1: Receive . - /// The portal base url (required). - public ExternalAuthRedirectUrlRequestDTO(MailServerSettingsDTO mailSettings = default(MailServerSettingsDTO), int? flowType = default(int?), string portalBaseUrl = default(string)) - { - // to ensure "mailSettings" is required (not null) - if (mailSettings == null) - { - throw new InvalidDataException("mailSettings is a required property for ExternalAuthRedirectUrlRequestDTO and cannot be null"); - } - else - { - this.MailSettings = mailSettings; - } - // to ensure "portalBaseUrl" is required (not null) - if (portalBaseUrl == null) - { - throw new InvalidDataException("portalBaseUrl is a required property for ExternalAuthRedirectUrlRequestDTO and cannot be null"); - } - else - { - this.PortalBaseUrl = portalBaseUrl; - } - this.FlowType = flowType; - } - - /// - /// The {Abletech.Arxivar.Server.Dtos.Mail.MailServerSettingsDTO} information - /// - /// The {Abletech.Arxivar.Server.Dtos.Mail.MailServerSettingsDTO} information - [DataMember(Name="mailSettings", EmitDefaultValue=false)] - public MailServerSettingsDTO MailSettings { get; set; } - - /// - /// Possible values: 0: Send 1: Receive - /// - /// Possible values: 0: Send 1: Receive - [DataMember(Name="flowType", EmitDefaultValue=false)] - public int? FlowType { get; set; } - - /// - /// The portal base url - /// - /// The portal base url - [DataMember(Name="portalBaseUrl", EmitDefaultValue=false)] - public string PortalBaseUrl { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExternalAuthRedirectUrlRequestDTO {\n"); - sb.Append(" MailSettings: ").Append(MailSettings).Append("\n"); - sb.Append(" FlowType: ").Append(FlowType).Append("\n"); - sb.Append(" PortalBaseUrl: ").Append(PortalBaseUrl).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExternalAuthRedirectUrlRequestDTO); - } - - /// - /// Returns true if ExternalAuthRedirectUrlRequestDTO instances are equal - /// - /// Instance of ExternalAuthRedirectUrlRequestDTO to be compared - /// Boolean - public bool Equals(ExternalAuthRedirectUrlRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.MailSettings == input.MailSettings || - (this.MailSettings != null && - this.MailSettings.Equals(input.MailSettings)) - ) && - ( - this.FlowType == input.FlowType || - (this.FlowType != null && - this.FlowType.Equals(input.FlowType)) - ) && - ( - this.PortalBaseUrl == input.PortalBaseUrl || - (this.PortalBaseUrl != null && - this.PortalBaseUrl.Equals(input.PortalBaseUrl)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.MailSettings != null) - hashCode = hashCode * 59 + this.MailSettings.GetHashCode(); - if (this.FlowType != null) - hashCode = hashCode * 59 + this.FlowType.GetHashCode(); - if (this.PortalBaseUrl != null) - hashCode = hashCode * 59 + this.PortalBaseUrl.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ExternalAuthRedirectUrlResponseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ExternalAuthRedirectUrlResponseDTO.cs deleted file mode 100644 index 50d6fd0..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ExternalAuthRedirectUrlResponseDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Defines the DTO which contains the full authorization redirect url to the external provider (Google, Microsoft, ...) - /// - [DataContract] - public partial class ExternalAuthRedirectUrlResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// The redirect url. - public ExternalAuthRedirectUrlResponseDTO(string redirectUrl = default(string)) - { - this.RedirectUrl = redirectUrl; - } - - /// - /// The redirect url - /// - /// The redirect url - [DataMember(Name="redirectUrl", EmitDefaultValue=false)] - public string RedirectUrl { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExternalAuthRedirectUrlResponseDTO {\n"); - sb.Append(" RedirectUrl: ").Append(RedirectUrl).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExternalAuthRedirectUrlResponseDTO); - } - - /// - /// Returns true if ExternalAuthRedirectUrlResponseDTO instances are equal - /// - /// Instance of ExternalAuthRedirectUrlResponseDTO to be compared - /// Boolean - public bool Equals(ExternalAuthRedirectUrlResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.RedirectUrl == input.RedirectUrl || - (this.RedirectUrl != null && - this.RedirectUrl.Equals(input.RedirectUrl)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.RedirectUrl != null) - hashCode = hashCode * 59 + this.RedirectUrl.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseDTO.cs deleted file mode 100644 index 179cbd1..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseDTO.cs +++ /dev/null @@ -1,510 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of field item - /// - [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] - [JsonSubtypes.KnownSubType(typeof(OriginalFieldDTO), "OriginalFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldGroupDTO), "AdditionalFieldGroupDTO")] - [JsonSubtypes.KnownSubType(typeof(OriginFieldDTO), "OriginFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldDateTimeDTO), "AdditionalFieldDateTimeDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldTableDTO), "AdditionalFieldTableDTO")] - [JsonSubtypes.KnownSubType(typeof(InstructionFieldDTO), "InstructionFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(DocumentDateExpiredFieldDTO), "DocumentDateExpiredFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(StateFieldDTO), "StateFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(ToFieldDTO), "ToFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldStringDTO), "AdditionalFieldStringDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldDoubleDTO), "AdditionalFieldDoubleDTO")] - [JsonSubtypes.KnownSubType(typeof(FolderFieldDTO), "FolderFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldBooleanDTO), "AdditionalFieldBooleanDTO")] - [JsonSubtypes.KnownSubType(typeof(NumberFieldDTO), "NumberFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(NoteFieldDTO), "NoteFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AuthorityDataFieldDTO), "AuthorityDataFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AttachmentFieldDTO), "AttachmentFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(ProtocolDateFieldDTO), "ProtocolDateFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(BinderFieldDTO), "BinderFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(DocumentDateFieldDTO), "DocumentDateFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldDTO), "AdditionalFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(CcFieldDTO), "CcFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(StringFieldDTO), "StringFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(SendersFieldDTO), "SendersFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(BusinessUnitFieldDTO), "BusinessUnitFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldConfigurationComboDTO), "AdditionalFieldConfigurationComboDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldClasseDTO), "AdditionalFieldClasseDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldComboDTO), "AdditionalFieldComboDTO")] - [JsonSubtypes.KnownSubType(typeof(FromFieldDTO), "FromFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(ImportantFieldDTO), "ImportantFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldMultivalueDTO), "AdditionalFieldMultivalueDTO")] - [JsonSubtypes.KnownSubType(typeof(BinderPreviewFieldDTO), "BinderPreviewFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AssociationFieldDTO), "AssociationFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(SubjectFieldDTO), "SubjectFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(AdditionalFieldIntDTO), "AdditionalFieldIntDTO")] - [JsonSubtypes.KnownSubType(typeof(DocumentTypeFieldDTO), "DocumentTypeFieldDTO")] - [JsonSubtypes.KnownSubType(typeof(BarcodeFieldDTO), "BarcodeFieldDTO")] - public partial class FieldBaseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Name. - /// External identifier. - /// Label. - /// Order. - /// DataSource identifier. - /// Required. - /// Formula. - /// Name of class (required). - /// Locked in read-only. - /// Data Group Identifier. - /// List of dependent fields. - /// Associated fields. - /// Field type additional. - /// Visible. - /// Formula in the context of predefined profile. - /// The visibility condition formula for this mask field. - /// The mandatory condition formula for this mask field. - /// The preferred address book for search contacts for this field. - /// Possible addressbook for selection for this field. - /// Number of display columns for the field. - public FieldBaseDTO(string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = default(string), bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) - { - // to ensure "className" is required (not null) - if (className == null) - { - throw new InvalidDataException("className is a required property for FieldBaseDTO and cannot be null"); - } - else - { - this.ClassName = className; - } - this.Name = name; - this.ExternalId = externalId; - this.Description = description; - this.Order = order; - this.DataSource = dataSource; - this.Required = required; - this.Formula = formula; - this.Locked = locked; - this.ComboGruppiId = comboGruppiId; - this.DependencyFields = dependencyFields; - this.Associations = associations; - this.IsAdditional = isAdditional; - this.Visible = visible; - this.PredefinedProfileFormula = predefinedProfileFormula; - this.VisibilityCondition = visibilityCondition; - this.MandatoryCondition = mandatoryCondition; - this.AddressBookDefaultFilter = addressBookDefaultFilter; - this.EnabledAddressBook = enabledAddressBook; - this.Columns = columns; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// External identifier - /// - /// External identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Order - /// - /// Order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// DataSource identifier - /// - /// DataSource identifier - [DataMember(Name="dataSource", EmitDefaultValue=false)] - public string DataSource { get; set; } - - /// - /// Required - /// - /// Required - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Formula - /// - /// Formula - [DataMember(Name="formula", EmitDefaultValue=false)] - public string Formula { get; set; } - - /// - /// Name of class - /// - /// Name of class - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Locked in read-only - /// - /// Locked in read-only - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Data Group Identifier - /// - /// Data Group Identifier - [DataMember(Name="comboGruppiId", EmitDefaultValue=false)] - public string ComboGruppiId { get; set; } - - /// - /// List of dependent fields - /// - /// List of dependent fields - [DataMember(Name="dependencyFields", EmitDefaultValue=false)] - public List DependencyFields { get; set; } - - /// - /// Associated fields - /// - /// Associated fields - [DataMember(Name="associations", EmitDefaultValue=false)] - public List Associations { get; set; } - - /// - /// Field type additional - /// - /// Field type additional - [DataMember(Name="isAdditional", EmitDefaultValue=false)] - public bool? IsAdditional { get; set; } - - /// - /// Visible - /// - /// Visible - [DataMember(Name="visible", EmitDefaultValue=false)] - public bool? Visible { get; set; } - - /// - /// Formula in the context of predefined profile - /// - /// Formula in the context of predefined profile - [DataMember(Name="predefinedProfileFormula", EmitDefaultValue=false)] - public string PredefinedProfileFormula { get; set; } - - /// - /// The visibility condition formula for this mask field - /// - /// The visibility condition formula for this mask field - [DataMember(Name="visibilityCondition", EmitDefaultValue=false)] - public string VisibilityCondition { get; set; } - - /// - /// The mandatory condition formula for this mask field - /// - /// The mandatory condition formula for this mask field - [DataMember(Name="mandatoryCondition", EmitDefaultValue=false)] - public string MandatoryCondition { get; set; } - - /// - /// The preferred address book for search contacts for this field - /// - /// The preferred address book for search contacts for this field - [DataMember(Name="addressBookDefaultFilter", EmitDefaultValue=false)] - public int? AddressBookDefaultFilter { get; set; } - - /// - /// Possible addressbook for selection for this field - /// - /// Possible addressbook for selection for this field - [DataMember(Name="enabledAddressBook", EmitDefaultValue=false)] - public List EnabledAddressBook { get; set; } - - /// - /// Number of display columns for the field - /// - /// Number of display columns for the field - [DataMember(Name="columns", EmitDefaultValue=false)] - public int? Columns { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" DataSource: ").Append(DataSource).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" Formula: ").Append(Formula).Append("\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" ComboGruppiId: ").Append(ComboGruppiId).Append("\n"); - sb.Append(" DependencyFields: ").Append(DependencyFields).Append("\n"); - sb.Append(" Associations: ").Append(Associations).Append("\n"); - sb.Append(" IsAdditional: ").Append(IsAdditional).Append("\n"); - sb.Append(" Visible: ").Append(Visible).Append("\n"); - sb.Append(" PredefinedProfileFormula: ").Append(PredefinedProfileFormula).Append("\n"); - sb.Append(" VisibilityCondition: ").Append(VisibilityCondition).Append("\n"); - sb.Append(" MandatoryCondition: ").Append(MandatoryCondition).Append("\n"); - sb.Append(" AddressBookDefaultFilter: ").Append(AddressBookDefaultFilter).Append("\n"); - sb.Append(" EnabledAddressBook: ").Append(EnabledAddressBook).Append("\n"); - sb.Append(" Columns: ").Append(Columns).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseDTO); - } - - /// - /// Returns true if FieldBaseDTO instances are equal - /// - /// Instance of FieldBaseDTO to be compared - /// Boolean - public bool Equals(FieldBaseDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.DataSource == input.DataSource || - (this.DataSource != null && - this.DataSource.Equals(input.DataSource)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.Formula == input.Formula || - (this.Formula != null && - this.Formula.Equals(input.Formula)) - ) && - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && - ( - this.ComboGruppiId == input.ComboGruppiId || - (this.ComboGruppiId != null && - this.ComboGruppiId.Equals(input.ComboGruppiId)) - ) && - ( - this.DependencyFields == input.DependencyFields || - this.DependencyFields != null && - this.DependencyFields.SequenceEqual(input.DependencyFields) - ) && - ( - this.Associations == input.Associations || - this.Associations != null && - this.Associations.SequenceEqual(input.Associations) - ) && - ( - this.IsAdditional == input.IsAdditional || - (this.IsAdditional != null && - this.IsAdditional.Equals(input.IsAdditional)) - ) && - ( - this.Visible == input.Visible || - (this.Visible != null && - this.Visible.Equals(input.Visible)) - ) && - ( - this.PredefinedProfileFormula == input.PredefinedProfileFormula || - (this.PredefinedProfileFormula != null && - this.PredefinedProfileFormula.Equals(input.PredefinedProfileFormula)) - ) && - ( - this.VisibilityCondition == input.VisibilityCondition || - (this.VisibilityCondition != null && - this.VisibilityCondition.Equals(input.VisibilityCondition)) - ) && - ( - this.MandatoryCondition == input.MandatoryCondition || - (this.MandatoryCondition != null && - this.MandatoryCondition.Equals(input.MandatoryCondition)) - ) && - ( - this.AddressBookDefaultFilter == input.AddressBookDefaultFilter || - (this.AddressBookDefaultFilter != null && - this.AddressBookDefaultFilter.Equals(input.AddressBookDefaultFilter)) - ) && - ( - this.EnabledAddressBook == input.EnabledAddressBook || - this.EnabledAddressBook != null && - this.EnabledAddressBook.SequenceEqual(input.EnabledAddressBook) - ) && - ( - this.Columns == input.Columns || - (this.Columns != null && - this.Columns.Equals(input.Columns)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - if (this.DataSource != null) - hashCode = hashCode * 59 + this.DataSource.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.Formula != null) - hashCode = hashCode * 59 + this.Formula.GetHashCode(); - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.ComboGruppiId != null) - hashCode = hashCode * 59 + this.ComboGruppiId.GetHashCode(); - if (this.DependencyFields != null) - hashCode = hashCode * 59 + this.DependencyFields.GetHashCode(); - if (this.Associations != null) - hashCode = hashCode * 59 + this.Associations.GetHashCode(); - if (this.IsAdditional != null) - hashCode = hashCode * 59 + this.IsAdditional.GetHashCode(); - if (this.Visible != null) - hashCode = hashCode * 59 + this.Visible.GetHashCode(); - if (this.PredefinedProfileFormula != null) - hashCode = hashCode * 59 + this.PredefinedProfileFormula.GetHashCode(); - if (this.VisibilityCondition != null) - hashCode = hashCode * 59 + this.VisibilityCondition.GetHashCode(); - if (this.MandatoryCondition != null) - hashCode = hashCode * 59 + this.MandatoryCondition.GetHashCode(); - if (this.AddressBookDefaultFilter != null) - hashCode = hashCode * 59 + this.AddressBookDefaultFilter.GetHashCode(); - if (this.EnabledAddressBook != null) - hashCode = hashCode * 59 + this.EnabledAddressBook.GetHashCode(); - if (this.Columns != null) - hashCode = hashCode * 59 + this.Columns.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchAooDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchAooDto.cs deleted file mode 100644 index c8419ed..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchAooDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Search class for AOO values - /// - [DataContract] - public partial class FieldBaseForSearchAooDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchAooDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchAooDto(int? _operator = default(int?), AooSearchFilterDto valore1 = default(AooSearchFilterDto), AooSearchFilterDto valore2 = default(AooSearchFilterDto), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchAooDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public AooSearchFilterDto Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public AooSearchFilterDto Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchAooDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchAooDto); - } - - /// - /// Returns true if FieldBaseForSearchAooDto instances are equal - /// - /// Instance of FieldBaseForSearchAooDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchAooDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchBoolDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchBoolDto.cs deleted file mode 100644 index c85a8f0..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchBoolDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of search by boolean - /// - [DataContract] - public partial class FieldBaseForSearchBoolDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchBoolDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchBoolDto(int? _operator = default(int?), bool? valore1 = default(bool?), bool? valore2 = default(bool?), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchBoolDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public bool? Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public bool? Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchBoolDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchBoolDto); - } - - /// - /// Returns true if FieldBaseForSearchBoolDto instances are equal - /// - /// Instance of FieldBaseForSearchBoolDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchBoolDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchConservazioneDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchConservazioneDto.cs deleted file mode 100644 index 466c4f4..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchConservazioneDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of search by conservation information - /// - [DataContract] - public partial class FieldBaseForSearchConservazioneDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchConservazioneDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchConservazioneDto(int? _operator = default(int?), ReplacementStorageSearchFilterDto valore1 = default(ReplacementStorageSearchFilterDto), ReplacementStorageSearchFilterDto valore2 = default(ReplacementStorageSearchFilterDto), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchConservazioneDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public ReplacementStorageSearchFilterDto Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public ReplacementStorageSearchFilterDto Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchConservazioneDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchConservazioneDto); - } - - /// - /// Returns true if FieldBaseForSearchConservazioneDto instances are equal - /// - /// Instance of FieldBaseForSearchConservazioneDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchConservazioneDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchContactDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchContactDto.cs deleted file mode 100644 index 802d71d..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchContactDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of search by contacts information - /// - [DataContract] - public partial class FieldBaseForSearchContactDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchContactDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchContactDto(int? _operator = default(int?), ContactSearchFilterDto valore1 = default(ContactSearchFilterDto), ContactSearchFilterDto valore2 = default(ContactSearchFilterDto), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchContactDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public ContactSearchFilterDto Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public ContactSearchFilterDto Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchContactDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchContactDto); - } - - /// - /// Returns true if FieldBaseForSearchContactDto instances are equal - /// - /// Instance of FieldBaseForSearchContactDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchContactDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchDTO.cs deleted file mode 100644 index c409fd0..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchDTO.cs +++ /dev/null @@ -1,520 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of the additional field filter properties - /// - [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchMatrixDto), "FieldBaseForSearchMatrixDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchIntDto), "FieldBaseForSearchIntDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchBoolDto), "FieldBaseForSearchBoolDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchDoubleDto), "FieldBaseForSearchDoubleDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchConservazioneDto), "FieldBaseForSearchConservazioneDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchListDto), "FieldBaseForSearchListDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchContactDto), "FieldBaseForSearchContactDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchDocumentTypeDto), "FieldBaseForSearchDocumentTypeDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchStringDto), "FieldBaseForSearchStringDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchDateTimeDto), "FieldBaseForSearchDateTimeDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchStampDto), "FieldBaseForSearchStampDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchAooDto), "FieldBaseForSearchAooDto")] - [JsonSubtypes.KnownSubType(typeof(FieldBaseForSearchProtocolloDto), "FieldBaseForSearchProtocolloDto")] - public partial class FieldBaseForSearchDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Group Identifier. - /// Possible values: 0: Standard 1: Group 2: Additional . - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea . - /// Default Operator. - /// Table name. - /// Binder Identifier. - /// Multiple values. - /// Name. - /// External identifier. - /// Label. - /// Order. - /// DataSource identifier. - /// Required. - /// Formula. - /// Name of class (required). - /// Locked in read-only. - /// Data Group Identifier. - /// List of dependent fields. - /// Associated fields. - /// Field type additional. - /// Visible. - /// Formula in the context of predefined profile. - public FieldBaseForSearchDTO(int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = default(string), bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) - { - // to ensure "className" is required (not null) - if (className == null) - { - throw new InvalidDataException("className is a required property for FieldBaseForSearchDTO and cannot be null"); - } - else - { - this.ClassName = className; - } - this.GroupId = groupId; - this.FieldType = fieldType; - this.AdditionalFieldType = additionalFieldType; - this.DefaultOperator = defaultOperator; - this.TableName = tableName; - this.BinderFieldId = binderFieldId; - this.Multiple = multiple; - this.Name = name; - this.ExternalId = externalId; - this.Description = description; - this.Order = order; - this.DataSource = dataSource; - this.Required = required; - this.Formula = formula; - this.Locked = locked; - this.ComboGruppiId = comboGruppiId; - this.DependencyFields = dependencyFields; - this.Associations = associations; - this.IsAdditional = isAdditional; - this.Visible = visible; - this.PredefinedProfileFormula = predefinedProfileFormula; - } - - /// - /// Group Identifier - /// - /// Group Identifier - [DataMember(Name="groupId", EmitDefaultValue=false)] - public int? GroupId { get; set; } - - /// - /// Possible values: 0: Standard 1: Group 2: Additional - /// - /// Possible values: 0: Standard 1: Group 2: Additional - [DataMember(Name="fieldType", EmitDefaultValue=false)] - public int? FieldType { get; set; } - - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - /// - /// Possible values: 0: Textbox 1: Databox 2: Numeric 3: Combobox 4: TableBox 5: Checkbox 6: MultiValue 7: ClasseBox 8: Group 9: RubricaBox 10: TextArea - [DataMember(Name="additionalFieldType", EmitDefaultValue=false)] - public int? AdditionalFieldType { get; set; } - - /// - /// Default Operator - /// - /// Default Operator - [DataMember(Name="defaultOperator", EmitDefaultValue=false)] - public int? DefaultOperator { get; set; } - - /// - /// Table name - /// - /// Table name - [DataMember(Name="tableName", EmitDefaultValue=false)] - public string TableName { get; set; } - - /// - /// Binder Identifier - /// - /// Binder Identifier - [DataMember(Name="binderFieldId", EmitDefaultValue=false)] - public int? BinderFieldId { get; set; } - - /// - /// Multiple values - /// - /// Multiple values - [DataMember(Name="multiple", EmitDefaultValue=false)] - public string Multiple { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// External identifier - /// - /// External identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Order - /// - /// Order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// DataSource identifier - /// - /// DataSource identifier - [DataMember(Name="dataSource", EmitDefaultValue=false)] - public string DataSource { get; set; } - - /// - /// Required - /// - /// Required - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Formula - /// - /// Formula - [DataMember(Name="formula", EmitDefaultValue=false)] - public string Formula { get; set; } - - /// - /// Name of class - /// - /// Name of class - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Locked in read-only - /// - /// Locked in read-only - [DataMember(Name="locked", EmitDefaultValue=false)] - public bool? Locked { get; set; } - - /// - /// Data Group Identifier - /// - /// Data Group Identifier - [DataMember(Name="comboGruppiId", EmitDefaultValue=false)] - public string ComboGruppiId { get; set; } - - /// - /// List of dependent fields - /// - /// List of dependent fields - [DataMember(Name="dependencyFields", EmitDefaultValue=false)] - public List DependencyFields { get; set; } - - /// - /// Associated fields - /// - /// Associated fields - [DataMember(Name="associations", EmitDefaultValue=false)] - public Dictionary Associations { get; set; } - - /// - /// Field type additional - /// - /// Field type additional - [DataMember(Name="isAdditional", EmitDefaultValue=false)] - public bool? IsAdditional { get; set; } - - /// - /// Visible - /// - /// Visible - [DataMember(Name="visible", EmitDefaultValue=false)] - public bool? Visible { get; set; } - - /// - /// Formula in the context of predefined profile - /// - /// Formula in the context of predefined profile - [DataMember(Name="predefinedProfileFormula", EmitDefaultValue=false)] - public string PredefinedProfileFormula { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchDTO {\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" FieldType: ").Append(FieldType).Append("\n"); - sb.Append(" AdditionalFieldType: ").Append(AdditionalFieldType).Append("\n"); - sb.Append(" DefaultOperator: ").Append(DefaultOperator).Append("\n"); - sb.Append(" TableName: ").Append(TableName).Append("\n"); - sb.Append(" BinderFieldId: ").Append(BinderFieldId).Append("\n"); - sb.Append(" Multiple: ").Append(Multiple).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" DataSource: ").Append(DataSource).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" Formula: ").Append(Formula).Append("\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Locked: ").Append(Locked).Append("\n"); - sb.Append(" ComboGruppiId: ").Append(ComboGruppiId).Append("\n"); - sb.Append(" DependencyFields: ").Append(DependencyFields).Append("\n"); - sb.Append(" Associations: ").Append(Associations).Append("\n"); - sb.Append(" IsAdditional: ").Append(IsAdditional).Append("\n"); - sb.Append(" Visible: ").Append(Visible).Append("\n"); - sb.Append(" PredefinedProfileFormula: ").Append(PredefinedProfileFormula).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchDTO); - } - - /// - /// Returns true if FieldBaseForSearchDTO instances are equal - /// - /// Instance of FieldBaseForSearchDTO to be compared - /// Boolean - public bool Equals(FieldBaseForSearchDTO input) - { - if (input == null) - return false; - - return - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && - ( - this.FieldType == input.FieldType || - (this.FieldType != null && - this.FieldType.Equals(input.FieldType)) - ) && - ( - this.AdditionalFieldType == input.AdditionalFieldType || - (this.AdditionalFieldType != null && - this.AdditionalFieldType.Equals(input.AdditionalFieldType)) - ) && - ( - this.DefaultOperator == input.DefaultOperator || - (this.DefaultOperator != null && - this.DefaultOperator.Equals(input.DefaultOperator)) - ) && - ( - this.TableName == input.TableName || - (this.TableName != null && - this.TableName.Equals(input.TableName)) - ) && - ( - this.BinderFieldId == input.BinderFieldId || - (this.BinderFieldId != null && - this.BinderFieldId.Equals(input.BinderFieldId)) - ) && - ( - this.Multiple == input.Multiple || - (this.Multiple != null && - this.Multiple.Equals(input.Multiple)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.DataSource == input.DataSource || - (this.DataSource != null && - this.DataSource.Equals(input.DataSource)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.Formula == input.Formula || - (this.Formula != null && - this.Formula.Equals(input.Formula)) - ) && - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Locked == input.Locked || - (this.Locked != null && - this.Locked.Equals(input.Locked)) - ) && - ( - this.ComboGruppiId == input.ComboGruppiId || - (this.ComboGruppiId != null && - this.ComboGruppiId.Equals(input.ComboGruppiId)) - ) && - ( - this.DependencyFields == input.DependencyFields || - this.DependencyFields != null && - this.DependencyFields.SequenceEqual(input.DependencyFields) - ) && - ( - this.Associations == input.Associations || - this.Associations != null && - this.Associations.SequenceEqual(input.Associations) - ) && - ( - this.IsAdditional == input.IsAdditional || - (this.IsAdditional != null && - this.IsAdditional.Equals(input.IsAdditional)) - ) && - ( - this.Visible == input.Visible || - (this.Visible != null && - this.Visible.Equals(input.Visible)) - ) && - ( - this.PredefinedProfileFormula == input.PredefinedProfileFormula || - (this.PredefinedProfileFormula != null && - this.PredefinedProfileFormula.Equals(input.PredefinedProfileFormula)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.GroupId != null) - hashCode = hashCode * 59 + this.GroupId.GetHashCode(); - if (this.FieldType != null) - hashCode = hashCode * 59 + this.FieldType.GetHashCode(); - if (this.AdditionalFieldType != null) - hashCode = hashCode * 59 + this.AdditionalFieldType.GetHashCode(); - if (this.DefaultOperator != null) - hashCode = hashCode * 59 + this.DefaultOperator.GetHashCode(); - if (this.TableName != null) - hashCode = hashCode * 59 + this.TableName.GetHashCode(); - if (this.BinderFieldId != null) - hashCode = hashCode * 59 + this.BinderFieldId.GetHashCode(); - if (this.Multiple != null) - hashCode = hashCode * 59 + this.Multiple.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - if (this.DataSource != null) - hashCode = hashCode * 59 + this.DataSource.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.Formula != null) - hashCode = hashCode * 59 + this.Formula.GetHashCode(); - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Locked != null) - hashCode = hashCode * 59 + this.Locked.GetHashCode(); - if (this.ComboGruppiId != null) - hashCode = hashCode * 59 + this.ComboGruppiId.GetHashCode(); - if (this.DependencyFields != null) - hashCode = hashCode * 59 + this.DependencyFields.GetHashCode(); - if (this.Associations != null) - hashCode = hashCode * 59 + this.Associations.GetHashCode(); - if (this.IsAdditional != null) - hashCode = hashCode * 59 + this.IsAdditional.GetHashCode(); - if (this.Visible != null) - hashCode = hashCode * 59 + this.Visible.GetHashCode(); - if (this.PredefinedProfileFormula != null) - hashCode = hashCode * 59 + this.PredefinedProfileFormula.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchDateTimeDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchDateTimeDto.cs deleted file mode 100644 index b187a4e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchDateTimeDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// FieldBaseForSearchDateTimeDto - /// - [DataContract] - public partial class FieldBaseForSearchDateTimeDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchDateTimeDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchDateTimeDto(int? _operator = default(int?), DateTime? valore1 = default(DateTime?), DateTime? valore2 = default(DateTime?), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchDateTimeDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public DateTime? Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public DateTime? Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchDateTimeDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchDateTimeDto); - } - - /// - /// Returns true if FieldBaseForSearchDateTimeDto instances are equal - /// - /// Instance of FieldBaseForSearchDateTimeDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchDateTimeDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchDocumentTypeDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchDocumentTypeDto.cs deleted file mode 100644 index 014e20b..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchDocumentTypeDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// FieldBaseForSearchDocumentTypeDto - /// - [DataContract] - public partial class FieldBaseForSearchDocumentTypeDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchDocumentTypeDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchDocumentTypeDto(int? _operator = default(int?), DocumentTypeSearchFilterDto valore1 = default(DocumentTypeSearchFilterDto), DocumentTypeSearchFilterDto valore2 = default(DocumentTypeSearchFilterDto), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchDocumentTypeDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public DocumentTypeSearchFilterDto Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public DocumentTypeSearchFilterDto Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchDocumentTypeDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchDocumentTypeDto); - } - - /// - /// Returns true if FieldBaseForSearchDocumentTypeDto instances are equal - /// - /// Instance of FieldBaseForSearchDocumentTypeDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchDocumentTypeDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchDoubleDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchDoubleDto.cs deleted file mode 100644 index 9a33521..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchDoubleDto.cs +++ /dev/null @@ -1,182 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// FieldBaseForSearchDoubleDto - /// - [DataContract] - public partial class FieldBaseForSearchDoubleDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchDoubleDto() { } - /// - /// Initializes a new instance of the class. - /// - /// decimals. - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchDoubleDto(int? decimals = default(int?), int? _operator = default(int?), double? valore1 = default(double?), double? valore2 = default(double?), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchDoubleDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Decimals = decimals; - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Gets or Sets Decimals - /// - [DataMember(Name="decimals", EmitDefaultValue=false)] - public int? Decimals { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public double? Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public double? Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchDoubleDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Decimals: ").Append(Decimals).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchDoubleDto); - } - - /// - /// Returns true if FieldBaseForSearchDoubleDto instances are equal - /// - /// Instance of FieldBaseForSearchDoubleDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchDoubleDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Decimals == input.Decimals || - (this.Decimals != null && - this.Decimals.Equals(input.Decimals)) - ) && base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Decimals != null) - hashCode = hashCode * 59 + this.Decimals.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchIntDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchIntDto.cs deleted file mode 100644 index 439b0b8..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchIntDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// FieldBaseForSearchIntDto - /// - [DataContract] - public partial class FieldBaseForSearchIntDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchIntDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchIntDto(int? _operator = default(int?), int? valore1 = default(int?), int? valore2 = default(int?), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchIntDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public int? Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public int? Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchIntDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchIntDto); - } - - /// - /// Returns true if FieldBaseForSearchIntDto instances are equal - /// - /// Instance of FieldBaseForSearchIntDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchIntDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchListDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchListDto.cs deleted file mode 100644 index 230edff..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchListDto.cs +++ /dev/null @@ -1,183 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Field user for list search criteria - /// - [DataContract] - public partial class FieldBaseForSearchListDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchListDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like . - /// Search by and. - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchListDto(int? _operator = default(int?), bool? and = default(bool?), List valore1 = default(List), List valore2 = default(List), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchListDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.And = and; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// Search by and - /// - /// Search by and - [DataMember(Name="and", EmitDefaultValue=false)] - public bool? And { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public List Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public List Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchListDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" And: ").Append(And).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchListDto); - } - - /// - /// Returns true if FieldBaseForSearchListDto instances are equal - /// - /// Instance of FieldBaseForSearchListDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchListDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.And == input.And || - (this.And != null && - this.And.Equals(input.And)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - this.Valore1 != null && - this.Valore1.SequenceEqual(input.Valore1) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - this.Valore2 != null && - this.Valore2.SequenceEqual(input.Valore2) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.And != null) - hashCode = hashCode * 59 + this.And.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchMatrixDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchMatrixDto.cs deleted file mode 100644 index 47b80d9..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchMatrixDto.cs +++ /dev/null @@ -1,200 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Field user for list search criteria - /// - [DataContract] - public partial class FieldBaseForSearchMatrixDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchMatrixDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// Search by and. - /// Matrix name. - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchMatrixDto(int? _operator = default(int?), bool? and = default(bool?), string matrixName = default(string), List valore1 = default(List), List valore2 = default(List), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchMatrixDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.And = and; - this.MatrixName = matrixName; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// Search by and - /// - /// Search by and - [DataMember(Name="and", EmitDefaultValue=false)] - public bool? And { get; set; } - - /// - /// Matrix name - /// - /// Matrix name - [DataMember(Name="matrixName", EmitDefaultValue=false)] - public string MatrixName { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public List Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public List Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchMatrixDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" And: ").Append(And).Append("\n"); - sb.Append(" MatrixName: ").Append(MatrixName).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchMatrixDto); - } - - /// - /// Returns true if FieldBaseForSearchMatrixDto instances are equal - /// - /// Instance of FieldBaseForSearchMatrixDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchMatrixDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.And == input.And || - (this.And != null && - this.And.Equals(input.And)) - ) && base.Equals(input) && - ( - this.MatrixName == input.MatrixName || - (this.MatrixName != null && - this.MatrixName.Equals(input.MatrixName)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - this.Valore1 != null && - this.Valore1.SequenceEqual(input.Valore1) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - this.Valore2 != null && - this.Valore2.SequenceEqual(input.Valore2) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.And != null) - hashCode = hashCode * 59 + this.And.GetHashCode(); - if (this.MatrixName != null) - hashCode = hashCode * 59 + this.MatrixName.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchProtocolloDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchProtocolloDto.cs deleted file mode 100644 index dc7a76e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchProtocolloDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// FieldBaseForSearchProtocolloDto - /// - [DataContract] - public partial class FieldBaseForSearchProtocolloDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchProtocolloDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchProtocolloDto(int? _operator = default(int?), ProtocolSearchFilterDTO valore1 = default(ProtocolSearchFilterDTO), ProtocolSearchFilterDTO valore2 = default(ProtocolSearchFilterDTO), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchProtocolloDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public ProtocolSearchFilterDTO Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public ProtocolSearchFilterDTO Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchProtocolloDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchProtocolloDto); - } - - /// - /// Returns true if FieldBaseForSearchProtocolloDto instances are equal - /// - /// Instance of FieldBaseForSearchProtocolloDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchProtocolloDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchStampDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchStampDto.cs deleted file mode 100644 index c7c2513..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchStampDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// FieldBaseForSearchStampDto - /// - [DataContract] - public partial class FieldBaseForSearchStampDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchStampDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchStampDto(int? _operator = default(int?), StampSearchFilterDto valore1 = default(StampSearchFilterDto), StampSearchFilterDto valore2 = default(StampSearchFilterDto), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchStampDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public StampSearchFilterDto Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public StampSearchFilterDto Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchStampDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchStampDto); - } - - /// - /// Returns true if FieldBaseForSearchStampDto instances are equal - /// - /// Instance of FieldBaseForSearchStampDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchStampDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchStringDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchStringDto.cs deleted file mode 100644 index 8969bad..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSearchStringDto.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// FieldBaseForSearchStringDto - /// - [DataContract] - public partial class FieldBaseForSearchStringDto : FieldBaseForSearchDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FieldBaseForSearchStringDto() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like . - /// The value of this field. - /// The second value for this field (used only for some operator). - public FieldBaseForSearchStringDto(int? _operator = default(int?), string valore1 = default(string), string valore2 = default(string), int? groupId = default(int?), int? fieldType = default(int?), int? additionalFieldType = default(int?), int? defaultOperator = default(int?), string tableName = default(string), int? binderFieldId = default(int?), string multiple = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FieldBaseForSearchStringDto", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), Dictionary associations = default(Dictionary), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string)) : base(groupId, fieldType, additionalFieldType, defaultOperator, tableName, binderFieldId, multiple, name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula) - { - this.Operator = _operator; - this.Valore1 = valore1; - this.Valore2 = valore2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// The value of this field - /// - /// The value of this field - [DataMember(Name="valore1", EmitDefaultValue=false)] - public string Valore1 { get; set; } - - /// - /// The second value for this field (used only for some operator) - /// - /// The second value for this field (used only for some operator) - [DataMember(Name="valore2", EmitDefaultValue=false)] - public string Valore2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSearchStringDto {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Valore1: ").Append(Valore1).Append("\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSearchStringDto); - } - - /// - /// Returns true if FieldBaseForSearchStringDto instances are equal - /// - /// Instance of FieldBaseForSearchStringDto to be compared - /// Boolean - public bool Equals(FieldBaseForSearchStringDto input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Valore1 == input.Valore1 || - (this.Valore1 != null && - this.Valore1.Equals(input.Valore1)) - ) && base.Equals(input) && - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Valore1 != null) - hashCode = hashCode * 59 + this.Valore1.GetHashCode(); - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSelectDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSelectDTO.cs deleted file mode 100644 index ebd0009..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldBaseForSelectDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of field for select in search - /// - [DataContract] - public partial class FieldBaseForSelectDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Calculate. - /// Order. - /// Selected. - /// Possible values: 0: Standard 1: Group 2: Additional . - /// Order on the results of the search. - /// External Identifier. - /// Label. - /// Name. - /// Enabled the selection. - /// Possible values: 0: Icon 1: Standard 2: Additional . - public FieldBaseForSelectDTO(bool? toCalculate = default(bool?), int? index = default(int?), bool? selected = default(bool?), int? fieldType = default(int?), OrderBy orderBy = default(OrderBy), string externalId = default(string), string label = default(string), string name = default(string), bool? userSelectionEnabled = default(bool?), int? userSelectionGroup = default(int?)) - { - this.ToCalculate = toCalculate; - this.Index = index; - this.Selected = selected; - this.FieldType = fieldType; - this.OrderBy = orderBy; - this.ExternalId = externalId; - this.Label = label; - this.Name = name; - this.UserSelectionEnabled = userSelectionEnabled; - this.UserSelectionGroup = userSelectionGroup; - } - - /// - /// Calculate - /// - /// Calculate - [DataMember(Name="toCalculate", EmitDefaultValue=false)] - public bool? ToCalculate { get; set; } - - /// - /// Order - /// - /// Order - [DataMember(Name="index", EmitDefaultValue=false)] - public int? Index { get; set; } - - /// - /// Selected - /// - /// Selected - [DataMember(Name="selected", EmitDefaultValue=false)] - public bool? Selected { get; set; } - - /// - /// Possible values: 0: Standard 1: Group 2: Additional - /// - /// Possible values: 0: Standard 1: Group 2: Additional - [DataMember(Name="fieldType", EmitDefaultValue=false)] - public int? FieldType { get; set; } - - /// - /// Order on the results of the search - /// - /// Order on the results of the search - [DataMember(Name="orderBy", EmitDefaultValue=false)] - public OrderBy OrderBy { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Enabled the selection - /// - /// Enabled the selection - [DataMember(Name="userSelectionEnabled", EmitDefaultValue=false)] - public bool? UserSelectionEnabled { get; set; } - - /// - /// Possible values: 0: Icon 1: Standard 2: Additional - /// - /// Possible values: 0: Icon 1: Standard 2: Additional - [DataMember(Name="userSelectionGroup", EmitDefaultValue=false)] - public int? UserSelectionGroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldBaseForSelectDTO {\n"); - sb.Append(" ToCalculate: ").Append(ToCalculate).Append("\n"); - sb.Append(" Index: ").Append(Index).Append("\n"); - sb.Append(" Selected: ").Append(Selected).Append("\n"); - sb.Append(" FieldType: ").Append(FieldType).Append("\n"); - sb.Append(" OrderBy: ").Append(OrderBy).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" UserSelectionEnabled: ").Append(UserSelectionEnabled).Append("\n"); - sb.Append(" UserSelectionGroup: ").Append(UserSelectionGroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldBaseForSelectDTO); - } - - /// - /// Returns true if FieldBaseForSelectDTO instances are equal - /// - /// Instance of FieldBaseForSelectDTO to be compared - /// Boolean - public bool Equals(FieldBaseForSelectDTO input) - { - if (input == null) - return false; - - return - ( - this.ToCalculate == input.ToCalculate || - (this.ToCalculate != null && - this.ToCalculate.Equals(input.ToCalculate)) - ) && - ( - this.Index == input.Index || - (this.Index != null && - this.Index.Equals(input.Index)) - ) && - ( - this.Selected == input.Selected || - (this.Selected != null && - this.Selected.Equals(input.Selected)) - ) && - ( - this.FieldType == input.FieldType || - (this.FieldType != null && - this.FieldType.Equals(input.FieldType)) - ) && - ( - this.OrderBy == input.OrderBy || - (this.OrderBy != null && - this.OrderBy.Equals(input.OrderBy)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.UserSelectionEnabled == input.UserSelectionEnabled || - (this.UserSelectionEnabled != null && - this.UserSelectionEnabled.Equals(input.UserSelectionEnabled)) - ) && - ( - this.UserSelectionGroup == input.UserSelectionGroup || - (this.UserSelectionGroup != null && - this.UserSelectionGroup.Equals(input.UserSelectionGroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ToCalculate != null) - hashCode = hashCode * 59 + this.ToCalculate.GetHashCode(); - if (this.Index != null) - hashCode = hashCode * 59 + this.Index.GetHashCode(); - if (this.Selected != null) - hashCode = hashCode * 59 + this.Selected.GetHashCode(); - if (this.FieldType != null) - hashCode = hashCode * 59 + this.FieldType.GetHashCode(); - if (this.OrderBy != null) - hashCode = hashCode * 59 + this.OrderBy.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.UserSelectionEnabled != null) - hashCode = hashCode * 59 + this.UserSelectionEnabled.GetHashCode(); - if (this.UserSelectionGroup != null) - hashCode = hashCode * 59 + this.UserSelectionGroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldDateTime.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldDateTime.cs deleted file mode 100644 index a718d7b..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldDateTime.cs +++ /dev/null @@ -1,237 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// FieldDateTime - /// - [DataContract] - public partial class FieldDateTime : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// valore2. - /// valore. - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// nome. - /// nomeTabella. - /// externalId. - /// multiple. - /// label. - public FieldDateTime(Object valore2 = default(Object), Object valore = default(Object), int? operatore = default(int?), string nome = default(string), string nomeTabella = default(string), string externalId = default(string), string multiple = default(string), string label = default(string)) - { - this.Valore2 = valore2; - this.Valore = valore; - this.Operatore = operatore; - this.Nome = nome; - this.NomeTabella = nomeTabella; - this.ExternalId = externalId; - this.Multiple = multiple; - this.Label = label; - } - - /// - /// Gets or Sets Valore2 - /// - [DataMember(Name="valore2", EmitDefaultValue=false)] - public Object Valore2 { get; set; } - - /// - /// Gets or Sets Valore - /// - [DataMember(Name="valore", EmitDefaultValue=false)] - public Object Valore { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operatore", EmitDefaultValue=false)] - public int? Operatore { get; set; } - - /// - /// Gets or Sets Nome - /// - [DataMember(Name="nome", EmitDefaultValue=false)] - public string Nome { get; set; } - - /// - /// Gets or Sets NomeTabella - /// - [DataMember(Name="nomeTabella", EmitDefaultValue=false)] - public string NomeTabella { get; set; } - - /// - /// Gets or Sets ExternalId - /// - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Gets or Sets Multiple - /// - [DataMember(Name="multiple", EmitDefaultValue=false)] - public string Multiple { get; set; } - - /// - /// Gets or Sets Label - /// - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldDateTime {\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append(" Valore: ").Append(Valore).Append("\n"); - sb.Append(" Operatore: ").Append(Operatore).Append("\n"); - sb.Append(" Nome: ").Append(Nome).Append("\n"); - sb.Append(" NomeTabella: ").Append(NomeTabella).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Multiple: ").Append(Multiple).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldDateTime); - } - - /// - /// Returns true if FieldDateTime instances are equal - /// - /// Instance of FieldDateTime to be compared - /// Boolean - public bool Equals(FieldDateTime input) - { - if (input == null) - return false; - - return - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ) && - ( - this.Valore == input.Valore || - (this.Valore != null && - this.Valore.Equals(input.Valore)) - ) && - ( - this.Operatore == input.Operatore || - (this.Operatore != null && - this.Operatore.Equals(input.Operatore)) - ) && - ( - this.Nome == input.Nome || - (this.Nome != null && - this.Nome.Equals(input.Nome)) - ) && - ( - this.NomeTabella == input.NomeTabella || - (this.NomeTabella != null && - this.NomeTabella.Equals(input.NomeTabella)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Multiple == input.Multiple || - (this.Multiple != null && - this.Multiple.Equals(input.Multiple)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - if (this.Valore != null) - hashCode = hashCode * 59 + this.Valore.GetHashCode(); - if (this.Operatore != null) - hashCode = hashCode * 59 + this.Operatore.GetHashCode(); - if (this.Nome != null) - hashCode = hashCode * 59 + this.Nome.GetHashCode(); - if (this.NomeTabella != null) - hashCode = hashCode * 59 + this.NomeTabella.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Multiple != null) - hashCode = hashCode * 59 + this.Multiple.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldGroupDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldGroupDTO.cs deleted file mode 100644 index c75dd45..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldGroupDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// This class contains additional field groups - /// - [DataContract] - public partial class FieldGroupDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - /// Order. - /// Translations. - public FieldGroupDTO(int? id = default(int?), string description = default(string), int? order = default(int?), List translations = default(List)) - { - this.Id = id; - this.Description = description; - this.Order = order; - this.Translations = translations; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Order - /// - /// Order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// Translations - /// - /// Translations - [DataMember(Name="translations", EmitDefaultValue=false)] - public List Translations { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldGroupDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" Translations: ").Append(Translations).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldGroupDTO); - } - - /// - /// Returns true if FieldGroupDTO instances are equal - /// - /// Instance of FieldGroupDTO to be compared - /// Boolean - public bool Equals(FieldGroupDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.Translations == input.Translations || - this.Translations != null && - this.Translations.SequenceEqual(input.Translations) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - if (this.Translations != null) - hashCode = hashCode * 59 + this.Translations.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldGroupSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldGroupSimpleDTO.cs deleted file mode 100644 index 50ae9c2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldGroupSimpleDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// This class contains additional field groups - /// - [DataContract] - public partial class FieldGroupSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - public FieldGroupSimpleDTO(int? id = default(int?), string description = default(string)) - { - this.Id = id; - this.Description = description; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldGroupSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldGroupSimpleDTO); - } - - /// - /// Returns true if FieldGroupSimpleDTO instances are equal - /// - /// Instance of FieldGroupSimpleDTO to be compared - /// Boolean - public bool Equals(FieldGroupSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldGroupSortOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldGroupSortOptionsDTO.cs deleted file mode 100644 index 9022b7b..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldGroupSortOptionsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// This class contains options for field groups sorting - /// - [DataContract] - public partial class FieldGroupSortOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Order. - public FieldGroupSortOptionsDTO(int? id = default(int?), int? order = default(int?)) - { - this.Id = id; - this.Order = order; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Order - /// - /// Order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldGroupSortOptionsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldGroupSortOptionsDTO); - } - - /// - /// Returns true if FieldGroupSortOptionsDTO instances are equal - /// - /// Instance of FieldGroupSortOptionsDTO to be compared - /// Boolean - public bool Equals(FieldGroupSortOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldGroupTranslationDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldGroupTranslationDTO.cs deleted file mode 100644 index 679888a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldGroupTranslationDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of field group translation - /// - [DataContract] - public partial class FieldGroupTranslationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Language code. - /// Translation. - public FieldGroupTranslationDTO(string langCode = default(string), string value = default(string)) - { - this.LangCode = langCode; - this.Value = value; - } - - /// - /// Language code - /// - /// Language code - [DataMember(Name="langCode", EmitDefaultValue=false)] - public string LangCode { get; set; } - - /// - /// Translation - /// - /// Translation - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldGroupTranslationDTO {\n"); - sb.Append(" LangCode: ").Append(LangCode).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldGroupTranslationDTO); - } - - /// - /// Returns true if FieldGroupTranslationDTO instances are equal - /// - /// Instance of FieldGroupTranslationDTO to be compared - /// Boolean - public bool Equals(FieldGroupTranslationDTO input) - { - if (input == null) - return false; - - return - ( - this.LangCode == input.LangCode || - (this.LangCode != null && - this.LangCode.Equals(input.LangCode)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.LangCode != null) - hashCode = hashCode * 59 + this.LangCode.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldInt.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldInt.cs deleted file mode 100644 index a383419..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldInt.cs +++ /dev/null @@ -1,237 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// FieldInt - /// - [DataContract] - public partial class FieldInt : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// valore2. - /// valore. - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// nome. - /// nomeTabella. - /// externalId. - /// multiple. - /// label. - public FieldInt(Object valore2 = default(Object), Object valore = default(Object), int? operatore = default(int?), string nome = default(string), string nomeTabella = default(string), string externalId = default(string), string multiple = default(string), string label = default(string)) - { - this.Valore2 = valore2; - this.Valore = valore; - this.Operatore = operatore; - this.Nome = nome; - this.NomeTabella = nomeTabella; - this.ExternalId = externalId; - this.Multiple = multiple; - this.Label = label; - } - - /// - /// Gets or Sets Valore2 - /// - [DataMember(Name="valore2", EmitDefaultValue=false)] - public Object Valore2 { get; set; } - - /// - /// Gets or Sets Valore - /// - [DataMember(Name="valore", EmitDefaultValue=false)] - public Object Valore { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operatore", EmitDefaultValue=false)] - public int? Operatore { get; set; } - - /// - /// Gets or Sets Nome - /// - [DataMember(Name="nome", EmitDefaultValue=false)] - public string Nome { get; set; } - - /// - /// Gets or Sets NomeTabella - /// - [DataMember(Name="nomeTabella", EmitDefaultValue=false)] - public string NomeTabella { get; set; } - - /// - /// Gets or Sets ExternalId - /// - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Gets or Sets Multiple - /// - [DataMember(Name="multiple", EmitDefaultValue=false)] - public string Multiple { get; set; } - - /// - /// Gets or Sets Label - /// - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldInt {\n"); - sb.Append(" Valore2: ").Append(Valore2).Append("\n"); - sb.Append(" Valore: ").Append(Valore).Append("\n"); - sb.Append(" Operatore: ").Append(Operatore).Append("\n"); - sb.Append(" Nome: ").Append(Nome).Append("\n"); - sb.Append(" NomeTabella: ").Append(NomeTabella).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Multiple: ").Append(Multiple).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldInt); - } - - /// - /// Returns true if FieldInt instances are equal - /// - /// Instance of FieldInt to be compared - /// Boolean - public bool Equals(FieldInt input) - { - if (input == null) - return false; - - return - ( - this.Valore2 == input.Valore2 || - (this.Valore2 != null && - this.Valore2.Equals(input.Valore2)) - ) && - ( - this.Valore == input.Valore || - (this.Valore != null && - this.Valore.Equals(input.Valore)) - ) && - ( - this.Operatore == input.Operatore || - (this.Operatore != null && - this.Operatore.Equals(input.Operatore)) - ) && - ( - this.Nome == input.Nome || - (this.Nome != null && - this.Nome.Equals(input.Nome)) - ) && - ( - this.NomeTabella == input.NomeTabella || - (this.NomeTabella != null && - this.NomeTabella.Equals(input.NomeTabella)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Multiple == input.Multiple || - (this.Multiple != null && - this.Multiple.Equals(input.Multiple)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Valore2 != null) - hashCode = hashCode * 59 + this.Valore2.GetHashCode(); - if (this.Valore != null) - hashCode = hashCode * 59 + this.Valore.GetHashCode(); - if (this.Operatore != null) - hashCode = hashCode * 59 + this.Operatore.GetHashCode(); - if (this.Nome != null) - hashCode = hashCode * 59 + this.Nome.GetHashCode(); - if (this.NomeTabella != null) - hashCode = hashCode * 59 + this.NomeTabella.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Multiple != null) - hashCode = hashCode * 59 + this.Multiple.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldManagementDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldManagementDTO.cs deleted file mode 100644 index 1ccc521..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldManagementDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of field item for management - /// - [DataContract] - public partial class FieldManagementDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document type for additional field. - /// Possible values: 0: Integer 1: String 2: DateTime 3: Double 4: Boolean 5: DmDatiProfilo . - /// Name. - /// Label. - /// Possible values: 0: Empty 1: DM_PROFILE 2: DM_PROFILE_MULTIVALUES 3: DM_DATIPROFILO 4: DM_DATI_ENTE 5: _Function_ . - /// Possible values: 0: Standard 1: Additional 2: Contacts 3: PA 4: BodyData 5: Function . - public FieldManagementDTO(DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), int? dataType = default(int?), string name = default(string), string description = default(string), int? table = default(int?), int? type = default(int?)) - { - this.DocumentType = documentType; - this.DataType = dataType; - this.Name = name; - this.Description = description; - this.Table = table; - this.Type = type; - } - - /// - /// Document type for additional field - /// - /// Document type for additional field - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Possible values: 0: Integer 1: String 2: DateTime 3: Double 4: Boolean 5: DmDatiProfilo - /// - /// Possible values: 0: Integer 1: String 2: DateTime 3: Double 4: Boolean 5: DmDatiProfilo - [DataMember(Name="dataType", EmitDefaultValue=false)] - public int? DataType { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 0: Empty 1: DM_PROFILE 2: DM_PROFILE_MULTIVALUES 3: DM_DATIPROFILO 4: DM_DATI_ENTE 5: _Function_ - /// - /// Possible values: 0: Empty 1: DM_PROFILE 2: DM_PROFILE_MULTIVALUES 3: DM_DATIPROFILO 4: DM_DATI_ENTE 5: _Function_ - [DataMember(Name="table", EmitDefaultValue=false)] - public int? Table { get; set; } - - /// - /// Possible values: 0: Standard 1: Additional 2: Contacts 3: PA 4: BodyData 5: Function - /// - /// Possible values: 0: Standard 1: Additional 2: Contacts 3: PA 4: BodyData 5: Function - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldManagementDTO {\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" DataType: ").Append(DataType).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Table: ").Append(Table).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldManagementDTO); - } - - /// - /// Returns true if FieldManagementDTO instances are equal - /// - /// Instance of FieldManagementDTO to be compared - /// Boolean - public bool Equals(FieldManagementDTO input) - { - if (input == null) - return false; - - return - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.DataType == input.DataType || - (this.DataType != null && - this.DataType.Equals(input.DataType)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Table == input.Table || - (this.Table != null && - this.Table.Equals(input.Table)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.DataType != null) - hashCode = hashCode * 59 + this.DataType.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Table != null) - hashCode = hashCode * 59 + this.Table.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldManagementForUniquenessRulesDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldManagementForUniquenessRulesDTO.cs deleted file mode 100644 index d4cd8f3..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldManagementForUniquenessRulesDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// FieldManagementForUniquenessRulesDTO - /// - [DataContract] - public partial class FieldManagementForUniquenessRulesDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document type from which field is inherited. - /// Name. - /// Label. - /// Possible values: 0: Empty 1: DM_PROFILE 2: DM_PROFILE_MULTIVALUES 3: DM_DATIPROFILO 4: DM_DATI_ENTE 5: _Function_ . - /// Possible values: 0: Standard 1: Additional 2: Contacts 3: PA 4: BodyData 5: Function . - public FieldManagementForUniquenessRulesDTO(DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), string name = default(string), string description = default(string), int? table = default(int?), int? type = default(int?)) - { - this.DocumentType = documentType; - this.Name = name; - this.Description = description; - this.Table = table; - this.Type = type; - } - - /// - /// Document type from which field is inherited - /// - /// Document type from which field is inherited - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 0: Empty 1: DM_PROFILE 2: DM_PROFILE_MULTIVALUES 3: DM_DATIPROFILO 4: DM_DATI_ENTE 5: _Function_ - /// - /// Possible values: 0: Empty 1: DM_PROFILE 2: DM_PROFILE_MULTIVALUES 3: DM_DATIPROFILO 4: DM_DATI_ENTE 5: _Function_ - [DataMember(Name="table", EmitDefaultValue=false)] - public int? Table { get; set; } - - /// - /// Possible values: 0: Standard 1: Additional 2: Contacts 3: PA 4: BodyData 5: Function - /// - /// Possible values: 0: Standard 1: Additional 2: Contacts 3: PA 4: BodyData 5: Function - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldManagementForUniquenessRulesDTO {\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Table: ").Append(Table).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldManagementForUniquenessRulesDTO); - } - - /// - /// Returns true if FieldManagementForUniquenessRulesDTO instances are equal - /// - /// Instance of FieldManagementForUniquenessRulesDTO to be compared - /// Boolean - public bool Equals(FieldManagementForUniquenessRulesDTO input) - { - if (input == null) - return false; - - return - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Table == input.Table || - (this.Table != null && - this.Table.Equals(input.Table)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Table != null) - hashCode = hashCode * 59 + this.Table.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldString.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldString.cs deleted file mode 100644 index 3c35288..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FieldString.cs +++ /dev/null @@ -1,270 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// FieldString - /// - [DataContract] - public partial class FieldString : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// valore. - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like . - /// size. - /// Possible values: 0: None 1: AesEncryption . - /// forceCaseInsensitive. - /// nome. - /// nomeTabella. - /// externalId. - /// multiple. - /// label. - public FieldString(string valore = default(string), int? operatore = default(int?), int? size = default(int?), int? encryption = default(int?), bool? forceCaseInsensitive = default(bool?), string nome = default(string), string nomeTabella = default(string), string externalId = default(string), string multiple = default(string), string label = default(string)) - { - this.Valore = valore; - this.Operatore = operatore; - this.Size = size; - this.Encryption = encryption; - this.ForceCaseInsensitive = forceCaseInsensitive; - this.Nome = nome; - this.NomeTabella = nomeTabella; - this.ExternalId = externalId; - this.Multiple = multiple; - this.Label = label; - } - - /// - /// Gets or Sets Valore - /// - [DataMember(Name="valore", EmitDefaultValue=false)] - public string Valore { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - [DataMember(Name="operatore", EmitDefaultValue=false)] - public int? Operatore { get; set; } - - /// - /// Gets or Sets Size - /// - [DataMember(Name="size", EmitDefaultValue=false)] - public int? Size { get; set; } - - /// - /// Possible values: 0: None 1: AesEncryption - /// - /// Possible values: 0: None 1: AesEncryption - [DataMember(Name="encryption", EmitDefaultValue=false)] - public int? Encryption { get; set; } - - /// - /// Gets or Sets ForceCaseInsensitive - /// - [DataMember(Name="forceCaseInsensitive", EmitDefaultValue=false)] - public bool? ForceCaseInsensitive { get; set; } - - /// - /// Gets or Sets Nome - /// - [DataMember(Name="nome", EmitDefaultValue=false)] - public string Nome { get; set; } - - /// - /// Gets or Sets NomeTabella - /// - [DataMember(Name="nomeTabella", EmitDefaultValue=false)] - public string NomeTabella { get; set; } - - /// - /// Gets or Sets ExternalId - /// - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Gets or Sets Multiple - /// - [DataMember(Name="multiple", EmitDefaultValue=false)] - public string Multiple { get; set; } - - /// - /// Gets or Sets Label - /// - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FieldString {\n"); - sb.Append(" Valore: ").Append(Valore).Append("\n"); - sb.Append(" Operatore: ").Append(Operatore).Append("\n"); - sb.Append(" Size: ").Append(Size).Append("\n"); - sb.Append(" Encryption: ").Append(Encryption).Append("\n"); - sb.Append(" ForceCaseInsensitive: ").Append(ForceCaseInsensitive).Append("\n"); - sb.Append(" Nome: ").Append(Nome).Append("\n"); - sb.Append(" NomeTabella: ").Append(NomeTabella).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Multiple: ").Append(Multiple).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FieldString); - } - - /// - /// Returns true if FieldString instances are equal - /// - /// Instance of FieldString to be compared - /// Boolean - public bool Equals(FieldString input) - { - if (input == null) - return false; - - return - ( - this.Valore == input.Valore || - (this.Valore != null && - this.Valore.Equals(input.Valore)) - ) && - ( - this.Operatore == input.Operatore || - (this.Operatore != null && - this.Operatore.Equals(input.Operatore)) - ) && - ( - this.Size == input.Size || - (this.Size != null && - this.Size.Equals(input.Size)) - ) && - ( - this.Encryption == input.Encryption || - (this.Encryption != null && - this.Encryption.Equals(input.Encryption)) - ) && - ( - this.ForceCaseInsensitive == input.ForceCaseInsensitive || - (this.ForceCaseInsensitive != null && - this.ForceCaseInsensitive.Equals(input.ForceCaseInsensitive)) - ) && - ( - this.Nome == input.Nome || - (this.Nome != null && - this.Nome.Equals(input.Nome)) - ) && - ( - this.NomeTabella == input.NomeTabella || - (this.NomeTabella != null && - this.NomeTabella.Equals(input.NomeTabella)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Multiple == input.Multiple || - (this.Multiple != null && - this.Multiple.Equals(input.Multiple)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Valore != null) - hashCode = hashCode * 59 + this.Valore.GetHashCode(); - if (this.Operatore != null) - hashCode = hashCode * 59 + this.Operatore.GetHashCode(); - if (this.Size != null) - hashCode = hashCode * 59 + this.Size.GetHashCode(); - if (this.Encryption != null) - hashCode = hashCode * 59 + this.Encryption.GetHashCode(); - if (this.ForceCaseInsensitive != null) - hashCode = hashCode * 59 + this.ForceCaseInsensitive.GetHashCode(); - if (this.Nome != null) - hashCode = hashCode * 59 + this.Nome.GetHashCode(); - if (this.NomeTabella != null) - hashCode = hashCode * 59 + this.NomeTabella.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Multiple != null) - hashCode = hashCode * 59 + this.Multiple.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FindDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FindDTO.cs deleted file mode 100644 index 1e37e43..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FindDTO.cs +++ /dev/null @@ -1,312 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of find data - /// - [DataContract] - public partial class FindDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - /// Author. - /// Author Description. - /// Possible values: 0: Dm_Profile_Search 1: Dm_ElencoPratiche_Search 2: Dm_TaskWork_Search 3: Dm_UtentiBase_Search 4: Dm_Contatti_Search 5: ExternalData 6: Dm_Profile_Search_For_Fasciculation 7: Dm_Profile_Search_For_User_Default 8: Dm_Contatti_Search_For_User_Default . - /// Show Fields. - /// Open the Form. - /// Show on Desktop. - /// Folder Identifier. - /// External Identifier. - /// Table Name. - /// Table Field Identifier. - public FindDTO(string id = default(string), string description = default(string), int? owner = default(int?), string ownerDescription = default(string), int? context = default(int?), bool? showFields = default(bool?), bool? formOpen = default(bool?), bool? showOnDesktop = default(bool?), int? folderId = default(int?), string externalId = default(string), string tableName = default(string), string tableFieldId = default(string)) - { - this.Id = id; - this.Description = description; - this.Owner = owner; - this.OwnerDescription = ownerDescription; - this.Context = context; - this.ShowFields = showFields; - this.FormOpen = formOpen; - this.ShowOnDesktop = showOnDesktop; - this.FolderId = folderId; - this.ExternalId = externalId; - this.TableName = tableName; - this.TableFieldId = tableFieldId; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Author - /// - /// Author - [DataMember(Name="owner", EmitDefaultValue=false)] - public int? Owner { get; set; } - - /// - /// Author Description - /// - /// Author Description - [DataMember(Name="ownerDescription", EmitDefaultValue=false)] - public string OwnerDescription { get; set; } - - /// - /// Possible values: 0: Dm_Profile_Search 1: Dm_ElencoPratiche_Search 2: Dm_TaskWork_Search 3: Dm_UtentiBase_Search 4: Dm_Contatti_Search 5: ExternalData 6: Dm_Profile_Search_For_Fasciculation 7: Dm_Profile_Search_For_User_Default 8: Dm_Contatti_Search_For_User_Default - /// - /// Possible values: 0: Dm_Profile_Search 1: Dm_ElencoPratiche_Search 2: Dm_TaskWork_Search 3: Dm_UtentiBase_Search 4: Dm_Contatti_Search 5: ExternalData 6: Dm_Profile_Search_For_Fasciculation 7: Dm_Profile_Search_For_User_Default 8: Dm_Contatti_Search_For_User_Default - [DataMember(Name="context", EmitDefaultValue=false)] - public int? Context { get; set; } - - /// - /// Show Fields - /// - /// Show Fields - [DataMember(Name="showFields", EmitDefaultValue=false)] - public bool? ShowFields { get; set; } - - /// - /// Open the Form - /// - /// Open the Form - [DataMember(Name="formOpen", EmitDefaultValue=false)] - public bool? FormOpen { get; set; } - - /// - /// Show on Desktop - /// - /// Show on Desktop - [DataMember(Name="showOnDesktop", EmitDefaultValue=false)] - public bool? ShowOnDesktop { get; set; } - - /// - /// Folder Identifier - /// - /// Folder Identifier - [DataMember(Name="folderId", EmitDefaultValue=false)] - public int? FolderId { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Table Name - /// - /// Table Name - [DataMember(Name="tableName", EmitDefaultValue=false)] - public string TableName { get; set; } - - /// - /// Table Field Identifier - /// - /// Table Field Identifier - [DataMember(Name="tableFieldId", EmitDefaultValue=false)] - public string TableFieldId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FindDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" OwnerDescription: ").Append(OwnerDescription).Append("\n"); - sb.Append(" Context: ").Append(Context).Append("\n"); - sb.Append(" ShowFields: ").Append(ShowFields).Append("\n"); - sb.Append(" FormOpen: ").Append(FormOpen).Append("\n"); - sb.Append(" ShowOnDesktop: ").Append(ShowOnDesktop).Append("\n"); - sb.Append(" FolderId: ").Append(FolderId).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" TableName: ").Append(TableName).Append("\n"); - sb.Append(" TableFieldId: ").Append(TableFieldId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FindDTO); - } - - /// - /// Returns true if FindDTO instances are equal - /// - /// Instance of FindDTO to be compared - /// Boolean - public bool Equals(FindDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && - ( - this.OwnerDescription == input.OwnerDescription || - (this.OwnerDescription != null && - this.OwnerDescription.Equals(input.OwnerDescription)) - ) && - ( - this.Context == input.Context || - (this.Context != null && - this.Context.Equals(input.Context)) - ) && - ( - this.ShowFields == input.ShowFields || - (this.ShowFields != null && - this.ShowFields.Equals(input.ShowFields)) - ) && - ( - this.FormOpen == input.FormOpen || - (this.FormOpen != null && - this.FormOpen.Equals(input.FormOpen)) - ) && - ( - this.ShowOnDesktop == input.ShowOnDesktop || - (this.ShowOnDesktop != null && - this.ShowOnDesktop.Equals(input.ShowOnDesktop)) - ) && - ( - this.FolderId == input.FolderId || - (this.FolderId != null && - this.FolderId.Equals(input.FolderId)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.TableName == input.TableName || - (this.TableName != null && - this.TableName.Equals(input.TableName)) - ) && - ( - this.TableFieldId == input.TableFieldId || - (this.TableFieldId != null && - this.TableFieldId.Equals(input.TableFieldId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.OwnerDescription != null) - hashCode = hashCode * 59 + this.OwnerDescription.GetHashCode(); - if (this.Context != null) - hashCode = hashCode * 59 + this.Context.GetHashCode(); - if (this.ShowFields != null) - hashCode = hashCode * 59 + this.ShowFields.GetHashCode(); - if (this.FormOpen != null) - hashCode = hashCode * 59 + this.FormOpen.GetHashCode(); - if (this.ShowOnDesktop != null) - hashCode = hashCode * 59 + this.ShowOnDesktop.GetHashCode(); - if (this.FolderId != null) - hashCode = hashCode * 59 + this.FolderId.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.TableName != null) - hashCode = hashCode * 59 + this.TableName.GetHashCode(); - if (this.TableFieldId != null) - hashCode = hashCode * 59 + this.TableFieldId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FindSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FindSimpleDTO.cs deleted file mode 100644 index 09a9d45..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FindSimpleDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of find data with essential informations - /// - [DataContract] - public partial class FindSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - public FindSimpleDTO(string id = default(string), string description = default(string)) - { - this.Id = id; - this.Description = description; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FindSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FindSimpleDTO); - } - - /// - /// Returns true if FindSimpleDTO instances are equal - /// - /// Instance of FindSimpleDTO to be compared - /// Boolean - public bool Equals(FindSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FolderDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FolderDTO.cs deleted file mode 100644 index df71caf..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FolderDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Folder - /// - [DataContract] - public partial class FolderDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Parent Identifier. - /// Author. - /// Has Sub-Level Folders. - /// Author Name. - /// Full Path. - /// Creation Date. - /// Name. - /// Possible values: 0: None 1: AutoWithDefaultProfile 2: ManualWithMask . - /// ArxDrive Folder. - public FolderDTO(int? id = default(int?), int? parentId = default(int?), int? author = default(int?), bool? hasChilds = default(bool?), string authorCompleteName = default(string), string fullPath = default(string), DateTime? creationDate = default(DateTime?), string name = default(string), int? archiveMode = default(int?), bool? isArxdriveSynced = default(bool?)) - { - this.Id = id; - this.ParentId = parentId; - this.Author = author; - this.HasChilds = hasChilds; - this.AuthorCompleteName = authorCompleteName; - this.FullPath = fullPath; - this.CreationDate = creationDate; - this.Name = name; - this.ArchiveMode = archiveMode; - this.IsArxdriveSynced = isArxdriveSynced; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Parent Identifier - /// - /// Parent Identifier - [DataMember(Name="parentId", EmitDefaultValue=false)] - public int? ParentId { get; set; } - - /// - /// Author - /// - /// Author - [DataMember(Name="author", EmitDefaultValue=false)] - public int? Author { get; set; } - - /// - /// Has Sub-Level Folders - /// - /// Has Sub-Level Folders - [DataMember(Name="hasChilds", EmitDefaultValue=false)] - public bool? HasChilds { get; set; } - - /// - /// Author Name - /// - /// Author Name - [DataMember(Name="authorCompleteName", EmitDefaultValue=false)] - public string AuthorCompleteName { get; set; } - - /// - /// Full Path - /// - /// Full Path - [DataMember(Name="fullPath", EmitDefaultValue=false)] - public string FullPath { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Possible values: 0: None 1: AutoWithDefaultProfile 2: ManualWithMask - /// - /// Possible values: 0: None 1: AutoWithDefaultProfile 2: ManualWithMask - [DataMember(Name="archiveMode", EmitDefaultValue=false)] - public int? ArchiveMode { get; set; } - - /// - /// ArxDrive Folder - /// - /// ArxDrive Folder - [DataMember(Name="isArxdriveSynced", EmitDefaultValue=false)] - public bool? IsArxdriveSynced { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FolderDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ParentId: ").Append(ParentId).Append("\n"); - sb.Append(" Author: ").Append(Author).Append("\n"); - sb.Append(" HasChilds: ").Append(HasChilds).Append("\n"); - sb.Append(" AuthorCompleteName: ").Append(AuthorCompleteName).Append("\n"); - sb.Append(" FullPath: ").Append(FullPath).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ArchiveMode: ").Append(ArchiveMode).Append("\n"); - sb.Append(" IsArxdriveSynced: ").Append(IsArxdriveSynced).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FolderDTO); - } - - /// - /// Returns true if FolderDTO instances are equal - /// - /// Instance of FolderDTO to be compared - /// Boolean - public bool Equals(FolderDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ParentId == input.ParentId || - (this.ParentId != null && - this.ParentId.Equals(input.ParentId)) - ) && - ( - this.Author == input.Author || - (this.Author != null && - this.Author.Equals(input.Author)) - ) && - ( - this.HasChilds == input.HasChilds || - (this.HasChilds != null && - this.HasChilds.Equals(input.HasChilds)) - ) && - ( - this.AuthorCompleteName == input.AuthorCompleteName || - (this.AuthorCompleteName != null && - this.AuthorCompleteName.Equals(input.AuthorCompleteName)) - ) && - ( - this.FullPath == input.FullPath || - (this.FullPath != null && - this.FullPath.Equals(input.FullPath)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.ArchiveMode == input.ArchiveMode || - (this.ArchiveMode != null && - this.ArchiveMode.Equals(input.ArchiveMode)) - ) && - ( - this.IsArxdriveSynced == input.IsArxdriveSynced || - (this.IsArxdriveSynced != null && - this.IsArxdriveSynced.Equals(input.IsArxdriveSynced)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ParentId != null) - hashCode = hashCode * 59 + this.ParentId.GetHashCode(); - if (this.Author != null) - hashCode = hashCode * 59 + this.Author.GetHashCode(); - if (this.HasChilds != null) - hashCode = hashCode * 59 + this.HasChilds.GetHashCode(); - if (this.AuthorCompleteName != null) - hashCode = hashCode * 59 + this.AuthorCompleteName.GetHashCode(); - if (this.FullPath != null) - hashCode = hashCode * 59 + this.FullPath.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.ArchiveMode != null) - hashCode = hashCode * 59 + this.ArchiveMode.GetHashCode(); - if (this.IsArxdriveSynced != null) - hashCode = hashCode * 59 + this.IsArxdriveSynced.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FolderFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FolderFieldDTO.cs deleted file mode 100644 index 0404530..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FolderFieldDTO.cs +++ /dev/null @@ -1,131 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// FolderFieldDTO - /// - [DataContract] - public partial class FolderFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FolderFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// value. - public FolderFieldDTO(FolderDTO value = default(FolderDTO), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FolderFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public FolderDTO Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FolderFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FolderFieldDTO); - } - - /// - /// Returns true if FolderFieldDTO instances are equal - /// - /// Instance of FolderFieldDTO to be compared - /// Boolean - public bool Equals(FolderFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FolderTypeDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FolderTypeDTO.cs deleted file mode 100644 index 92c2ff2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FolderTypeDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// FolderTypeDTO - /// - [DataContract] - public partial class FolderTypeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Document Type Identifier. - /// Parent folder Id. - /// Dynamic pattern string for folder. - /// Possible values: 0: Entrata 1: Uscita 2: Interno 3: Sempre . - /// Indicates if it need to archive profile in folder on edit. - /// Indicates if it need to remove previuous profile from the folder on edit. - public FolderTypeDTO(int? id = default(int?), int? documentTypeId = default(int?), FolderDTO parentFolder = default(FolderDTO), string dynamicFolder = default(string), int? origin = default(int?), bool? insertOnProfileEdit = default(bool?), bool? moveOnEdit = default(bool?)) - { - this.Id = id; - this.DocumentTypeId = documentTypeId; - this.ParentFolder = parentFolder; - this.DynamicFolder = dynamicFolder; - this.Origin = origin; - this.InsertOnProfileEdit = insertOnProfileEdit; - this.MoveOnEdit = moveOnEdit; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Document Type Identifier - /// - /// Document Type Identifier - [DataMember(Name="documentTypeId", EmitDefaultValue=false)] - public int? DocumentTypeId { get; set; } - - /// - /// Parent folder Id - /// - /// Parent folder Id - [DataMember(Name="parentFolder", EmitDefaultValue=false)] - public FolderDTO ParentFolder { get; set; } - - /// - /// Dynamic pattern string for folder - /// - /// Dynamic pattern string for folder - [DataMember(Name="dynamicFolder", EmitDefaultValue=false)] - public string DynamicFolder { get; set; } - - /// - /// Possible values: 0: Entrata 1: Uscita 2: Interno 3: Sempre - /// - /// Possible values: 0: Entrata 1: Uscita 2: Interno 3: Sempre - [DataMember(Name="origin", EmitDefaultValue=false)] - public int? Origin { get; set; } - - /// - /// Indicates if it need to archive profile in folder on edit - /// - /// Indicates if it need to archive profile in folder on edit - [DataMember(Name="insertOnProfileEdit", EmitDefaultValue=false)] - public bool? InsertOnProfileEdit { get; set; } - - /// - /// Indicates if it need to remove previuous profile from the folder on edit - /// - /// Indicates if it need to remove previuous profile from the folder on edit - [DataMember(Name="moveOnEdit", EmitDefaultValue=false)] - public bool? MoveOnEdit { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FolderTypeDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" DocumentTypeId: ").Append(DocumentTypeId).Append("\n"); - sb.Append(" ParentFolder: ").Append(ParentFolder).Append("\n"); - sb.Append(" DynamicFolder: ").Append(DynamicFolder).Append("\n"); - sb.Append(" Origin: ").Append(Origin).Append("\n"); - sb.Append(" InsertOnProfileEdit: ").Append(InsertOnProfileEdit).Append("\n"); - sb.Append(" MoveOnEdit: ").Append(MoveOnEdit).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FolderTypeDTO); - } - - /// - /// Returns true if FolderTypeDTO instances are equal - /// - /// Instance of FolderTypeDTO to be compared - /// Boolean - public bool Equals(FolderTypeDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.DocumentTypeId == input.DocumentTypeId || - (this.DocumentTypeId != null && - this.DocumentTypeId.Equals(input.DocumentTypeId)) - ) && - ( - this.ParentFolder == input.ParentFolder || - (this.ParentFolder != null && - this.ParentFolder.Equals(input.ParentFolder)) - ) && - ( - this.DynamicFolder == input.DynamicFolder || - (this.DynamicFolder != null && - this.DynamicFolder.Equals(input.DynamicFolder)) - ) && - ( - this.Origin == input.Origin || - (this.Origin != null && - this.Origin.Equals(input.Origin)) - ) && - ( - this.InsertOnProfileEdit == input.InsertOnProfileEdit || - (this.InsertOnProfileEdit != null && - this.InsertOnProfileEdit.Equals(input.InsertOnProfileEdit)) - ) && - ( - this.MoveOnEdit == input.MoveOnEdit || - (this.MoveOnEdit != null && - this.MoveOnEdit.Equals(input.MoveOnEdit)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.DocumentTypeId != null) - hashCode = hashCode * 59 + this.DocumentTypeId.GetHashCode(); - if (this.ParentFolder != null) - hashCode = hashCode * 59 + this.ParentFolder.GetHashCode(); - if (this.DynamicFolder != null) - hashCode = hashCode * 59 + this.DynamicFolder.GetHashCode(); - if (this.Origin != null) - hashCode = hashCode * 59 + this.Origin.GetHashCode(); - if (this.InsertOnProfileEdit != null) - hashCode = hashCode * 59 + this.InsertOnProfileEdit.GetHashCode(); - if (this.MoveOnEdit != null) - hashCode = hashCode * 59 + this.MoveOnEdit.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FormulaTestDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FormulaTestDTO.cs deleted file mode 100644 index ade558a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FormulaTestDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for Formula test - /// - [DataContract] - public partial class FormulaTestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Formula string. - /// Field values for test. - public FormulaTestDTO(string formula = default(string), List values = default(List)) - { - this.Formula = formula; - this.Values = values; - } - - /// - /// Formula string - /// - /// Formula string - [DataMember(Name="formula", EmitDefaultValue=false)] - public string Formula { get; set; } - - /// - /// Field values for test - /// - /// Field values for test - [DataMember(Name="values", EmitDefaultValue=false)] - public List Values { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FormulaTestDTO {\n"); - sb.Append(" Formula: ").Append(Formula).Append("\n"); - sb.Append(" Values: ").Append(Values).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FormulaTestDTO); - } - - /// - /// Returns true if FormulaTestDTO instances are equal - /// - /// Instance of FormulaTestDTO to be compared - /// Boolean - public bool Equals(FormulaTestDTO input) - { - if (input == null) - return false; - - return - ( - this.Formula == input.Formula || - (this.Formula != null && - this.Formula.Equals(input.Formula)) - ) && - ( - this.Values == input.Values || - this.Values != null && - this.Values.SequenceEqual(input.Values) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Formula != null) - hashCode = hashCode * 59 + this.Formula.GetHashCode(); - if (this.Values != null) - hashCode = hashCode * 59 + this.Values.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FormulaTestResultDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FormulaTestResultDTO.cs deleted file mode 100644 index a258c72..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FormulaTestResultDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for Formula test result - /// - [DataContract] - public partial class FormulaTestResultDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Formula string. - /// Boolean that is true if the formula is formally valid. - /// Formula result. - public FormulaTestResultDTO(FormulaTestDTO formula = default(FormulaTestDTO), bool? isValid = default(bool?), string output = default(string)) - { - this.Formula = formula; - this.IsValid = isValid; - this.Output = output; - } - - /// - /// Formula string - /// - /// Formula string - [DataMember(Name="formula", EmitDefaultValue=false)] - public FormulaTestDTO Formula { get; set; } - - /// - /// Boolean that is true if the formula is formally valid - /// - /// Boolean that is true if the formula is formally valid - [DataMember(Name="isValid", EmitDefaultValue=false)] - public bool? IsValid { get; set; } - - /// - /// Formula result - /// - /// Formula result - [DataMember(Name="output", EmitDefaultValue=false)] - public string Output { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FormulaTestResultDTO {\n"); - sb.Append(" Formula: ").Append(Formula).Append("\n"); - sb.Append(" IsValid: ").Append(IsValid).Append("\n"); - sb.Append(" Output: ").Append(Output).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FormulaTestResultDTO); - } - - /// - /// Returns true if FormulaTestResultDTO instances are equal - /// - /// Instance of FormulaTestResultDTO to be compared - /// Boolean - public bool Equals(FormulaTestResultDTO input) - { - if (input == null) - return false; - - return - ( - this.Formula == input.Formula || - (this.Formula != null && - this.Formula.Equals(input.Formula)) - ) && - ( - this.IsValid == input.IsValid || - (this.IsValid != null && - this.IsValid.Equals(input.IsValid)) - ) && - ( - this.Output == input.Output || - (this.Output != null && - this.Output.Equals(input.Output)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Formula != null) - hashCode = hashCode * 59 + this.Formula.GetHashCode(); - if (this.IsValid != null) - hashCode = hashCode * 59 + this.IsValid.GetHashCode(); - if (this.Output != null) - hashCode = hashCode * 59 + this.Output.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ForwardUserDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ForwardUserDTO.cs deleted file mode 100644 index 9fad0dc..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ForwardUserDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of users with forward origin option - /// - [DataContract] - public partial class ForwardUserDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// User. - /// Possible values: 0: E 1: U 2: I 3: EU 4: EI 5: UI 6: EUI . - public ForwardUserDTO(UserSimpleDTO user = default(UserSimpleDTO), int? origin = default(int?)) - { - this.User = user; - this.Origin = origin; - } - - /// - /// User - /// - /// User - [DataMember(Name="user", EmitDefaultValue=false)] - public UserSimpleDTO User { get; set; } - - /// - /// Possible values: 0: E 1: U 2: I 3: EU 4: EI 5: UI 6: EUI - /// - /// Possible values: 0: E 1: U 2: I 3: EU 4: EI 5: UI 6: EUI - [DataMember(Name="origin", EmitDefaultValue=false)] - public int? Origin { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ForwardUserDTO {\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" Origin: ").Append(Origin).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ForwardUserDTO); - } - - /// - /// Returns true if ForwardUserDTO instances are equal - /// - /// Instance of ForwardUserDTO to be compared - /// Boolean - public bool Equals(ForwardUserDTO input) - { - if (input == null) - return false; - - return - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.Origin == input.Origin || - (this.Origin != null && - this.Origin.Equals(input.Origin)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.Origin != null) - hashCode = hashCode * 59 + this.Origin.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ForwardUsersDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ForwardUsersDTO.cs deleted file mode 100644 index 63a3bd7..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ForwardUsersDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type: users for forward - /// - [DataContract] - public partial class ForwardUsersDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document type. - /// Enable e-mail notification on profilation. - /// Forward Users list. - public ForwardUsersDTO(DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), bool? forward = default(bool?), List forwardUsers = default(List)) - { - this.DocumentType = documentType; - this.Forward = forward; - this.ForwardUsers = forwardUsers; - } - - /// - /// Document type - /// - /// Document type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Enable e-mail notification on profilation - /// - /// Enable e-mail notification on profilation - [DataMember(Name="forward", EmitDefaultValue=false)] - public bool? Forward { get; set; } - - /// - /// Forward Users list - /// - /// Forward Users list - [DataMember(Name="forwardUsers", EmitDefaultValue=false)] - public List ForwardUsers { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ForwardUsersDTO {\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Forward: ").Append(Forward).Append("\n"); - sb.Append(" ForwardUsers: ").Append(ForwardUsers).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ForwardUsersDTO); - } - - /// - /// Returns true if ForwardUsersDTO instances are equal - /// - /// Instance of ForwardUsersDTO to be compared - /// Boolean - public bool Equals(ForwardUsersDTO input) - { - if (input == null) - return false; - - return - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Forward == input.Forward || - (this.Forward != null && - this.Forward.Equals(input.Forward)) - ) && - ( - this.ForwardUsers == input.ForwardUsers || - this.ForwardUsers != null && - this.ForwardUsers.SequenceEqual(input.ForwardUsers) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Forward != null) - hashCode = hashCode * 59 + this.Forward.GetHashCode(); - if (this.ForwardUsers != null) - hashCode = hashCode * 59 + this.ForwardUsers.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/FromFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/FromFieldDTO.cs deleted file mode 100644 index 6bb778d..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/FromFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of sender contact field - /// - [DataContract] - public partial class FromFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FromFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - public FromFieldDTO(UserProfileDTO value = default(UserProfileDTO), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "FromFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public UserProfileDTO Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FromFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FromFieldDTO); - } - - /// - /// Returns true if FromFieldDTO instances are equal - /// - /// Instance of FromFieldDTO to be compared - /// Boolean - public bool Equals(FromFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/GenericKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/GenericKeyValueDTO.cs deleted file mode 100644 index ea84a48..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/GenericKeyValueDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Generic key value - /// - [DataContract] - public partial class GenericKeyValueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// ClassName. - /// Key. - public GenericKeyValueDTO(string className = default(string), string key = default(string)) - { - this.ClassName = className; - this.Key = key; - } - - /// - /// ClassName - /// - /// ClassName - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Key - /// - /// Key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class GenericKeyValueDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as GenericKeyValueDTO); - } - - /// - /// Returns true if GenericKeyValueDTO instances are equal - /// - /// Instance of GenericKeyValueDTO to be compared - /// Boolean - public bool Equals(GenericKeyValueDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/GlobalMailSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/GlobalMailSettingsDTO.cs deleted file mode 100644 index abbb42e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/GlobalMailSettingsDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for global mail settings - /// - [DataContract] - public partial class GlobalMailSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// State for incoming mail messages. - /// Document type for incoming mail messages. - /// State for outcoming mail messages. - /// Document type for outcoming mail messages. - /// PEC: replace profile sender with original. - /// PEC: replace profile subject with original. - public GlobalMailSettingsDTO(StateSimpleDTO stateIn = default(StateSimpleDTO), DocumentTypeSimpleDTO documentTypeIn = default(DocumentTypeSimpleDTO), StateSimpleDTO stateOut = default(StateSimpleDTO), DocumentTypeSimpleDTO documentTypeOut = default(DocumentTypeSimpleDTO), bool? pecSender = default(bool?), bool? pecSubject = default(bool?)) - { - this.StateIn = stateIn; - this.DocumentTypeIn = documentTypeIn; - this.StateOut = stateOut; - this.DocumentTypeOut = documentTypeOut; - this.PecSender = pecSender; - this.PecSubject = pecSubject; - } - - /// - /// State for incoming mail messages - /// - /// State for incoming mail messages - [DataMember(Name="stateIn", EmitDefaultValue=false)] - public StateSimpleDTO StateIn { get; set; } - - /// - /// Document type for incoming mail messages - /// - /// Document type for incoming mail messages - [DataMember(Name="documentTypeIn", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentTypeIn { get; set; } - - /// - /// State for outcoming mail messages - /// - /// State for outcoming mail messages - [DataMember(Name="stateOut", EmitDefaultValue=false)] - public StateSimpleDTO StateOut { get; set; } - - /// - /// Document type for outcoming mail messages - /// - /// Document type for outcoming mail messages - [DataMember(Name="documentTypeOut", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentTypeOut { get; set; } - - /// - /// PEC: replace profile sender with original - /// - /// PEC: replace profile sender with original - [DataMember(Name="pecSender", EmitDefaultValue=false)] - public bool? PecSender { get; set; } - - /// - /// PEC: replace profile subject with original - /// - /// PEC: replace profile subject with original - [DataMember(Name="pecSubject", EmitDefaultValue=false)] - public bool? PecSubject { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class GlobalMailSettingsDTO {\n"); - sb.Append(" StateIn: ").Append(StateIn).Append("\n"); - sb.Append(" DocumentTypeIn: ").Append(DocumentTypeIn).Append("\n"); - sb.Append(" StateOut: ").Append(StateOut).Append("\n"); - sb.Append(" DocumentTypeOut: ").Append(DocumentTypeOut).Append("\n"); - sb.Append(" PecSender: ").Append(PecSender).Append("\n"); - sb.Append(" PecSubject: ").Append(PecSubject).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as GlobalMailSettingsDTO); - } - - /// - /// Returns true if GlobalMailSettingsDTO instances are equal - /// - /// Instance of GlobalMailSettingsDTO to be compared - /// Boolean - public bool Equals(GlobalMailSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.StateIn == input.StateIn || - (this.StateIn != null && - this.StateIn.Equals(input.StateIn)) - ) && - ( - this.DocumentTypeIn == input.DocumentTypeIn || - (this.DocumentTypeIn != null && - this.DocumentTypeIn.Equals(input.DocumentTypeIn)) - ) && - ( - this.StateOut == input.StateOut || - (this.StateOut != null && - this.StateOut.Equals(input.StateOut)) - ) && - ( - this.DocumentTypeOut == input.DocumentTypeOut || - (this.DocumentTypeOut != null && - this.DocumentTypeOut.Equals(input.DocumentTypeOut)) - ) && - ( - this.PecSender == input.PecSender || - (this.PecSender != null && - this.PecSender.Equals(input.PecSender)) - ) && - ( - this.PecSubject == input.PecSubject || - (this.PecSubject != null && - this.PecSubject.Equals(input.PecSubject)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.StateIn != null) - hashCode = hashCode * 59 + this.StateIn.GetHashCode(); - if (this.DocumentTypeIn != null) - hashCode = hashCode * 59 + this.DocumentTypeIn.GetHashCode(); - if (this.StateOut != null) - hashCode = hashCode * 59 + this.StateOut.GetHashCode(); - if (this.DocumentTypeOut != null) - hashCode = hashCode * 59 + this.DocumentTypeOut.GetHashCode(); - if (this.PecSender != null) - hashCode = hashCode * 59 + this.PecSender.GetHashCode(); - if (this.PecSubject != null) - hashCode = hashCode * 59 + this.PecSubject.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/GroupAuthorizationsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/GroupAuthorizationsDTO.cs deleted file mode 100644 index fbb6ea3..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/GroupAuthorizationsDTO.cs +++ /dev/null @@ -1,329 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for Group Authorizations - /// - [DataContract] - public partial class GroupAuthorizationsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Enable user. - /// Enabled to Public Amministration (PA) Protocol. - /// Enabled to Workflow. - /// Enabled to Sign. - /// Enabling Workflow Management. - /// Abilitazione alla manutenzione delle liste di distribuzione. - /// Abilitazione alla cancellazione del profilo se associato alle mail. - /// Abilitazione all'inserimento immediato in rubrica durante la profilazione, nel caso non esista il contatto.. - /// Comportamento dell'utente nel caso di impianto ad \"aoo\" bloccate. - /// Enabled to Barcode. - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Enabling view Workflow. - public GroupAuthorizationsDTO(bool? active = default(bool?), bool? protocol = default(bool?), bool? workflow = default(bool?), bool? sign = default(bool?), bool? flow = default(bool?), bool? distributionList = default(bool?), bool? mailDeleteProfile = default(bool?), bool? addressBookProfile = default(bool?), bool? businessUnitUserUnlock = default(bool?), bool? barcodeAccess = default(bool?), int? canAddVirtualStamps = default(int?), int? canApplyStaps = default(int?), bool? viewFlow = default(bool?)) - { - this.Active = active; - this.Protocol = protocol; - this.Workflow = workflow; - this.Sign = sign; - this.Flow = flow; - this.DistributionList = distributionList; - this.MailDeleteProfile = mailDeleteProfile; - this.AddressBookProfile = addressBookProfile; - this.BusinessUnitUserUnlock = businessUnitUserUnlock; - this.BarcodeAccess = barcodeAccess; - this.CanAddVirtualStamps = canAddVirtualStamps; - this.CanApplyStaps = canApplyStaps; - this.ViewFlow = viewFlow; - } - - /// - /// Enable user - /// - /// Enable user - [DataMember(Name="active", EmitDefaultValue=false)] - public bool? Active { get; set; } - - /// - /// Enabled to Public Amministration (PA) Protocol - /// - /// Enabled to Public Amministration (PA) Protocol - [DataMember(Name="protocol", EmitDefaultValue=false)] - public bool? Protocol { get; set; } - - /// - /// Enabled to Workflow - /// - /// Enabled to Workflow - [DataMember(Name="workflow", EmitDefaultValue=false)] - public bool? Workflow { get; set; } - - /// - /// Enabled to Sign - /// - /// Enabled to Sign - [DataMember(Name="sign", EmitDefaultValue=false)] - public bool? Sign { get; set; } - - /// - /// Enabling Workflow Management - /// - /// Enabling Workflow Management - [DataMember(Name="flow", EmitDefaultValue=false)] - public bool? Flow { get; set; } - - /// - /// Abilitazione alla manutenzione delle liste di distribuzione - /// - /// Abilitazione alla manutenzione delle liste di distribuzione - [DataMember(Name="distributionList", EmitDefaultValue=false)] - public bool? DistributionList { get; set; } - - /// - /// Abilitazione alla cancellazione del profilo se associato alle mail - /// - /// Abilitazione alla cancellazione del profilo se associato alle mail - [DataMember(Name="mailDeleteProfile", EmitDefaultValue=false)] - public bool? MailDeleteProfile { get; set; } - - /// - /// Abilitazione all'inserimento immediato in rubrica durante la profilazione, nel caso non esista il contatto. - /// - /// Abilitazione all'inserimento immediato in rubrica durante la profilazione, nel caso non esista il contatto. - [DataMember(Name="addressBookProfile", EmitDefaultValue=false)] - public bool? AddressBookProfile { get; set; } - - /// - /// Comportamento dell'utente nel caso di impianto ad \"aoo\" bloccate - /// - /// Comportamento dell'utente nel caso di impianto ad \"aoo\" bloccate - [DataMember(Name="businessUnitUserUnlock", EmitDefaultValue=false)] - public bool? BusinessUnitUserUnlock { get; set; } - - /// - /// Enabled to Barcode - /// - /// Enabled to Barcode - [DataMember(Name="barcodeAccess", EmitDefaultValue=false)] - public bool? BarcodeAccess { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canAddVirtualStamps", EmitDefaultValue=false)] - public int? CanAddVirtualStamps { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canApplyStaps", EmitDefaultValue=false)] - public int? CanApplyStaps { get; set; } - - /// - /// Enabling view Workflow - /// - /// Enabling view Workflow - [DataMember(Name="viewFlow", EmitDefaultValue=false)] - public bool? ViewFlow { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class GroupAuthorizationsDTO {\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Protocol: ").Append(Protocol).Append("\n"); - sb.Append(" Workflow: ").Append(Workflow).Append("\n"); - sb.Append(" Sign: ").Append(Sign).Append("\n"); - sb.Append(" Flow: ").Append(Flow).Append("\n"); - sb.Append(" DistributionList: ").Append(DistributionList).Append("\n"); - sb.Append(" MailDeleteProfile: ").Append(MailDeleteProfile).Append("\n"); - sb.Append(" AddressBookProfile: ").Append(AddressBookProfile).Append("\n"); - sb.Append(" BusinessUnitUserUnlock: ").Append(BusinessUnitUserUnlock).Append("\n"); - sb.Append(" BarcodeAccess: ").Append(BarcodeAccess).Append("\n"); - sb.Append(" CanAddVirtualStamps: ").Append(CanAddVirtualStamps).Append("\n"); - sb.Append(" CanApplyStaps: ").Append(CanApplyStaps).Append("\n"); - sb.Append(" ViewFlow: ").Append(ViewFlow).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as GroupAuthorizationsDTO); - } - - /// - /// Returns true if GroupAuthorizationsDTO instances are equal - /// - /// Instance of GroupAuthorizationsDTO to be compared - /// Boolean - public bool Equals(GroupAuthorizationsDTO input) - { - if (input == null) - return false; - - return - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && - ( - this.Protocol == input.Protocol || - (this.Protocol != null && - this.Protocol.Equals(input.Protocol)) - ) && - ( - this.Workflow == input.Workflow || - (this.Workflow != null && - this.Workflow.Equals(input.Workflow)) - ) && - ( - this.Sign == input.Sign || - (this.Sign != null && - this.Sign.Equals(input.Sign)) - ) && - ( - this.Flow == input.Flow || - (this.Flow != null && - this.Flow.Equals(input.Flow)) - ) && - ( - this.DistributionList == input.DistributionList || - (this.DistributionList != null && - this.DistributionList.Equals(input.DistributionList)) - ) && - ( - this.MailDeleteProfile == input.MailDeleteProfile || - (this.MailDeleteProfile != null && - this.MailDeleteProfile.Equals(input.MailDeleteProfile)) - ) && - ( - this.AddressBookProfile == input.AddressBookProfile || - (this.AddressBookProfile != null && - this.AddressBookProfile.Equals(input.AddressBookProfile)) - ) && - ( - this.BusinessUnitUserUnlock == input.BusinessUnitUserUnlock || - (this.BusinessUnitUserUnlock != null && - this.BusinessUnitUserUnlock.Equals(input.BusinessUnitUserUnlock)) - ) && - ( - this.BarcodeAccess == input.BarcodeAccess || - (this.BarcodeAccess != null && - this.BarcodeAccess.Equals(input.BarcodeAccess)) - ) && - ( - this.CanAddVirtualStamps == input.CanAddVirtualStamps || - (this.CanAddVirtualStamps != null && - this.CanAddVirtualStamps.Equals(input.CanAddVirtualStamps)) - ) && - ( - this.CanApplyStaps == input.CanApplyStaps || - (this.CanApplyStaps != null && - this.CanApplyStaps.Equals(input.CanApplyStaps)) - ) && - ( - this.ViewFlow == input.ViewFlow || - (this.ViewFlow != null && - this.ViewFlow.Equals(input.ViewFlow)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Protocol != null) - hashCode = hashCode * 59 + this.Protocol.GetHashCode(); - if (this.Workflow != null) - hashCode = hashCode * 59 + this.Workflow.GetHashCode(); - if (this.Sign != null) - hashCode = hashCode * 59 + this.Sign.GetHashCode(); - if (this.Flow != null) - hashCode = hashCode * 59 + this.Flow.GetHashCode(); - if (this.DistributionList != null) - hashCode = hashCode * 59 + this.DistributionList.GetHashCode(); - if (this.MailDeleteProfile != null) - hashCode = hashCode * 59 + this.MailDeleteProfile.GetHashCode(); - if (this.AddressBookProfile != null) - hashCode = hashCode * 59 + this.AddressBookProfile.GetHashCode(); - if (this.BusinessUnitUserUnlock != null) - hashCode = hashCode * 59 + this.BusinessUnitUserUnlock.GetHashCode(); - if (this.BarcodeAccess != null) - hashCode = hashCode * 59 + this.BarcodeAccess.GetHashCode(); - if (this.CanAddVirtualStamps != null) - hashCode = hashCode * 59 + this.CanAddVirtualStamps.GetHashCode(); - if (this.CanApplyStaps != null) - hashCode = hashCode * 59 + this.CanApplyStaps.GetHashCode(); - if (this.ViewFlow != null) - hashCode = hashCode * 59 + this.ViewFlow.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/GuidKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/GuidKeyValueDTO.cs deleted file mode 100644 index e065cbf..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/GuidKeyValueDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Guid key value - /// - [DataContract] - public partial class GuidKeyValueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// ClassName. - /// Key. - /// Value. - public GuidKeyValueDTO(string className = default(string), string key = default(string), Guid? value = default(Guid?)) - { - this.ClassName = className; - this.Key = key; - this.Value = value; - } - - /// - /// ClassName - /// - /// ClassName - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Key - /// - /// Key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public Guid? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class GuidKeyValueDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as GuidKeyValueDTO); - } - - /// - /// Returns true if GuidKeyValueDTO instances are equal - /// - /// Instance of GuidKeyValueDTO to be compared - /// Boolean - public bool Equals(GuidKeyValueDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ImpersonateDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ImpersonateDTO.cs deleted file mode 100644 index 9dac737..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ImpersonateDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Impersonate information - /// - [DataContract] - public partial class ImpersonateDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Boolean that indicates if user can impersonate all users. - /// List of users who can be impersonated. - public ImpersonateDTO(bool? allUsers = default(bool?), List users = default(List)) - { - this.AllUsers = allUsers; - this.Users = users; - } - - /// - /// Boolean that indicates if user can impersonate all users - /// - /// Boolean that indicates if user can impersonate all users - [DataMember(Name="allUsers", EmitDefaultValue=false)] - public bool? AllUsers { get; set; } - - /// - /// List of users who can be impersonated - /// - /// List of users who can be impersonated - [DataMember(Name="users", EmitDefaultValue=false)] - public List Users { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ImpersonateDTO {\n"); - sb.Append(" AllUsers: ").Append(AllUsers).Append("\n"); - sb.Append(" Users: ").Append(Users).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ImpersonateDTO); - } - - /// - /// Returns true if ImpersonateDTO instances are equal - /// - /// Instance of ImpersonateDTO to be compared - /// Boolean - public bool Equals(ImpersonateDTO input) - { - if (input == null) - return false; - - return - ( - this.AllUsers == input.AllUsers || - (this.AllUsers != null && - this.AllUsers.Equals(input.AllUsers)) - ) && - ( - this.Users == input.Users || - this.Users != null && - this.Users.SequenceEqual(input.Users) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AllUsers != null) - hashCode = hashCode * 59 + this.AllUsers.GetHashCode(); - if (this.Users != null) - hashCode = hashCode * 59 + this.Users.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ImpersonateUserDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ImpersonateUserDTO.cs deleted file mode 100644 index 2472321..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ImpersonateUserDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// User who can be impersonated - /// - [DataContract] - public partial class ImpersonateUserDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// User. - /// External ID. - public ImpersonateUserDTO(UserSimpleDTO user = default(UserSimpleDTO), string externalId = default(string)) - { - this.User = user; - this.ExternalId = externalId; - } - - /// - /// User - /// - /// User - [DataMember(Name="user", EmitDefaultValue=false)] - public UserSimpleDTO User { get; set; } - - /// - /// External ID - /// - /// External ID - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ImpersonateUserDTO {\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ImpersonateUserDTO); - } - - /// - /// Returns true if ImpersonateUserDTO instances are equal - /// - /// Instance of ImpersonateUserDTO to be compared - /// Boolean - public bool Equals(ImpersonateUserDTO input) - { - if (input == null) - return false; - - return - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ImportantFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ImportantFieldDTO.cs deleted file mode 100644 index 9656950..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ImportantFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Important class - /// - [DataContract] - public partial class ImportantFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ImportantFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Important value. - public ImportantFieldDTO(bool? value = default(bool?), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "ImportantFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Important value - /// - /// Important value - [DataMember(Name="value", EmitDefaultValue=false)] - public bool? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ImportantFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ImportantFieldDTO); - } - - /// - /// Returns true if ImportantFieldDTO instances are equal - /// - /// Instance of ImportantFieldDTO to be compared - /// Boolean - public bool Equals(ImportantFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/InstructionFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/InstructionFieldDTO.cs deleted file mode 100644 index dbc9606..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/InstructionFieldDTO.cs +++ /dev/null @@ -1,115 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// InstructionFieldDTO - /// - [DataContract] - public partial class InstructionFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected InstructionFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - public InstructionFieldDTO(string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "InstructionFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InstructionFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InstructionFieldDTO); - } - - /// - /// Returns true if InstructionFieldDTO instances are equal - /// - /// Instance of InstructionFieldDTO to be compared - /// Boolean - public bool Equals(InstructionFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IntKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IntKeyValueDTO.cs deleted file mode 100644 index 4852be4..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IntKeyValueDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Int key value - /// - [DataContract] - public partial class IntKeyValueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// ClassName. - /// Key. - /// Value. - public IntKeyValueDTO(string className = default(string), string key = default(string), int? value = default(int?)) - { - this.ClassName = className; - this.Key = key; - this.Value = value; - } - - /// - /// ClassName - /// - /// ClassName - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Key - /// - /// Key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public int? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IntKeyValueDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IntKeyValueDTO); - } - - /// - /// Returns true if IntKeyValueDTO instances are equal - /// - /// Instance of IntKeyValueDTO to be compared - /// Boolean - public bool Equals(IntKeyValueDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxBusinessUnitDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxBusinessUnitDTO.cs deleted file mode 100644 index b991daf..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxBusinessUnitDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Ix Business Unit - /// - [DataContract] - public partial class IxBusinessUnitDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// Description. - /// Active. - /// Start date. - /// End date. - /// Possible values: 0: Company 1: Individual 2: Association 3: Office 4: Freelance . - /// Identifiers. - public IxBusinessUnitDTO(string id = default(string), string name = default(string), string description = default(string), bool? isActive = default(bool?), DateTime? activeFrom = default(DateTime?), DateTime? activeTo = default(DateTime?), int? type = default(int?), List identifiers = default(List)) - { - this.Id = id; - this.Name = name; - this.Description = description; - this.IsActive = isActive; - this.ActiveFrom = activeFrom; - this.ActiveTo = activeTo; - this.Type = type; - this.Identifiers = identifiers; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Active - /// - /// Active - [DataMember(Name="isActive", EmitDefaultValue=false)] - public bool? IsActive { get; set; } - - /// - /// Start date - /// - /// Start date - [DataMember(Name="activeFrom", EmitDefaultValue=false)] - public DateTime? ActiveFrom { get; set; } - - /// - /// End date - /// - /// End date - [DataMember(Name="activeTo", EmitDefaultValue=false)] - public DateTime? ActiveTo { get; set; } - - /// - /// Possible values: 0: Company 1: Individual 2: Association 3: Office 4: Freelance - /// - /// Possible values: 0: Company 1: Individual 2: Association 3: Office 4: Freelance - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Identifiers - /// - /// Identifiers - [DataMember(Name="identifiers", EmitDefaultValue=false)] - public List Identifiers { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxBusinessUnitDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IsActive: ").Append(IsActive).Append("\n"); - sb.Append(" ActiveFrom: ").Append(ActiveFrom).Append("\n"); - sb.Append(" ActiveTo: ").Append(ActiveTo).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Identifiers: ").Append(Identifiers).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxBusinessUnitDTO); - } - - /// - /// Returns true if IxBusinessUnitDTO instances are equal - /// - /// Instance of IxBusinessUnitDTO to be compared - /// Boolean - public bool Equals(IxBusinessUnitDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.IsActive == input.IsActive || - (this.IsActive != null && - this.IsActive.Equals(input.IsActive)) - ) && - ( - this.ActiveFrom == input.ActiveFrom || - (this.ActiveFrom != null && - this.ActiveFrom.Equals(input.ActiveFrom)) - ) && - ( - this.ActiveTo == input.ActiveTo || - (this.ActiveTo != null && - this.ActiveTo.Equals(input.ActiveTo)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Identifiers == input.Identifiers || - this.Identifiers != null && - this.Identifiers.SequenceEqual(input.Identifiers) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.IsActive != null) - hashCode = hashCode * 59 + this.IsActive.GetHashCode(); - if (this.ActiveFrom != null) - hashCode = hashCode * 59 + this.ActiveFrom.GetHashCode(); - if (this.ActiveTo != null) - hashCode = hashCode * 59 + this.ActiveTo.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Identifiers != null) - hashCode = hashCode * 59 + this.Identifiers.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxBusinessUnitIdentifierDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxBusinessUnitIdentifierDTO.cs deleted file mode 100644 index c2c0258..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxBusinessUnitIdentifierDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Ix Business Unit identifier - /// - [DataContract] - public partial class IxBusinessUnitIdentifierDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: CountryCode 1: VatCode 2: FiscalCode 3: IpaCode 4: OfficeCode . - /// Value. - public IxBusinessUnitIdentifierDTO(int? name = default(int?), string value = default(string)) - { - this.Name = name; - this.Value = value; - } - - /// - /// Possible values: 0: CountryCode 1: VatCode 2: FiscalCode 3: IpaCode 4: OfficeCode - /// - /// Possible values: 0: CountryCode 1: VatCode 2: FiscalCode 3: IpaCode 4: OfficeCode - [DataMember(Name="name", EmitDefaultValue=false)] - public int? Name { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxBusinessUnitIdentifierDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxBusinessUnitIdentifierDTO); - } - - /// - /// Returns true if IxBusinessUnitIdentifierDTO instances are equal - /// - /// Instance of IxBusinessUnitIdentifierDTO to be compared - /// Boolean - public bool Equals(IxBusinessUnitIdentifierDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxBusinessUnitSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxBusinessUnitSimpleDTO.cs deleted file mode 100644 index ac1ffb3..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxBusinessUnitSimpleDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Ix Business Unit with essential data - /// - [DataContract] - public partial class IxBusinessUnitSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - /// Vat code. - /// Fiscal code. - public IxBusinessUnitSimpleDTO(string id = default(string), string description = default(string), string vatCode = default(string), string fiscalCode = default(string)) - { - this.Id = id; - this.Description = description; - this.VatCode = vatCode; - this.FiscalCode = fiscalCode; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Vat code - /// - /// Vat code - [DataMember(Name="vatCode", EmitDefaultValue=false)] - public string VatCode { get; set; } - - /// - /// Fiscal code - /// - /// Fiscal code - [DataMember(Name="fiscalCode", EmitDefaultValue=false)] - public string FiscalCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxBusinessUnitSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" VatCode: ").Append(VatCode).Append("\n"); - sb.Append(" FiscalCode: ").Append(FiscalCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxBusinessUnitSimpleDTO); - } - - /// - /// Returns true if IxBusinessUnitSimpleDTO instances are equal - /// - /// Instance of IxBusinessUnitSimpleDTO to be compared - /// Boolean - public bool Equals(IxBusinessUnitSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.VatCode == input.VatCode || - (this.VatCode != null && - this.VatCode.Equals(input.VatCode)) - ) && - ( - this.FiscalCode == input.FiscalCode || - (this.FiscalCode != null && - this.FiscalCode.Equals(input.FiscalCode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.VatCode != null) - hashCode = hashCode * 59 + this.VatCode.GetHashCode(); - if (this.FiscalCode != null) - hashCode = hashCode * 59 + this.FiscalCode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxBusinessUnitUoDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxBusinessUnitUoDTO.cs deleted file mode 100644 index 32bbc14..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxBusinessUnitUoDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Ix Business Unit - /// - [DataContract] - public partial class IxBusinessUnitUoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// Description. - /// Active. - /// Start date. - /// End date. - public IxBusinessUnitUoDTO(string id = default(string), string name = default(string), string description = default(string), bool? isActive = default(bool?), DateTime? activeFrom = default(DateTime?), DateTime? activeTo = default(DateTime?)) - { - this.Id = id; - this.Name = name; - this.Description = description; - this.IsActive = isActive; - this.ActiveFrom = activeFrom; - this.ActiveTo = activeTo; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Active - /// - /// Active - [DataMember(Name="isActive", EmitDefaultValue=false)] - public bool? IsActive { get; set; } - - /// - /// Start date - /// - /// Start date - [DataMember(Name="activeFrom", EmitDefaultValue=false)] - public DateTime? ActiveFrom { get; set; } - - /// - /// End date - /// - /// End date - [DataMember(Name="activeTo", EmitDefaultValue=false)] - public DateTime? ActiveTo { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxBusinessUnitUoDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IsActive: ").Append(IsActive).Append("\n"); - sb.Append(" ActiveFrom: ").Append(ActiveFrom).Append("\n"); - sb.Append(" ActiveTo: ").Append(ActiveTo).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxBusinessUnitUoDTO); - } - - /// - /// Returns true if IxBusinessUnitUoDTO instances are equal - /// - /// Instance of IxBusinessUnitUoDTO to be compared - /// Boolean - public bool Equals(IxBusinessUnitUoDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.IsActive == input.IsActive || - (this.IsActive != null && - this.IsActive.Equals(input.IsActive)) - ) && - ( - this.ActiveFrom == input.ActiveFrom || - (this.ActiveFrom != null && - this.ActiveFrom.Equals(input.ActiveFrom)) - ) && - ( - this.ActiveTo == input.ActiveTo || - (this.ActiveTo != null && - this.ActiveTo.Equals(input.ActiveTo)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.IsActive != null) - hashCode = hashCode * 59 + this.IsActive.GetHashCode(); - if (this.ActiveFrom != null) - hashCode = hashCode * 59 + this.ActiveFrom.GetHashCode(); - if (this.ActiveTo != null) - hashCode = hashCode * 59 + this.ActiveTo.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxBusinessUnitUoSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxBusinessUnitUoSimpleDTO.cs deleted file mode 100644 index 733b6c3..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxBusinessUnitUoSimpleDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Ix Business Unit with essential data - /// - [DataContract] - public partial class IxBusinessUnitUoSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - public IxBusinessUnitUoSimpleDTO(string id = default(string), string description = default(string)) - { - this.Id = id; - this.Description = description; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxBusinessUnitUoSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxBusinessUnitUoSimpleDTO); - } - - /// - /// Returns true if IxBusinessUnitUoSimpleDTO instances are equal - /// - /// Instance of IxBusinessUnitUoSimpleDTO to be compared - /// Boolean - public bool Equals(IxBusinessUnitUoSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeBusinessUnitSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeBusinessUnitSettingsDTO.cs deleted file mode 100644 index e3301ec..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeBusinessUnitSettingsDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of IX-CE Business units settings - /// - [DataContract] - public partial class IxCeBusinessUnitSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Arxivar Business unit. - /// IX Business unit. - /// Boolean which is true if the configuration is active. - /// Credentials for business unit. - public IxCeBusinessUnitSettingsDTO(int? id = default(int?), BusinessUnitDTO arxBusinessUnit = default(BusinessUnitDTO), IxBusinessUnitSimpleDTO ixBusinessUnit = default(IxBusinessUnitSimpleDTO), bool? enabled = default(bool?), IxCredentialsDTO credentials = default(IxCredentialsDTO)) - { - this.Id = id; - this.ArxBusinessUnit = arxBusinessUnit; - this.IxBusinessUnit = ixBusinessUnit; - this.Enabled = enabled; - this.Credentials = credentials; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Arxivar Business unit - /// - /// Arxivar Business unit - [DataMember(Name="arxBusinessUnit", EmitDefaultValue=false)] - public BusinessUnitDTO ArxBusinessUnit { get; set; } - - /// - /// IX Business unit - /// - /// IX Business unit - [DataMember(Name="ixBusinessUnit", EmitDefaultValue=false)] - public IxBusinessUnitSimpleDTO IxBusinessUnit { get; set; } - - /// - /// Boolean which is true if the configuration is active - /// - /// Boolean which is true if the configuration is active - [DataMember(Name="enabled", EmitDefaultValue=false)] - public bool? Enabled { get; set; } - - /// - /// Credentials for business unit - /// - /// Credentials for business unit - [DataMember(Name="credentials", EmitDefaultValue=false)] - public IxCredentialsDTO Credentials { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxCeBusinessUnitSettingsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ArxBusinessUnit: ").Append(ArxBusinessUnit).Append("\n"); - sb.Append(" IxBusinessUnit: ").Append(IxBusinessUnit).Append("\n"); - sb.Append(" Enabled: ").Append(Enabled).Append("\n"); - sb.Append(" Credentials: ").Append(Credentials).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxCeBusinessUnitSettingsDTO); - } - - /// - /// Returns true if IxCeBusinessUnitSettingsDTO instances are equal - /// - /// Instance of IxCeBusinessUnitSettingsDTO to be compared - /// Boolean - public bool Equals(IxCeBusinessUnitSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ArxBusinessUnit == input.ArxBusinessUnit || - (this.ArxBusinessUnit != null && - this.ArxBusinessUnit.Equals(input.ArxBusinessUnit)) - ) && - ( - this.IxBusinessUnit == input.IxBusinessUnit || - (this.IxBusinessUnit != null && - this.IxBusinessUnit.Equals(input.IxBusinessUnit)) - ) && - ( - this.Enabled == input.Enabled || - (this.Enabled != null && - this.Enabled.Equals(input.Enabled)) - ) && - ( - this.Credentials == input.Credentials || - (this.Credentials != null && - this.Credentials.Equals(input.Credentials)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ArxBusinessUnit != null) - hashCode = hashCode * 59 + this.ArxBusinessUnit.GetHashCode(); - if (this.IxBusinessUnit != null) - hashCode = hashCode * 59 + this.IxBusinessUnit.GetHashCode(); - if (this.Enabled != null) - hashCode = hashCode * 59 + this.Enabled.GetHashCode(); - if (this.Credentials != null) - hashCode = hashCode * 59 + this.Credentials.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeCloneDestinationOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeCloneDestinationOptionsDTO.cs deleted file mode 100644 index 83a2f31..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeCloneDestinationOptionsDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of clone destination options for IX-CE - /// - [DataContract] - public partial class IxCeCloneDestinationOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document Type identifier. - /// Arxivar Business unit. - /// IX Business units UO. - public IxCeCloneDestinationOptionsDTO(int? ruleId = default(int?), string businessUnitCode = default(string), string ixBusinessUnitUoCode = default(string)) - { - this.RuleId = ruleId; - this.BusinessUnitCode = businessUnitCode; - this.IxBusinessUnitUoCode = ixBusinessUnitUoCode; - } - - /// - /// Document Type identifier - /// - /// Document Type identifier - [DataMember(Name="ruleId", EmitDefaultValue=false)] - public int? RuleId { get; set; } - - /// - /// Arxivar Business unit - /// - /// Arxivar Business unit - [DataMember(Name="businessUnitCode", EmitDefaultValue=false)] - public string BusinessUnitCode { get; set; } - - /// - /// IX Business units UO - /// - /// IX Business units UO - [DataMember(Name="ixBusinessUnitUoCode", EmitDefaultValue=false)] - public string IxBusinessUnitUoCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxCeCloneDestinationOptionsDTO {\n"); - sb.Append(" RuleId: ").Append(RuleId).Append("\n"); - sb.Append(" BusinessUnitCode: ").Append(BusinessUnitCode).Append("\n"); - sb.Append(" IxBusinessUnitUoCode: ").Append(IxBusinessUnitUoCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxCeCloneDestinationOptionsDTO); - } - - /// - /// Returns true if IxCeCloneDestinationOptionsDTO instances are equal - /// - /// Instance of IxCeCloneDestinationOptionsDTO to be compared - /// Boolean - public bool Equals(IxCeCloneDestinationOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.RuleId == input.RuleId || - (this.RuleId != null && - this.RuleId.Equals(input.RuleId)) - ) && - ( - this.BusinessUnitCode == input.BusinessUnitCode || - (this.BusinessUnitCode != null && - this.BusinessUnitCode.Equals(input.BusinessUnitCode)) - ) && - ( - this.IxBusinessUnitUoCode == input.IxBusinessUnitUoCode || - (this.IxBusinessUnitUoCode != null && - this.IxBusinessUnitUoCode.Equals(input.IxBusinessUnitUoCode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.RuleId != null) - hashCode = hashCode * 59 + this.RuleId.GetHashCode(); - if (this.BusinessUnitCode != null) - hashCode = hashCode * 59 + this.BusinessUnitCode.GetHashCode(); - if (this.IxBusinessUnitUoCode != null) - hashCode = hashCode * 59 + this.IxBusinessUnitUoCode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeCloneOptionsByBusinessUnitDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeCloneOptionsByBusinessUnitDTO.cs deleted file mode 100644 index 704eca2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeCloneOptionsByBusinessUnitDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for cloning settings by business unit for IX-CE - /// - [DataContract] - public partial class IxCeCloneOptionsByBusinessUnitDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Business unit source. - /// Destination options. - public IxCeCloneOptionsByBusinessUnitDTO(string originalBusinessUnitCode = default(string), List destinationOptions = default(List)) - { - this.OriginalBusinessUnitCode = originalBusinessUnitCode; - this.DestinationOptions = destinationOptions; - } - - /// - /// Business unit source - /// - /// Business unit source - [DataMember(Name="originalBusinessUnitCode", EmitDefaultValue=false)] - public string OriginalBusinessUnitCode { get; set; } - - /// - /// Destination options - /// - /// Destination options - [DataMember(Name="destinationOptions", EmitDefaultValue=false)] - public List DestinationOptions { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxCeCloneOptionsByBusinessUnitDTO {\n"); - sb.Append(" OriginalBusinessUnitCode: ").Append(OriginalBusinessUnitCode).Append("\n"); - sb.Append(" DestinationOptions: ").Append(DestinationOptions).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxCeCloneOptionsByBusinessUnitDTO); - } - - /// - /// Returns true if IxCeCloneOptionsByBusinessUnitDTO instances are equal - /// - /// Instance of IxCeCloneOptionsByBusinessUnitDTO to be compared - /// Boolean - public bool Equals(IxCeCloneOptionsByBusinessUnitDTO input) - { - if (input == null) - return false; - - return - ( - this.OriginalBusinessUnitCode == input.OriginalBusinessUnitCode || - (this.OriginalBusinessUnitCode != null && - this.OriginalBusinessUnitCode.Equals(input.OriginalBusinessUnitCode)) - ) && - ( - this.DestinationOptions == input.DestinationOptions || - this.DestinationOptions != null && - this.DestinationOptions.SequenceEqual(input.DestinationOptions) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.OriginalBusinessUnitCode != null) - hashCode = hashCode * 59 + this.OriginalBusinessUnitCode.GetHashCode(); - if (this.DestinationOptions != null) - hashCode = hashCode * 59 + this.DestinationOptions.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeCloneSendingSettingsByBusinessUnitResponseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeCloneSendingSettingsByBusinessUnitResponseDTO.cs deleted file mode 100644 index 998a1e2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeCloneSendingSettingsByBusinessUnitResponseDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for business unit settings clone result in IX-CE - /// - [DataContract] - public partial class IxCeCloneSendingSettingsByBusinessUnitResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of clone process in progress. - public IxCeCloneSendingSettingsByBusinessUnitResponseDTO(string cloneRequestId = default(string)) - { - this.CloneRequestId = cloneRequestId; - } - - /// - /// Identifier of clone process in progress - /// - /// Identifier of clone process in progress - [DataMember(Name="cloneRequestId", EmitDefaultValue=false)] - public string CloneRequestId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxCeCloneSendingSettingsByBusinessUnitResponseDTO {\n"); - sb.Append(" CloneRequestId: ").Append(CloneRequestId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxCeCloneSendingSettingsByBusinessUnitResponseDTO); - } - - /// - /// Returns true if IxCeCloneSendingSettingsByBusinessUnitResponseDTO instances are equal - /// - /// Instance of IxCeCloneSendingSettingsByBusinessUnitResponseDTO to be compared - /// Boolean - public bool Equals(IxCeCloneSendingSettingsByBusinessUnitResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.CloneRequestId == input.CloneRequestId || - (this.CloneRequestId != null && - this.CloneRequestId.Equals(input.CloneRequestId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CloneRequestId != null) - hashCode = hashCode * 59 + this.CloneRequestId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeNotificationDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeNotificationDTO.cs deleted file mode 100644 index 42f77eb..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeNotificationDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of IX-CE notifications - /// - [DataContract] - public partial class IxCeNotificationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: TakeChargeError 5: IxceTakeCharge 6: ToValidate 7: Validated 8: InError 9: Discarded 10: Preserved . - /// Label. - /// Description. - public IxCeNotificationDTO(int? type = default(int?), string label = default(string), string description = default(string)) - { - this.Type = type; - this.Label = label; - this.Description = description; - } - - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: TakeChargeError 5: IxceTakeCharge 6: ToValidate 7: Validated 8: InError 9: Discarded 10: Preserved - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: TakeChargeError 5: IxceTakeCharge 6: ToValidate 7: Validated 8: InError 9: Discarded 10: Preserved - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxCeNotificationDTO {\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxCeNotificationDTO); - } - - /// - /// Returns true if IxCeNotificationDTO instances are equal - /// - /// Instance of IxCeNotificationDTO to be compared - /// Boolean - public bool Equals(IxCeNotificationDTO input) - { - if (input == null) - return false; - - return - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeNotificationSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeNotificationSettingsDTO.cs deleted file mode 100644 index 1aec8fe..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeNotificationSettingsDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of IX-CE notification settings - /// - [DataContract] - public partial class IxCeNotificationSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Notification type. - /// Arxivar State. - public IxCeNotificationSettingsDTO(int? id = default(int?), IxCeNotificationDTO type = default(IxCeNotificationDTO), StateSimpleDTO state = default(StateSimpleDTO)) - { - this.Id = id; - this.Type = type; - this.State = state; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Notification type - /// - /// Notification type - [DataMember(Name="type", EmitDefaultValue=false)] - public IxCeNotificationDTO Type { get; set; } - - /// - /// Arxivar State - /// - /// Arxivar State - [DataMember(Name="state", EmitDefaultValue=false)] - public StateSimpleDTO State { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxCeNotificationSettingsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxCeNotificationSettingsDTO); - } - - /// - /// Returns true if IxCeNotificationSettingsDTO instances are equal - /// - /// Instance of IxCeNotificationSettingsDTO to be compared - /// Boolean - public bool Equals(IxCeNotificationSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeSendingSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeSendingSettingsDTO.cs deleted file mode 100644 index 8ff2aae..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeSendingSettingsDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of IX-CE sending settings - /// - [DataContract] - public partial class IxCeSendingSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Arxivar Business unit code. - /// Priority. - /// Arxivar Document type. - /// Search. - /// Boolean which is true if the configuration is active. - /// Has custome credentials. - public IxCeSendingSettingsDTO(int? id = default(int?), string businessUnitCode = default(string), int? priority = default(int?), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), FindSimpleDTO search = default(FindSimpleDTO), bool? enabled = default(bool?), bool? hasCustomCredentials = default(bool?)) - { - this.Id = id; - this.BusinessUnitCode = businessUnitCode; - this.Priority = priority; - this.DocumentType = documentType; - this.Search = search; - this.Enabled = enabled; - this.HasCustomCredentials = hasCustomCredentials; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Arxivar Business unit code - /// - /// Arxivar Business unit code - [DataMember(Name="businessUnitCode", EmitDefaultValue=false)] - public string BusinessUnitCode { get; set; } - - /// - /// Priority - /// - /// Priority - [DataMember(Name="priority", EmitDefaultValue=false)] - public int? Priority { get; set; } - - /// - /// Arxivar Document type - /// - /// Arxivar Document type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Search - /// - /// Search - [DataMember(Name="search", EmitDefaultValue=false)] - public FindSimpleDTO Search { get; set; } - - /// - /// Boolean which is true if the configuration is active - /// - /// Boolean which is true if the configuration is active - [DataMember(Name="enabled", EmitDefaultValue=false)] - public bool? Enabled { get; set; } - - /// - /// Has custome credentials - /// - /// Has custome credentials - [DataMember(Name="hasCustomCredentials", EmitDefaultValue=false)] - public bool? HasCustomCredentials { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxCeSendingSettingsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" BusinessUnitCode: ").Append(BusinessUnitCode).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Search: ").Append(Search).Append("\n"); - sb.Append(" Enabled: ").Append(Enabled).Append("\n"); - sb.Append(" HasCustomCredentials: ").Append(HasCustomCredentials).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxCeSendingSettingsDTO); - } - - /// - /// Returns true if IxCeSendingSettingsDTO instances are equal - /// - /// Instance of IxCeSendingSettingsDTO to be compared - /// Boolean - public bool Equals(IxCeSendingSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.BusinessUnitCode == input.BusinessUnitCode || - (this.BusinessUnitCode != null && - this.BusinessUnitCode.Equals(input.BusinessUnitCode)) - ) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Search == input.Search || - (this.Search != null && - this.Search.Equals(input.Search)) - ) && - ( - this.Enabled == input.Enabled || - (this.Enabled != null && - this.Enabled.Equals(input.Enabled)) - ) && - ( - this.HasCustomCredentials == input.HasCustomCredentials || - (this.HasCustomCredentials != null && - this.HasCustomCredentials.Equals(input.HasCustomCredentials)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.BusinessUnitCode != null) - hashCode = hashCode * 59 + this.BusinessUnitCode.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Search != null) - hashCode = hashCode * 59 + this.Search.GetHashCode(); - if (this.Enabled != null) - hashCode = hashCode * 59 + this.Enabled.GetHashCode(); - if (this.HasCustomCredentials != null) - hashCode = hashCode * 59 + this.HasCustomCredentials.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeSendingSettingsDetailDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeSendingSettingsDetailDTO.cs deleted file mode 100644 index 5568016..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeSendingSettingsDetailDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of IX-CE sending settings details - /// - [DataContract] - public partial class IxCeSendingSettingsDetailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// IX Business unit UO. - /// IX Document type. - /// Fields mapping. - /// Credentials for sending rule. - public IxCeSendingSettingsDetailDTO(IxBusinessUnitUoSimpleDTO ixBusinessUnitUo = default(IxBusinessUnitUoSimpleDTO), IxDocumentTypeSimpleDTO ixDocumentType = default(IxDocumentTypeSimpleDTO), List mapping = default(List), IxCredentialsDTO credentials = default(IxCredentialsDTO)) - { - this.IxBusinessUnitUo = ixBusinessUnitUo; - this.IxDocumentType = ixDocumentType; - this.Mapping = mapping; - this.Credentials = credentials; - } - - /// - /// IX Business unit UO - /// - /// IX Business unit UO - [DataMember(Name="ixBusinessUnitUo", EmitDefaultValue=false)] - public IxBusinessUnitUoSimpleDTO IxBusinessUnitUo { get; set; } - - /// - /// IX Document type - /// - /// IX Document type - [DataMember(Name="ixDocumentType", EmitDefaultValue=false)] - public IxDocumentTypeSimpleDTO IxDocumentType { get; set; } - - /// - /// Fields mapping - /// - /// Fields mapping - [DataMember(Name="mapping", EmitDefaultValue=false)] - public List Mapping { get; set; } - - /// - /// Credentials for sending rule - /// - /// Credentials for sending rule - [DataMember(Name="credentials", EmitDefaultValue=false)] - public IxCredentialsDTO Credentials { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxCeSendingSettingsDetailDTO {\n"); - sb.Append(" IxBusinessUnitUo: ").Append(IxBusinessUnitUo).Append("\n"); - sb.Append(" IxDocumentType: ").Append(IxDocumentType).Append("\n"); - sb.Append(" Mapping: ").Append(Mapping).Append("\n"); - sb.Append(" Credentials: ").Append(Credentials).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxCeSendingSettingsDetailDTO); - } - - /// - /// Returns true if IxCeSendingSettingsDetailDTO instances are equal - /// - /// Instance of IxCeSendingSettingsDetailDTO to be compared - /// Boolean - public bool Equals(IxCeSendingSettingsDetailDTO input) - { - if (input == null) - return false; - - return - ( - this.IxBusinessUnitUo == input.IxBusinessUnitUo || - (this.IxBusinessUnitUo != null && - this.IxBusinessUnitUo.Equals(input.IxBusinessUnitUo)) - ) && - ( - this.IxDocumentType == input.IxDocumentType || - (this.IxDocumentType != null && - this.IxDocumentType.Equals(input.IxDocumentType)) - ) && - ( - this.Mapping == input.Mapping || - this.Mapping != null && - this.Mapping.SequenceEqual(input.Mapping) - ) && - ( - this.Credentials == input.Credentials || - (this.Credentials != null && - this.Credentials.Equals(input.Credentials)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IxBusinessUnitUo != null) - hashCode = hashCode * 59 + this.IxBusinessUnitUo.GetHashCode(); - if (this.IxDocumentType != null) - hashCode = hashCode * 59 + this.IxDocumentType.GetHashCode(); - if (this.Mapping != null) - hashCode = hashCode * 59 + this.Mapping.GetHashCode(); - if (this.Credentials != null) - hashCode = hashCode * 59 + this.Credentials.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeSendingSettingsMappingDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeSendingSettingsMappingDTO.cs deleted file mode 100644 index c6ef72f..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCeSendingSettingsMappingDTO.cs +++ /dev/null @@ -1,312 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of field mapping for IX-CE sending settings - /// - [DataContract] - public partial class IxCeSendingSettingsMappingDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// IX field name. - /// IX field description. - /// Arxivar field. - /// Boolean which is true if the configuration is required (Ignored in update). - /// Boolean which is true if the configuration is not editable (Ignored in update). - /// Possible values: 0: String 1: Int16 2: Int32 3: Int64 4: Datetime 5: Boolean 6: Double 7: Date . - /// Boolean which is true if field has default value. - /// Default string value. - /// Default datetime value. - /// Default boolean value. - /// Default double value. - /// Metadata is a multivalue (Ignored in update). - public IxCeSendingSettingsMappingDTO(string name = default(string), string description = default(string), FieldManagementDTO arxField = default(FieldManagementDTO), bool? required = default(bool?), bool? readOnly = default(bool?), int? fieldType = default(int?), bool? useDefault = default(bool?), string defaultStringValue = default(string), DateTime? defaultDateTimeValue = default(DateTime?), bool? defaultBooleanValue = default(bool?), double? defaultDoubleValue = default(double?), bool? multivalue = default(bool?)) - { - this.Name = name; - this.Description = description; - this.ArxField = arxField; - this.Required = required; - this.ReadOnly = readOnly; - this.FieldType = fieldType; - this.UseDefault = useDefault; - this.DefaultStringValue = defaultStringValue; - this.DefaultDateTimeValue = defaultDateTimeValue; - this.DefaultBooleanValue = defaultBooleanValue; - this.DefaultDoubleValue = defaultDoubleValue; - this.Multivalue = multivalue; - } - - /// - /// IX field name - /// - /// IX field name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// IX field description - /// - /// IX field description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Arxivar field - /// - /// Arxivar field - [DataMember(Name="arxField", EmitDefaultValue=false)] - public FieldManagementDTO ArxField { get; set; } - - /// - /// Boolean which is true if the configuration is required (Ignored in update) - /// - /// Boolean which is true if the configuration is required (Ignored in update) - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Boolean which is true if the configuration is not editable (Ignored in update) - /// - /// Boolean which is true if the configuration is not editable (Ignored in update) - [DataMember(Name="readOnly", EmitDefaultValue=false)] - public bool? ReadOnly { get; set; } - - /// - /// Possible values: 0: String 1: Int16 2: Int32 3: Int64 4: Datetime 5: Boolean 6: Double 7: Date - /// - /// Possible values: 0: String 1: Int16 2: Int32 3: Int64 4: Datetime 5: Boolean 6: Double 7: Date - [DataMember(Name="fieldType", EmitDefaultValue=false)] - public int? FieldType { get; set; } - - /// - /// Boolean which is true if field has default value - /// - /// Boolean which is true if field has default value - [DataMember(Name="useDefault", EmitDefaultValue=false)] - public bool? UseDefault { get; set; } - - /// - /// Default string value - /// - /// Default string value - [DataMember(Name="defaultStringValue", EmitDefaultValue=false)] - public string DefaultStringValue { get; set; } - - /// - /// Default datetime value - /// - /// Default datetime value - [DataMember(Name="defaultDateTimeValue", EmitDefaultValue=false)] - public DateTime? DefaultDateTimeValue { get; set; } - - /// - /// Default boolean value - /// - /// Default boolean value - [DataMember(Name="defaultBooleanValue", EmitDefaultValue=false)] - public bool? DefaultBooleanValue { get; set; } - - /// - /// Default double value - /// - /// Default double value - [DataMember(Name="defaultDoubleValue", EmitDefaultValue=false)] - public double? DefaultDoubleValue { get; set; } - - /// - /// Metadata is a multivalue (Ignored in update) - /// - /// Metadata is a multivalue (Ignored in update) - [DataMember(Name="multivalue", EmitDefaultValue=false)] - public bool? Multivalue { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxCeSendingSettingsMappingDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ArxField: ").Append(ArxField).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" ReadOnly: ").Append(ReadOnly).Append("\n"); - sb.Append(" FieldType: ").Append(FieldType).Append("\n"); - sb.Append(" UseDefault: ").Append(UseDefault).Append("\n"); - sb.Append(" DefaultStringValue: ").Append(DefaultStringValue).Append("\n"); - sb.Append(" DefaultDateTimeValue: ").Append(DefaultDateTimeValue).Append("\n"); - sb.Append(" DefaultBooleanValue: ").Append(DefaultBooleanValue).Append("\n"); - sb.Append(" DefaultDoubleValue: ").Append(DefaultDoubleValue).Append("\n"); - sb.Append(" Multivalue: ").Append(Multivalue).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxCeSendingSettingsMappingDTO); - } - - /// - /// Returns true if IxCeSendingSettingsMappingDTO instances are equal - /// - /// Instance of IxCeSendingSettingsMappingDTO to be compared - /// Boolean - public bool Equals(IxCeSendingSettingsMappingDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.ArxField == input.ArxField || - (this.ArxField != null && - this.ArxField.Equals(input.ArxField)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.ReadOnly == input.ReadOnly || - (this.ReadOnly != null && - this.ReadOnly.Equals(input.ReadOnly)) - ) && - ( - this.FieldType == input.FieldType || - (this.FieldType != null && - this.FieldType.Equals(input.FieldType)) - ) && - ( - this.UseDefault == input.UseDefault || - (this.UseDefault != null && - this.UseDefault.Equals(input.UseDefault)) - ) && - ( - this.DefaultStringValue == input.DefaultStringValue || - (this.DefaultStringValue != null && - this.DefaultStringValue.Equals(input.DefaultStringValue)) - ) && - ( - this.DefaultDateTimeValue == input.DefaultDateTimeValue || - (this.DefaultDateTimeValue != null && - this.DefaultDateTimeValue.Equals(input.DefaultDateTimeValue)) - ) && - ( - this.DefaultBooleanValue == input.DefaultBooleanValue || - (this.DefaultBooleanValue != null && - this.DefaultBooleanValue.Equals(input.DefaultBooleanValue)) - ) && - ( - this.DefaultDoubleValue == input.DefaultDoubleValue || - (this.DefaultDoubleValue != null && - this.DefaultDoubleValue.Equals(input.DefaultDoubleValue)) - ) && - ( - this.Multivalue == input.Multivalue || - (this.Multivalue != null && - this.Multivalue.Equals(input.Multivalue)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ArxField != null) - hashCode = hashCode * 59 + this.ArxField.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.ReadOnly != null) - hashCode = hashCode * 59 + this.ReadOnly.GetHashCode(); - if (this.FieldType != null) - hashCode = hashCode * 59 + this.FieldType.GetHashCode(); - if (this.UseDefault != null) - hashCode = hashCode * 59 + this.UseDefault.GetHashCode(); - if (this.DefaultStringValue != null) - hashCode = hashCode * 59 + this.DefaultStringValue.GetHashCode(); - if (this.DefaultDateTimeValue != null) - hashCode = hashCode * 59 + this.DefaultDateTimeValue.GetHashCode(); - if (this.DefaultBooleanValue != null) - hashCode = hashCode * 59 + this.DefaultBooleanValue.GetHashCode(); - if (this.DefaultDoubleValue != null) - hashCode = hashCode * 59 + this.DefaultDoubleValue.GetHashCode(); - if (this.Multivalue != null) - hashCode = hashCode * 59 + this.Multivalue.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCredentialsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCredentialsDTO.cs deleted file mode 100644 index 46763ab..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCredentialsDTO.cs +++ /dev/null @@ -1,261 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Ix credentials - /// - [DataContract] - public partial class IxCredentialsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Possible values: 0: IxFe 1: IxCe . - /// Possible values: 0: Global 1: BusinessUnit 2: Rule . - /// Service endpoint. - /// Username. - /// Password for insert/update. - /// Boolean representing whether the password is stored. - /// Business unit code. - /// Sendind settings rule identifier. - public IxCredentialsDTO(int? id = default(int?), int? serviceType = default(int?), int? context = default(int?), string endpoint = default(string), string username = default(string), string password = default(string), bool? hasPassword = default(bool?), string businessUnitCode = default(string), int? ruleId = default(int?)) - { - this.Id = id; - this.ServiceType = serviceType; - this.Context = context; - this.Endpoint = endpoint; - this.Username = username; - this.Password = password; - this.HasPassword = hasPassword; - this.BusinessUnitCode = businessUnitCode; - this.RuleId = ruleId; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Possible values: 0: IxFe 1: IxCe - /// - /// Possible values: 0: IxFe 1: IxCe - [DataMember(Name="serviceType", EmitDefaultValue=false)] - public int? ServiceType { get; set; } - - /// - /// Possible values: 0: Global 1: BusinessUnit 2: Rule - /// - /// Possible values: 0: Global 1: BusinessUnit 2: Rule - [DataMember(Name="context", EmitDefaultValue=false)] - public int? Context { get; set; } - - /// - /// Service endpoint - /// - /// Service endpoint - [DataMember(Name="endpoint", EmitDefaultValue=false)] - public string Endpoint { get; set; } - - /// - /// Username - /// - /// Username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password for insert/update - /// - /// Password for insert/update - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Boolean representing whether the password is stored - /// - /// Boolean representing whether the password is stored - [DataMember(Name="hasPassword", EmitDefaultValue=false)] - public bool? HasPassword { get; set; } - - /// - /// Business unit code - /// - /// Business unit code - [DataMember(Name="businessUnitCode", EmitDefaultValue=false)] - public string BusinessUnitCode { get; set; } - - /// - /// Sendind settings rule identifier - /// - /// Sendind settings rule identifier - [DataMember(Name="ruleId", EmitDefaultValue=false)] - public int? RuleId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxCredentialsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ServiceType: ").Append(ServiceType).Append("\n"); - sb.Append(" Context: ").Append(Context).Append("\n"); - sb.Append(" Endpoint: ").Append(Endpoint).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" HasPassword: ").Append(HasPassword).Append("\n"); - sb.Append(" BusinessUnitCode: ").Append(BusinessUnitCode).Append("\n"); - sb.Append(" RuleId: ").Append(RuleId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxCredentialsDTO); - } - - /// - /// Returns true if IxCredentialsDTO instances are equal - /// - /// Instance of IxCredentialsDTO to be compared - /// Boolean - public bool Equals(IxCredentialsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ServiceType == input.ServiceType || - (this.ServiceType != null && - this.ServiceType.Equals(input.ServiceType)) - ) && - ( - this.Context == input.Context || - (this.Context != null && - this.Context.Equals(input.Context)) - ) && - ( - this.Endpoint == input.Endpoint || - (this.Endpoint != null && - this.Endpoint.Equals(input.Endpoint)) - ) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.HasPassword == input.HasPassword || - (this.HasPassword != null && - this.HasPassword.Equals(input.HasPassword)) - ) && - ( - this.BusinessUnitCode == input.BusinessUnitCode || - (this.BusinessUnitCode != null && - this.BusinessUnitCode.Equals(input.BusinessUnitCode)) - ) && - ( - this.RuleId == input.RuleId || - (this.RuleId != null && - this.RuleId.Equals(input.RuleId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ServiceType != null) - hashCode = hashCode * 59 + this.ServiceType.GetHashCode(); - if (this.Context != null) - hashCode = hashCode * 59 + this.Context.GetHashCode(); - if (this.Endpoint != null) - hashCode = hashCode * 59 + this.Endpoint.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.HasPassword != null) - hashCode = hashCode * 59 + this.HasPassword.GetHashCode(); - if (this.BusinessUnitCode != null) - hashCode = hashCode * 59 + this.BusinessUnitCode.GetHashCode(); - if (this.RuleId != null) - hashCode = hashCode * 59 + this.RuleId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCredentialsForRequestDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCredentialsForRequestDTO.cs deleted file mode 100644 index 777242e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCredentialsForRequestDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of credentials for IX Services request - /// - [DataContract] - public partial class IxCredentialsForRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Saved credentials id. - /// Endpoint. - /// Username. - /// Password. - public IxCredentialsForRequestDTO(int? credentialsId = default(int?), string endpoint = default(string), string username = default(string), string password = default(string)) - { - this.CredentialsId = credentialsId; - this.Endpoint = endpoint; - this.Username = username; - this.Password = password; - } - - /// - /// Saved credentials id - /// - /// Saved credentials id - [DataMember(Name="credentialsId", EmitDefaultValue=false)] - public int? CredentialsId { get; set; } - - /// - /// Endpoint - /// - /// Endpoint - [DataMember(Name="endpoint", EmitDefaultValue=false)] - public string Endpoint { get; set; } - - /// - /// Username - /// - /// Username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxCredentialsForRequestDTO {\n"); - sb.Append(" CredentialsId: ").Append(CredentialsId).Append("\n"); - sb.Append(" Endpoint: ").Append(Endpoint).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxCredentialsForRequestDTO); - } - - /// - /// Returns true if IxCredentialsForRequestDTO instances are equal - /// - /// Instance of IxCredentialsForRequestDTO to be compared - /// Boolean - public bool Equals(IxCredentialsForRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.CredentialsId == input.CredentialsId || - (this.CredentialsId != null && - this.CredentialsId.Equals(input.CredentialsId)) - ) && - ( - this.Endpoint == input.Endpoint || - (this.Endpoint != null && - this.Endpoint.Equals(input.Endpoint)) - ) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CredentialsId != null) - hashCode = hashCode * 59 + this.CredentialsId.GetHashCode(); - if (this.Endpoint != null) - hashCode = hashCode * 59 + this.Endpoint.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCredentialsTreeDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCredentialsTreeDTO.cs deleted file mode 100644 index 7b4ed87..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxCredentialsTreeDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of IX credentials with parents - /// - [DataContract] - public partial class IxCredentialsTreeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Credentials. - /// Parent credentials. - public IxCredentialsTreeDTO(IxCredentialsDTO credentials = default(IxCredentialsDTO), IxCredentialsTreeDTO parentCredentials = default(IxCredentialsTreeDTO)) - { - this.Credentials = credentials; - this.ParentCredentials = parentCredentials; - } - - /// - /// Credentials - /// - /// Credentials - [DataMember(Name="credentials", EmitDefaultValue=false)] - public IxCredentialsDTO Credentials { get; set; } - - /// - /// Parent credentials - /// - /// Parent credentials - [DataMember(Name="parentCredentials", EmitDefaultValue=false)] - public IxCredentialsTreeDTO ParentCredentials { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxCredentialsTreeDTO {\n"); - sb.Append(" Credentials: ").Append(Credentials).Append("\n"); - sb.Append(" ParentCredentials: ").Append(ParentCredentials).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxCredentialsTreeDTO); - } - - /// - /// Returns true if IxCredentialsTreeDTO instances are equal - /// - /// Instance of IxCredentialsTreeDTO to be compared - /// Boolean - public bool Equals(IxCredentialsTreeDTO input) - { - if (input == null) - return false; - - return - ( - this.Credentials == input.Credentials || - (this.Credentials != null && - this.Credentials.Equals(input.Credentials)) - ) && - ( - this.ParentCredentials == input.ParentCredentials || - (this.ParentCredentials != null && - this.ParentCredentials.Equals(input.ParentCredentials)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Credentials != null) - hashCode = hashCode * 59 + this.Credentials.GetHashCode(); - if (this.ParentCredentials != null) - hashCode = hashCode * 59 + this.ParentCredentials.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeDTO.cs deleted file mode 100644 index a2c8440..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeDTO.cs +++ /dev/null @@ -1,312 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Ix Document type - /// - [DataContract] - public partial class IxDocumentTypeDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - /// Extra info. - /// Retention cron expression. - /// Conservation cron expression. - /// Is in use. - /// Acts. - /// Is system. - /// Is configured. - /// Model types. - /// Is numeration control enabled. - /// Possible values: 0: Document 1: AdministrativeDocument 2: Folder . - public IxDocumentTypeDTO(string id = default(string), string description = default(string), string extraInfo = default(string), string retentionCronExpression = default(string), string conservationCronExpression = default(string), bool? isInUse = default(bool?), List acts = default(List), bool? isSystem = default(bool?), bool? isConfigured = default(bool?), List modelTypes = default(List), bool? isNumerationControlEnabled = default(bool?), int? category = default(int?)) - { - this.Id = id; - this.Description = description; - this.ExtraInfo = extraInfo; - this.RetentionCronExpression = retentionCronExpression; - this.ConservationCronExpression = conservationCronExpression; - this.IsInUse = isInUse; - this.Acts = acts; - this.IsSystem = isSystem; - this.IsConfigured = isConfigured; - this.ModelTypes = modelTypes; - this.IsNumerationControlEnabled = isNumerationControlEnabled; - this.Category = category; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Extra info - /// - /// Extra info - [DataMember(Name="extraInfo", EmitDefaultValue=false)] - public string ExtraInfo { get; set; } - - /// - /// Retention cron expression - /// - /// Retention cron expression - [DataMember(Name="retentionCronExpression", EmitDefaultValue=false)] - public string RetentionCronExpression { get; set; } - - /// - /// Conservation cron expression - /// - /// Conservation cron expression - [DataMember(Name="conservationCronExpression", EmitDefaultValue=false)] - public string ConservationCronExpression { get; set; } - - /// - /// Is in use - /// - /// Is in use - [DataMember(Name="isInUse", EmitDefaultValue=false)] - public bool? IsInUse { get; set; } - - /// - /// Acts - /// - /// Acts - [DataMember(Name="acts", EmitDefaultValue=false)] - public List Acts { get; set; } - - /// - /// Is system - /// - /// Is system - [DataMember(Name="isSystem", EmitDefaultValue=false)] - public bool? IsSystem { get; set; } - - /// - /// Is configured - /// - /// Is configured - [DataMember(Name="isConfigured", EmitDefaultValue=false)] - public bool? IsConfigured { get; set; } - - /// - /// Model types - /// - /// Model types - [DataMember(Name="modelTypes", EmitDefaultValue=false)] - public List ModelTypes { get; set; } - - /// - /// Is numeration control enabled - /// - /// Is numeration control enabled - [DataMember(Name="isNumerationControlEnabled", EmitDefaultValue=false)] - public bool? IsNumerationControlEnabled { get; set; } - - /// - /// Possible values: 0: Document 1: AdministrativeDocument 2: Folder - /// - /// Possible values: 0: Document 1: AdministrativeDocument 2: Folder - [DataMember(Name="category", EmitDefaultValue=false)] - public int? Category { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxDocumentTypeDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExtraInfo: ").Append(ExtraInfo).Append("\n"); - sb.Append(" RetentionCronExpression: ").Append(RetentionCronExpression).Append("\n"); - sb.Append(" ConservationCronExpression: ").Append(ConservationCronExpression).Append("\n"); - sb.Append(" IsInUse: ").Append(IsInUse).Append("\n"); - sb.Append(" Acts: ").Append(Acts).Append("\n"); - sb.Append(" IsSystem: ").Append(IsSystem).Append("\n"); - sb.Append(" IsConfigured: ").Append(IsConfigured).Append("\n"); - sb.Append(" ModelTypes: ").Append(ModelTypes).Append("\n"); - sb.Append(" IsNumerationControlEnabled: ").Append(IsNumerationControlEnabled).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxDocumentTypeDTO); - } - - /// - /// Returns true if IxDocumentTypeDTO instances are equal - /// - /// Instance of IxDocumentTypeDTO to be compared - /// Boolean - public bool Equals(IxDocumentTypeDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.ExtraInfo == input.ExtraInfo || - (this.ExtraInfo != null && - this.ExtraInfo.Equals(input.ExtraInfo)) - ) && - ( - this.RetentionCronExpression == input.RetentionCronExpression || - (this.RetentionCronExpression != null && - this.RetentionCronExpression.Equals(input.RetentionCronExpression)) - ) && - ( - this.ConservationCronExpression == input.ConservationCronExpression || - (this.ConservationCronExpression != null && - this.ConservationCronExpression.Equals(input.ConservationCronExpression)) - ) && - ( - this.IsInUse == input.IsInUse || - (this.IsInUse != null && - this.IsInUse.Equals(input.IsInUse)) - ) && - ( - this.Acts == input.Acts || - this.Acts != null && - this.Acts.SequenceEqual(input.Acts) - ) && - ( - this.IsSystem == input.IsSystem || - (this.IsSystem != null && - this.IsSystem.Equals(input.IsSystem)) - ) && - ( - this.IsConfigured == input.IsConfigured || - (this.IsConfigured != null && - this.IsConfigured.Equals(input.IsConfigured)) - ) && - ( - this.ModelTypes == input.ModelTypes || - this.ModelTypes != null && - this.ModelTypes.SequenceEqual(input.ModelTypes) - ) && - ( - this.IsNumerationControlEnabled == input.IsNumerationControlEnabled || - (this.IsNumerationControlEnabled != null && - this.IsNumerationControlEnabled.Equals(input.IsNumerationControlEnabled)) - ) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExtraInfo != null) - hashCode = hashCode * 59 + this.ExtraInfo.GetHashCode(); - if (this.RetentionCronExpression != null) - hashCode = hashCode * 59 + this.RetentionCronExpression.GetHashCode(); - if (this.ConservationCronExpression != null) - hashCode = hashCode * 59 + this.ConservationCronExpression.GetHashCode(); - if (this.IsInUse != null) - hashCode = hashCode * 59 + this.IsInUse.GetHashCode(); - if (this.Acts != null) - hashCode = hashCode * 59 + this.Acts.GetHashCode(); - if (this.IsSystem != null) - hashCode = hashCode * 59 + this.IsSystem.GetHashCode(); - if (this.IsConfigured != null) - hashCode = hashCode * 59 + this.IsConfigured.GetHashCode(); - if (this.ModelTypes != null) - hashCode = hashCode * 59 + this.ModelTypes.GetHashCode(); - if (this.IsNumerationControlEnabled != null) - hashCode = hashCode * 59 + this.IsNumerationControlEnabled.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeDetailDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeDetailDTO.cs deleted file mode 100644 index bed10a6..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeDetailDTO.cs +++ /dev/null @@ -1,414 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Ix Document type detail - /// - [DataContract] - public partial class IxDocumentTypeDetailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique identifier. - /// Description. - /// Identifier. - /// Retention cron expression. - /// Retention date time. - /// Conservation cron expression. - /// Conservation date time. - /// Exclude attachments. - /// Fields. - /// Group by document type. - /// Closing time. - /// Possible values: 0: Required 1: Optional . - /// Possible values: 0: None 1: CheckSign 2: CheckSignDoSystemSign 3: CheckSignDoProducerSign 4: ValidateSign 5: ValidateSignDoSystemSign 6: ValidateSignDoProducerSign 7: DoSystemSign 8: DoProducerSign 9: ValidateSignForceSystemSign 10: ValidateSignForceProducerSign . - /// Possible values: 0: None 1: ValidateTimestamp 2: ValidateTimestampDoTimestamp . - /// Possible values: 0: Generic 1: Individual 2: Sensitive 3: Judicial . - /// Possible values: 0: None . - /// Possible values: 0: Document 1: AdministrativeDocument 2: Folder . - /// Possible values: 0: Static 1: Dynamic . - public IxDocumentTypeDetailDTO(long? id = default(long?), string description = default(string), string identifier = default(string), string retentionCronExpression = default(string), DateTime? retentionDateTime = default(DateTime?), string conservationCronExpression = default(string), DateTime? conservationDateTime = default(DateTime?), bool? excludeAttachments = default(bool?), List fields = default(List), bool? groupByDocType = default(bool?), string closingTime = default(string), int? file = default(int?), int? sign = default(int?), int? timestamp = default(int?), int? privacy = default(int?), int? protection = default(int?), int? category = default(int?), int? closingType = default(int?)) - { - this.Id = id; - this.Description = description; - this.Identifier = identifier; - this.RetentionCronExpression = retentionCronExpression; - this.RetentionDateTime = retentionDateTime; - this.ConservationCronExpression = conservationCronExpression; - this.ConservationDateTime = conservationDateTime; - this.ExcludeAttachments = excludeAttachments; - this.Fields = fields; - this.GroupByDocType = groupByDocType; - this.ClosingTime = closingTime; - this.File = file; - this.Sign = sign; - this.Timestamp = timestamp; - this.Privacy = privacy; - this.Protection = protection; - this.Category = category; - this.ClosingType = closingType; - } - - /// - /// Unique identifier - /// - /// Unique identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public long? Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="identifier", EmitDefaultValue=false)] - public string Identifier { get; set; } - - /// - /// Retention cron expression - /// - /// Retention cron expression - [DataMember(Name="retentionCronExpression", EmitDefaultValue=false)] - public string RetentionCronExpression { get; set; } - - /// - /// Retention date time - /// - /// Retention date time - [DataMember(Name="retentionDateTime", EmitDefaultValue=false)] - public DateTime? RetentionDateTime { get; set; } - - /// - /// Conservation cron expression - /// - /// Conservation cron expression - [DataMember(Name="conservationCronExpression", EmitDefaultValue=false)] - public string ConservationCronExpression { get; set; } - - /// - /// Conservation date time - /// - /// Conservation date time - [DataMember(Name="conservationDateTime", EmitDefaultValue=false)] - public DateTime? ConservationDateTime { get; set; } - - /// - /// Exclude attachments - /// - /// Exclude attachments - [DataMember(Name="excludeAttachments", EmitDefaultValue=false)] - public bool? ExcludeAttachments { get; set; } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Group by document type - /// - /// Group by document type - [DataMember(Name="groupByDocType", EmitDefaultValue=false)] - public bool? GroupByDocType { get; set; } - - /// - /// Closing time - /// - /// Closing time - [DataMember(Name="closingTime", EmitDefaultValue=false)] - public string ClosingTime { get; set; } - - /// - /// Possible values: 0: Required 1: Optional - /// - /// Possible values: 0: Required 1: Optional - [DataMember(Name="file", EmitDefaultValue=false)] - public int? File { get; set; } - - /// - /// Possible values: 0: None 1: CheckSign 2: CheckSignDoSystemSign 3: CheckSignDoProducerSign 4: ValidateSign 5: ValidateSignDoSystemSign 6: ValidateSignDoProducerSign 7: DoSystemSign 8: DoProducerSign 9: ValidateSignForceSystemSign 10: ValidateSignForceProducerSign - /// - /// Possible values: 0: None 1: CheckSign 2: CheckSignDoSystemSign 3: CheckSignDoProducerSign 4: ValidateSign 5: ValidateSignDoSystemSign 6: ValidateSignDoProducerSign 7: DoSystemSign 8: DoProducerSign 9: ValidateSignForceSystemSign 10: ValidateSignForceProducerSign - [DataMember(Name="sign", EmitDefaultValue=false)] - public int? Sign { get; set; } - - /// - /// Possible values: 0: None 1: ValidateTimestamp 2: ValidateTimestampDoTimestamp - /// - /// Possible values: 0: None 1: ValidateTimestamp 2: ValidateTimestampDoTimestamp - [DataMember(Name="timestamp", EmitDefaultValue=false)] - public int? Timestamp { get; set; } - - /// - /// Possible values: 0: Generic 1: Individual 2: Sensitive 3: Judicial - /// - /// Possible values: 0: Generic 1: Individual 2: Sensitive 3: Judicial - [DataMember(Name="privacy", EmitDefaultValue=false)] - public int? Privacy { get; set; } - - /// - /// Possible values: 0: None - /// - /// Possible values: 0: None - [DataMember(Name="protection", EmitDefaultValue=false)] - public int? Protection { get; set; } - - /// - /// Possible values: 0: Document 1: AdministrativeDocument 2: Folder - /// - /// Possible values: 0: Document 1: AdministrativeDocument 2: Folder - [DataMember(Name="category", EmitDefaultValue=false)] - public int? Category { get; set; } - - /// - /// Possible values: 0: Static 1: Dynamic - /// - /// Possible values: 0: Static 1: Dynamic - [DataMember(Name="closingType", EmitDefaultValue=false)] - public int? ClosingType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxDocumentTypeDetailDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Identifier: ").Append(Identifier).Append("\n"); - sb.Append(" RetentionCronExpression: ").Append(RetentionCronExpression).Append("\n"); - sb.Append(" RetentionDateTime: ").Append(RetentionDateTime).Append("\n"); - sb.Append(" ConservationCronExpression: ").Append(ConservationCronExpression).Append("\n"); - sb.Append(" ConservationDateTime: ").Append(ConservationDateTime).Append("\n"); - sb.Append(" ExcludeAttachments: ").Append(ExcludeAttachments).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append(" GroupByDocType: ").Append(GroupByDocType).Append("\n"); - sb.Append(" ClosingTime: ").Append(ClosingTime).Append("\n"); - sb.Append(" File: ").Append(File).Append("\n"); - sb.Append(" Sign: ").Append(Sign).Append("\n"); - sb.Append(" Timestamp: ").Append(Timestamp).Append("\n"); - sb.Append(" Privacy: ").Append(Privacy).Append("\n"); - sb.Append(" Protection: ").Append(Protection).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" ClosingType: ").Append(ClosingType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxDocumentTypeDetailDTO); - } - - /// - /// Returns true if IxDocumentTypeDetailDTO instances are equal - /// - /// Instance of IxDocumentTypeDetailDTO to be compared - /// Boolean - public bool Equals(IxDocumentTypeDetailDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Identifier == input.Identifier || - (this.Identifier != null && - this.Identifier.Equals(input.Identifier)) - ) && - ( - this.RetentionCronExpression == input.RetentionCronExpression || - (this.RetentionCronExpression != null && - this.RetentionCronExpression.Equals(input.RetentionCronExpression)) - ) && - ( - this.RetentionDateTime == input.RetentionDateTime || - (this.RetentionDateTime != null && - this.RetentionDateTime.Equals(input.RetentionDateTime)) - ) && - ( - this.ConservationCronExpression == input.ConservationCronExpression || - (this.ConservationCronExpression != null && - this.ConservationCronExpression.Equals(input.ConservationCronExpression)) - ) && - ( - this.ConservationDateTime == input.ConservationDateTime || - (this.ConservationDateTime != null && - this.ConservationDateTime.Equals(input.ConservationDateTime)) - ) && - ( - this.ExcludeAttachments == input.ExcludeAttachments || - (this.ExcludeAttachments != null && - this.ExcludeAttachments.Equals(input.ExcludeAttachments)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ) && - ( - this.GroupByDocType == input.GroupByDocType || - (this.GroupByDocType != null && - this.GroupByDocType.Equals(input.GroupByDocType)) - ) && - ( - this.ClosingTime == input.ClosingTime || - (this.ClosingTime != null && - this.ClosingTime.Equals(input.ClosingTime)) - ) && - ( - this.File == input.File || - (this.File != null && - this.File.Equals(input.File)) - ) && - ( - this.Sign == input.Sign || - (this.Sign != null && - this.Sign.Equals(input.Sign)) - ) && - ( - this.Timestamp == input.Timestamp || - (this.Timestamp != null && - this.Timestamp.Equals(input.Timestamp)) - ) && - ( - this.Privacy == input.Privacy || - (this.Privacy != null && - this.Privacy.Equals(input.Privacy)) - ) && - ( - this.Protection == input.Protection || - (this.Protection != null && - this.Protection.Equals(input.Protection)) - ) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && - ( - this.ClosingType == input.ClosingType || - (this.ClosingType != null && - this.ClosingType.Equals(input.ClosingType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Identifier != null) - hashCode = hashCode * 59 + this.Identifier.GetHashCode(); - if (this.RetentionCronExpression != null) - hashCode = hashCode * 59 + this.RetentionCronExpression.GetHashCode(); - if (this.RetentionDateTime != null) - hashCode = hashCode * 59 + this.RetentionDateTime.GetHashCode(); - if (this.ConservationCronExpression != null) - hashCode = hashCode * 59 + this.ConservationCronExpression.GetHashCode(); - if (this.ConservationDateTime != null) - hashCode = hashCode * 59 + this.ConservationDateTime.GetHashCode(); - if (this.ExcludeAttachments != null) - hashCode = hashCode * 59 + this.ExcludeAttachments.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - if (this.GroupByDocType != null) - hashCode = hashCode * 59 + this.GroupByDocType.GetHashCode(); - if (this.ClosingTime != null) - hashCode = hashCode * 59 + this.ClosingTime.GetHashCode(); - if (this.File != null) - hashCode = hashCode * 59 + this.File.GetHashCode(); - if (this.Sign != null) - hashCode = hashCode * 59 + this.Sign.GetHashCode(); - if (this.Timestamp != null) - hashCode = hashCode * 59 + this.Timestamp.GetHashCode(); - if (this.Privacy != null) - hashCode = hashCode * 59 + this.Privacy.GetHashCode(); - if (this.Protection != null) - hashCode = hashCode * 59 + this.Protection.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.ClosingType != null) - hashCode = hashCode * 59 + this.ClosingType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeFieldConstraintDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeFieldConstraintDTO.cs deleted file mode 100644 index 6512235..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeFieldConstraintDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Ix document type field constraint - /// - [DataContract] - public partial class IxDocumentTypeFieldConstraintDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Required 1: Unique 2: ReadyOnly 3: Uneditable . - public IxDocumentTypeFieldConstraintDTO(int? type = default(int?)) - { - this.Type = type; - } - - /// - /// Possible values: 0: Required 1: Unique 2: ReadyOnly 3: Uneditable - /// - /// Possible values: 0: Required 1: Unique 2: ReadyOnly 3: Uneditable - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxDocumentTypeFieldConstraintDTO {\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxDocumentTypeFieldConstraintDTO); - } - - /// - /// Returns true if IxDocumentTypeFieldConstraintDTO instances are equal - /// - /// Instance of IxDocumentTypeFieldConstraintDTO to be compared - /// Boolean - public bool Equals(IxDocumentTypeFieldConstraintDTO input) - { - if (input == null) - return false; - - return - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeFieldDTO.cs deleted file mode 100644 index 771974a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeFieldDTO.cs +++ /dev/null @@ -1,414 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Ix Document type field - /// - [DataContract] - public partial class IxDocumentTypeFieldDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// Description. - /// Group. - /// Default value. - /// Constraints. - /// Validation expression. - /// Use source. - /// Values. - /// Source identifier. - /// Formulas. - /// Possible values: 0: GenericString 1: GenericDatetime 2: GenericDate 3: GenericInt16 4: GenericInt32 5: GenericInt64 6: GenericBoolean 7: GenericDouble 8: TypedStringIdentifier 9: TypedIntRevision 10: TypedDateRefDate 11: TypedDateRetentionDate 12: TypedIntYear 13: PaIpaCodeString 14: PaOfficeCodeString 15: EntityNameString 16: EntitySurnameString 17: EntityFiscalCodeString 18: EntityBusinessNameString 19: EntityVatCodeString 20: EntityIpaCodeString 21: EntityOfficeCodeString 22: PrivacyCryptoKeyString 23: PrivacyCryptoAlgorithmString 24: ViewerStringIdentifier 25: ViewerStringProducer 26: ViewerStringName 27: ViewerStringVersion 28: ViewerStringUrl 29: FolderStringIdentifier 30: FolderDateClosingDate . - /// Possible values: 0: String 1: Int16 2: Int32 3: Int64 4: Datetime 5: Boolean 6: Double 7: Date . - /// Possible values: 0: Single 1: Multiple 2: SingleWithChoice 3: MultipleWithChoice 4: SingleWithDefault . - /// Possible values: 0: Generic 1: Individual 2: Sensitive 3: Judicial . - /// Possible values: 0: None 1: FiscalCode 2: VatCode 3: Custom 4: Match 5: Length . - /// Is required. - /// Read only. - public IxDocumentTypeFieldDTO(string id = default(string), string name = default(string), string description = default(string), string group = default(string), string defaultValue = default(string), List constraints = default(List), string validationExpr = default(string), bool? useSource = default(bool?), List values = default(List), string sourceIdentifier = default(string), List formulas = default(List), int? valueType = default(int?), int? type = default(int?), int? inputType = default(int?), int? privacy = default(int?), int? validation = default(int?), bool? required = default(bool?), bool? readOnly = default(bool?)) - { - this.Id = id; - this.Name = name; - this.Description = description; - this.Group = group; - this.DefaultValue = defaultValue; - this.Constraints = constraints; - this.ValidationExpr = validationExpr; - this.UseSource = useSource; - this.Values = values; - this.SourceIdentifier = sourceIdentifier; - this.Formulas = formulas; - this.ValueType = valueType; - this.Type = type; - this.InputType = inputType; - this.Privacy = privacy; - this.Validation = validation; - this.Required = required; - this.ReadOnly = readOnly; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Group - /// - /// Group - [DataMember(Name="group", EmitDefaultValue=false)] - public string Group { get; set; } - - /// - /// Default value - /// - /// Default value - [DataMember(Name="defaultValue", EmitDefaultValue=false)] - public string DefaultValue { get; set; } - - /// - /// Constraints - /// - /// Constraints - [DataMember(Name="constraints", EmitDefaultValue=false)] - public List Constraints { get; set; } - - /// - /// Validation expression - /// - /// Validation expression - [DataMember(Name="validationExpr", EmitDefaultValue=false)] - public string ValidationExpr { get; set; } - - /// - /// Use source - /// - /// Use source - [DataMember(Name="useSource", EmitDefaultValue=false)] - public bool? UseSource { get; set; } - - /// - /// Values - /// - /// Values - [DataMember(Name="values", EmitDefaultValue=false)] - public List Values { get; set; } - - /// - /// Source identifier - /// - /// Source identifier - [DataMember(Name="sourceIdentifier", EmitDefaultValue=false)] - public string SourceIdentifier { get; set; } - - /// - /// Formulas - /// - /// Formulas - [DataMember(Name="formulas", EmitDefaultValue=false)] - public List Formulas { get; set; } - - /// - /// Possible values: 0: GenericString 1: GenericDatetime 2: GenericDate 3: GenericInt16 4: GenericInt32 5: GenericInt64 6: GenericBoolean 7: GenericDouble 8: TypedStringIdentifier 9: TypedIntRevision 10: TypedDateRefDate 11: TypedDateRetentionDate 12: TypedIntYear 13: PaIpaCodeString 14: PaOfficeCodeString 15: EntityNameString 16: EntitySurnameString 17: EntityFiscalCodeString 18: EntityBusinessNameString 19: EntityVatCodeString 20: EntityIpaCodeString 21: EntityOfficeCodeString 22: PrivacyCryptoKeyString 23: PrivacyCryptoAlgorithmString 24: ViewerStringIdentifier 25: ViewerStringProducer 26: ViewerStringName 27: ViewerStringVersion 28: ViewerStringUrl 29: FolderStringIdentifier 30: FolderDateClosingDate - /// - /// Possible values: 0: GenericString 1: GenericDatetime 2: GenericDate 3: GenericInt16 4: GenericInt32 5: GenericInt64 6: GenericBoolean 7: GenericDouble 8: TypedStringIdentifier 9: TypedIntRevision 10: TypedDateRefDate 11: TypedDateRetentionDate 12: TypedIntYear 13: PaIpaCodeString 14: PaOfficeCodeString 15: EntityNameString 16: EntitySurnameString 17: EntityFiscalCodeString 18: EntityBusinessNameString 19: EntityVatCodeString 20: EntityIpaCodeString 21: EntityOfficeCodeString 22: PrivacyCryptoKeyString 23: PrivacyCryptoAlgorithmString 24: ViewerStringIdentifier 25: ViewerStringProducer 26: ViewerStringName 27: ViewerStringVersion 28: ViewerStringUrl 29: FolderStringIdentifier 30: FolderDateClosingDate - [DataMember(Name="valueType", EmitDefaultValue=false)] - public int? ValueType { get; set; } - - /// - /// Possible values: 0: String 1: Int16 2: Int32 3: Int64 4: Datetime 5: Boolean 6: Double 7: Date - /// - /// Possible values: 0: String 1: Int16 2: Int32 3: Int64 4: Datetime 5: Boolean 6: Double 7: Date - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Possible values: 0: Single 1: Multiple 2: SingleWithChoice 3: MultipleWithChoice 4: SingleWithDefault - /// - /// Possible values: 0: Single 1: Multiple 2: SingleWithChoice 3: MultipleWithChoice 4: SingleWithDefault - [DataMember(Name="inputType", EmitDefaultValue=false)] - public int? InputType { get; set; } - - /// - /// Possible values: 0: Generic 1: Individual 2: Sensitive 3: Judicial - /// - /// Possible values: 0: Generic 1: Individual 2: Sensitive 3: Judicial - [DataMember(Name="privacy", EmitDefaultValue=false)] - public int? Privacy { get; set; } - - /// - /// Possible values: 0: None 1: FiscalCode 2: VatCode 3: Custom 4: Match 5: Length - /// - /// Possible values: 0: None 1: FiscalCode 2: VatCode 3: Custom 4: Match 5: Length - [DataMember(Name="validation", EmitDefaultValue=false)] - public int? Validation { get; set; } - - /// - /// Is required - /// - /// Is required - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Read only - /// - /// Read only - [DataMember(Name="readOnly", EmitDefaultValue=false)] - public bool? ReadOnly { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxDocumentTypeFieldDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Group: ").Append(Group).Append("\n"); - sb.Append(" DefaultValue: ").Append(DefaultValue).Append("\n"); - sb.Append(" Constraints: ").Append(Constraints).Append("\n"); - sb.Append(" ValidationExpr: ").Append(ValidationExpr).Append("\n"); - sb.Append(" UseSource: ").Append(UseSource).Append("\n"); - sb.Append(" Values: ").Append(Values).Append("\n"); - sb.Append(" SourceIdentifier: ").Append(SourceIdentifier).Append("\n"); - sb.Append(" Formulas: ").Append(Formulas).Append("\n"); - sb.Append(" ValueType: ").Append(ValueType).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" InputType: ").Append(InputType).Append("\n"); - sb.Append(" Privacy: ").Append(Privacy).Append("\n"); - sb.Append(" Validation: ").Append(Validation).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" ReadOnly: ").Append(ReadOnly).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxDocumentTypeFieldDTO); - } - - /// - /// Returns true if IxDocumentTypeFieldDTO instances are equal - /// - /// Instance of IxDocumentTypeFieldDTO to be compared - /// Boolean - public bool Equals(IxDocumentTypeFieldDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) - ) && - ( - this.DefaultValue == input.DefaultValue || - (this.DefaultValue != null && - this.DefaultValue.Equals(input.DefaultValue)) - ) && - ( - this.Constraints == input.Constraints || - this.Constraints != null && - this.Constraints.SequenceEqual(input.Constraints) - ) && - ( - this.ValidationExpr == input.ValidationExpr || - (this.ValidationExpr != null && - this.ValidationExpr.Equals(input.ValidationExpr)) - ) && - ( - this.UseSource == input.UseSource || - (this.UseSource != null && - this.UseSource.Equals(input.UseSource)) - ) && - ( - this.Values == input.Values || - this.Values != null && - this.Values.SequenceEqual(input.Values) - ) && - ( - this.SourceIdentifier == input.SourceIdentifier || - (this.SourceIdentifier != null && - this.SourceIdentifier.Equals(input.SourceIdentifier)) - ) && - ( - this.Formulas == input.Formulas || - this.Formulas != null && - this.Formulas.SequenceEqual(input.Formulas) - ) && - ( - this.ValueType == input.ValueType || - (this.ValueType != null && - this.ValueType.Equals(input.ValueType)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.InputType == input.InputType || - (this.InputType != null && - this.InputType.Equals(input.InputType)) - ) && - ( - this.Privacy == input.Privacy || - (this.Privacy != null && - this.Privacy.Equals(input.Privacy)) - ) && - ( - this.Validation == input.Validation || - (this.Validation != null && - this.Validation.Equals(input.Validation)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.ReadOnly == input.ReadOnly || - (this.ReadOnly != null && - this.ReadOnly.Equals(input.ReadOnly)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Group != null) - hashCode = hashCode * 59 + this.Group.GetHashCode(); - if (this.DefaultValue != null) - hashCode = hashCode * 59 + this.DefaultValue.GetHashCode(); - if (this.Constraints != null) - hashCode = hashCode * 59 + this.Constraints.GetHashCode(); - if (this.ValidationExpr != null) - hashCode = hashCode * 59 + this.ValidationExpr.GetHashCode(); - if (this.UseSource != null) - hashCode = hashCode * 59 + this.UseSource.GetHashCode(); - if (this.Values != null) - hashCode = hashCode * 59 + this.Values.GetHashCode(); - if (this.SourceIdentifier != null) - hashCode = hashCode * 59 + this.SourceIdentifier.GetHashCode(); - if (this.Formulas != null) - hashCode = hashCode * 59 + this.Formulas.GetHashCode(); - if (this.ValueType != null) - hashCode = hashCode * 59 + this.ValueType.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.InputType != null) - hashCode = hashCode * 59 + this.InputType.GetHashCode(); - if (this.Privacy != null) - hashCode = hashCode * 59 + this.Privacy.GetHashCode(); - if (this.Validation != null) - hashCode = hashCode * 59 + this.Validation.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.ReadOnly != null) - hashCode = hashCode * 59 + this.ReadOnly.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeFieldFormulaDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeFieldFormulaDTO.cs deleted file mode 100644 index 2a617e1..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeFieldFormulaDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Ix document type field formula - /// - [DataContract] - public partial class IxDocumentTypeFieldFormulaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: YearFromDate 1: DatePart 2: Regex 3: Replace . - /// Source field name. - /// Formula expression. - public IxDocumentTypeFieldFormulaDTO(int? type = default(int?), string sourceFieldName = default(string), string formulaExpr = default(string)) - { - this.Type = type; - this.SourceFieldName = sourceFieldName; - this.FormulaExpr = formulaExpr; - } - - /// - /// Possible values: 0: YearFromDate 1: DatePart 2: Regex 3: Replace - /// - /// Possible values: 0: YearFromDate 1: DatePart 2: Regex 3: Replace - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Source field name - /// - /// Source field name - [DataMember(Name="sourceFieldName", EmitDefaultValue=false)] - public string SourceFieldName { get; set; } - - /// - /// Formula expression - /// - /// Formula expression - [DataMember(Name="formulaExpr", EmitDefaultValue=false)] - public string FormulaExpr { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxDocumentTypeFieldFormulaDTO {\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" SourceFieldName: ").Append(SourceFieldName).Append("\n"); - sb.Append(" FormulaExpr: ").Append(FormulaExpr).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxDocumentTypeFieldFormulaDTO); - } - - /// - /// Returns true if IxDocumentTypeFieldFormulaDTO instances are equal - /// - /// Instance of IxDocumentTypeFieldFormulaDTO to be compared - /// Boolean - public bool Equals(IxDocumentTypeFieldFormulaDTO input) - { - if (input == null) - return false; - - return - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.SourceFieldName == input.SourceFieldName || - (this.SourceFieldName != null && - this.SourceFieldName.Equals(input.SourceFieldName)) - ) && - ( - this.FormulaExpr == input.FormulaExpr || - (this.FormulaExpr != null && - this.FormulaExpr.Equals(input.FormulaExpr)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.SourceFieldName != null) - hashCode = hashCode * 59 + this.SourceFieldName.GetHashCode(); - if (this.FormulaExpr != null) - hashCode = hashCode * 59 + this.FormulaExpr.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeModelDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeModelDTO.cs deleted file mode 100644 index 47e808f..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeModelDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Ix document type model - /// - [DataContract] - public partial class IxDocumentTypeModelDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: PrivateCompany 1: Pa . - public IxDocumentTypeModelDTO(int? type = default(int?)) - { - this.Type = type; - } - - /// - /// Possible values: 0: PrivateCompany 1: Pa - /// - /// Possible values: 0: PrivateCompany 1: Pa - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxDocumentTypeModelDTO {\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxDocumentTypeModelDTO); - } - - /// - /// Returns true if IxDocumentTypeModelDTO instances are equal - /// - /// Instance of IxDocumentTypeModelDTO to be compared - /// Boolean - public bool Equals(IxDocumentTypeModelDTO input) - { - if (input == null) - return false; - - return - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeSimpleDTO.cs deleted file mode 100644 index b2fc68a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxDocumentTypeSimpleDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Ix Document type with essential data - /// - [DataContract] - public partial class IxDocumentTypeSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - public IxDocumentTypeSimpleDTO(string id = default(string), string description = default(string)) - { - this.Id = id; - this.Description = description; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxDocumentTypeSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxDocumentTypeSimpleDTO); - } - - /// - /// Returns true if IxDocumentTypeSimpleDTO instances are equal - /// - /// Instance of IxDocumentTypeSimpleDTO to be compared - /// Boolean - public bool Equals(IxDocumentTypeSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeBusinessUnitSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeBusinessUnitSettingsDTO.cs deleted file mode 100644 index 6b1cc84..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeBusinessUnitSettingsDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of IX-FE Business units settings - /// - [DataContract] - public partial class IxFeBusinessUnitSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Arxivar Business unit. - /// IX Business unit. - /// Boolean which is true if the configuration is active. - /// IX Business Unit UO. - /// Credentials for business unit. - public IxFeBusinessUnitSettingsDTO(int? id = default(int?), BusinessUnitDTO arxBusinessUnit = default(BusinessUnitDTO), IxBusinessUnitSimpleDTO ixBusinessUnit = default(IxBusinessUnitSimpleDTO), bool? enabled = default(bool?), IxBusinessUnitUoSimpleDTO ixBusinessUnitUo = default(IxBusinessUnitUoSimpleDTO), IxCredentialsDTO credentials = default(IxCredentialsDTO)) - { - this.Id = id; - this.ArxBusinessUnit = arxBusinessUnit; - this.IxBusinessUnit = ixBusinessUnit; - this.Enabled = enabled; - this.IxBusinessUnitUo = ixBusinessUnitUo; - this.Credentials = credentials; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Arxivar Business unit - /// - /// Arxivar Business unit - [DataMember(Name="arxBusinessUnit", EmitDefaultValue=false)] - public BusinessUnitDTO ArxBusinessUnit { get; set; } - - /// - /// IX Business unit - /// - /// IX Business unit - [DataMember(Name="ixBusinessUnit", EmitDefaultValue=false)] - public IxBusinessUnitSimpleDTO IxBusinessUnit { get; set; } - - /// - /// Boolean which is true if the configuration is active - /// - /// Boolean which is true if the configuration is active - [DataMember(Name="enabled", EmitDefaultValue=false)] - public bool? Enabled { get; set; } - - /// - /// IX Business Unit UO - /// - /// IX Business Unit UO - [DataMember(Name="ixBusinessUnitUo", EmitDefaultValue=false)] - public IxBusinessUnitUoSimpleDTO IxBusinessUnitUo { get; set; } - - /// - /// Credentials for business unit - /// - /// Credentials for business unit - [DataMember(Name="credentials", EmitDefaultValue=false)] - public IxCredentialsDTO Credentials { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeBusinessUnitSettingsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ArxBusinessUnit: ").Append(ArxBusinessUnit).Append("\n"); - sb.Append(" IxBusinessUnit: ").Append(IxBusinessUnit).Append("\n"); - sb.Append(" Enabled: ").Append(Enabled).Append("\n"); - sb.Append(" IxBusinessUnitUo: ").Append(IxBusinessUnitUo).Append("\n"); - sb.Append(" Credentials: ").Append(Credentials).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeBusinessUnitSettingsDTO); - } - - /// - /// Returns true if IxFeBusinessUnitSettingsDTO instances are equal - /// - /// Instance of IxFeBusinessUnitSettingsDTO to be compared - /// Boolean - public bool Equals(IxFeBusinessUnitSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ArxBusinessUnit == input.ArxBusinessUnit || - (this.ArxBusinessUnit != null && - this.ArxBusinessUnit.Equals(input.ArxBusinessUnit)) - ) && - ( - this.IxBusinessUnit == input.IxBusinessUnit || - (this.IxBusinessUnit != null && - this.IxBusinessUnit.Equals(input.IxBusinessUnit)) - ) && - ( - this.Enabled == input.Enabled || - (this.Enabled != null && - this.Enabled.Equals(input.Enabled)) - ) && - ( - this.IxBusinessUnitUo == input.IxBusinessUnitUo || - (this.IxBusinessUnitUo != null && - this.IxBusinessUnitUo.Equals(input.IxBusinessUnitUo)) - ) && - ( - this.Credentials == input.Credentials || - (this.Credentials != null && - this.Credentials.Equals(input.Credentials)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ArxBusinessUnit != null) - hashCode = hashCode * 59 + this.ArxBusinessUnit.GetHashCode(); - if (this.IxBusinessUnit != null) - hashCode = hashCode * 59 + this.IxBusinessUnit.GetHashCode(); - if (this.Enabled != null) - hashCode = hashCode * 59 + this.Enabled.GetHashCode(); - if (this.IxBusinessUnitUo != null) - hashCode = hashCode * 59 + this.IxBusinessUnitUo.GetHashCode(); - if (this.Credentials != null) - hashCode = hashCode * 59 + this.Credentials.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeCloneReceivingSettingsByBusinessUnitResponseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeCloneReceivingSettingsByBusinessUnitResponseDTO.cs deleted file mode 100644 index 200565e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeCloneReceivingSettingsByBusinessUnitResponseDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for business unit receiving settings clone result in IX-FE - /// - [DataContract] - public partial class IxFeCloneReceivingSettingsByBusinessUnitResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of clone process in progress. - public IxFeCloneReceivingSettingsByBusinessUnitResponseDTO(string cloneRequestId = default(string)) - { - this.CloneRequestId = cloneRequestId; - } - - /// - /// Identifier of clone process in progress - /// - /// Identifier of clone process in progress - [DataMember(Name="cloneRequestId", EmitDefaultValue=false)] - public string CloneRequestId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeCloneReceivingSettingsByBusinessUnitResponseDTO {\n"); - sb.Append(" CloneRequestId: ").Append(CloneRequestId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeCloneReceivingSettingsByBusinessUnitResponseDTO); - } - - /// - /// Returns true if IxFeCloneReceivingSettingsByBusinessUnitResponseDTO instances are equal - /// - /// Instance of IxFeCloneReceivingSettingsByBusinessUnitResponseDTO to be compared - /// Boolean - public bool Equals(IxFeCloneReceivingSettingsByBusinessUnitResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.CloneRequestId == input.CloneRequestId || - (this.CloneRequestId != null && - this.CloneRequestId.Equals(input.CloneRequestId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CloneRequestId != null) - hashCode = hashCode * 59 + this.CloneRequestId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeCloneSendingSettingsByBusinessUnitResponseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeCloneSendingSettingsByBusinessUnitResponseDTO.cs deleted file mode 100644 index 2f81346..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeCloneSendingSettingsByBusinessUnitResponseDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for business unit sending settings clone result in IX-FE - /// - [DataContract] - public partial class IxFeCloneSendingSettingsByBusinessUnitResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of clone process in progress. - public IxFeCloneSendingSettingsByBusinessUnitResponseDTO(string cloneRequestId = default(string)) - { - this.CloneRequestId = cloneRequestId; - } - - /// - /// Identifier of clone process in progress - /// - /// Identifier of clone process in progress - [DataMember(Name="cloneRequestId", EmitDefaultValue=false)] - public string CloneRequestId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeCloneSendingSettingsByBusinessUnitResponseDTO {\n"); - sb.Append(" CloneRequestId: ").Append(CloneRequestId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeCloneSendingSettingsByBusinessUnitResponseDTO); - } - - /// - /// Returns true if IxFeCloneSendingSettingsByBusinessUnitResponseDTO instances are equal - /// - /// Instance of IxFeCloneSendingSettingsByBusinessUnitResponseDTO to be compared - /// Boolean - public bool Equals(IxFeCloneSendingSettingsByBusinessUnitResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.CloneRequestId == input.CloneRequestId || - (this.CloneRequestId != null && - this.CloneRequestId.Equals(input.CloneRequestId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CloneRequestId != null) - hashCode = hashCode * 59 + this.CloneRequestId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeFieldDTO.cs deleted file mode 100644 index 836cb27..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeFieldDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of IX-FE field - /// - [DataContract] - public partial class IxFeFieldDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Name. - /// Value. - public IxFeFieldDTO(string name = default(string), string value = default(string)) - { - this.Name = name; - this.Value = value; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeFieldDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeFieldDTO); - } - - /// - /// Returns true if IxFeFieldDTO instances are equal - /// - /// Instance of IxFeFieldDTO to be compared - /// Boolean - public bool Equals(IxFeFieldDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeMappingOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeMappingOptionsDTO.cs deleted file mode 100644 index aff80af..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeMappingOptionsDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for IX-FE Mapping options - /// - [DataContract] - public partial class IxFeMappingOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Parent document type. - /// Copy security settings from parent class. - /// Default state for created predefined profiles. - /// Notification settings. - public IxFeMappingOptionsDTO(DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), bool? copySecurityFromParent = default(bool?), StateSimpleDTO defaultState = default(StateSimpleDTO), List notificationSettings = default(List)) - { - this.DocumentType = documentType; - this.CopySecurityFromParent = copySecurityFromParent; - this.DefaultState = defaultState; - this.NotificationSettings = notificationSettings; - } - - /// - /// Parent document type - /// - /// Parent document type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Copy security settings from parent class - /// - /// Copy security settings from parent class - [DataMember(Name="copySecurityFromParent", EmitDefaultValue=false)] - public bool? CopySecurityFromParent { get; set; } - - /// - /// Default state for created predefined profiles - /// - /// Default state for created predefined profiles - [DataMember(Name="defaultState", EmitDefaultValue=false)] - public StateSimpleDTO DefaultState { get; set; } - - /// - /// Notification settings - /// - /// Notification settings - [DataMember(Name="notificationSettings", EmitDefaultValue=false)] - public List NotificationSettings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeMappingOptionsDTO {\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" CopySecurityFromParent: ").Append(CopySecurityFromParent).Append("\n"); - sb.Append(" DefaultState: ").Append(DefaultState).Append("\n"); - sb.Append(" NotificationSettings: ").Append(NotificationSettings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeMappingOptionsDTO); - } - - /// - /// Returns true if IxFeMappingOptionsDTO instances are equal - /// - /// Instance of IxFeMappingOptionsDTO to be compared - /// Boolean - public bool Equals(IxFeMappingOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.CopySecurityFromParent == input.CopySecurityFromParent || - (this.CopySecurityFromParent != null && - this.CopySecurityFromParent.Equals(input.CopySecurityFromParent)) - ) && - ( - this.DefaultState == input.DefaultState || - (this.DefaultState != null && - this.DefaultState.Equals(input.DefaultState)) - ) && - ( - this.NotificationSettings == input.NotificationSettings || - this.NotificationSettings != null && - this.NotificationSettings.SequenceEqual(input.NotificationSettings) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.CopySecurityFromParent != null) - hashCode = hashCode * 59 + this.CopySecurityFromParent.GetHashCode(); - if (this.DefaultState != null) - hashCode = hashCode * 59 + this.DefaultState.GetHashCode(); - if (this.NotificationSettings != null) - hashCode = hashCode * 59 + this.NotificationSettings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeNotificationDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeNotificationDTO.cs deleted file mode 100644 index 1272161..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeNotificationDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of IX-FE notification - /// - [DataContract] - public partial class IxFeNotificationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Context. - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification . - /// Label. - /// Description. - public IxFeNotificationDTO(List contexts = default(List), int? type = default(int?), string label = default(string), string description = default(string)) - { - this.Contexts = contexts; - this.Type = type; - this.Label = label; - this.Description = description; - } - - /// - /// Context - /// - /// Context - [DataMember(Name="contexts", EmitDefaultValue=false)] - public List Contexts { get; set; } - - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification - /// - /// Possible values: 0: Error 1: Inserted 2: ConnectorTakeCharge 3: ConnectorError 4: IxServiceTakeCharge 5: TemplateCompleted 6: TemplateError 7: ValidationCompleted 8: ValidationError 9: Discarded 10: ConservationCompleted 11: ConservationError 12: historicizingCompleted 13: historicizingError 14: DiscardedNotManaged 15: ResendCompleted 16: ResendError 17: SignCompleted 18: SignError 19: TransmissionCompleted 20: TransmissionError 21: DeliveryReceiptNotification 22: DeliveryMissedNotification 23: DiscardedNotification 24: ResultNotification 25: ExpirationTermsNotification 26: SendAttestationNotification 27: PositiveResultNotification 28: NegativeResultNotification 29: PositiveResultWaiting 30: NegativeResultWaiting 31: DiscardedNotification_B2B 32: DeliveryReceiptNotification_B2B 33: DeliveryMissedNotification_B2B 34: SdiDeliveredNotification 35: ConservationSentNotification - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeNotificationDTO {\n"); - sb.Append(" Contexts: ").Append(Contexts).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeNotificationDTO); - } - - /// - /// Returns true if IxFeNotificationDTO instances are equal - /// - /// Instance of IxFeNotificationDTO to be compared - /// Boolean - public bool Equals(IxFeNotificationDTO input) - { - if (input == null) - return false; - - return - ( - this.Contexts == input.Contexts || - this.Contexts != null && - this.Contexts.SequenceEqual(input.Contexts) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Contexts != null) - hashCode = hashCode * 59 + this.Contexts.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeNotificationMappingDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeNotificationMappingDTO.cs deleted file mode 100644 index ba0eabd..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeNotificationMappingDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of IX-FE notification mapping - /// - [DataContract] - public partial class IxFeNotificationMappingDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// IX field. - /// Arxivar field. - public IxFeNotificationMappingDTO(IxFeFieldDTO ixField = default(IxFeFieldDTO), FieldManagementDTO arxField = default(FieldManagementDTO)) - { - this.IxField = ixField; - this.ArxField = arxField; - } - - /// - /// IX field - /// - /// IX field - [DataMember(Name="ixField", EmitDefaultValue=false)] - public IxFeFieldDTO IxField { get; set; } - - /// - /// Arxivar field - /// - /// Arxivar field - [DataMember(Name="arxField", EmitDefaultValue=false)] - public FieldManagementDTO ArxField { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeNotificationMappingDTO {\n"); - sb.Append(" IxField: ").Append(IxField).Append("\n"); - sb.Append(" ArxField: ").Append(ArxField).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeNotificationMappingDTO); - } - - /// - /// Returns true if IxFeNotificationMappingDTO instances are equal - /// - /// Instance of IxFeNotificationMappingDTO to be compared - /// Boolean - public bool Equals(IxFeNotificationMappingDTO input) - { - if (input == null) - return false; - - return - ( - this.IxField == input.IxField || - (this.IxField != null && - this.IxField.Equals(input.IxField)) - ) && - ( - this.ArxField == input.ArxField || - (this.ArxField != null && - this.ArxField.Equals(input.ArxField)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IxField != null) - hashCode = hashCode * 59 + this.IxField.GetHashCode(); - if (this.ArxField != null) - hashCode = hashCode * 59 + this.ArxField.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeNotificationSettingsBaseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeNotificationSettingsBaseDTO.cs deleted file mode 100644 index 74232f6..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeNotificationSettingsBaseDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of IX-FE notification settings - /// - [DataContract] - public partial class IxFeNotificationSettingsBaseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Internal 1: Sending 2: Receiving . - /// Notification type. - /// State. - public IxFeNotificationSettingsBaseDTO(int? context = default(int?), IxFeNotificationDTO type = default(IxFeNotificationDTO), StateSimpleDTO state = default(StateSimpleDTO)) - { - this.Context = context; - this.Type = type; - this.State = state; - } - - /// - /// Possible values: 0: Internal 1: Sending 2: Receiving - /// - /// Possible values: 0: Internal 1: Sending 2: Receiving - [DataMember(Name="context", EmitDefaultValue=false)] - public int? Context { get; set; } - - /// - /// Notification type - /// - /// Notification type - [DataMember(Name="type", EmitDefaultValue=false)] - public IxFeNotificationDTO Type { get; set; } - - /// - /// State - /// - /// State - [DataMember(Name="state", EmitDefaultValue=false)] - public StateSimpleDTO State { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeNotificationSettingsBaseDTO {\n"); - sb.Append(" Context: ").Append(Context).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeNotificationSettingsBaseDTO); - } - - /// - /// Returns true if IxFeNotificationSettingsBaseDTO instances are equal - /// - /// Instance of IxFeNotificationSettingsBaseDTO to be compared - /// Boolean - public bool Equals(IxFeNotificationSettingsBaseDTO input) - { - if (input == null) - return false; - - return - ( - this.Context == input.Context || - (this.Context != null && - this.Context.Equals(input.Context)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Context != null) - hashCode = hashCode * 59 + this.Context.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeNotificationSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeNotificationSettingsDTO.cs deleted file mode 100644 index e4caacd..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeNotificationSettingsDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of IX-FE notification settings - /// - [DataContract] - public partial class IxFeNotificationSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Predefined profile. - /// Mapping. - /// Possible values: 0: Internal 1: Sending 2: Receiving . - /// Notification type. - /// State. - public IxFeNotificationSettingsDTO(int? id = default(int?), PredefinedProfileSimpleDTO predefinedProfile = default(PredefinedProfileSimpleDTO), List mapping = default(List), int? context = default(int?), IxFeNotificationDTO type = default(IxFeNotificationDTO), StateSimpleDTO state = default(StateSimpleDTO)) - { - this.Id = id; - this.PredefinedProfile = predefinedProfile; - this.Mapping = mapping; - this.Context = context; - this.Type = type; - this.State = state; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Predefined profile - /// - /// Predefined profile - [DataMember(Name="predefinedProfile", EmitDefaultValue=false)] - public PredefinedProfileSimpleDTO PredefinedProfile { get; set; } - - /// - /// Mapping - /// - /// Mapping - [DataMember(Name="mapping", EmitDefaultValue=false)] - public List Mapping { get; set; } - - /// - /// Possible values: 0: Internal 1: Sending 2: Receiving - /// - /// Possible values: 0: Internal 1: Sending 2: Receiving - [DataMember(Name="context", EmitDefaultValue=false)] - public int? Context { get; set; } - - /// - /// Notification type - /// - /// Notification type - [DataMember(Name="type", EmitDefaultValue=false)] - public IxFeNotificationDTO Type { get; set; } - - /// - /// State - /// - /// State - [DataMember(Name="state", EmitDefaultValue=false)] - public StateSimpleDTO State { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeNotificationSettingsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" PredefinedProfile: ").Append(PredefinedProfile).Append("\n"); - sb.Append(" Mapping: ").Append(Mapping).Append("\n"); - sb.Append(" Context: ").Append(Context).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeNotificationSettingsDTO); - } - - /// - /// Returns true if IxFeNotificationSettingsDTO instances are equal - /// - /// Instance of IxFeNotificationSettingsDTO to be compared - /// Boolean - public bool Equals(IxFeNotificationSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.PredefinedProfile == input.PredefinedProfile || - (this.PredefinedProfile != null && - this.PredefinedProfile.Equals(input.PredefinedProfile)) - ) && - ( - this.Mapping == input.Mapping || - this.Mapping != null && - this.Mapping.SequenceEqual(input.Mapping) - ) && - ( - this.Context == input.Context || - (this.Context != null && - this.Context.Equals(input.Context)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.PredefinedProfile != null) - hashCode = hashCode * 59 + this.PredefinedProfile.GetHashCode(); - if (this.Mapping != null) - hashCode = hashCode * 59 + this.Mapping.GetHashCode(); - if (this.Context != null) - hashCode = hashCode * 59 + this.Context.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeReceivingCloneOptionsByBusinessUnitDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeReceivingCloneOptionsByBusinessUnitDTO.cs deleted file mode 100644 index ac80b79..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeReceivingCloneOptionsByBusinessUnitDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for cloning receiving settings by business unit for IX-FE - /// - [DataContract] - public partial class IxFeReceivingCloneOptionsByBusinessUnitDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Business unit source. - /// Destination business units. - public IxFeReceivingCloneOptionsByBusinessUnitDTO(string originalBusinessUnitCode = default(string), List businessUnitCodes = default(List)) - { - this.OriginalBusinessUnitCode = originalBusinessUnitCode; - this.BusinessUnitCodes = businessUnitCodes; - } - - /// - /// Business unit source - /// - /// Business unit source - [DataMember(Name="originalBusinessUnitCode", EmitDefaultValue=false)] - public string OriginalBusinessUnitCode { get; set; } - - /// - /// Destination business units - /// - /// Destination business units - [DataMember(Name="businessUnitCodes", EmitDefaultValue=false)] - public List BusinessUnitCodes { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeReceivingCloneOptionsByBusinessUnitDTO {\n"); - sb.Append(" OriginalBusinessUnitCode: ").Append(OriginalBusinessUnitCode).Append("\n"); - sb.Append(" BusinessUnitCodes: ").Append(BusinessUnitCodes).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeReceivingCloneOptionsByBusinessUnitDTO); - } - - /// - /// Returns true if IxFeReceivingCloneOptionsByBusinessUnitDTO instances are equal - /// - /// Instance of IxFeReceivingCloneOptionsByBusinessUnitDTO to be compared - /// Boolean - public bool Equals(IxFeReceivingCloneOptionsByBusinessUnitDTO input) - { - if (input == null) - return false; - - return - ( - this.OriginalBusinessUnitCode == input.OriginalBusinessUnitCode || - (this.OriginalBusinessUnitCode != null && - this.OriginalBusinessUnitCode.Equals(input.OriginalBusinessUnitCode)) - ) && - ( - this.BusinessUnitCodes == input.BusinessUnitCodes || - this.BusinessUnitCodes != null && - this.BusinessUnitCodes.SequenceEqual(input.BusinessUnitCodes) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.OriginalBusinessUnitCode != null) - hashCode = hashCode * 59 + this.OriginalBusinessUnitCode.GetHashCode(); - if (this.BusinessUnitCodes != null) - hashCode = hashCode * 59 + this.BusinessUnitCodes.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeReceivingMappingDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeReceivingMappingDTO.cs deleted file mode 100644 index 4dd6f9e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeReceivingMappingDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of IX-FE receiving settings mapping - /// - [DataContract] - public partial class IxFeReceivingMappingDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: File 1: Invoice 2: NotificationSending 3: NotificationReceiving . - /// Arxivar field. - /// IX-FE field. - public IxFeReceivingMappingDTO(int? context = default(int?), FieldManagementDTO arxField = default(FieldManagementDTO), IxFeFieldDTO ixField = default(IxFeFieldDTO)) - { - this.Context = context; - this.ArxField = arxField; - this.IxField = ixField; - } - - /// - /// Possible values: 0: File 1: Invoice 2: NotificationSending 3: NotificationReceiving - /// - /// Possible values: 0: File 1: Invoice 2: NotificationSending 3: NotificationReceiving - [DataMember(Name="context", EmitDefaultValue=false)] - public int? Context { get; set; } - - /// - /// Arxivar field - /// - /// Arxivar field - [DataMember(Name="arxField", EmitDefaultValue=false)] - public FieldManagementDTO ArxField { get; set; } - - /// - /// IX-FE field - /// - /// IX-FE field - [DataMember(Name="ixField", EmitDefaultValue=false)] - public IxFeFieldDTO IxField { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeReceivingMappingDTO {\n"); - sb.Append(" Context: ").Append(Context).Append("\n"); - sb.Append(" ArxField: ").Append(ArxField).Append("\n"); - sb.Append(" IxField: ").Append(IxField).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeReceivingMappingDTO); - } - - /// - /// Returns true if IxFeReceivingMappingDTO instances are equal - /// - /// Instance of IxFeReceivingMappingDTO to be compared - /// Boolean - public bool Equals(IxFeReceivingMappingDTO input) - { - if (input == null) - return false; - - return - ( - this.Context == input.Context || - (this.Context != null && - this.Context.Equals(input.Context)) - ) && - ( - this.ArxField == input.ArxField || - (this.ArxField != null && - this.ArxField.Equals(input.ArxField)) - ) && - ( - this.IxField == input.IxField || - (this.IxField != null && - this.IxField.Equals(input.IxField)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Context != null) - hashCode = hashCode * 59 + this.Context.GetHashCode(); - if (this.ArxField != null) - hashCode = hashCode * 59 + this.ArxField.GetHashCode(); - if (this.IxField != null) - hashCode = hashCode * 59 + this.IxField.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeReceivingSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeReceivingSettingsDTO.cs deleted file mode 100644 index 6a385e2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeReceivingSettingsDTO.cs +++ /dev/null @@ -1,295 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of IX-FE receiving settings - /// - [DataContract] - public partial class IxFeReceivingSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// IX Business unit. - /// Arxivar Business unit code. - /// Predefined profile for file. - /// Predefined profile for invoice. - /// Possible values: 0: Pdf 1: OriginalFile 2: None 3: XmlProfile . - /// Import attachments. - /// Arxivar field for IdVersamento IX CE mapping. - /// Arxivar field for IdDocumento IX CE code mapping. - /// Boolean which is true if the configuration is active. - /// Mapping. - public IxFeReceivingSettingsDTO(int? id = default(int?), IxBusinessUnitSimpleDTO ixBusinessUnit = default(IxBusinessUnitSimpleDTO), string businessUnitCode = default(string), PredefinedProfileSimpleDTO predefinedProfileForFile = default(PredefinedProfileSimpleDTO), PredefinedProfileSimpleDTO predefinedProfileForInvoice = default(PredefinedProfileSimpleDTO), int? fileBehavior = default(int?), bool? importAttachments = default(bool?), FieldManagementDTO idVersamentoIxCeField = default(FieldManagementDTO), FieldManagementDTO idDocumentoIxCeField = default(FieldManagementDTO), bool? enabled = default(bool?), List mapping = default(List)) - { - this.Id = id; - this.IxBusinessUnit = ixBusinessUnit; - this.BusinessUnitCode = businessUnitCode; - this.PredefinedProfileForFile = predefinedProfileForFile; - this.PredefinedProfileForInvoice = predefinedProfileForInvoice; - this.FileBehavior = fileBehavior; - this.ImportAttachments = importAttachments; - this.IdVersamentoIxCeField = idVersamentoIxCeField; - this.IdDocumentoIxCeField = idDocumentoIxCeField; - this.Enabled = enabled; - this.Mapping = mapping; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// IX Business unit - /// - /// IX Business unit - [DataMember(Name="ixBusinessUnit", EmitDefaultValue=false)] - public IxBusinessUnitSimpleDTO IxBusinessUnit { get; set; } - - /// - /// Arxivar Business unit code - /// - /// Arxivar Business unit code - [DataMember(Name="businessUnitCode", EmitDefaultValue=false)] - public string BusinessUnitCode { get; set; } - - /// - /// Predefined profile for file - /// - /// Predefined profile for file - [DataMember(Name="predefinedProfileForFile", EmitDefaultValue=false)] - public PredefinedProfileSimpleDTO PredefinedProfileForFile { get; set; } - - /// - /// Predefined profile for invoice - /// - /// Predefined profile for invoice - [DataMember(Name="predefinedProfileForInvoice", EmitDefaultValue=false)] - public PredefinedProfileSimpleDTO PredefinedProfileForInvoice { get; set; } - - /// - /// Possible values: 0: Pdf 1: OriginalFile 2: None 3: XmlProfile - /// - /// Possible values: 0: Pdf 1: OriginalFile 2: None 3: XmlProfile - [DataMember(Name="fileBehavior", EmitDefaultValue=false)] - public int? FileBehavior { get; set; } - - /// - /// Import attachments - /// - /// Import attachments - [DataMember(Name="importAttachments", EmitDefaultValue=false)] - public bool? ImportAttachments { get; set; } - - /// - /// Arxivar field for IdVersamento IX CE mapping - /// - /// Arxivar field for IdVersamento IX CE mapping - [DataMember(Name="idVersamentoIxCeField", EmitDefaultValue=false)] - public FieldManagementDTO IdVersamentoIxCeField { get; set; } - - /// - /// Arxivar field for IdDocumento IX CE code mapping - /// - /// Arxivar field for IdDocumento IX CE code mapping - [DataMember(Name="idDocumentoIxCeField", EmitDefaultValue=false)] - public FieldManagementDTO IdDocumentoIxCeField { get; set; } - - /// - /// Boolean which is true if the configuration is active - /// - /// Boolean which is true if the configuration is active - [DataMember(Name="enabled", EmitDefaultValue=false)] - public bool? Enabled { get; set; } - - /// - /// Mapping - /// - /// Mapping - [DataMember(Name="mapping", EmitDefaultValue=false)] - public List Mapping { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeReceivingSettingsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IxBusinessUnit: ").Append(IxBusinessUnit).Append("\n"); - sb.Append(" BusinessUnitCode: ").Append(BusinessUnitCode).Append("\n"); - sb.Append(" PredefinedProfileForFile: ").Append(PredefinedProfileForFile).Append("\n"); - sb.Append(" PredefinedProfileForInvoice: ").Append(PredefinedProfileForInvoice).Append("\n"); - sb.Append(" FileBehavior: ").Append(FileBehavior).Append("\n"); - sb.Append(" ImportAttachments: ").Append(ImportAttachments).Append("\n"); - sb.Append(" IdVersamentoIxCeField: ").Append(IdVersamentoIxCeField).Append("\n"); - sb.Append(" IdDocumentoIxCeField: ").Append(IdDocumentoIxCeField).Append("\n"); - sb.Append(" Enabled: ").Append(Enabled).Append("\n"); - sb.Append(" Mapping: ").Append(Mapping).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeReceivingSettingsDTO); - } - - /// - /// Returns true if IxFeReceivingSettingsDTO instances are equal - /// - /// Instance of IxFeReceivingSettingsDTO to be compared - /// Boolean - public bool Equals(IxFeReceivingSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.IxBusinessUnit == input.IxBusinessUnit || - (this.IxBusinessUnit != null && - this.IxBusinessUnit.Equals(input.IxBusinessUnit)) - ) && - ( - this.BusinessUnitCode == input.BusinessUnitCode || - (this.BusinessUnitCode != null && - this.BusinessUnitCode.Equals(input.BusinessUnitCode)) - ) && - ( - this.PredefinedProfileForFile == input.PredefinedProfileForFile || - (this.PredefinedProfileForFile != null && - this.PredefinedProfileForFile.Equals(input.PredefinedProfileForFile)) - ) && - ( - this.PredefinedProfileForInvoice == input.PredefinedProfileForInvoice || - (this.PredefinedProfileForInvoice != null && - this.PredefinedProfileForInvoice.Equals(input.PredefinedProfileForInvoice)) - ) && - ( - this.FileBehavior == input.FileBehavior || - (this.FileBehavior != null && - this.FileBehavior.Equals(input.FileBehavior)) - ) && - ( - this.ImportAttachments == input.ImportAttachments || - (this.ImportAttachments != null && - this.ImportAttachments.Equals(input.ImportAttachments)) - ) && - ( - this.IdVersamentoIxCeField == input.IdVersamentoIxCeField || - (this.IdVersamentoIxCeField != null && - this.IdVersamentoIxCeField.Equals(input.IdVersamentoIxCeField)) - ) && - ( - this.IdDocumentoIxCeField == input.IdDocumentoIxCeField || - (this.IdDocumentoIxCeField != null && - this.IdDocumentoIxCeField.Equals(input.IdDocumentoIxCeField)) - ) && - ( - this.Enabled == input.Enabled || - (this.Enabled != null && - this.Enabled.Equals(input.Enabled)) - ) && - ( - this.Mapping == input.Mapping || - this.Mapping != null && - this.Mapping.SequenceEqual(input.Mapping) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.IxBusinessUnit != null) - hashCode = hashCode * 59 + this.IxBusinessUnit.GetHashCode(); - if (this.BusinessUnitCode != null) - hashCode = hashCode * 59 + this.BusinessUnitCode.GetHashCode(); - if (this.PredefinedProfileForFile != null) - hashCode = hashCode * 59 + this.PredefinedProfileForFile.GetHashCode(); - if (this.PredefinedProfileForInvoice != null) - hashCode = hashCode * 59 + this.PredefinedProfileForInvoice.GetHashCode(); - if (this.FileBehavior != null) - hashCode = hashCode * 59 + this.FileBehavior.GetHashCode(); - if (this.ImportAttachments != null) - hashCode = hashCode * 59 + this.ImportAttachments.GetHashCode(); - if (this.IdVersamentoIxCeField != null) - hashCode = hashCode * 59 + this.IdVersamentoIxCeField.GetHashCode(); - if (this.IdDocumentoIxCeField != null) - hashCode = hashCode * 59 + this.IdDocumentoIxCeField.GetHashCode(); - if (this.Enabled != null) - hashCode = hashCode * 59 + this.Enabled.GetHashCode(); - if (this.Mapping != null) - hashCode = hashCode * 59 + this.Mapping.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeSendingCloneOptionsByBusinessUnitDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeSendingCloneOptionsByBusinessUnitDTO.cs deleted file mode 100644 index dc93333..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeSendingCloneOptionsByBusinessUnitDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for cloning sending settings by business unit for IX-FE - /// - [DataContract] - public partial class IxFeSendingCloneOptionsByBusinessUnitDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Business unit source. - /// Rules to clone. - /// Destination business units. - public IxFeSendingCloneOptionsByBusinessUnitDTO(string originalBusinessUnitCode = default(string), List originalRuleIds = default(List), List businessUnitCodes = default(List)) - { - this.OriginalBusinessUnitCode = originalBusinessUnitCode; - this.OriginalRuleIds = originalRuleIds; - this.BusinessUnitCodes = businessUnitCodes; - } - - /// - /// Business unit source - /// - /// Business unit source - [DataMember(Name="originalBusinessUnitCode", EmitDefaultValue=false)] - public string OriginalBusinessUnitCode { get; set; } - - /// - /// Rules to clone - /// - /// Rules to clone - [DataMember(Name="originalRuleIds", EmitDefaultValue=false)] - public List OriginalRuleIds { get; set; } - - /// - /// Destination business units - /// - /// Destination business units - [DataMember(Name="businessUnitCodes", EmitDefaultValue=false)] - public List BusinessUnitCodes { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeSendingCloneOptionsByBusinessUnitDTO {\n"); - sb.Append(" OriginalBusinessUnitCode: ").Append(OriginalBusinessUnitCode).Append("\n"); - sb.Append(" OriginalRuleIds: ").Append(OriginalRuleIds).Append("\n"); - sb.Append(" BusinessUnitCodes: ").Append(BusinessUnitCodes).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeSendingCloneOptionsByBusinessUnitDTO); - } - - /// - /// Returns true if IxFeSendingCloneOptionsByBusinessUnitDTO instances are equal - /// - /// Instance of IxFeSendingCloneOptionsByBusinessUnitDTO to be compared - /// Boolean - public bool Equals(IxFeSendingCloneOptionsByBusinessUnitDTO input) - { - if (input == null) - return false; - - return - ( - this.OriginalBusinessUnitCode == input.OriginalBusinessUnitCode || - (this.OriginalBusinessUnitCode != null && - this.OriginalBusinessUnitCode.Equals(input.OriginalBusinessUnitCode)) - ) && - ( - this.OriginalRuleIds == input.OriginalRuleIds || - this.OriginalRuleIds != null && - this.OriginalRuleIds.SequenceEqual(input.OriginalRuleIds) - ) && - ( - this.BusinessUnitCodes == input.BusinessUnitCodes || - this.BusinessUnitCodes != null && - this.BusinessUnitCodes.SequenceEqual(input.BusinessUnitCodes) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.OriginalBusinessUnitCode != null) - hashCode = hashCode * 59 + this.OriginalBusinessUnitCode.GetHashCode(); - if (this.OriginalRuleIds != null) - hashCode = hashCode * 59 + this.OriginalRuleIds.GetHashCode(); - if (this.BusinessUnitCodes != null) - hashCode = hashCode * 59 + this.BusinessUnitCodes.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeSendingSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeSendingSettingsDTO.cs deleted file mode 100644 index 97b3c7f..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxFeSendingSettingsDTO.cs +++ /dev/null @@ -1,346 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of IX-FE sending settings - /// - [DataContract] - public partial class IxFeSendingSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Arxivar Business unit code. - /// Search. - /// Arxivar document type. - /// Boolean which is true if the configuration is active. - /// Priority. - /// Enable automatic send with search. - /// Timing for automatic send with search. - /// Arxivar Field for Vat sectional mapping. - /// Arxivar field for SDI code mapping. - /// Arxivar field for IdVersamento IX CE mapping. - /// Arxivar field for IdDocumento IX CE code mapping. - /// Possible values: 0: OnlySend 1: P7mComposition . - /// Has custome credentials. - public IxFeSendingSettingsDTO(int? id = default(int?), string businessUnitCode = default(string), FindSimpleDTO search = default(FindSimpleDTO), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), bool? enabled = default(bool?), int? priority = default(int?), bool? autoFind = default(bool?), int? autoFindMinutes = default(int?), FieldManagementDTO ixVatField = default(FieldManagementDTO), FieldManagementDTO ixSdiField = default(FieldManagementDTO), FieldManagementDTO idVersamentoIxCeField = default(FieldManagementDTO), FieldManagementDTO idDocumentoIxCeField = default(FieldManagementDTO), int? sendingMode = default(int?), bool? hasCustomCredentials = default(bool?)) - { - this.Id = id; - this.BusinessUnitCode = businessUnitCode; - this.Search = search; - this.DocumentType = documentType; - this.Enabled = enabled; - this.Priority = priority; - this.AutoFind = autoFind; - this.AutoFindMinutes = autoFindMinutes; - this.IxVatField = ixVatField; - this.IxSdiField = ixSdiField; - this.IdVersamentoIxCeField = idVersamentoIxCeField; - this.IdDocumentoIxCeField = idDocumentoIxCeField; - this.SendingMode = sendingMode; - this.HasCustomCredentials = hasCustomCredentials; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Arxivar Business unit code - /// - /// Arxivar Business unit code - [DataMember(Name="businessUnitCode", EmitDefaultValue=false)] - public string BusinessUnitCode { get; set; } - - /// - /// Search - /// - /// Search - [DataMember(Name="search", EmitDefaultValue=false)] - public FindSimpleDTO Search { get; set; } - - /// - /// Arxivar document type - /// - /// Arxivar document type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Boolean which is true if the configuration is active - /// - /// Boolean which is true if the configuration is active - [DataMember(Name="enabled", EmitDefaultValue=false)] - public bool? Enabled { get; set; } - - /// - /// Priority - /// - /// Priority - [DataMember(Name="priority", EmitDefaultValue=false)] - public int? Priority { get; set; } - - /// - /// Enable automatic send with search - /// - /// Enable automatic send with search - [DataMember(Name="autoFind", EmitDefaultValue=false)] - public bool? AutoFind { get; set; } - - /// - /// Timing for automatic send with search - /// - /// Timing for automatic send with search - [DataMember(Name="autoFindMinutes", EmitDefaultValue=false)] - public int? AutoFindMinutes { get; set; } - - /// - /// Arxivar Field for Vat sectional mapping - /// - /// Arxivar Field for Vat sectional mapping - [DataMember(Name="ixVatField", EmitDefaultValue=false)] - public FieldManagementDTO IxVatField { get; set; } - - /// - /// Arxivar field for SDI code mapping - /// - /// Arxivar field for SDI code mapping - [DataMember(Name="ixSdiField", EmitDefaultValue=false)] - public FieldManagementDTO IxSdiField { get; set; } - - /// - /// Arxivar field for IdVersamento IX CE mapping - /// - /// Arxivar field for IdVersamento IX CE mapping - [DataMember(Name="idVersamentoIxCeField", EmitDefaultValue=false)] - public FieldManagementDTO IdVersamentoIxCeField { get; set; } - - /// - /// Arxivar field for IdDocumento IX CE code mapping - /// - /// Arxivar field for IdDocumento IX CE code mapping - [DataMember(Name="idDocumentoIxCeField", EmitDefaultValue=false)] - public FieldManagementDTO IdDocumentoIxCeField { get; set; } - - /// - /// Possible values: 0: OnlySend 1: P7mComposition - /// - /// Possible values: 0: OnlySend 1: P7mComposition - [DataMember(Name="sendingMode", EmitDefaultValue=false)] - public int? SendingMode { get; set; } - - /// - /// Has custome credentials - /// - /// Has custome credentials - [DataMember(Name="hasCustomCredentials", EmitDefaultValue=false)] - public bool? HasCustomCredentials { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxFeSendingSettingsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" BusinessUnitCode: ").Append(BusinessUnitCode).Append("\n"); - sb.Append(" Search: ").Append(Search).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Enabled: ").Append(Enabled).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" AutoFind: ").Append(AutoFind).Append("\n"); - sb.Append(" AutoFindMinutes: ").Append(AutoFindMinutes).Append("\n"); - sb.Append(" IxVatField: ").Append(IxVatField).Append("\n"); - sb.Append(" IxSdiField: ").Append(IxSdiField).Append("\n"); - sb.Append(" IdVersamentoIxCeField: ").Append(IdVersamentoIxCeField).Append("\n"); - sb.Append(" IdDocumentoIxCeField: ").Append(IdDocumentoIxCeField).Append("\n"); - sb.Append(" SendingMode: ").Append(SendingMode).Append("\n"); - sb.Append(" HasCustomCredentials: ").Append(HasCustomCredentials).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxFeSendingSettingsDTO); - } - - /// - /// Returns true if IxFeSendingSettingsDTO instances are equal - /// - /// Instance of IxFeSendingSettingsDTO to be compared - /// Boolean - public bool Equals(IxFeSendingSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.BusinessUnitCode == input.BusinessUnitCode || - (this.BusinessUnitCode != null && - this.BusinessUnitCode.Equals(input.BusinessUnitCode)) - ) && - ( - this.Search == input.Search || - (this.Search != null && - this.Search.Equals(input.Search)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Enabled == input.Enabled || - (this.Enabled != null && - this.Enabled.Equals(input.Enabled)) - ) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && - ( - this.AutoFind == input.AutoFind || - (this.AutoFind != null && - this.AutoFind.Equals(input.AutoFind)) - ) && - ( - this.AutoFindMinutes == input.AutoFindMinutes || - (this.AutoFindMinutes != null && - this.AutoFindMinutes.Equals(input.AutoFindMinutes)) - ) && - ( - this.IxVatField == input.IxVatField || - (this.IxVatField != null && - this.IxVatField.Equals(input.IxVatField)) - ) && - ( - this.IxSdiField == input.IxSdiField || - (this.IxSdiField != null && - this.IxSdiField.Equals(input.IxSdiField)) - ) && - ( - this.IdVersamentoIxCeField == input.IdVersamentoIxCeField || - (this.IdVersamentoIxCeField != null && - this.IdVersamentoIxCeField.Equals(input.IdVersamentoIxCeField)) - ) && - ( - this.IdDocumentoIxCeField == input.IdDocumentoIxCeField || - (this.IdDocumentoIxCeField != null && - this.IdDocumentoIxCeField.Equals(input.IdDocumentoIxCeField)) - ) && - ( - this.SendingMode == input.SendingMode || - (this.SendingMode != null && - this.SendingMode.Equals(input.SendingMode)) - ) && - ( - this.HasCustomCredentials == input.HasCustomCredentials || - (this.HasCustomCredentials != null && - this.HasCustomCredentials.Equals(input.HasCustomCredentials)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.BusinessUnitCode != null) - hashCode = hashCode * 59 + this.BusinessUnitCode.GetHashCode(); - if (this.Search != null) - hashCode = hashCode * 59 + this.Search.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Enabled != null) - hashCode = hashCode * 59 + this.Enabled.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.AutoFind != null) - hashCode = hashCode * 59 + this.AutoFind.GetHashCode(); - if (this.AutoFindMinutes != null) - hashCode = hashCode * 59 + this.AutoFindMinutes.GetHashCode(); - if (this.IxVatField != null) - hashCode = hashCode * 59 + this.IxVatField.GetHashCode(); - if (this.IxSdiField != null) - hashCode = hashCode * 59 + this.IxSdiField.GetHashCode(); - if (this.IdVersamentoIxCeField != null) - hashCode = hashCode * 59 + this.IdVersamentoIxCeField.GetHashCode(); - if (this.IdDocumentoIxCeField != null) - hashCode = hashCode * 59 + this.IdDocumentoIxCeField.GetHashCode(); - if (this.SendingMode != null) - hashCode = hashCode * 59 + this.SendingMode.GetHashCode(); - if (this.HasCustomCredentials != null) - hashCode = hashCode * 59 + this.HasCustomCredentials.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxSendingSettingsSortOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/IxSendingSettingsSortOptionsDTO.cs deleted file mode 100644 index 2b8a4ae..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/IxSendingSettingsSortOptionsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// This class contains options for sorting business unit sending settings - /// - [DataContract] - public partial class IxSendingSettingsSortOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Order. - public IxSendingSettingsSortOptionsDTO(int? id = default(int?), int? order = default(int?)) - { - this.Id = id; - this.Order = order; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Order - /// - /// Order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class IxSendingSettingsSortOptionsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as IxSendingSettingsSortOptionsDTO); - } - - /// - /// Returns true if IxSendingSettingsSortOptionsDTO instances are equal - /// - /// Instance of IxSendingSettingsSortOptionsDTO to be compared - /// Boolean - public bool Equals(IxSendingSettingsSortOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/JoinDmDatiProfilo.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/JoinDmDatiProfilo.cs deleted file mode 100644 index 59720d0..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/JoinDmDatiProfilo.cs +++ /dev/null @@ -1,765 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// JoinDmDatiProfilo - /// - [DataContract] - public partial class JoinDmDatiProfilo : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// legameTabella. - /// id. - /// docnumber. - /// campo. - /// valore. - /// contatti. - /// fax. - /// tel. - /// indirizzo. - /// mail. - /// localita. - /// cap. - /// provincia. - /// nazione. - /// codice. - /// contatto. - /// mansione. - /// telnome. - /// faxnome. - /// cell. - /// abitazione. - /// reparto. - /// ufficio. - /// email. - /// riferimento. - /// codfis. - /// partiva. - /// priorita. - /// idrubrica. - /// idcontatto. - /// codiceufficio. - /// codiceipa. - /// pecrubrica. - /// feaenabled. - /// feaexpiredate. - /// nome. - /// cognome. - /// pec. - /// forceCaseInsensitive. - /// Possible values: 0: INNER 1: LEFT 2: RIGHT . - /// nomeTabella. - public JoinDmDatiProfilo(string legameTabella = default(string), FieldInt id = default(FieldInt), FieldInt docnumber = default(FieldInt), FieldString campo = default(FieldString), FieldString valore = default(FieldString), FieldString contatti = default(FieldString), FieldString fax = default(FieldString), FieldString tel = default(FieldString), FieldString indirizzo = default(FieldString), FieldString mail = default(FieldString), FieldString localita = default(FieldString), FieldString cap = default(FieldString), FieldString provincia = default(FieldString), FieldString nazione = default(FieldString), FieldString codice = default(FieldString), FieldString contatto = default(FieldString), FieldString mansione = default(FieldString), FieldString telnome = default(FieldString), FieldString faxnome = default(FieldString), FieldString cell = default(FieldString), FieldString abitazione = default(FieldString), FieldString reparto = default(FieldString), FieldString ufficio = default(FieldString), FieldString email = default(FieldString), FieldString riferimento = default(FieldString), FieldString codfis = default(FieldString), FieldString partiva = default(FieldString), FieldString priorita = default(FieldString), FieldInt idrubrica = default(FieldInt), FieldInt idcontatto = default(FieldInt), FieldString codiceufficio = default(FieldString), FieldString codiceipa = default(FieldString), FieldString pecrubrica = default(FieldString), FieldInt feaenabled = default(FieldInt), FieldDateTime feaexpiredate = default(FieldDateTime), FieldString nome = default(FieldString), FieldString cognome = default(FieldString), FieldString pec = default(FieldString), bool? forceCaseInsensitive = default(bool?), int? joinMode = default(int?), string nomeTabella = default(string)) - { - this.LegameTabella = legameTabella; - this.Id = id; - this.Docnumber = docnumber; - this.Campo = campo; - this.Valore = valore; - this.Contatti = contatti; - this.Fax = fax; - this.Tel = tel; - this.Indirizzo = indirizzo; - this.Mail = mail; - this.Localita = localita; - this.Cap = cap; - this.Provincia = provincia; - this.Nazione = nazione; - this.Codice = codice; - this.Contatto = contatto; - this.Mansione = mansione; - this.Telnome = telnome; - this.Faxnome = faxnome; - this.Cell = cell; - this.Abitazione = abitazione; - this.Reparto = reparto; - this.Ufficio = ufficio; - this.Email = email; - this.Riferimento = riferimento; - this.Codfis = codfis; - this.Partiva = partiva; - this.Priorita = priorita; - this.Idrubrica = idrubrica; - this.Idcontatto = idcontatto; - this.Codiceufficio = codiceufficio; - this.Codiceipa = codiceipa; - this.Pecrubrica = pecrubrica; - this.Feaenabled = feaenabled; - this.Feaexpiredate = feaexpiredate; - this.Nome = nome; - this.Cognome = cognome; - this.Pec = pec; - this.ForceCaseInsensitive = forceCaseInsensitive; - this.JoinMode = joinMode; - this.NomeTabella = nomeTabella; - } - - /// - /// Gets or Sets LegameTabella - /// - [DataMember(Name="legameTabella", EmitDefaultValue=false)] - public string LegameTabella { get; set; } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public FieldInt Id { get; set; } - - /// - /// Gets or Sets Docnumber - /// - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public FieldInt Docnumber { get; set; } - - /// - /// Gets or Sets Campo - /// - [DataMember(Name="campo", EmitDefaultValue=false)] - public FieldString Campo { get; set; } - - /// - /// Gets or Sets Valore - /// - [DataMember(Name="valore", EmitDefaultValue=false)] - public FieldString Valore { get; set; } - - /// - /// Gets or Sets Contatti - /// - [DataMember(Name="contatti", EmitDefaultValue=false)] - public FieldString Contatti { get; set; } - - /// - /// Gets or Sets Fax - /// - [DataMember(Name="fax", EmitDefaultValue=false)] - public FieldString Fax { get; set; } - - /// - /// Gets or Sets Tel - /// - [DataMember(Name="tel", EmitDefaultValue=false)] - public FieldString Tel { get; set; } - - /// - /// Gets or Sets Indirizzo - /// - [DataMember(Name="indirizzo", EmitDefaultValue=false)] - public FieldString Indirizzo { get; set; } - - /// - /// Gets or Sets Mail - /// - [DataMember(Name="mail", EmitDefaultValue=false)] - public FieldString Mail { get; set; } - - /// - /// Gets or Sets Localita - /// - [DataMember(Name="localita", EmitDefaultValue=false)] - public FieldString Localita { get; set; } - - /// - /// Gets or Sets Cap - /// - [DataMember(Name="cap", EmitDefaultValue=false)] - public FieldString Cap { get; set; } - - /// - /// Gets or Sets Provincia - /// - [DataMember(Name="provincia", EmitDefaultValue=false)] - public FieldString Provincia { get; set; } - - /// - /// Gets or Sets Nazione - /// - [DataMember(Name="nazione", EmitDefaultValue=false)] - public FieldString Nazione { get; set; } - - /// - /// Gets or Sets Codice - /// - [DataMember(Name="codice", EmitDefaultValue=false)] - public FieldString Codice { get; set; } - - /// - /// Gets or Sets Contatto - /// - [DataMember(Name="contatto", EmitDefaultValue=false)] - public FieldString Contatto { get; set; } - - /// - /// Gets or Sets Mansione - /// - [DataMember(Name="mansione", EmitDefaultValue=false)] - public FieldString Mansione { get; set; } - - /// - /// Gets or Sets Telnome - /// - [DataMember(Name="telnome", EmitDefaultValue=false)] - public FieldString Telnome { get; set; } - - /// - /// Gets or Sets Faxnome - /// - [DataMember(Name="faxnome", EmitDefaultValue=false)] - public FieldString Faxnome { get; set; } - - /// - /// Gets or Sets Cell - /// - [DataMember(Name="cell", EmitDefaultValue=false)] - public FieldString Cell { get; set; } - - /// - /// Gets or Sets Abitazione - /// - [DataMember(Name="abitazione", EmitDefaultValue=false)] - public FieldString Abitazione { get; set; } - - /// - /// Gets or Sets Reparto - /// - [DataMember(Name="reparto", EmitDefaultValue=false)] - public FieldString Reparto { get; set; } - - /// - /// Gets or Sets Ufficio - /// - [DataMember(Name="ufficio", EmitDefaultValue=false)] - public FieldString Ufficio { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="email", EmitDefaultValue=false)] - public FieldString Email { get; set; } - - /// - /// Gets or Sets Riferimento - /// - [DataMember(Name="riferimento", EmitDefaultValue=false)] - public FieldString Riferimento { get; set; } - - /// - /// Gets or Sets Codfis - /// - [DataMember(Name="codfis", EmitDefaultValue=false)] - public FieldString Codfis { get; set; } - - /// - /// Gets or Sets Partiva - /// - [DataMember(Name="partiva", EmitDefaultValue=false)] - public FieldString Partiva { get; set; } - - /// - /// Gets or Sets Priorita - /// - [DataMember(Name="priorita", EmitDefaultValue=false)] - public FieldString Priorita { get; set; } - - /// - /// Gets or Sets Idrubrica - /// - [DataMember(Name="idrubrica", EmitDefaultValue=false)] - public FieldInt Idrubrica { get; set; } - - /// - /// Gets or Sets Idcontatto - /// - [DataMember(Name="idcontatto", EmitDefaultValue=false)] - public FieldInt Idcontatto { get; set; } - - /// - /// Gets or Sets Codiceufficio - /// - [DataMember(Name="codiceufficio", EmitDefaultValue=false)] - public FieldString Codiceufficio { get; set; } - - /// - /// Gets or Sets Codiceipa - /// - [DataMember(Name="codiceipa", EmitDefaultValue=false)] - public FieldString Codiceipa { get; set; } - - /// - /// Gets or Sets Pecrubrica - /// - [DataMember(Name="pecrubrica", EmitDefaultValue=false)] - public FieldString Pecrubrica { get; set; } - - /// - /// Gets or Sets Feaenabled - /// - [DataMember(Name="feaenabled", EmitDefaultValue=false)] - public FieldInt Feaenabled { get; set; } - - /// - /// Gets or Sets Feaexpiredate - /// - [DataMember(Name="feaexpiredate", EmitDefaultValue=false)] - public FieldDateTime Feaexpiredate { get; set; } - - /// - /// Gets or Sets Nome - /// - [DataMember(Name="nome", EmitDefaultValue=false)] - public FieldString Nome { get; set; } - - /// - /// Gets or Sets Cognome - /// - [DataMember(Name="cognome", EmitDefaultValue=false)] - public FieldString Cognome { get; set; } - - /// - /// Gets or Sets Pec - /// - [DataMember(Name="pec", EmitDefaultValue=false)] - public FieldString Pec { get; set; } - - /// - /// Gets or Sets ForceCaseInsensitive - /// - [DataMember(Name="forceCaseInsensitive", EmitDefaultValue=false)] - public bool? ForceCaseInsensitive { get; set; } - - /// - /// Possible values: 0: INNER 1: LEFT 2: RIGHT - /// - /// Possible values: 0: INNER 1: LEFT 2: RIGHT - [DataMember(Name="joinMode", EmitDefaultValue=false)] - public int? JoinMode { get; set; } - - /// - /// Gets or Sets NomeTabella - /// - [DataMember(Name="nomeTabella", EmitDefaultValue=false)] - public string NomeTabella { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JoinDmDatiProfilo {\n"); - sb.Append(" LegameTabella: ").Append(LegameTabella).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Campo: ").Append(Campo).Append("\n"); - sb.Append(" Valore: ").Append(Valore).Append("\n"); - sb.Append(" Contatti: ").Append(Contatti).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" Tel: ").Append(Tel).Append("\n"); - sb.Append(" Indirizzo: ").Append(Indirizzo).Append("\n"); - sb.Append(" Mail: ").Append(Mail).Append("\n"); - sb.Append(" Localita: ").Append(Localita).Append("\n"); - sb.Append(" Cap: ").Append(Cap).Append("\n"); - sb.Append(" Provincia: ").Append(Provincia).Append("\n"); - sb.Append(" Nazione: ").Append(Nazione).Append("\n"); - sb.Append(" Codice: ").Append(Codice).Append("\n"); - sb.Append(" Contatto: ").Append(Contatto).Append("\n"); - sb.Append(" Mansione: ").Append(Mansione).Append("\n"); - sb.Append(" Telnome: ").Append(Telnome).Append("\n"); - sb.Append(" Faxnome: ").Append(Faxnome).Append("\n"); - sb.Append(" Cell: ").Append(Cell).Append("\n"); - sb.Append(" Abitazione: ").Append(Abitazione).Append("\n"); - sb.Append(" Reparto: ").Append(Reparto).Append("\n"); - sb.Append(" Ufficio: ").Append(Ufficio).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Riferimento: ").Append(Riferimento).Append("\n"); - sb.Append(" Codfis: ").Append(Codfis).Append("\n"); - sb.Append(" Partiva: ").Append(Partiva).Append("\n"); - sb.Append(" Priorita: ").Append(Priorita).Append("\n"); - sb.Append(" Idrubrica: ").Append(Idrubrica).Append("\n"); - sb.Append(" Idcontatto: ").Append(Idcontatto).Append("\n"); - sb.Append(" Codiceufficio: ").Append(Codiceufficio).Append("\n"); - sb.Append(" Codiceipa: ").Append(Codiceipa).Append("\n"); - sb.Append(" Pecrubrica: ").Append(Pecrubrica).Append("\n"); - sb.Append(" Feaenabled: ").Append(Feaenabled).Append("\n"); - sb.Append(" Feaexpiredate: ").Append(Feaexpiredate).Append("\n"); - sb.Append(" Nome: ").Append(Nome).Append("\n"); - sb.Append(" Cognome: ").Append(Cognome).Append("\n"); - sb.Append(" Pec: ").Append(Pec).Append("\n"); - sb.Append(" ForceCaseInsensitive: ").Append(ForceCaseInsensitive).Append("\n"); - sb.Append(" JoinMode: ").Append(JoinMode).Append("\n"); - sb.Append(" NomeTabella: ").Append(NomeTabella).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JoinDmDatiProfilo); - } - - /// - /// Returns true if JoinDmDatiProfilo instances are equal - /// - /// Instance of JoinDmDatiProfilo to be compared - /// Boolean - public bool Equals(JoinDmDatiProfilo input) - { - if (input == null) - return false; - - return - ( - this.LegameTabella == input.LegameTabella || - (this.LegameTabella != null && - this.LegameTabella.Equals(input.LegameTabella)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Campo == input.Campo || - (this.Campo != null && - this.Campo.Equals(input.Campo)) - ) && - ( - this.Valore == input.Valore || - (this.Valore != null && - this.Valore.Equals(input.Valore)) - ) && - ( - this.Contatti == input.Contatti || - (this.Contatti != null && - this.Contatti.Equals(input.Contatti)) - ) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && - ( - this.Tel == input.Tel || - (this.Tel != null && - this.Tel.Equals(input.Tel)) - ) && - ( - this.Indirizzo == input.Indirizzo || - (this.Indirizzo != null && - this.Indirizzo.Equals(input.Indirizzo)) - ) && - ( - this.Mail == input.Mail || - (this.Mail != null && - this.Mail.Equals(input.Mail)) - ) && - ( - this.Localita == input.Localita || - (this.Localita != null && - this.Localita.Equals(input.Localita)) - ) && - ( - this.Cap == input.Cap || - (this.Cap != null && - this.Cap.Equals(input.Cap)) - ) && - ( - this.Provincia == input.Provincia || - (this.Provincia != null && - this.Provincia.Equals(input.Provincia)) - ) && - ( - this.Nazione == input.Nazione || - (this.Nazione != null && - this.Nazione.Equals(input.Nazione)) - ) && - ( - this.Codice == input.Codice || - (this.Codice != null && - this.Codice.Equals(input.Codice)) - ) && - ( - this.Contatto == input.Contatto || - (this.Contatto != null && - this.Contatto.Equals(input.Contatto)) - ) && - ( - this.Mansione == input.Mansione || - (this.Mansione != null && - this.Mansione.Equals(input.Mansione)) - ) && - ( - this.Telnome == input.Telnome || - (this.Telnome != null && - this.Telnome.Equals(input.Telnome)) - ) && - ( - this.Faxnome == input.Faxnome || - (this.Faxnome != null && - this.Faxnome.Equals(input.Faxnome)) - ) && - ( - this.Cell == input.Cell || - (this.Cell != null && - this.Cell.Equals(input.Cell)) - ) && - ( - this.Abitazione == input.Abitazione || - (this.Abitazione != null && - this.Abitazione.Equals(input.Abitazione)) - ) && - ( - this.Reparto == input.Reparto || - (this.Reparto != null && - this.Reparto.Equals(input.Reparto)) - ) && - ( - this.Ufficio == input.Ufficio || - (this.Ufficio != null && - this.Ufficio.Equals(input.Ufficio)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.Riferimento == input.Riferimento || - (this.Riferimento != null && - this.Riferimento.Equals(input.Riferimento)) - ) && - ( - this.Codfis == input.Codfis || - (this.Codfis != null && - this.Codfis.Equals(input.Codfis)) - ) && - ( - this.Partiva == input.Partiva || - (this.Partiva != null && - this.Partiva.Equals(input.Partiva)) - ) && - ( - this.Priorita == input.Priorita || - (this.Priorita != null && - this.Priorita.Equals(input.Priorita)) - ) && - ( - this.Idrubrica == input.Idrubrica || - (this.Idrubrica != null && - this.Idrubrica.Equals(input.Idrubrica)) - ) && - ( - this.Idcontatto == input.Idcontatto || - (this.Idcontatto != null && - this.Idcontatto.Equals(input.Idcontatto)) - ) && - ( - this.Codiceufficio == input.Codiceufficio || - (this.Codiceufficio != null && - this.Codiceufficio.Equals(input.Codiceufficio)) - ) && - ( - this.Codiceipa == input.Codiceipa || - (this.Codiceipa != null && - this.Codiceipa.Equals(input.Codiceipa)) - ) && - ( - this.Pecrubrica == input.Pecrubrica || - (this.Pecrubrica != null && - this.Pecrubrica.Equals(input.Pecrubrica)) - ) && - ( - this.Feaenabled == input.Feaenabled || - (this.Feaenabled != null && - this.Feaenabled.Equals(input.Feaenabled)) - ) && - ( - this.Feaexpiredate == input.Feaexpiredate || - (this.Feaexpiredate != null && - this.Feaexpiredate.Equals(input.Feaexpiredate)) - ) && - ( - this.Nome == input.Nome || - (this.Nome != null && - this.Nome.Equals(input.Nome)) - ) && - ( - this.Cognome == input.Cognome || - (this.Cognome != null && - this.Cognome.Equals(input.Cognome)) - ) && - ( - this.Pec == input.Pec || - (this.Pec != null && - this.Pec.Equals(input.Pec)) - ) && - ( - this.ForceCaseInsensitive == input.ForceCaseInsensitive || - (this.ForceCaseInsensitive != null && - this.ForceCaseInsensitive.Equals(input.ForceCaseInsensitive)) - ) && - ( - this.JoinMode == input.JoinMode || - (this.JoinMode != null && - this.JoinMode.Equals(input.JoinMode)) - ) && - ( - this.NomeTabella == input.NomeTabella || - (this.NomeTabella != null && - this.NomeTabella.Equals(input.NomeTabella)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.LegameTabella != null) - hashCode = hashCode * 59 + this.LegameTabella.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Campo != null) - hashCode = hashCode * 59 + this.Campo.GetHashCode(); - if (this.Valore != null) - hashCode = hashCode * 59 + this.Valore.GetHashCode(); - if (this.Contatti != null) - hashCode = hashCode * 59 + this.Contatti.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.Tel != null) - hashCode = hashCode * 59 + this.Tel.GetHashCode(); - if (this.Indirizzo != null) - hashCode = hashCode * 59 + this.Indirizzo.GetHashCode(); - if (this.Mail != null) - hashCode = hashCode * 59 + this.Mail.GetHashCode(); - if (this.Localita != null) - hashCode = hashCode * 59 + this.Localita.GetHashCode(); - if (this.Cap != null) - hashCode = hashCode * 59 + this.Cap.GetHashCode(); - if (this.Provincia != null) - hashCode = hashCode * 59 + this.Provincia.GetHashCode(); - if (this.Nazione != null) - hashCode = hashCode * 59 + this.Nazione.GetHashCode(); - if (this.Codice != null) - hashCode = hashCode * 59 + this.Codice.GetHashCode(); - if (this.Contatto != null) - hashCode = hashCode * 59 + this.Contatto.GetHashCode(); - if (this.Mansione != null) - hashCode = hashCode * 59 + this.Mansione.GetHashCode(); - if (this.Telnome != null) - hashCode = hashCode * 59 + this.Telnome.GetHashCode(); - if (this.Faxnome != null) - hashCode = hashCode * 59 + this.Faxnome.GetHashCode(); - if (this.Cell != null) - hashCode = hashCode * 59 + this.Cell.GetHashCode(); - if (this.Abitazione != null) - hashCode = hashCode * 59 + this.Abitazione.GetHashCode(); - if (this.Reparto != null) - hashCode = hashCode * 59 + this.Reparto.GetHashCode(); - if (this.Ufficio != null) - hashCode = hashCode * 59 + this.Ufficio.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Riferimento != null) - hashCode = hashCode * 59 + this.Riferimento.GetHashCode(); - if (this.Codfis != null) - hashCode = hashCode * 59 + this.Codfis.GetHashCode(); - if (this.Partiva != null) - hashCode = hashCode * 59 + this.Partiva.GetHashCode(); - if (this.Priorita != null) - hashCode = hashCode * 59 + this.Priorita.GetHashCode(); - if (this.Idrubrica != null) - hashCode = hashCode * 59 + this.Idrubrica.GetHashCode(); - if (this.Idcontatto != null) - hashCode = hashCode * 59 + this.Idcontatto.GetHashCode(); - if (this.Codiceufficio != null) - hashCode = hashCode * 59 + this.Codiceufficio.GetHashCode(); - if (this.Codiceipa != null) - hashCode = hashCode * 59 + this.Codiceipa.GetHashCode(); - if (this.Pecrubrica != null) - hashCode = hashCode * 59 + this.Pecrubrica.GetHashCode(); - if (this.Feaenabled != null) - hashCode = hashCode * 59 + this.Feaenabled.GetHashCode(); - if (this.Feaexpiredate != null) - hashCode = hashCode * 59 + this.Feaexpiredate.GetHashCode(); - if (this.Nome != null) - hashCode = hashCode * 59 + this.Nome.GetHashCode(); - if (this.Cognome != null) - hashCode = hashCode * 59 + this.Cognome.GetHashCode(); - if (this.Pec != null) - hashCode = hashCode * 59 + this.Pec.GetHashCode(); - if (this.ForceCaseInsensitive != null) - hashCode = hashCode * 59 + this.ForceCaseInsensitive.GetHashCode(); - if (this.JoinMode != null) - hashCode = hashCode * 59 + this.JoinMode.GetHashCode(); - if (this.NomeTabella != null) - hashCode = hashCode * 59 + this.NomeTabella.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/KeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/KeyValueDTO.cs deleted file mode 100644 index 6e25059..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/KeyValueDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Common object that define a set of key and value - /// - [DataContract] - public partial class KeyValueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Name of the field.. - /// Value of field.. - public KeyValueDTO(string name = default(string), string value = default(string)) - { - this.Name = name; - this.Value = value; - } - - /// - /// Name of the field. - /// - /// Name of the field. - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Value of field. - /// - /// Value of field. - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KeyValueDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KeyValueDTO); - } - - /// - /// Returns true if KeyValueDTO instances are equal - /// - /// Instance of KeyValueDTO to be compared - /// Boolean - public bool Equals(KeyValueDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseInfoDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseInfoDTO.cs deleted file mode 100644 index e773853..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseInfoDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class with all license configuration data - /// - [DataContract] - public partial class LicenseInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Possible values: 0: Active 1: Disabled 2: Revoked . - /// User modules. - /// User module associations. - /// Software. - /// Software associations. - public LicenseInfoDTO(int? id = default(int?), int? state = default(int?), List userModules = default(List), List userModuleAssociations = default(List), List software = default(List), List softwareAssociations = default(List)) - { - this.Id = id; - this.State = state; - this.UserModules = userModules; - this.UserModuleAssociations = userModuleAssociations; - this.Software = software; - this.SoftwareAssociations = softwareAssociations; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Possible values: 0: Active 1: Disabled 2: Revoked - /// - /// Possible values: 0: Active 1: Disabled 2: Revoked - [DataMember(Name="state", EmitDefaultValue=false)] - public int? State { get; set; } - - /// - /// User modules - /// - /// User modules - [DataMember(Name="userModules", EmitDefaultValue=false)] - public List UserModules { get; set; } - - /// - /// User module associations - /// - /// User module associations - [DataMember(Name="userModuleAssociations", EmitDefaultValue=false)] - public List UserModuleAssociations { get; set; } - - /// - /// Software - /// - /// Software - [DataMember(Name="software", EmitDefaultValue=false)] - public List Software { get; set; } - - /// - /// Software associations - /// - /// Software associations - [DataMember(Name="softwareAssociations", EmitDefaultValue=false)] - public List SoftwareAssociations { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LicenseInfoDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" UserModules: ").Append(UserModules).Append("\n"); - sb.Append(" UserModuleAssociations: ").Append(UserModuleAssociations).Append("\n"); - sb.Append(" Software: ").Append(Software).Append("\n"); - sb.Append(" SoftwareAssociations: ").Append(SoftwareAssociations).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LicenseInfoDTO); - } - - /// - /// Returns true if LicenseInfoDTO instances are equal - /// - /// Instance of LicenseInfoDTO to be compared - /// Boolean - public bool Equals(LicenseInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && - ( - this.UserModules == input.UserModules || - this.UserModules != null && - this.UserModules.SequenceEqual(input.UserModules) - ) && - ( - this.UserModuleAssociations == input.UserModuleAssociations || - this.UserModuleAssociations != null && - this.UserModuleAssociations.SequenceEqual(input.UserModuleAssociations) - ) && - ( - this.Software == input.Software || - this.Software != null && - this.Software.SequenceEqual(input.Software) - ) && - ( - this.SoftwareAssociations == input.SoftwareAssociations || - this.SoftwareAssociations != null && - this.SoftwareAssociations.SequenceEqual(input.SoftwareAssociations) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.UserModules != null) - hashCode = hashCode * 59 + this.UserModules.GetHashCode(); - if (this.UserModuleAssociations != null) - hashCode = hashCode * 59 + this.UserModuleAssociations.GetHashCode(); - if (this.Software != null) - hashCode = hashCode * 59 + this.Software.GetHashCode(); - if (this.SoftwareAssociations != null) - hashCode = hashCode * 59 + this.SoftwareAssociations.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseInfoInstalledSoftwareDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseInfoInstalledSoftwareDTO.cs deleted file mode 100644 index 07703ba..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseInfoInstalledSoftwareDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of installed modules/software - /// - [DataContract] - public partial class LicenseInfoInstalledSoftwareDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Name. - /// Details. - /// Machine Key. - /// Creation date. - /// Software associations. - public LicenseInfoInstalledSoftwareDTO(string name = default(string), string specification = default(string), string machineKey = default(string), DateTime? creationDate = default(DateTime?), string version = default(string)) - { - this.Name = name; - this.Specification = specification; - this.MachineKey = machineKey; - this.CreationDate = creationDate; - this.Version = version; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Details - /// - /// Details - [DataMember(Name="specification", EmitDefaultValue=false)] - public string Specification { get; set; } - - /// - /// Machine Key - /// - /// Machine Key - [DataMember(Name="machineKey", EmitDefaultValue=false)] - public string MachineKey { get; set; } - - /// - /// Creation date - /// - /// Creation date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Software associations - /// - /// Software associations - [DataMember(Name="version", EmitDefaultValue=false)] - public string Version { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LicenseInfoInstalledSoftwareDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Specification: ").Append(Specification).Append("\n"); - sb.Append(" MachineKey: ").Append(MachineKey).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" Version: ").Append(Version).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LicenseInfoInstalledSoftwareDTO); - } - - /// - /// Returns true if LicenseInfoInstalledSoftwareDTO instances are equal - /// - /// Instance of LicenseInfoInstalledSoftwareDTO to be compared - /// Boolean - public bool Equals(LicenseInfoInstalledSoftwareDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Specification == input.Specification || - (this.Specification != null && - this.Specification.Equals(input.Specification)) - ) && - ( - this.MachineKey == input.MachineKey || - (this.MachineKey != null && - this.MachineKey.Equals(input.MachineKey)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.Version == input.Version || - (this.Version != null && - this.Version.Equals(input.Version)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Specification != null) - hashCode = hashCode * 59 + this.Specification.GetHashCode(); - if (this.MachineKey != null) - hashCode = hashCode * 59 + this.MachineKey.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.Version != null) - hashCode = hashCode * 59 + this.Version.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseInfoModuleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseInfoModuleDTO.cs deleted file mode 100644 index 8ae7c00..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseInfoModuleDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of license module informations - /// - [DataContract] - public partial class LicenseInfoModuleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Name. - /// Details. - /// Quantity. - /// Available quantity. - public LicenseInfoModuleDTO(string name = default(string), string specification = default(string), int? quantity = default(int?), int? available = default(int?)) - { - this.Name = name; - this.Specification = specification; - this.Quantity = quantity; - this.Available = available; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Details - /// - /// Details - [DataMember(Name="specification", EmitDefaultValue=false)] - public string Specification { get; set; } - - /// - /// Quantity - /// - /// Quantity - [DataMember(Name="quantity", EmitDefaultValue=false)] - public int? Quantity { get; set; } - - /// - /// Available quantity - /// - /// Available quantity - [DataMember(Name="available", EmitDefaultValue=false)] - public int? Available { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LicenseInfoModuleDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Specification: ").Append(Specification).Append("\n"); - sb.Append(" Quantity: ").Append(Quantity).Append("\n"); - sb.Append(" Available: ").Append(Available).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LicenseInfoModuleDTO); - } - - /// - /// Returns true if LicenseInfoModuleDTO instances are equal - /// - /// Instance of LicenseInfoModuleDTO to be compared - /// Boolean - public bool Equals(LicenseInfoModuleDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Specification == input.Specification || - (this.Specification != null && - this.Specification.Equals(input.Specification)) - ) && - ( - this.Quantity == input.Quantity || - (this.Quantity != null && - this.Quantity.Equals(input.Quantity)) - ) && - ( - this.Available == input.Available || - (this.Available != null && - this.Available.Equals(input.Available)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Specification != null) - hashCode = hashCode * 59 + this.Specification.GetHashCode(); - if (this.Quantity != null) - hashCode = hashCode * 59 + this.Quantity.GetHashCode(); - if (this.Available != null) - hashCode = hashCode * 59 + this.Available.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseInfoSoftwareDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseInfoSoftwareDTO.cs deleted file mode 100644 index 603e84e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseInfoSoftwareDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of license software informations - /// - [DataContract] - public partial class LicenseInfoSoftwareDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Name. - /// Details. - /// Quantity. - public LicenseInfoSoftwareDTO(string name = default(string), string specification = default(string), int? quantity = default(int?)) - { - this.Name = name; - this.Specification = specification; - this.Quantity = quantity; - } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Details - /// - /// Details - [DataMember(Name="specification", EmitDefaultValue=false)] - public string Specification { get; set; } - - /// - /// Quantity - /// - /// Quantity - [DataMember(Name="quantity", EmitDefaultValue=false)] - public int? Quantity { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LicenseInfoSoftwareDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Specification: ").Append(Specification).Append("\n"); - sb.Append(" Quantity: ").Append(Quantity).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LicenseInfoSoftwareDTO); - } - - /// - /// Returns true if LicenseInfoSoftwareDTO instances are equal - /// - /// Instance of LicenseInfoSoftwareDTO to be compared - /// Boolean - public bool Equals(LicenseInfoSoftwareDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Specification == input.Specification || - (this.Specification != null && - this.Specification.Equals(input.Specification)) - ) && - ( - this.Quantity == input.Quantity || - (this.Quantity != null && - this.Quantity.Equals(input.Quantity)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Specification != null) - hashCode = hashCode * 59 + this.Specification.GetHashCode(); - if (this.Quantity != null) - hashCode = hashCode * 59 + this.Quantity.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseInfoUserModuleAssociationDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseInfoUserModuleAssociationDTO.cs deleted file mode 100644 index 18e199c..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseInfoUserModuleAssociationDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of user-module association - /// - [DataContract] - public partial class LicenseInfoUserModuleAssociationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Module. - /// User. - public LicenseInfoUserModuleAssociationDTO(string module = default(string), UserSimpleDTO user = default(UserSimpleDTO)) - { - this.Module = module; - this.User = user; - } - - /// - /// Module - /// - /// Module - [DataMember(Name="module", EmitDefaultValue=false)] - public string Module { get; set; } - - /// - /// User - /// - /// User - [DataMember(Name="user", EmitDefaultValue=false)] - public UserSimpleDTO User { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LicenseInfoUserModuleAssociationDTO {\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LicenseInfoUserModuleAssociationDTO); - } - - /// - /// Returns true if LicenseInfoUserModuleAssociationDTO instances are equal - /// - /// Instance of LicenseInfoUserModuleAssociationDTO to be compared - /// Boolean - public bool Equals(LicenseInfoUserModuleAssociationDTO input) - { - if (input == null) - return false; - - return - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseUserModuleAssociationDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseUserModuleAssociationDTO.cs deleted file mode 100644 index 8224b4a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/LicenseUserModuleAssociationDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for license user-module association update - /// - [DataContract] - public partial class LicenseUserModuleAssociationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Module. - /// User identifier. - /// Boolean that represents is user is enabled for specified modules. - public LicenseUserModuleAssociationDTO(string module = default(string), int? userId = default(int?), bool? enabled = default(bool?)) - { - this.Module = module; - this.UserId = userId; - this.Enabled = enabled; - } - - /// - /// Module - /// - /// Module - [DataMember(Name="module", EmitDefaultValue=false)] - public string Module { get; set; } - - /// - /// User identifier - /// - /// User identifier - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Boolean that represents is user is enabled for specified modules - /// - /// Boolean that represents is user is enabled for specified modules - [DataMember(Name="enabled", EmitDefaultValue=false)] - public bool? Enabled { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LicenseUserModuleAssociationDTO {\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" Enabled: ").Append(Enabled).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LicenseUserModuleAssociationDTO); - } - - /// - /// Returns true if LicenseUserModuleAssociationDTO instances are equal - /// - /// Instance of LicenseUserModuleAssociationDTO to be compared - /// Boolean - public bool Equals(LicenseUserModuleAssociationDTO input) - { - if (input == null) - return false; - - return - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.Enabled == input.Enabled || - (this.Enabled != null && - this.Enabled.Equals(input.Enabled)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.Enabled != null) - hashCode = hashCode * 59 + this.Enabled.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/LogLevelDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/LogLevelDTO.cs deleted file mode 100644 index a548733..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/LogLevelDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for documents log access level - /// - [DataContract] - public partial class LogLevelDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Admin. - /// Profiler. - /// User. - public LogLevelDTO(bool? admin = default(bool?), bool? profiler = default(bool?), bool? user = default(bool?)) - { - this.Admin = admin; - this.Profiler = profiler; - this.User = user; - } - - /// - /// Admin - /// - /// Admin - [DataMember(Name="admin", EmitDefaultValue=false)] - public bool? Admin { get; set; } - - /// - /// Profiler - /// - /// Profiler - [DataMember(Name="profiler", EmitDefaultValue=false)] - public bool? Profiler { get; set; } - - /// - /// User - /// - /// User - [DataMember(Name="user", EmitDefaultValue=false)] - public bool? User { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LogLevelDTO {\n"); - sb.Append(" Admin: ").Append(Admin).Append("\n"); - sb.Append(" Profiler: ").Append(Profiler).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LogLevelDTO); - } - - /// - /// Returns true if LogLevelDTO instances are equal - /// - /// Instance of LogLevelDTO to be compared - /// Boolean - public bool Equals(LogLevelDTO input) - { - if (input == null) - return false; - - return - ( - this.Admin == input.Admin || - (this.Admin != null && - this.Admin.Equals(input.Admin)) - ) && - ( - this.Profiler == input.Profiler || - (this.Profiler != null && - this.Profiler.Equals(input.Profiler)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Admin != null) - hashCode = hashCode * 59 + this.Admin.GetHashCode(); - if (this.Profiler != null) - hashCode = hashCode * 59 + this.Profiler.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/LogonProviderAssociationDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/LogonProviderAssociationDTO.cs deleted file mode 100644 index fa0fec0..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/LogonProviderAssociationDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of logon provider user association - /// - [DataContract] - public partial class LogonProviderAssociationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Logon provider username. - /// ARXivar user. - public LogonProviderAssociationDTO(string username = default(string), UserSimpleDTO arxUser = default(UserSimpleDTO)) - { - this.Username = username; - this.ArxUser = arxUser; - } - - /// - /// Logon provider username - /// - /// Logon provider username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// ARXivar user - /// - /// ARXivar user - [DataMember(Name="arxUser", EmitDefaultValue=false)] - public UserSimpleDTO ArxUser { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LogonProviderAssociationDTO {\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" ArxUser: ").Append(ArxUser).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LogonProviderAssociationDTO); - } - - /// - /// Returns true if LogonProviderAssociationDTO instances are equal - /// - /// Instance of LogonProviderAssociationDTO to be compared - /// Boolean - public bool Equals(LogonProviderAssociationDTO input) - { - if (input == null) - return false; - - return - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.ArxUser == input.ArxUser || - (this.ArxUser != null && - this.ArxUser.Equals(input.ArxUser)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.ArxUser != null) - hashCode = hashCode * 59 + this.ArxUser.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/LogonProviderConfigDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/LogonProviderConfigDTO.cs deleted file mode 100644 index 5d0a37b..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/LogonProviderConfigDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of logon provider configuration - /// - [DataContract] - public partial class LogonProviderConfigDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - /// Icon in Base64. - /// Is default provider. - /// Is visible. - /// Is disabled. - /// Implicit flow. - /// Configuration details. - public LogonProviderConfigDTO(string id = default(string), string description = default(string), string iconB64 = default(string), bool? isDefault = default(bool?), bool? visible = default(bool?), bool? disabled = default(bool?), bool? implicitFlow = default(bool?), List details = default(List)) - { - this.Id = id; - this.Description = description; - this.IconB64 = iconB64; - this.IsDefault = isDefault; - this.Visible = visible; - this.Disabled = disabled; - this.ImplicitFlow = implicitFlow; - this.Details = details; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Icon in Base64 - /// - /// Icon in Base64 - [DataMember(Name="iconB64", EmitDefaultValue=false)] - public string IconB64 { get; set; } - - /// - /// Is default provider - /// - /// Is default provider - [DataMember(Name="isDefault", EmitDefaultValue=false)] - public bool? IsDefault { get; set; } - - /// - /// Is visible - /// - /// Is visible - [DataMember(Name="visible", EmitDefaultValue=false)] - public bool? Visible { get; set; } - - /// - /// Is disabled - /// - /// Is disabled - [DataMember(Name="disabled", EmitDefaultValue=false)] - public bool? Disabled { get; set; } - - /// - /// Implicit flow - /// - /// Implicit flow - [DataMember(Name="implicitFlow", EmitDefaultValue=false)] - public bool? ImplicitFlow { get; set; } - - /// - /// Configuration details - /// - /// Configuration details - [DataMember(Name="details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LogonProviderConfigDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IconB64: ").Append(IconB64).Append("\n"); - sb.Append(" IsDefault: ").Append(IsDefault).Append("\n"); - sb.Append(" Visible: ").Append(Visible).Append("\n"); - sb.Append(" Disabled: ").Append(Disabled).Append("\n"); - sb.Append(" ImplicitFlow: ").Append(ImplicitFlow).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LogonProviderConfigDTO); - } - - /// - /// Returns true if LogonProviderConfigDTO instances are equal - /// - /// Instance of LogonProviderConfigDTO to be compared - /// Boolean - public bool Equals(LogonProviderConfigDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.IconB64 == input.IconB64 || - (this.IconB64 != null && - this.IconB64.Equals(input.IconB64)) - ) && - ( - this.IsDefault == input.IsDefault || - (this.IsDefault != null && - this.IsDefault.Equals(input.IsDefault)) - ) && - ( - this.Visible == input.Visible || - (this.Visible != null && - this.Visible.Equals(input.Visible)) - ) && - ( - this.Disabled == input.Disabled || - (this.Disabled != null && - this.Disabled.Equals(input.Disabled)) - ) && - ( - this.ImplicitFlow == input.ImplicitFlow || - (this.ImplicitFlow != null && - this.ImplicitFlow.Equals(input.ImplicitFlow)) - ) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.IconB64 != null) - hashCode = hashCode * 59 + this.IconB64.GetHashCode(); - if (this.IsDefault != null) - hashCode = hashCode * 59 + this.IsDefault.GetHashCode(); - if (this.Visible != null) - hashCode = hashCode * 59 + this.Visible.GetHashCode(); - if (this.Disabled != null) - hashCode = hashCode * 59 + this.Disabled.GetHashCode(); - if (this.ImplicitFlow != null) - hashCode = hashCode * 59 + this.ImplicitFlow.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/LogonProviderConfigDetailBaseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/LogonProviderConfigDetailBaseDTO.cs deleted file mode 100644 index d3f899d..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/LogonProviderConfigDetailBaseDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Base class of logon provider detail - /// - [DataContract] - public partial class LogonProviderConfigDetailBaseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Name of class. - /// Identifier. - /// Name. - /// Description. - /// Category. - /// Value. - public LogonProviderConfigDetailBaseDTO(string className = default(string), string id = default(string), string name = default(string), string description = default(string), string category = default(string), Object value = default(Object)) - { - this.ClassName = className; - this.Id = id; - this.Name = name; - this.Description = description; - this.Category = category; - this.Value = value; - } - - /// - /// Name of class - /// - /// Name of class - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Category - /// - /// Category - [DataMember(Name="category", EmitDefaultValue=false)] - public string Category { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public Object Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LogonProviderConfigDetailBaseDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LogonProviderConfigDetailBaseDTO); - } - - /// - /// Returns true if LogonProviderConfigDetailBaseDTO instances are equal - /// - /// Instance of LogonProviderConfigDetailBaseDTO to be compared - /// Boolean - public bool Equals(LogonProviderConfigDetailBaseDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountDTO.cs deleted file mode 100644 index eda9b24..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountDTO.cs +++ /dev/null @@ -1,282 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for mail account settings - /// - [DataContract] - public partial class MailAccountDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected MailAccountDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Account Identifier. - /// User identifier. - /// Alias (required). - /// Mail (required). - /// Boolean indicating whether the account is the default account. - /// Boolean indicating whether the account is active. - /// Boolean indicating if the account is the system account. - /// Setting for sending mail (SMTP). - /// Setting for sending mail (POP3 or IMAP). - public MailAccountDTO(int? id = default(int?), int? userId = default(int?), string alias = default(string), string mail = default(string), bool? isDefault = default(bool?), bool? enabled = default(bool?), bool? isSystemAccount = default(bool?), MailAccountSendSettingsDTO sendSettings = default(MailAccountSendSettingsDTO), MailAccountReceiveSettingsDTO receiveSettings = default(MailAccountReceiveSettingsDTO)) - { - // to ensure "alias" is required (not null) - if (alias == null) - { - throw new InvalidDataException("alias is a required property for MailAccountDTO and cannot be null"); - } - else - { - this.Alias = alias; - } - // to ensure "mail" is required (not null) - if (mail == null) - { - throw new InvalidDataException("mail is a required property for MailAccountDTO and cannot be null"); - } - else - { - this.Mail = mail; - } - this.Id = id; - this.UserId = userId; - this.IsDefault = isDefault; - this.Enabled = enabled; - this.IsSystemAccount = isSystemAccount; - this.SendSettings = sendSettings; - this.ReceiveSettings = receiveSettings; - } - - /// - /// Account Identifier - /// - /// Account Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// User identifier - /// - /// User identifier - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Alias - /// - /// Alias - [DataMember(Name="alias", EmitDefaultValue=false)] - public string Alias { get; set; } - - /// - /// Mail - /// - /// Mail - [DataMember(Name="mail", EmitDefaultValue=false)] - public string Mail { get; set; } - - /// - /// Boolean indicating whether the account is the default account - /// - /// Boolean indicating whether the account is the default account - [DataMember(Name="isDefault", EmitDefaultValue=false)] - public bool? IsDefault { get; set; } - - /// - /// Boolean indicating whether the account is active - /// - /// Boolean indicating whether the account is active - [DataMember(Name="enabled", EmitDefaultValue=false)] - public bool? Enabled { get; set; } - - /// - /// Boolean indicating if the account is the system account - /// - /// Boolean indicating if the account is the system account - [DataMember(Name="isSystemAccount", EmitDefaultValue=false)] - public bool? IsSystemAccount { get; set; } - - /// - /// Setting for sending mail (SMTP) - /// - /// Setting for sending mail (SMTP) - [DataMember(Name="sendSettings", EmitDefaultValue=false)] - public MailAccountSendSettingsDTO SendSettings { get; set; } - - /// - /// Setting for sending mail (POP3 or IMAP) - /// - /// Setting for sending mail (POP3 or IMAP) - [DataMember(Name="receiveSettings", EmitDefaultValue=false)] - public MailAccountReceiveSettingsDTO ReceiveSettings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" Alias: ").Append(Alias).Append("\n"); - sb.Append(" Mail: ").Append(Mail).Append("\n"); - sb.Append(" IsDefault: ").Append(IsDefault).Append("\n"); - sb.Append(" Enabled: ").Append(Enabled).Append("\n"); - sb.Append(" IsSystemAccount: ").Append(IsSystemAccount).Append("\n"); - sb.Append(" SendSettings: ").Append(SendSettings).Append("\n"); - sb.Append(" ReceiveSettings: ").Append(ReceiveSettings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountDTO); - } - - /// - /// Returns true if MailAccountDTO instances are equal - /// - /// Instance of MailAccountDTO to be compared - /// Boolean - public bool Equals(MailAccountDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.Alias == input.Alias || - (this.Alias != null && - this.Alias.Equals(input.Alias)) - ) && - ( - this.Mail == input.Mail || - (this.Mail != null && - this.Mail.Equals(input.Mail)) - ) && - ( - this.IsDefault == input.IsDefault || - (this.IsDefault != null && - this.IsDefault.Equals(input.IsDefault)) - ) && - ( - this.Enabled == input.Enabled || - (this.Enabled != null && - this.Enabled.Equals(input.Enabled)) - ) && - ( - this.IsSystemAccount == input.IsSystemAccount || - (this.IsSystemAccount != null && - this.IsSystemAccount.Equals(input.IsSystemAccount)) - ) && - ( - this.SendSettings == input.SendSettings || - (this.SendSettings != null && - this.SendSettings.Equals(input.SendSettings)) - ) && - ( - this.ReceiveSettings == input.ReceiveSettings || - (this.ReceiveSettings != null && - this.ReceiveSettings.Equals(input.ReceiveSettings)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.Alias != null) - hashCode = hashCode * 59 + this.Alias.GetHashCode(); - if (this.Mail != null) - hashCode = hashCode * 59 + this.Mail.GetHashCode(); - if (this.IsDefault != null) - hashCode = hashCode * 59 + this.IsDefault.GetHashCode(); - if (this.Enabled != null) - hashCode = hashCode * 59 + this.Enabled.GetHashCode(); - if (this.IsSystemAccount != null) - hashCode = hashCode * 59 + this.IsSystemAccount.GetHashCode(); - if (this.SendSettings != null) - hashCode = hashCode * 59 + this.SendSettings.GetHashCode(); - if (this.ReceiveSettings != null) - hashCode = hashCode * 59 + this.ReceiveSettings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountImapFolderDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountImapFolderDTO.cs deleted file mode 100644 index 0800bd4..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountImapFolderDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// IMAP Folders configuration - /// - [DataContract] - public partial class MailAccountImapFolderDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Source folder. - /// Destination folder. - /// Possible values: 0: None 1: DeleteMessage 2: MoveToDestinationFolder . - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite . - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite . - /// Boolean indicating whether to leave the email as unread. - /// Fields mapping. - public MailAccountImapFolderDTO(string sourceFolder = default(string), string destinationFolder = default(string), int? afterDownloadAction = default(int?), int? pecSubject = default(int?), int? pecSender = default(int?), bool? peekMode = default(bool?), MailAccountStoreSettingsDTO mapping = default(MailAccountStoreSettingsDTO)) - { - this.SourceFolder = sourceFolder; - this.DestinationFolder = destinationFolder; - this.AfterDownloadAction = afterDownloadAction; - this.PecSubject = pecSubject; - this.PecSender = pecSender; - this.PeekMode = peekMode; - this.Mapping = mapping; - } - - /// - /// Source folder - /// - /// Source folder - [DataMember(Name="sourceFolder", EmitDefaultValue=false)] - public string SourceFolder { get; set; } - - /// - /// Destination folder - /// - /// Destination folder - [DataMember(Name="destinationFolder", EmitDefaultValue=false)] - public string DestinationFolder { get; set; } - - /// - /// Possible values: 0: None 1: DeleteMessage 2: MoveToDestinationFolder - /// - /// Possible values: 0: None 1: DeleteMessage 2: MoveToDestinationFolder - [DataMember(Name="afterDownloadAction", EmitDefaultValue=false)] - public int? AfterDownloadAction { get; set; } - - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - [DataMember(Name="pecSubject", EmitDefaultValue=false)] - public int? PecSubject { get; set; } - - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - [DataMember(Name="pecSender", EmitDefaultValue=false)] - public int? PecSender { get; set; } - - /// - /// Boolean indicating whether to leave the email as unread - /// - /// Boolean indicating whether to leave the email as unread - [DataMember(Name="peekMode", EmitDefaultValue=false)] - public bool? PeekMode { get; set; } - - /// - /// Fields mapping - /// - /// Fields mapping - [DataMember(Name="mapping", EmitDefaultValue=false)] - public MailAccountStoreSettingsDTO Mapping { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountImapFolderDTO {\n"); - sb.Append(" SourceFolder: ").Append(SourceFolder).Append("\n"); - sb.Append(" DestinationFolder: ").Append(DestinationFolder).Append("\n"); - sb.Append(" AfterDownloadAction: ").Append(AfterDownloadAction).Append("\n"); - sb.Append(" PecSubject: ").Append(PecSubject).Append("\n"); - sb.Append(" PecSender: ").Append(PecSender).Append("\n"); - sb.Append(" PeekMode: ").Append(PeekMode).Append("\n"); - sb.Append(" Mapping: ").Append(Mapping).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountImapFolderDTO); - } - - /// - /// Returns true if MailAccountImapFolderDTO instances are equal - /// - /// Instance of MailAccountImapFolderDTO to be compared - /// Boolean - public bool Equals(MailAccountImapFolderDTO input) - { - if (input == null) - return false; - - return - ( - this.SourceFolder == input.SourceFolder || - (this.SourceFolder != null && - this.SourceFolder.Equals(input.SourceFolder)) - ) && - ( - this.DestinationFolder == input.DestinationFolder || - (this.DestinationFolder != null && - this.DestinationFolder.Equals(input.DestinationFolder)) - ) && - ( - this.AfterDownloadAction == input.AfterDownloadAction || - (this.AfterDownloadAction != null && - this.AfterDownloadAction.Equals(input.AfterDownloadAction)) - ) && - ( - this.PecSubject == input.PecSubject || - (this.PecSubject != null && - this.PecSubject.Equals(input.PecSubject)) - ) && - ( - this.PecSender == input.PecSender || - (this.PecSender != null && - this.PecSender.Equals(input.PecSender)) - ) && - ( - this.PeekMode == input.PeekMode || - (this.PeekMode != null && - this.PeekMode.Equals(input.PeekMode)) - ) && - ( - this.Mapping == input.Mapping || - (this.Mapping != null && - this.Mapping.Equals(input.Mapping)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SourceFolder != null) - hashCode = hashCode * 59 + this.SourceFolder.GetHashCode(); - if (this.DestinationFolder != null) - hashCode = hashCode * 59 + this.DestinationFolder.GetHashCode(); - if (this.AfterDownloadAction != null) - hashCode = hashCode * 59 + this.AfterDownloadAction.GetHashCode(); - if (this.PecSubject != null) - hashCode = hashCode * 59 + this.PecSubject.GetHashCode(); - if (this.PecSender != null) - hashCode = hashCode * 59 + this.PecSender.GetHashCode(); - if (this.PeekMode != null) - hashCode = hashCode * 59 + this.PeekMode.GetHashCode(); - if (this.Mapping != null) - hashCode = hashCode * 59 + this.Mapping.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountReceiveSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountReceiveSettingsDTO.cs deleted file mode 100644 index 7ae455e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountReceiveSettingsDTO.cs +++ /dev/null @@ -1,271 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Abstract class for receiving mail - /// - [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] - [JsonSubtypes.KnownSubType(typeof(MailAccountReceiveSettingsImapDTO), "MailAccountReceiveSettingsImapDTO")] - [JsonSubtypes.KnownSubType(typeof(MailAccountReceiveSettingsPop3DTO), "MailAccountReceiveSettingsPop3DTO")] - public partial class MailAccountReceiveSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected MailAccountReceiveSettingsDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Name of class (required). - /// Possible values: 0: Basic 1: Microsoft 2: Google . - /// The tenant ID. - /// The client ID. - /// The client Secret. - /// Gets or sets whether the client secret is set. - /// Gets or sets whether the authorization response is set. - /// The authorization response. - public MailAccountReceiveSettingsDTO(string className = default(string), int? authenticationMode = default(int?), string tenantId = default(string), string clientId = default(string), string clientSecret = default(string), bool? isClientSecretSet = default(bool?), bool? isAuthorizationResponseSet = default(bool?), string authorizationResponse = default(string)) - { - // to ensure "className" is required (not null) - if (className == null) - { - throw new InvalidDataException("className is a required property for MailAccountReceiveSettingsDTO and cannot be null"); - } - else - { - this.ClassName = className; - } - this.AuthenticationMode = authenticationMode; - this.TenantId = tenantId; - this.ClientId = clientId; - this.ClientSecret = clientSecret; - this.IsClientSecretSet = isClientSecretSet; - this.IsAuthorizationResponseSet = isAuthorizationResponseSet; - this.AuthorizationResponse = authorizationResponse; - } - - /// - /// Name of class - /// - /// Name of class - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Possible values: 0: Basic 1: Microsoft 2: Google - /// - /// Possible values: 0: Basic 1: Microsoft 2: Google - [DataMember(Name="authenticationMode", EmitDefaultValue=false)] - public int? AuthenticationMode { get; set; } - - /// - /// The tenant ID - /// - /// The tenant ID - [DataMember(Name="tenantId", EmitDefaultValue=false)] - public string TenantId { get; set; } - - /// - /// The client ID - /// - /// The client ID - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// The client Secret - /// - /// The client Secret - [DataMember(Name="clientSecret", EmitDefaultValue=false)] - public string ClientSecret { get; set; } - - /// - /// Gets or sets whether the client secret is set - /// - /// Gets or sets whether the client secret is set - [DataMember(Name="isClientSecretSet", EmitDefaultValue=false)] - public bool? IsClientSecretSet { get; set; } - - /// - /// Gets or sets whether the authorization response is set - /// - /// Gets or sets whether the authorization response is set - [DataMember(Name="isAuthorizationResponseSet", EmitDefaultValue=false)] - public bool? IsAuthorizationResponseSet { get; set; } - - /// - /// The authorization response - /// - /// The authorization response - [DataMember(Name="authorizationResponse", EmitDefaultValue=false)] - public string AuthorizationResponse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountReceiveSettingsDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" AuthenticationMode: ").Append(AuthenticationMode).Append("\n"); - sb.Append(" TenantId: ").Append(TenantId).Append("\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n"); - sb.Append(" IsClientSecretSet: ").Append(IsClientSecretSet).Append("\n"); - sb.Append(" IsAuthorizationResponseSet: ").Append(IsAuthorizationResponseSet).Append("\n"); - sb.Append(" AuthorizationResponse: ").Append(AuthorizationResponse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountReceiveSettingsDTO); - } - - /// - /// Returns true if MailAccountReceiveSettingsDTO instances are equal - /// - /// Instance of MailAccountReceiveSettingsDTO to be compared - /// Boolean - public bool Equals(MailAccountReceiveSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.AuthenticationMode == input.AuthenticationMode || - (this.AuthenticationMode != null && - this.AuthenticationMode.Equals(input.AuthenticationMode)) - ) && - ( - this.TenantId == input.TenantId || - (this.TenantId != null && - this.TenantId.Equals(input.TenantId)) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.ClientSecret == input.ClientSecret || - (this.ClientSecret != null && - this.ClientSecret.Equals(input.ClientSecret)) - ) && - ( - this.IsClientSecretSet == input.IsClientSecretSet || - (this.IsClientSecretSet != null && - this.IsClientSecretSet.Equals(input.IsClientSecretSet)) - ) && - ( - this.IsAuthorizationResponseSet == input.IsAuthorizationResponseSet || - (this.IsAuthorizationResponseSet != null && - this.IsAuthorizationResponseSet.Equals(input.IsAuthorizationResponseSet)) - ) && - ( - this.AuthorizationResponse == input.AuthorizationResponse || - (this.AuthorizationResponse != null && - this.AuthorizationResponse.Equals(input.AuthorizationResponse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.AuthenticationMode != null) - hashCode = hashCode * 59 + this.AuthenticationMode.GetHashCode(); - if (this.TenantId != null) - hashCode = hashCode * 59 + this.TenantId.GetHashCode(); - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.ClientSecret != null) - hashCode = hashCode * 59 + this.ClientSecret.GetHashCode(); - if (this.IsClientSecretSet != null) - hashCode = hashCode * 59 + this.IsClientSecretSet.GetHashCode(); - if (this.IsAuthorizationResponseSet != null) - hashCode = hashCode * 59 + this.IsAuthorizationResponseSet.GetHashCode(); - if (this.AuthorizationResponse != null) - hashCode = hashCode * 59 + this.AuthorizationResponse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountReceiveSettingsImapDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountReceiveSettingsImapDTO.cs deleted file mode 100644 index 8e1d978..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountReceiveSettingsImapDTO.cs +++ /dev/null @@ -1,250 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// IMAP Settings - /// - [DataContract] - public partial class MailAccountReceiveSettingsImapDTO : MailAccountReceiveSettingsDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected MailAccountReceiveSettingsImapDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Source folder (required). - /// Source folder (required). - /// Source folder. - /// Source folder. - /// Source folder. - /// Possible values: 0: None 1: TLS 2: SSL . - /// Source folder. - public MailAccountReceiveSettingsImapDTO(string server = default(string), string username = default(string), string password = default(string), int? port = default(int?), int? connectionTimeout = default(int?), int? securityProtocol = default(int?), List foldersConfiguration = default(List), string className = "MailAccountReceiveSettingsImapDTO", int? authenticationMode = default(int?), string tenantId = default(string), string clientId = default(string), string clientSecret = default(string), bool? isClientSecretSet = default(bool?), bool? isAuthorizationResponseSet = default(bool?), string authorizationResponse = default(string)) : base(className, authenticationMode, tenantId, clientId, clientSecret, isClientSecretSet, isAuthorizationResponseSet, authorizationResponse) - { - // to ensure "server" is required (not null) - if (server == null) - { - throw new InvalidDataException("server is a required property for MailAccountReceiveSettingsImapDTO and cannot be null"); - } - else - { - this.Server = server; - } - // to ensure "username" is required (not null) - if (username == null) - { - throw new InvalidDataException("username is a required property for MailAccountReceiveSettingsImapDTO and cannot be null"); - } - else - { - this.Username = username; - } - this.Password = password; - this.Port = port; - this.ConnectionTimeout = connectionTimeout; - this.SecurityProtocol = securityProtocol; - this.FoldersConfiguration = foldersConfiguration; - } - - /// - /// Source folder - /// - /// Source folder - [DataMember(Name="server", EmitDefaultValue=false)] - public string Server { get; set; } - - /// - /// Source folder - /// - /// Source folder - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Source folder - /// - /// Source folder - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Source folder - /// - /// Source folder - [DataMember(Name="port", EmitDefaultValue=false)] - public int? Port { get; set; } - - /// - /// Source folder - /// - /// Source folder - [DataMember(Name="connectionTimeout", EmitDefaultValue=false)] - public int? ConnectionTimeout { get; set; } - - /// - /// Possible values: 0: None 1: TLS 2: SSL - /// - /// Possible values: 0: None 1: TLS 2: SSL - [DataMember(Name="securityProtocol", EmitDefaultValue=false)] - public int? SecurityProtocol { get; set; } - - /// - /// Source folder - /// - /// Source folder - [DataMember(Name="foldersConfiguration", EmitDefaultValue=false)] - public List FoldersConfiguration { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountReceiveSettingsImapDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Server: ").Append(Server).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Port: ").Append(Port).Append("\n"); - sb.Append(" ConnectionTimeout: ").Append(ConnectionTimeout).Append("\n"); - sb.Append(" SecurityProtocol: ").Append(SecurityProtocol).Append("\n"); - sb.Append(" FoldersConfiguration: ").Append(FoldersConfiguration).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountReceiveSettingsImapDTO); - } - - /// - /// Returns true if MailAccountReceiveSettingsImapDTO instances are equal - /// - /// Instance of MailAccountReceiveSettingsImapDTO to be compared - /// Boolean - public bool Equals(MailAccountReceiveSettingsImapDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Server == input.Server || - (this.Server != null && - this.Server.Equals(input.Server)) - ) && base.Equals(input) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && base.Equals(input) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && base.Equals(input) && - ( - this.Port == input.Port || - (this.Port != null && - this.Port.Equals(input.Port)) - ) && base.Equals(input) && - ( - this.ConnectionTimeout == input.ConnectionTimeout || - (this.ConnectionTimeout != null && - this.ConnectionTimeout.Equals(input.ConnectionTimeout)) - ) && base.Equals(input) && - ( - this.SecurityProtocol == input.SecurityProtocol || - (this.SecurityProtocol != null && - this.SecurityProtocol.Equals(input.SecurityProtocol)) - ) && base.Equals(input) && - ( - this.FoldersConfiguration == input.FoldersConfiguration || - this.FoldersConfiguration != null && - this.FoldersConfiguration.SequenceEqual(input.FoldersConfiguration) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Server != null) - hashCode = hashCode * 59 + this.Server.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Port != null) - hashCode = hashCode * 59 + this.Port.GetHashCode(); - if (this.ConnectionTimeout != null) - hashCode = hashCode * 59 + this.ConnectionTimeout.GetHashCode(); - if (this.SecurityProtocol != null) - hashCode = hashCode * 59 + this.SecurityProtocol.GetHashCode(); - if (this.FoldersConfiguration != null) - hashCode = hashCode * 59 + this.FoldersConfiguration.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountReceiveSettingsPop3DTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountReceiveSettingsPop3DTO.cs deleted file mode 100644 index c60fd25..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountReceiveSettingsPop3DTO.cs +++ /dev/null @@ -1,318 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// POP3 Settings - /// - [DataContract] - public partial class MailAccountReceiveSettingsPop3DTO : MailAccountReceiveSettingsDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected MailAccountReceiveSettingsPop3DTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Server address (required). - /// Username (required). - /// Password. - /// Port. - /// SSL. - /// Boolean indicating whether to use the password protection (SPA). - /// Possible values: 0: None 1: Immediately 2: AfterNumDays . - /// Number of days before deleting the message if DeleteEmailMode is set to AfterNumDays. - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite . - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite . - /// Fields mapping. - public MailAccountReceiveSettingsPop3DTO(string server = default(string), string username = default(string), string password = default(string), int? port = default(int?), bool? ssl = default(bool?), bool? passwordProtection = default(bool?), int? deleteEmailMode = default(int?), int? numDayDelete = default(int?), int? pecSubject = default(int?), int? pecSender = default(int?), MailAccountStoreSettingsDTO mapping = default(MailAccountStoreSettingsDTO), string className = "MailAccountReceiveSettingsPop3DTO", int? authenticationMode = default(int?), string tenantId = default(string), string clientId = default(string), string clientSecret = default(string), bool? isClientSecretSet = default(bool?), bool? isAuthorizationResponseSet = default(bool?), string authorizationResponse = default(string)) : base(className, authenticationMode, tenantId, clientId, clientSecret, isClientSecretSet, isAuthorizationResponseSet, authorizationResponse) - { - // to ensure "server" is required (not null) - if (server == null) - { - throw new InvalidDataException("server is a required property for MailAccountReceiveSettingsPop3DTO and cannot be null"); - } - else - { - this.Server = server; - } - // to ensure "username" is required (not null) - if (username == null) - { - throw new InvalidDataException("username is a required property for MailAccountReceiveSettingsPop3DTO and cannot be null"); - } - else - { - this.Username = username; - } - this.Password = password; - this.Port = port; - this.Ssl = ssl; - this.PasswordProtection = passwordProtection; - this.DeleteEmailMode = deleteEmailMode; - this.NumDayDelete = numDayDelete; - this.PecSubject = pecSubject; - this.PecSender = pecSender; - this.Mapping = mapping; - } - - /// - /// Server address - /// - /// Server address - [DataMember(Name="server", EmitDefaultValue=false)] - public string Server { get; set; } - - /// - /// Username - /// - /// Username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Port - /// - /// Port - [DataMember(Name="port", EmitDefaultValue=false)] - public int? Port { get; set; } - - /// - /// SSL - /// - /// SSL - [DataMember(Name="ssl", EmitDefaultValue=false)] - public bool? Ssl { get; set; } - - /// - /// Boolean indicating whether to use the password protection (SPA) - /// - /// Boolean indicating whether to use the password protection (SPA) - [DataMember(Name="passwordProtection", EmitDefaultValue=false)] - public bool? PasswordProtection { get; set; } - - /// - /// Possible values: 0: None 1: Immediately 2: AfterNumDays - /// - /// Possible values: 0: None 1: Immediately 2: AfterNumDays - [DataMember(Name="deleteEmailMode", EmitDefaultValue=false)] - public int? DeleteEmailMode { get; set; } - - /// - /// Number of days before deleting the message if DeleteEmailMode is set to AfterNumDays - /// - /// Number of days before deleting the message if DeleteEmailMode is set to AfterNumDays - [DataMember(Name="numDayDelete", EmitDefaultValue=false)] - public int? NumDayDelete { get; set; } - - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - [DataMember(Name="pecSubject", EmitDefaultValue=false)] - public int? PecSubject { get; set; } - - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - [DataMember(Name="pecSender", EmitDefaultValue=false)] - public int? PecSender { get; set; } - - /// - /// Fields mapping - /// - /// Fields mapping - [DataMember(Name="mapping", EmitDefaultValue=false)] - public MailAccountStoreSettingsDTO Mapping { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountReceiveSettingsPop3DTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Server: ").Append(Server).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Port: ").Append(Port).Append("\n"); - sb.Append(" Ssl: ").Append(Ssl).Append("\n"); - sb.Append(" PasswordProtection: ").Append(PasswordProtection).Append("\n"); - sb.Append(" DeleteEmailMode: ").Append(DeleteEmailMode).Append("\n"); - sb.Append(" NumDayDelete: ").Append(NumDayDelete).Append("\n"); - sb.Append(" PecSubject: ").Append(PecSubject).Append("\n"); - sb.Append(" PecSender: ").Append(PecSender).Append("\n"); - sb.Append(" Mapping: ").Append(Mapping).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountReceiveSettingsPop3DTO); - } - - /// - /// Returns true if MailAccountReceiveSettingsPop3DTO instances are equal - /// - /// Instance of MailAccountReceiveSettingsPop3DTO to be compared - /// Boolean - public bool Equals(MailAccountReceiveSettingsPop3DTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Server == input.Server || - (this.Server != null && - this.Server.Equals(input.Server)) - ) && base.Equals(input) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && base.Equals(input) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && base.Equals(input) && - ( - this.Port == input.Port || - (this.Port != null && - this.Port.Equals(input.Port)) - ) && base.Equals(input) && - ( - this.Ssl == input.Ssl || - (this.Ssl != null && - this.Ssl.Equals(input.Ssl)) - ) && base.Equals(input) && - ( - this.PasswordProtection == input.PasswordProtection || - (this.PasswordProtection != null && - this.PasswordProtection.Equals(input.PasswordProtection)) - ) && base.Equals(input) && - ( - this.DeleteEmailMode == input.DeleteEmailMode || - (this.DeleteEmailMode != null && - this.DeleteEmailMode.Equals(input.DeleteEmailMode)) - ) && base.Equals(input) && - ( - this.NumDayDelete == input.NumDayDelete || - (this.NumDayDelete != null && - this.NumDayDelete.Equals(input.NumDayDelete)) - ) && base.Equals(input) && - ( - this.PecSubject == input.PecSubject || - (this.PecSubject != null && - this.PecSubject.Equals(input.PecSubject)) - ) && base.Equals(input) && - ( - this.PecSender == input.PecSender || - (this.PecSender != null && - this.PecSender.Equals(input.PecSender)) - ) && base.Equals(input) && - ( - this.Mapping == input.Mapping || - (this.Mapping != null && - this.Mapping.Equals(input.Mapping)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Server != null) - hashCode = hashCode * 59 + this.Server.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Port != null) - hashCode = hashCode * 59 + this.Port.GetHashCode(); - if (this.Ssl != null) - hashCode = hashCode * 59 + this.Ssl.GetHashCode(); - if (this.PasswordProtection != null) - hashCode = hashCode * 59 + this.PasswordProtection.GetHashCode(); - if (this.DeleteEmailMode != null) - hashCode = hashCode * 59 + this.DeleteEmailMode.GetHashCode(); - if (this.NumDayDelete != null) - hashCode = hashCode * 59 + this.NumDayDelete.GetHashCode(); - if (this.PecSubject != null) - hashCode = hashCode * 59 + this.PecSubject.GetHashCode(); - if (this.PecSender != null) - hashCode = hashCode * 59 + this.PecSender.GetHashCode(); - if (this.Mapping != null) - hashCode = hashCode * 59 + this.Mapping.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSendSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSendSettingsDTO.cs deleted file mode 100644 index b716909..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSendSettingsDTO.cs +++ /dev/null @@ -1,270 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Abstract class for sending mail - /// - [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] - [JsonSubtypes.KnownSubType(typeof(MailAccountSendSettingsSmtpDTO), "MailAccountSendSettingsSmtpDTO")] - public partial class MailAccountSendSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected MailAccountSendSettingsDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Name of class (required). - /// Possible values: 0: Basic 1: Microsoft 2: Google . - /// The tenant ID. - /// The client ID. - /// The client Secret. - /// Gets or sets whether the client secret is set. - /// Gets or sets whether the authorization response is set. - /// The authorization response. - public MailAccountSendSettingsDTO(string className = default(string), int? authenticationMode = default(int?), string tenantId = default(string), string clientId = default(string), string clientSecret = default(string), bool? isClientSecretSet = default(bool?), bool? isAuthorizationResponseSet = default(bool?), string authorizationResponse = default(string)) - { - // to ensure "className" is required (not null) - if (className == null) - { - throw new InvalidDataException("className is a required property for MailAccountSendSettingsDTO and cannot be null"); - } - else - { - this.ClassName = className; - } - this.AuthenticationMode = authenticationMode; - this.TenantId = tenantId; - this.ClientId = clientId; - this.ClientSecret = clientSecret; - this.IsClientSecretSet = isClientSecretSet; - this.IsAuthorizationResponseSet = isAuthorizationResponseSet; - this.AuthorizationResponse = authorizationResponse; - } - - /// - /// Name of class - /// - /// Name of class - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Possible values: 0: Basic 1: Microsoft 2: Google - /// - /// Possible values: 0: Basic 1: Microsoft 2: Google - [DataMember(Name="authenticationMode", EmitDefaultValue=false)] - public int? AuthenticationMode { get; set; } - - /// - /// The tenant ID - /// - /// The tenant ID - [DataMember(Name="tenantId", EmitDefaultValue=false)] - public string TenantId { get; set; } - - /// - /// The client ID - /// - /// The client ID - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// The client Secret - /// - /// The client Secret - [DataMember(Name="clientSecret", EmitDefaultValue=false)] - public string ClientSecret { get; set; } - - /// - /// Gets or sets whether the client secret is set - /// - /// Gets or sets whether the client secret is set - [DataMember(Name="isClientSecretSet", EmitDefaultValue=false)] - public bool? IsClientSecretSet { get; set; } - - /// - /// Gets or sets whether the authorization response is set - /// - /// Gets or sets whether the authorization response is set - [DataMember(Name="isAuthorizationResponseSet", EmitDefaultValue=false)] - public bool? IsAuthorizationResponseSet { get; set; } - - /// - /// The authorization response - /// - /// The authorization response - [DataMember(Name="authorizationResponse", EmitDefaultValue=false)] - public string AuthorizationResponse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountSendSettingsDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" AuthenticationMode: ").Append(AuthenticationMode).Append("\n"); - sb.Append(" TenantId: ").Append(TenantId).Append("\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n"); - sb.Append(" IsClientSecretSet: ").Append(IsClientSecretSet).Append("\n"); - sb.Append(" IsAuthorizationResponseSet: ").Append(IsAuthorizationResponseSet).Append("\n"); - sb.Append(" AuthorizationResponse: ").Append(AuthorizationResponse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountSendSettingsDTO); - } - - /// - /// Returns true if MailAccountSendSettingsDTO instances are equal - /// - /// Instance of MailAccountSendSettingsDTO to be compared - /// Boolean - public bool Equals(MailAccountSendSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.AuthenticationMode == input.AuthenticationMode || - (this.AuthenticationMode != null && - this.AuthenticationMode.Equals(input.AuthenticationMode)) - ) && - ( - this.TenantId == input.TenantId || - (this.TenantId != null && - this.TenantId.Equals(input.TenantId)) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.ClientSecret == input.ClientSecret || - (this.ClientSecret != null && - this.ClientSecret.Equals(input.ClientSecret)) - ) && - ( - this.IsClientSecretSet == input.IsClientSecretSet || - (this.IsClientSecretSet != null && - this.IsClientSecretSet.Equals(input.IsClientSecretSet)) - ) && - ( - this.IsAuthorizationResponseSet == input.IsAuthorizationResponseSet || - (this.IsAuthorizationResponseSet != null && - this.IsAuthorizationResponseSet.Equals(input.IsAuthorizationResponseSet)) - ) && - ( - this.AuthorizationResponse == input.AuthorizationResponse || - (this.AuthorizationResponse != null && - this.AuthorizationResponse.Equals(input.AuthorizationResponse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.AuthenticationMode != null) - hashCode = hashCode * 59 + this.AuthenticationMode.GetHashCode(); - if (this.TenantId != null) - hashCode = hashCode * 59 + this.TenantId.GetHashCode(); - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.ClientSecret != null) - hashCode = hashCode * 59 + this.ClientSecret.GetHashCode(); - if (this.IsClientSecretSet != null) - hashCode = hashCode * 59 + this.IsClientSecretSet.GetHashCode(); - if (this.IsAuthorizationResponseSet != null) - hashCode = hashCode * 59 + this.IsAuthorizationResponseSet.GetHashCode(); - if (this.AuthorizationResponse != null) - hashCode = hashCode * 59 + this.AuthorizationResponse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSendSettingsSmtpDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSendSettingsSmtpDTO.cs deleted file mode 100644 index a2ef44b..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSendSettingsSmtpDTO.cs +++ /dev/null @@ -1,242 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// SMTP Settings - /// - [DataContract] - public partial class MailAccountSendSettingsSmtpDTO : MailAccountSendSettingsDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected MailAccountSendSettingsSmtpDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Server address (required). - /// Boolean indicating whether to use authentication. - /// Username. - /// Password. - /// Password. - /// Maximum number of mail to send each time. - /// Possible values: 0: None 1: TLS 2: SSL . - public MailAccountSendSettingsSmtpDTO(string server = default(string), bool? useAuthentication = default(bool?), string username = default(string), string password = default(string), int? port = default(int?), int? maxNumMailToSend = default(int?), int? securityProtocol = default(int?), string className = "MailAccountSendSettingsSmtpDTO", int? authenticationMode = default(int?), string tenantId = default(string), string clientId = default(string), string clientSecret = default(string), bool? isClientSecretSet = default(bool?), bool? isAuthorizationResponseSet = default(bool?), string authorizationResponse = default(string)) : base(className, authenticationMode, tenantId, clientId, clientSecret, isClientSecretSet, isAuthorizationResponseSet, authorizationResponse) - { - // to ensure "server" is required (not null) - if (server == null) - { - throw new InvalidDataException("server is a required property for MailAccountSendSettingsSmtpDTO and cannot be null"); - } - else - { - this.Server = server; - } - this.UseAuthentication = useAuthentication; - this.Username = username; - this.Password = password; - this.Port = port; - this.MaxNumMailToSend = maxNumMailToSend; - this.SecurityProtocol = securityProtocol; - } - - /// - /// Server address - /// - /// Server address - [DataMember(Name="server", EmitDefaultValue=false)] - public string Server { get; set; } - - /// - /// Boolean indicating whether to use authentication - /// - /// Boolean indicating whether to use authentication - [DataMember(Name="useAuthentication", EmitDefaultValue=false)] - public bool? UseAuthentication { get; set; } - - /// - /// Username - /// - /// Username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="port", EmitDefaultValue=false)] - public int? Port { get; set; } - - /// - /// Maximum number of mail to send each time - /// - /// Maximum number of mail to send each time - [DataMember(Name="maxNumMailToSend", EmitDefaultValue=false)] - public int? MaxNumMailToSend { get; set; } - - /// - /// Possible values: 0: None 1: TLS 2: SSL - /// - /// Possible values: 0: None 1: TLS 2: SSL - [DataMember(Name="securityProtocol", EmitDefaultValue=false)] - public int? SecurityProtocol { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountSendSettingsSmtpDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Server: ").Append(Server).Append("\n"); - sb.Append(" UseAuthentication: ").Append(UseAuthentication).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Port: ").Append(Port).Append("\n"); - sb.Append(" MaxNumMailToSend: ").Append(MaxNumMailToSend).Append("\n"); - sb.Append(" SecurityProtocol: ").Append(SecurityProtocol).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountSendSettingsSmtpDTO); - } - - /// - /// Returns true if MailAccountSendSettingsSmtpDTO instances are equal - /// - /// Instance of MailAccountSendSettingsSmtpDTO to be compared - /// Boolean - public bool Equals(MailAccountSendSettingsSmtpDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Server == input.Server || - (this.Server != null && - this.Server.Equals(input.Server)) - ) && base.Equals(input) && - ( - this.UseAuthentication == input.UseAuthentication || - (this.UseAuthentication != null && - this.UseAuthentication.Equals(input.UseAuthentication)) - ) && base.Equals(input) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && base.Equals(input) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && base.Equals(input) && - ( - this.Port == input.Port || - (this.Port != null && - this.Port.Equals(input.Port)) - ) && base.Equals(input) && - ( - this.MaxNumMailToSend == input.MaxNumMailToSend || - (this.MaxNumMailToSend != null && - this.MaxNumMailToSend.Equals(input.MaxNumMailToSend)) - ) && base.Equals(input) && - ( - this.SecurityProtocol == input.SecurityProtocol || - (this.SecurityProtocol != null && - this.SecurityProtocol.Equals(input.SecurityProtocol)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Server != null) - hashCode = hashCode * 59 + this.Server.GetHashCode(); - if (this.UseAuthentication != null) - hashCode = hashCode * 59 + this.UseAuthentication.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Port != null) - hashCode = hashCode * 59 + this.Port.GetHashCode(); - if (this.MaxNumMailToSend != null) - hashCode = hashCode * 59 + this.MaxNumMailToSend.GetHashCode(); - if (this.SecurityProtocol != null) - hashCode = hashCode * 59 + this.SecurityProtocol.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSettingsDTO.cs deleted file mode 100644 index 3bb5463..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSettingsDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for mail settings - /// - [DataContract] - public partial class MailAccountSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Mail general settings. - /// Mail IN settings. - /// Mail OUT settings. - public MailAccountSettingsDTO(MailAccountSettingsGeneralDTO general = default(MailAccountSettingsGeneralDTO), MailAccountSettingsInDTO _in = default(MailAccountSettingsInDTO), MailAccountSettingsOutDTO _out = default(MailAccountSettingsOutDTO)) - { - this.General = general; - this.In = _in; - this.Out = _out; - } - - /// - /// Mail general settings - /// - /// Mail general settings - [DataMember(Name="general", EmitDefaultValue=false)] - public MailAccountSettingsGeneralDTO General { get; set; } - - /// - /// Mail IN settings - /// - /// Mail IN settings - [DataMember(Name="in", EmitDefaultValue=false)] - public MailAccountSettingsInDTO In { get; set; } - - /// - /// Mail OUT settings - /// - /// Mail OUT settings - [DataMember(Name="out", EmitDefaultValue=false)] - public MailAccountSettingsOutDTO Out { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountSettingsDTO {\n"); - sb.Append(" General: ").Append(General).Append("\n"); - sb.Append(" In: ").Append(In).Append("\n"); - sb.Append(" Out: ").Append(Out).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountSettingsDTO); - } - - /// - /// Returns true if MailAccountSettingsDTO instances are equal - /// - /// Instance of MailAccountSettingsDTO to be compared - /// Boolean - public bool Equals(MailAccountSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.General == input.General || - (this.General != null && - this.General.Equals(input.General)) - ) && - ( - this.In == input.In || - (this.In != null && - this.In.Equals(input.In)) - ) && - ( - this.Out == input.Out || - (this.Out != null && - this.Out.Equals(input.Out)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.General != null) - hashCode = hashCode * 59 + this.General.GetHashCode(); - if (this.In != null) - hashCode = hashCode * 59 + this.In.GetHashCode(); - if (this.Out != null) - hashCode = hashCode * 59 + this.Out.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSettingsGeneralDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSettingsGeneralDTO.cs deleted file mode 100644 index 7aab2fc..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSettingsGeneralDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for Mail general settings - /// - [DataContract] - public partial class MailAccountSettingsGeneralDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// User e-mail. - /// Notification of movement via SMTP. - /// Personal Fax. - /// Date of last reading email. - /// Txt Disclamer. - /// Mail out max size. - public MailAccountSettingsGeneralDTO(string mail = default(string), bool? notify = default(bool?), string internalFax = default(string), DateTime? lastMail = default(DateTime?), string mailBody = default(string), int? maxMailOutSize = default(int?)) - { - this.Mail = mail; - this.Notify = notify; - this.InternalFax = internalFax; - this.LastMail = lastMail; - this.MailBody = mailBody; - this.MaxMailOutSize = maxMailOutSize; - } - - /// - /// User e-mail - /// - /// User e-mail - [DataMember(Name="mail", EmitDefaultValue=false)] - public string Mail { get; set; } - - /// - /// Notification of movement via SMTP - /// - /// Notification of movement via SMTP - [DataMember(Name="notify", EmitDefaultValue=false)] - public bool? Notify { get; set; } - - /// - /// Personal Fax - /// - /// Personal Fax - [DataMember(Name="internalFax", EmitDefaultValue=false)] - public string InternalFax { get; set; } - - /// - /// Date of last reading email - /// - /// Date of last reading email - [DataMember(Name="lastMail", EmitDefaultValue=false)] - public DateTime? LastMail { get; set; } - - /// - /// Txt Disclamer - /// - /// Txt Disclamer - [DataMember(Name="mailBody", EmitDefaultValue=false)] - public string MailBody { get; set; } - - /// - /// Mail out max size - /// - /// Mail out max size - [DataMember(Name="maxMailOutSize", EmitDefaultValue=false)] - public int? MaxMailOutSize { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountSettingsGeneralDTO {\n"); - sb.Append(" Mail: ").Append(Mail).Append("\n"); - sb.Append(" Notify: ").Append(Notify).Append("\n"); - sb.Append(" InternalFax: ").Append(InternalFax).Append("\n"); - sb.Append(" LastMail: ").Append(LastMail).Append("\n"); - sb.Append(" MailBody: ").Append(MailBody).Append("\n"); - sb.Append(" MaxMailOutSize: ").Append(MaxMailOutSize).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountSettingsGeneralDTO); - } - - /// - /// Returns true if MailAccountSettingsGeneralDTO instances are equal - /// - /// Instance of MailAccountSettingsGeneralDTO to be compared - /// Boolean - public bool Equals(MailAccountSettingsGeneralDTO input) - { - if (input == null) - return false; - - return - ( - this.Mail == input.Mail || - (this.Mail != null && - this.Mail.Equals(input.Mail)) - ) && - ( - this.Notify == input.Notify || - (this.Notify != null && - this.Notify.Equals(input.Notify)) - ) && - ( - this.InternalFax == input.InternalFax || - (this.InternalFax != null && - this.InternalFax.Equals(input.InternalFax)) - ) && - ( - this.LastMail == input.LastMail || - (this.LastMail != null && - this.LastMail.Equals(input.LastMail)) - ) && - ( - this.MailBody == input.MailBody || - (this.MailBody != null && - this.MailBody.Equals(input.MailBody)) - ) && - ( - this.MaxMailOutSize == input.MaxMailOutSize || - (this.MaxMailOutSize != null && - this.MaxMailOutSize.Equals(input.MaxMailOutSize)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Mail != null) - hashCode = hashCode * 59 + this.Mail.GetHashCode(); - if (this.Notify != null) - hashCode = hashCode * 59 + this.Notify.GetHashCode(); - if (this.InternalFax != null) - hashCode = hashCode * 59 + this.InternalFax.GetHashCode(); - if (this.LastMail != null) - hashCode = hashCode * 59 + this.LastMail.GetHashCode(); - if (this.MailBody != null) - hashCode = hashCode * 59 + this.MailBody.GetHashCode(); - if (this.MaxMailOutSize != null) - hashCode = hashCode * 59 + this.MaxMailOutSize.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSettingsInDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSettingsInDTO.cs deleted file mode 100644 index f8b7488..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSettingsInDTO.cs +++ /dev/null @@ -1,261 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for Mail IN settings - /// - [DataContract] - public partial class MailAccountSettingsInDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Manual 1: All 2: OnlyAddressBook . - /// Archive with safe mode (only if ArchiveOption is set to All). - /// Default document type. - /// Default state. - /// Archive mail with default data. - /// Monitored folder path. - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite . - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite . - /// Whitelist. - public MailAccountSettingsInDTO(int? archiveOption = default(int?), bool? safeMode = default(bool?), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), StateSimpleDTO state = default(StateSimpleDTO), bool? assAos = default(bool?), string monitoredFolder = default(string), int? pecSender = default(int?), int? pecSubject = default(int?), List whitelist = default(List)) - { - this.ArchiveOption = archiveOption; - this.SafeMode = safeMode; - this.DocumentType = documentType; - this.State = state; - this.AssAos = assAos; - this.MonitoredFolder = monitoredFolder; - this.PecSender = pecSender; - this.PecSubject = pecSubject; - this.Whitelist = whitelist; - } - - /// - /// Possible values: 0: Manual 1: All 2: OnlyAddressBook - /// - /// Possible values: 0: Manual 1: All 2: OnlyAddressBook - [DataMember(Name="archiveOption", EmitDefaultValue=false)] - public int? ArchiveOption { get; set; } - - /// - /// Archive with safe mode (only if ArchiveOption is set to All) - /// - /// Archive with safe mode (only if ArchiveOption is set to All) - [DataMember(Name="safeMode", EmitDefaultValue=false)] - public bool? SafeMode { get; set; } - - /// - /// Default document type - /// - /// Default document type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Default state - /// - /// Default state - [DataMember(Name="state", EmitDefaultValue=false)] - public StateSimpleDTO State { get; set; } - - /// - /// Archive mail with default data - /// - /// Archive mail with default data - [DataMember(Name="assAos", EmitDefaultValue=false)] - public bool? AssAos { get; set; } - - /// - /// Monitored folder path - /// - /// Monitored folder path - [DataMember(Name="monitoredFolder", EmitDefaultValue=false)] - public string MonitoredFolder { get; set; } - - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - [DataMember(Name="pecSender", EmitDefaultValue=false)] - public int? PecSender { get; set; } - - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - /// - /// Possible values: 0: Unread 1: Overwrite 2: DoNotOverwrite - [DataMember(Name="pecSubject", EmitDefaultValue=false)] - public int? PecSubject { get; set; } - - /// - /// Whitelist - /// - /// Whitelist - [DataMember(Name="whitelist", EmitDefaultValue=false)] - public List Whitelist { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountSettingsInDTO {\n"); - sb.Append(" ArchiveOption: ").Append(ArchiveOption).Append("\n"); - sb.Append(" SafeMode: ").Append(SafeMode).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" AssAos: ").Append(AssAos).Append("\n"); - sb.Append(" MonitoredFolder: ").Append(MonitoredFolder).Append("\n"); - sb.Append(" PecSender: ").Append(PecSender).Append("\n"); - sb.Append(" PecSubject: ").Append(PecSubject).Append("\n"); - sb.Append(" Whitelist: ").Append(Whitelist).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountSettingsInDTO); - } - - /// - /// Returns true if MailAccountSettingsInDTO instances are equal - /// - /// Instance of MailAccountSettingsInDTO to be compared - /// Boolean - public bool Equals(MailAccountSettingsInDTO input) - { - if (input == null) - return false; - - return - ( - this.ArchiveOption == input.ArchiveOption || - (this.ArchiveOption != null && - this.ArchiveOption.Equals(input.ArchiveOption)) - ) && - ( - this.SafeMode == input.SafeMode || - (this.SafeMode != null && - this.SafeMode.Equals(input.SafeMode)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && - ( - this.AssAos == input.AssAos || - (this.AssAos != null && - this.AssAos.Equals(input.AssAos)) - ) && - ( - this.MonitoredFolder == input.MonitoredFolder || - (this.MonitoredFolder != null && - this.MonitoredFolder.Equals(input.MonitoredFolder)) - ) && - ( - this.PecSender == input.PecSender || - (this.PecSender != null && - this.PecSender.Equals(input.PecSender)) - ) && - ( - this.PecSubject == input.PecSubject || - (this.PecSubject != null && - this.PecSubject.Equals(input.PecSubject)) - ) && - ( - this.Whitelist == input.Whitelist || - this.Whitelist != null && - this.Whitelist.SequenceEqual(input.Whitelist) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ArchiveOption != null) - hashCode = hashCode * 59 + this.ArchiveOption.GetHashCode(); - if (this.SafeMode != null) - hashCode = hashCode * 59 + this.SafeMode.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.AssAos != null) - hashCode = hashCode * 59 + this.AssAos.GetHashCode(); - if (this.MonitoredFolder != null) - hashCode = hashCode * 59 + this.MonitoredFolder.GetHashCode(); - if (this.PecSender != null) - hashCode = hashCode * 59 + this.PecSender.GetHashCode(); - if (this.PecSubject != null) - hashCode = hashCode * 59 + this.PecSubject.GetHashCode(); - if (this.Whitelist != null) - hashCode = hashCode * 59 + this.Whitelist.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSettingsOutDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSettingsOutDTO.cs deleted file mode 100644 index 6554201..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountSettingsOutDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for Mail OUT settings - /// - [DataContract] - public partial class MailAccountSettingsOutDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 1: Always 2: Never 3: Manual . - /// Possible values: 1: Always 2: Never 3: Manual . - /// Default document type. - /// Default state. - /// Archive mail with default data. - /// Monitored folder path. - public MailAccountSettingsOutDTO(int? mailWithInternalDestination = default(int?), int? mailWithExternalDestination = default(int?), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), StateSimpleDTO outState = default(StateSimpleDTO), bool? mailOutDefault = default(bool?), string monitoredFolder = default(string)) - { - this.MailWithInternalDestination = mailWithInternalDestination; - this.MailWithExternalDestination = mailWithExternalDestination; - this.DocumentType = documentType; - this.OutState = outState; - this.MailOutDefault = mailOutDefault; - this.MonitoredFolder = monitoredFolder; - } - - /// - /// Possible values: 1: Always 2: Never 3: Manual - /// - /// Possible values: 1: Always 2: Never 3: Manual - [DataMember(Name="mailWithInternalDestination", EmitDefaultValue=false)] - public int? MailWithInternalDestination { get; set; } - - /// - /// Possible values: 1: Always 2: Never 3: Manual - /// - /// Possible values: 1: Always 2: Never 3: Manual - [DataMember(Name="mailWithExternalDestination", EmitDefaultValue=false)] - public int? MailWithExternalDestination { get; set; } - - /// - /// Default document type - /// - /// Default document type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Default state - /// - /// Default state - [DataMember(Name="outState", EmitDefaultValue=false)] - public StateSimpleDTO OutState { get; set; } - - /// - /// Archive mail with default data - /// - /// Archive mail with default data - [DataMember(Name="mailOutDefault", EmitDefaultValue=false)] - public bool? MailOutDefault { get; set; } - - /// - /// Monitored folder path - /// - /// Monitored folder path - [DataMember(Name="monitoredFolder", EmitDefaultValue=false)] - public string MonitoredFolder { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountSettingsOutDTO {\n"); - sb.Append(" MailWithInternalDestination: ").Append(MailWithInternalDestination).Append("\n"); - sb.Append(" MailWithExternalDestination: ").Append(MailWithExternalDestination).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" OutState: ").Append(OutState).Append("\n"); - sb.Append(" MailOutDefault: ").Append(MailOutDefault).Append("\n"); - sb.Append(" MonitoredFolder: ").Append(MonitoredFolder).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountSettingsOutDTO); - } - - /// - /// Returns true if MailAccountSettingsOutDTO instances are equal - /// - /// Instance of MailAccountSettingsOutDTO to be compared - /// Boolean - public bool Equals(MailAccountSettingsOutDTO input) - { - if (input == null) - return false; - - return - ( - this.MailWithInternalDestination == input.MailWithInternalDestination || - (this.MailWithInternalDestination != null && - this.MailWithInternalDestination.Equals(input.MailWithInternalDestination)) - ) && - ( - this.MailWithExternalDestination == input.MailWithExternalDestination || - (this.MailWithExternalDestination != null && - this.MailWithExternalDestination.Equals(input.MailWithExternalDestination)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.OutState == input.OutState || - (this.OutState != null && - this.OutState.Equals(input.OutState)) - ) && - ( - this.MailOutDefault == input.MailOutDefault || - (this.MailOutDefault != null && - this.MailOutDefault.Equals(input.MailOutDefault)) - ) && - ( - this.MonitoredFolder == input.MonitoredFolder || - (this.MonitoredFolder != null && - this.MonitoredFolder.Equals(input.MonitoredFolder)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.MailWithInternalDestination != null) - hashCode = hashCode * 59 + this.MailWithInternalDestination.GetHashCode(); - if (this.MailWithExternalDestination != null) - hashCode = hashCode * 59 + this.MailWithExternalDestination.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.OutState != null) - hashCode = hashCode * 59 + this.OutState.GetHashCode(); - if (this.MailOutDefault != null) - hashCode = hashCode * 59 + this.MailOutDefault.GetHashCode(); - if (this.MonitoredFolder != null) - hashCode = hashCode * 59 + this.MonitoredFolder.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountStoreSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountStoreSettingsDTO.cs deleted file mode 100644 index 740f7fa..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailAccountStoreSettingsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Action type after download a mail - /// - [DataContract] - public partial class MailAccountStoreSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Action type after download a mail. - /// Action type after download a mail. - public MailAccountStoreSettingsDTO(int? predefinedProfileId = default(int?), List mapping = default(List)) - { - this.PredefinedProfileId = predefinedProfileId; - this.Mapping = mapping; - } - - /// - /// Action type after download a mail - /// - /// Action type after download a mail - [DataMember(Name="predefinedProfileId", EmitDefaultValue=false)] - public int? PredefinedProfileId { get; set; } - - /// - /// Action type after download a mail - /// - /// Action type after download a mail - [DataMember(Name="mapping", EmitDefaultValue=false)] - public List Mapping { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailAccountStoreSettingsDTO {\n"); - sb.Append(" PredefinedProfileId: ").Append(PredefinedProfileId).Append("\n"); - sb.Append(" Mapping: ").Append(Mapping).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailAccountStoreSettingsDTO); - } - - /// - /// Returns true if MailAccountStoreSettingsDTO instances are equal - /// - /// Instance of MailAccountStoreSettingsDTO to be compared - /// Boolean - public bool Equals(MailAccountStoreSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.PredefinedProfileId == input.PredefinedProfileId || - (this.PredefinedProfileId != null && - this.PredefinedProfileId.Equals(input.PredefinedProfileId)) - ) && - ( - this.Mapping == input.Mapping || - this.Mapping != null && - this.Mapping.SequenceEqual(input.Mapping) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.PredefinedProfileId != null) - hashCode = hashCode * 59 + this.PredefinedProfileId.GetHashCode(); - if (this.Mapping != null) - hashCode = hashCode * 59 + this.Mapping.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailBoxFolderDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailBoxFolderDTO.cs deleted file mode 100644 index 5c86835..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailBoxFolderDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for mail box folder information - /// - [DataContract] - public partial class MailBoxFolderDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Folder name. - /// Folder path. - /// Subfolders. - public MailBoxFolderDTO(string name = default(string), string fullName = default(string), List subFolders = default(List)) - { - this.Name = name; - this.FullName = fullName; - this.SubFolders = subFolders; - } - - /// - /// Folder name - /// - /// Folder name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Folder path - /// - /// Folder path - [DataMember(Name="fullName", EmitDefaultValue=false)] - public string FullName { get; set; } - - /// - /// Subfolders - /// - /// Subfolders - [DataMember(Name="subFolders", EmitDefaultValue=false)] - public List SubFolders { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailBoxFolderDTO {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" FullName: ").Append(FullName).Append("\n"); - sb.Append(" SubFolders: ").Append(SubFolders).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailBoxFolderDTO); - } - - /// - /// Returns true if MailBoxFolderDTO instances are equal - /// - /// Instance of MailBoxFolderDTO to be compared - /// Boolean - public bool Equals(MailBoxFolderDTO input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.FullName == input.FullName || - (this.FullName != null && - this.FullName.Equals(input.FullName)) - ) && - ( - this.SubFolders == input.SubFolders || - this.SubFolders != null && - this.SubFolders.SequenceEqual(input.SubFolders) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.FullName != null) - hashCode = hashCode * 59 + this.FullName.GetHashCode(); - if (this.SubFolders != null) - hashCode = hashCode * 59 + this.SubFolders.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailDefaultsInfoDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailDefaultsInfoDTO.cs deleted file mode 100644 index b0dd58a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailDefaultsInfoDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Email defaults information - /// - [DataContract] - public partial class MailDefaultsInfoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Sender email address. - /// Sender description. - /// Default subject. - /// Whether the users privacy settings are enabled for the mail's attachments. - /// Whether the X-Uidl are ignored on message's hash compute. - /// Whether the timezone is ignored on message's hash compute. - /// Whether the message's hash is computed using the email address. - public MailDefaultsInfoDTO(string senderEmailAddress = default(string), string senderDescription = default(string), string subject = default(string), bool? userPrivacyForAttachmentsEnabled = default(bool?), bool? xUidlIgnored = default(bool?), bool? timezoneIgnored = default(bool?), bool? hashIsComputedWithEmailAddress = default(bool?)) - { - this.SenderEmailAddress = senderEmailAddress; - this.SenderDescription = senderDescription; - this.Subject = subject; - this.UserPrivacyForAttachmentsEnabled = userPrivacyForAttachmentsEnabled; - this.XUidlIgnored = xUidlIgnored; - this.TimezoneIgnored = timezoneIgnored; - this.HashIsComputedWithEmailAddress = hashIsComputedWithEmailAddress; - } - - /// - /// Sender email address - /// - /// Sender email address - [DataMember(Name="senderEmailAddress", EmitDefaultValue=false)] - public string SenderEmailAddress { get; set; } - - /// - /// Sender description - /// - /// Sender description - [DataMember(Name="senderDescription", EmitDefaultValue=false)] - public string SenderDescription { get; set; } - - /// - /// Default subject - /// - /// Default subject - [DataMember(Name="subject", EmitDefaultValue=false)] - public string Subject { get; set; } - - /// - /// Whether the users privacy settings are enabled for the mail's attachments - /// - /// Whether the users privacy settings are enabled for the mail's attachments - [DataMember(Name="userPrivacyForAttachmentsEnabled", EmitDefaultValue=false)] - public bool? UserPrivacyForAttachmentsEnabled { get; set; } - - /// - /// Whether the X-Uidl are ignored on message's hash compute - /// - /// Whether the X-Uidl are ignored on message's hash compute - [DataMember(Name="xUidlIgnored", EmitDefaultValue=false)] - public bool? XUidlIgnored { get; set; } - - /// - /// Whether the timezone is ignored on message's hash compute - /// - /// Whether the timezone is ignored on message's hash compute - [DataMember(Name="timezoneIgnored", EmitDefaultValue=false)] - public bool? TimezoneIgnored { get; set; } - - /// - /// Whether the message's hash is computed using the email address - /// - /// Whether the message's hash is computed using the email address - [DataMember(Name="hashIsComputedWithEmailAddress", EmitDefaultValue=false)] - public bool? HashIsComputedWithEmailAddress { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailDefaultsInfoDTO {\n"); - sb.Append(" SenderEmailAddress: ").Append(SenderEmailAddress).Append("\n"); - sb.Append(" SenderDescription: ").Append(SenderDescription).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" UserPrivacyForAttachmentsEnabled: ").Append(UserPrivacyForAttachmentsEnabled).Append("\n"); - sb.Append(" XUidlIgnored: ").Append(XUidlIgnored).Append("\n"); - sb.Append(" TimezoneIgnored: ").Append(TimezoneIgnored).Append("\n"); - sb.Append(" HashIsComputedWithEmailAddress: ").Append(HashIsComputedWithEmailAddress).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailDefaultsInfoDTO); - } - - /// - /// Returns true if MailDefaultsInfoDTO instances are equal - /// - /// Instance of MailDefaultsInfoDTO to be compared - /// Boolean - public bool Equals(MailDefaultsInfoDTO input) - { - if (input == null) - return false; - - return - ( - this.SenderEmailAddress == input.SenderEmailAddress || - (this.SenderEmailAddress != null && - this.SenderEmailAddress.Equals(input.SenderEmailAddress)) - ) && - ( - this.SenderDescription == input.SenderDescription || - (this.SenderDescription != null && - this.SenderDescription.Equals(input.SenderDescription)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.UserPrivacyForAttachmentsEnabled == input.UserPrivacyForAttachmentsEnabled || - (this.UserPrivacyForAttachmentsEnabled != null && - this.UserPrivacyForAttachmentsEnabled.Equals(input.UserPrivacyForAttachmentsEnabled)) - ) && - ( - this.XUidlIgnored == input.XUidlIgnored || - (this.XUidlIgnored != null && - this.XUidlIgnored.Equals(input.XUidlIgnored)) - ) && - ( - this.TimezoneIgnored == input.TimezoneIgnored || - (this.TimezoneIgnored != null && - this.TimezoneIgnored.Equals(input.TimezoneIgnored)) - ) && - ( - this.HashIsComputedWithEmailAddress == input.HashIsComputedWithEmailAddress || - (this.HashIsComputedWithEmailAddress != null && - this.HashIsComputedWithEmailAddress.Equals(input.HashIsComputedWithEmailAddress)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SenderEmailAddress != null) - hashCode = hashCode * 59 + this.SenderEmailAddress.GetHashCode(); - if (this.SenderDescription != null) - hashCode = hashCode * 59 + this.SenderDescription.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.UserPrivacyForAttachmentsEnabled != null) - hashCode = hashCode * 59 + this.UserPrivacyForAttachmentsEnabled.GetHashCode(); - if (this.XUidlIgnored != null) - hashCode = hashCode * 59 + this.XUidlIgnored.GetHashCode(); - if (this.TimezoneIgnored != null) - hashCode = hashCode * 59 + this.TimezoneIgnored.GetHashCode(); - if (this.HashIsComputedWithEmailAddress != null) - hashCode = hashCode * 59 + this.HashIsComputedWithEmailAddress.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailOptionsDTO.cs deleted file mode 100644 index 28b7878..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailOptionsDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type: mail options - /// - [DataContract] - public partial class MailOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document type. - /// Add document recipients. - /// Add document CCs. - /// Mail body is html. - /// Add document CCs. - /// Add document CCs. - public MailOptionsDTO(DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), bool? addDocRecipients = default(bool?), bool? addDocCCs = default(bool?), bool? htmlBody = default(bool?), List subjects = default(List), List bodys = default(List)) - { - this.DocumentType = documentType; - this.AddDocRecipients = addDocRecipients; - this.AddDocCCs = addDocCCs; - this.HtmlBody = htmlBody; - this.Subjects = subjects; - this.Bodys = bodys; - } - - /// - /// Document type - /// - /// Document type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Add document recipients - /// - /// Add document recipients - [DataMember(Name="addDocRecipients", EmitDefaultValue=false)] - public bool? AddDocRecipients { get; set; } - - /// - /// Add document CCs - /// - /// Add document CCs - [DataMember(Name="addDocCCs", EmitDefaultValue=false)] - public bool? AddDocCCs { get; set; } - - /// - /// Mail body is html - /// - /// Mail body is html - [DataMember(Name="htmlBody", EmitDefaultValue=false)] - public bool? HtmlBody { get; set; } - - /// - /// Add document CCs - /// - /// Add document CCs - [DataMember(Name="subjects", EmitDefaultValue=false)] - public List Subjects { get; set; } - - /// - /// Add document CCs - /// - /// Add document CCs - [DataMember(Name="bodys", EmitDefaultValue=false)] - public List Bodys { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailOptionsDTO {\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" AddDocRecipients: ").Append(AddDocRecipients).Append("\n"); - sb.Append(" AddDocCCs: ").Append(AddDocCCs).Append("\n"); - sb.Append(" HtmlBody: ").Append(HtmlBody).Append("\n"); - sb.Append(" Subjects: ").Append(Subjects).Append("\n"); - sb.Append(" Bodys: ").Append(Bodys).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailOptionsDTO); - } - - /// - /// Returns true if MailOptionsDTO instances are equal - /// - /// Instance of MailOptionsDTO to be compared - /// Boolean - public bool Equals(MailOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.AddDocRecipients == input.AddDocRecipients || - (this.AddDocRecipients != null && - this.AddDocRecipients.Equals(input.AddDocRecipients)) - ) && - ( - this.AddDocCCs == input.AddDocCCs || - (this.AddDocCCs != null && - this.AddDocCCs.Equals(input.AddDocCCs)) - ) && - ( - this.HtmlBody == input.HtmlBody || - (this.HtmlBody != null && - this.HtmlBody.Equals(input.HtmlBody)) - ) && - ( - this.Subjects == input.Subjects || - this.Subjects != null && - this.Subjects.SequenceEqual(input.Subjects) - ) && - ( - this.Bodys == input.Bodys || - this.Bodys != null && - this.Bodys.SequenceEqual(input.Bodys) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.AddDocRecipients != null) - hashCode = hashCode * 59 + this.AddDocRecipients.GetHashCode(); - if (this.AddDocCCs != null) - hashCode = hashCode * 59 + this.AddDocCCs.GetHashCode(); - if (this.HtmlBody != null) - hashCode = hashCode * 59 + this.HtmlBody.GetHashCode(); - if (this.Subjects != null) - hashCode = hashCode * 59 + this.Subjects.GetHashCode(); - if (this.Bodys != null) - hashCode = hashCode * 59 + this.Bodys.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailOptionsTranslationsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailOptionsTranslationsDTO.cs deleted file mode 100644 index ff483f9..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailOptionsTranslationsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type: mail translations - /// - [DataContract] - public partial class MailOptionsTranslationsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Language code. - /// Translation. - public MailOptionsTranslationsDTO(string lang = default(string), string value = default(string)) - { - this.Lang = lang; - this.Value = value; - } - - /// - /// Language code - /// - /// Language code - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Translation - /// - /// Translation - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailOptionsTranslationsDTO {\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailOptionsTranslationsDTO); - } - - /// - /// Returns true if MailOptionsTranslationsDTO instances are equal - /// - /// Instance of MailOptionsTranslationsDTO to be compared - /// Boolean - public bool Equals(MailOptionsTranslationsDTO input) - { - if (input == null) - return false; - - return - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailServerSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MailServerSettingsDTO.cs deleted file mode 100644 index 754ea2e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MailServerSettingsDTO.cs +++ /dev/null @@ -1,329 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for mail settings - /// - [DataContract] - public partial class MailServerSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Server address. - /// Username. - /// Password. - /// Port. - /// Possible values: 0: None 1: TLS 2: SSL . - /// Possible values: 0: Imap 1: Smtp 2: Pop3 . - /// Connection timeout. - /// The mail account id. - /// Possible values: 0: Basic 1: Microsoft 2: Google . - /// The tenant ID. - /// The client ID. - /// The client Secret. - /// The authorization response. - public MailServerSettingsDTO(string server = default(string), string username = default(string), string password = default(string), int? port = default(int?), int? securityProtocol = default(int?), int? type = default(int?), int? timeoutConnect = default(int?), int? mailAccountId = default(int?), int? authenticationMode = default(int?), string tenantId = default(string), string clientId = default(string), string clientSecret = default(string), string authorizationResponse = default(string)) - { - this.Server = server; - this.Username = username; - this.Password = password; - this.Port = port; - this.SecurityProtocol = securityProtocol; - this.Type = type; - this.TimeoutConnect = timeoutConnect; - this.MailAccountId = mailAccountId; - this.AuthenticationMode = authenticationMode; - this.TenantId = tenantId; - this.ClientId = clientId; - this.ClientSecret = clientSecret; - this.AuthorizationResponse = authorizationResponse; - } - - /// - /// Server address - /// - /// Server address - [DataMember(Name="server", EmitDefaultValue=false)] - public string Server { get; set; } - - /// - /// Username - /// - /// Username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Port - /// - /// Port - [DataMember(Name="port", EmitDefaultValue=false)] - public int? Port { get; set; } - - /// - /// Possible values: 0: None 1: TLS 2: SSL - /// - /// Possible values: 0: None 1: TLS 2: SSL - [DataMember(Name="securityProtocol", EmitDefaultValue=false)] - public int? SecurityProtocol { get; set; } - - /// - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - /// - /// Possible values: 0: Imap 1: Smtp 2: Pop3 - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Connection timeout - /// - /// Connection timeout - [DataMember(Name="timeoutConnect", EmitDefaultValue=false)] - public int? TimeoutConnect { get; set; } - - /// - /// The mail account id - /// - /// The mail account id - [DataMember(Name="mailAccountId", EmitDefaultValue=false)] - public int? MailAccountId { get; set; } - - /// - /// Possible values: 0: Basic 1: Microsoft 2: Google - /// - /// Possible values: 0: Basic 1: Microsoft 2: Google - [DataMember(Name="authenticationMode", EmitDefaultValue=false)] - public int? AuthenticationMode { get; set; } - - /// - /// The tenant ID - /// - /// The tenant ID - [DataMember(Name="tenantId", EmitDefaultValue=false)] - public string TenantId { get; set; } - - /// - /// The client ID - /// - /// The client ID - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// The client Secret - /// - /// The client Secret - [DataMember(Name="clientSecret", EmitDefaultValue=false)] - public string ClientSecret { get; set; } - - /// - /// The authorization response - /// - /// The authorization response - [DataMember(Name="authorizationResponse", EmitDefaultValue=false)] - public string AuthorizationResponse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MailServerSettingsDTO {\n"); - sb.Append(" Server: ").Append(Server).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Port: ").Append(Port).Append("\n"); - sb.Append(" SecurityProtocol: ").Append(SecurityProtocol).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" TimeoutConnect: ").Append(TimeoutConnect).Append("\n"); - sb.Append(" MailAccountId: ").Append(MailAccountId).Append("\n"); - sb.Append(" AuthenticationMode: ").Append(AuthenticationMode).Append("\n"); - sb.Append(" TenantId: ").Append(TenantId).Append("\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n"); - sb.Append(" AuthorizationResponse: ").Append(AuthorizationResponse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MailServerSettingsDTO); - } - - /// - /// Returns true if MailServerSettingsDTO instances are equal - /// - /// Instance of MailServerSettingsDTO to be compared - /// Boolean - public bool Equals(MailServerSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.Server == input.Server || - (this.Server != null && - this.Server.Equals(input.Server)) - ) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.Port == input.Port || - (this.Port != null && - this.Port.Equals(input.Port)) - ) && - ( - this.SecurityProtocol == input.SecurityProtocol || - (this.SecurityProtocol != null && - this.SecurityProtocol.Equals(input.SecurityProtocol)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.TimeoutConnect == input.TimeoutConnect || - (this.TimeoutConnect != null && - this.TimeoutConnect.Equals(input.TimeoutConnect)) - ) && - ( - this.MailAccountId == input.MailAccountId || - (this.MailAccountId != null && - this.MailAccountId.Equals(input.MailAccountId)) - ) && - ( - this.AuthenticationMode == input.AuthenticationMode || - (this.AuthenticationMode != null && - this.AuthenticationMode.Equals(input.AuthenticationMode)) - ) && - ( - this.TenantId == input.TenantId || - (this.TenantId != null && - this.TenantId.Equals(input.TenantId)) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.ClientSecret == input.ClientSecret || - (this.ClientSecret != null && - this.ClientSecret.Equals(input.ClientSecret)) - ) && - ( - this.AuthorizationResponse == input.AuthorizationResponse || - (this.AuthorizationResponse != null && - this.AuthorizationResponse.Equals(input.AuthorizationResponse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Server != null) - hashCode = hashCode * 59 + this.Server.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Port != null) - hashCode = hashCode * 59 + this.Port.GetHashCode(); - if (this.SecurityProtocol != null) - hashCode = hashCode * 59 + this.SecurityProtocol.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.TimeoutConnect != null) - hashCode = hashCode * 59 + this.TimeoutConnect.GetHashCode(); - if (this.MailAccountId != null) - hashCode = hashCode * 59 + this.MailAccountId.GetHashCode(); - if (this.AuthenticationMode != null) - hashCode = hashCode * 59 + this.AuthenticationMode.GetHashCode(); - if (this.TenantId != null) - hashCode = hashCode * 59 + this.TenantId.GetHashCode(); - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.ClientSecret != null) - hashCode = hashCode * 59 + this.ClientSecret.GetHashCode(); - if (this.AuthorizationResponse != null) - hashCode = hashCode * 59 + this.AuthorizationResponse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MaskClassOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MaskClassOptionsDTO.cs deleted file mode 100644 index 3f06682..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MaskClassOptionsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of the permissions on the document types in the mask - /// - [DataContract] - public partial class MaskClassOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document Type Identifier. - /// Deny. - public MaskClassOptionsDTO(int? documentTypeId = default(int?), bool? deny = default(bool?)) - { - this.DocumentTypeId = documentTypeId; - this.Deny = deny; - } - - /// - /// Document Type Identifier - /// - /// Document Type Identifier - [DataMember(Name="documentTypeId", EmitDefaultValue=false)] - public int? DocumentTypeId { get; set; } - - /// - /// Deny - /// - /// Deny - [DataMember(Name="deny", EmitDefaultValue=false)] - public bool? Deny { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MaskClassOptionsDTO {\n"); - sb.Append(" DocumentTypeId: ").Append(DocumentTypeId).Append("\n"); - sb.Append(" Deny: ").Append(Deny).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MaskClassOptionsDTO); - } - - /// - /// Returns true if MaskClassOptionsDTO instances are equal - /// - /// Instance of MaskClassOptionsDTO to be compared - /// Boolean - public bool Equals(MaskClassOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.DocumentTypeId == input.DocumentTypeId || - (this.DocumentTypeId != null && - this.DocumentTypeId.Equals(input.DocumentTypeId)) - ) && - ( - this.Deny == input.Deny || - (this.Deny != null && - this.Deny.Equals(input.Deny)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentTypeId != null) - hashCode = hashCode * 59 + this.DocumentTypeId.GetHashCode(); - if (this.Deny != null) - hashCode = hashCode * 59 + this.Deny.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MaskDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MaskDTO.cs deleted file mode 100644 index 9676a12..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MaskDTO.cs +++ /dev/null @@ -1,465 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of mask to archive documents - /// - [DataContract] - public partial class MaskDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// Description. - /// Predefined Profile Identifier. - /// Author Identifier. - /// External Identifier. - /// Root. - /// Possible values: 0: Nothing 1: Barcode 2: Archiviazione . - /// Possible values: 0: None 1: OnlyNever 2: OnlyOptionally 3: NeverOrOptionally 4: OnlyAlways 5: AlwaysOrNever 6: AlwaysOrOptionally 7: All . - /// Show Additional. - /// Possible values: 0: UserMask 1: SystemMask . - /// Show Groups. - /// Author Complete Name. - /// Whitelist Extension. - /// Blacklist Extension. - /// File size minimum value. - /// File size maximum value. - /// Predefined Profile associated with the mask. - /// Details. - /// Options on document type. - /// This option indicates if the mask use new features for ARXivar Next Portal. - public MaskDTO(string id = default(string), string maskName = default(string), string maskDescription = default(string), int? predefinedProfileId = default(int?), int? user = default(int?), string externalId = default(string), bool? isRoot = default(bool?), int? type = default(int?), int? paMode = default(int?), bool? showAdditional = default(bool?), int? kind = default(int?), bool? showGroups = default(bool?), string userCompleteName = default(string), List whitelistFileExtensions = default(List), List blacklistFileExtensions = default(List), long? minFileSize = default(long?), long? maxFileSize = default(long?), PredefinedProfileDTO predefinedProfile = default(PredefinedProfileDTO), List maskDetails = default(List), List maskClassOptions = default(List), bool? useAdvancedTool = default(bool?)) - { - this.Id = id; - this.MaskName = maskName; - this.MaskDescription = maskDescription; - this.PredefinedProfileId = predefinedProfileId; - this.User = user; - this.ExternalId = externalId; - this.IsRoot = isRoot; - this.Type = type; - this.PaMode = paMode; - this.ShowAdditional = showAdditional; - this.Kind = kind; - this.ShowGroups = showGroups; - this.UserCompleteName = userCompleteName; - this.WhitelistFileExtensions = whitelistFileExtensions; - this.BlacklistFileExtensions = blacklistFileExtensions; - this.MinFileSize = minFileSize; - this.MaxFileSize = maxFileSize; - this.PredefinedProfile = predefinedProfile; - this.MaskDetails = maskDetails; - this.MaskClassOptions = maskClassOptions; - this.UseAdvancedTool = useAdvancedTool; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="maskName", EmitDefaultValue=false)] - public string MaskName { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="maskDescription", EmitDefaultValue=false)] - public string MaskDescription { get; set; } - - /// - /// Predefined Profile Identifier - /// - /// Predefined Profile Identifier - [DataMember(Name="predefinedProfileId", EmitDefaultValue=false)] - public int? PredefinedProfileId { get; set; } - - /// - /// Author Identifier - /// - /// Author Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Root - /// - /// Root - [DataMember(Name="isRoot", EmitDefaultValue=false)] - public bool? IsRoot { get; set; } - - /// - /// Possible values: 0: Nothing 1: Barcode 2: Archiviazione - /// - /// Possible values: 0: Nothing 1: Barcode 2: Archiviazione - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Possible values: 0: None 1: OnlyNever 2: OnlyOptionally 3: NeverOrOptionally 4: OnlyAlways 5: AlwaysOrNever 6: AlwaysOrOptionally 7: All - /// - /// Possible values: 0: None 1: OnlyNever 2: OnlyOptionally 3: NeverOrOptionally 4: OnlyAlways 5: AlwaysOrNever 6: AlwaysOrOptionally 7: All - [DataMember(Name="paMode", EmitDefaultValue=false)] - public int? PaMode { get; set; } - - /// - /// Show Additional - /// - /// Show Additional - [DataMember(Name="showAdditional", EmitDefaultValue=false)] - public bool? ShowAdditional { get; set; } - - /// - /// Possible values: 0: UserMask 1: SystemMask - /// - /// Possible values: 0: UserMask 1: SystemMask - [DataMember(Name="kind", EmitDefaultValue=false)] - public int? Kind { get; set; } - - /// - /// Show Groups - /// - /// Show Groups - [DataMember(Name="showGroups", EmitDefaultValue=false)] - public bool? ShowGroups { get; set; } - - /// - /// Author Complete Name - /// - /// Author Complete Name - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Whitelist Extension - /// - /// Whitelist Extension - [DataMember(Name="whitelistFileExtensions", EmitDefaultValue=false)] - public List WhitelistFileExtensions { get; set; } - - /// - /// Blacklist Extension - /// - /// Blacklist Extension - [DataMember(Name="blacklistFileExtensions", EmitDefaultValue=false)] - public List BlacklistFileExtensions { get; set; } - - /// - /// File size minimum value - /// - /// File size minimum value - [DataMember(Name="minFileSize", EmitDefaultValue=false)] - public long? MinFileSize { get; set; } - - /// - /// File size maximum value - /// - /// File size maximum value - [DataMember(Name="maxFileSize", EmitDefaultValue=false)] - public long? MaxFileSize { get; set; } - - /// - /// Predefined Profile associated with the mask - /// - /// Predefined Profile associated with the mask - [DataMember(Name="predefinedProfile", EmitDefaultValue=false)] - public PredefinedProfileDTO PredefinedProfile { get; set; } - - /// - /// Details - /// - /// Details - [DataMember(Name="maskDetails", EmitDefaultValue=false)] - public List MaskDetails { get; set; } - - /// - /// Options on document type - /// - /// Options on document type - [DataMember(Name="maskClassOptions", EmitDefaultValue=false)] - public List MaskClassOptions { get; set; } - - /// - /// This option indicates if the mask use new features for ARXivar Next Portal - /// - /// This option indicates if the mask use new features for ARXivar Next Portal - [DataMember(Name="useAdvancedTool", EmitDefaultValue=false)] - public bool? UseAdvancedTool { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MaskDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" MaskName: ").Append(MaskName).Append("\n"); - sb.Append(" MaskDescription: ").Append(MaskDescription).Append("\n"); - sb.Append(" PredefinedProfileId: ").Append(PredefinedProfileId).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" IsRoot: ").Append(IsRoot).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" PaMode: ").Append(PaMode).Append("\n"); - sb.Append(" ShowAdditional: ").Append(ShowAdditional).Append("\n"); - sb.Append(" Kind: ").Append(Kind).Append("\n"); - sb.Append(" ShowGroups: ").Append(ShowGroups).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" WhitelistFileExtensions: ").Append(WhitelistFileExtensions).Append("\n"); - sb.Append(" BlacklistFileExtensions: ").Append(BlacklistFileExtensions).Append("\n"); - sb.Append(" MinFileSize: ").Append(MinFileSize).Append("\n"); - sb.Append(" MaxFileSize: ").Append(MaxFileSize).Append("\n"); - sb.Append(" PredefinedProfile: ").Append(PredefinedProfile).Append("\n"); - sb.Append(" MaskDetails: ").Append(MaskDetails).Append("\n"); - sb.Append(" MaskClassOptions: ").Append(MaskClassOptions).Append("\n"); - sb.Append(" UseAdvancedTool: ").Append(UseAdvancedTool).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MaskDTO); - } - - /// - /// Returns true if MaskDTO instances are equal - /// - /// Instance of MaskDTO to be compared - /// Boolean - public bool Equals(MaskDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.MaskName == input.MaskName || - (this.MaskName != null && - this.MaskName.Equals(input.MaskName)) - ) && - ( - this.MaskDescription == input.MaskDescription || - (this.MaskDescription != null && - this.MaskDescription.Equals(input.MaskDescription)) - ) && - ( - this.PredefinedProfileId == input.PredefinedProfileId || - (this.PredefinedProfileId != null && - this.PredefinedProfileId.Equals(input.PredefinedProfileId)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.IsRoot == input.IsRoot || - (this.IsRoot != null && - this.IsRoot.Equals(input.IsRoot)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.PaMode == input.PaMode || - (this.PaMode != null && - this.PaMode.Equals(input.PaMode)) - ) && - ( - this.ShowAdditional == input.ShowAdditional || - (this.ShowAdditional != null && - this.ShowAdditional.Equals(input.ShowAdditional)) - ) && - ( - this.Kind == input.Kind || - (this.Kind != null && - this.Kind.Equals(input.Kind)) - ) && - ( - this.ShowGroups == input.ShowGroups || - (this.ShowGroups != null && - this.ShowGroups.Equals(input.ShowGroups)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.WhitelistFileExtensions == input.WhitelistFileExtensions || - this.WhitelistFileExtensions != null && - this.WhitelistFileExtensions.SequenceEqual(input.WhitelistFileExtensions) - ) && - ( - this.BlacklistFileExtensions == input.BlacklistFileExtensions || - this.BlacklistFileExtensions != null && - this.BlacklistFileExtensions.SequenceEqual(input.BlacklistFileExtensions) - ) && - ( - this.MinFileSize == input.MinFileSize || - (this.MinFileSize != null && - this.MinFileSize.Equals(input.MinFileSize)) - ) && - ( - this.MaxFileSize == input.MaxFileSize || - (this.MaxFileSize != null && - this.MaxFileSize.Equals(input.MaxFileSize)) - ) && - ( - this.PredefinedProfile == input.PredefinedProfile || - (this.PredefinedProfile != null && - this.PredefinedProfile.Equals(input.PredefinedProfile)) - ) && - ( - this.MaskDetails == input.MaskDetails || - this.MaskDetails != null && - this.MaskDetails.SequenceEqual(input.MaskDetails) - ) && - ( - this.MaskClassOptions == input.MaskClassOptions || - this.MaskClassOptions != null && - this.MaskClassOptions.SequenceEqual(input.MaskClassOptions) - ) && - ( - this.UseAdvancedTool == input.UseAdvancedTool || - (this.UseAdvancedTool != null && - this.UseAdvancedTool.Equals(input.UseAdvancedTool)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.MaskName != null) - hashCode = hashCode * 59 + this.MaskName.GetHashCode(); - if (this.MaskDescription != null) - hashCode = hashCode * 59 + this.MaskDescription.GetHashCode(); - if (this.PredefinedProfileId != null) - hashCode = hashCode * 59 + this.PredefinedProfileId.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.IsRoot != null) - hashCode = hashCode * 59 + this.IsRoot.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.PaMode != null) - hashCode = hashCode * 59 + this.PaMode.GetHashCode(); - if (this.ShowAdditional != null) - hashCode = hashCode * 59 + this.ShowAdditional.GetHashCode(); - if (this.Kind != null) - hashCode = hashCode * 59 + this.Kind.GetHashCode(); - if (this.ShowGroups != null) - hashCode = hashCode * 59 + this.ShowGroups.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.WhitelistFileExtensions != null) - hashCode = hashCode * 59 + this.WhitelistFileExtensions.GetHashCode(); - if (this.BlacklistFileExtensions != null) - hashCode = hashCode * 59 + this.BlacklistFileExtensions.GetHashCode(); - if (this.MinFileSize != null) - hashCode = hashCode * 59 + this.MinFileSize.GetHashCode(); - if (this.MaxFileSize != null) - hashCode = hashCode * 59 + this.MaxFileSize.GetHashCode(); - if (this.PredefinedProfile != null) - hashCode = hashCode * 59 + this.PredefinedProfile.GetHashCode(); - if (this.MaskDetails != null) - hashCode = hashCode * 59 + this.MaskDetails.GetHashCode(); - if (this.MaskClassOptions != null) - hashCode = hashCode * 59 + this.MaskClassOptions.GetHashCode(); - if (this.UseAdvancedTool != null) - hashCode = hashCode * 59 + this.UseAdvancedTool.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MaskDetailDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MaskDetailDTO.cs deleted file mode 100644 index 1e5802f..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MaskDetailDTO.cs +++ /dev/null @@ -1,346 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// MaskDetailDTO - /// - [DataContract] - public partial class MaskDetailDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Detail Identifier. - /// Mask Identifier. - /// Name of the field.. - /// Label. - /// Mask detail order. - /// Read Only. - /// Required. - /// Possible values: 0: NonImpostato 1: From 2: To 3: Cc 4: Aoo 5: DocumentType 6: DataDoc 7: Numero 8: Oggetto 9: Origine 10: Stato 11: Pratiche 12: Scadenza 13: Importante 14: AbilitaWeb 15: AvviaWorkFlow 16: InviaPerFax 17: InviaPerMail 18: AllegaATaskAttivo 19: InserisciInAssociazione 20: InserisciInFascicolo 21: InserisciInRelazioneManuale 22: GestisciRevisioni 23: Note 24: Allegati 25: Aggiuntivo 26: File 27: Scanner 28: Barcode 29: SicurezzaSingoloDocumento 30: ExternalId 31: AllegaMemo 32: Senders 33: AvviaCollaboration 34: ScansioneImmediata 35: NegaCommuta 36: From_Cap 37: From_Cell 38: From_Codfis 39: From_Codice 40: From_Contatti 41: From_Email 42: From_Fax 43: From_Faxnome 44: From_Indirizzo 45: From_Localita 46: From_Mail 47: From_Mansione 48: From_Nazione 49: From_Partiva 50: From_Provincia 51: From_Reparto 52: From_Riferimento 53: From_Tel 54: From_Telnome 55: From_Ufficio 56: From_Valore 57: From_Abitazione 58: To_Cap 59: To_Cell 60: To_Codfis 61: To_Codice 62: To_Contatti 63: To_Email 64: To_Fax 65: To_Faxnome 66: To_Indirizzo 67: To_Localita 68: To_Mail 69: To_Mansione 70: To_Nazione 71: To_Partiva 72: To_Provincia 73: To_Reparto 74: To_Riferimento 75: To_Tel 76: To_Telnome 77: To_Ufficio 78: To_Valore 79: To_Abitazione 80: Cc_Cap 81: Cc_Cell 82: Cc_Codfis 83: Cc_Codice 84: Cc_Contatti 85: Cc_Email 86: Cc_Fax 87: Cc_Faxnome 88: Cc_Indirizzo 89: Cc_Localita 90: Cc_Mail 91: Cc_Mansione 92: Cc_Nazione 93: Cc_Partiva 94: Cc_Provincia 95: Cc_Reparto 96: Cc_Riferimento 97: Cc_Tel 98: Cc_Telnome 99: Cc_Ufficio 100: Cc_Valore 101: Cc_Abitazione 102: Senders_Cap 103: Senders_Cell 104: Senders_Codfis 105: Senders_Codice 106: Senders_Contatti 107: Senders_Email 108: Senders_Fax 109: Senders_Faxnome 110: Senders_Indirizzo 111: Senders_Localita 112: Senders_Mail 113: Senders_Mansione 114: Senders_Nazione 115: Senders_Partiva 116: Senders_Provincia 117: Senders_Reparto 118: Senders_Riferimento 119: Senders_Tel 120: Senders_Telnome 121: Senders_Ufficio 122: Senders_Valore 123: Senders_Abitazione 124: From_Priorita 125: To_Priorita 126: Cc_Priorita 127: Senders_Priorita 128: Instruction . - /// The visibility condition formula for this mask field. - /// The mandatory condition formula for this mask field. - /// The preferred address book for search contacts for this field. - /// Possible addressbook for selection for this field. - /// Translations for the field label. - /// Number of display columns for the field. - public MaskDetailDTO(string id = default(string), string maskId = default(string), string fieldName = default(string), string label = default(string), int? order = default(int?), bool? readOnly = default(bool?), bool? required = default(bool?), int? detailKind = default(int?), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), List translations = default(List), int? columns = default(int?)) - { - this.Id = id; - this.MaskId = maskId; - this.FieldName = fieldName; - this.Label = label; - this.Order = order; - this.ReadOnly = readOnly; - this.Required = required; - this.DetailKind = detailKind; - this.VisibilityCondition = visibilityCondition; - this.MandatoryCondition = mandatoryCondition; - this.AddressBookDefaultFilter = addressBookDefaultFilter; - this.EnabledAddressBook = enabledAddressBook; - this.Translations = translations; - this.Columns = columns; - } - - /// - /// Detail Identifier - /// - /// Detail Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Mask Identifier - /// - /// Mask Identifier - [DataMember(Name="maskId", EmitDefaultValue=false)] - public string MaskId { get; set; } - - /// - /// Name of the field. - /// - /// Name of the field. - [DataMember(Name="fieldName", EmitDefaultValue=false)] - public string FieldName { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Mask detail order - /// - /// Mask detail order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// Read Only - /// - /// Read Only - [DataMember(Name="readOnly", EmitDefaultValue=false)] - public bool? ReadOnly { get; set; } - - /// - /// Required - /// - /// Required - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Possible values: 0: NonImpostato 1: From 2: To 3: Cc 4: Aoo 5: DocumentType 6: DataDoc 7: Numero 8: Oggetto 9: Origine 10: Stato 11: Pratiche 12: Scadenza 13: Importante 14: AbilitaWeb 15: AvviaWorkFlow 16: InviaPerFax 17: InviaPerMail 18: AllegaATaskAttivo 19: InserisciInAssociazione 20: InserisciInFascicolo 21: InserisciInRelazioneManuale 22: GestisciRevisioni 23: Note 24: Allegati 25: Aggiuntivo 26: File 27: Scanner 28: Barcode 29: SicurezzaSingoloDocumento 30: ExternalId 31: AllegaMemo 32: Senders 33: AvviaCollaboration 34: ScansioneImmediata 35: NegaCommuta 36: From_Cap 37: From_Cell 38: From_Codfis 39: From_Codice 40: From_Contatti 41: From_Email 42: From_Fax 43: From_Faxnome 44: From_Indirizzo 45: From_Localita 46: From_Mail 47: From_Mansione 48: From_Nazione 49: From_Partiva 50: From_Provincia 51: From_Reparto 52: From_Riferimento 53: From_Tel 54: From_Telnome 55: From_Ufficio 56: From_Valore 57: From_Abitazione 58: To_Cap 59: To_Cell 60: To_Codfis 61: To_Codice 62: To_Contatti 63: To_Email 64: To_Fax 65: To_Faxnome 66: To_Indirizzo 67: To_Localita 68: To_Mail 69: To_Mansione 70: To_Nazione 71: To_Partiva 72: To_Provincia 73: To_Reparto 74: To_Riferimento 75: To_Tel 76: To_Telnome 77: To_Ufficio 78: To_Valore 79: To_Abitazione 80: Cc_Cap 81: Cc_Cell 82: Cc_Codfis 83: Cc_Codice 84: Cc_Contatti 85: Cc_Email 86: Cc_Fax 87: Cc_Faxnome 88: Cc_Indirizzo 89: Cc_Localita 90: Cc_Mail 91: Cc_Mansione 92: Cc_Nazione 93: Cc_Partiva 94: Cc_Provincia 95: Cc_Reparto 96: Cc_Riferimento 97: Cc_Tel 98: Cc_Telnome 99: Cc_Ufficio 100: Cc_Valore 101: Cc_Abitazione 102: Senders_Cap 103: Senders_Cell 104: Senders_Codfis 105: Senders_Codice 106: Senders_Contatti 107: Senders_Email 108: Senders_Fax 109: Senders_Faxnome 110: Senders_Indirizzo 111: Senders_Localita 112: Senders_Mail 113: Senders_Mansione 114: Senders_Nazione 115: Senders_Partiva 116: Senders_Provincia 117: Senders_Reparto 118: Senders_Riferimento 119: Senders_Tel 120: Senders_Telnome 121: Senders_Ufficio 122: Senders_Valore 123: Senders_Abitazione 124: From_Priorita 125: To_Priorita 126: Cc_Priorita 127: Senders_Priorita 128: Instruction - /// - /// Possible values: 0: NonImpostato 1: From 2: To 3: Cc 4: Aoo 5: DocumentType 6: DataDoc 7: Numero 8: Oggetto 9: Origine 10: Stato 11: Pratiche 12: Scadenza 13: Importante 14: AbilitaWeb 15: AvviaWorkFlow 16: InviaPerFax 17: InviaPerMail 18: AllegaATaskAttivo 19: InserisciInAssociazione 20: InserisciInFascicolo 21: InserisciInRelazioneManuale 22: GestisciRevisioni 23: Note 24: Allegati 25: Aggiuntivo 26: File 27: Scanner 28: Barcode 29: SicurezzaSingoloDocumento 30: ExternalId 31: AllegaMemo 32: Senders 33: AvviaCollaboration 34: ScansioneImmediata 35: NegaCommuta 36: From_Cap 37: From_Cell 38: From_Codfis 39: From_Codice 40: From_Contatti 41: From_Email 42: From_Fax 43: From_Faxnome 44: From_Indirizzo 45: From_Localita 46: From_Mail 47: From_Mansione 48: From_Nazione 49: From_Partiva 50: From_Provincia 51: From_Reparto 52: From_Riferimento 53: From_Tel 54: From_Telnome 55: From_Ufficio 56: From_Valore 57: From_Abitazione 58: To_Cap 59: To_Cell 60: To_Codfis 61: To_Codice 62: To_Contatti 63: To_Email 64: To_Fax 65: To_Faxnome 66: To_Indirizzo 67: To_Localita 68: To_Mail 69: To_Mansione 70: To_Nazione 71: To_Partiva 72: To_Provincia 73: To_Reparto 74: To_Riferimento 75: To_Tel 76: To_Telnome 77: To_Ufficio 78: To_Valore 79: To_Abitazione 80: Cc_Cap 81: Cc_Cell 82: Cc_Codfis 83: Cc_Codice 84: Cc_Contatti 85: Cc_Email 86: Cc_Fax 87: Cc_Faxnome 88: Cc_Indirizzo 89: Cc_Localita 90: Cc_Mail 91: Cc_Mansione 92: Cc_Nazione 93: Cc_Partiva 94: Cc_Provincia 95: Cc_Reparto 96: Cc_Riferimento 97: Cc_Tel 98: Cc_Telnome 99: Cc_Ufficio 100: Cc_Valore 101: Cc_Abitazione 102: Senders_Cap 103: Senders_Cell 104: Senders_Codfis 105: Senders_Codice 106: Senders_Contatti 107: Senders_Email 108: Senders_Fax 109: Senders_Faxnome 110: Senders_Indirizzo 111: Senders_Localita 112: Senders_Mail 113: Senders_Mansione 114: Senders_Nazione 115: Senders_Partiva 116: Senders_Provincia 117: Senders_Reparto 118: Senders_Riferimento 119: Senders_Tel 120: Senders_Telnome 121: Senders_Ufficio 122: Senders_Valore 123: Senders_Abitazione 124: From_Priorita 125: To_Priorita 126: Cc_Priorita 127: Senders_Priorita 128: Instruction - [DataMember(Name="detailKind", EmitDefaultValue=false)] - public int? DetailKind { get; set; } - - /// - /// The visibility condition formula for this mask field - /// - /// The visibility condition formula for this mask field - [DataMember(Name="visibilityCondition", EmitDefaultValue=false)] - public string VisibilityCondition { get; set; } - - /// - /// The mandatory condition formula for this mask field - /// - /// The mandatory condition formula for this mask field - [DataMember(Name="mandatoryCondition", EmitDefaultValue=false)] - public string MandatoryCondition { get; set; } - - /// - /// The preferred address book for search contacts for this field - /// - /// The preferred address book for search contacts for this field - [DataMember(Name="addressBookDefaultFilter", EmitDefaultValue=false)] - public int? AddressBookDefaultFilter { get; set; } - - /// - /// Possible addressbook for selection for this field - /// - /// Possible addressbook for selection for this field - [DataMember(Name="enabledAddressBook", EmitDefaultValue=false)] - public List EnabledAddressBook { get; set; } - - /// - /// Translations for the field label - /// - /// Translations for the field label - [DataMember(Name="translations", EmitDefaultValue=false)] - public List Translations { get; set; } - - /// - /// Number of display columns for the field - /// - /// Number of display columns for the field - [DataMember(Name="columns", EmitDefaultValue=false)] - public int? Columns { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MaskDetailDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" MaskId: ").Append(MaskId).Append("\n"); - sb.Append(" FieldName: ").Append(FieldName).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" ReadOnly: ").Append(ReadOnly).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" DetailKind: ").Append(DetailKind).Append("\n"); - sb.Append(" VisibilityCondition: ").Append(VisibilityCondition).Append("\n"); - sb.Append(" MandatoryCondition: ").Append(MandatoryCondition).Append("\n"); - sb.Append(" AddressBookDefaultFilter: ").Append(AddressBookDefaultFilter).Append("\n"); - sb.Append(" EnabledAddressBook: ").Append(EnabledAddressBook).Append("\n"); - sb.Append(" Translations: ").Append(Translations).Append("\n"); - sb.Append(" Columns: ").Append(Columns).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MaskDetailDTO); - } - - /// - /// Returns true if MaskDetailDTO instances are equal - /// - /// Instance of MaskDetailDTO to be compared - /// Boolean - public bool Equals(MaskDetailDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.MaskId == input.MaskId || - (this.MaskId != null && - this.MaskId.Equals(input.MaskId)) - ) && - ( - this.FieldName == input.FieldName || - (this.FieldName != null && - this.FieldName.Equals(input.FieldName)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.ReadOnly == input.ReadOnly || - (this.ReadOnly != null && - this.ReadOnly.Equals(input.ReadOnly)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.DetailKind == input.DetailKind || - (this.DetailKind != null && - this.DetailKind.Equals(input.DetailKind)) - ) && - ( - this.VisibilityCondition == input.VisibilityCondition || - (this.VisibilityCondition != null && - this.VisibilityCondition.Equals(input.VisibilityCondition)) - ) && - ( - this.MandatoryCondition == input.MandatoryCondition || - (this.MandatoryCondition != null && - this.MandatoryCondition.Equals(input.MandatoryCondition)) - ) && - ( - this.AddressBookDefaultFilter == input.AddressBookDefaultFilter || - (this.AddressBookDefaultFilter != null && - this.AddressBookDefaultFilter.Equals(input.AddressBookDefaultFilter)) - ) && - ( - this.EnabledAddressBook == input.EnabledAddressBook || - this.EnabledAddressBook != null && - this.EnabledAddressBook.SequenceEqual(input.EnabledAddressBook) - ) && - ( - this.Translations == input.Translations || - this.Translations != null && - this.Translations.SequenceEqual(input.Translations) - ) && - ( - this.Columns == input.Columns || - (this.Columns != null && - this.Columns.Equals(input.Columns)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.MaskId != null) - hashCode = hashCode * 59 + this.MaskId.GetHashCode(); - if (this.FieldName != null) - hashCode = hashCode * 59 + this.FieldName.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - if (this.ReadOnly != null) - hashCode = hashCode * 59 + this.ReadOnly.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.DetailKind != null) - hashCode = hashCode * 59 + this.DetailKind.GetHashCode(); - if (this.VisibilityCondition != null) - hashCode = hashCode * 59 + this.VisibilityCondition.GetHashCode(); - if (this.MandatoryCondition != null) - hashCode = hashCode * 59 + this.MandatoryCondition.GetHashCode(); - if (this.AddressBookDefaultFilter != null) - hashCode = hashCode * 59 + this.AddressBookDefaultFilter.GetHashCode(); - if (this.EnabledAddressBook != null) - hashCode = hashCode * 59 + this.EnabledAddressBook.GetHashCode(); - if (this.Translations != null) - hashCode = hashCode * 59 + this.Translations.GetHashCode(); - if (this.Columns != null) - hashCode = hashCode * 59 + this.Columns.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MaskDetailTranslationDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MaskDetailTranslationDTO.cs deleted file mode 100644 index 82d15ba..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MaskDetailTranslationDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// MaskDetailTranslationDTO - /// - [DataContract] - public partial class MaskDetailTranslationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Arxivar lang code. - /// Culture code. - /// Translation value. - public MaskDetailTranslationDTO(string langCode = default(string), string cultureCode = default(string), string value = default(string)) - { - this.LangCode = langCode; - this.CultureCode = cultureCode; - this.Value = value; - } - - /// - /// Arxivar lang code - /// - /// Arxivar lang code - [DataMember(Name="langCode", EmitDefaultValue=false)] - public string LangCode { get; set; } - - /// - /// Culture code - /// - /// Culture code - [DataMember(Name="cultureCode", EmitDefaultValue=false)] - public string CultureCode { get; set; } - - /// - /// Translation value - /// - /// Translation value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MaskDetailTranslationDTO {\n"); - sb.Append(" LangCode: ").Append(LangCode).Append("\n"); - sb.Append(" CultureCode: ").Append(CultureCode).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MaskDetailTranslationDTO); - } - - /// - /// Returns true if MaskDetailTranslationDTO instances are equal - /// - /// Instance of MaskDetailTranslationDTO to be compared - /// Boolean - public bool Equals(MaskDetailTranslationDTO input) - { - if (input == null) - return false; - - return - ( - this.LangCode == input.LangCode || - (this.LangCode != null && - this.LangCode.Equals(input.LangCode)) - ) && - ( - this.CultureCode == input.CultureCode || - (this.CultureCode != null && - this.CultureCode.Equals(input.CultureCode)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.LangCode != null) - hashCode = hashCode * 59 + this.LangCode.GetHashCode(); - if (this.CultureCode != null) - hashCode = hashCode * 59 + this.CultureCode.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MaskSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MaskSimpleDTO.cs deleted file mode 100644 index 26ae61a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MaskSimpleDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of mask - /// - [DataContract] - public partial class MaskSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Unique identifier. - /// Name. - /// Description. - public MaskSimpleDTO(string id = default(string), string name = default(string), string description = default(string)) - { - this.Id = id; - this.Name = name; - this.Description = description; - } - - /// - /// Unique identifier - /// - /// Unique identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MaskSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MaskSimpleDTO); - } - - /// - /// Returns true if MaskSimpleDTO instances are equal - /// - /// Instance of MaskSimpleDTO to be compared - /// Boolean - public bool Equals(MaskSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MetadataEncryptionSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MetadataEncryptionSettingsDTO.cs deleted file mode 100644 index 25fc48f..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MetadataEncryptionSettingsDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for set Metadata Encryption Settings - /// - [DataContract] - public partial class MetadataEncryptionSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Encryption key name. - /// Old password. Required only for password update. - /// Password. - public MetadataEncryptionSettingsDTO(string key = default(string), string oldPassword = default(string), string password = default(string)) - { - this.Key = key; - this.OldPassword = oldPassword; - this.Password = password; - } - - /// - /// Encryption key name - /// - /// Encryption key name - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Old password. Required only for password update - /// - /// Old password. Required only for password update - [DataMember(Name="oldPassword", EmitDefaultValue=false)] - public string OldPassword { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MetadataEncryptionSettingsDTO {\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" OldPassword: ").Append(OldPassword).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MetadataEncryptionSettingsDTO); - } - - /// - /// Returns true if MetadataEncryptionSettingsDTO instances are equal - /// - /// Instance of MetadataEncryptionSettingsDTO to be compared - /// Boolean - public bool Equals(MetadataEncryptionSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.OldPassword == input.OldPassword || - (this.OldPassword != null && - this.OldPassword.Equals(input.OldPassword)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.OldPassword != null) - hashCode = hashCode * 59 + this.OldPassword.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/MonitoredFolderDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/MonitoredFolderDTO.cs deleted file mode 100644 index aad26b4..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/MonitoredFolderDTO.cs +++ /dev/null @@ -1,288 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// MonitoredFolderDTO - /// - [DataContract] - public partial class MonitoredFolderDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// userId. - /// Possible values: 0: Manual 1: Automatic 2: Wizard . - /// maskId. - /// predefinedProfileId. - /// useSubFolders. - /// path. - /// Possible values: 0: ByPosition 1: BySeparator 2: None . - /// characterSeparator. - /// Possible values: 0: Generic 1: ArxivarServer 2: ArxivarOcr 3: ArxivarFax 4: ArxivarBarcode 5: ArxivarSpoolRecPro 6: ArxivarSpoolPdf 7: ArxivarSpoolConsole 8: ArxivarWeb 9: ArxivarPmArchiviazione 10: ArxivarPmRubrica 11: ArxivarPmUsersAndGroups 12: ArxivarPmAllegati 13: ArxivarUnitTest 14: ArxivarStartWorkflow 15: ArxivarMailer 16: ArxivarArxService 17: ArxivarPostalizzatore 18: ArxivarSigner 19: ArxivarSdk 20: SAPR3 21: ArxivarThumbnail 22: ArxivarSharedDocument 23: ArxivarDownloaderDocument 24: ArxivarClient 25: ArxivarAWP 26: ArxivarPmOrganizationChart 27: ArxivarMobile 28: Credemtel 29: ArxivarRelationService 30: ArxivarPmLogonProviderAssoc 31: ArxivarMassiveUpdates 32: ArxivarMobileService 33: ArxivarMobileApp 34: ArxivarFasciculationService 35: ArxivarPushNotificationsService 36: ArxivarIX 37: ArxivarPmDocumentDeleting 38: ArxivarMobileOfficeSign 39: GenericWebService 40: ArxivarIndex 41: ArxDrive 42: ArxDriveExtension 43: ArxivarSmartTaskApp 44: ArxDriveMobile 45: Unimatica 46: Eni 47: ArxivarSwapOutService 48: ArxivarSuiteClient 49: ArxivarServerWcf 50: ArxAuthService 51: ArxivarSuiteServer 52: ArxivarSetup 53: ImapPlugin 54: ArxLinkClient 55: BiometricSign 56: ArxCommand 57: ArxivarPmFlatFileTextWriter 58: ArxAssistant 59: ArxLocalSign 60: ArxNode 61: ArxOutsourcer 62: ArxWorkflowCore 63: ArxivarNextMobile 64: ArxAssistantMacOs . - /// Possible values: 0: AskConfirm 1: Proceed 2: Buffer . - public MonitoredFolderDTO(string id = default(string), int? userId = default(int?), int? type = default(int?), string maskId = default(string), int? predefinedProfileId = default(int?), bool? useSubFolders = default(bool?), string path = default(string), int? parseMode = default(int?), string characterSeparator = default(string), int? softwareType = default(int?), int? operativity = default(int?)) - { - this.Id = id; - this.UserId = userId; - this.Type = type; - this.MaskId = maskId; - this.PredefinedProfileId = predefinedProfileId; - this.UseSubFolders = useSubFolders; - this.Path = path; - this.ParseMode = parseMode; - this.CharacterSeparator = characterSeparator; - this.SoftwareType = softwareType; - this.Operativity = operativity; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Gets or Sets UserId - /// - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Possible values: 0: Manual 1: Automatic 2: Wizard - /// - /// Possible values: 0: Manual 1: Automatic 2: Wizard - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Gets or Sets MaskId - /// - [DataMember(Name="maskId", EmitDefaultValue=false)] - public string MaskId { get; set; } - - /// - /// Gets or Sets PredefinedProfileId - /// - [DataMember(Name="predefinedProfileId", EmitDefaultValue=false)] - public int? PredefinedProfileId { get; set; } - - /// - /// Gets or Sets UseSubFolders - /// - [DataMember(Name="useSubFolders", EmitDefaultValue=false)] - public bool? UseSubFolders { get; set; } - - /// - /// Gets or Sets Path - /// - [DataMember(Name="path", EmitDefaultValue=false)] - public string Path { get; set; } - - /// - /// Possible values: 0: ByPosition 1: BySeparator 2: None - /// - /// Possible values: 0: ByPosition 1: BySeparator 2: None - [DataMember(Name="parseMode", EmitDefaultValue=false)] - public int? ParseMode { get; set; } - - /// - /// Gets or Sets CharacterSeparator - /// - [DataMember(Name="characterSeparator", EmitDefaultValue=false)] - public string CharacterSeparator { get; set; } - - /// - /// Possible values: 0: Generic 1: ArxivarServer 2: ArxivarOcr 3: ArxivarFax 4: ArxivarBarcode 5: ArxivarSpoolRecPro 6: ArxivarSpoolPdf 7: ArxivarSpoolConsole 8: ArxivarWeb 9: ArxivarPmArchiviazione 10: ArxivarPmRubrica 11: ArxivarPmUsersAndGroups 12: ArxivarPmAllegati 13: ArxivarUnitTest 14: ArxivarStartWorkflow 15: ArxivarMailer 16: ArxivarArxService 17: ArxivarPostalizzatore 18: ArxivarSigner 19: ArxivarSdk 20: SAPR3 21: ArxivarThumbnail 22: ArxivarSharedDocument 23: ArxivarDownloaderDocument 24: ArxivarClient 25: ArxivarAWP 26: ArxivarPmOrganizationChart 27: ArxivarMobile 28: Credemtel 29: ArxivarRelationService 30: ArxivarPmLogonProviderAssoc 31: ArxivarMassiveUpdates 32: ArxivarMobileService 33: ArxivarMobileApp 34: ArxivarFasciculationService 35: ArxivarPushNotificationsService 36: ArxivarIX 37: ArxivarPmDocumentDeleting 38: ArxivarMobileOfficeSign 39: GenericWebService 40: ArxivarIndex 41: ArxDrive 42: ArxDriveExtension 43: ArxivarSmartTaskApp 44: ArxDriveMobile 45: Unimatica 46: Eni 47: ArxivarSwapOutService 48: ArxivarSuiteClient 49: ArxivarServerWcf 50: ArxAuthService 51: ArxivarSuiteServer 52: ArxivarSetup 53: ImapPlugin 54: ArxLinkClient 55: BiometricSign 56: ArxCommand 57: ArxivarPmFlatFileTextWriter 58: ArxAssistant 59: ArxLocalSign 60: ArxNode 61: ArxOutsourcer 62: ArxWorkflowCore 63: ArxivarNextMobile 64: ArxAssistantMacOs - /// - /// Possible values: 0: Generic 1: ArxivarServer 2: ArxivarOcr 3: ArxivarFax 4: ArxivarBarcode 5: ArxivarSpoolRecPro 6: ArxivarSpoolPdf 7: ArxivarSpoolConsole 8: ArxivarWeb 9: ArxivarPmArchiviazione 10: ArxivarPmRubrica 11: ArxivarPmUsersAndGroups 12: ArxivarPmAllegati 13: ArxivarUnitTest 14: ArxivarStartWorkflow 15: ArxivarMailer 16: ArxivarArxService 17: ArxivarPostalizzatore 18: ArxivarSigner 19: ArxivarSdk 20: SAPR3 21: ArxivarThumbnail 22: ArxivarSharedDocument 23: ArxivarDownloaderDocument 24: ArxivarClient 25: ArxivarAWP 26: ArxivarPmOrganizationChart 27: ArxivarMobile 28: Credemtel 29: ArxivarRelationService 30: ArxivarPmLogonProviderAssoc 31: ArxivarMassiveUpdates 32: ArxivarMobileService 33: ArxivarMobileApp 34: ArxivarFasciculationService 35: ArxivarPushNotificationsService 36: ArxivarIX 37: ArxivarPmDocumentDeleting 38: ArxivarMobileOfficeSign 39: GenericWebService 40: ArxivarIndex 41: ArxDrive 42: ArxDriveExtension 43: ArxivarSmartTaskApp 44: ArxDriveMobile 45: Unimatica 46: Eni 47: ArxivarSwapOutService 48: ArxivarSuiteClient 49: ArxivarServerWcf 50: ArxAuthService 51: ArxivarSuiteServer 52: ArxivarSetup 53: ImapPlugin 54: ArxLinkClient 55: BiometricSign 56: ArxCommand 57: ArxivarPmFlatFileTextWriter 58: ArxAssistant 59: ArxLocalSign 60: ArxNode 61: ArxOutsourcer 62: ArxWorkflowCore 63: ArxivarNextMobile 64: ArxAssistantMacOs - [DataMember(Name="softwareType", EmitDefaultValue=false)] - public int? SoftwareType { get; set; } - - /// - /// Possible values: 0: AskConfirm 1: Proceed 2: Buffer - /// - /// Possible values: 0: AskConfirm 1: Proceed 2: Buffer - [DataMember(Name="operativity", EmitDefaultValue=false)] - public int? Operativity { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MonitoredFolderDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" MaskId: ").Append(MaskId).Append("\n"); - sb.Append(" PredefinedProfileId: ").Append(PredefinedProfileId).Append("\n"); - sb.Append(" UseSubFolders: ").Append(UseSubFolders).Append("\n"); - sb.Append(" Path: ").Append(Path).Append("\n"); - sb.Append(" ParseMode: ").Append(ParseMode).Append("\n"); - sb.Append(" CharacterSeparator: ").Append(CharacterSeparator).Append("\n"); - sb.Append(" SoftwareType: ").Append(SoftwareType).Append("\n"); - sb.Append(" Operativity: ").Append(Operativity).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MonitoredFolderDTO); - } - - /// - /// Returns true if MonitoredFolderDTO instances are equal - /// - /// Instance of MonitoredFolderDTO to be compared - /// Boolean - public bool Equals(MonitoredFolderDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.MaskId == input.MaskId || - (this.MaskId != null && - this.MaskId.Equals(input.MaskId)) - ) && - ( - this.PredefinedProfileId == input.PredefinedProfileId || - (this.PredefinedProfileId != null && - this.PredefinedProfileId.Equals(input.PredefinedProfileId)) - ) && - ( - this.UseSubFolders == input.UseSubFolders || - (this.UseSubFolders != null && - this.UseSubFolders.Equals(input.UseSubFolders)) - ) && - ( - this.Path == input.Path || - (this.Path != null && - this.Path.Equals(input.Path)) - ) && - ( - this.ParseMode == input.ParseMode || - (this.ParseMode != null && - this.ParseMode.Equals(input.ParseMode)) - ) && - ( - this.CharacterSeparator == input.CharacterSeparator || - (this.CharacterSeparator != null && - this.CharacterSeparator.Equals(input.CharacterSeparator)) - ) && - ( - this.SoftwareType == input.SoftwareType || - (this.SoftwareType != null && - this.SoftwareType.Equals(input.SoftwareType)) - ) && - ( - this.Operativity == input.Operativity || - (this.Operativity != null && - this.Operativity.Equals(input.Operativity)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.MaskId != null) - hashCode = hashCode * 59 + this.MaskId.GetHashCode(); - if (this.PredefinedProfileId != null) - hashCode = hashCode * 59 + this.PredefinedProfileId.GetHashCode(); - if (this.UseSubFolders != null) - hashCode = hashCode * 59 + this.UseSubFolders.GetHashCode(); - if (this.Path != null) - hashCode = hashCode * 59 + this.Path.GetHashCode(); - if (this.ParseMode != null) - hashCode = hashCode * 59 + this.ParseMode.GetHashCode(); - if (this.CharacterSeparator != null) - hashCode = hashCode * 59 + this.CharacterSeparator.GetHashCode(); - if (this.SoftwareType != null) - hashCode = hashCode * 59 + this.SoftwareType.GetHashCode(); - if (this.Operativity != null) - hashCode = hashCode * 59 + this.Operativity.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/NewAttachArxDocumentoDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/NewAttachArxDocumentoDTO.cs deleted file mode 100644 index c7a95a4..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/NewAttachArxDocumentoDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// NewAttachArxDocumentoDTO - /// - [DataContract] - public partial class NewAttachArxDocumentoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Arxivar document identifier. - /// Arxivar documetn revision. - public NewAttachArxDocumentoDTO(int? docnumber = default(int?), int? revision = default(int?)) - { - this.Docnumber = docnumber; - this.Revision = revision; - } - - /// - /// Arxivar document identifier - /// - /// Arxivar document identifier - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Arxivar documetn revision - /// - /// Arxivar documetn revision - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NewAttachArxDocumentoDTO {\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NewAttachArxDocumentoDTO); - } - - /// - /// Returns true if NewAttachArxDocumentoDTO instances are equal - /// - /// Instance of NewAttachArxDocumentoDTO to be compared - /// Boolean - public bool Equals(NewAttachArxDocumentoDTO input) - { - if (input == null) - return false; - - return - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/NewAttachDocumentoDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/NewAttachDocumentoDTO.cs deleted file mode 100644 index a0c6a97..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/NewAttachDocumentoDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// NewAttachDocumentoDTO - /// - [DataContract] - public partial class NewAttachDocumentoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Buffer document identifier. - public NewAttachDocumentoDTO(string cacheIdentifier = default(string)) - { - this.CacheIdentifier = cacheIdentifier; - } - - /// - /// Buffer document identifier - /// - /// Buffer document identifier - [DataMember(Name="cacheIdentifier", EmitDefaultValue=false)] - public string CacheIdentifier { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NewAttachDocumentoDTO {\n"); - sb.Append(" CacheIdentifier: ").Append(CacheIdentifier).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NewAttachDocumentoDTO); - } - - /// - /// Returns true if NewAttachDocumentoDTO instances are equal - /// - /// Instance of NewAttachDocumentoDTO to be compared - /// Boolean - public bool Equals(NewAttachDocumentoDTO input) - { - if (input == null) - return false; - - return - ( - this.CacheIdentifier == input.CacheIdentifier || - (this.CacheIdentifier != null && - this.CacheIdentifier.Equals(input.CacheIdentifier)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.CacheIdentifier != null) - hashCode = hashCode * 59 + this.CacheIdentifier.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/NoteDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/NoteDTO.cs deleted file mode 100644 index c07380e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/NoteDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of note - /// - [DataContract] - public partial class NoteDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Document Identifier. - /// Author. - /// Author Name. - /// Creation Date. - /// Text. - /// Document Revision. - /// Conservation. - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_CONV_MESSAGES 173: DM_CONVERSATION 174: DM_MAILWF_ARCHIVE . - /// External Identifier. - public NoteDTO(int? id = default(int?), int? docnumber = default(int?), int? user = default(int?), string userCompleteName = default(string), DateTime? creationDate = default(DateTime?), string comment = default(string), int? revision = default(int?), bool? aosflag = default(bool?), int? countersTable = default(int?), int? externalId = default(int?)) - { - this.Id = id; - this.Docnumber = docnumber; - this.User = user; - this.UserCompleteName = userCompleteName; - this.CreationDate = creationDate; - this.Comment = comment; - this.Revision = revision; - this.Aosflag = aosflag; - this.CountersTable = countersTable; - this.ExternalId = externalId; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docnumber", EmitDefaultValue=false)] - public int? Docnumber { get; set; } - - /// - /// Author - /// - /// Author - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Author Name - /// - /// Author Name - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Creation Date - /// - /// Creation Date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Text - /// - /// Text - [DataMember(Name="comment", EmitDefaultValue=false)] - public string Comment { get; set; } - - /// - /// Document Revision - /// - /// Document Revision - [DataMember(Name="revision", EmitDefaultValue=false)] - public int? Revision { get; set; } - - /// - /// Conservation - /// - /// Conservation - [DataMember(Name="aosflag", EmitDefaultValue=false)] - public bool? Aosflag { get; set; } - - /// - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_CONV_MESSAGES 173: DM_CONVERSATION 174: DM_MAILWF_ARCHIVE - /// - /// Possible values: 0: DM_ALLEGATIDOC 1: DM_ALLEGATIFAX 2: DM_ALLEGATIWORK 3: DM_ASSOCIAZIONI 4: DM_CAMPIPRATICA 5: DM_CAMPIPRATICHECBO 6: DM_CAMPISPECGRP 7: DM_CONTATTI 8: DM_FASCICOLI 9: DM_FAXOUT 10: DM_NOTE 11: DM_OPZIONI 12: DM_PERMESSI_FOLDER 13: DM_PERMESSI_RUBRICA 14: DM_PROFILE 15: DM_GRUPPI 16: DM_RUBRICA 17: DM_UTENTI 18: DM_REVISIONI 19: DM_SECURITY 20: DM_STATOSECURITY 21: DM_TIPIPRATICHE 22: DM_TABELLE 23: DM_TIPI_UTENTI 24: DM_ELENCO_ORG 25: DM_ORGANIGRAMMA 26: DM_ORGDESIGN 27: DM_CATRUBRICHE 28: DM_CAMPI 29: DM_CAMPI_VALORI 30: DM_RUBRICA_OPZIONALI 31: DM_NOTECONTATTI 32: DM_SECURITY_DOC 33: DM_NPCE_OUT 34: DM_LOG 35: DM_NPCE_LOG 36: DM_DESKTOP 37: DM_VARIABILIPROCESSO 38: DM_DATIPROFILO 39: DM_AUTOPROFILO 40: DM_PROTOCOLLI 41: DM_DATI_ENTE 42: DM_NUMERAZIONE 43: DM_FILEINFOLDER 44: DM_INOLTRO 45: DM_DOCMOV 46: DM_CAMPIMESSAGGIO 47: DM_DETTAGLIMAIL 48: DM_MAILOUT 49: DM_DELEGATI 50: DM_MSG 51: DM_ACCOUNT 52: DM_FOLDERTYPE 53: SD_ASSOCDOC 54: DM_COMBO 55: DM_REGOLEUNIVOCITA 56: DM_BARCODE 57: DM_DOCALLEGATI 58: DM_STARTWORKFLOW 59: DM_FILTRO 60: DM_ELENCOPRATICHE 61: DM_TESTO 62: DM_PROCBATCH 63: DM_EVENTIFLOW 64: DM_TRADUZIONI 65: DM_TIPIDOCUMENTO 66: DM_GRUPPIMODELLI 67: DM_ASSOCIAFOLDER_DATIPROFILO 68: DM_ASSOCIAFOLDER 69: DM_MODULIOFFICE 70: DM_EMERGENZA 71: DM_TASKEXECUTE 72: DM_NOTEWORK 73: DM_PERMESSIALLEGATI 74: DM_PROCESSDOC 75: DM_MASSIVEUPDATES 76: DM_MASSIVEUPDATES_DATIPROFILO 77: DM_MASSIVEUPDATES_DATA 78: DM_COMANDITASK 79: DM_TRADUZIONI_PKG 80: DM_FIGUREPROCESSO 81: DM_PROMEMORIA 82: DM_ALLEGATIPROMO 83: DM_SIGNDELEGATE 84: DM_SIGNCERT 85: DM_SIGNCERTLOCATION 86: DM_VARIABILIQUERY 87: DM_ASSOCIAFOLDER_MAPPING 88: DM_PERMESSINOTE 89: DM_WORKFLOW_EXTRAGRANT 90: DM_QUEUE 91: DM_QUEUEDETAIL 92: NOTHING 93: DM_CACHE 94: DM_THUMBNAIL 95: DM_SMSACCOUNT 96: DM_SHARING 97: DM_SHARING_DEFINITION 98: DM_SHARING_DETAIL 99: DM_SHARING_RECEIVER 100: DM_SHARING_OPERATION 101: DM_TASKWORK 102: DM_TASKWORK_CLOSE 103: DM_INSTRUCTIONS 104: DM_TASKS 105: DM_WORKFLOW 106: DM_AOO 107: DM_LOGONPROVIDERS 108: DM_MASSIVEUPDATES_MAPPING 109: DM_STORAGE 110: DM_TIPIDOC_DEFMAIL 111: DM_LOGS 112: DM_PN_DEVICE 113: DM_PN_NOTIFICATIONS 114: DM_COLLABORATION 115: DM_COLLABORATION_MASTER 116: DM_COLLABORATION_DETAIL 117: WS_VERSAMENTI 118: WS_VERSAMENTI_DETT_ATT 119: WS_VERSAMENTI_DETT_NOTE 120: WS_VERSAMENTI_DETT_DOC 121: WS_AOS 122: WS_AOS_MAPPING 123: WS_DOCTOIX 124: WS_DOCTOIX_DETAIL 125: WS_TIPIDOCUMENTO 126: WS_CREDENTIAL 127: WS_CLASSINORM 128: WS_CLASSINORM_FILTER 129: WS_TIPIDOC_EXPORT 130: WS_TIPIDOC_ROTT 131: WS_NOTIFY 132: WS_NOTIFY_MAPPING 133: DM_COLLABORATION_TEMPLATE 134: DM_COLLABORATION_TAKEOFF 135: DM_COLLABORATION_TEMPLATE_M 136: WS_CONFCLASSEIXCE 137: WS_CAMPIMETADATIIXCE 138: WS_DOCTOIXCE 139: WS_DOCTOIXCE_DETAIL 140: WS_VERSAMENTO 141: DM_PLUGINCUSTOM_DETT 142: DM_PLUGINCUSTOM 143: DM_PLUGINCUSTOMWF 144: DM_PLUGINCUSTOMWF_CONF 145: DM_LINKS 146: DM_LINKS_MANSDYN 147: DM_LINKS_MANSDYN_DETT 148: DM_MANSIONIDYNTASK 149: DM_FASCICOLI_ASSOCIAFOLDER 150: DM_WEBSERVICESWF_LINK 151: DM_TASKDOC_ESITI 152: DM_PLUGINCUSTOM_CONF 153: DM_PLUGINCUSTOM_CONFIP 154: DM_PLUGINCUSTOM_CONFUSER 155: DM_INDEX 156: WS_DOCTOIXCE_VALIDATION 157: DM_BARCODE_SETTINGS 158: DM_LOG_MASTER 159: DM_UTENTI_USEDPSW 160: DM_CAMPIMODULI_MATRICE 161: DM_MAPWORKFLOW 162: DM_ALLEGATIDOC_REV 163: DM_FASCICOLI_RULES 164: DM_FASCICOLIRULESDETAIL 165: DM_FASCICOLI_RULES_USERS 166: DM_ARXDRIVESHARERULE 167: DM_ARXDRIVESHARERULEUSERS 168: DM_LAYOUT 169: DM_LAYOUT_DETAILS 170: DM_FASCICOLI_MASK 171: DM_MAILWF 172: DM_CONV_MESSAGES 173: DM_CONVERSATION 174: DM_MAILWF_ARCHIVE - [DataMember(Name="countersTable", EmitDefaultValue=false)] - public int? CountersTable { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public int? ExternalId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NoteDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Docnumber: ").Append(Docnumber).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" Comment: ").Append(Comment).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" Aosflag: ").Append(Aosflag).Append("\n"); - sb.Append(" CountersTable: ").Append(CountersTable).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NoteDTO); - } - - /// - /// Returns true if NoteDTO instances are equal - /// - /// Instance of NoteDTO to be compared - /// Boolean - public bool Equals(NoteDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Docnumber == input.Docnumber || - (this.Docnumber != null && - this.Docnumber.Equals(input.Docnumber)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.Comment == input.Comment || - (this.Comment != null && - this.Comment.Equals(input.Comment)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.Aosflag == input.Aosflag || - (this.Aosflag != null && - this.Aosflag.Equals(input.Aosflag)) - ) && - ( - this.CountersTable == input.CountersTable || - (this.CountersTable != null && - this.CountersTable.Equals(input.CountersTable)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Docnumber != null) - hashCode = hashCode * 59 + this.Docnumber.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.Comment != null) - hashCode = hashCode * 59 + this.Comment.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.Aosflag != null) - hashCode = hashCode * 59 + this.Aosflag.GetHashCode(); - if (this.CountersTable != null) - hashCode = hashCode * 59 + this.CountersTable.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/NoteFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/NoteFieldDTO.cs deleted file mode 100644 index bce1fd7..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/NoteFieldDTO.cs +++ /dev/null @@ -1,131 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// NoteFieldDTO - /// - [DataContract] - public partial class NoteFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected NoteFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// value. - public NoteFieldDTO(NoteDTO value = default(NoteDTO), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "NoteFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public NoteDTO Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NoteFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NoteFieldDTO); - } - - /// - /// Returns true if NoteFieldDTO instances are equal - /// - /// Instance of NoteFieldDTO to be compared - /// Boolean - public bool Equals(NoteFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/NullKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/NullKeyValueDTO.cs deleted file mode 100644 index 55e94c4..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/NullKeyValueDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Null key value - /// - [DataContract] - public partial class NullKeyValueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// ClassName. - /// Key. - public NullKeyValueDTO(string className = default(string), string key = default(string)) - { - this.ClassName = className; - this.Key = key; - } - - /// - /// ClassName - /// - /// ClassName - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Key - /// - /// Key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NullKeyValueDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NullKeyValueDTO); - } - - /// - /// Returns true if NullKeyValueDTO instances are equal - /// - /// Instance of NullKeyValueDTO to be compared - /// Boolean - public bool Equals(NullKeyValueDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/NumberFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/NumberFieldDTO.cs deleted file mode 100644 index 217178e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/NumberFieldDTO.cs +++ /dev/null @@ -1,147 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// NumberFieldDTO - /// - [DataContract] - public partial class NumberFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected NumberFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// value. - /// numMaxChar. - public NumberFieldDTO(string value = default(string), int? numMaxChar = default(int?), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "NumberFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.NumMaxChar = numMaxChar; - } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Gets or Sets NumMaxChar - /// - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NumberFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NumberFieldDTO); - } - - /// - /// Returns true if NumberFieldDTO instances are equal - /// - /// Instance of NumberFieldDTO to be compared - /// Boolean - public bool Equals(NumberFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/OptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/OptionsDTO.cs deleted file mode 100644 index 173a039..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/OptionsDTO.cs +++ /dev/null @@ -1,346 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of arxivar options - /// - [DataContract] - public partial class OptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// User Identifier. - /// Argument. - /// Visibility. - /// Sequence Number. - /// Label. - /// Size. - /// Possible values: 0: Nessuno 1: Ascendente 2: Descrescente . - /// Table Name. - /// Alias. - /// Value. - /// Value in datetime format. - /// Field Name. - /// Value in stream format. - public OptionsDTO(int? id = default(int?), int? user = default(int?), string argument = default(string), bool? visible = default(bool?), int? sequence = default(int?), string label = default(string), int? size = default(int?), int? order = default(int?), string table = default(string), string alias = default(string), string value = default(string), DateTime? ldata = default(DateTime?), string field = default(string), byte[] content = default(byte[])) - { - this.Id = id; - this.User = user; - this.Argument = argument; - this.Visible = visible; - this.Sequence = sequence; - this.Label = label; - this.Size = size; - this.Order = order; - this.Table = table; - this.Alias = alias; - this.Value = value; - this.Ldata = ldata; - this.Field = field; - this.Content = content; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// User Identifier - /// - /// User Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Argument - /// - /// Argument - [DataMember(Name="argument", EmitDefaultValue=false)] - public string Argument { get; set; } - - /// - /// Visibility - /// - /// Visibility - [DataMember(Name="visible", EmitDefaultValue=false)] - public bool? Visible { get; set; } - - /// - /// Sequence Number - /// - /// Sequence Number - [DataMember(Name="sequence", EmitDefaultValue=false)] - public int? Sequence { get; set; } - - /// - /// Label - /// - /// Label - [DataMember(Name="label", EmitDefaultValue=false)] - public string Label { get; set; } - - /// - /// Size - /// - /// Size - [DataMember(Name="size", EmitDefaultValue=false)] - public int? Size { get; set; } - - /// - /// Possible values: 0: Nessuno 1: Ascendente 2: Descrescente - /// - /// Possible values: 0: Nessuno 1: Ascendente 2: Descrescente - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// Table Name - /// - /// Table Name - [DataMember(Name="table", EmitDefaultValue=false)] - public string Table { get; set; } - - /// - /// Alias - /// - /// Alias - [DataMember(Name="alias", EmitDefaultValue=false)] - public string Alias { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Value in datetime format - /// - /// Value in datetime format - [DataMember(Name="ldata", EmitDefaultValue=false)] - public DateTime? Ldata { get; set; } - - /// - /// Field Name - /// - /// Field Name - [DataMember(Name="field", EmitDefaultValue=false)] - public string Field { get; set; } - - /// - /// Value in stream format - /// - /// Value in stream format - [DataMember(Name="content", EmitDefaultValue=false)] - public byte[] Content { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OptionsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" Argument: ").Append(Argument).Append("\n"); - sb.Append(" Visible: ").Append(Visible).Append("\n"); - sb.Append(" Sequence: ").Append(Sequence).Append("\n"); - sb.Append(" Label: ").Append(Label).Append("\n"); - sb.Append(" Size: ").Append(Size).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" Table: ").Append(Table).Append("\n"); - sb.Append(" Alias: ").Append(Alias).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" Ldata: ").Append(Ldata).Append("\n"); - sb.Append(" Field: ").Append(Field).Append("\n"); - sb.Append(" Content: ").Append(Content).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OptionsDTO); - } - - /// - /// Returns true if OptionsDTO instances are equal - /// - /// Instance of OptionsDTO to be compared - /// Boolean - public bool Equals(OptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.Argument == input.Argument || - (this.Argument != null && - this.Argument.Equals(input.Argument)) - ) && - ( - this.Visible == input.Visible || - (this.Visible != null && - this.Visible.Equals(input.Visible)) - ) && - ( - this.Sequence == input.Sequence || - (this.Sequence != null && - this.Sequence.Equals(input.Sequence)) - ) && - ( - this.Label == input.Label || - (this.Label != null && - this.Label.Equals(input.Label)) - ) && - ( - this.Size == input.Size || - (this.Size != null && - this.Size.Equals(input.Size)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.Table == input.Table || - (this.Table != null && - this.Table.Equals(input.Table)) - ) && - ( - this.Alias == input.Alias || - (this.Alias != null && - this.Alias.Equals(input.Alias)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && - ( - this.Ldata == input.Ldata || - (this.Ldata != null && - this.Ldata.Equals(input.Ldata)) - ) && - ( - this.Field == input.Field || - (this.Field != null && - this.Field.Equals(input.Field)) - ) && - ( - this.Content == input.Content || - (this.Content != null && - this.Content.Equals(input.Content)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.Argument != null) - hashCode = hashCode * 59 + this.Argument.GetHashCode(); - if (this.Visible != null) - hashCode = hashCode * 59 + this.Visible.GetHashCode(); - if (this.Sequence != null) - hashCode = hashCode * 59 + this.Sequence.GetHashCode(); - if (this.Label != null) - hashCode = hashCode * 59 + this.Label.GetHashCode(); - if (this.Size != null) - hashCode = hashCode * 59 + this.Size.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - if (this.Table != null) - hashCode = hashCode * 59 + this.Table.GetHashCode(); - if (this.Alias != null) - hashCode = hashCode * 59 + this.Alias.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.Ldata != null) - hashCode = hashCode * 59 + this.Ldata.GetHashCode(); - if (this.Field != null) - hashCode = hashCode * 59 + this.Field.GetHashCode(); - if (this.Content != null) - hashCode = hashCode * 59 + this.Content.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/OptionsRequestDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/OptionsRequestDTO.cs deleted file mode 100644 index 33b1177..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/OptionsRequestDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of options information - /// - [DataContract] - public partial class OptionsRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Argument. - /// Value. - public OptionsRequestDTO(string argument = default(string), string value = default(string)) - { - this.Argument = argument; - this.Value = value; - } - - /// - /// Argument - /// - /// Argument - [DataMember(Name="argument", EmitDefaultValue=false)] - public string Argument { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OptionsRequestDTO {\n"); - sb.Append(" Argument: ").Append(Argument).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OptionsRequestDTO); - } - - /// - /// Returns true if OptionsRequestDTO instances are equal - /// - /// Instance of OptionsRequestDTO to be compared - /// Boolean - public bool Equals(OptionsRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Argument == input.Argument || - (this.Argument != null && - this.Argument.Equals(input.Argument)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Argument != null) - hashCode = hashCode * 59 + this.Argument.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/OptionsUserVisibleRequestDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/OptionsUserVisibleRequestDTO.cs deleted file mode 100644 index 7bc6501..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/OptionsUserVisibleRequestDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of options information - /// - [DataContract] - public partial class OptionsUserVisibleRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Argument. - /// User identifier. - /// Visible. - public OptionsUserVisibleRequestDTO(string argument = default(string), int? userId = default(int?), bool? visible = default(bool?)) - { - this.Argument = argument; - this.UserId = userId; - this.Visible = visible; - } - - /// - /// Argument - /// - /// Argument - [DataMember(Name="argument", EmitDefaultValue=false)] - public string Argument { get; set; } - - /// - /// User identifier - /// - /// User identifier - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Visible - /// - /// Visible - [DataMember(Name="visible", EmitDefaultValue=false)] - public bool? Visible { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OptionsUserVisibleRequestDTO {\n"); - sb.Append(" Argument: ").Append(Argument).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" Visible: ").Append(Visible).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OptionsUserVisibleRequestDTO); - } - - /// - /// Returns true if OptionsUserVisibleRequestDTO instances are equal - /// - /// Instance of OptionsUserVisibleRequestDTO to be compared - /// Boolean - public bool Equals(OptionsUserVisibleRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.Argument == input.Argument || - (this.Argument != null && - this.Argument.Equals(input.Argument)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.Visible == input.Visible || - (this.Visible != null && - this.Visible.Equals(input.Visible)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Argument != null) - hashCode = hashCode * 59 + this.Argument.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.Visible != null) - hashCode = hashCode * 59 + this.Visible.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/OrderBy.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/OrderBy.cs deleted file mode 100644 index 85595d6..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/OrderBy.cs +++ /dev/null @@ -1,141 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// OrderBy - /// - [DataContract] - public partial class OrderBy : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Nothing 1: Ascending 2: Descending . - /// index. - public OrderBy(int? direction = default(int?), int? index = default(int?)) - { - this.Direction = direction; - this.Index = index; - } - - /// - /// Possible values: 0: Nothing 1: Ascending 2: Descending - /// - /// Possible values: 0: Nothing 1: Ascending 2: Descending - [DataMember(Name="direction", EmitDefaultValue=false)] - public int? Direction { get; set; } - - /// - /// Gets or Sets Index - /// - [DataMember(Name="index", EmitDefaultValue=false)] - public int? Index { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OrderBy {\n"); - sb.Append(" Direction: ").Append(Direction).Append("\n"); - sb.Append(" Index: ").Append(Index).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OrderBy); - } - - /// - /// Returns true if OrderBy instances are equal - /// - /// Instance of OrderBy to be compared - /// Boolean - public bool Equals(OrderBy input) - { - if (input == null) - return false; - - return - ( - this.Direction == input.Direction || - (this.Direction != null && - this.Direction.Equals(input.Direction)) - ) && - ( - this.Index == input.Index || - (this.Index != null && - this.Index.Equals(input.Index)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Direction != null) - hashCode = hashCode * 59 + this.Direction.GetHashCode(); - if (this.Index != null) - hashCode = hashCode * 59 + this.Index.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/OriginFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/OriginFieldDTO.cs deleted file mode 100644 index e3f26a5..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/OriginFieldDTO.cs +++ /dev/null @@ -1,147 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// OriginFieldDTO - /// - [DataContract] - public partial class OriginFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected OriginFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// displayValue. - /// value. - public OriginFieldDTO(string displayValue = default(string), int? value = default(int?), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "OriginFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.DisplayValue = displayValue; - this.Value = value; - } - - /// - /// Gets or Sets DisplayValue - /// - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public int? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OriginFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OriginFieldDTO); - } - - /// - /// Returns true if OriginFieldDTO instances are equal - /// - /// Instance of OriginFieldDTO to be compared - /// Boolean - public bool Equals(OriginFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/OriginalFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/OriginalFieldDTO.cs deleted file mode 100644 index 16fa7a4..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/OriginalFieldDTO.cs +++ /dev/null @@ -1,131 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// OriginalFieldDTO - /// - [DataContract] - public partial class OriginalFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected OriginalFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// value. - public OriginalFieldDTO(string value = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "OriginalFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OriginalFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OriginalFieldDTO); - } - - /// - /// Returns true if OriginalFieldDTO instances are equal - /// - /// Instance of OriginalFieldDTO to be compared - /// Boolean - public bool Equals(OriginalFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/PdfOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/PdfOptionsDTO.cs deleted file mode 100644 index f95a558..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/PdfOptionsDTO.cs +++ /dev/null @@ -1,346 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of timestamp (marcatura temporale) - /// - [DataContract] - public partial class PdfOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Document type system id. - /// Font name. - /// Identificativo del colore (decimal rapresentation). - /// Watermark text. - /// Font size. - /// Possible values: 0: Foreground 1: Background . - /// Transparency percentage (works only if the layer is in background). - /// Line thickness (optional - -&gt; can be null). - /// Orizzontale regolation (0 if none). - /// Vertical regolation (0 if none). - /// Watermark rotation (0 - 45 - 90 - 135 - 180 - 225 -270 - 315). - /// Possible values: 0: Left 1: Center 2: Right . - /// Possible values: 0: Top 1: Center 2: Bottom . - public PdfOptionsDTO(int? id = default(int?), int? documentTypeId = default(int?), string font = default(string), int? color = default(int?), string freeText = default(string), int? fontDimension = default(int?), int? layer = default(int?), int? transparency = default(int?), int? thickness = default(int?), int? regX = default(int?), int? regY = default(int?), int? rotation = default(int?), int? posX = default(int?), int? posY = default(int?)) - { - this.Id = id; - this.DocumentTypeId = documentTypeId; - this.Font = font; - this.Color = color; - this.FreeText = freeText; - this.FontDimension = fontDimension; - this.Layer = layer; - this.Transparency = transparency; - this.Thickness = thickness; - this.RegX = regX; - this.RegY = regY; - this.Rotation = rotation; - this.PosX = posX; - this.PosY = posY; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Document type system id - /// - /// Document type system id - [DataMember(Name="documentTypeId", EmitDefaultValue=false)] - public int? DocumentTypeId { get; set; } - - /// - /// Font name - /// - /// Font name - [DataMember(Name="font", EmitDefaultValue=false)] - public string Font { get; set; } - - /// - /// Identificativo del colore (decimal rapresentation) - /// - /// Identificativo del colore (decimal rapresentation) - [DataMember(Name="color", EmitDefaultValue=false)] - public int? Color { get; set; } - - /// - /// Watermark text - /// - /// Watermark text - [DataMember(Name="freeText", EmitDefaultValue=false)] - public string FreeText { get; set; } - - /// - /// Font size - /// - /// Font size - [DataMember(Name="fontDimension", EmitDefaultValue=false)] - public int? FontDimension { get; set; } - - /// - /// Possible values: 0: Foreground 1: Background - /// - /// Possible values: 0: Foreground 1: Background - [DataMember(Name="layer", EmitDefaultValue=false)] - public int? Layer { get; set; } - - /// - /// Transparency percentage (works only if the layer is in background) - /// - /// Transparency percentage (works only if the layer is in background) - [DataMember(Name="transparency", EmitDefaultValue=false)] - public int? Transparency { get; set; } - - /// - /// Line thickness (optional - -&gt; can be null) - /// - /// Line thickness (optional - -&gt; can be null) - [DataMember(Name="thickness", EmitDefaultValue=false)] - public int? Thickness { get; set; } - - /// - /// Orizzontale regolation (0 if none) - /// - /// Orizzontale regolation (0 if none) - [DataMember(Name="regX", EmitDefaultValue=false)] - public int? RegX { get; set; } - - /// - /// Vertical regolation (0 if none) - /// - /// Vertical regolation (0 if none) - [DataMember(Name="regY", EmitDefaultValue=false)] - public int? RegY { get; set; } - - /// - /// Watermark rotation (0 - 45 - 90 - 135 - 180 - 225 -270 - 315) - /// - /// Watermark rotation (0 - 45 - 90 - 135 - 180 - 225 -270 - 315) - [DataMember(Name="rotation", EmitDefaultValue=false)] - public int? Rotation { get; set; } - - /// - /// Possible values: 0: Left 1: Center 2: Right - /// - /// Possible values: 0: Left 1: Center 2: Right - [DataMember(Name="posX", EmitDefaultValue=false)] - public int? PosX { get; set; } - - /// - /// Possible values: 0: Top 1: Center 2: Bottom - /// - /// Possible values: 0: Top 1: Center 2: Bottom - [DataMember(Name="posY", EmitDefaultValue=false)] - public int? PosY { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PdfOptionsDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" DocumentTypeId: ").Append(DocumentTypeId).Append("\n"); - sb.Append(" Font: ").Append(Font).Append("\n"); - sb.Append(" Color: ").Append(Color).Append("\n"); - sb.Append(" FreeText: ").Append(FreeText).Append("\n"); - sb.Append(" FontDimension: ").Append(FontDimension).Append("\n"); - sb.Append(" Layer: ").Append(Layer).Append("\n"); - sb.Append(" Transparency: ").Append(Transparency).Append("\n"); - sb.Append(" Thickness: ").Append(Thickness).Append("\n"); - sb.Append(" RegX: ").Append(RegX).Append("\n"); - sb.Append(" RegY: ").Append(RegY).Append("\n"); - sb.Append(" Rotation: ").Append(Rotation).Append("\n"); - sb.Append(" PosX: ").Append(PosX).Append("\n"); - sb.Append(" PosY: ").Append(PosY).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PdfOptionsDTO); - } - - /// - /// Returns true if PdfOptionsDTO instances are equal - /// - /// Instance of PdfOptionsDTO to be compared - /// Boolean - public bool Equals(PdfOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.DocumentTypeId == input.DocumentTypeId || - (this.DocumentTypeId != null && - this.DocumentTypeId.Equals(input.DocumentTypeId)) - ) && - ( - this.Font == input.Font || - (this.Font != null && - this.Font.Equals(input.Font)) - ) && - ( - this.Color == input.Color || - (this.Color != null && - this.Color.Equals(input.Color)) - ) && - ( - this.FreeText == input.FreeText || - (this.FreeText != null && - this.FreeText.Equals(input.FreeText)) - ) && - ( - this.FontDimension == input.FontDimension || - (this.FontDimension != null && - this.FontDimension.Equals(input.FontDimension)) - ) && - ( - this.Layer == input.Layer || - (this.Layer != null && - this.Layer.Equals(input.Layer)) - ) && - ( - this.Transparency == input.Transparency || - (this.Transparency != null && - this.Transparency.Equals(input.Transparency)) - ) && - ( - this.Thickness == input.Thickness || - (this.Thickness != null && - this.Thickness.Equals(input.Thickness)) - ) && - ( - this.RegX == input.RegX || - (this.RegX != null && - this.RegX.Equals(input.RegX)) - ) && - ( - this.RegY == input.RegY || - (this.RegY != null && - this.RegY.Equals(input.RegY)) - ) && - ( - this.Rotation == input.Rotation || - (this.Rotation != null && - this.Rotation.Equals(input.Rotation)) - ) && - ( - this.PosX == input.PosX || - (this.PosX != null && - this.PosX.Equals(input.PosX)) - ) && - ( - this.PosY == input.PosY || - (this.PosY != null && - this.PosY.Equals(input.PosY)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.DocumentTypeId != null) - hashCode = hashCode * 59 + this.DocumentTypeId.GetHashCode(); - if (this.Font != null) - hashCode = hashCode * 59 + this.Font.GetHashCode(); - if (this.Color != null) - hashCode = hashCode * 59 + this.Color.GetHashCode(); - if (this.FreeText != null) - hashCode = hashCode * 59 + this.FreeText.GetHashCode(); - if (this.FontDimension != null) - hashCode = hashCode * 59 + this.FontDimension.GetHashCode(); - if (this.Layer != null) - hashCode = hashCode * 59 + this.Layer.GetHashCode(); - if (this.Transparency != null) - hashCode = hashCode * 59 + this.Transparency.GetHashCode(); - if (this.Thickness != null) - hashCode = hashCode * 59 + this.Thickness.GetHashCode(); - if (this.RegX != null) - hashCode = hashCode * 59 + this.RegX.GetHashCode(); - if (this.RegY != null) - hashCode = hashCode * 59 + this.RegY.GetHashCode(); - if (this.Rotation != null) - hashCode = hashCode * 59 + this.Rotation.GetHashCode(); - if (this.PosX != null) - hashCode = hashCode * 59 + this.PosX.GetHashCode(); - if (this.PosY != null) - hashCode = hashCode * 59 + this.PosY.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/PermissionItemDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/PermissionItemDTO.cs deleted file mode 100644 index da7c14f..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/PermissionItemDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of permission item - /// - [DataContract] - public partial class PermissionItemDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Allow. - /// Deny. - public PermissionItemDTO(int? permission = default(int?), bool? allow = default(bool?), bool? deny = default(bool?)) - { - this.Permission = permission; - this.Allow = allow; - this.Deny = deny; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="permission", EmitDefaultValue=false)] - public int? Permission { get; set; } - - /// - /// Allow - /// - /// Allow - [DataMember(Name="allow", EmitDefaultValue=false)] - public bool? Allow { get; set; } - - /// - /// Deny - /// - /// Deny - [DataMember(Name="deny", EmitDefaultValue=false)] - public bool? Deny { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PermissionItemDTO {\n"); - sb.Append(" Permission: ").Append(Permission).Append("\n"); - sb.Append(" Allow: ").Append(Allow).Append("\n"); - sb.Append(" Deny: ").Append(Deny).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PermissionItemDTO); - } - - /// - /// Returns true if PermissionItemDTO instances are equal - /// - /// Instance of PermissionItemDTO to be compared - /// Boolean - public bool Equals(PermissionItemDTO input) - { - if (input == null) - return false; - - return - ( - this.Permission == input.Permission || - (this.Permission != null && - this.Permission.Equals(input.Permission)) - ) && - ( - this.Allow == input.Allow || - (this.Allow != null && - this.Allow.Equals(input.Allow)) - ) && - ( - this.Deny == input.Deny || - (this.Deny != null && - this.Deny.Equals(input.Deny)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Permission != null) - hashCode = hashCode * 59 + this.Permission.GetHashCode(); - if (this.Allow != null) - hashCode = hashCode * 59 + this.Allow.GetHashCode(); - if (this.Deny != null) - hashCode = hashCode * 59 + this.Deny.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/PermissionPropertiesDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/PermissionPropertiesDTO.cs deleted file mode 100644 index d654ea2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/PermissionPropertiesDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of permission properties - /// - [DataContract] - public partial class PermissionPropertiesDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - public PermissionPropertiesDTO(int? permission = default(int?), string description = default(string)) - { - this.Permission = permission; - this.Description = description; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="permission", EmitDefaultValue=false)] - public int? Permission { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PermissionPropertiesDTO {\n"); - sb.Append(" Permission: ").Append(Permission).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PermissionPropertiesDTO); - } - - /// - /// Returns true if PermissionPropertiesDTO instances are equal - /// - /// Instance of PermissionPropertiesDTO to be compared - /// Boolean - public bool Equals(PermissionPropertiesDTO input) - { - if (input == null) - return false; - - return - ( - this.Permission == input.Permission || - (this.Permission != null && - this.Permission.Equals(input.Permission)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Permission != null) - hashCode = hashCode * 59 + this.Permission.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/PermissionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/PermissionsDTO.cs deleted file mode 100644 index 66ea089..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/PermissionsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of permissions data - /// - [DataContract] - public partial class PermissionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// List of user permissions. - /// Permission Properties. - public PermissionsDTO(List usersPermissions = default(List), List permissionsProperties = default(List)) - { - this.UsersPermissions = usersPermissions; - this.PermissionsProperties = permissionsProperties; - } - - /// - /// List of user permissions - /// - /// List of user permissions - [DataMember(Name="usersPermissions", EmitDefaultValue=false)] - public List UsersPermissions { get; set; } - - /// - /// Permission Properties - /// - /// Permission Properties - [DataMember(Name="permissionsProperties", EmitDefaultValue=false)] - public List PermissionsProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PermissionsDTO {\n"); - sb.Append(" UsersPermissions: ").Append(UsersPermissions).Append("\n"); - sb.Append(" PermissionsProperties: ").Append(PermissionsProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PermissionsDTO); - } - - /// - /// Returns true if PermissionsDTO instances are equal - /// - /// Instance of PermissionsDTO to be compared - /// Boolean - public bool Equals(PermissionsDTO input) - { - if (input == null) - return false; - - return - ( - this.UsersPermissions == input.UsersPermissions || - this.UsersPermissions != null && - this.UsersPermissions.SequenceEqual(input.UsersPermissions) - ) && - ( - this.PermissionsProperties == input.PermissionsProperties || - this.PermissionsProperties != null && - this.PermissionsProperties.SequenceEqual(input.PermissionsProperties) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.UsersPermissions != null) - hashCode = hashCode * 59 + this.UsersPermissions.GetHashCode(); - if (this.PermissionsProperties != null) - hashCode = hashCode * 59 + this.PermissionsProperties.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/PostProfilationActionDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/PostProfilationActionDTO.cs deleted file mode 100644 index f0c62ba..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/PostProfilationActionDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of a action in post profilation - /// - [DataContract] - public partial class PostProfilationActionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Short description. - /// Description. - /// Possible values: 15: StartWorkFlow 16: SendViaFax 17: SendViaMail 18: AttachToActiveWorkflow 19: InsertInAssociation 20: InsertInFolder 21: InsertInManualRelation 29: SetPermissions 31: AttachMemo 33: StartCollaboration 34: ImmediatlyScan . - /// Visible. - /// Active. - public PostProfilationActionDTO(string shortDescription = default(string), string description = default(string), int? action = default(int?), bool? visible = default(bool?), bool? value = default(bool?)) - { - this.ShortDescription = shortDescription; - this.Description = description; - this.Action = action; - this.Visible = visible; - this.Value = value; - } - - /// - /// Short description - /// - /// Short description - [DataMember(Name="shortDescription", EmitDefaultValue=false)] - public string ShortDescription { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 15: StartWorkFlow 16: SendViaFax 17: SendViaMail 18: AttachToActiveWorkflow 19: InsertInAssociation 20: InsertInFolder 21: InsertInManualRelation 29: SetPermissions 31: AttachMemo 33: StartCollaboration 34: ImmediatlyScan - /// - /// Possible values: 15: StartWorkFlow 16: SendViaFax 17: SendViaMail 18: AttachToActiveWorkflow 19: InsertInAssociation 20: InsertInFolder 21: InsertInManualRelation 29: SetPermissions 31: AttachMemo 33: StartCollaboration 34: ImmediatlyScan - [DataMember(Name="action", EmitDefaultValue=false)] - public int? Action { get; set; } - - /// - /// Visible - /// - /// Visible - [DataMember(Name="visible", EmitDefaultValue=false)] - public bool? Visible { get; set; } - - /// - /// Active - /// - /// Active - [DataMember(Name="value", EmitDefaultValue=false)] - public bool? Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PostProfilationActionDTO {\n"); - sb.Append(" ShortDescription: ").Append(ShortDescription).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Action: ").Append(Action).Append("\n"); - sb.Append(" Visible: ").Append(Visible).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PostProfilationActionDTO); - } - - /// - /// Returns true if PostProfilationActionDTO instances are equal - /// - /// Instance of PostProfilationActionDTO to be compared - /// Boolean - public bool Equals(PostProfilationActionDTO input) - { - if (input == null) - return false; - - return - ( - this.ShortDescription == input.ShortDescription || - (this.ShortDescription != null && - this.ShortDescription.Equals(input.ShortDescription)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Action == input.Action || - (this.Action != null && - this.Action.Equals(input.Action)) - ) && - ( - this.Visible == input.Visible || - (this.Visible != null && - this.Visible.Equals(input.Visible)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ShortDescription != null) - hashCode = hashCode * 59 + this.ShortDescription.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Action != null) - hashCode = hashCode * 59 + this.Action.GetHashCode(); - if (this.Visible != null) - hashCode = hashCode * 59 + this.Visible.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/PredefinedProfileDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/PredefinedProfileDTO.cs deleted file mode 100644 index a165302..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/PredefinedProfileDTO.cs +++ /dev/null @@ -1,278 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of predefined profile data - /// - [DataContract] - public partial class PredefinedProfileDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - /// List of post profilation actions. - /// Full name of the user who created the predefined profile. - /// Creation date. - /// Document type identifier. - /// Business code. - /// User identifier. - /// Collaboration Identifier. - /// List of fields. - public PredefinedProfileDTO(int? id = default(int?), string name = default(string), List postProfilationActions = default(List), string userCompleteName = default(string), DateTime? creationDate = default(DateTime?), int? documentType = default(int?), string aoo = default(string), int? user = default(int?), string collaborationTemplateId = default(string), List fields = default(List)) - { - this.Id = id; - this.Name = name; - this.PostProfilationActions = postProfilationActions; - this.UserCompleteName = userCompleteName; - this.CreationDate = creationDate; - this.DocumentType = documentType; - this.Aoo = aoo; - this.User = user; - this.CollaborationTemplateId = collaborationTemplateId; - this.Fields = fields; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// List of post profilation actions - /// - /// List of post profilation actions - [DataMember(Name="postProfilationActions", EmitDefaultValue=false)] - public List PostProfilationActions { get; set; } - - /// - /// Full name of the user who created the predefined profile - /// - /// Full name of the user who created the predefined profile - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Creation date - /// - /// Creation date - [DataMember(Name="creationDate", EmitDefaultValue=false)] - public DateTime? CreationDate { get; set; } - - /// - /// Document type identifier - /// - /// Document type identifier - [DataMember(Name="documentType", EmitDefaultValue=false)] - public int? DocumentType { get; set; } - - /// - /// Business code - /// - /// Business code - [DataMember(Name="aoo", EmitDefaultValue=false)] - public string Aoo { get; set; } - - /// - /// User identifier - /// - /// User identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Collaboration Identifier - /// - /// Collaboration Identifier - [DataMember(Name="collaborationTemplateId", EmitDefaultValue=false)] - public string CollaborationTemplateId { get; set; } - - /// - /// List of fields - /// - /// List of fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PredefinedProfileDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" PostProfilationActions: ").Append(PostProfilationActions).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Aoo: ").Append(Aoo).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" CollaborationTemplateId: ").Append(CollaborationTemplateId).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PredefinedProfileDTO); - } - - /// - /// Returns true if PredefinedProfileDTO instances are equal - /// - /// Instance of PredefinedProfileDTO to be compared - /// Boolean - public bool Equals(PredefinedProfileDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.PostProfilationActions == input.PostProfilationActions || - this.PostProfilationActions != null && - this.PostProfilationActions.SequenceEqual(input.PostProfilationActions) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.CreationDate == input.CreationDate || - (this.CreationDate != null && - this.CreationDate.Equals(input.CreationDate)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Aoo == input.Aoo || - (this.Aoo != null && - this.Aoo.Equals(input.Aoo)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.CollaborationTemplateId == input.CollaborationTemplateId || - (this.CollaborationTemplateId != null && - this.CollaborationTemplateId.Equals(input.CollaborationTemplateId)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.PostProfilationActions != null) - hashCode = hashCode * 59 + this.PostProfilationActions.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.CreationDate != null) - hashCode = hashCode * 59 + this.CreationDate.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Aoo != null) - hashCode = hashCode * 59 + this.Aoo.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.CollaborationTemplateId != null) - hashCode = hashCode * 59 + this.CollaborationTemplateId.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/PredefinedProfileSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/PredefinedProfileSimpleDTO.cs deleted file mode 100644 index 4570ab2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/PredefinedProfileSimpleDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of predefined profile with essential data - /// - [DataContract] - public partial class PredefinedProfileSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Name. - public PredefinedProfileSimpleDTO(int? id = default(int?), string name = default(string)) - { - this.Id = id; - this.Name = name; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PredefinedProfileSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PredefinedProfileSimpleDTO); - } - - /// - /// Returns true if PredefinedProfileSimpleDTO instances are equal - /// - /// Instance of PredefinedProfileSimpleDTO to be compared - /// Boolean - public bool Equals(PredefinedProfileSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ProfileSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ProfileSettingsDTO.cs deleted file mode 100644 index 1af602b..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ProfileSettingsDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of the profile settings - /// - [DataContract] - public partial class ProfileSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// List of file extensions that need be opened for reading only as default. - /// List of file extensions that can be opened for reading only. - /// Documents writing settings. - public ProfileSettingsDTO(List defaultReadOnlyFileExtensions = default(List), List readOnlyFileExtensions = default(List), DocumentsWritingSettingsDTO documentsWritingSettings = default(DocumentsWritingSettingsDTO)) - { - this.DefaultReadOnlyFileExtensions = defaultReadOnlyFileExtensions; - this.ReadOnlyFileExtensions = readOnlyFileExtensions; - this.DocumentsWritingSettings = documentsWritingSettings; - } - - /// - /// List of file extensions that need be opened for reading only as default - /// - /// List of file extensions that need be opened for reading only as default - [DataMember(Name="defaultReadOnlyFileExtensions", EmitDefaultValue=false)] - public List DefaultReadOnlyFileExtensions { get; set; } - - /// - /// List of file extensions that can be opened for reading only - /// - /// List of file extensions that can be opened for reading only - [DataMember(Name="readOnlyFileExtensions", EmitDefaultValue=false)] - public List ReadOnlyFileExtensions { get; set; } - - /// - /// Documents writing settings - /// - /// Documents writing settings - [DataMember(Name="documentsWritingSettings", EmitDefaultValue=false)] - public DocumentsWritingSettingsDTO DocumentsWritingSettings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProfileSettingsDTO {\n"); - sb.Append(" DefaultReadOnlyFileExtensions: ").Append(DefaultReadOnlyFileExtensions).Append("\n"); - sb.Append(" ReadOnlyFileExtensions: ").Append(ReadOnlyFileExtensions).Append("\n"); - sb.Append(" DocumentsWritingSettings: ").Append(DocumentsWritingSettings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProfileSettingsDTO); - } - - /// - /// Returns true if ProfileSettingsDTO instances are equal - /// - /// Instance of ProfileSettingsDTO to be compared - /// Boolean - public bool Equals(ProfileSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.DefaultReadOnlyFileExtensions == input.DefaultReadOnlyFileExtensions || - this.DefaultReadOnlyFileExtensions != null && - this.DefaultReadOnlyFileExtensions.SequenceEqual(input.DefaultReadOnlyFileExtensions) - ) && - ( - this.ReadOnlyFileExtensions == input.ReadOnlyFileExtensions || - this.ReadOnlyFileExtensions != null && - this.ReadOnlyFileExtensions.SequenceEqual(input.ReadOnlyFileExtensions) - ) && - ( - this.DocumentsWritingSettings == input.DocumentsWritingSettings || - (this.DocumentsWritingSettings != null && - this.DocumentsWritingSettings.Equals(input.DocumentsWritingSettings)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DefaultReadOnlyFileExtensions != null) - hashCode = hashCode * 59 + this.DefaultReadOnlyFileExtensions.GetHashCode(); - if (this.ReadOnlyFileExtensions != null) - hashCode = hashCode * 59 + this.ReadOnlyFileExtensions.GetHashCode(); - if (this.DocumentsWritingSettings != null) - hashCode = hashCode * 59 + this.DocumentsWritingSettings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ProtocolDateFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ProtocolDateFieldDTO.cs deleted file mode 100644 index baf7225..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ProtocolDateFieldDTO.cs +++ /dev/null @@ -1,149 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Protoco date - /// - [DataContract] - public partial class ProtocolDateFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ProtocolDateFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Protocol date value. - /// Last edit time of the document. - public ProtocolDateFieldDTO(DateTime? value = default(DateTime?), bool? editTime = default(bool?), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "ProtocolDateFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.EditTime = editTime; - } - - /// - /// Protocol date value - /// - /// Protocol date value - [DataMember(Name="value", EmitDefaultValue=false)] - public DateTime? Value { get; set; } - - /// - /// Last edit time of the document - /// - /// Last edit time of the document - [DataMember(Name="editTime", EmitDefaultValue=false)] - public bool? EditTime { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProtocolDateFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" EditTime: ").Append(EditTime).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProtocolDateFieldDTO); - } - - /// - /// Returns true if ProtocolDateFieldDTO instances are equal - /// - /// Instance of ProtocolDateFieldDTO to be compared - /// Boolean - public bool Equals(ProtocolDateFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.EditTime == input.EditTime || - (this.EditTime != null && - this.EditTime.Equals(input.EditTime)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.EditTime != null) - hashCode = hashCode * 59 + this.EditTime.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ProtocolSearchFilterDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ProtocolSearchFilterDTO.cs deleted file mode 100644 index 0945418..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ProtocolSearchFilterDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of protocol filter - /// - [DataContract] - public partial class ProtocolSearchFilterDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Protocol Number. - /// Protocol Year. - public ProtocolSearchFilterDTO(string protocol = default(string), string year = default(string)) - { - this.Protocol = protocol; - this.Year = year; - } - - /// - /// Protocol Number - /// - /// Protocol Number - [DataMember(Name="protocol", EmitDefaultValue=false)] - public string Protocol { get; set; } - - /// - /// Protocol Year - /// - /// Protocol Year - [DataMember(Name="year", EmitDefaultValue=false)] - public string Year { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProtocolSearchFilterDTO {\n"); - sb.Append(" Protocol: ").Append(Protocol).Append("\n"); - sb.Append(" Year: ").Append(Year).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProtocolSearchFilterDTO); - } - - /// - /// Returns true if ProtocolSearchFilterDTO instances are equal - /// - /// Instance of ProtocolSearchFilterDTO to be compared - /// Boolean - public bool Equals(ProtocolSearchFilterDTO input) - { - if (input == null) - return false; - - return - ( - this.Protocol == input.Protocol || - (this.Protocol != null && - this.Protocol.Equals(input.Protocol)) - ) && - ( - this.Year == input.Year || - (this.Year != null && - this.Year.Equals(input.Year)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Protocol != null) - hashCode = hashCode * 59 + this.Protocol.GetHashCode(); - if (this.Year != null) - hashCode = hashCode * 59 + this.Year.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ReceiptPADTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ReceiptPADTO.cs deleted file mode 100644 index 6c040e0..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ReceiptPADTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type: receipt PA - /// - [DataContract] - public partial class ReceiptPADTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Template file. - /// Document Type. - public ReceiptPADTO(int? id = default(int?), string template = default(string), DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO)) - { - this.Id = id; - this.Template = template; - this.DocumentType = documentType; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Template file - /// - /// Template file - [DataMember(Name="template", EmitDefaultValue=false)] - public string Template { get; set; } - - /// - /// Document Type - /// - /// Document Type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReceiptPADTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Template: ").Append(Template).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReceiptPADTO); - } - - /// - /// Returns true if ReceiptPADTO instances are equal - /// - /// Instance of ReceiptPADTO to be compared - /// Boolean - public bool Equals(ReceiptPADTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Template == input.Template || - (this.Template != null && - this.Template.Equals(input.Template)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Template != null) - hashCode = hashCode * 59 + this.Template.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/RegexTestDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/RegexTestDTO.cs deleted file mode 100644 index 4561be2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/RegexTestDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for Regex test - /// - [DataContract] - public partial class RegexTestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Regex string. - /// Value to test. - public RegexTestDTO(string regex = default(string), string value = default(string)) - { - this.Regex = regex; - this.Value = value; - } - - /// - /// Regex string - /// - /// Regex string - [DataMember(Name="regex", EmitDefaultValue=false)] - public string Regex { get; set; } - - /// - /// Value to test - /// - /// Value to test - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RegexTestDTO {\n"); - sb.Append(" Regex: ").Append(Regex).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RegexTestDTO); - } - - /// - /// Returns true if RegexTestDTO instances are equal - /// - /// Instance of RegexTestDTO to be compared - /// Boolean - public bool Equals(RegexTestDTO input) - { - if (input == null) - return false; - - return - ( - this.Regex == input.Regex || - (this.Regex != null && - this.Regex.Equals(input.Regex)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Regex != null) - hashCode = hashCode * 59 + this.Regex.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/RemoteSignConfigurationDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/RemoteSignConfigurationDto.cs deleted file mode 100644 index 247217d..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/RemoteSignConfigurationDto.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Remote sign configuration - /// - [DataContract] - public partial class RemoteSignConfigurationDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba . - /// Remote sign provider description. - /// List of configuration options. - public RemoteSignConfigurationDto(int? signCertType = default(int?), string description = default(string), List configurationOptions = default(List)) - { - this.SignCertType = signCertType; - this.Description = description; - this.ConfigurationOptions = configurationOptions; - } - - /// - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba - /// - /// Possible values: 0: Static 1: CoSign 2: RemoteTelecom 3: RemoteAruba - [DataMember(Name="signCertType", EmitDefaultValue=false)] - public int? SignCertType { get; set; } - - /// - /// Remote sign provider description - /// - /// Remote sign provider description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// List of configuration options - /// - /// List of configuration options - [DataMember(Name="configurationOptions", EmitDefaultValue=false)] - public List ConfigurationOptions { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RemoteSignConfigurationDto {\n"); - sb.Append(" SignCertType: ").Append(SignCertType).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ConfigurationOptions: ").Append(ConfigurationOptions).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RemoteSignConfigurationDto); - } - - /// - /// Returns true if RemoteSignConfigurationDto instances are equal - /// - /// Instance of RemoteSignConfigurationDto to be compared - /// Boolean - public bool Equals(RemoteSignConfigurationDto input) - { - if (input == null) - return false; - - return - ( - this.SignCertType == input.SignCertType || - (this.SignCertType != null && - this.SignCertType.Equals(input.SignCertType)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.ConfigurationOptions == input.ConfigurationOptions || - this.ConfigurationOptions != null && - this.ConfigurationOptions.SequenceEqual(input.ConfigurationOptions) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SignCertType != null) - hashCode = hashCode * 59 + this.SignCertType.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ConfigurationOptions != null) - hashCode = hashCode * 59 + this.ConfigurationOptions.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/RemoteSignConfigurationOptionDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/RemoteSignConfigurationOptionDto.cs deleted file mode 100644 index 70f4a54..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/RemoteSignConfigurationOptionDto.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Remote sign configuration option - /// - [DataContract] - public partial class RemoteSignConfigurationOptionDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Parameter name. - /// Parameter description to show. - /// Parameter value. - /// If ProtectedValue is true this parameter tells if the value has already been set. - /// Value is protected and is not provided. ValueIsSet tells if the value has been set. - /// The value is advanced. - public RemoteSignConfigurationOptionDto(string name = default(string), string description = default(string), string value = default(string), bool? valueIsSet = default(bool?), bool? protectedValue = default(bool?), bool? isAdvanced = default(bool?)) - { - this.Name = name; - this.Description = description; - this.Value = value; - this.ValueIsSet = valueIsSet; - this.ProtectedValue = protectedValue; - this.IsAdvanced = isAdvanced; - } - - /// - /// Parameter name - /// - /// Parameter name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Parameter description to show - /// - /// Parameter description to show - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Parameter value - /// - /// Parameter value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// If ProtectedValue is true this parameter tells if the value has already been set - /// - /// If ProtectedValue is true this parameter tells if the value has already been set - [DataMember(Name="valueIsSet", EmitDefaultValue=false)] - public bool? ValueIsSet { get; set; } - - /// - /// Value is protected and is not provided. ValueIsSet tells if the value has been set - /// - /// Value is protected and is not provided. ValueIsSet tells if the value has been set - [DataMember(Name="protectedValue", EmitDefaultValue=false)] - public bool? ProtectedValue { get; set; } - - /// - /// The value is advanced - /// - /// The value is advanced - [DataMember(Name="isAdvanced", EmitDefaultValue=false)] - public bool? IsAdvanced { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RemoteSignConfigurationOptionDto {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" ValueIsSet: ").Append(ValueIsSet).Append("\n"); - sb.Append(" ProtectedValue: ").Append(ProtectedValue).Append("\n"); - sb.Append(" IsAdvanced: ").Append(IsAdvanced).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RemoteSignConfigurationOptionDto); - } - - /// - /// Returns true if RemoteSignConfigurationOptionDto instances are equal - /// - /// Instance of RemoteSignConfigurationOptionDto to be compared - /// Boolean - public bool Equals(RemoteSignConfigurationOptionDto input) - { - if (input == null) - return false; - - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && - ( - this.ValueIsSet == input.ValueIsSet || - (this.ValueIsSet != null && - this.ValueIsSet.Equals(input.ValueIsSet)) - ) && - ( - this.ProtectedValue == input.ProtectedValue || - (this.ProtectedValue != null && - this.ProtectedValue.Equals(input.ProtectedValue)) - ) && - ( - this.IsAdvanced == input.IsAdvanced || - (this.IsAdvanced != null && - this.IsAdvanced.Equals(input.IsAdvanced)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.ValueIsSet != null) - hashCode = hashCode * 59 + this.ValueIsSet.GetHashCode(); - if (this.ProtectedValue != null) - hashCode = hashCode * 59 + this.ProtectedValue.GetHashCode(); - if (this.IsAdvanced != null) - hashCode = hashCode * 59 + this.IsAdvanced.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ReplacementStorageSearchFilterDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ReplacementStorageSearchFilterDto.cs deleted file mode 100644 index 69e9797..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ReplacementStorageSearchFilterDto.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// ReplacementStorageSearchFilterDto - /// - [DataContract] - public partial class ReplacementStorageSearchFilterDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// isAos. - /// period. - /// dmDevDocDevice. - public ReplacementStorageSearchFilterDto(int? isAos = default(int?), string period = default(string), string dmDevDocDevice = default(string)) - { - this.IsAos = isAos; - this.Period = period; - this.DmDevDocDevice = dmDevDocDevice; - } - - /// - /// Gets or Sets IsAos - /// - [DataMember(Name="isAos", EmitDefaultValue=false)] - public int? IsAos { get; set; } - - /// - /// Gets or Sets Period - /// - [DataMember(Name="period", EmitDefaultValue=false)] - public string Period { get; set; } - - /// - /// Gets or Sets DmDevDocDevice - /// - [DataMember(Name="dm_DevDoc_Device", EmitDefaultValue=false)] - public string DmDevDocDevice { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReplacementStorageSearchFilterDto {\n"); - sb.Append(" IsAos: ").Append(IsAos).Append("\n"); - sb.Append(" Period: ").Append(Period).Append("\n"); - sb.Append(" DmDevDocDevice: ").Append(DmDevDocDevice).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReplacementStorageSearchFilterDto); - } - - /// - /// Returns true if ReplacementStorageSearchFilterDto instances are equal - /// - /// Instance of ReplacementStorageSearchFilterDto to be compared - /// Boolean - public bool Equals(ReplacementStorageSearchFilterDto input) - { - if (input == null) - return false; - - return - ( - this.IsAos == input.IsAos || - (this.IsAos != null && - this.IsAos.Equals(input.IsAos)) - ) && - ( - this.Period == input.Period || - (this.Period != null && - this.Period.Equals(input.Period)) - ) && - ( - this.DmDevDocDevice == input.DmDevDocDevice || - (this.DmDevDocDevice != null && - this.DmDevDocDevice.Equals(input.DmDevDocDevice)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IsAos != null) - hashCode = hashCode * 59 + this.IsAos.GetHashCode(); - if (this.Period != null) - hashCode = hashCode * 59 + this.Period.GetHashCode(); - if (this.DmDevDocDevice != null) - hashCode = hashCode * 59 + this.DmDevDocDevice.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/RootMaskFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/RootMaskFieldDTO.cs deleted file mode 100644 index f304899..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/RootMaskFieldDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of root mask field - /// - [DataContract] - public partial class RootMaskFieldDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Field. - /// Is system field. - /// Is Readonly. - /// Is read-only. - /// Order. - public RootMaskFieldDTO(string id = default(string), FieldManagementDTO field = default(FieldManagementDTO), bool? isSystem = default(bool?), bool? _readonly = default(bool?), bool? required = default(bool?), int? order = default(int?)) - { - this.Id = id; - this.Field = field; - this.IsSystem = isSystem; - this.Readonly = _readonly; - this.Required = required; - this.Order = order; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Field - /// - /// Field - [DataMember(Name="field", EmitDefaultValue=false)] - public FieldManagementDTO Field { get; set; } - - /// - /// Is system field - /// - /// Is system field - [DataMember(Name="isSystem", EmitDefaultValue=false)] - public bool? IsSystem { get; set; } - - /// - /// Is Readonly - /// - /// Is Readonly - [DataMember(Name="readonly", EmitDefaultValue=false)] - public bool? Readonly { get; set; } - - /// - /// Is read-only - /// - /// Is read-only - [DataMember(Name="required", EmitDefaultValue=false)] - public bool? Required { get; set; } - - /// - /// Order - /// - /// Order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RootMaskFieldDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Field: ").Append(Field).Append("\n"); - sb.Append(" IsSystem: ").Append(IsSystem).Append("\n"); - sb.Append(" Readonly: ").Append(Readonly).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RootMaskFieldDTO); - } - - /// - /// Returns true if RootMaskFieldDTO instances are equal - /// - /// Instance of RootMaskFieldDTO to be compared - /// Boolean - public bool Equals(RootMaskFieldDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Field == input.Field || - (this.Field != null && - this.Field.Equals(input.Field)) - ) && - ( - this.IsSystem == input.IsSystem || - (this.IsSystem != null && - this.IsSystem.Equals(input.IsSystem)) - ) && - ( - this.Readonly == input.Readonly || - (this.Readonly != null && - this.Readonly.Equals(input.Readonly)) - ) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Field != null) - hashCode = hashCode * 59 + this.Field.GetHashCode(); - if (this.IsSystem != null) - hashCode = hashCode * 59 + this.IsSystem.GetHashCode(); - if (this.Readonly != null) - hashCode = hashCode * 59 + this.Readonly.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/RootMaskFieldOrderOptionDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/RootMaskFieldOrderOptionDTO.cs deleted file mode 100644 index 9eb3c7b..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/RootMaskFieldOrderOptionDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of root mask field order options - /// - [DataContract] - public partial class RootMaskFieldOrderOptionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Order. - public RootMaskFieldOrderOptionDTO(string id = default(string), int? order = default(int?)) - { - this.Id = id; - this.Order = order; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Order - /// - /// Order - [DataMember(Name="order", EmitDefaultValue=false)] - public int? Order { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RootMaskFieldOrderOptionDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RootMaskFieldOrderOptionDTO); - } - - /// - /// Returns true if RootMaskFieldOrderOptionDTO instances are equal - /// - /// Instance of RootMaskFieldOrderOptionDTO to be compared - /// Boolean - public bool Equals(RootMaskFieldOrderOptionDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Order != null) - hashCode = hashCode * 59 + this.Order.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/RootMaskLabelTranslationDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/RootMaskLabelTranslationDTO.cs deleted file mode 100644 index b731841..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/RootMaskLabelTranslationDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of label translation - /// - [DataContract] - public partial class RootMaskLabelTranslationDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Language code. - /// Translation. - public RootMaskLabelTranslationDTO(string langCode = default(string), string value = default(string)) - { - this.LangCode = langCode; - this.Value = value; - } - - /// - /// Language code - /// - /// Language code - [DataMember(Name="langCode", EmitDefaultValue=false)] - public string LangCode { get; set; } - - /// - /// Translation - /// - /// Translation - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RootMaskLabelTranslationDTO {\n"); - sb.Append(" LangCode: ").Append(LangCode).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RootMaskLabelTranslationDTO); - } - - /// - /// Returns true if RootMaskLabelTranslationDTO instances are equal - /// - /// Instance of RootMaskLabelTranslationDTO to be compared - /// Boolean - public bool Equals(RootMaskLabelTranslationDTO input) - { - if (input == null) - return false; - - return - ( - this.LangCode == input.LangCode || - (this.LangCode != null && - this.LangCode.Equals(input.LangCode)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.LangCode != null) - hashCode = hashCode * 59 + this.LangCode.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/RootMaskSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/RootMaskSettingsDTO.cs deleted file mode 100644 index 6b5ed7a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/RootMaskSettingsDTO.cs +++ /dev/null @@ -1,533 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of root mask settings - /// - [DataContract] - public partial class RootMaskSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Allow the recovery of file from folder. - /// Allow the recovery of file from scanner. - /// Allow to manage attachments. - /// Allow notes management. - /// Prevent Switch. - /// Allow to attach the profile to an active task. - /// Allow to start workflow. - /// Allow insertion into link. - /// Allow insertion into folder. - /// Allow manual insertion into connection. - /// Allow sending by fax. - /// Allow sending by email. - /// Allow privacy settings. - /// Allow to attach profile to memo. - /// Allow distribution. - /// Allow to scan a document. - /// Allow using Barcode field. - /// Do not allow delivery of internal documents by email/fax. - /// Do not allow the deletion of email profiling from Outlook. - /// Allow to show the original document when the preview is not available. - /// Enable reviews on attachments. - /// Binders default label. - /// Binders label translations. - /// Senders default label. - /// Senders label translations. - public RootMaskSettingsDTO(bool? enableFileSelection = default(bool?), bool? enableScannerSelection = default(bool?), bool? enableAttachments = default(bool?), bool? enableNotes = default(bool?), bool? preventSwitch = default(bool?), bool? enableAttachToActiveTask = default(bool?), bool? enableStartWorkflow = default(bool?), bool? enableInsertAssociation = default(bool?), bool? enableInsertFolder = default(bool?), bool? enableInsertRelation = default(bool?), bool? enableSendFax = default(bool?), bool? enableSendMail = default(bool?), bool? enableSecurity = default(bool?), bool? enableAttachMemo = default(bool?), bool? enableDistribution = default(bool?), bool? enableScanner = default(bool?), bool? enableBarcode = default(bool?), bool? disableSendingInternalDocs = default(bool?), bool? disableOutlookProfilationCancellation = default(bool?), bool? enableDocInPreview = default(bool?), bool? enableAttachmentsRevisions = default(bool?), string bindersLabel = default(string), List bindersTranslations = default(List), string sendersLabel = default(string), List sendersTranslations = default(List)) - { - this.EnableFileSelection = enableFileSelection; - this.EnableScannerSelection = enableScannerSelection; - this.EnableAttachments = enableAttachments; - this.EnableNotes = enableNotes; - this.PreventSwitch = preventSwitch; - this.EnableAttachToActiveTask = enableAttachToActiveTask; - this.EnableStartWorkflow = enableStartWorkflow; - this.EnableInsertAssociation = enableInsertAssociation; - this.EnableInsertFolder = enableInsertFolder; - this.EnableInsertRelation = enableInsertRelation; - this.EnableSendFax = enableSendFax; - this.EnableSendMail = enableSendMail; - this.EnableSecurity = enableSecurity; - this.EnableAttachMemo = enableAttachMemo; - this.EnableDistribution = enableDistribution; - this.EnableScanner = enableScanner; - this.EnableBarcode = enableBarcode; - this.DisableSendingInternalDocs = disableSendingInternalDocs; - this.DisableOutlookProfilationCancellation = disableOutlookProfilationCancellation; - this.EnableDocInPreview = enableDocInPreview; - this.EnableAttachmentsRevisions = enableAttachmentsRevisions; - this.BindersLabel = bindersLabel; - this.BindersTranslations = bindersTranslations; - this.SendersLabel = sendersLabel; - this.SendersTranslations = sendersTranslations; - } - - /// - /// Allow the recovery of file from folder - /// - /// Allow the recovery of file from folder - [DataMember(Name="enableFileSelection", EmitDefaultValue=false)] - public bool? EnableFileSelection { get; set; } - - /// - /// Allow the recovery of file from scanner - /// - /// Allow the recovery of file from scanner - [DataMember(Name="enableScannerSelection", EmitDefaultValue=false)] - public bool? EnableScannerSelection { get; set; } - - /// - /// Allow to manage attachments - /// - /// Allow to manage attachments - [DataMember(Name="enableAttachments", EmitDefaultValue=false)] - public bool? EnableAttachments { get; set; } - - /// - /// Allow notes management - /// - /// Allow notes management - [DataMember(Name="enableNotes", EmitDefaultValue=false)] - public bool? EnableNotes { get; set; } - - /// - /// Prevent Switch - /// - /// Prevent Switch - [DataMember(Name="preventSwitch", EmitDefaultValue=false)] - public bool? PreventSwitch { get; set; } - - /// - /// Allow to attach the profile to an active task - /// - /// Allow to attach the profile to an active task - [DataMember(Name="enableAttachToActiveTask", EmitDefaultValue=false)] - public bool? EnableAttachToActiveTask { get; set; } - - /// - /// Allow to start workflow - /// - /// Allow to start workflow - [DataMember(Name="enableStartWorkflow", EmitDefaultValue=false)] - public bool? EnableStartWorkflow { get; set; } - - /// - /// Allow insertion into link - /// - /// Allow insertion into link - [DataMember(Name="enableInsertAssociation", EmitDefaultValue=false)] - public bool? EnableInsertAssociation { get; set; } - - /// - /// Allow insertion into folder - /// - /// Allow insertion into folder - [DataMember(Name="enableInsertFolder", EmitDefaultValue=false)] - public bool? EnableInsertFolder { get; set; } - - /// - /// Allow manual insertion into connection - /// - /// Allow manual insertion into connection - [DataMember(Name="enableInsertRelation", EmitDefaultValue=false)] - public bool? EnableInsertRelation { get; set; } - - /// - /// Allow sending by fax - /// - /// Allow sending by fax - [DataMember(Name="enableSendFax", EmitDefaultValue=false)] - public bool? EnableSendFax { get; set; } - - /// - /// Allow sending by email - /// - /// Allow sending by email - [DataMember(Name="enableSendMail", EmitDefaultValue=false)] - public bool? EnableSendMail { get; set; } - - /// - /// Allow privacy settings - /// - /// Allow privacy settings - [DataMember(Name="enableSecurity", EmitDefaultValue=false)] - public bool? EnableSecurity { get; set; } - - /// - /// Allow to attach profile to memo - /// - /// Allow to attach profile to memo - [DataMember(Name="enableAttachMemo", EmitDefaultValue=false)] - public bool? EnableAttachMemo { get; set; } - - /// - /// Allow distribution - /// - /// Allow distribution - [DataMember(Name="enableDistribution", EmitDefaultValue=false)] - public bool? EnableDistribution { get; set; } - - /// - /// Allow to scan a document - /// - /// Allow to scan a document - [DataMember(Name="enableScanner", EmitDefaultValue=false)] - public bool? EnableScanner { get; set; } - - /// - /// Allow using Barcode field - /// - /// Allow using Barcode field - [DataMember(Name="enableBarcode", EmitDefaultValue=false)] - public bool? EnableBarcode { get; set; } - - /// - /// Do not allow delivery of internal documents by email/fax - /// - /// Do not allow delivery of internal documents by email/fax - [DataMember(Name="disableSendingInternalDocs", EmitDefaultValue=false)] - public bool? DisableSendingInternalDocs { get; set; } - - /// - /// Do not allow the deletion of email profiling from Outlook - /// - /// Do not allow the deletion of email profiling from Outlook - [DataMember(Name="disableOutlookProfilationCancellation", EmitDefaultValue=false)] - public bool? DisableOutlookProfilationCancellation { get; set; } - - /// - /// Allow to show the original document when the preview is not available - /// - /// Allow to show the original document when the preview is not available - [DataMember(Name="enableDocInPreview", EmitDefaultValue=false)] - public bool? EnableDocInPreview { get; set; } - - /// - /// Enable reviews on attachments - /// - /// Enable reviews on attachments - [DataMember(Name="enableAttachmentsRevisions", EmitDefaultValue=false)] - public bool? EnableAttachmentsRevisions { get; set; } - - /// - /// Binders default label - /// - /// Binders default label - [DataMember(Name="bindersLabel", EmitDefaultValue=false)] - public string BindersLabel { get; set; } - - /// - /// Binders label translations - /// - /// Binders label translations - [DataMember(Name="bindersTranslations", EmitDefaultValue=false)] - public List BindersTranslations { get; set; } - - /// - /// Senders default label - /// - /// Senders default label - [DataMember(Name="sendersLabel", EmitDefaultValue=false)] - public string SendersLabel { get; set; } - - /// - /// Senders label translations - /// - /// Senders label translations - [DataMember(Name="sendersTranslations", EmitDefaultValue=false)] - public List SendersTranslations { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RootMaskSettingsDTO {\n"); - sb.Append(" EnableFileSelection: ").Append(EnableFileSelection).Append("\n"); - sb.Append(" EnableScannerSelection: ").Append(EnableScannerSelection).Append("\n"); - sb.Append(" EnableAttachments: ").Append(EnableAttachments).Append("\n"); - sb.Append(" EnableNotes: ").Append(EnableNotes).Append("\n"); - sb.Append(" PreventSwitch: ").Append(PreventSwitch).Append("\n"); - sb.Append(" EnableAttachToActiveTask: ").Append(EnableAttachToActiveTask).Append("\n"); - sb.Append(" EnableStartWorkflow: ").Append(EnableStartWorkflow).Append("\n"); - sb.Append(" EnableInsertAssociation: ").Append(EnableInsertAssociation).Append("\n"); - sb.Append(" EnableInsertFolder: ").Append(EnableInsertFolder).Append("\n"); - sb.Append(" EnableInsertRelation: ").Append(EnableInsertRelation).Append("\n"); - sb.Append(" EnableSendFax: ").Append(EnableSendFax).Append("\n"); - sb.Append(" EnableSendMail: ").Append(EnableSendMail).Append("\n"); - sb.Append(" EnableSecurity: ").Append(EnableSecurity).Append("\n"); - sb.Append(" EnableAttachMemo: ").Append(EnableAttachMemo).Append("\n"); - sb.Append(" EnableDistribution: ").Append(EnableDistribution).Append("\n"); - sb.Append(" EnableScanner: ").Append(EnableScanner).Append("\n"); - sb.Append(" EnableBarcode: ").Append(EnableBarcode).Append("\n"); - sb.Append(" DisableSendingInternalDocs: ").Append(DisableSendingInternalDocs).Append("\n"); - sb.Append(" DisableOutlookProfilationCancellation: ").Append(DisableOutlookProfilationCancellation).Append("\n"); - sb.Append(" EnableDocInPreview: ").Append(EnableDocInPreview).Append("\n"); - sb.Append(" EnableAttachmentsRevisions: ").Append(EnableAttachmentsRevisions).Append("\n"); - sb.Append(" BindersLabel: ").Append(BindersLabel).Append("\n"); - sb.Append(" BindersTranslations: ").Append(BindersTranslations).Append("\n"); - sb.Append(" SendersLabel: ").Append(SendersLabel).Append("\n"); - sb.Append(" SendersTranslations: ").Append(SendersTranslations).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RootMaskSettingsDTO); - } - - /// - /// Returns true if RootMaskSettingsDTO instances are equal - /// - /// Instance of RootMaskSettingsDTO to be compared - /// Boolean - public bool Equals(RootMaskSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.EnableFileSelection == input.EnableFileSelection || - (this.EnableFileSelection != null && - this.EnableFileSelection.Equals(input.EnableFileSelection)) - ) && - ( - this.EnableScannerSelection == input.EnableScannerSelection || - (this.EnableScannerSelection != null && - this.EnableScannerSelection.Equals(input.EnableScannerSelection)) - ) && - ( - this.EnableAttachments == input.EnableAttachments || - (this.EnableAttachments != null && - this.EnableAttachments.Equals(input.EnableAttachments)) - ) && - ( - this.EnableNotes == input.EnableNotes || - (this.EnableNotes != null && - this.EnableNotes.Equals(input.EnableNotes)) - ) && - ( - this.PreventSwitch == input.PreventSwitch || - (this.PreventSwitch != null && - this.PreventSwitch.Equals(input.PreventSwitch)) - ) && - ( - this.EnableAttachToActiveTask == input.EnableAttachToActiveTask || - (this.EnableAttachToActiveTask != null && - this.EnableAttachToActiveTask.Equals(input.EnableAttachToActiveTask)) - ) && - ( - this.EnableStartWorkflow == input.EnableStartWorkflow || - (this.EnableStartWorkflow != null && - this.EnableStartWorkflow.Equals(input.EnableStartWorkflow)) - ) && - ( - this.EnableInsertAssociation == input.EnableInsertAssociation || - (this.EnableInsertAssociation != null && - this.EnableInsertAssociation.Equals(input.EnableInsertAssociation)) - ) && - ( - this.EnableInsertFolder == input.EnableInsertFolder || - (this.EnableInsertFolder != null && - this.EnableInsertFolder.Equals(input.EnableInsertFolder)) - ) && - ( - this.EnableInsertRelation == input.EnableInsertRelation || - (this.EnableInsertRelation != null && - this.EnableInsertRelation.Equals(input.EnableInsertRelation)) - ) && - ( - this.EnableSendFax == input.EnableSendFax || - (this.EnableSendFax != null && - this.EnableSendFax.Equals(input.EnableSendFax)) - ) && - ( - this.EnableSendMail == input.EnableSendMail || - (this.EnableSendMail != null && - this.EnableSendMail.Equals(input.EnableSendMail)) - ) && - ( - this.EnableSecurity == input.EnableSecurity || - (this.EnableSecurity != null && - this.EnableSecurity.Equals(input.EnableSecurity)) - ) && - ( - this.EnableAttachMemo == input.EnableAttachMemo || - (this.EnableAttachMemo != null && - this.EnableAttachMemo.Equals(input.EnableAttachMemo)) - ) && - ( - this.EnableDistribution == input.EnableDistribution || - (this.EnableDistribution != null && - this.EnableDistribution.Equals(input.EnableDistribution)) - ) && - ( - this.EnableScanner == input.EnableScanner || - (this.EnableScanner != null && - this.EnableScanner.Equals(input.EnableScanner)) - ) && - ( - this.EnableBarcode == input.EnableBarcode || - (this.EnableBarcode != null && - this.EnableBarcode.Equals(input.EnableBarcode)) - ) && - ( - this.DisableSendingInternalDocs == input.DisableSendingInternalDocs || - (this.DisableSendingInternalDocs != null && - this.DisableSendingInternalDocs.Equals(input.DisableSendingInternalDocs)) - ) && - ( - this.DisableOutlookProfilationCancellation == input.DisableOutlookProfilationCancellation || - (this.DisableOutlookProfilationCancellation != null && - this.DisableOutlookProfilationCancellation.Equals(input.DisableOutlookProfilationCancellation)) - ) && - ( - this.EnableDocInPreview == input.EnableDocInPreview || - (this.EnableDocInPreview != null && - this.EnableDocInPreview.Equals(input.EnableDocInPreview)) - ) && - ( - this.EnableAttachmentsRevisions == input.EnableAttachmentsRevisions || - (this.EnableAttachmentsRevisions != null && - this.EnableAttachmentsRevisions.Equals(input.EnableAttachmentsRevisions)) - ) && - ( - this.BindersLabel == input.BindersLabel || - (this.BindersLabel != null && - this.BindersLabel.Equals(input.BindersLabel)) - ) && - ( - this.BindersTranslations == input.BindersTranslations || - this.BindersTranslations != null && - this.BindersTranslations.SequenceEqual(input.BindersTranslations) - ) && - ( - this.SendersLabel == input.SendersLabel || - (this.SendersLabel != null && - this.SendersLabel.Equals(input.SendersLabel)) - ) && - ( - this.SendersTranslations == input.SendersTranslations || - this.SendersTranslations != null && - this.SendersTranslations.SequenceEqual(input.SendersTranslations) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.EnableFileSelection != null) - hashCode = hashCode * 59 + this.EnableFileSelection.GetHashCode(); - if (this.EnableScannerSelection != null) - hashCode = hashCode * 59 + this.EnableScannerSelection.GetHashCode(); - if (this.EnableAttachments != null) - hashCode = hashCode * 59 + this.EnableAttachments.GetHashCode(); - if (this.EnableNotes != null) - hashCode = hashCode * 59 + this.EnableNotes.GetHashCode(); - if (this.PreventSwitch != null) - hashCode = hashCode * 59 + this.PreventSwitch.GetHashCode(); - if (this.EnableAttachToActiveTask != null) - hashCode = hashCode * 59 + this.EnableAttachToActiveTask.GetHashCode(); - if (this.EnableStartWorkflow != null) - hashCode = hashCode * 59 + this.EnableStartWorkflow.GetHashCode(); - if (this.EnableInsertAssociation != null) - hashCode = hashCode * 59 + this.EnableInsertAssociation.GetHashCode(); - if (this.EnableInsertFolder != null) - hashCode = hashCode * 59 + this.EnableInsertFolder.GetHashCode(); - if (this.EnableInsertRelation != null) - hashCode = hashCode * 59 + this.EnableInsertRelation.GetHashCode(); - if (this.EnableSendFax != null) - hashCode = hashCode * 59 + this.EnableSendFax.GetHashCode(); - if (this.EnableSendMail != null) - hashCode = hashCode * 59 + this.EnableSendMail.GetHashCode(); - if (this.EnableSecurity != null) - hashCode = hashCode * 59 + this.EnableSecurity.GetHashCode(); - if (this.EnableAttachMemo != null) - hashCode = hashCode * 59 + this.EnableAttachMemo.GetHashCode(); - if (this.EnableDistribution != null) - hashCode = hashCode * 59 + this.EnableDistribution.GetHashCode(); - if (this.EnableScanner != null) - hashCode = hashCode * 59 + this.EnableScanner.GetHashCode(); - if (this.EnableBarcode != null) - hashCode = hashCode * 59 + this.EnableBarcode.GetHashCode(); - if (this.DisableSendingInternalDocs != null) - hashCode = hashCode * 59 + this.DisableSendingInternalDocs.GetHashCode(); - if (this.DisableOutlookProfilationCancellation != null) - hashCode = hashCode * 59 + this.DisableOutlookProfilationCancellation.GetHashCode(); - if (this.EnableDocInPreview != null) - hashCode = hashCode * 59 + this.EnableDocInPreview.GetHashCode(); - if (this.EnableAttachmentsRevisions != null) - hashCode = hashCode * 59 + this.EnableAttachmentsRevisions.GetHashCode(); - if (this.BindersLabel != null) - hashCode = hashCode * 59 + this.BindersLabel.GetHashCode(); - if (this.BindersTranslations != null) - hashCode = hashCode * 59 + this.BindersTranslations.GetHashCode(); - if (this.SendersLabel != null) - hashCode = hashCode * 59 + this.SendersLabel.GetHashCode(); - if (this.SendersTranslations != null) - hashCode = hashCode * 59 + this.SendersTranslations.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/RowSearchResult.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/RowSearchResult.cs deleted file mode 100644 index 2dc166e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/RowSearchResult.cs +++ /dev/null @@ -1,141 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of search result row - /// - [DataContract] - public partial class RowSearchResult : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: None 1: Profiles 2: InternalAttachments 3: ExternalAttachments 4: AddressBook 5: CheckInOut 6: TaskWork 7: TaskWorkAttachements 8: TaskNotes 9: TaskWorkHistory 10: SqlQuery 11: ApiCall 12: Users . - /// columns. - public RowSearchResult(int? rowSerchResultContext = default(int?), List columns = default(List)) - { - this.RowSerchResultContext = rowSerchResultContext; - this.Columns = columns; - } - - /// - /// Possible values: 0: None 1: Profiles 2: InternalAttachments 3: ExternalAttachments 4: AddressBook 5: CheckInOut 6: TaskWork 7: TaskWorkAttachements 8: TaskNotes 9: TaskWorkHistory 10: SqlQuery 11: ApiCall 12: Users - /// - /// Possible values: 0: None 1: Profiles 2: InternalAttachments 3: ExternalAttachments 4: AddressBook 5: CheckInOut 6: TaskWork 7: TaskWorkAttachements 8: TaskNotes 9: TaskWorkHistory 10: SqlQuery 11: ApiCall 12: Users - [DataMember(Name="rowSerchResultContext", EmitDefaultValue=false)] - public int? RowSerchResultContext { get; set; } - - /// - /// Gets or Sets Columns - /// - [DataMember(Name="columns", EmitDefaultValue=false)] - public List Columns { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RowSearchResult {\n"); - sb.Append(" RowSerchResultContext: ").Append(RowSerchResultContext).Append("\n"); - sb.Append(" Columns: ").Append(Columns).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RowSearchResult); - } - - /// - /// Returns true if RowSearchResult instances are equal - /// - /// Instance of RowSearchResult to be compared - /// Boolean - public bool Equals(RowSearchResult input) - { - if (input == null) - return false; - - return - ( - this.RowSerchResultContext == input.RowSerchResultContext || - (this.RowSerchResultContext != null && - this.RowSerchResultContext.Equals(input.RowSerchResultContext)) - ) && - ( - this.Columns == input.Columns || - this.Columns != null && - this.Columns.SequenceEqual(input.Columns) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.RowSerchResultContext != null) - hashCode = hashCode * 59 + this.RowSerchResultContext.GetHashCode(); - if (this.Columns != null) - hashCode = hashCode * 59 + this.Columns.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SavedAttachDocumentoDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SavedAttachDocumentoDTO.cs deleted file mode 100644 index 36d73a2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SavedAttachDocumentoDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// SavedAttachDocumentoDTO - /// - [DataContract] - public partial class SavedAttachDocumentoDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Attachment identifier. - /// File name. - public SavedAttachDocumentoDTO(int? attachmentIdentifier = default(int?), string filename = default(string)) - { - this.AttachmentIdentifier = attachmentIdentifier; - this.Filename = filename; - } - - /// - /// Attachment identifier - /// - /// Attachment identifier - [DataMember(Name="attachmentIdentifier", EmitDefaultValue=false)] - public int? AttachmentIdentifier { get; set; } - - /// - /// File name - /// - /// File name - [DataMember(Name="filename", EmitDefaultValue=false)] - public string Filename { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SavedAttachDocumentoDTO {\n"); - sb.Append(" AttachmentIdentifier: ").Append(AttachmentIdentifier).Append("\n"); - sb.Append(" Filename: ").Append(Filename).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SavedAttachDocumentoDTO); - } - - /// - /// Returns true if SavedAttachDocumentoDTO instances are equal - /// - /// Instance of SavedAttachDocumentoDTO to be compared - /// Boolean - public bool Equals(SavedAttachDocumentoDTO input) - { - if (input == null) - return false; - - return - ( - this.AttachmentIdentifier == input.AttachmentIdentifier || - (this.AttachmentIdentifier != null && - this.AttachmentIdentifier.Equals(input.AttachmentIdentifier)) - ) && - ( - this.Filename == input.Filename || - (this.Filename != null && - this.Filename.Equals(input.Filename)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AttachmentIdentifier != null) - hashCode = hashCode * 59 + this.AttachmentIdentifier.GetHashCode(); - if (this.Filename != null) - hashCode = hashCode * 59 + this.Filename.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SearchDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SearchDTO.cs deleted file mode 100644 index a3fb14a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SearchDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of search - /// - [DataContract] - public partial class SearchDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// The description of the search. - /// Possible values: 0: And 1: Or . - /// Fields. - public SearchDTO(string description = default(string), int? daAAndOr = default(int?), List fields = default(List)) - { - this.Description = description; - this.DaAAndOr = daAAndOr; - this.Fields = fields; - } - - /// - /// The description of the search - /// - /// The description of the search - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 0: And 1: Or - /// - /// Possible values: 0: And 1: Or - [DataMember(Name="daAAndOr", EmitDefaultValue=false)] - public int? DaAAndOr { get; set; } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SearchDTO {\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DaAAndOr: ").Append(DaAAndOr).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SearchDTO); - } - - /// - /// Returns true if SearchDTO instances are equal - /// - /// Instance of SearchDTO to be compared - /// Boolean - public bool Equals(SearchDTO input) - { - if (input == null) - return false; - - return - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.DaAAndOr == input.DaAAndOr || - (this.DaAAndOr != null && - this.DaAAndOr.Equals(input.DaAAndOr)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DaAAndOr != null) - hashCode = hashCode * 59 + this.DaAAndOr.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SecureStorageSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SecureStorageSettingsDTO.cs deleted file mode 100644 index f6cf851..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SecureStorageSettingsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for set Secure Storage Settings - /// - [DataContract] - public partial class SecureStorageSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Secure storage old password. Required only for password update. - /// Secure storage new password. - public SecureStorageSettingsDTO(string oldPassword = default(string), string password = default(string)) - { - this.OldPassword = oldPassword; - this.Password = password; - } - - /// - /// Secure storage old password. Required only for password update - /// - /// Secure storage old password. Required only for password update - [DataMember(Name="oldPassword", EmitDefaultValue=false)] - public string OldPassword { get; set; } - - /// - /// Secure storage new password - /// - /// Secure storage new password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SecureStorageSettingsDTO {\n"); - sb.Append(" OldPassword: ").Append(OldPassword).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SecureStorageSettingsDTO); - } - - /// - /// Returns true if SecureStorageSettingsDTO instances are equal - /// - /// Instance of SecureStorageSettingsDTO to be compared - /// Boolean - public bool Equals(SecureStorageSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.OldPassword == input.OldPassword || - (this.OldPassword != null && - this.OldPassword.Equals(input.OldPassword)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.OldPassword != null) - hashCode = hashCode * 59 + this.OldPassword.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SecurityBusinessUnitCopyOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SecurityBusinessUnitCopyOptionsDTO.cs deleted file mode 100644 index a5bd0bc..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SecurityBusinessUnitCopyOptionsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of options for copy security by business unit - /// - [DataContract] - public partial class SecurityBusinessUnitCopyOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Business unit identifier to copy from. - /// Business unit identifiers to paste into. - public SecurityBusinessUnitCopyOptionsDTO(string sourceBusinessUnitCode = default(string), List destinationBusinessUnitCodes = default(List)) - { - this.SourceBusinessUnitCode = sourceBusinessUnitCode; - this.DestinationBusinessUnitCodes = destinationBusinessUnitCodes; - } - - /// - /// Business unit identifier to copy from - /// - /// Business unit identifier to copy from - [DataMember(Name="sourceBusinessUnitCode", EmitDefaultValue=false)] - public string SourceBusinessUnitCode { get; set; } - - /// - /// Business unit identifiers to paste into - /// - /// Business unit identifiers to paste into - [DataMember(Name="destinationBusinessUnitCodes", EmitDefaultValue=false)] - public List DestinationBusinessUnitCodes { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SecurityBusinessUnitCopyOptionsDTO {\n"); - sb.Append(" SourceBusinessUnitCode: ").Append(SourceBusinessUnitCode).Append("\n"); - sb.Append(" DestinationBusinessUnitCodes: ").Append(DestinationBusinessUnitCodes).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SecurityBusinessUnitCopyOptionsDTO); - } - - /// - /// Returns true if SecurityBusinessUnitCopyOptionsDTO instances are equal - /// - /// Instance of SecurityBusinessUnitCopyOptionsDTO to be compared - /// Boolean - public bool Equals(SecurityBusinessUnitCopyOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.SourceBusinessUnitCode == input.SourceBusinessUnitCode || - (this.SourceBusinessUnitCode != null && - this.SourceBusinessUnitCode.Equals(input.SourceBusinessUnitCode)) - ) && - ( - this.DestinationBusinessUnitCodes == input.DestinationBusinessUnitCodes || - this.DestinationBusinessUnitCodes != null && - this.DestinationBusinessUnitCodes.SequenceEqual(input.DestinationBusinessUnitCodes) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SourceBusinessUnitCode != null) - hashCode = hashCode * 59 + this.SourceBusinessUnitCode.GetHashCode(); - if (this.DestinationBusinessUnitCodes != null) - hashCode = hashCode * 59 + this.DestinationBusinessUnitCodes.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SecurityDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SecurityDTO.cs deleted file mode 100644 index 76a8684..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SecurityDTO.cs +++ /dev/null @@ -1,516 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for security options - /// - [DataContract] - public partial class SecurityDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// User identifier. - /// Business Unit Identifier. - /// Document Type identifier. - /// Edit profile option. - /// View profile option. - /// View document option. - /// Document preview option. - /// Archive option. - /// Edit document option. - /// Delete profile option. - /// Sign option. - /// Hide revisions option. - /// Allow create sharing. - /// Allow change expiration. - /// Allow change expiration type: after certain days or at first read or after certain number of downloads. - /// Allow change max number of read for a document. - /// Allow change mail subject. - /// Allow change mail body. - /// Allow change workflow that starts at link read. - /// Allow change workflow that starts at link expiration. - /// Allow change workflow that starts at link expiration if it isn't never read. - /// Allow to set a login information to access sharing. - /// Allow to set file version to show. - public SecurityDTO(int? id = default(int?), int? userId = default(int?), string businessUnitCode = default(string), int? documentTypeId = default(int?), bool? editProfile = default(bool?), bool? viewProfile = default(bool?), bool? viewDocument = default(bool?), bool? previewDocument = default(bool?), bool? archiveDocument = default(bool?), bool? editDocument = default(bool?), bool? deleteProfile = default(bool?), bool? sign = default(bool?), bool? hideRevisions = default(bool?), bool? share = default(bool?), bool? shareModifyExpiration = default(bool?), bool? shareModifyExpirationType = default(bool?), bool? shareModifyExpirationMaxTime = default(bool?), bool? shareModifyMailSubject = default(bool?), bool? shareModifyMailBody = default(bool?), bool? shareModifyWfStart = default(bool?), bool? shareModifyWfExpiration = default(bool?), bool? shareModifyWfExpirationRead = default(bool?), bool? shareModifyLogin = default(bool?), bool? shareModifySpecificVersion = default(bool?)) - { - this.Id = id; - this.UserId = userId; - this.BusinessUnitCode = businessUnitCode; - this.DocumentTypeId = documentTypeId; - this.EditProfile = editProfile; - this.ViewProfile = viewProfile; - this.ViewDocument = viewDocument; - this.PreviewDocument = previewDocument; - this.ArchiveDocument = archiveDocument; - this.EditDocument = editDocument; - this.DeleteProfile = deleteProfile; - this.Sign = sign; - this.HideRevisions = hideRevisions; - this.Share = share; - this.ShareModifyExpiration = shareModifyExpiration; - this.ShareModifyExpirationType = shareModifyExpirationType; - this.ShareModifyExpirationMaxTime = shareModifyExpirationMaxTime; - this.ShareModifyMailSubject = shareModifyMailSubject; - this.ShareModifyMailBody = shareModifyMailBody; - this.ShareModifyWfStart = shareModifyWfStart; - this.ShareModifyWfExpiration = shareModifyWfExpiration; - this.ShareModifyWfExpirationRead = shareModifyWfExpirationRead; - this.ShareModifyLogin = shareModifyLogin; - this.ShareModifySpecificVersion = shareModifySpecificVersion; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// User identifier - /// - /// User identifier - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Business Unit Identifier - /// - /// Business Unit Identifier - [DataMember(Name="businessUnitCode", EmitDefaultValue=false)] - public string BusinessUnitCode { get; set; } - - /// - /// Document Type identifier - /// - /// Document Type identifier - [DataMember(Name="documentTypeId", EmitDefaultValue=false)] - public int? DocumentTypeId { get; set; } - - /// - /// Edit profile option - /// - /// Edit profile option - [DataMember(Name="editProfile", EmitDefaultValue=false)] - public bool? EditProfile { get; set; } - - /// - /// View profile option - /// - /// View profile option - [DataMember(Name="viewProfile", EmitDefaultValue=false)] - public bool? ViewProfile { get; set; } - - /// - /// View document option - /// - /// View document option - [DataMember(Name="viewDocument", EmitDefaultValue=false)] - public bool? ViewDocument { get; set; } - - /// - /// Document preview option - /// - /// Document preview option - [DataMember(Name="previewDocument", EmitDefaultValue=false)] - public bool? PreviewDocument { get; set; } - - /// - /// Archive option - /// - /// Archive option - [DataMember(Name="archiveDocument", EmitDefaultValue=false)] - public bool? ArchiveDocument { get; set; } - - /// - /// Edit document option - /// - /// Edit document option - [DataMember(Name="editDocument", EmitDefaultValue=false)] - public bool? EditDocument { get; set; } - - /// - /// Delete profile option - /// - /// Delete profile option - [DataMember(Name="deleteProfile", EmitDefaultValue=false)] - public bool? DeleteProfile { get; set; } - - /// - /// Sign option - /// - /// Sign option - [DataMember(Name="sign", EmitDefaultValue=false)] - public bool? Sign { get; set; } - - /// - /// Hide revisions option - /// - /// Hide revisions option - [DataMember(Name="hideRevisions", EmitDefaultValue=false)] - public bool? HideRevisions { get; set; } - - /// - /// Allow create sharing - /// - /// Allow create sharing - [DataMember(Name="share", EmitDefaultValue=false)] - public bool? Share { get; set; } - - /// - /// Allow change expiration - /// - /// Allow change expiration - [DataMember(Name="shareModifyExpiration", EmitDefaultValue=false)] - public bool? ShareModifyExpiration { get; set; } - - /// - /// Allow change expiration type: after certain days or at first read or after certain number of downloads - /// - /// Allow change expiration type: after certain days or at first read or after certain number of downloads - [DataMember(Name="shareModifyExpirationType", EmitDefaultValue=false)] - public bool? ShareModifyExpirationType { get; set; } - - /// - /// Allow change max number of read for a document - /// - /// Allow change max number of read for a document - [DataMember(Name="shareModifyExpirationMaxTime", EmitDefaultValue=false)] - public bool? ShareModifyExpirationMaxTime { get; set; } - - /// - /// Allow change mail subject - /// - /// Allow change mail subject - [DataMember(Name="shareModifyMailSubject", EmitDefaultValue=false)] - public bool? ShareModifyMailSubject { get; set; } - - /// - /// Allow change mail body - /// - /// Allow change mail body - [DataMember(Name="shareModifyMailBody", EmitDefaultValue=false)] - public bool? ShareModifyMailBody { get; set; } - - /// - /// Allow change workflow that starts at link read - /// - /// Allow change workflow that starts at link read - [DataMember(Name="shareModifyWfStart", EmitDefaultValue=false)] - public bool? ShareModifyWfStart { get; set; } - - /// - /// Allow change workflow that starts at link expiration - /// - /// Allow change workflow that starts at link expiration - [DataMember(Name="shareModifyWfExpiration", EmitDefaultValue=false)] - public bool? ShareModifyWfExpiration { get; set; } - - /// - /// Allow change workflow that starts at link expiration if it isn't never read - /// - /// Allow change workflow that starts at link expiration if it isn't never read - [DataMember(Name="shareModifyWfExpirationRead", EmitDefaultValue=false)] - public bool? ShareModifyWfExpirationRead { get; set; } - - /// - /// Allow to set a login information to access sharing - /// - /// Allow to set a login information to access sharing - [DataMember(Name="shareModifyLogin", EmitDefaultValue=false)] - public bool? ShareModifyLogin { get; set; } - - /// - /// Allow to set file version to show - /// - /// Allow to set file version to show - [DataMember(Name="shareModifySpecificVersion", EmitDefaultValue=false)] - public bool? ShareModifySpecificVersion { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SecurityDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" BusinessUnitCode: ").Append(BusinessUnitCode).Append("\n"); - sb.Append(" DocumentTypeId: ").Append(DocumentTypeId).Append("\n"); - sb.Append(" EditProfile: ").Append(EditProfile).Append("\n"); - sb.Append(" ViewProfile: ").Append(ViewProfile).Append("\n"); - sb.Append(" ViewDocument: ").Append(ViewDocument).Append("\n"); - sb.Append(" PreviewDocument: ").Append(PreviewDocument).Append("\n"); - sb.Append(" ArchiveDocument: ").Append(ArchiveDocument).Append("\n"); - sb.Append(" EditDocument: ").Append(EditDocument).Append("\n"); - sb.Append(" DeleteProfile: ").Append(DeleteProfile).Append("\n"); - sb.Append(" Sign: ").Append(Sign).Append("\n"); - sb.Append(" HideRevisions: ").Append(HideRevisions).Append("\n"); - sb.Append(" Share: ").Append(Share).Append("\n"); - sb.Append(" ShareModifyExpiration: ").Append(ShareModifyExpiration).Append("\n"); - sb.Append(" ShareModifyExpirationType: ").Append(ShareModifyExpirationType).Append("\n"); - sb.Append(" ShareModifyExpirationMaxTime: ").Append(ShareModifyExpirationMaxTime).Append("\n"); - sb.Append(" ShareModifyMailSubject: ").Append(ShareModifyMailSubject).Append("\n"); - sb.Append(" ShareModifyMailBody: ").Append(ShareModifyMailBody).Append("\n"); - sb.Append(" ShareModifyWfStart: ").Append(ShareModifyWfStart).Append("\n"); - sb.Append(" ShareModifyWfExpiration: ").Append(ShareModifyWfExpiration).Append("\n"); - sb.Append(" ShareModifyWfExpirationRead: ").Append(ShareModifyWfExpirationRead).Append("\n"); - sb.Append(" ShareModifyLogin: ").Append(ShareModifyLogin).Append("\n"); - sb.Append(" ShareModifySpecificVersion: ").Append(ShareModifySpecificVersion).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SecurityDTO); - } - - /// - /// Returns true if SecurityDTO instances are equal - /// - /// Instance of SecurityDTO to be compared - /// Boolean - public bool Equals(SecurityDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.BusinessUnitCode == input.BusinessUnitCode || - (this.BusinessUnitCode != null && - this.BusinessUnitCode.Equals(input.BusinessUnitCode)) - ) && - ( - this.DocumentTypeId == input.DocumentTypeId || - (this.DocumentTypeId != null && - this.DocumentTypeId.Equals(input.DocumentTypeId)) - ) && - ( - this.EditProfile == input.EditProfile || - (this.EditProfile != null && - this.EditProfile.Equals(input.EditProfile)) - ) && - ( - this.ViewProfile == input.ViewProfile || - (this.ViewProfile != null && - this.ViewProfile.Equals(input.ViewProfile)) - ) && - ( - this.ViewDocument == input.ViewDocument || - (this.ViewDocument != null && - this.ViewDocument.Equals(input.ViewDocument)) - ) && - ( - this.PreviewDocument == input.PreviewDocument || - (this.PreviewDocument != null && - this.PreviewDocument.Equals(input.PreviewDocument)) - ) && - ( - this.ArchiveDocument == input.ArchiveDocument || - (this.ArchiveDocument != null && - this.ArchiveDocument.Equals(input.ArchiveDocument)) - ) && - ( - this.EditDocument == input.EditDocument || - (this.EditDocument != null && - this.EditDocument.Equals(input.EditDocument)) - ) && - ( - this.DeleteProfile == input.DeleteProfile || - (this.DeleteProfile != null && - this.DeleteProfile.Equals(input.DeleteProfile)) - ) && - ( - this.Sign == input.Sign || - (this.Sign != null && - this.Sign.Equals(input.Sign)) - ) && - ( - this.HideRevisions == input.HideRevisions || - (this.HideRevisions != null && - this.HideRevisions.Equals(input.HideRevisions)) - ) && - ( - this.Share == input.Share || - (this.Share != null && - this.Share.Equals(input.Share)) - ) && - ( - this.ShareModifyExpiration == input.ShareModifyExpiration || - (this.ShareModifyExpiration != null && - this.ShareModifyExpiration.Equals(input.ShareModifyExpiration)) - ) && - ( - this.ShareModifyExpirationType == input.ShareModifyExpirationType || - (this.ShareModifyExpirationType != null && - this.ShareModifyExpirationType.Equals(input.ShareModifyExpirationType)) - ) && - ( - this.ShareModifyExpirationMaxTime == input.ShareModifyExpirationMaxTime || - (this.ShareModifyExpirationMaxTime != null && - this.ShareModifyExpirationMaxTime.Equals(input.ShareModifyExpirationMaxTime)) - ) && - ( - this.ShareModifyMailSubject == input.ShareModifyMailSubject || - (this.ShareModifyMailSubject != null && - this.ShareModifyMailSubject.Equals(input.ShareModifyMailSubject)) - ) && - ( - this.ShareModifyMailBody == input.ShareModifyMailBody || - (this.ShareModifyMailBody != null && - this.ShareModifyMailBody.Equals(input.ShareModifyMailBody)) - ) && - ( - this.ShareModifyWfStart == input.ShareModifyWfStart || - (this.ShareModifyWfStart != null && - this.ShareModifyWfStart.Equals(input.ShareModifyWfStart)) - ) && - ( - this.ShareModifyWfExpiration == input.ShareModifyWfExpiration || - (this.ShareModifyWfExpiration != null && - this.ShareModifyWfExpiration.Equals(input.ShareModifyWfExpiration)) - ) && - ( - this.ShareModifyWfExpirationRead == input.ShareModifyWfExpirationRead || - (this.ShareModifyWfExpirationRead != null && - this.ShareModifyWfExpirationRead.Equals(input.ShareModifyWfExpirationRead)) - ) && - ( - this.ShareModifyLogin == input.ShareModifyLogin || - (this.ShareModifyLogin != null && - this.ShareModifyLogin.Equals(input.ShareModifyLogin)) - ) && - ( - this.ShareModifySpecificVersion == input.ShareModifySpecificVersion || - (this.ShareModifySpecificVersion != null && - this.ShareModifySpecificVersion.Equals(input.ShareModifySpecificVersion)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.BusinessUnitCode != null) - hashCode = hashCode * 59 + this.BusinessUnitCode.GetHashCode(); - if (this.DocumentTypeId != null) - hashCode = hashCode * 59 + this.DocumentTypeId.GetHashCode(); - if (this.EditProfile != null) - hashCode = hashCode * 59 + this.EditProfile.GetHashCode(); - if (this.ViewProfile != null) - hashCode = hashCode * 59 + this.ViewProfile.GetHashCode(); - if (this.ViewDocument != null) - hashCode = hashCode * 59 + this.ViewDocument.GetHashCode(); - if (this.PreviewDocument != null) - hashCode = hashCode * 59 + this.PreviewDocument.GetHashCode(); - if (this.ArchiveDocument != null) - hashCode = hashCode * 59 + this.ArchiveDocument.GetHashCode(); - if (this.EditDocument != null) - hashCode = hashCode * 59 + this.EditDocument.GetHashCode(); - if (this.DeleteProfile != null) - hashCode = hashCode * 59 + this.DeleteProfile.GetHashCode(); - if (this.Sign != null) - hashCode = hashCode * 59 + this.Sign.GetHashCode(); - if (this.HideRevisions != null) - hashCode = hashCode * 59 + this.HideRevisions.GetHashCode(); - if (this.Share != null) - hashCode = hashCode * 59 + this.Share.GetHashCode(); - if (this.ShareModifyExpiration != null) - hashCode = hashCode * 59 + this.ShareModifyExpiration.GetHashCode(); - if (this.ShareModifyExpirationType != null) - hashCode = hashCode * 59 + this.ShareModifyExpirationType.GetHashCode(); - if (this.ShareModifyExpirationMaxTime != null) - hashCode = hashCode * 59 + this.ShareModifyExpirationMaxTime.GetHashCode(); - if (this.ShareModifyMailSubject != null) - hashCode = hashCode * 59 + this.ShareModifyMailSubject.GetHashCode(); - if (this.ShareModifyMailBody != null) - hashCode = hashCode * 59 + this.ShareModifyMailBody.GetHashCode(); - if (this.ShareModifyWfStart != null) - hashCode = hashCode * 59 + this.ShareModifyWfStart.GetHashCode(); - if (this.ShareModifyWfExpiration != null) - hashCode = hashCode * 59 + this.ShareModifyWfExpiration.GetHashCode(); - if (this.ShareModifyWfExpirationRead != null) - hashCode = hashCode * 59 + this.ShareModifyWfExpirationRead.GetHashCode(); - if (this.ShareModifyLogin != null) - hashCode = hashCode * 59 + this.ShareModifyLogin.GetHashCode(); - if (this.ShareModifySpecificVersion != null) - hashCode = hashCode * 59 + this.ShareModifySpecificVersion.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SecurityDocumentTypeCopyOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SecurityDocumentTypeCopyOptionsDTO.cs deleted file mode 100644 index 51838e8..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SecurityDocumentTypeCopyOptionsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of options for copy security by document type - /// - [DataContract] - public partial class SecurityDocumentTypeCopyOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document type identifier to copy from. - /// Document type identifier to paste into. - public SecurityDocumentTypeCopyOptionsDTO(int? sourceDocumentTypeId = default(int?), int? destinationDocumentTypeId = default(int?)) - { - this.SourceDocumentTypeId = sourceDocumentTypeId; - this.DestinationDocumentTypeId = destinationDocumentTypeId; - } - - /// - /// Document type identifier to copy from - /// - /// Document type identifier to copy from - [DataMember(Name="sourceDocumentTypeId", EmitDefaultValue=false)] - public int? SourceDocumentTypeId { get; set; } - - /// - /// Document type identifier to paste into - /// - /// Document type identifier to paste into - [DataMember(Name="destinationDocumentTypeId", EmitDefaultValue=false)] - public int? DestinationDocumentTypeId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SecurityDocumentTypeCopyOptionsDTO {\n"); - sb.Append(" SourceDocumentTypeId: ").Append(SourceDocumentTypeId).Append("\n"); - sb.Append(" DestinationDocumentTypeId: ").Append(DestinationDocumentTypeId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SecurityDocumentTypeCopyOptionsDTO); - } - - /// - /// Returns true if SecurityDocumentTypeCopyOptionsDTO instances are equal - /// - /// Instance of SecurityDocumentTypeCopyOptionsDTO to be compared - /// Boolean - public bool Equals(SecurityDocumentTypeCopyOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.SourceDocumentTypeId == input.SourceDocumentTypeId || - (this.SourceDocumentTypeId != null && - this.SourceDocumentTypeId.Equals(input.SourceDocumentTypeId)) - ) && - ( - this.DestinationDocumentTypeId == input.DestinationDocumentTypeId || - (this.DestinationDocumentTypeId != null && - this.DestinationDocumentTypeId.Equals(input.DestinationDocumentTypeId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SourceDocumentTypeId != null) - hashCode = hashCode * 59 + this.SourceDocumentTypeId.GetHashCode(); - if (this.DestinationDocumentTypeId != null) - hashCode = hashCode * 59 + this.DestinationDocumentTypeId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SecurityExportCsvResponseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SecurityExportCsvResponseDTO.cs deleted file mode 100644 index 4b1c47b..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SecurityExportCsvResponseDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for csv export response of security - /// - [DataContract] - public partial class SecurityExportCsvResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of export in progress. - public SecurityExportCsvResponseDTO(string exportRequestId = default(string)) - { - this.ExportRequestId = exportRequestId; - } - - /// - /// Identifier of export in progress - /// - /// Identifier of export in progress - [DataMember(Name="exportRequestId", EmitDefaultValue=false)] - public string ExportRequestId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SecurityExportCsvResponseDTO {\n"); - sb.Append(" ExportRequestId: ").Append(ExportRequestId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SecurityExportCsvResponseDTO); - } - - /// - /// Returns true if SecurityExportCsvResponseDTO instances are equal - /// - /// Instance of SecurityExportCsvResponseDTO to be compared - /// Boolean - public bool Equals(SecurityExportCsvResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.ExportRequestId == input.ExportRequestId || - (this.ExportRequestId != null && - this.ExportRequestId.Equals(input.ExportRequestId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ExportRequestId != null) - hashCode = hashCode * 59 + this.ExportRequestId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SecurityUserCopyOptionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SecurityUserCopyOptionsDTO.cs deleted file mode 100644 index fc86cf9..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SecurityUserCopyOptionsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of options for copy security by user - /// - [DataContract] - public partial class SecurityUserCopyOptionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// User identifier to copy from. - /// User identifiers to paste into. - public SecurityUserCopyOptionsDTO(int? sourceUserId = default(int?), List destinationUserIds = default(List)) - { - this.SourceUserId = sourceUserId; - this.DestinationUserIds = destinationUserIds; - } - - /// - /// User identifier to copy from - /// - /// User identifier to copy from - [DataMember(Name="sourceUserId", EmitDefaultValue=false)] - public int? SourceUserId { get; set; } - - /// - /// User identifiers to paste into - /// - /// User identifiers to paste into - [DataMember(Name="destinationUserIds", EmitDefaultValue=false)] - public List DestinationUserIds { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SecurityUserCopyOptionsDTO {\n"); - sb.Append(" SourceUserId: ").Append(SourceUserId).Append("\n"); - sb.Append(" DestinationUserIds: ").Append(DestinationUserIds).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SecurityUserCopyOptionsDTO); - } - - /// - /// Returns true if SecurityUserCopyOptionsDTO instances are equal - /// - /// Instance of SecurityUserCopyOptionsDTO to be compared - /// Boolean - public bool Equals(SecurityUserCopyOptionsDTO input) - { - if (input == null) - return false; - - return - ( - this.SourceUserId == input.SourceUserId || - (this.SourceUserId != null && - this.SourceUserId.Equals(input.SourceUserId)) - ) && - ( - this.DestinationUserIds == input.DestinationUserIds || - this.DestinationUserIds != null && - this.DestinationUserIds.SequenceEqual(input.DestinationUserIds) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SourceUserId != null) - hashCode = hashCode * 59 + this.SourceUserId.GetHashCode(); - if (this.DestinationUserIds != null) - hashCode = hashCode * 59 + this.DestinationUserIds.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SelectDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SelectDTO.cs deleted file mode 100644 index 5dc6cf1..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SelectDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of Select data - /// - [DataContract] - public partial class SelectDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Fields. - /// Maximum Number of items. - public SelectDTO(List fields = default(List), int? maxItems = default(int?)) - { - this.Fields = fields; - this.MaxItems = maxItems; - } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Maximum Number of items - /// - /// Maximum Number of items - [DataMember(Name="maxItems", EmitDefaultValue=false)] - public int? MaxItems { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SelectDTO {\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append(" MaxItems: ").Append(MaxItems).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SelectDTO); - } - - /// - /// Returns true if SelectDTO instances are equal - /// - /// Instance of SelectDTO to be compared - /// Boolean - public bool Equals(SelectDTO input) - { - if (input == null) - return false; - - return - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ) && - ( - this.MaxItems == input.MaxItems || - (this.MaxItems != null && - this.MaxItems.Equals(input.MaxItems)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - if (this.MaxItems != null) - hashCode = hashCode * 59 + this.MaxItems.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SendersFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SendersFieldDTO.cs deleted file mode 100644 index 82ada3d..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SendersFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Sender of document - /// - [DataContract] - public partial class SendersFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected SendersFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Sender list value. - public SendersFieldDTO(List value = default(List), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "SendersFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Sender list value - /// - /// Sender list value - [DataMember(Name="value", EmitDefaultValue=false)] - public List Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SendersFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SendersFieldDTO); - } - - /// - /// Returns true if SendersFieldDTO instances are equal - /// - /// Instance of SendersFieldDTO to be compared - /// Boolean - public bool Equals(SendersFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - this.Value != null && - this.Value.SequenceEqual(input.Value) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SetPathDatabaseBaseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SetPathDatabaseBaseDTO.cs deleted file mode 100644 index 6be14c1..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SetPathDatabaseBaseDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Set Path database parameters - /// - [DataContract] - public partial class SetPathDatabaseBaseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: SqlServer 1: Mysql 2: Oracle -1: Nessuno . - /// identifier. - /// Database host. - /// Database port. - /// Database name. - /// Database username. - /// Schema. - public SetPathDatabaseBaseDTO(int? dbType = default(int?), string id = default(string), string server = default(string), int? port = default(int?), string database = default(string), string username = default(string), string schema = default(string)) - { - this.DbType = dbType; - this.Id = id; - this.Server = server; - this.Port = port; - this.Database = database; - this.Username = username; - this.Schema = schema; - } - - /// - /// Possible values: 0: SqlServer 1: Mysql 2: Oracle -1: Nessuno - /// - /// Possible values: 0: SqlServer 1: Mysql 2: Oracle -1: Nessuno - [DataMember(Name="dbType", EmitDefaultValue=false)] - public int? DbType { get; set; } - - /// - /// identifier - /// - /// identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Database host - /// - /// Database host - [DataMember(Name="server", EmitDefaultValue=false)] - public string Server { get; set; } - - /// - /// Database port - /// - /// Database port - [DataMember(Name="port", EmitDefaultValue=false)] - public int? Port { get; set; } - - /// - /// Database name - /// - /// Database name - [DataMember(Name="database", EmitDefaultValue=false)] - public string Database { get; set; } - - /// - /// Database username - /// - /// Database username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Schema - /// - /// Schema - [DataMember(Name="schema", EmitDefaultValue=false)] - public string Schema { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SetPathDatabaseBaseDTO {\n"); - sb.Append(" DbType: ").Append(DbType).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Server: ").Append(Server).Append("\n"); - sb.Append(" Port: ").Append(Port).Append("\n"); - sb.Append(" Database: ").Append(Database).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Schema: ").Append(Schema).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SetPathDatabaseBaseDTO); - } - - /// - /// Returns true if SetPathDatabaseBaseDTO instances are equal - /// - /// Instance of SetPathDatabaseBaseDTO to be compared - /// Boolean - public bool Equals(SetPathDatabaseBaseDTO input) - { - if (input == null) - return false; - - return - ( - this.DbType == input.DbType || - (this.DbType != null && - this.DbType.Equals(input.DbType)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Server == input.Server || - (this.Server != null && - this.Server.Equals(input.Server)) - ) && - ( - this.Port == input.Port || - (this.Port != null && - this.Port.Equals(input.Port)) - ) && - ( - this.Database == input.Database || - (this.Database != null && - this.Database.Equals(input.Database)) - ) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.Schema == input.Schema || - (this.Schema != null && - this.Schema.Equals(input.Schema)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DbType != null) - hashCode = hashCode * 59 + this.DbType.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Server != null) - hashCode = hashCode * 59 + this.Server.GetHashCode(); - if (this.Port != null) - hashCode = hashCode * 59 + this.Port.GetHashCode(); - if (this.Database != null) - hashCode = hashCode * 59 + this.Database.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Schema != null) - hashCode = hashCode * 59 + this.Schema.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SetPathDatabaseForUpdateDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SetPathDatabaseForUpdateDTO.cs deleted file mode 100644 index 866041a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SetPathDatabaseForUpdateDTO.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Set Path database update parameters - /// - [DataContract] - public partial class SetPathDatabaseForUpdateDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: SqlServer 1: Mysql 2: Oracle -1: Nessuno . - /// Database password. - /// identifier. - /// Database host. - /// Database port. - /// Database name. - /// Database username. - /// Schema. - public SetPathDatabaseForUpdateDTO(int? dbType = default(int?), string password = default(string), string id = default(string), string server = default(string), int? port = default(int?), string database = default(string), string username = default(string), string schema = default(string)) - { - this.DbType = dbType; - this.Password = password; - this.Id = id; - this.Server = server; - this.Port = port; - this.Database = database; - this.Username = username; - this.Schema = schema; - } - - /// - /// Possible values: 0: SqlServer 1: Mysql 2: Oracle -1: Nessuno - /// - /// Possible values: 0: SqlServer 1: Mysql 2: Oracle -1: Nessuno - [DataMember(Name="dbType", EmitDefaultValue=false)] - public int? DbType { get; set; } - - /// - /// Database password - /// - /// Database password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// identifier - /// - /// identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Database host - /// - /// Database host - [DataMember(Name="server", EmitDefaultValue=false)] - public string Server { get; set; } - - /// - /// Database port - /// - /// Database port - [DataMember(Name="port", EmitDefaultValue=false)] - public int? Port { get; set; } - - /// - /// Database name - /// - /// Database name - [DataMember(Name="database", EmitDefaultValue=false)] - public string Database { get; set; } - - /// - /// Database username - /// - /// Database username - [DataMember(Name="username", EmitDefaultValue=false)] - public string Username { get; set; } - - /// - /// Schema - /// - /// Schema - [DataMember(Name="schema", EmitDefaultValue=false)] - public string Schema { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SetPathDatabaseForUpdateDTO {\n"); - sb.Append(" DbType: ").Append(DbType).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Server: ").Append(Server).Append("\n"); - sb.Append(" Port: ").Append(Port).Append("\n"); - sb.Append(" Database: ").Append(Database).Append("\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Schema: ").Append(Schema).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SetPathDatabaseForUpdateDTO); - } - - /// - /// Returns true if SetPathDatabaseForUpdateDTO instances are equal - /// - /// Instance of SetPathDatabaseForUpdateDTO to be compared - /// Boolean - public bool Equals(SetPathDatabaseForUpdateDTO input) - { - if (input == null) - return false; - - return - ( - this.DbType == input.DbType || - (this.DbType != null && - this.DbType.Equals(input.DbType)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Server == input.Server || - (this.Server != null && - this.Server.Equals(input.Server)) - ) && - ( - this.Port == input.Port || - (this.Port != null && - this.Port.Equals(input.Port)) - ) && - ( - this.Database == input.Database || - (this.Database != null && - this.Database.Equals(input.Database)) - ) && - ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) - ) && - ( - this.Schema == input.Schema || - (this.Schema != null && - this.Schema.Equals(input.Schema)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DbType != null) - hashCode = hashCode * 59 + this.DbType.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Server != null) - hashCode = hashCode * 59 + this.Server.GetHashCode(); - if (this.Port != null) - hashCode = hashCode * 59 + this.Port.GetHashCode(); - if (this.Database != null) - hashCode = hashCode * 59 + this.Database.GetHashCode(); - if (this.Username != null) - hashCode = hashCode * 59 + this.Username.GetHashCode(); - if (this.Schema != null) - hashCode = hashCode * 59 + this.Schema.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SetPathFilesystemBaseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SetPathFilesystemBaseDTO.cs deleted file mode 100644 index 735b84c..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SetPathFilesystemBaseDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Filesystem parameters - /// - [DataContract] - public partial class SetPathFilesystemBaseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Directory path. - /// Directory path type. - public SetPathFilesystemBaseDTO(string path = default(string), List types = default(List)) - { - this.Path = path; - this.Types = types; - } - - /// - /// Directory path - /// - /// Directory path - [DataMember(Name="path", EmitDefaultValue=false)] - public string Path { get; set; } - - /// - /// Directory path type - /// - /// Directory path type - [DataMember(Name="types", EmitDefaultValue=false)] - public List Types { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SetPathFilesystemBaseDTO {\n"); - sb.Append(" Path: ").Append(Path).Append("\n"); - sb.Append(" Types: ").Append(Types).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SetPathFilesystemBaseDTO); - } - - /// - /// Returns true if SetPathFilesystemBaseDTO instances are equal - /// - /// Instance of SetPathFilesystemBaseDTO to be compared - /// Boolean - public bool Equals(SetPathFilesystemBaseDTO input) - { - if (input == null) - return false; - - return - ( - this.Path == input.Path || - (this.Path != null && - this.Path.Equals(input.Path)) - ) && - ( - this.Types == input.Types || - this.Types != null && - this.Types.SequenceEqual(input.Types) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Path != null) - hashCode = hashCode * 59 + this.Path.GetHashCode(); - if (this.Types != null) - hashCode = hashCode * 59 + this.Types.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SetPathFilesystemForUpdateDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SetPathFilesystemForUpdateDTO.cs deleted file mode 100644 index ade63c6..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SetPathFilesystemForUpdateDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Filesystem parameters for update - /// - [DataContract] - public partial class SetPathFilesystemForUpdateDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Directory path. - /// New directory path. - public SetPathFilesystemForUpdateDTO(string path = default(string), string newPath = default(string)) - { - this.Path = path; - this.NewPath = newPath; - } - - /// - /// Directory path - /// - /// Directory path - [DataMember(Name="path", EmitDefaultValue=false)] - public string Path { get; set; } - - /// - /// New directory path - /// - /// New directory path - [DataMember(Name="newPath", EmitDefaultValue=false)] - public string NewPath { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SetPathFilesystemForUpdateDTO {\n"); - sb.Append(" Path: ").Append(Path).Append("\n"); - sb.Append(" NewPath: ").Append(NewPath).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SetPathFilesystemForUpdateDTO); - } - - /// - /// Returns true if SetPathFilesystemForUpdateDTO instances are equal - /// - /// Instance of SetPathFilesystemForUpdateDTO to be compared - /// Boolean - public bool Equals(SetPathFilesystemForUpdateDTO input) - { - if (input == null) - return false; - - return - ( - this.Path == input.Path || - (this.Path != null && - this.Path.Equals(input.Path)) - ) && - ( - this.NewPath == input.NewPath || - (this.NewPath != null && - this.NewPath.Equals(input.NewPath)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Path != null) - hashCode = hashCode * 59 + this.Path.GetHashCode(); - if (this.NewPath != null) - hashCode = hashCode * 59 + this.NewPath.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SmtpSettingsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SmtpSettingsDTO.cs deleted file mode 100644 index bdca74f..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SmtpSettingsDTO.cs +++ /dev/null @@ -1,562 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// The SMTP settings information - /// - [DataContract] - public partial class SmtpSettingsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected SmtpSettingsDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Basic 1: Microsoft 2: Google . - /// The tenant ID. - /// The client ID. - /// The client Secret. - /// Gets or sets whether the client secret is set. - /// Gets or sets whether the authorization response is set. - /// The authorization response. - /// Server address (required). - /// Account name (required). - /// Password. - /// Whether the password is already set. - /// Password (required). - /// Whether the anonymous access is enabled. - /// Possible values: 0: None 1: TLS 2: SSL . - /// Whether the AutoConfig on port is enabled. - /// The number of minutes after which download emails. - /// The number of minutes after which send emails. - /// Whether the forlder monitoring is enabled. - /// The number of seconds after which check the monitored folders. - /// The number of seconds after which check whether the files grow. - /// The key of the EML header from which retrieve the author. - /// Possible values: 0: UseAdmin 1: MoveToNoAuthorFolder -1: None . - /// The list of monitored folders configured. - /// The action to perform on operation done. - /// The Mail's defaults. - public SmtpSettingsDTO(int? authenticationMode = default(int?), string tenantId = default(string), string clientId = default(string), string clientSecret = default(string), bool? isClientSecretSet = default(bool?), bool? isAuthorizationResponseSet = default(bool?), string authorizationResponse = default(string), string server = default(string), string accountName = default(string), string password = default(string), bool? isPasswordSet = default(bool?), int? port = default(int?), bool? anonymousAccess = default(bool?), int? securityProtocol = default(int?), bool? autoConfigOnPort = default(bool?), int? downloadEmailsEvery = default(int?), int? sendEmailsEvery = default(int?), bool? isFolderMonitoringEnabled = default(bool?), int? checkFolderEvery = default(int?), int? checkFileGrowingEvery = default(int?), string emlHeaderKey = default(string), int? authorMatching = default(int?), List monitoredFolders = default(List), SmtpSettingsOnOperationDoneDTO onImportOperationDone = default(SmtpSettingsOnOperationDoneDTO), MailDefaultsInfoDTO mailDefaultsInfo = default(MailDefaultsInfoDTO)) - { - // to ensure "server" is required (not null) - if (server == null) - { - throw new InvalidDataException("server is a required property for SmtpSettingsDTO and cannot be null"); - } - else - { - this.Server = server; - } - // to ensure "accountName" is required (not null) - if (accountName == null) - { - throw new InvalidDataException("accountName is a required property for SmtpSettingsDTO and cannot be null"); - } - else - { - this.AccountName = accountName; - } - // to ensure "port" is required (not null) - if (port == null) - { - throw new InvalidDataException("port is a required property for SmtpSettingsDTO and cannot be null"); - } - else - { - this.Port = port; - } - this.AuthenticationMode = authenticationMode; - this.TenantId = tenantId; - this.ClientId = clientId; - this.ClientSecret = clientSecret; - this.IsClientSecretSet = isClientSecretSet; - this.IsAuthorizationResponseSet = isAuthorizationResponseSet; - this.AuthorizationResponse = authorizationResponse; - this.Password = password; - this.IsPasswordSet = isPasswordSet; - this.AnonymousAccess = anonymousAccess; - this.SecurityProtocol = securityProtocol; - this.AutoConfigOnPort = autoConfigOnPort; - this.DownloadEmailsEvery = downloadEmailsEvery; - this.SendEmailsEvery = sendEmailsEvery; - this.IsFolderMonitoringEnabled = isFolderMonitoringEnabled; - this.CheckFolderEvery = checkFolderEvery; - this.CheckFileGrowingEvery = checkFileGrowingEvery; - this.EmlHeaderKey = emlHeaderKey; - this.AuthorMatching = authorMatching; - this.MonitoredFolders = monitoredFolders; - this.OnImportOperationDone = onImportOperationDone; - this.MailDefaultsInfo = mailDefaultsInfo; - } - - /// - /// Possible values: 0: Basic 1: Microsoft 2: Google - /// - /// Possible values: 0: Basic 1: Microsoft 2: Google - [DataMember(Name="authenticationMode", EmitDefaultValue=false)] - public int? AuthenticationMode { get; set; } - - /// - /// The tenant ID - /// - /// The tenant ID - [DataMember(Name="tenantId", EmitDefaultValue=false)] - public string TenantId { get; set; } - - /// - /// The client ID - /// - /// The client ID - [DataMember(Name="clientId", EmitDefaultValue=false)] - public string ClientId { get; set; } - - /// - /// The client Secret - /// - /// The client Secret - [DataMember(Name="clientSecret", EmitDefaultValue=false)] - public string ClientSecret { get; set; } - - /// - /// Gets or sets whether the client secret is set - /// - /// Gets or sets whether the client secret is set - [DataMember(Name="isClientSecretSet", EmitDefaultValue=false)] - public bool? IsClientSecretSet { get; set; } - - /// - /// Gets or sets whether the authorization response is set - /// - /// Gets or sets whether the authorization response is set - [DataMember(Name="isAuthorizationResponseSet", EmitDefaultValue=false)] - public bool? IsAuthorizationResponseSet { get; set; } - - /// - /// The authorization response - /// - /// The authorization response - [DataMember(Name="authorizationResponse", EmitDefaultValue=false)] - public string AuthorizationResponse { get; set; } - - /// - /// Server address - /// - /// Server address - [DataMember(Name="server", EmitDefaultValue=false)] - public string Server { get; set; } - - /// - /// Account name - /// - /// Account name - [DataMember(Name="accountName", EmitDefaultValue=false)] - public string AccountName { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Whether the password is already set - /// - /// Whether the password is already set - [DataMember(Name="isPasswordSet", EmitDefaultValue=false)] - public bool? IsPasswordSet { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="port", EmitDefaultValue=false)] - public int? Port { get; set; } - - /// - /// Whether the anonymous access is enabled - /// - /// Whether the anonymous access is enabled - [DataMember(Name="anonymousAccess", EmitDefaultValue=false)] - public bool? AnonymousAccess { get; set; } - - /// - /// Possible values: 0: None 1: TLS 2: SSL - /// - /// Possible values: 0: None 1: TLS 2: SSL - [DataMember(Name="securityProtocol", EmitDefaultValue=false)] - public int? SecurityProtocol { get; set; } - - /// - /// Whether the AutoConfig on port is enabled - /// - /// Whether the AutoConfig on port is enabled - [DataMember(Name="autoConfigOnPort", EmitDefaultValue=false)] - public bool? AutoConfigOnPort { get; set; } - - /// - /// The number of minutes after which download emails - /// - /// The number of minutes after which download emails - [DataMember(Name="downloadEmailsEvery", EmitDefaultValue=false)] - public int? DownloadEmailsEvery { get; set; } - - /// - /// The number of minutes after which send emails - /// - /// The number of minutes after which send emails - [DataMember(Name="sendEmailsEvery", EmitDefaultValue=false)] - public int? SendEmailsEvery { get; set; } - - /// - /// Whether the forlder monitoring is enabled - /// - /// Whether the forlder monitoring is enabled - [DataMember(Name="isFolderMonitoringEnabled", EmitDefaultValue=false)] - public bool? IsFolderMonitoringEnabled { get; set; } - - /// - /// The number of seconds after which check the monitored folders - /// - /// The number of seconds after which check the monitored folders - [DataMember(Name="checkFolderEvery", EmitDefaultValue=false)] - public int? CheckFolderEvery { get; set; } - - /// - /// The number of seconds after which check whether the files grow - /// - /// The number of seconds after which check whether the files grow - [DataMember(Name="checkFileGrowingEvery", EmitDefaultValue=false)] - public int? CheckFileGrowingEvery { get; set; } - - /// - /// The key of the EML header from which retrieve the author - /// - /// The key of the EML header from which retrieve the author - [DataMember(Name="emlHeaderKey", EmitDefaultValue=false)] - public string EmlHeaderKey { get; set; } - - /// - /// Possible values: 0: UseAdmin 1: MoveToNoAuthorFolder -1: None - /// - /// Possible values: 0: UseAdmin 1: MoveToNoAuthorFolder -1: None - [DataMember(Name="authorMatching", EmitDefaultValue=false)] - public int? AuthorMatching { get; set; } - - /// - /// The list of monitored folders configured - /// - /// The list of monitored folders configured - [DataMember(Name="monitoredFolders", EmitDefaultValue=false)] - public List MonitoredFolders { get; set; } - - /// - /// The action to perform on operation done - /// - /// The action to perform on operation done - [DataMember(Name="onImportOperationDone", EmitDefaultValue=false)] - public SmtpSettingsOnOperationDoneDTO OnImportOperationDone { get; set; } - - /// - /// The Mail's defaults - /// - /// The Mail's defaults - [DataMember(Name="mailDefaultsInfo", EmitDefaultValue=false)] - public MailDefaultsInfoDTO MailDefaultsInfo { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SmtpSettingsDTO {\n"); - sb.Append(" AuthenticationMode: ").Append(AuthenticationMode).Append("\n"); - sb.Append(" TenantId: ").Append(TenantId).Append("\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); - sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n"); - sb.Append(" IsClientSecretSet: ").Append(IsClientSecretSet).Append("\n"); - sb.Append(" IsAuthorizationResponseSet: ").Append(IsAuthorizationResponseSet).Append("\n"); - sb.Append(" AuthorizationResponse: ").Append(AuthorizationResponse).Append("\n"); - sb.Append(" Server: ").Append(Server).Append("\n"); - sb.Append(" AccountName: ").Append(AccountName).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" IsPasswordSet: ").Append(IsPasswordSet).Append("\n"); - sb.Append(" Port: ").Append(Port).Append("\n"); - sb.Append(" AnonymousAccess: ").Append(AnonymousAccess).Append("\n"); - sb.Append(" SecurityProtocol: ").Append(SecurityProtocol).Append("\n"); - sb.Append(" AutoConfigOnPort: ").Append(AutoConfigOnPort).Append("\n"); - sb.Append(" DownloadEmailsEvery: ").Append(DownloadEmailsEvery).Append("\n"); - sb.Append(" SendEmailsEvery: ").Append(SendEmailsEvery).Append("\n"); - sb.Append(" IsFolderMonitoringEnabled: ").Append(IsFolderMonitoringEnabled).Append("\n"); - sb.Append(" CheckFolderEvery: ").Append(CheckFolderEvery).Append("\n"); - sb.Append(" CheckFileGrowingEvery: ").Append(CheckFileGrowingEvery).Append("\n"); - sb.Append(" EmlHeaderKey: ").Append(EmlHeaderKey).Append("\n"); - sb.Append(" AuthorMatching: ").Append(AuthorMatching).Append("\n"); - sb.Append(" MonitoredFolders: ").Append(MonitoredFolders).Append("\n"); - sb.Append(" OnImportOperationDone: ").Append(OnImportOperationDone).Append("\n"); - sb.Append(" MailDefaultsInfo: ").Append(MailDefaultsInfo).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SmtpSettingsDTO); - } - - /// - /// Returns true if SmtpSettingsDTO instances are equal - /// - /// Instance of SmtpSettingsDTO to be compared - /// Boolean - public bool Equals(SmtpSettingsDTO input) - { - if (input == null) - return false; - - return - ( - this.AuthenticationMode == input.AuthenticationMode || - (this.AuthenticationMode != null && - this.AuthenticationMode.Equals(input.AuthenticationMode)) - ) && - ( - this.TenantId == input.TenantId || - (this.TenantId != null && - this.TenantId.Equals(input.TenantId)) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.ClientSecret == input.ClientSecret || - (this.ClientSecret != null && - this.ClientSecret.Equals(input.ClientSecret)) - ) && - ( - this.IsClientSecretSet == input.IsClientSecretSet || - (this.IsClientSecretSet != null && - this.IsClientSecretSet.Equals(input.IsClientSecretSet)) - ) && - ( - this.IsAuthorizationResponseSet == input.IsAuthorizationResponseSet || - (this.IsAuthorizationResponseSet != null && - this.IsAuthorizationResponseSet.Equals(input.IsAuthorizationResponseSet)) - ) && - ( - this.AuthorizationResponse == input.AuthorizationResponse || - (this.AuthorizationResponse != null && - this.AuthorizationResponse.Equals(input.AuthorizationResponse)) - ) && - ( - this.Server == input.Server || - (this.Server != null && - this.Server.Equals(input.Server)) - ) && - ( - this.AccountName == input.AccountName || - (this.AccountName != null && - this.AccountName.Equals(input.AccountName)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.IsPasswordSet == input.IsPasswordSet || - (this.IsPasswordSet != null && - this.IsPasswordSet.Equals(input.IsPasswordSet)) - ) && - ( - this.Port == input.Port || - (this.Port != null && - this.Port.Equals(input.Port)) - ) && - ( - this.AnonymousAccess == input.AnonymousAccess || - (this.AnonymousAccess != null && - this.AnonymousAccess.Equals(input.AnonymousAccess)) - ) && - ( - this.SecurityProtocol == input.SecurityProtocol || - (this.SecurityProtocol != null && - this.SecurityProtocol.Equals(input.SecurityProtocol)) - ) && - ( - this.AutoConfigOnPort == input.AutoConfigOnPort || - (this.AutoConfigOnPort != null && - this.AutoConfigOnPort.Equals(input.AutoConfigOnPort)) - ) && - ( - this.DownloadEmailsEvery == input.DownloadEmailsEvery || - (this.DownloadEmailsEvery != null && - this.DownloadEmailsEvery.Equals(input.DownloadEmailsEvery)) - ) && - ( - this.SendEmailsEvery == input.SendEmailsEvery || - (this.SendEmailsEvery != null && - this.SendEmailsEvery.Equals(input.SendEmailsEvery)) - ) && - ( - this.IsFolderMonitoringEnabled == input.IsFolderMonitoringEnabled || - (this.IsFolderMonitoringEnabled != null && - this.IsFolderMonitoringEnabled.Equals(input.IsFolderMonitoringEnabled)) - ) && - ( - this.CheckFolderEvery == input.CheckFolderEvery || - (this.CheckFolderEvery != null && - this.CheckFolderEvery.Equals(input.CheckFolderEvery)) - ) && - ( - this.CheckFileGrowingEvery == input.CheckFileGrowingEvery || - (this.CheckFileGrowingEvery != null && - this.CheckFileGrowingEvery.Equals(input.CheckFileGrowingEvery)) - ) && - ( - this.EmlHeaderKey == input.EmlHeaderKey || - (this.EmlHeaderKey != null && - this.EmlHeaderKey.Equals(input.EmlHeaderKey)) - ) && - ( - this.AuthorMatching == input.AuthorMatching || - (this.AuthorMatching != null && - this.AuthorMatching.Equals(input.AuthorMatching)) - ) && - ( - this.MonitoredFolders == input.MonitoredFolders || - this.MonitoredFolders != null && - this.MonitoredFolders.SequenceEqual(input.MonitoredFolders) - ) && - ( - this.OnImportOperationDone == input.OnImportOperationDone || - (this.OnImportOperationDone != null && - this.OnImportOperationDone.Equals(input.OnImportOperationDone)) - ) && - ( - this.MailDefaultsInfo == input.MailDefaultsInfo || - (this.MailDefaultsInfo != null && - this.MailDefaultsInfo.Equals(input.MailDefaultsInfo)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AuthenticationMode != null) - hashCode = hashCode * 59 + this.AuthenticationMode.GetHashCode(); - if (this.TenantId != null) - hashCode = hashCode * 59 + this.TenantId.GetHashCode(); - if (this.ClientId != null) - hashCode = hashCode * 59 + this.ClientId.GetHashCode(); - if (this.ClientSecret != null) - hashCode = hashCode * 59 + this.ClientSecret.GetHashCode(); - if (this.IsClientSecretSet != null) - hashCode = hashCode * 59 + this.IsClientSecretSet.GetHashCode(); - if (this.IsAuthorizationResponseSet != null) - hashCode = hashCode * 59 + this.IsAuthorizationResponseSet.GetHashCode(); - if (this.AuthorizationResponse != null) - hashCode = hashCode * 59 + this.AuthorizationResponse.GetHashCode(); - if (this.Server != null) - hashCode = hashCode * 59 + this.Server.GetHashCode(); - if (this.AccountName != null) - hashCode = hashCode * 59 + this.AccountName.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.IsPasswordSet != null) - hashCode = hashCode * 59 + this.IsPasswordSet.GetHashCode(); - if (this.Port != null) - hashCode = hashCode * 59 + this.Port.GetHashCode(); - if (this.AnonymousAccess != null) - hashCode = hashCode * 59 + this.AnonymousAccess.GetHashCode(); - if (this.SecurityProtocol != null) - hashCode = hashCode * 59 + this.SecurityProtocol.GetHashCode(); - if (this.AutoConfigOnPort != null) - hashCode = hashCode * 59 + this.AutoConfigOnPort.GetHashCode(); - if (this.DownloadEmailsEvery != null) - hashCode = hashCode * 59 + this.DownloadEmailsEvery.GetHashCode(); - if (this.SendEmailsEvery != null) - hashCode = hashCode * 59 + this.SendEmailsEvery.GetHashCode(); - if (this.IsFolderMonitoringEnabled != null) - hashCode = hashCode * 59 + this.IsFolderMonitoringEnabled.GetHashCode(); - if (this.CheckFolderEvery != null) - hashCode = hashCode * 59 + this.CheckFolderEvery.GetHashCode(); - if (this.CheckFileGrowingEvery != null) - hashCode = hashCode * 59 + this.CheckFileGrowingEvery.GetHashCode(); - if (this.EmlHeaderKey != null) - hashCode = hashCode * 59 + this.EmlHeaderKey.GetHashCode(); - if (this.AuthorMatching != null) - hashCode = hashCode * 59 + this.AuthorMatching.GetHashCode(); - if (this.MonitoredFolders != null) - hashCode = hashCode * 59 + this.MonitoredFolders.GetHashCode(); - if (this.OnImportOperationDone != null) - hashCode = hashCode * 59 + this.OnImportOperationDone.GetHashCode(); - if (this.MailDefaultsInfo != null) - hashCode = hashCode * 59 + this.MailDefaultsInfo.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SmtpSettingsMonitoredFolderDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SmtpSettingsMonitoredFolderDTO.cs deleted file mode 100644 index e8f54f1..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SmtpSettingsMonitoredFolderDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Monitored folder information - /// - [DataContract] - public partial class SmtpSettingsMonitoredFolderDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// The folder id. - /// Whether the folder is enabled. - /// The folder's full path. - /// The user associated. - /// Possible values: 0: IncomingOnly 1: OutgoingOnly 2: Standard . - public SmtpSettingsMonitoredFolderDTO(int? id = default(int?), bool? isEnabled = default(bool?), string path = default(string), UserSimpleDTO user = default(UserSimpleDTO), int? statusMode = default(int?)) - { - this.Id = id; - this.IsEnabled = isEnabled; - this.Path = path; - this.User = user; - this.StatusMode = statusMode; - } - - /// - /// The folder id - /// - /// The folder id - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Whether the folder is enabled - /// - /// Whether the folder is enabled - [DataMember(Name="isEnabled", EmitDefaultValue=false)] - public bool? IsEnabled { get; set; } - - /// - /// The folder's full path - /// - /// The folder's full path - [DataMember(Name="path", EmitDefaultValue=false)] - public string Path { get; set; } - - /// - /// The user associated - /// - /// The user associated - [DataMember(Name="user", EmitDefaultValue=false)] - public UserSimpleDTO User { get; set; } - - /// - /// Possible values: 0: IncomingOnly 1: OutgoingOnly 2: Standard - /// - /// Possible values: 0: IncomingOnly 1: OutgoingOnly 2: Standard - [DataMember(Name="statusMode", EmitDefaultValue=false)] - public int? StatusMode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SmtpSettingsMonitoredFolderDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); - sb.Append(" Path: ").Append(Path).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" StatusMode: ").Append(StatusMode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SmtpSettingsMonitoredFolderDTO); - } - - /// - /// Returns true if SmtpSettingsMonitoredFolderDTO instances are equal - /// - /// Instance of SmtpSettingsMonitoredFolderDTO to be compared - /// Boolean - public bool Equals(SmtpSettingsMonitoredFolderDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.IsEnabled == input.IsEnabled || - (this.IsEnabled != null && - this.IsEnabled.Equals(input.IsEnabled)) - ) && - ( - this.Path == input.Path || - (this.Path != null && - this.Path.Equals(input.Path)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.StatusMode == input.StatusMode || - (this.StatusMode != null && - this.StatusMode.Equals(input.StatusMode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.IsEnabled != null) - hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); - if (this.Path != null) - hashCode = hashCode * 59 + this.Path.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.StatusMode != null) - hashCode = hashCode * 59 + this.StatusMode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SmtpSettingsOnOperationDoneDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SmtpSettingsOnOperationDoneDTO.cs deleted file mode 100644 index 171e5b2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SmtpSettingsOnOperationDoneDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Defines the action to perform on operation done - /// - [DataContract] - public partial class SmtpSettingsOnOperationDoneDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: DeleteFile 1: AddExtension . - /// The file extension. - public SmtpSettingsOnOperationDoneDTO(int? action = default(int?), string fileExtension = default(string)) - { - this.Action = action; - this.FileExtension = fileExtension; - } - - /// - /// Possible values: 0: DeleteFile 1: AddExtension - /// - /// Possible values: 0: DeleteFile 1: AddExtension - [DataMember(Name="action", EmitDefaultValue=false)] - public int? Action { get; set; } - - /// - /// The file extension - /// - /// The file extension - [DataMember(Name="fileExtension", EmitDefaultValue=false)] - public string FileExtension { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SmtpSettingsOnOperationDoneDTO {\n"); - sb.Append(" Action: ").Append(Action).Append("\n"); - sb.Append(" FileExtension: ").Append(FileExtension).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SmtpSettingsOnOperationDoneDTO); - } - - /// - /// Returns true if SmtpSettingsOnOperationDoneDTO instances are equal - /// - /// Instance of SmtpSettingsOnOperationDoneDTO to be compared - /// Boolean - public bool Equals(SmtpSettingsOnOperationDoneDTO input) - { - if (input == null) - return false; - - return - ( - this.Action == input.Action || - (this.Action != null && - this.Action.Equals(input.Action)) - ) && - ( - this.FileExtension == input.FileExtension || - (this.FileExtension != null && - this.FileExtension.Equals(input.FileExtension)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Action != null) - hashCode = hashCode * 59 + this.Action.GetHashCode(); - if (this.FileExtension != null) - hashCode = hashCode * 59 + this.FileExtension.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionBaseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionBaseDTO.cs deleted file mode 100644 index 874542c..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionBaseDTO.cs +++ /dev/null @@ -1,308 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of sql condition - /// - [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] - [JsonSubtypes.KnownSubType(typeof(SqlConditionDateTimeDTO), "SqlConditionDateTimeDTO")] - [JsonSubtypes.KnownSubType(typeof(SqlConditionIntDTO), "SqlConditionIntDTO")] - [JsonSubtypes.KnownSubType(typeof(SqlConditionDoubleDTO), "SqlConditionDoubleDTO")] - [JsonSubtypes.KnownSubType(typeof(SqlConditionStringDTO), "SqlConditionStringDTO")] - [JsonSubtypes.KnownSubType(typeof(SqlConditionBoolDTO), "SqlConditionBoolDTO")] - public partial class SqlConditionBaseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected SqlConditionBaseDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Name of class (required). - /// Identifier. - /// Name. - /// Table. - /// Field. - /// Case insensitive search. - /// First External field. - /// First External field description. - /// Second External field. - /// Second External field description. - public SqlConditionBaseDTO(string className = default(string), string id = default(string), string name = default(string), string table = default(string), string field = default(string), bool? insensitiveSearch = default(bool?), string external1 = default(string), string external1Description = default(string), string external2 = default(string), string external2Description = default(string)) - { - // to ensure "className" is required (not null) - if (className == null) - { - throw new InvalidDataException("className is a required property for SqlConditionBaseDTO and cannot be null"); - } - else - { - this.ClassName = className; - } - this.Id = id; - this.Name = name; - this.Table = table; - this.Field = field; - this.InsensitiveSearch = insensitiveSearch; - this.External1 = external1; - this.External1Description = external1Description; - this.External2 = external2; - this.External2Description = external2Description; - } - - /// - /// Name of class - /// - /// Name of class - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Name - /// - /// Name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Table - /// - /// Table - [DataMember(Name="table", EmitDefaultValue=false)] - public string Table { get; set; } - - /// - /// Field - /// - /// Field - [DataMember(Name="field", EmitDefaultValue=false)] - public string Field { get; set; } - - /// - /// Case insensitive search - /// - /// Case insensitive search - [DataMember(Name="insensitiveSearch", EmitDefaultValue=false)] - public bool? InsensitiveSearch { get; set; } - - /// - /// First External field - /// - /// First External field - [DataMember(Name="external1", EmitDefaultValue=false)] - public string External1 { get; set; } - - /// - /// First External field description - /// - /// First External field description - [DataMember(Name="external1Description", EmitDefaultValue=false)] - public string External1Description { get; set; } - - /// - /// Second External field - /// - /// Second External field - [DataMember(Name="external2", EmitDefaultValue=false)] - public string External2 { get; set; } - - /// - /// Second External field description - /// - /// Second External field description - [DataMember(Name="external2Description", EmitDefaultValue=false)] - public string External2Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlConditionBaseDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Table: ").Append(Table).Append("\n"); - sb.Append(" Field: ").Append(Field).Append("\n"); - sb.Append(" InsensitiveSearch: ").Append(InsensitiveSearch).Append("\n"); - sb.Append(" External1: ").Append(External1).Append("\n"); - sb.Append(" External1Description: ").Append(External1Description).Append("\n"); - sb.Append(" External2: ").Append(External2).Append("\n"); - sb.Append(" External2Description: ").Append(External2Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlConditionBaseDTO); - } - - /// - /// Returns true if SqlConditionBaseDTO instances are equal - /// - /// Instance of SqlConditionBaseDTO to be compared - /// Boolean - public bool Equals(SqlConditionBaseDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Table == input.Table || - (this.Table != null && - this.Table.Equals(input.Table)) - ) && - ( - this.Field == input.Field || - (this.Field != null && - this.Field.Equals(input.Field)) - ) && - ( - this.InsensitiveSearch == input.InsensitiveSearch || - (this.InsensitiveSearch != null && - this.InsensitiveSearch.Equals(input.InsensitiveSearch)) - ) && - ( - this.External1 == input.External1 || - (this.External1 != null && - this.External1.Equals(input.External1)) - ) && - ( - this.External1Description == input.External1Description || - (this.External1Description != null && - this.External1Description.Equals(input.External1Description)) - ) && - ( - this.External2 == input.External2 || - (this.External2 != null && - this.External2.Equals(input.External2)) - ) && - ( - this.External2Description == input.External2Description || - (this.External2Description != null && - this.External2Description.Equals(input.External2Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Table != null) - hashCode = hashCode * 59 + this.Table.GetHashCode(); - if (this.Field != null) - hashCode = hashCode * 59 + this.Field.GetHashCode(); - if (this.InsensitiveSearch != null) - hashCode = hashCode * 59 + this.InsensitiveSearch.GetHashCode(); - if (this.External1 != null) - hashCode = hashCode * 59 + this.External1.GetHashCode(); - if (this.External1Description != null) - hashCode = hashCode * 59 + this.External1Description.GetHashCode(); - if (this.External2 != null) - hashCode = hashCode * 59 + this.External2.GetHashCode(); - if (this.External2Description != null) - hashCode = hashCode * 59 + this.External2Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionBoolDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionBoolDTO.cs deleted file mode 100644 index 3952e96..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionBoolDTO.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of sql condition for type Bool - /// - [DataContract] - public partial class SqlConditionBoolDTO : SqlConditionBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected SqlConditionBoolDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 3: Uguale 6: Diverso . - /// First value. - /// Second value. - public SqlConditionBoolDTO(int? _operator = default(int?), bool? value1 = default(bool?), bool? value2 = default(bool?), string className = "SqlConditionBoolDTO", string id = default(string), string name = default(string), string table = default(string), string field = default(string), bool? insensitiveSearch = default(bool?), string external1 = default(string), string external1Description = default(string), string external2 = default(string), string external2Description = default(string)) : base(className, id, name, table, field, insensitiveSearch, external1, external1Description, external2, external2Description) - { - this.Operator = _operator; - this.Value1 = value1; - this.Value2 = value2; - } - - /// - /// Possible values: 0: Non_Impostato 3: Uguale 6: Diverso - /// - /// Possible values: 0: Non_Impostato 3: Uguale 6: Diverso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// First value - /// - /// First value - [DataMember(Name="value1", EmitDefaultValue=false)] - public bool? Value1 { get; set; } - - /// - /// Second value - /// - /// Second value - [DataMember(Name="value2", EmitDefaultValue=false)] - public bool? Value2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlConditionBoolDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Value1: ").Append(Value1).Append("\n"); - sb.Append(" Value2: ").Append(Value2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlConditionBoolDTO); - } - - /// - /// Returns true if SqlConditionBoolDTO instances are equal - /// - /// Instance of SqlConditionBoolDTO to be compared - /// Boolean - public bool Equals(SqlConditionBoolDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Value1 == input.Value1 || - (this.Value1 != null && - this.Value1.Equals(input.Value1)) - ) && base.Equals(input) && - ( - this.Value2 == input.Value2 || - (this.Value2 != null && - this.Value2.Equals(input.Value2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Value1 != null) - hashCode = hashCode * 59 + this.Value1.GetHashCode(); - if (this.Value2 != null) - hashCode = hashCode * 59 + this.Value2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionDateTimeDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionDateTimeDTO.cs deleted file mode 100644 index 936859a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionDateTimeDTO.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of sql condition for type DateTime - /// - [DataContract] - public partial class SqlConditionDateTimeDTO : SqlConditionBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected SqlConditionDateTimeDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// First value. - /// Second value. - public SqlConditionDateTimeDTO(int? _operator = default(int?), DateTime? value1 = default(DateTime?), DateTime? value2 = default(DateTime?), string className = "SqlConditionDateTimeDTO", string id = default(string), string name = default(string), string table = default(string), string field = default(string), bool? insensitiveSearch = default(bool?), string external1 = default(string), string external1Description = default(string), string external2 = default(string), string external2Description = default(string)) : base(className, id, name, table, field, insensitiveSearch, external1, external1Description, external2, external2Description) - { - this.Operator = _operator; - this.Value1 = value1; - this.Value2 = value2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// First value - /// - /// First value - [DataMember(Name="value1", EmitDefaultValue=false)] - public DateTime? Value1 { get; set; } - - /// - /// Second value - /// - /// Second value - [DataMember(Name="value2", EmitDefaultValue=false)] - public DateTime? Value2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlConditionDateTimeDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Value1: ").Append(Value1).Append("\n"); - sb.Append(" Value2: ").Append(Value2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlConditionDateTimeDTO); - } - - /// - /// Returns true if SqlConditionDateTimeDTO instances are equal - /// - /// Instance of SqlConditionDateTimeDTO to be compared - /// Boolean - public bool Equals(SqlConditionDateTimeDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Value1 == input.Value1 || - (this.Value1 != null && - this.Value1.Equals(input.Value1)) - ) && base.Equals(input) && - ( - this.Value2 == input.Value2 || - (this.Value2 != null && - this.Value2.Equals(input.Value2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Value1 != null) - hashCode = hashCode * 59 + this.Value1.GetHashCode(); - if (this.Value2 != null) - hashCode = hashCode * 59 + this.Value2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionDoubleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionDoubleDTO.cs deleted file mode 100644 index 84b6a3a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionDoubleDTO.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of sql condition for type Double - /// - [DataContract] - public partial class SqlConditionDoubleDTO : SqlConditionBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected SqlConditionDoubleDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// First value. - /// Second value. - public SqlConditionDoubleDTO(int? _operator = default(int?), double? value1 = default(double?), double? value2 = default(double?), string className = "SqlConditionDoubleDTO", string id = default(string), string name = default(string), string table = default(string), string field = default(string), bool? insensitiveSearch = default(bool?), string external1 = default(string), string external1Description = default(string), string external2 = default(string), string external2Description = default(string)) : base(className, id, name, table, field, insensitiveSearch, external1, external1Description, external2, external2Description) - { - this.Operator = _operator; - this.Value1 = value1; - this.Value2 = value2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// First value - /// - /// First value - [DataMember(Name="value1", EmitDefaultValue=false)] - public double? Value1 { get; set; } - - /// - /// Second value - /// - /// Second value - [DataMember(Name="value2", EmitDefaultValue=false)] - public double? Value2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlConditionDoubleDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Value1: ").Append(Value1).Append("\n"); - sb.Append(" Value2: ").Append(Value2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlConditionDoubleDTO); - } - - /// - /// Returns true if SqlConditionDoubleDTO instances are equal - /// - /// Instance of SqlConditionDoubleDTO to be compared - /// Boolean - public bool Equals(SqlConditionDoubleDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Value1 == input.Value1 || - (this.Value1 != null && - this.Value1.Equals(input.Value1)) - ) && base.Equals(input) && - ( - this.Value2 == input.Value2 || - (this.Value2 != null && - this.Value2.Equals(input.Value2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Value1 != null) - hashCode = hashCode * 59 + this.Value1.GetHashCode(); - if (this.Value2 != null) - hashCode = hashCode * 59 + this.Value2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionIntDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionIntDTO.cs deleted file mode 100644 index 4ea5c81..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionIntDTO.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of sql condition for type Int - /// - [DataContract] - public partial class SqlConditionIntDTO : SqlConditionBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected SqlConditionIntDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso . - /// First value. - /// Second value. - public SqlConditionIntDTO(int? _operator = default(int?), int? value1 = default(int?), int? value2 = default(int?), string className = "SqlConditionIntDTO", string id = default(string), string name = default(string), string table = default(string), string field = default(string), bool? insensitiveSearch = default(bool?), string external1 = default(string), string external1Description = default(string), string external2 = default(string), string external2Description = default(string)) : base(className, id, name, table, field, insensitiveSearch, external1, external1Description, external2, external2Description) - { - this.Operator = _operator; - this.Value1 = value1; - this.Value2 = value2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - /// - /// Possible values: 0: Non_Impostato 1: Minore 2: Minore_Uguale 3: Uguale 4: Maggiore_Uguale 5: Maggiore 6: Diverso 7: Compreso 8: Nullo 9: Non_Nullo 10: Nullo_o_Zero 11: Non_Nullo_e_Non_Zero 12: Escluso - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// First value - /// - /// First value - [DataMember(Name="value1", EmitDefaultValue=false)] - public int? Value1 { get; set; } - - /// - /// Second value - /// - /// Second value - [DataMember(Name="value2", EmitDefaultValue=false)] - public int? Value2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlConditionIntDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Value1: ").Append(Value1).Append("\n"); - sb.Append(" Value2: ").Append(Value2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlConditionIntDTO); - } - - /// - /// Returns true if SqlConditionIntDTO instances are equal - /// - /// Instance of SqlConditionIntDTO to be compared - /// Boolean - public bool Equals(SqlConditionIntDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Value1 == input.Value1 || - (this.Value1 != null && - this.Value1.Equals(input.Value1)) - ) && base.Equals(input) && - ( - this.Value2 == input.Value2 || - (this.Value2 != null && - this.Value2.Equals(input.Value2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Value1 != null) - hashCode = hashCode * 59 + this.Value1.GetHashCode(); - if (this.Value2 != null) - hashCode = hashCode * 59 + this.Value2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionStringDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionStringDTO.cs deleted file mode 100644 index f45d799..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionStringDTO.cs +++ /dev/null @@ -1,166 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of sql condition for type String - /// - [DataContract] - public partial class SqlConditionStringDTO : SqlConditionBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected SqlConditionStringDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like . - /// First value. - /// Second value. - public SqlConditionStringDTO(int? _operator = default(int?), string value1 = default(string), string value2 = default(string), string className = "SqlConditionStringDTO", string id = default(string), string name = default(string), string table = default(string), string field = default(string), bool? insensitiveSearch = default(bool?), string external1 = default(string), string external1Description = default(string), string external2 = default(string), string external2Description = default(string)) : base(className, id, name, table, field, insensitiveSearch, external1, external1Description, external2, external2Description) - { - this.Operator = _operator; - this.Value1 = value1; - this.Value2 = value2; - } - - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - /// - /// Possible values: 0: Non_Impostato 1: Uguale 2: Diverso 3: Inizia 4: Contiene 5: Termina 6: Nullo 7: Non_Nullo 8: Vuoto 9: Non_Vuoto 10: Nullo_o_Vuoto 11: Non_Nullo_e_Non_Vuoto 12: Like - [DataMember(Name="operator", EmitDefaultValue=false)] - public int? Operator { get; set; } - - /// - /// First value - /// - /// First value - [DataMember(Name="value1", EmitDefaultValue=false)] - public string Value1 { get; set; } - - /// - /// Second value - /// - /// Second value - [DataMember(Name="value2", EmitDefaultValue=false)] - public string Value2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlConditionStringDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Operator: ").Append(Operator).Append("\n"); - sb.Append(" Value1: ").Append(Value1).Append("\n"); - sb.Append(" Value2: ").Append(Value2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlConditionStringDTO); - } - - /// - /// Returns true if SqlConditionStringDTO instances are equal - /// - /// Instance of SqlConditionStringDTO to be compared - /// Boolean - public bool Equals(SqlConditionStringDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Operator == input.Operator || - (this.Operator != null && - this.Operator.Equals(input.Operator)) - ) && base.Equals(input) && - ( - this.Value1 == input.Value1 || - (this.Value1 != null && - this.Value1.Equals(input.Value1)) - ) && base.Equals(input) && - ( - this.Value2 == input.Value2 || - (this.Value2 != null && - this.Value2.Equals(input.Value2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Operator != null) - hashCode = hashCode * 59 + this.Operator.GetHashCode(); - if (this.Value1 != null) - hashCode = hashCode * 59 + this.Value1.GetHashCode(); - if (this.Value2 != null) - hashCode = hashCode * 59 + this.Value2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionValidateResultDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionValidateResultDTO.cs deleted file mode 100644 index 92b9e5f..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConditionValidateResultDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Validation result of a sql query condition - /// - [DataContract] - public partial class SqlConditionValidateResultDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Indicates if a condition is valid or not. - /// Contains the reason of the validation error. - public SqlConditionValidateResultDTO(bool? isValid = default(bool?), string errorMessage = default(string)) - { - this.IsValid = isValid; - this.ErrorMessage = errorMessage; - } - - /// - /// Indicates if a condition is valid or not - /// - /// Indicates if a condition is valid or not - [DataMember(Name="isValid", EmitDefaultValue=false)] - public bool? IsValid { get; set; } - - /// - /// Contains the reason of the validation error - /// - /// Contains the reason of the validation error - [DataMember(Name="errorMessage", EmitDefaultValue=false)] - public string ErrorMessage { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlConditionValidateResultDTO {\n"); - sb.Append(" IsValid: ").Append(IsValid).Append("\n"); - sb.Append(" ErrorMessage: ").Append(ErrorMessage).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlConditionValidateResultDTO); - } - - /// - /// Returns true if SqlConditionValidateResultDTO instances are equal - /// - /// Instance of SqlConditionValidateResultDTO to be compared - /// Boolean - public bool Equals(SqlConditionValidateResultDTO input) - { - if (input == null) - return false; - - return - ( - this.IsValid == input.IsValid || - (this.IsValid != null && - this.IsValid.Equals(input.IsValid)) - ) && - ( - this.ErrorMessage == input.ErrorMessage || - (this.ErrorMessage != null && - this.ErrorMessage.Equals(input.ErrorMessage)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.IsValid != null) - hashCode = hashCode * 59 + this.IsValid.GetHashCode(); - if (this.ErrorMessage != null) - hashCode = hashCode * 59 + this.ErrorMessage.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConnectionDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConnectionDTO.cs deleted file mode 100644 index be603d1..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConnectionDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of SQL connection strings - /// - [DataContract] - public partial class SqlConnectionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Connection name. - /// Connection string. - /// Username. - /// Password. - /// Possible values: 1: OleDb 2: Dsn 3: Local 4: Odbc . - public SqlConnectionDTO(string id = default(string), string name = default(string), string connectionString = default(string), string user = default(string), string password = default(string), int? connectionType = default(int?)) - { - this.Id = id; - this.Name = name; - this.ConnectionString = connectionString; - this.User = user; - this.Password = password; - this.ConnectionType = connectionType; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Connection name - /// - /// Connection name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Connection string - /// - /// Connection string - [DataMember(Name="connectionString", EmitDefaultValue=false)] - public string ConnectionString { get; set; } - - /// - /// Username - /// - /// Username - [DataMember(Name="user", EmitDefaultValue=false)] - public string User { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Possible values: 1: OleDb 2: Dsn 3: Local 4: Odbc - /// - /// Possible values: 1: OleDb 2: Dsn 3: Local 4: Odbc - [DataMember(Name="connectionType", EmitDefaultValue=false)] - public int? ConnectionType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlConnectionDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ConnectionString: ").Append(ConnectionString).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" ConnectionType: ").Append(ConnectionType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlConnectionDTO); - } - - /// - /// Returns true if SqlConnectionDTO instances are equal - /// - /// Instance of SqlConnectionDTO to be compared - /// Boolean - public bool Equals(SqlConnectionDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.ConnectionString == input.ConnectionString || - (this.ConnectionString != null && - this.ConnectionString.Equals(input.ConnectionString)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.ConnectionType == input.ConnectionType || - (this.ConnectionType != null && - this.ConnectionType.Equals(input.ConnectionType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.ConnectionString != null) - hashCode = hashCode * 59 + this.ConnectionString.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.ConnectionType != null) - hashCode = hashCode * 59 + this.ConnectionType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConnectionForViewDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConnectionForViewDTO.cs deleted file mode 100644 index 08b3fe5..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConnectionForViewDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of SQL connection strings for view - /// - [DataContract] - public partial class SqlConnectionForViewDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Connection name. - /// Connection string. - /// Username. - /// Has saved password. - /// Possible values: 1: OleDb 2: Dsn 3: Local 4: Odbc . - public SqlConnectionForViewDTO(string id = default(string), string name = default(string), string connectionString = default(string), string user = default(string), bool? hasPassword = default(bool?), int? connectionType = default(int?)) - { - this.Id = id; - this.Name = name; - this.ConnectionString = connectionString; - this.User = user; - this.HasPassword = hasPassword; - this.ConnectionType = connectionType; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Connection name - /// - /// Connection name - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Connection string - /// - /// Connection string - [DataMember(Name="connectionString", EmitDefaultValue=false)] - public string ConnectionString { get; set; } - - /// - /// Username - /// - /// Username - [DataMember(Name="user", EmitDefaultValue=false)] - public string User { get; set; } - - /// - /// Has saved password - /// - /// Has saved password - [DataMember(Name="hasPassword", EmitDefaultValue=false)] - public bool? HasPassword { get; set; } - - /// - /// Possible values: 1: OleDb 2: Dsn 3: Local 4: Odbc - /// - /// Possible values: 1: OleDb 2: Dsn 3: Local 4: Odbc - [DataMember(Name="connectionType", EmitDefaultValue=false)] - public int? ConnectionType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlConnectionForViewDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ConnectionString: ").Append(ConnectionString).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" HasPassword: ").Append(HasPassword).Append("\n"); - sb.Append(" ConnectionType: ").Append(ConnectionType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlConnectionForViewDTO); - } - - /// - /// Returns true if SqlConnectionForViewDTO instances are equal - /// - /// Instance of SqlConnectionForViewDTO to be compared - /// Boolean - public bool Equals(SqlConnectionForViewDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.ConnectionString == input.ConnectionString || - (this.ConnectionString != null && - this.ConnectionString.Equals(input.ConnectionString)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.HasPassword == input.HasPassword || - (this.HasPassword != null && - this.HasPassword.Equals(input.HasPassword)) - ) && - ( - this.ConnectionType == input.ConnectionType || - (this.ConnectionType != null && - this.ConnectionType.Equals(input.ConnectionType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.ConnectionString != null) - hashCode = hashCode * 59 + this.ConnectionString.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.HasPassword != null) - hashCode = hashCode * 59 + this.HasPassword.GetHashCode(); - if (this.ConnectionType != null) - hashCode = hashCode * 59 + this.ConnectionType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConnectionTestDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConnectionTestDTO.cs deleted file mode 100644 index 195eb01..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlConnectionTestDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of sql connection test - /// - [DataContract] - public partial class SqlConnectionTestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: BySqlConnection 1: ByCString 2: ByCStringWithSavedPassword . - /// Possible values: 1: OleDb 2: Dsn 3: Local 4: Odbc . - /// Connection string. - /// Sql Connection identifier. - public SqlConnectionTestDTO(int? mode = default(int?), int? type = default(int?), string connectionString = default(string), string sqlConnectionId = default(string)) - { - this.Mode = mode; - this.Type = type; - this.ConnectionString = connectionString; - this.SqlConnectionId = sqlConnectionId; - } - - /// - /// Possible values: 0: BySqlConnection 1: ByCString 2: ByCStringWithSavedPassword - /// - /// Possible values: 0: BySqlConnection 1: ByCString 2: ByCStringWithSavedPassword - [DataMember(Name="mode", EmitDefaultValue=false)] - public int? Mode { get; set; } - - /// - /// Possible values: 1: OleDb 2: Dsn 3: Local 4: Odbc - /// - /// Possible values: 1: OleDb 2: Dsn 3: Local 4: Odbc - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Connection string - /// - /// Connection string - [DataMember(Name="connectionString", EmitDefaultValue=false)] - public string ConnectionString { get; set; } - - /// - /// Sql Connection identifier - /// - /// Sql Connection identifier - [DataMember(Name="sqlConnectionId", EmitDefaultValue=false)] - public string SqlConnectionId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlConnectionTestDTO {\n"); - sb.Append(" Mode: ").Append(Mode).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" ConnectionString: ").Append(ConnectionString).Append("\n"); - sb.Append(" SqlConnectionId: ").Append(SqlConnectionId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlConnectionTestDTO); - } - - /// - /// Returns true if SqlConnectionTestDTO instances are equal - /// - /// Instance of SqlConnectionTestDTO to be compared - /// Boolean - public bool Equals(SqlConnectionTestDTO input) - { - if (input == null) - return false; - - return - ( - this.Mode == input.Mode || - (this.Mode != null && - this.Mode.Equals(input.Mode)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.ConnectionString == input.ConnectionString || - (this.ConnectionString != null && - this.ConnectionString.Equals(input.ConnectionString)) - ) && - ( - this.SqlConnectionId == input.SqlConnectionId || - (this.SqlConnectionId != null && - this.SqlConnectionId.Equals(input.SqlConnectionId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Mode != null) - hashCode = hashCode * 59 + this.Mode.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.ConnectionString != null) - hashCode = hashCode * 59 + this.ConnectionString.GetHashCode(); - if (this.SqlConnectionId != null) - hashCode = hashCode * 59 + this.SqlConnectionId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlQueryDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlQueryDTO.cs deleted file mode 100644 index 69474c4..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlQueryDTO.cs +++ /dev/null @@ -1,329 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Enum for Sql Query options - /// - [DataContract] - public partial class SqlQueryDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Sql connection identifier. - /// Possible values: 0: Generic 1: Workflow 2: Process . - /// Possible values: 0: WithResult 1: NoResult . - /// Description. - /// Sql text query. - /// Sql order by fields. - /// Sql Where formula. - /// Reference identifier. - /// External identifier. - /// Enable query result cache. - /// Cache duration. - /// List of query conditions. - public SqlQueryDTO(string id = default(string), string sqlConnectionId = default(string), int? context = default(int?), int? type = default(int?), string name = default(string), string query = default(string), string orderBy = default(string), string formula = default(string), string referenceId = default(string), string externalId = default(string), bool? enableCache = default(bool?), int? cacheDuration = default(int?), List conditions = default(List)) - { - this.Id = id; - this.SqlConnectionId = sqlConnectionId; - this.Context = context; - this.Type = type; - this.Name = name; - this.Query = query; - this.OrderBy = orderBy; - this.Formula = formula; - this.ReferenceId = referenceId; - this.ExternalId = externalId; - this.EnableCache = enableCache; - this.CacheDuration = cacheDuration; - this.Conditions = conditions; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Sql connection identifier - /// - /// Sql connection identifier - [DataMember(Name="sqlConnectionId", EmitDefaultValue=false)] - public string SqlConnectionId { get; set; } - - /// - /// Possible values: 0: Generic 1: Workflow 2: Process - /// - /// Possible values: 0: Generic 1: Workflow 2: Process - [DataMember(Name="context", EmitDefaultValue=false)] - public int? Context { get; set; } - - /// - /// Possible values: 0: WithResult 1: NoResult - /// - /// Possible values: 0: WithResult 1: NoResult - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Sql text query - /// - /// Sql text query - [DataMember(Name="query", EmitDefaultValue=false)] - public string Query { get; set; } - - /// - /// Sql order by fields - /// - /// Sql order by fields - [DataMember(Name="orderBy", EmitDefaultValue=false)] - public string OrderBy { get; set; } - - /// - /// Sql Where formula - /// - /// Sql Where formula - [DataMember(Name="formula", EmitDefaultValue=false)] - public string Formula { get; set; } - - /// - /// Reference identifier - /// - /// Reference identifier - [DataMember(Name="referenceId", EmitDefaultValue=false)] - public string ReferenceId { get; set; } - - /// - /// External identifier - /// - /// External identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Enable query result cache - /// - /// Enable query result cache - [DataMember(Name="enableCache", EmitDefaultValue=false)] - public bool? EnableCache { get; set; } - - /// - /// Cache duration - /// - /// Cache duration - [DataMember(Name="cacheDuration", EmitDefaultValue=false)] - public int? CacheDuration { get; set; } - - /// - /// List of query conditions - /// - /// List of query conditions - [DataMember(Name="conditions", EmitDefaultValue=false)] - public List Conditions { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlQueryDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" SqlConnectionId: ").Append(SqlConnectionId).Append("\n"); - sb.Append(" Context: ").Append(Context).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Query: ").Append(Query).Append("\n"); - sb.Append(" OrderBy: ").Append(OrderBy).Append("\n"); - sb.Append(" Formula: ").Append(Formula).Append("\n"); - sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" EnableCache: ").Append(EnableCache).Append("\n"); - sb.Append(" CacheDuration: ").Append(CacheDuration).Append("\n"); - sb.Append(" Conditions: ").Append(Conditions).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlQueryDTO); - } - - /// - /// Returns true if SqlQueryDTO instances are equal - /// - /// Instance of SqlQueryDTO to be compared - /// Boolean - public bool Equals(SqlQueryDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.SqlConnectionId == input.SqlConnectionId || - (this.SqlConnectionId != null && - this.SqlConnectionId.Equals(input.SqlConnectionId)) - ) && - ( - this.Context == input.Context || - (this.Context != null && - this.Context.Equals(input.Context)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Query == input.Query || - (this.Query != null && - this.Query.Equals(input.Query)) - ) && - ( - this.OrderBy == input.OrderBy || - (this.OrderBy != null && - this.OrderBy.Equals(input.OrderBy)) - ) && - ( - this.Formula == input.Formula || - (this.Formula != null && - this.Formula.Equals(input.Formula)) - ) && - ( - this.ReferenceId == input.ReferenceId || - (this.ReferenceId != null && - this.ReferenceId.Equals(input.ReferenceId)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.EnableCache == input.EnableCache || - (this.EnableCache != null && - this.EnableCache.Equals(input.EnableCache)) - ) && - ( - this.CacheDuration == input.CacheDuration || - (this.CacheDuration != null && - this.CacheDuration.Equals(input.CacheDuration)) - ) && - ( - this.Conditions == input.Conditions || - this.Conditions != null && - this.Conditions.SequenceEqual(input.Conditions) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.SqlConnectionId != null) - hashCode = hashCode * 59 + this.SqlConnectionId.GetHashCode(); - if (this.Context != null) - hashCode = hashCode * 59 + this.Context.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Query != null) - hashCode = hashCode * 59 + this.Query.GetHashCode(); - if (this.OrderBy != null) - hashCode = hashCode * 59 + this.OrderBy.GetHashCode(); - if (this.Formula != null) - hashCode = hashCode * 59 + this.Formula.GetHashCode(); - if (this.ReferenceId != null) - hashCode = hashCode * 59 + this.ReferenceId.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.EnableCache != null) - hashCode = hashCode * 59 + this.EnableCache.GetHashCode(); - if (this.CacheDuration != null) - hashCode = hashCode * 59 + this.CacheDuration.GetHashCode(); - if (this.Conditions != null) - hashCode = hashCode * 59 + this.Conditions.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlQueryTestDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlQueryTestDTO.cs deleted file mode 100644 index 62097b7..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SqlQueryTestDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for test sql query - /// - [DataContract] - public partial class SqlQueryTestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Sql connection identifier. - /// Sql query command. - public SqlQueryTestDTO(string sqlConnectionId = default(string), string sqlQueryCommand = default(string)) - { - this.SqlConnectionId = sqlConnectionId; - this.SqlQueryCommand = sqlQueryCommand; - } - - /// - /// Sql connection identifier - /// - /// Sql connection identifier - [DataMember(Name="sqlConnectionId", EmitDefaultValue=false)] - public string SqlConnectionId { get; set; } - - /// - /// Sql query command - /// - /// Sql query command - [DataMember(Name="sqlQueryCommand", EmitDefaultValue=false)] - public string SqlQueryCommand { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SqlQueryTestDTO {\n"); - sb.Append(" SqlConnectionId: ").Append(SqlConnectionId).Append("\n"); - sb.Append(" SqlQueryCommand: ").Append(SqlQueryCommand).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SqlQueryTestDTO); - } - - /// - /// Returns true if SqlQueryTestDTO instances are equal - /// - /// Instance of SqlQueryTestDTO to be compared - /// Boolean - public bool Equals(SqlQueryTestDTO input) - { - if (input == null) - return false; - - return - ( - this.SqlConnectionId == input.SqlConnectionId || - (this.SqlConnectionId != null && - this.SqlConnectionId.Equals(input.SqlConnectionId)) - ) && - ( - this.SqlQueryCommand == input.SqlQueryCommand || - (this.SqlQueryCommand != null && - this.SqlQueryCommand.Equals(input.SqlQueryCommand)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.SqlConnectionId != null) - hashCode = hashCode * 59 + this.SqlConnectionId.GetHashCode(); - if (this.SqlQueryCommand != null) - hashCode = hashCode * 59 + this.SqlQueryCommand.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/StampSearchFilterDto.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/StampSearchFilterDto.cs deleted file mode 100644 index e6dec9c..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/StampSearchFilterDto.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// StampSearchFilterDto - /// - [DataContract] - public partial class StampSearchFilterDto : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// stampInstanceApplied. - /// stampDefinitionId. - public StampSearchFilterDto(int? stampInstanceApplied = default(int?), string stampDefinitionId = default(string)) - { - this.StampInstanceApplied = stampInstanceApplied; - this.StampDefinitionId = stampDefinitionId; - } - - /// - /// Gets or Sets StampInstanceApplied - /// - [DataMember(Name="stampInstanceApplied", EmitDefaultValue=false)] - public int? StampInstanceApplied { get; set; } - - /// - /// Gets or Sets StampDefinitionId - /// - [DataMember(Name="stampDefinitionId", EmitDefaultValue=false)] - public string StampDefinitionId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StampSearchFilterDto {\n"); - sb.Append(" StampInstanceApplied: ").Append(StampInstanceApplied).Append("\n"); - sb.Append(" StampDefinitionId: ").Append(StampDefinitionId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StampSearchFilterDto); - } - - /// - /// Returns true if StampSearchFilterDto instances are equal - /// - /// Instance of StampSearchFilterDto to be compared - /// Boolean - public bool Equals(StampSearchFilterDto input) - { - if (input == null) - return false; - - return - ( - this.StampInstanceApplied == input.StampInstanceApplied || - (this.StampInstanceApplied != null && - this.StampInstanceApplied.Equals(input.StampInstanceApplied)) - ) && - ( - this.StampDefinitionId == input.StampDefinitionId || - (this.StampDefinitionId != null && - this.StampDefinitionId.Equals(input.StampDefinitionId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.StampInstanceApplied != null) - hashCode = hashCode * 59 + this.StampInstanceApplied.GetHashCode(); - if (this.StampDefinitionId != null) - hashCode = hashCode * 59 + this.StampDefinitionId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/StateCompleteDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/StateCompleteDTO.cs deleted file mode 100644 index 0330252..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/StateCompleteDTO.cs +++ /dev/null @@ -1,312 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for state management - /// - [DataContract] - public partial class StateCompleteDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Notify on import. - /// Enable revision. - /// Notify on review. - /// Disable editing author on overwrite or revision. - /// Allow revision on document edit. - /// Allow overwrite on document edit. - /// Notify author. - /// State description translations. - /// Identifier. - /// Description. - /// Index of Icon. - /// If user can force the state. - public StateCompleteDTO(bool? notify = default(bool?), bool? revision = default(bool?), bool? notifyOnRevision = default(bool?), bool? disableEditAuthor = default(bool?), bool? allowForceRevision = default(bool?), bool? allowForceOverwrite = default(bool?), bool? notifyAuthor = default(bool?), List translations = default(List), string id = default(string), string description = default(string), int? iconIndex = default(int?), bool? userCanForce = default(bool?)) - { - this.Notify = notify; - this.Revision = revision; - this.NotifyOnRevision = notifyOnRevision; - this.DisableEditAuthor = disableEditAuthor; - this.AllowForceRevision = allowForceRevision; - this.AllowForceOverwrite = allowForceOverwrite; - this.NotifyAuthor = notifyAuthor; - this.Translations = translations; - this.Id = id; - this.Description = description; - this.IconIndex = iconIndex; - this.UserCanForce = userCanForce; - } - - /// - /// Notify on import - /// - /// Notify on import - [DataMember(Name="notify", EmitDefaultValue=false)] - public bool? Notify { get; set; } - - /// - /// Enable revision - /// - /// Enable revision - [DataMember(Name="revision", EmitDefaultValue=false)] - public bool? Revision { get; set; } - - /// - /// Notify on review - /// - /// Notify on review - [DataMember(Name="notifyOnRevision", EmitDefaultValue=false)] - public bool? NotifyOnRevision { get; set; } - - /// - /// Disable editing author on overwrite or revision - /// - /// Disable editing author on overwrite or revision - [DataMember(Name="disableEditAuthor", EmitDefaultValue=false)] - public bool? DisableEditAuthor { get; set; } - - /// - /// Allow revision on document edit - /// - /// Allow revision on document edit - [DataMember(Name="allowForceRevision", EmitDefaultValue=false)] - public bool? AllowForceRevision { get; set; } - - /// - /// Allow overwrite on document edit - /// - /// Allow overwrite on document edit - [DataMember(Name="allowForceOverwrite", EmitDefaultValue=false)] - public bool? AllowForceOverwrite { get; set; } - - /// - /// Notify author - /// - /// Notify author - [DataMember(Name="notifyAuthor", EmitDefaultValue=false)] - public bool? NotifyAuthor { get; set; } - - /// - /// State description translations - /// - /// State description translations - [DataMember(Name="translations", EmitDefaultValue=false)] - public List Translations { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Index of Icon - /// - /// Index of Icon - [DataMember(Name="iconIndex", EmitDefaultValue=false)] - public int? IconIndex { get; set; } - - /// - /// If user can force the state - /// - /// If user can force the state - [DataMember(Name="userCanForce", EmitDefaultValue=false)] - public bool? UserCanForce { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StateCompleteDTO {\n"); - sb.Append(" Notify: ").Append(Notify).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" NotifyOnRevision: ").Append(NotifyOnRevision).Append("\n"); - sb.Append(" DisableEditAuthor: ").Append(DisableEditAuthor).Append("\n"); - sb.Append(" AllowForceRevision: ").Append(AllowForceRevision).Append("\n"); - sb.Append(" AllowForceOverwrite: ").Append(AllowForceOverwrite).Append("\n"); - sb.Append(" NotifyAuthor: ").Append(NotifyAuthor).Append("\n"); - sb.Append(" Translations: ").Append(Translations).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IconIndex: ").Append(IconIndex).Append("\n"); - sb.Append(" UserCanForce: ").Append(UserCanForce).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StateCompleteDTO); - } - - /// - /// Returns true if StateCompleteDTO instances are equal - /// - /// Instance of StateCompleteDTO to be compared - /// Boolean - public bool Equals(StateCompleteDTO input) - { - if (input == null) - return false; - - return - ( - this.Notify == input.Notify || - (this.Notify != null && - this.Notify.Equals(input.Notify)) - ) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && - ( - this.NotifyOnRevision == input.NotifyOnRevision || - (this.NotifyOnRevision != null && - this.NotifyOnRevision.Equals(input.NotifyOnRevision)) - ) && - ( - this.DisableEditAuthor == input.DisableEditAuthor || - (this.DisableEditAuthor != null && - this.DisableEditAuthor.Equals(input.DisableEditAuthor)) - ) && - ( - this.AllowForceRevision == input.AllowForceRevision || - (this.AllowForceRevision != null && - this.AllowForceRevision.Equals(input.AllowForceRevision)) - ) && - ( - this.AllowForceOverwrite == input.AllowForceOverwrite || - (this.AllowForceOverwrite != null && - this.AllowForceOverwrite.Equals(input.AllowForceOverwrite)) - ) && - ( - this.NotifyAuthor == input.NotifyAuthor || - (this.NotifyAuthor != null && - this.NotifyAuthor.Equals(input.NotifyAuthor)) - ) && - ( - this.Translations == input.Translations || - this.Translations != null && - this.Translations.SequenceEqual(input.Translations) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.IconIndex == input.IconIndex || - (this.IconIndex != null && - this.IconIndex.Equals(input.IconIndex)) - ) && - ( - this.UserCanForce == input.UserCanForce || - (this.UserCanForce != null && - this.UserCanForce.Equals(input.UserCanForce)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Notify != null) - hashCode = hashCode * 59 + this.Notify.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.NotifyOnRevision != null) - hashCode = hashCode * 59 + this.NotifyOnRevision.GetHashCode(); - if (this.DisableEditAuthor != null) - hashCode = hashCode * 59 + this.DisableEditAuthor.GetHashCode(); - if (this.AllowForceRevision != null) - hashCode = hashCode * 59 + this.AllowForceRevision.GetHashCode(); - if (this.AllowForceOverwrite != null) - hashCode = hashCode * 59 + this.AllowForceOverwrite.GetHashCode(); - if (this.NotifyAuthor != null) - hashCode = hashCode * 59 + this.NotifyAuthor.GetHashCode(); - if (this.Translations != null) - hashCode = hashCode * 59 + this.Translations.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.IconIndex != null) - hashCode = hashCode * 59 + this.IconIndex.GetHashCode(); - if (this.UserCanForce != null) - hashCode = hashCode * 59 + this.UserCanForce.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/StateDocumentTypesDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/StateDocumentTypesDTO.cs deleted file mode 100644 index a2d24a4..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/StateDocumentTypesDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document types of related to a document state - /// - [DataContract] - public partial class StateDocumentTypesDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// State. - /// Document Type. - public StateDocumentTypesDTO(StateSimpleDTO state = default(StateSimpleDTO), List documentTypes = default(List)) - { - this.State = state; - this.DocumentTypes = documentTypes; - } - - /// - /// State - /// - /// State - [DataMember(Name="state", EmitDefaultValue=false)] - public StateSimpleDTO State { get; set; } - - /// - /// Document Type - /// - /// Document Type - [DataMember(Name="documentTypes", EmitDefaultValue=false)] - public List DocumentTypes { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StateDocumentTypesDTO {\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" DocumentTypes: ").Append(DocumentTypes).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StateDocumentTypesDTO); - } - - /// - /// Returns true if StateDocumentTypesDTO instances are equal - /// - /// Instance of StateDocumentTypesDTO to be compared - /// Boolean - public bool Equals(StateDocumentTypesDTO input) - { - if (input == null) - return false; - - return - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && - ( - this.DocumentTypes == input.DocumentTypes || - this.DocumentTypes != null && - this.DocumentTypes.SequenceEqual(input.DocumentTypes) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.DocumentTypes != null) - hashCode = hashCode * 59 + this.DocumentTypes.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/StateFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/StateFieldDTO.cs deleted file mode 100644 index cb32af8..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/StateFieldDTO.cs +++ /dev/null @@ -1,149 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// State of document - /// - [DataContract] - public partial class StateFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected StateFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// State description. - /// State value. - public StateFieldDTO(string displayValue = default(string), string value = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "StateFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.DisplayValue = displayValue; - this.Value = value; - } - - /// - /// State description - /// - /// State description - [DataMember(Name="displayValue", EmitDefaultValue=false)] - public string DisplayValue { get; set; } - - /// - /// State value - /// - /// State value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StateFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DisplayValue: ").Append(DisplayValue).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StateFieldDTO); - } - - /// - /// Returns true if StateFieldDTO instances are equal - /// - /// Instance of StateFieldDTO to be compared - /// Boolean - public bool Equals(StateFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DisplayValue == input.DisplayValue || - (this.DisplayValue != null && - this.DisplayValue.Equals(input.DisplayValue)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DisplayValue != null) - hashCode = hashCode * 59 + this.DisplayValue.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/StatePermissionsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/StatePermissionsDTO.cs deleted file mode 100644 index a1a009d..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/StatePermissionsDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of state permissions - /// - [DataContract] - public partial class StatePermissionsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// State. - /// Permissions. - public StatePermissionsDTO(StateSimpleDTO state = default(StateSimpleDTO), PermissionsDTO permissions = default(PermissionsDTO)) - { - this.State = state; - this.Permissions = permissions; - } - - /// - /// State - /// - /// State - [DataMember(Name="state", EmitDefaultValue=false)] - public StateSimpleDTO State { get; set; } - - /// - /// Permissions - /// - /// Permissions - [DataMember(Name="permissions", EmitDefaultValue=false)] - public PermissionsDTO Permissions { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StatePermissionsDTO {\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" Permissions: ").Append(Permissions).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StatePermissionsDTO); - } - - /// - /// Returns true if StatePermissionsDTO instances are equal - /// - /// Instance of StatePermissionsDTO to be compared - /// Boolean - public bool Equals(StatePermissionsDTO input) - { - if (input == null) - return false; - - return - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && - ( - this.Permissions == input.Permissions || - (this.Permissions != null && - this.Permissions.Equals(input.Permissions)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.Permissions != null) - hashCode = hashCode * 59 + this.Permissions.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/StateSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/StateSimpleDTO.cs deleted file mode 100644 index 06a550e..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/StateSimpleDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of state simple - /// - [DataContract] - public partial class StateSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - public StateSimpleDTO(string id = default(string), string description = default(string)) - { - this.Id = id; - this.Description = description; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StateSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StateSimpleDTO); - } - - /// - /// Returns true if StateSimpleDTO instances are equal - /// - /// Instance of StateSimpleDTO to be compared - /// Boolean - public bool Equals(StateSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/StateTranslationsDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/StateTranslationsDTO.cs deleted file mode 100644 index 8fd20ee..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/StateTranslationsDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of state translations - /// - [DataContract] - public partial class StateTranslationsDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Original label to translate. - /// Language code. - /// Translation. - public StateTranslationsDTO(string field = default(string), string langCode = default(string), string value = default(string)) - { - this.Field = field; - this.LangCode = langCode; - this.Value = value; - } - - /// - /// Original label to translate - /// - /// Original label to translate - [DataMember(Name="field", EmitDefaultValue=false)] - public string Field { get; set; } - - /// - /// Language code - /// - /// Language code - [DataMember(Name="langCode", EmitDefaultValue=false)] - public string LangCode { get; set; } - - /// - /// Translation - /// - /// Translation - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StateTranslationsDTO {\n"); - sb.Append(" Field: ").Append(Field).Append("\n"); - sb.Append(" LangCode: ").Append(LangCode).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StateTranslationsDTO); - } - - /// - /// Returns true if StateTranslationsDTO instances are equal - /// - /// Instance of StateTranslationsDTO to be compared - /// Boolean - public bool Equals(StateTranslationsDTO input) - { - if (input == null) - return false; - - return - ( - this.Field == input.Field || - (this.Field != null && - this.Field.Equals(input.Field)) - ) && - ( - this.LangCode == input.LangCode || - (this.LangCode != null && - this.LangCode.Equals(input.LangCode)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Field != null) - hashCode = hashCode * 59 + this.Field.GetHashCode(); - if (this.LangCode != null) - hashCode = hashCode * 59 + this.LangCode.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/StringFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/StringFieldDTO.cs deleted file mode 100644 index 5401c92..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/StringFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// String value - /// - [DataContract] - public partial class StringFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected StringFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Value. - public StringFieldDTO(string value = default(string), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "StringFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StringFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StringFieldDTO); - } - - /// - /// Returns true if StringFieldDTO instances are equal - /// - /// Instance of StringFieldDTO to be compared - /// Boolean - public bool Equals(StringFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/StringKeyValueDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/StringKeyValueDTO.cs deleted file mode 100644 index 70de94b..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/StringKeyValueDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// String key value - /// - [DataContract] - public partial class StringKeyValueDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// ClassName. - /// Key. - /// Value. - public StringKeyValueDTO(string className = default(string), string key = default(string), string value = default(string)) - { - this.ClassName = className; - this.Key = key; - this.Value = value; - } - - /// - /// ClassName - /// - /// ClassName - [DataMember(Name="className", EmitDefaultValue=false)] - public string ClassName { get; set; } - - /// - /// Key - /// - /// Key - [DataMember(Name="key", EmitDefaultValue=false)] - public string Key { get; set; } - - /// - /// Value - /// - /// Value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StringKeyValueDTO {\n"); - sb.Append(" ClassName: ").Append(ClassName).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StringKeyValueDTO); - } - - /// - /// Returns true if StringKeyValueDTO instances are equal - /// - /// Instance of StringKeyValueDTO to be compared - /// Boolean - public bool Equals(StringKeyValueDTO input) - { - if (input == null) - return false; - - return - ( - this.ClassName == input.ClassName || - (this.ClassName != null && - this.ClassName.Equals(input.ClassName)) - ) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ClassName != null) - hashCode = hashCode * 59 + this.ClassName.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/SubjectFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/SubjectFieldDTO.cs deleted file mode 100644 index 370a843..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/SubjectFieldDTO.cs +++ /dev/null @@ -1,149 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Subject of document - /// - [DataContract] - public partial class SubjectFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected SubjectFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// Subject value. - /// Subject value max length. - public SubjectFieldDTO(string value = default(string), int? numMaxChar = default(int?), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "SubjectFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - this.NumMaxChar = numMaxChar; - } - - /// - /// Subject value - /// - /// Subject value - [DataMember(Name="value", EmitDefaultValue=false)] - public string Value { get; set; } - - /// - /// Subject value max length - /// - /// Subject value max length - [DataMember(Name="numMaxChar", EmitDefaultValue=false)] - public int? NumMaxChar { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SubjectFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" NumMaxChar: ").Append(NumMaxChar).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SubjectFieldDTO); - } - - /// - /// Returns true if SubjectFieldDTO instances are equal - /// - /// Instance of SubjectFieldDTO to be compared - /// Boolean - public bool Equals(SubjectFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && base.Equals(input) && - ( - this.NumMaxChar == input.NumMaxChar || - (this.NumMaxChar != null && - this.NumMaxChar.Equals(input.NumMaxChar)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - if (this.NumMaxChar != null) - hashCode = hashCode * 59 + this.NumMaxChar.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ToFieldDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ToFieldDTO.cs deleted file mode 100644 index 40165b9..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ToFieldDTO.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class to - /// - [DataContract] - public partial class ToFieldDTO : FieldBaseDTO, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ToFieldDTO() { } - /// - /// Initializes a new instance of the class. - /// - /// To List value. - public ToFieldDTO(List value = default(List), string name = default(string), string externalId = default(string), string description = default(string), int? order = default(int?), string dataSource = default(string), bool? required = default(bool?), string formula = default(string), string className = "ToFieldDTO", bool? locked = default(bool?), string comboGruppiId = default(string), List dependencyFields = default(List), List associations = default(List), bool? isAdditional = default(bool?), bool? visible = default(bool?), string predefinedProfileFormula = default(string), string visibilityCondition = default(string), string mandatoryCondition = default(string), int? addressBookDefaultFilter = default(int?), List enabledAddressBook = default(List), int? columns = default(int?)) : base(name, externalId, description, order, dataSource, required, formula, className, locked, comboGruppiId, dependencyFields, associations, isAdditional, visible, predefinedProfileFormula, visibilityCondition, mandatoryCondition, addressBookDefaultFilter, enabledAddressBook, columns) - { - this.Value = value; - } - - /// - /// To List value - /// - /// To List value - [DataMember(Name="value", EmitDefaultValue=false)] - public List Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ToFieldDTO {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ToFieldDTO); - } - - /// - /// Returns true if ToFieldDTO instances are equal - /// - /// Instance of ToFieldDTO to be compared - /// Boolean - public bool Equals(ToFieldDTO input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Value == input.Value || - this.Value != null && - this.Value.SequenceEqual(input.Value) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UniquenessRulesDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UniquenessRulesDTO.cs deleted file mode 100644 index 105dd98..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UniquenessRulesDTO.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type: uniqueness rules - /// - [DataContract] - public partial class UniquenessRulesDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document type. - /// Possible values: 0: AskToUser 1: ByState . - /// Possible values: 0: UseNewValues 1: KeepOldValuesIfEmpty . - /// Fields. - public UniquenessRulesDTO(DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), int? profilationOption = default(int?), int? runMode = default(int?), List fields = default(List)) - { - this.DocumentType = documentType; - this.ProfilationOption = profilationOption; - this.RunMode = runMode; - this.Fields = fields; - } - - /// - /// Document type - /// - /// Document type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Possible values: 0: AskToUser 1: ByState - /// - /// Possible values: 0: AskToUser 1: ByState - [DataMember(Name="profilationOption", EmitDefaultValue=false)] - public int? ProfilationOption { get; set; } - - /// - /// Possible values: 0: UseNewValues 1: KeepOldValuesIfEmpty - /// - /// Possible values: 0: UseNewValues 1: KeepOldValuesIfEmpty - [DataMember(Name="runMode", EmitDefaultValue=false)] - public int? RunMode { get; set; } - - /// - /// Fields - /// - /// Fields - [DataMember(Name="fields", EmitDefaultValue=false)] - public List Fields { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UniquenessRulesDTO {\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" ProfilationOption: ").Append(ProfilationOption).Append("\n"); - sb.Append(" RunMode: ").Append(RunMode).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UniquenessRulesDTO); - } - - /// - /// Returns true if UniquenessRulesDTO instances are equal - /// - /// Instance of UniquenessRulesDTO to be compared - /// Boolean - public bool Equals(UniquenessRulesDTO input) - { - if (input == null) - return false; - - return - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.ProfilationOption == input.ProfilationOption || - (this.ProfilationOption != null && - this.ProfilationOption.Equals(input.ProfilationOption)) - ) && - ( - this.RunMode == input.RunMode || - (this.RunMode != null && - this.RunMode.Equals(input.RunMode)) - ) && - ( - this.Fields == input.Fields || - this.Fields != null && - this.Fields.SequenceEqual(input.Fields) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.ProfilationOption != null) - hashCode = hashCode * 59 + this.ProfilationOption.GetHashCode(); - if (this.RunMode != null) - hashCode = hashCode * 59 + this.RunMode.GetHashCode(); - if (this.Fields != null) - hashCode = hashCode * 59 + this.Fields.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserCompleteDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UserCompleteDTO.cs deleted file mode 100644 index f8917e1..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserCompleteDTO.cs +++ /dev/null @@ -1,1060 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Base class of user with identifier - /// - [DataContract] - public partial class UserCompleteDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// New Password. - /// Predefined Profile Identifier. - /// Count of the failed attempts to change password. - /// Last failed Attempt to change password. - /// Ip Address used by failed change password. - /// User Date Blocked. - /// Full Name. - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler . - /// Description. - /// Email. - /// Business Unit. - /// Password. - /// Default Document Type of First Level. - /// Default Document Type of Second Level. - /// Default Document Type of Third Level. - /// Personal Fax. - /// Date of last reading email. - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D . - /// Enabling Workflow Management. - /// Default Document Status. - /// Enabling to insert new address book items into profiling. - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto . - /// Email Server. - /// Access via Web. - /// Enabled to Import. - /// Enabled to OCR. - /// Enabled to Workflow. - /// Enabled to Sign. - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal . - /// Enabled to Public Amministration (PA) Protocol. - /// Enabled to Templates. - /// Domain. - /// Out Status. - /// Email Body. - /// Enabled to Notify. - /// Mailer client. - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione . - /// Person in Charge of AOS. - /// Enabled to Profile Manual Emails. - /// Fiscal Code. - /// Pin. - /// Guest. - /// Change Password. - /// Imagine for the Digital Signature. - /// Type. - /// Enabled to Profile Manual Outgoing Emails. - /// Enabled to Barcode. - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew . - /// Language. - /// Enabled to IX service.. - /// Disabled Expired Password. - /// Full Description. - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Enable the user to view the workflow information. - public UserCompleteDTO(int? user = default(int?), string passwordNew = default(string), int? profileDefaultId = default(int?), int? pswFailCount = default(int?), DateTime? pswLastFailDate = default(DateTime?), string pswFailIpCaller = default(string), DateTime? lockOutDateTimeUtc = default(DateTime?), string completeName = default(string), int? group = default(int?), string description = default(string), string email = default(string), string businessUnit = default(string), string password = default(string), int? defaultType = default(int?), int? type2 = default(int?), int? type3 = default(int?), string internalFax = default(string), DateTime? lastMail = default(DateTime?), int? category = default(int?), bool? workflow = default(bool?), string defaultState = default(string), bool? addressBook = default(bool?), int? userState = default(int?), string mailServer = default(string), bool? webAccess = default(bool?), bool? upload = default(bool?), bool? folders = default(bool?), bool? flow = default(bool?), bool? sign = default(bool?), int? viewer = default(int?), bool? protocol = default(bool?), bool? models = default(bool?), string domain = default(string), string outState = default(string), string mailBody = default(string), bool? notify = default(bool?), string mailClient = default(string), int? htmlBody = default(int?), bool? respAos = default(bool?), bool? assAos = default(bool?), string codFis = default(string), string pin = default(string), bool? guest = default(bool?), bool? passwordChange = default(bool?), byte[] marking = default(byte[]), int? type = default(int?), bool? mailOutDefault = default(bool?), bool? barcodeAccess = default(bool?), int? mustChangePassword = default(int?), string lang = default(string), bool? ws = default(bool?), bool? disablePswExpired = default(bool?), string completeDescription = default(string), int? canAddVirtualStamps = default(int?), int? canApplyStaps = default(int?), bool? viewFlow = default(bool?)) - { - this.User = user; - this.PasswordNew = passwordNew; - this.ProfileDefaultId = profileDefaultId; - this.PswFailCount = pswFailCount; - this.PswLastFailDate = pswLastFailDate; - this.PswFailIpCaller = pswFailIpCaller; - this.LockOutDateTimeUtc = lockOutDateTimeUtc; - this.CompleteName = completeName; - this.Group = group; - this.Description = description; - this.Email = email; - this.BusinessUnit = businessUnit; - this.Password = password; - this.DefaultType = defaultType; - this.Type2 = type2; - this.Type3 = type3; - this.InternalFax = internalFax; - this.LastMail = lastMail; - this.Category = category; - this.Workflow = workflow; - this.DefaultState = defaultState; - this.AddressBook = addressBook; - this.UserState = userState; - this.MailServer = mailServer; - this.WebAccess = webAccess; - this.Upload = upload; - this.Folders = folders; - this.Flow = flow; - this.Sign = sign; - this.Viewer = viewer; - this.Protocol = protocol; - this.Models = models; - this.Domain = domain; - this.OutState = outState; - this.MailBody = mailBody; - this.Notify = notify; - this.MailClient = mailClient; - this.HtmlBody = htmlBody; - this.RespAos = respAos; - this.AssAos = assAos; - this.CodFis = codFis; - this.Pin = pin; - this.Guest = guest; - this.PasswordChange = passwordChange; - this.Marking = marking; - this.Type = type; - this.MailOutDefault = mailOutDefault; - this.BarcodeAccess = barcodeAccess; - this.MustChangePassword = mustChangePassword; - this.Lang = lang; - this.Ws = ws; - this.DisablePswExpired = disablePswExpired; - this.CompleteDescription = completeDescription; - this.CanAddVirtualStamps = canAddVirtualStamps; - this.CanApplyStaps = canApplyStaps; - this.ViewFlow = viewFlow; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// New Password - /// - /// New Password - [DataMember(Name="passwordNew", EmitDefaultValue=false)] - public string PasswordNew { get; set; } - - /// - /// Predefined Profile Identifier - /// - /// Predefined Profile Identifier - [DataMember(Name="profileDefault_Id", EmitDefaultValue=false)] - public int? ProfileDefaultId { get; set; } - - /// - /// Count of the failed attempts to change password - /// - /// Count of the failed attempts to change password - [DataMember(Name="pswFailCount", EmitDefaultValue=false)] - public int? PswFailCount { get; set; } - - /// - /// Last failed Attempt to change password - /// - /// Last failed Attempt to change password - [DataMember(Name="pswLastFailDate", EmitDefaultValue=false)] - public DateTime? PswLastFailDate { get; set; } - - /// - /// Ip Address used by failed change password - /// - /// Ip Address used by failed change password - [DataMember(Name="pswFailIpCaller", EmitDefaultValue=false)] - public string PswFailIpCaller { get; set; } - - /// - /// User Date Blocked - /// - /// User Date Blocked - [DataMember(Name="lockOutDateTimeUtc", EmitDefaultValue=false)] - public DateTime? LockOutDateTimeUtc { get; set; } - - /// - /// Full Name - /// - /// Full Name - [DataMember(Name="completeName", EmitDefaultValue=false)] - public string CompleteName { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - [DataMember(Name="group", EmitDefaultValue=false)] - public int? Group { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Business Unit - /// - /// Business Unit - [DataMember(Name="businessUnit", EmitDefaultValue=false)] - public string BusinessUnit { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Default Document Type of First Level - /// - /// Default Document Type of First Level - [DataMember(Name="defaultType", EmitDefaultValue=false)] - public int? DefaultType { get; set; } - - /// - /// Default Document Type of Second Level - /// - /// Default Document Type of Second Level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Default Document Type of Third Level - /// - /// Default Document Type of Third Level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Personal Fax - /// - /// Personal Fax - [DataMember(Name="internalFax", EmitDefaultValue=false)] - public string InternalFax { get; set; } - - /// - /// Date of last reading email - /// - /// Date of last reading email - [DataMember(Name="lastMail", EmitDefaultValue=false)] - public DateTime? LastMail { get; set; } - - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - [DataMember(Name="category", EmitDefaultValue=false)] - public int? Category { get; set; } - - /// - /// Enabling Workflow Management - /// - /// Enabling Workflow Management - [DataMember(Name="workflow", EmitDefaultValue=false)] - public bool? Workflow { get; set; } - - /// - /// Default Document Status - /// - /// Default Document Status - [DataMember(Name="defaultState", EmitDefaultValue=false)] - public string DefaultState { get; set; } - - /// - /// Enabling to insert new address book items into profiling - /// - /// Enabling to insert new address book items into profiling - [DataMember(Name="addressBook", EmitDefaultValue=false)] - public bool? AddressBook { get; set; } - - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - [DataMember(Name="userState", EmitDefaultValue=false)] - public int? UserState { get; set; } - - /// - /// Email Server - /// - /// Email Server - [DataMember(Name="mailServer", EmitDefaultValue=false)] - public string MailServer { get; set; } - - /// - /// Access via Web - /// - /// Access via Web - [DataMember(Name="webAccess", EmitDefaultValue=false)] - public bool? WebAccess { get; set; } - - /// - /// Enabled to Import - /// - /// Enabled to Import - [DataMember(Name="upload", EmitDefaultValue=false)] - public bool? Upload { get; set; } - - /// - /// Enabled to OCR - /// - /// Enabled to OCR - [DataMember(Name="folders", EmitDefaultValue=false)] - public bool? Folders { get; set; } - - /// - /// Enabled to Workflow - /// - /// Enabled to Workflow - [DataMember(Name="flow", EmitDefaultValue=false)] - public bool? Flow { get; set; } - - /// - /// Enabled to Sign - /// - /// Enabled to Sign - [DataMember(Name="sign", EmitDefaultValue=false)] - public bool? Sign { get; set; } - - /// - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal - /// - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal - [DataMember(Name="viewer", EmitDefaultValue=false)] - public int? Viewer { get; set; } - - /// - /// Enabled to Public Amministration (PA) Protocol - /// - /// Enabled to Public Amministration (PA) Protocol - [DataMember(Name="protocol", EmitDefaultValue=false)] - public bool? Protocol { get; set; } - - /// - /// Enabled to Templates - /// - /// Enabled to Templates - [DataMember(Name="models", EmitDefaultValue=false)] - public bool? Models { get; set; } - - /// - /// Domain - /// - /// Domain - [DataMember(Name="domain", EmitDefaultValue=false)] - public string Domain { get; set; } - - /// - /// Out Status - /// - /// Out Status - [DataMember(Name="outState", EmitDefaultValue=false)] - public string OutState { get; set; } - - /// - /// Email Body - /// - /// Email Body - [DataMember(Name="mailBody", EmitDefaultValue=false)] - public string MailBody { get; set; } - - /// - /// Enabled to Notify - /// - /// Enabled to Notify - [DataMember(Name="notify", EmitDefaultValue=false)] - public bool? Notify { get; set; } - - /// - /// Mailer client - /// - /// Mailer client - [DataMember(Name="mailClient", EmitDefaultValue=false)] - public string MailClient { get; set; } - - /// - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione - /// - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione - [DataMember(Name="htmlBody", EmitDefaultValue=false)] - public int? HtmlBody { get; set; } - - /// - /// Person in Charge of AOS - /// - /// Person in Charge of AOS - [DataMember(Name="respAos", EmitDefaultValue=false)] - public bool? RespAos { get; set; } - - /// - /// Enabled to Profile Manual Emails - /// - /// Enabled to Profile Manual Emails - [DataMember(Name="assAos", EmitDefaultValue=false)] - public bool? AssAos { get; set; } - - /// - /// Fiscal Code - /// - /// Fiscal Code - [DataMember(Name="codFis", EmitDefaultValue=false)] - public string CodFis { get; set; } - - /// - /// Pin - /// - /// Pin - [DataMember(Name="pin", EmitDefaultValue=false)] - public string Pin { get; set; } - - /// - /// Guest - /// - /// Guest - [DataMember(Name="guest", EmitDefaultValue=false)] - public bool? Guest { get; set; } - - /// - /// Change Password - /// - /// Change Password - [DataMember(Name="passwordChange", EmitDefaultValue=false)] - public bool? PasswordChange { get; set; } - - /// - /// Imagine for the Digital Signature - /// - /// Imagine for the Digital Signature - [DataMember(Name="marking", EmitDefaultValue=false)] - public byte[] Marking { get; set; } - - /// - /// Type - /// - /// Type - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Enabled to Profile Manual Outgoing Emails - /// - /// Enabled to Profile Manual Outgoing Emails - [DataMember(Name="mailOutDefault", EmitDefaultValue=false)] - public bool? MailOutDefault { get; set; } - - /// - /// Enabled to Barcode - /// - /// Enabled to Barcode - [DataMember(Name="barcodeAccess", EmitDefaultValue=false)] - public bool? BarcodeAccess { get; set; } - - /// - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew - /// - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew - [DataMember(Name="mustChangePassword", EmitDefaultValue=false)] - public int? MustChangePassword { get; set; } - - /// - /// Language - /// - /// Language - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Enabled to IX service. - /// - /// Enabled to IX service. - [DataMember(Name="ws", EmitDefaultValue=false)] - public bool? Ws { get; set; } - - /// - /// Disabled Expired Password - /// - /// Disabled Expired Password - [DataMember(Name="disablePswExpired", EmitDefaultValue=false)] - public bool? DisablePswExpired { get; set; } - - /// - /// Full Description - /// - /// Full Description - [DataMember(Name="completeDescription", EmitDefaultValue=false)] - public string CompleteDescription { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canAddVirtualStamps", EmitDefaultValue=false)] - public int? CanAddVirtualStamps { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canApplyStaps", EmitDefaultValue=false)] - public int? CanApplyStaps { get; set; } - - /// - /// Enable the user to view the workflow information - /// - /// Enable the user to view the workflow information - [DataMember(Name="viewFlow", EmitDefaultValue=false)] - public bool? ViewFlow { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserCompleteDTO {\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" PasswordNew: ").Append(PasswordNew).Append("\n"); - sb.Append(" ProfileDefaultId: ").Append(ProfileDefaultId).Append("\n"); - sb.Append(" PswFailCount: ").Append(PswFailCount).Append("\n"); - sb.Append(" PswLastFailDate: ").Append(PswLastFailDate).Append("\n"); - sb.Append(" PswFailIpCaller: ").Append(PswFailIpCaller).Append("\n"); - sb.Append(" LockOutDateTimeUtc: ").Append(LockOutDateTimeUtc).Append("\n"); - sb.Append(" CompleteName: ").Append(CompleteName).Append("\n"); - sb.Append(" Group: ").Append(Group).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" DefaultType: ").Append(DefaultType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append(" InternalFax: ").Append(InternalFax).Append("\n"); - sb.Append(" LastMail: ").Append(LastMail).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" Workflow: ").Append(Workflow).Append("\n"); - sb.Append(" DefaultState: ").Append(DefaultState).Append("\n"); - sb.Append(" AddressBook: ").Append(AddressBook).Append("\n"); - sb.Append(" UserState: ").Append(UserState).Append("\n"); - sb.Append(" MailServer: ").Append(MailServer).Append("\n"); - sb.Append(" WebAccess: ").Append(WebAccess).Append("\n"); - sb.Append(" Upload: ").Append(Upload).Append("\n"); - sb.Append(" Folders: ").Append(Folders).Append("\n"); - sb.Append(" Flow: ").Append(Flow).Append("\n"); - sb.Append(" Sign: ").Append(Sign).Append("\n"); - sb.Append(" Viewer: ").Append(Viewer).Append("\n"); - sb.Append(" Protocol: ").Append(Protocol).Append("\n"); - sb.Append(" Models: ").Append(Models).Append("\n"); - sb.Append(" Domain: ").Append(Domain).Append("\n"); - sb.Append(" OutState: ").Append(OutState).Append("\n"); - sb.Append(" MailBody: ").Append(MailBody).Append("\n"); - sb.Append(" Notify: ").Append(Notify).Append("\n"); - sb.Append(" MailClient: ").Append(MailClient).Append("\n"); - sb.Append(" HtmlBody: ").Append(HtmlBody).Append("\n"); - sb.Append(" RespAos: ").Append(RespAos).Append("\n"); - sb.Append(" AssAos: ").Append(AssAos).Append("\n"); - sb.Append(" CodFis: ").Append(CodFis).Append("\n"); - sb.Append(" Pin: ").Append(Pin).Append("\n"); - sb.Append(" Guest: ").Append(Guest).Append("\n"); - sb.Append(" PasswordChange: ").Append(PasswordChange).Append("\n"); - sb.Append(" Marking: ").Append(Marking).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" MailOutDefault: ").Append(MailOutDefault).Append("\n"); - sb.Append(" BarcodeAccess: ").Append(BarcodeAccess).Append("\n"); - sb.Append(" MustChangePassword: ").Append(MustChangePassword).Append("\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append(" Ws: ").Append(Ws).Append("\n"); - sb.Append(" DisablePswExpired: ").Append(DisablePswExpired).Append("\n"); - sb.Append(" CompleteDescription: ").Append(CompleteDescription).Append("\n"); - sb.Append(" CanAddVirtualStamps: ").Append(CanAddVirtualStamps).Append("\n"); - sb.Append(" CanApplyStaps: ").Append(CanApplyStaps).Append("\n"); - sb.Append(" ViewFlow: ").Append(ViewFlow).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserCompleteDTO); - } - - /// - /// Returns true if UserCompleteDTO instances are equal - /// - /// Instance of UserCompleteDTO to be compared - /// Boolean - public bool Equals(UserCompleteDTO input) - { - if (input == null) - return false; - - return - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.PasswordNew == input.PasswordNew || - (this.PasswordNew != null && - this.PasswordNew.Equals(input.PasswordNew)) - ) && - ( - this.ProfileDefaultId == input.ProfileDefaultId || - (this.ProfileDefaultId != null && - this.ProfileDefaultId.Equals(input.ProfileDefaultId)) - ) && - ( - this.PswFailCount == input.PswFailCount || - (this.PswFailCount != null && - this.PswFailCount.Equals(input.PswFailCount)) - ) && - ( - this.PswLastFailDate == input.PswLastFailDate || - (this.PswLastFailDate != null && - this.PswLastFailDate.Equals(input.PswLastFailDate)) - ) && - ( - this.PswFailIpCaller == input.PswFailIpCaller || - (this.PswFailIpCaller != null && - this.PswFailIpCaller.Equals(input.PswFailIpCaller)) - ) && - ( - this.LockOutDateTimeUtc == input.LockOutDateTimeUtc || - (this.LockOutDateTimeUtc != null && - this.LockOutDateTimeUtc.Equals(input.LockOutDateTimeUtc)) - ) && - ( - this.CompleteName == input.CompleteName || - (this.CompleteName != null && - this.CompleteName.Equals(input.CompleteName)) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.BusinessUnit == input.BusinessUnit || - (this.BusinessUnit != null && - this.BusinessUnit.Equals(input.BusinessUnit)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.DefaultType == input.DefaultType || - (this.DefaultType != null && - this.DefaultType.Equals(input.DefaultType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ) && - ( - this.InternalFax == input.InternalFax || - (this.InternalFax != null && - this.InternalFax.Equals(input.InternalFax)) - ) && - ( - this.LastMail == input.LastMail || - (this.LastMail != null && - this.LastMail.Equals(input.LastMail)) - ) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && - ( - this.Workflow == input.Workflow || - (this.Workflow != null && - this.Workflow.Equals(input.Workflow)) - ) && - ( - this.DefaultState == input.DefaultState || - (this.DefaultState != null && - this.DefaultState.Equals(input.DefaultState)) - ) && - ( - this.AddressBook == input.AddressBook || - (this.AddressBook != null && - this.AddressBook.Equals(input.AddressBook)) - ) && - ( - this.UserState == input.UserState || - (this.UserState != null && - this.UserState.Equals(input.UserState)) - ) && - ( - this.MailServer == input.MailServer || - (this.MailServer != null && - this.MailServer.Equals(input.MailServer)) - ) && - ( - this.WebAccess == input.WebAccess || - (this.WebAccess != null && - this.WebAccess.Equals(input.WebAccess)) - ) && - ( - this.Upload == input.Upload || - (this.Upload != null && - this.Upload.Equals(input.Upload)) - ) && - ( - this.Folders == input.Folders || - (this.Folders != null && - this.Folders.Equals(input.Folders)) - ) && - ( - this.Flow == input.Flow || - (this.Flow != null && - this.Flow.Equals(input.Flow)) - ) && - ( - this.Sign == input.Sign || - (this.Sign != null && - this.Sign.Equals(input.Sign)) - ) && - ( - this.Viewer == input.Viewer || - (this.Viewer != null && - this.Viewer.Equals(input.Viewer)) - ) && - ( - this.Protocol == input.Protocol || - (this.Protocol != null && - this.Protocol.Equals(input.Protocol)) - ) && - ( - this.Models == input.Models || - (this.Models != null && - this.Models.Equals(input.Models)) - ) && - ( - this.Domain == input.Domain || - (this.Domain != null && - this.Domain.Equals(input.Domain)) - ) && - ( - this.OutState == input.OutState || - (this.OutState != null && - this.OutState.Equals(input.OutState)) - ) && - ( - this.MailBody == input.MailBody || - (this.MailBody != null && - this.MailBody.Equals(input.MailBody)) - ) && - ( - this.Notify == input.Notify || - (this.Notify != null && - this.Notify.Equals(input.Notify)) - ) && - ( - this.MailClient == input.MailClient || - (this.MailClient != null && - this.MailClient.Equals(input.MailClient)) - ) && - ( - this.HtmlBody == input.HtmlBody || - (this.HtmlBody != null && - this.HtmlBody.Equals(input.HtmlBody)) - ) && - ( - this.RespAos == input.RespAos || - (this.RespAos != null && - this.RespAos.Equals(input.RespAos)) - ) && - ( - this.AssAos == input.AssAos || - (this.AssAos != null && - this.AssAos.Equals(input.AssAos)) - ) && - ( - this.CodFis == input.CodFis || - (this.CodFis != null && - this.CodFis.Equals(input.CodFis)) - ) && - ( - this.Pin == input.Pin || - (this.Pin != null && - this.Pin.Equals(input.Pin)) - ) && - ( - this.Guest == input.Guest || - (this.Guest != null && - this.Guest.Equals(input.Guest)) - ) && - ( - this.PasswordChange == input.PasswordChange || - (this.PasswordChange != null && - this.PasswordChange.Equals(input.PasswordChange)) - ) && - ( - this.Marking == input.Marking || - (this.Marking != null && - this.Marking.Equals(input.Marking)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.MailOutDefault == input.MailOutDefault || - (this.MailOutDefault != null && - this.MailOutDefault.Equals(input.MailOutDefault)) - ) && - ( - this.BarcodeAccess == input.BarcodeAccess || - (this.BarcodeAccess != null && - this.BarcodeAccess.Equals(input.BarcodeAccess)) - ) && - ( - this.MustChangePassword == input.MustChangePassword || - (this.MustChangePassword != null && - this.MustChangePassword.Equals(input.MustChangePassword)) - ) && - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ) && - ( - this.Ws == input.Ws || - (this.Ws != null && - this.Ws.Equals(input.Ws)) - ) && - ( - this.DisablePswExpired == input.DisablePswExpired || - (this.DisablePswExpired != null && - this.DisablePswExpired.Equals(input.DisablePswExpired)) - ) && - ( - this.CompleteDescription == input.CompleteDescription || - (this.CompleteDescription != null && - this.CompleteDescription.Equals(input.CompleteDescription)) - ) && - ( - this.CanAddVirtualStamps == input.CanAddVirtualStamps || - (this.CanAddVirtualStamps != null && - this.CanAddVirtualStamps.Equals(input.CanAddVirtualStamps)) - ) && - ( - this.CanApplyStaps == input.CanApplyStaps || - (this.CanApplyStaps != null && - this.CanApplyStaps.Equals(input.CanApplyStaps)) - ) && - ( - this.ViewFlow == input.ViewFlow || - (this.ViewFlow != null && - this.ViewFlow.Equals(input.ViewFlow)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.PasswordNew != null) - hashCode = hashCode * 59 + this.PasswordNew.GetHashCode(); - if (this.ProfileDefaultId != null) - hashCode = hashCode * 59 + this.ProfileDefaultId.GetHashCode(); - if (this.PswFailCount != null) - hashCode = hashCode * 59 + this.PswFailCount.GetHashCode(); - if (this.PswLastFailDate != null) - hashCode = hashCode * 59 + this.PswLastFailDate.GetHashCode(); - if (this.PswFailIpCaller != null) - hashCode = hashCode * 59 + this.PswFailIpCaller.GetHashCode(); - if (this.LockOutDateTimeUtc != null) - hashCode = hashCode * 59 + this.LockOutDateTimeUtc.GetHashCode(); - if (this.CompleteName != null) - hashCode = hashCode * 59 + this.CompleteName.GetHashCode(); - if (this.Group != null) - hashCode = hashCode * 59 + this.Group.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.BusinessUnit != null) - hashCode = hashCode * 59 + this.BusinessUnit.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.DefaultType != null) - hashCode = hashCode * 59 + this.DefaultType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - if (this.InternalFax != null) - hashCode = hashCode * 59 + this.InternalFax.GetHashCode(); - if (this.LastMail != null) - hashCode = hashCode * 59 + this.LastMail.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.Workflow != null) - hashCode = hashCode * 59 + this.Workflow.GetHashCode(); - if (this.DefaultState != null) - hashCode = hashCode * 59 + this.DefaultState.GetHashCode(); - if (this.AddressBook != null) - hashCode = hashCode * 59 + this.AddressBook.GetHashCode(); - if (this.UserState != null) - hashCode = hashCode * 59 + this.UserState.GetHashCode(); - if (this.MailServer != null) - hashCode = hashCode * 59 + this.MailServer.GetHashCode(); - if (this.WebAccess != null) - hashCode = hashCode * 59 + this.WebAccess.GetHashCode(); - if (this.Upload != null) - hashCode = hashCode * 59 + this.Upload.GetHashCode(); - if (this.Folders != null) - hashCode = hashCode * 59 + this.Folders.GetHashCode(); - if (this.Flow != null) - hashCode = hashCode * 59 + this.Flow.GetHashCode(); - if (this.Sign != null) - hashCode = hashCode * 59 + this.Sign.GetHashCode(); - if (this.Viewer != null) - hashCode = hashCode * 59 + this.Viewer.GetHashCode(); - if (this.Protocol != null) - hashCode = hashCode * 59 + this.Protocol.GetHashCode(); - if (this.Models != null) - hashCode = hashCode * 59 + this.Models.GetHashCode(); - if (this.Domain != null) - hashCode = hashCode * 59 + this.Domain.GetHashCode(); - if (this.OutState != null) - hashCode = hashCode * 59 + this.OutState.GetHashCode(); - if (this.MailBody != null) - hashCode = hashCode * 59 + this.MailBody.GetHashCode(); - if (this.Notify != null) - hashCode = hashCode * 59 + this.Notify.GetHashCode(); - if (this.MailClient != null) - hashCode = hashCode * 59 + this.MailClient.GetHashCode(); - if (this.HtmlBody != null) - hashCode = hashCode * 59 + this.HtmlBody.GetHashCode(); - if (this.RespAos != null) - hashCode = hashCode * 59 + this.RespAos.GetHashCode(); - if (this.AssAos != null) - hashCode = hashCode * 59 + this.AssAos.GetHashCode(); - if (this.CodFis != null) - hashCode = hashCode * 59 + this.CodFis.GetHashCode(); - if (this.Pin != null) - hashCode = hashCode * 59 + this.Pin.GetHashCode(); - if (this.Guest != null) - hashCode = hashCode * 59 + this.Guest.GetHashCode(); - if (this.PasswordChange != null) - hashCode = hashCode * 59 + this.PasswordChange.GetHashCode(); - if (this.Marking != null) - hashCode = hashCode * 59 + this.Marking.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.MailOutDefault != null) - hashCode = hashCode * 59 + this.MailOutDefault.GetHashCode(); - if (this.BarcodeAccess != null) - hashCode = hashCode * 59 + this.BarcodeAccess.GetHashCode(); - if (this.MustChangePassword != null) - hashCode = hashCode * 59 + this.MustChangePassword.GetHashCode(); - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - if (this.Ws != null) - hashCode = hashCode * 59 + this.Ws.GetHashCode(); - if (this.DisablePswExpired != null) - hashCode = hashCode * 59 + this.DisablePswExpired.GetHashCode(); - if (this.CompleteDescription != null) - hashCode = hashCode * 59 + this.CompleteDescription.GetHashCode(); - if (this.CanAddVirtualStamps != null) - hashCode = hashCode * 59 + this.CanAddVirtualStamps.GetHashCode(); - if (this.CanApplyStaps != null) - hashCode = hashCode * 59 + this.CanApplyStaps.GetHashCode(); - if (this.ViewFlow != null) - hashCode = hashCode * 59 + this.ViewFlow.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserInsertDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UserInsertDTO.cs deleted file mode 100644 index b3cc024..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserInsertDTO.cs +++ /dev/null @@ -1,1276 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// User class for insert - /// - [DataContract] - public partial class UserInsertDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Comportamento dell'utente nel caso di impianto ad \"aoo\" bloccate.. - /// Comportamento dell'utente nel caso di archiviazione provvisoria.. - /// Abilitazione all'inserimento immediato in rubrica durante la profilazione, nel caso non esista il contatto.. - /// Abilitazione alla manutenzione delle liste di distribuzione.. - /// Possible values: 0: Selected 1: All 2: JustAddressBook . - /// Possible values: 0: None 1: Always 2: Never 3: Selected . - /// Possible values: 0: None 1: Always 2: Never 3: Selected . - /// Abilitazione alla cancellazione del profilo se associato alle mail.. - /// Se attivo impone la visualizzazione degli allegati solo in copia conforme dal Web. - /// webSearch. - /// Abilita la ricerche rapide dal WEB. - /// Abilita la casella posta dal WEB. - /// Abilita i fascicoli dal WEB. - /// Abilita le viste dal WEB. - /// Abilita la pratiche dal WEB. - /// Manutenzione lista di Checkin dal Web. - /// Dimensione massima della posta in uscita espressa in Kb. - /// mailOutDefaultType. - /// mailOutType2. - /// mailOutType3. - /// securityStateList. - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler . - /// Description. - /// Email. - /// Business Unit. - /// Password. - /// Default Document Type of First Level. - /// Default Document Type of Second Level. - /// Default Document Type of Third Level. - /// Personal Fax. - /// Date of last reading email. - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D . - /// Enabling Workflow Management. - /// Default Document Status. - /// Enabling to insert new address book items into profiling. - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto . - /// Email Server. - /// Access via Web. - /// Enabled to Import. - /// Enabled to OCR. - /// Enabled to Workflow. - /// Enabled to Sign. - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal . - /// Enabled to Public Amministration (PA) Protocol. - /// Enabled to Templates. - /// Domain. - /// Out Status. - /// Email Body. - /// Enabled to Notify. - /// Mailer client. - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione . - /// Person in Charge of AOS. - /// Enabled to Profile Manual Emails. - /// Fiscal Code. - /// Pin. - /// Guest. - /// Change Password. - /// Imagine for the Digital Signature. - /// Type. - /// Enabled to Profile Manual Outgoing Emails. - /// Enabled to Barcode. - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew . - /// Language. - /// Enabled to IX service.. - /// Disabled Expired Password. - /// Full Description. - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Enable the user to view the workflow information. - public UserInsertDTO(bool? businessUnitUserUnlock = default(bool?), bool? tempArchive = default(bool?), bool? addressBookProfile = default(bool?), bool? distributionList = default(bool?), int? mailIn = default(int?), int? mailOutStoreExt = default(int?), int? mailOutStoreIn = default(int?), bool? mailDeleteProfile = default(bool?), bool? webCompliantCopy = default(bool?), bool? webSearch = default(bool?), bool? webQuickSearch = default(bool?), bool? webMailBox = default(bool?), bool? webFolders = default(bool?), bool? webSearchViews = default(bool?), bool? webBinders = default(bool?), bool? webCheckinAdmin = default(bool?), int? mailOutMaxSize = default(int?), int? mailOutDefaultType = default(int?), int? mailOutType2 = default(int?), int? mailOutType3 = default(int?), List securityStateList = default(List), int? group = default(int?), string description = default(string), string email = default(string), string businessUnit = default(string), string password = default(string), int? defaultType = default(int?), int? type2 = default(int?), int? type3 = default(int?), string internalFax = default(string), DateTime? lastMail = default(DateTime?), int? category = default(int?), bool? workflow = default(bool?), string defaultState = default(string), bool? addressBook = default(bool?), int? userState = default(int?), string mailServer = default(string), bool? webAccess = default(bool?), bool? upload = default(bool?), bool? folders = default(bool?), bool? flow = default(bool?), bool? sign = default(bool?), int? viewer = default(int?), bool? protocol = default(bool?), bool? models = default(bool?), string domain = default(string), string outState = default(string), string mailBody = default(string), bool? notify = default(bool?), string mailClient = default(string), int? htmlBody = default(int?), bool? respAos = default(bool?), bool? assAos = default(bool?), string codFis = default(string), string pin = default(string), bool? guest = default(bool?), bool? passwordChange = default(bool?), byte[] marking = default(byte[]), int? type = default(int?), bool? mailOutDefault = default(bool?), bool? barcodeAccess = default(bool?), int? mustChangePassword = default(int?), string lang = default(string), bool? ws = default(bool?), bool? disablePswExpired = default(bool?), string completeDescription = default(string), int? canAddVirtualStamps = default(int?), int? canApplyStaps = default(int?), bool? viewFlow = default(bool?)) - { - this.BusinessUnitUserUnlock = businessUnitUserUnlock; - this.TempArchive = tempArchive; - this.AddressBookProfile = addressBookProfile; - this.DistributionList = distributionList; - this.MailIn = mailIn; - this.MailOutStoreExt = mailOutStoreExt; - this.MailOutStoreIn = mailOutStoreIn; - this.MailDeleteProfile = mailDeleteProfile; - this.WebCompliantCopy = webCompliantCopy; - this.WebSearch = webSearch; - this.WebQuickSearch = webQuickSearch; - this.WebMailBox = webMailBox; - this.WebFolders = webFolders; - this.WebSearchViews = webSearchViews; - this.WebBinders = webBinders; - this.WebCheckinAdmin = webCheckinAdmin; - this.MailOutMaxSize = mailOutMaxSize; - this.MailOutDefaultType = mailOutDefaultType; - this.MailOutType2 = mailOutType2; - this.MailOutType3 = mailOutType3; - this.SecurityStateList = securityStateList; - this.Group = group; - this.Description = description; - this.Email = email; - this.BusinessUnit = businessUnit; - this.Password = password; - this.DefaultType = defaultType; - this.Type2 = type2; - this.Type3 = type3; - this.InternalFax = internalFax; - this.LastMail = lastMail; - this.Category = category; - this.Workflow = workflow; - this.DefaultState = defaultState; - this.AddressBook = addressBook; - this.UserState = userState; - this.MailServer = mailServer; - this.WebAccess = webAccess; - this.Upload = upload; - this.Folders = folders; - this.Flow = flow; - this.Sign = sign; - this.Viewer = viewer; - this.Protocol = protocol; - this.Models = models; - this.Domain = domain; - this.OutState = outState; - this.MailBody = mailBody; - this.Notify = notify; - this.MailClient = mailClient; - this.HtmlBody = htmlBody; - this.RespAos = respAos; - this.AssAos = assAos; - this.CodFis = codFis; - this.Pin = pin; - this.Guest = guest; - this.PasswordChange = passwordChange; - this.Marking = marking; - this.Type = type; - this.MailOutDefault = mailOutDefault; - this.BarcodeAccess = barcodeAccess; - this.MustChangePassword = mustChangePassword; - this.Lang = lang; - this.Ws = ws; - this.DisablePswExpired = disablePswExpired; - this.CompleteDescription = completeDescription; - this.CanAddVirtualStamps = canAddVirtualStamps; - this.CanApplyStaps = canApplyStaps; - this.ViewFlow = viewFlow; - } - - /// - /// Comportamento dell'utente nel caso di impianto ad \"aoo\" bloccate. - /// - /// Comportamento dell'utente nel caso di impianto ad \"aoo\" bloccate. - [DataMember(Name="businessUnitUserUnlock", EmitDefaultValue=false)] - public bool? BusinessUnitUserUnlock { get; set; } - - /// - /// Comportamento dell'utente nel caso di archiviazione provvisoria. - /// - /// Comportamento dell'utente nel caso di archiviazione provvisoria. - [DataMember(Name="tempArchive", EmitDefaultValue=false)] - public bool? TempArchive { get; set; } - - /// - /// Abilitazione all'inserimento immediato in rubrica durante la profilazione, nel caso non esista il contatto. - /// - /// Abilitazione all'inserimento immediato in rubrica durante la profilazione, nel caso non esista il contatto. - [DataMember(Name="addressBookProfile", EmitDefaultValue=false)] - public bool? AddressBookProfile { get; set; } - - /// - /// Abilitazione alla manutenzione delle liste di distribuzione. - /// - /// Abilitazione alla manutenzione delle liste di distribuzione. - [DataMember(Name="distributionList", EmitDefaultValue=false)] - public bool? DistributionList { get; set; } - - /// - /// Possible values: 0: Selected 1: All 2: JustAddressBook - /// - /// Possible values: 0: Selected 1: All 2: JustAddressBook - [DataMember(Name="mailIn", EmitDefaultValue=false)] - public int? MailIn { get; set; } - - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - [DataMember(Name="mailOutStoreExt", EmitDefaultValue=false)] - public int? MailOutStoreExt { get; set; } - - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - [DataMember(Name="mailOutStoreIn", EmitDefaultValue=false)] - public int? MailOutStoreIn { get; set; } - - /// - /// Abilitazione alla cancellazione del profilo se associato alle mail. - /// - /// Abilitazione alla cancellazione del profilo se associato alle mail. - [DataMember(Name="mailDeleteProfile", EmitDefaultValue=false)] - public bool? MailDeleteProfile { get; set; } - - /// - /// Se attivo impone la visualizzazione degli allegati solo in copia conforme dal Web - /// - /// Se attivo impone la visualizzazione degli allegati solo in copia conforme dal Web - [DataMember(Name="webCompliantCopy", EmitDefaultValue=false)] - public bool? WebCompliantCopy { get; set; } - - /// - /// Gets or Sets WebSearch - /// - [DataMember(Name="webSearch", EmitDefaultValue=false)] - public bool? WebSearch { get; set; } - - /// - /// Abilita la ricerche rapide dal WEB - /// - /// Abilita la ricerche rapide dal WEB - [DataMember(Name="webQuickSearch", EmitDefaultValue=false)] - public bool? WebQuickSearch { get; set; } - - /// - /// Abilita la casella posta dal WEB - /// - /// Abilita la casella posta dal WEB - [DataMember(Name="webMailBox", EmitDefaultValue=false)] - public bool? WebMailBox { get; set; } - - /// - /// Abilita i fascicoli dal WEB - /// - /// Abilita i fascicoli dal WEB - [DataMember(Name="webFolders", EmitDefaultValue=false)] - public bool? WebFolders { get; set; } - - /// - /// Abilita le viste dal WEB - /// - /// Abilita le viste dal WEB - [DataMember(Name="webSearchViews", EmitDefaultValue=false)] - public bool? WebSearchViews { get; set; } - - /// - /// Abilita la pratiche dal WEB - /// - /// Abilita la pratiche dal WEB - [DataMember(Name="webBinders", EmitDefaultValue=false)] - public bool? WebBinders { get; set; } - - /// - /// Manutenzione lista di Checkin dal Web - /// - /// Manutenzione lista di Checkin dal Web - [DataMember(Name="webCheckinAdmin", EmitDefaultValue=false)] - public bool? WebCheckinAdmin { get; set; } - - /// - /// Dimensione massima della posta in uscita espressa in Kb - /// - /// Dimensione massima della posta in uscita espressa in Kb - [DataMember(Name="mailOutMaxSize", EmitDefaultValue=false)] - public int? MailOutMaxSize { get; set; } - - /// - /// Gets or Sets MailOutDefaultType - /// - [DataMember(Name="mailOutDefaultType", EmitDefaultValue=false)] - public int? MailOutDefaultType { get; set; } - - /// - /// Gets or Sets MailOutType2 - /// - [DataMember(Name="mailOutType2", EmitDefaultValue=false)] - public int? MailOutType2 { get; set; } - - /// - /// Gets or Sets MailOutType3 - /// - [DataMember(Name="mailOutType3", EmitDefaultValue=false)] - public int? MailOutType3 { get; set; } - - /// - /// Gets or Sets SecurityStateList - /// - [DataMember(Name="securityStateList", EmitDefaultValue=false)] - public List SecurityStateList { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - [DataMember(Name="group", EmitDefaultValue=false)] - public int? Group { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Business Unit - /// - /// Business Unit - [DataMember(Name="businessUnit", EmitDefaultValue=false)] - public string BusinessUnit { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Default Document Type of First Level - /// - /// Default Document Type of First Level - [DataMember(Name="defaultType", EmitDefaultValue=false)] - public int? DefaultType { get; set; } - - /// - /// Default Document Type of Second Level - /// - /// Default Document Type of Second Level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Default Document Type of Third Level - /// - /// Default Document Type of Third Level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Personal Fax - /// - /// Personal Fax - [DataMember(Name="internalFax", EmitDefaultValue=false)] - public string InternalFax { get; set; } - - /// - /// Date of last reading email - /// - /// Date of last reading email - [DataMember(Name="lastMail", EmitDefaultValue=false)] - public DateTime? LastMail { get; set; } - - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - [DataMember(Name="category", EmitDefaultValue=false)] - public int? Category { get; set; } - - /// - /// Enabling Workflow Management - /// - /// Enabling Workflow Management - [DataMember(Name="workflow", EmitDefaultValue=false)] - public bool? Workflow { get; set; } - - /// - /// Default Document Status - /// - /// Default Document Status - [DataMember(Name="defaultState", EmitDefaultValue=false)] - public string DefaultState { get; set; } - - /// - /// Enabling to insert new address book items into profiling - /// - /// Enabling to insert new address book items into profiling - [DataMember(Name="addressBook", EmitDefaultValue=false)] - public bool? AddressBook { get; set; } - - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - [DataMember(Name="userState", EmitDefaultValue=false)] - public int? UserState { get; set; } - - /// - /// Email Server - /// - /// Email Server - [DataMember(Name="mailServer", EmitDefaultValue=false)] - public string MailServer { get; set; } - - /// - /// Access via Web - /// - /// Access via Web - [DataMember(Name="webAccess", EmitDefaultValue=false)] - public bool? WebAccess { get; set; } - - /// - /// Enabled to Import - /// - /// Enabled to Import - [DataMember(Name="upload", EmitDefaultValue=false)] - public bool? Upload { get; set; } - - /// - /// Enabled to OCR - /// - /// Enabled to OCR - [DataMember(Name="folders", EmitDefaultValue=false)] - public bool? Folders { get; set; } - - /// - /// Enabled to Workflow - /// - /// Enabled to Workflow - [DataMember(Name="flow", EmitDefaultValue=false)] - public bool? Flow { get; set; } - - /// - /// Enabled to Sign - /// - /// Enabled to Sign - [DataMember(Name="sign", EmitDefaultValue=false)] - public bool? Sign { get; set; } - - /// - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal - /// - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal - [DataMember(Name="viewer", EmitDefaultValue=false)] - public int? Viewer { get; set; } - - /// - /// Enabled to Public Amministration (PA) Protocol - /// - /// Enabled to Public Amministration (PA) Protocol - [DataMember(Name="protocol", EmitDefaultValue=false)] - public bool? Protocol { get; set; } - - /// - /// Enabled to Templates - /// - /// Enabled to Templates - [DataMember(Name="models", EmitDefaultValue=false)] - public bool? Models { get; set; } - - /// - /// Domain - /// - /// Domain - [DataMember(Name="domain", EmitDefaultValue=false)] - public string Domain { get; set; } - - /// - /// Out Status - /// - /// Out Status - [DataMember(Name="outState", EmitDefaultValue=false)] - public string OutState { get; set; } - - /// - /// Email Body - /// - /// Email Body - [DataMember(Name="mailBody", EmitDefaultValue=false)] - public string MailBody { get; set; } - - /// - /// Enabled to Notify - /// - /// Enabled to Notify - [DataMember(Name="notify", EmitDefaultValue=false)] - public bool? Notify { get; set; } - - /// - /// Mailer client - /// - /// Mailer client - [DataMember(Name="mailClient", EmitDefaultValue=false)] - public string MailClient { get; set; } - - /// - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione - /// - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione - [DataMember(Name="htmlBody", EmitDefaultValue=false)] - public int? HtmlBody { get; set; } - - /// - /// Person in Charge of AOS - /// - /// Person in Charge of AOS - [DataMember(Name="respAos", EmitDefaultValue=false)] - public bool? RespAos { get; set; } - - /// - /// Enabled to Profile Manual Emails - /// - /// Enabled to Profile Manual Emails - [DataMember(Name="assAos", EmitDefaultValue=false)] - public bool? AssAos { get; set; } - - /// - /// Fiscal Code - /// - /// Fiscal Code - [DataMember(Name="codFis", EmitDefaultValue=false)] - public string CodFis { get; set; } - - /// - /// Pin - /// - /// Pin - [DataMember(Name="pin", EmitDefaultValue=false)] - public string Pin { get; set; } - - /// - /// Guest - /// - /// Guest - [DataMember(Name="guest", EmitDefaultValue=false)] - public bool? Guest { get; set; } - - /// - /// Change Password - /// - /// Change Password - [DataMember(Name="passwordChange", EmitDefaultValue=false)] - public bool? PasswordChange { get; set; } - - /// - /// Imagine for the Digital Signature - /// - /// Imagine for the Digital Signature - [DataMember(Name="marking", EmitDefaultValue=false)] - public byte[] Marking { get; set; } - - /// - /// Type - /// - /// Type - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Enabled to Profile Manual Outgoing Emails - /// - /// Enabled to Profile Manual Outgoing Emails - [DataMember(Name="mailOutDefault", EmitDefaultValue=false)] - public bool? MailOutDefault { get; set; } - - /// - /// Enabled to Barcode - /// - /// Enabled to Barcode - [DataMember(Name="barcodeAccess", EmitDefaultValue=false)] - public bool? BarcodeAccess { get; set; } - - /// - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew - /// - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew - [DataMember(Name="mustChangePassword", EmitDefaultValue=false)] - public int? MustChangePassword { get; set; } - - /// - /// Language - /// - /// Language - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Enabled to IX service. - /// - /// Enabled to IX service. - [DataMember(Name="ws", EmitDefaultValue=false)] - public bool? Ws { get; set; } - - /// - /// Disabled Expired Password - /// - /// Disabled Expired Password - [DataMember(Name="disablePswExpired", EmitDefaultValue=false)] - public bool? DisablePswExpired { get; set; } - - /// - /// Full Description - /// - /// Full Description - [DataMember(Name="completeDescription", EmitDefaultValue=false)] - public string CompleteDescription { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canAddVirtualStamps", EmitDefaultValue=false)] - public int? CanAddVirtualStamps { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canApplyStaps", EmitDefaultValue=false)] - public int? CanApplyStaps { get; set; } - - /// - /// Enable the user to view the workflow information - /// - /// Enable the user to view the workflow information - [DataMember(Name="viewFlow", EmitDefaultValue=false)] - public bool? ViewFlow { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserInsertDTO {\n"); - sb.Append(" BusinessUnitUserUnlock: ").Append(BusinessUnitUserUnlock).Append("\n"); - sb.Append(" TempArchive: ").Append(TempArchive).Append("\n"); - sb.Append(" AddressBookProfile: ").Append(AddressBookProfile).Append("\n"); - sb.Append(" DistributionList: ").Append(DistributionList).Append("\n"); - sb.Append(" MailIn: ").Append(MailIn).Append("\n"); - sb.Append(" MailOutStoreExt: ").Append(MailOutStoreExt).Append("\n"); - sb.Append(" MailOutStoreIn: ").Append(MailOutStoreIn).Append("\n"); - sb.Append(" MailDeleteProfile: ").Append(MailDeleteProfile).Append("\n"); - sb.Append(" WebCompliantCopy: ").Append(WebCompliantCopy).Append("\n"); - sb.Append(" WebSearch: ").Append(WebSearch).Append("\n"); - sb.Append(" WebQuickSearch: ").Append(WebQuickSearch).Append("\n"); - sb.Append(" WebMailBox: ").Append(WebMailBox).Append("\n"); - sb.Append(" WebFolders: ").Append(WebFolders).Append("\n"); - sb.Append(" WebSearchViews: ").Append(WebSearchViews).Append("\n"); - sb.Append(" WebBinders: ").Append(WebBinders).Append("\n"); - sb.Append(" WebCheckinAdmin: ").Append(WebCheckinAdmin).Append("\n"); - sb.Append(" MailOutMaxSize: ").Append(MailOutMaxSize).Append("\n"); - sb.Append(" MailOutDefaultType: ").Append(MailOutDefaultType).Append("\n"); - sb.Append(" MailOutType2: ").Append(MailOutType2).Append("\n"); - sb.Append(" MailOutType3: ").Append(MailOutType3).Append("\n"); - sb.Append(" SecurityStateList: ").Append(SecurityStateList).Append("\n"); - sb.Append(" Group: ").Append(Group).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" DefaultType: ").Append(DefaultType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append(" InternalFax: ").Append(InternalFax).Append("\n"); - sb.Append(" LastMail: ").Append(LastMail).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" Workflow: ").Append(Workflow).Append("\n"); - sb.Append(" DefaultState: ").Append(DefaultState).Append("\n"); - sb.Append(" AddressBook: ").Append(AddressBook).Append("\n"); - sb.Append(" UserState: ").Append(UserState).Append("\n"); - sb.Append(" MailServer: ").Append(MailServer).Append("\n"); - sb.Append(" WebAccess: ").Append(WebAccess).Append("\n"); - sb.Append(" Upload: ").Append(Upload).Append("\n"); - sb.Append(" Folders: ").Append(Folders).Append("\n"); - sb.Append(" Flow: ").Append(Flow).Append("\n"); - sb.Append(" Sign: ").Append(Sign).Append("\n"); - sb.Append(" Viewer: ").Append(Viewer).Append("\n"); - sb.Append(" Protocol: ").Append(Protocol).Append("\n"); - sb.Append(" Models: ").Append(Models).Append("\n"); - sb.Append(" Domain: ").Append(Domain).Append("\n"); - sb.Append(" OutState: ").Append(OutState).Append("\n"); - sb.Append(" MailBody: ").Append(MailBody).Append("\n"); - sb.Append(" Notify: ").Append(Notify).Append("\n"); - sb.Append(" MailClient: ").Append(MailClient).Append("\n"); - sb.Append(" HtmlBody: ").Append(HtmlBody).Append("\n"); - sb.Append(" RespAos: ").Append(RespAos).Append("\n"); - sb.Append(" AssAos: ").Append(AssAos).Append("\n"); - sb.Append(" CodFis: ").Append(CodFis).Append("\n"); - sb.Append(" Pin: ").Append(Pin).Append("\n"); - sb.Append(" Guest: ").Append(Guest).Append("\n"); - sb.Append(" PasswordChange: ").Append(PasswordChange).Append("\n"); - sb.Append(" Marking: ").Append(Marking).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" MailOutDefault: ").Append(MailOutDefault).Append("\n"); - sb.Append(" BarcodeAccess: ").Append(BarcodeAccess).Append("\n"); - sb.Append(" MustChangePassword: ").Append(MustChangePassword).Append("\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append(" Ws: ").Append(Ws).Append("\n"); - sb.Append(" DisablePswExpired: ").Append(DisablePswExpired).Append("\n"); - sb.Append(" CompleteDescription: ").Append(CompleteDescription).Append("\n"); - sb.Append(" CanAddVirtualStamps: ").Append(CanAddVirtualStamps).Append("\n"); - sb.Append(" CanApplyStaps: ").Append(CanApplyStaps).Append("\n"); - sb.Append(" ViewFlow: ").Append(ViewFlow).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserInsertDTO); - } - - /// - /// Returns true if UserInsertDTO instances are equal - /// - /// Instance of UserInsertDTO to be compared - /// Boolean - public bool Equals(UserInsertDTO input) - { - if (input == null) - return false; - - return - ( - this.BusinessUnitUserUnlock == input.BusinessUnitUserUnlock || - (this.BusinessUnitUserUnlock != null && - this.BusinessUnitUserUnlock.Equals(input.BusinessUnitUserUnlock)) - ) && - ( - this.TempArchive == input.TempArchive || - (this.TempArchive != null && - this.TempArchive.Equals(input.TempArchive)) - ) && - ( - this.AddressBookProfile == input.AddressBookProfile || - (this.AddressBookProfile != null && - this.AddressBookProfile.Equals(input.AddressBookProfile)) - ) && - ( - this.DistributionList == input.DistributionList || - (this.DistributionList != null && - this.DistributionList.Equals(input.DistributionList)) - ) && - ( - this.MailIn == input.MailIn || - (this.MailIn != null && - this.MailIn.Equals(input.MailIn)) - ) && - ( - this.MailOutStoreExt == input.MailOutStoreExt || - (this.MailOutStoreExt != null && - this.MailOutStoreExt.Equals(input.MailOutStoreExt)) - ) && - ( - this.MailOutStoreIn == input.MailOutStoreIn || - (this.MailOutStoreIn != null && - this.MailOutStoreIn.Equals(input.MailOutStoreIn)) - ) && - ( - this.MailDeleteProfile == input.MailDeleteProfile || - (this.MailDeleteProfile != null && - this.MailDeleteProfile.Equals(input.MailDeleteProfile)) - ) && - ( - this.WebCompliantCopy == input.WebCompliantCopy || - (this.WebCompliantCopy != null && - this.WebCompliantCopy.Equals(input.WebCompliantCopy)) - ) && - ( - this.WebSearch == input.WebSearch || - (this.WebSearch != null && - this.WebSearch.Equals(input.WebSearch)) - ) && - ( - this.WebQuickSearch == input.WebQuickSearch || - (this.WebQuickSearch != null && - this.WebQuickSearch.Equals(input.WebQuickSearch)) - ) && - ( - this.WebMailBox == input.WebMailBox || - (this.WebMailBox != null && - this.WebMailBox.Equals(input.WebMailBox)) - ) && - ( - this.WebFolders == input.WebFolders || - (this.WebFolders != null && - this.WebFolders.Equals(input.WebFolders)) - ) && - ( - this.WebSearchViews == input.WebSearchViews || - (this.WebSearchViews != null && - this.WebSearchViews.Equals(input.WebSearchViews)) - ) && - ( - this.WebBinders == input.WebBinders || - (this.WebBinders != null && - this.WebBinders.Equals(input.WebBinders)) - ) && - ( - this.WebCheckinAdmin == input.WebCheckinAdmin || - (this.WebCheckinAdmin != null && - this.WebCheckinAdmin.Equals(input.WebCheckinAdmin)) - ) && - ( - this.MailOutMaxSize == input.MailOutMaxSize || - (this.MailOutMaxSize != null && - this.MailOutMaxSize.Equals(input.MailOutMaxSize)) - ) && - ( - this.MailOutDefaultType == input.MailOutDefaultType || - (this.MailOutDefaultType != null && - this.MailOutDefaultType.Equals(input.MailOutDefaultType)) - ) && - ( - this.MailOutType2 == input.MailOutType2 || - (this.MailOutType2 != null && - this.MailOutType2.Equals(input.MailOutType2)) - ) && - ( - this.MailOutType3 == input.MailOutType3 || - (this.MailOutType3 != null && - this.MailOutType3.Equals(input.MailOutType3)) - ) && - ( - this.SecurityStateList == input.SecurityStateList || - this.SecurityStateList != null && - this.SecurityStateList.SequenceEqual(input.SecurityStateList) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.BusinessUnit == input.BusinessUnit || - (this.BusinessUnit != null && - this.BusinessUnit.Equals(input.BusinessUnit)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.DefaultType == input.DefaultType || - (this.DefaultType != null && - this.DefaultType.Equals(input.DefaultType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ) && - ( - this.InternalFax == input.InternalFax || - (this.InternalFax != null && - this.InternalFax.Equals(input.InternalFax)) - ) && - ( - this.LastMail == input.LastMail || - (this.LastMail != null && - this.LastMail.Equals(input.LastMail)) - ) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && - ( - this.Workflow == input.Workflow || - (this.Workflow != null && - this.Workflow.Equals(input.Workflow)) - ) && - ( - this.DefaultState == input.DefaultState || - (this.DefaultState != null && - this.DefaultState.Equals(input.DefaultState)) - ) && - ( - this.AddressBook == input.AddressBook || - (this.AddressBook != null && - this.AddressBook.Equals(input.AddressBook)) - ) && - ( - this.UserState == input.UserState || - (this.UserState != null && - this.UserState.Equals(input.UserState)) - ) && - ( - this.MailServer == input.MailServer || - (this.MailServer != null && - this.MailServer.Equals(input.MailServer)) - ) && - ( - this.WebAccess == input.WebAccess || - (this.WebAccess != null && - this.WebAccess.Equals(input.WebAccess)) - ) && - ( - this.Upload == input.Upload || - (this.Upload != null && - this.Upload.Equals(input.Upload)) - ) && - ( - this.Folders == input.Folders || - (this.Folders != null && - this.Folders.Equals(input.Folders)) - ) && - ( - this.Flow == input.Flow || - (this.Flow != null && - this.Flow.Equals(input.Flow)) - ) && - ( - this.Sign == input.Sign || - (this.Sign != null && - this.Sign.Equals(input.Sign)) - ) && - ( - this.Viewer == input.Viewer || - (this.Viewer != null && - this.Viewer.Equals(input.Viewer)) - ) && - ( - this.Protocol == input.Protocol || - (this.Protocol != null && - this.Protocol.Equals(input.Protocol)) - ) && - ( - this.Models == input.Models || - (this.Models != null && - this.Models.Equals(input.Models)) - ) && - ( - this.Domain == input.Domain || - (this.Domain != null && - this.Domain.Equals(input.Domain)) - ) && - ( - this.OutState == input.OutState || - (this.OutState != null && - this.OutState.Equals(input.OutState)) - ) && - ( - this.MailBody == input.MailBody || - (this.MailBody != null && - this.MailBody.Equals(input.MailBody)) - ) && - ( - this.Notify == input.Notify || - (this.Notify != null && - this.Notify.Equals(input.Notify)) - ) && - ( - this.MailClient == input.MailClient || - (this.MailClient != null && - this.MailClient.Equals(input.MailClient)) - ) && - ( - this.HtmlBody == input.HtmlBody || - (this.HtmlBody != null && - this.HtmlBody.Equals(input.HtmlBody)) - ) && - ( - this.RespAos == input.RespAos || - (this.RespAos != null && - this.RespAos.Equals(input.RespAos)) - ) && - ( - this.AssAos == input.AssAos || - (this.AssAos != null && - this.AssAos.Equals(input.AssAos)) - ) && - ( - this.CodFis == input.CodFis || - (this.CodFis != null && - this.CodFis.Equals(input.CodFis)) - ) && - ( - this.Pin == input.Pin || - (this.Pin != null && - this.Pin.Equals(input.Pin)) - ) && - ( - this.Guest == input.Guest || - (this.Guest != null && - this.Guest.Equals(input.Guest)) - ) && - ( - this.PasswordChange == input.PasswordChange || - (this.PasswordChange != null && - this.PasswordChange.Equals(input.PasswordChange)) - ) && - ( - this.Marking == input.Marking || - (this.Marking != null && - this.Marking.Equals(input.Marking)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.MailOutDefault == input.MailOutDefault || - (this.MailOutDefault != null && - this.MailOutDefault.Equals(input.MailOutDefault)) - ) && - ( - this.BarcodeAccess == input.BarcodeAccess || - (this.BarcodeAccess != null && - this.BarcodeAccess.Equals(input.BarcodeAccess)) - ) && - ( - this.MustChangePassword == input.MustChangePassword || - (this.MustChangePassword != null && - this.MustChangePassword.Equals(input.MustChangePassword)) - ) && - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ) && - ( - this.Ws == input.Ws || - (this.Ws != null && - this.Ws.Equals(input.Ws)) - ) && - ( - this.DisablePswExpired == input.DisablePswExpired || - (this.DisablePswExpired != null && - this.DisablePswExpired.Equals(input.DisablePswExpired)) - ) && - ( - this.CompleteDescription == input.CompleteDescription || - (this.CompleteDescription != null && - this.CompleteDescription.Equals(input.CompleteDescription)) - ) && - ( - this.CanAddVirtualStamps == input.CanAddVirtualStamps || - (this.CanAddVirtualStamps != null && - this.CanAddVirtualStamps.Equals(input.CanAddVirtualStamps)) - ) && - ( - this.CanApplyStaps == input.CanApplyStaps || - (this.CanApplyStaps != null && - this.CanApplyStaps.Equals(input.CanApplyStaps)) - ) && - ( - this.ViewFlow == input.ViewFlow || - (this.ViewFlow != null && - this.ViewFlow.Equals(input.ViewFlow)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.BusinessUnitUserUnlock != null) - hashCode = hashCode * 59 + this.BusinessUnitUserUnlock.GetHashCode(); - if (this.TempArchive != null) - hashCode = hashCode * 59 + this.TempArchive.GetHashCode(); - if (this.AddressBookProfile != null) - hashCode = hashCode * 59 + this.AddressBookProfile.GetHashCode(); - if (this.DistributionList != null) - hashCode = hashCode * 59 + this.DistributionList.GetHashCode(); - if (this.MailIn != null) - hashCode = hashCode * 59 + this.MailIn.GetHashCode(); - if (this.MailOutStoreExt != null) - hashCode = hashCode * 59 + this.MailOutStoreExt.GetHashCode(); - if (this.MailOutStoreIn != null) - hashCode = hashCode * 59 + this.MailOutStoreIn.GetHashCode(); - if (this.MailDeleteProfile != null) - hashCode = hashCode * 59 + this.MailDeleteProfile.GetHashCode(); - if (this.WebCompliantCopy != null) - hashCode = hashCode * 59 + this.WebCompliantCopy.GetHashCode(); - if (this.WebSearch != null) - hashCode = hashCode * 59 + this.WebSearch.GetHashCode(); - if (this.WebQuickSearch != null) - hashCode = hashCode * 59 + this.WebQuickSearch.GetHashCode(); - if (this.WebMailBox != null) - hashCode = hashCode * 59 + this.WebMailBox.GetHashCode(); - if (this.WebFolders != null) - hashCode = hashCode * 59 + this.WebFolders.GetHashCode(); - if (this.WebSearchViews != null) - hashCode = hashCode * 59 + this.WebSearchViews.GetHashCode(); - if (this.WebBinders != null) - hashCode = hashCode * 59 + this.WebBinders.GetHashCode(); - if (this.WebCheckinAdmin != null) - hashCode = hashCode * 59 + this.WebCheckinAdmin.GetHashCode(); - if (this.MailOutMaxSize != null) - hashCode = hashCode * 59 + this.MailOutMaxSize.GetHashCode(); - if (this.MailOutDefaultType != null) - hashCode = hashCode * 59 + this.MailOutDefaultType.GetHashCode(); - if (this.MailOutType2 != null) - hashCode = hashCode * 59 + this.MailOutType2.GetHashCode(); - if (this.MailOutType3 != null) - hashCode = hashCode * 59 + this.MailOutType3.GetHashCode(); - if (this.SecurityStateList != null) - hashCode = hashCode * 59 + this.SecurityStateList.GetHashCode(); - if (this.Group != null) - hashCode = hashCode * 59 + this.Group.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.BusinessUnit != null) - hashCode = hashCode * 59 + this.BusinessUnit.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.DefaultType != null) - hashCode = hashCode * 59 + this.DefaultType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - if (this.InternalFax != null) - hashCode = hashCode * 59 + this.InternalFax.GetHashCode(); - if (this.LastMail != null) - hashCode = hashCode * 59 + this.LastMail.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.Workflow != null) - hashCode = hashCode * 59 + this.Workflow.GetHashCode(); - if (this.DefaultState != null) - hashCode = hashCode * 59 + this.DefaultState.GetHashCode(); - if (this.AddressBook != null) - hashCode = hashCode * 59 + this.AddressBook.GetHashCode(); - if (this.UserState != null) - hashCode = hashCode * 59 + this.UserState.GetHashCode(); - if (this.MailServer != null) - hashCode = hashCode * 59 + this.MailServer.GetHashCode(); - if (this.WebAccess != null) - hashCode = hashCode * 59 + this.WebAccess.GetHashCode(); - if (this.Upload != null) - hashCode = hashCode * 59 + this.Upload.GetHashCode(); - if (this.Folders != null) - hashCode = hashCode * 59 + this.Folders.GetHashCode(); - if (this.Flow != null) - hashCode = hashCode * 59 + this.Flow.GetHashCode(); - if (this.Sign != null) - hashCode = hashCode * 59 + this.Sign.GetHashCode(); - if (this.Viewer != null) - hashCode = hashCode * 59 + this.Viewer.GetHashCode(); - if (this.Protocol != null) - hashCode = hashCode * 59 + this.Protocol.GetHashCode(); - if (this.Models != null) - hashCode = hashCode * 59 + this.Models.GetHashCode(); - if (this.Domain != null) - hashCode = hashCode * 59 + this.Domain.GetHashCode(); - if (this.OutState != null) - hashCode = hashCode * 59 + this.OutState.GetHashCode(); - if (this.MailBody != null) - hashCode = hashCode * 59 + this.MailBody.GetHashCode(); - if (this.Notify != null) - hashCode = hashCode * 59 + this.Notify.GetHashCode(); - if (this.MailClient != null) - hashCode = hashCode * 59 + this.MailClient.GetHashCode(); - if (this.HtmlBody != null) - hashCode = hashCode * 59 + this.HtmlBody.GetHashCode(); - if (this.RespAos != null) - hashCode = hashCode * 59 + this.RespAos.GetHashCode(); - if (this.AssAos != null) - hashCode = hashCode * 59 + this.AssAos.GetHashCode(); - if (this.CodFis != null) - hashCode = hashCode * 59 + this.CodFis.GetHashCode(); - if (this.Pin != null) - hashCode = hashCode * 59 + this.Pin.GetHashCode(); - if (this.Guest != null) - hashCode = hashCode * 59 + this.Guest.GetHashCode(); - if (this.PasswordChange != null) - hashCode = hashCode * 59 + this.PasswordChange.GetHashCode(); - if (this.Marking != null) - hashCode = hashCode * 59 + this.Marking.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.MailOutDefault != null) - hashCode = hashCode * 59 + this.MailOutDefault.GetHashCode(); - if (this.BarcodeAccess != null) - hashCode = hashCode * 59 + this.BarcodeAccess.GetHashCode(); - if (this.MustChangePassword != null) - hashCode = hashCode * 59 + this.MustChangePassword.GetHashCode(); - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - if (this.Ws != null) - hashCode = hashCode * 59 + this.Ws.GetHashCode(); - if (this.DisablePswExpired != null) - hashCode = hashCode * 59 + this.DisablePswExpired.GetHashCode(); - if (this.CompleteDescription != null) - hashCode = hashCode * 59 + this.CompleteDescription.GetHashCode(); - if (this.CanAddVirtualStamps != null) - hashCode = hashCode * 59 + this.CanAddVirtualStamps.GetHashCode(); - if (this.CanApplyStaps != null) - hashCode = hashCode * 59 + this.CanApplyStaps.GetHashCode(); - if (this.ViewFlow != null) - hashCode = hashCode * 59 + this.ViewFlow.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserMaskDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UserMaskDTO.cs deleted file mode 100644 index 0618eda..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserMaskDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Users masks - /// - [DataContract] - public partial class UserMaskDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// User. - /// Mask. - public UserMaskDTO(UserSimpleDTO user = default(UserSimpleDTO), MaskSimpleDTO mask = default(MaskSimpleDTO)) - { - this.User = user; - this.Mask = mask; - } - - /// - /// User - /// - /// User - [DataMember(Name="user", EmitDefaultValue=false)] - public UserSimpleDTO User { get; set; } - - /// - /// Mask - /// - /// Mask - [DataMember(Name="mask", EmitDefaultValue=false)] - public MaskSimpleDTO Mask { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserMaskDTO {\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" Mask: ").Append(Mask).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserMaskDTO); - } - - /// - /// Returns true if UserMaskDTO instances are equal - /// - /// Instance of UserMaskDTO to be compared - /// Boolean - public bool Equals(UserMaskDTO input) - { - if (input == null) - return false; - - return - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.Mask == input.Mask || - (this.Mask != null && - this.Mask.Equals(input.Mask)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.Mask != null) - hashCode = hashCode * 59 + this.Mask.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserPasswordAdvancedCriteriaDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UserPasswordAdvancedCriteriaDTO.cs deleted file mode 100644 index 20c6b5a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserPasswordAdvancedCriteriaDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of the user password advanced criteria - /// - [DataContract] - public partial class UserPasswordAdvancedCriteriaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Days left to password expiration. - /// Enable reused password chech. - /// Number of times after which the same password can be reused. - /// Maximum number of errors when typing the password. - /// Duration of login block. - public UserPasswordAdvancedCriteriaDTO(int? expireDays = default(int?), bool? enableReusedPasswordCheck = default(bool?), int? notReusablePasswordTimes = default(int?), int? maxErrors = default(int?), int? lockDuration = default(int?)) - { - this.ExpireDays = expireDays; - this.EnableReusedPasswordCheck = enableReusedPasswordCheck; - this.NotReusablePasswordTimes = notReusablePasswordTimes; - this.MaxErrors = maxErrors; - this.LockDuration = lockDuration; - } - - /// - /// Days left to password expiration - /// - /// Days left to password expiration - [DataMember(Name="expireDays", EmitDefaultValue=false)] - public int? ExpireDays { get; set; } - - /// - /// Enable reused password chech - /// - /// Enable reused password chech - [DataMember(Name="enableReusedPasswordCheck", EmitDefaultValue=false)] - public bool? EnableReusedPasswordCheck { get; set; } - - /// - /// Number of times after which the same password can be reused - /// - /// Number of times after which the same password can be reused - [DataMember(Name="notReusablePasswordTimes", EmitDefaultValue=false)] - public int? NotReusablePasswordTimes { get; set; } - - /// - /// Maximum number of errors when typing the password - /// - /// Maximum number of errors when typing the password - [DataMember(Name="maxErrors", EmitDefaultValue=false)] - public int? MaxErrors { get; set; } - - /// - /// Duration of login block - /// - /// Duration of login block - [DataMember(Name="lockDuration", EmitDefaultValue=false)] - public int? LockDuration { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserPasswordAdvancedCriteriaDTO {\n"); - sb.Append(" ExpireDays: ").Append(ExpireDays).Append("\n"); - sb.Append(" EnableReusedPasswordCheck: ").Append(EnableReusedPasswordCheck).Append("\n"); - sb.Append(" NotReusablePasswordTimes: ").Append(NotReusablePasswordTimes).Append("\n"); - sb.Append(" MaxErrors: ").Append(MaxErrors).Append("\n"); - sb.Append(" LockDuration: ").Append(LockDuration).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserPasswordAdvancedCriteriaDTO); - } - - /// - /// Returns true if UserPasswordAdvancedCriteriaDTO instances are equal - /// - /// Instance of UserPasswordAdvancedCriteriaDTO to be compared - /// Boolean - public bool Equals(UserPasswordAdvancedCriteriaDTO input) - { - if (input == null) - return false; - - return - ( - this.ExpireDays == input.ExpireDays || - (this.ExpireDays != null && - this.ExpireDays.Equals(input.ExpireDays)) - ) && - ( - this.EnableReusedPasswordCheck == input.EnableReusedPasswordCheck || - (this.EnableReusedPasswordCheck != null && - this.EnableReusedPasswordCheck.Equals(input.EnableReusedPasswordCheck)) - ) && - ( - this.NotReusablePasswordTimes == input.NotReusablePasswordTimes || - (this.NotReusablePasswordTimes != null && - this.NotReusablePasswordTimes.Equals(input.NotReusablePasswordTimes)) - ) && - ( - this.MaxErrors == input.MaxErrors || - (this.MaxErrors != null && - this.MaxErrors.Equals(input.MaxErrors)) - ) && - ( - this.LockDuration == input.LockDuration || - (this.LockDuration != null && - this.LockDuration.Equals(input.LockDuration)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.ExpireDays != null) - hashCode = hashCode * 59 + this.ExpireDays.GetHashCode(); - if (this.EnableReusedPasswordCheck != null) - hashCode = hashCode * 59 + this.EnableReusedPasswordCheck.GetHashCode(); - if (this.NotReusablePasswordTimes != null) - hashCode = hashCode * 59 + this.NotReusablePasswordTimes.GetHashCode(); - if (this.MaxErrors != null) - hashCode = hashCode * 59 + this.MaxErrors.GetHashCode(); - if (this.LockDuration != null) - hashCode = hashCode * 59 + this.LockDuration.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserPasswordCriteriaDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UserPasswordCriteriaDTO.cs deleted file mode 100644 index 618335b..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserPasswordCriteriaDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of the user password criteria - /// - [DataContract] - public partial class UserPasswordCriteriaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Recovery. - /// Management password change. - /// Advanced. - public UserPasswordCriteriaDTO(UserPasswordRecoveryCriteriaDTO recoveryCriteria = default(UserPasswordRecoveryCriteriaDTO), UserPasswordManageCriteriaDTO manageCriteria = default(UserPasswordManageCriteriaDTO), UserPasswordAdvancedCriteriaDTO advancedCriteria = default(UserPasswordAdvancedCriteriaDTO)) - { - this.RecoveryCriteria = recoveryCriteria; - this.ManageCriteria = manageCriteria; - this.AdvancedCriteria = advancedCriteria; - } - - /// - /// Recovery - /// - /// Recovery - [DataMember(Name="recoveryCriteria", EmitDefaultValue=false)] - public UserPasswordRecoveryCriteriaDTO RecoveryCriteria { get; set; } - - /// - /// Management password change - /// - /// Management password change - [DataMember(Name="manageCriteria", EmitDefaultValue=false)] - public UserPasswordManageCriteriaDTO ManageCriteria { get; set; } - - /// - /// Advanced - /// - /// Advanced - [DataMember(Name="advancedCriteria", EmitDefaultValue=false)] - public UserPasswordAdvancedCriteriaDTO AdvancedCriteria { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserPasswordCriteriaDTO {\n"); - sb.Append(" RecoveryCriteria: ").Append(RecoveryCriteria).Append("\n"); - sb.Append(" ManageCriteria: ").Append(ManageCriteria).Append("\n"); - sb.Append(" AdvancedCriteria: ").Append(AdvancedCriteria).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserPasswordCriteriaDTO); - } - - /// - /// Returns true if UserPasswordCriteriaDTO instances are equal - /// - /// Instance of UserPasswordCriteriaDTO to be compared - /// Boolean - public bool Equals(UserPasswordCriteriaDTO input) - { - if (input == null) - return false; - - return - ( - this.RecoveryCriteria == input.RecoveryCriteria || - (this.RecoveryCriteria != null && - this.RecoveryCriteria.Equals(input.RecoveryCriteria)) - ) && - ( - this.ManageCriteria == input.ManageCriteria || - (this.ManageCriteria != null && - this.ManageCriteria.Equals(input.ManageCriteria)) - ) && - ( - this.AdvancedCriteria == input.AdvancedCriteria || - (this.AdvancedCriteria != null && - this.AdvancedCriteria.Equals(input.AdvancedCriteria)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.RecoveryCriteria != null) - hashCode = hashCode * 59 + this.RecoveryCriteria.GetHashCode(); - if (this.ManageCriteria != null) - hashCode = hashCode * 59 + this.ManageCriteria.GetHashCode(); - if (this.AdvancedCriteria != null) - hashCode = hashCode * 59 + this.AdvancedCriteria.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserPasswordManageCriteriaDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UserPasswordManageCriteriaDTO.cs deleted file mode 100644 index dddda77..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserPasswordManageCriteriaDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of the user password manage criteria - /// - [DataContract] - public partial class UserPasswordManageCriteriaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Minimum password length. - /// Maximum password length. - /// Minimum number of non alphanumeric characters. - public UserPasswordManageCriteriaDTO(int? minPasswordLength = default(int?), int? maxPasswordLength = default(int?), int? minSpecialCharactersNumber = default(int?)) - { - this.MinPasswordLength = minPasswordLength; - this.MaxPasswordLength = maxPasswordLength; - this.MinSpecialCharactersNumber = minSpecialCharactersNumber; - } - - /// - /// Minimum password length - /// - /// Minimum password length - [DataMember(Name="minPasswordLength", EmitDefaultValue=false)] - public int? MinPasswordLength { get; set; } - - /// - /// Maximum password length - /// - /// Maximum password length - [DataMember(Name="maxPasswordLength", EmitDefaultValue=false)] - public int? MaxPasswordLength { get; set; } - - /// - /// Minimum number of non alphanumeric characters - /// - /// Minimum number of non alphanumeric characters - [DataMember(Name="minSpecialCharactersNumber", EmitDefaultValue=false)] - public int? MinSpecialCharactersNumber { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserPasswordManageCriteriaDTO {\n"); - sb.Append(" MinPasswordLength: ").Append(MinPasswordLength).Append("\n"); - sb.Append(" MaxPasswordLength: ").Append(MaxPasswordLength).Append("\n"); - sb.Append(" MinSpecialCharactersNumber: ").Append(MinSpecialCharactersNumber).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserPasswordManageCriteriaDTO); - } - - /// - /// Returns true if UserPasswordManageCriteriaDTO instances are equal - /// - /// Instance of UserPasswordManageCriteriaDTO to be compared - /// Boolean - public bool Equals(UserPasswordManageCriteriaDTO input) - { - if (input == null) - return false; - - return - ( - this.MinPasswordLength == input.MinPasswordLength || - (this.MinPasswordLength != null && - this.MinPasswordLength.Equals(input.MinPasswordLength)) - ) && - ( - this.MaxPasswordLength == input.MaxPasswordLength || - (this.MaxPasswordLength != null && - this.MaxPasswordLength.Equals(input.MaxPasswordLength)) - ) && - ( - this.MinSpecialCharactersNumber == input.MinSpecialCharactersNumber || - (this.MinSpecialCharactersNumber != null && - this.MinSpecialCharactersNumber.Equals(input.MinSpecialCharactersNumber)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.MinPasswordLength != null) - hashCode = hashCode * 59 + this.MinPasswordLength.GetHashCode(); - if (this.MaxPasswordLength != null) - hashCode = hashCode * 59 + this.MaxPasswordLength.GetHashCode(); - if (this.MinSpecialCharactersNumber != null) - hashCode = hashCode * 59 + this.MinSpecialCharactersNumber.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserPasswordRecoveryCriteriaDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UserPasswordRecoveryCriteriaDTO.cs deleted file mode 100644 index e845d49..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserPasswordRecoveryCriteriaDTO.cs +++ /dev/null @@ -1,261 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of the user password recovery criteria - /// - [DataContract] - public partial class UserPasswordRecoveryCriteriaDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Possible values: 0: USERNAME 1: EMAIL 2: USERNAMEOREMAIL . - /// Allow use of alphabetic characters. - /// Allow use of numeric characters. - /// Allow use of special characters. - /// Special characters. - /// Minimum length for password. - /// Maximum length for password. - /// Force password change. - /// Show the user the email address to which the email was sent to. - public UserPasswordRecoveryCriteriaDTO(int? recoveryMode = default(int?), bool? allowAlphabeticCharacters = default(bool?), bool? allowNumberCharacters = default(bool?), bool? allowSpecialCharacters = default(bool?), string specialCharacters = default(string), int? minPasswordLength = default(int?), int? maxPasswordLength = default(int?), bool? forcePasswordChange = default(bool?), bool? showEmail = default(bool?)) - { - this.RecoveryMode = recoveryMode; - this.AllowAlphabeticCharacters = allowAlphabeticCharacters; - this.AllowNumberCharacters = allowNumberCharacters; - this.AllowSpecialCharacters = allowSpecialCharacters; - this.SpecialCharacters = specialCharacters; - this.MinPasswordLength = minPasswordLength; - this.MaxPasswordLength = maxPasswordLength; - this.ForcePasswordChange = forcePasswordChange; - this.ShowEmail = showEmail; - } - - /// - /// Possible values: 0: USERNAME 1: EMAIL 2: USERNAMEOREMAIL - /// - /// Possible values: 0: USERNAME 1: EMAIL 2: USERNAMEOREMAIL - [DataMember(Name="recoveryMode", EmitDefaultValue=false)] - public int? RecoveryMode { get; set; } - - /// - /// Allow use of alphabetic characters - /// - /// Allow use of alphabetic characters - [DataMember(Name="allowAlphabeticCharacters", EmitDefaultValue=false)] - public bool? AllowAlphabeticCharacters { get; set; } - - /// - /// Allow use of numeric characters - /// - /// Allow use of numeric characters - [DataMember(Name="allowNumberCharacters", EmitDefaultValue=false)] - public bool? AllowNumberCharacters { get; set; } - - /// - /// Allow use of special characters - /// - /// Allow use of special characters - [DataMember(Name="allowSpecialCharacters", EmitDefaultValue=false)] - public bool? AllowSpecialCharacters { get; set; } - - /// - /// Special characters - /// - /// Special characters - [DataMember(Name="specialCharacters", EmitDefaultValue=false)] - public string SpecialCharacters { get; set; } - - /// - /// Minimum length for password - /// - /// Minimum length for password - [DataMember(Name="minPasswordLength", EmitDefaultValue=false)] - public int? MinPasswordLength { get; set; } - - /// - /// Maximum length for password - /// - /// Maximum length for password - [DataMember(Name="maxPasswordLength", EmitDefaultValue=false)] - public int? MaxPasswordLength { get; set; } - - /// - /// Force password change - /// - /// Force password change - [DataMember(Name="forcePasswordChange", EmitDefaultValue=false)] - public bool? ForcePasswordChange { get; set; } - - /// - /// Show the user the email address to which the email was sent to - /// - /// Show the user the email address to which the email was sent to - [DataMember(Name="showEmail", EmitDefaultValue=false)] - public bool? ShowEmail { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserPasswordRecoveryCriteriaDTO {\n"); - sb.Append(" RecoveryMode: ").Append(RecoveryMode).Append("\n"); - sb.Append(" AllowAlphabeticCharacters: ").Append(AllowAlphabeticCharacters).Append("\n"); - sb.Append(" AllowNumberCharacters: ").Append(AllowNumberCharacters).Append("\n"); - sb.Append(" AllowSpecialCharacters: ").Append(AllowSpecialCharacters).Append("\n"); - sb.Append(" SpecialCharacters: ").Append(SpecialCharacters).Append("\n"); - sb.Append(" MinPasswordLength: ").Append(MinPasswordLength).Append("\n"); - sb.Append(" MaxPasswordLength: ").Append(MaxPasswordLength).Append("\n"); - sb.Append(" ForcePasswordChange: ").Append(ForcePasswordChange).Append("\n"); - sb.Append(" ShowEmail: ").Append(ShowEmail).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserPasswordRecoveryCriteriaDTO); - } - - /// - /// Returns true if UserPasswordRecoveryCriteriaDTO instances are equal - /// - /// Instance of UserPasswordRecoveryCriteriaDTO to be compared - /// Boolean - public bool Equals(UserPasswordRecoveryCriteriaDTO input) - { - if (input == null) - return false; - - return - ( - this.RecoveryMode == input.RecoveryMode || - (this.RecoveryMode != null && - this.RecoveryMode.Equals(input.RecoveryMode)) - ) && - ( - this.AllowAlphabeticCharacters == input.AllowAlphabeticCharacters || - (this.AllowAlphabeticCharacters != null && - this.AllowAlphabeticCharacters.Equals(input.AllowAlphabeticCharacters)) - ) && - ( - this.AllowNumberCharacters == input.AllowNumberCharacters || - (this.AllowNumberCharacters != null && - this.AllowNumberCharacters.Equals(input.AllowNumberCharacters)) - ) && - ( - this.AllowSpecialCharacters == input.AllowSpecialCharacters || - (this.AllowSpecialCharacters != null && - this.AllowSpecialCharacters.Equals(input.AllowSpecialCharacters)) - ) && - ( - this.SpecialCharacters == input.SpecialCharacters || - (this.SpecialCharacters != null && - this.SpecialCharacters.Equals(input.SpecialCharacters)) - ) && - ( - this.MinPasswordLength == input.MinPasswordLength || - (this.MinPasswordLength != null && - this.MinPasswordLength.Equals(input.MinPasswordLength)) - ) && - ( - this.MaxPasswordLength == input.MaxPasswordLength || - (this.MaxPasswordLength != null && - this.MaxPasswordLength.Equals(input.MaxPasswordLength)) - ) && - ( - this.ForcePasswordChange == input.ForcePasswordChange || - (this.ForcePasswordChange != null && - this.ForcePasswordChange.Equals(input.ForcePasswordChange)) - ) && - ( - this.ShowEmail == input.ShowEmail || - (this.ShowEmail != null && - this.ShowEmail.Equals(input.ShowEmail)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.RecoveryMode != null) - hashCode = hashCode * 59 + this.RecoveryMode.GetHashCode(); - if (this.AllowAlphabeticCharacters != null) - hashCode = hashCode * 59 + this.AllowAlphabeticCharacters.GetHashCode(); - if (this.AllowNumberCharacters != null) - hashCode = hashCode * 59 + this.AllowNumberCharacters.GetHashCode(); - if (this.AllowSpecialCharacters != null) - hashCode = hashCode * 59 + this.AllowSpecialCharacters.GetHashCode(); - if (this.SpecialCharacters != null) - hashCode = hashCode * 59 + this.SpecialCharacters.GetHashCode(); - if (this.MinPasswordLength != null) - hashCode = hashCode * 59 + this.MinPasswordLength.GetHashCode(); - if (this.MaxPasswordLength != null) - hashCode = hashCode * 59 + this.MaxPasswordLength.GetHashCode(); - if (this.ForcePasswordChange != null) - hashCode = hashCode * 59 + this.ForcePasswordChange.GetHashCode(); - if (this.ShowEmail != null) - hashCode = hashCode * 59 + this.ShowEmail.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserPermissionDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UserPermissionDTO.cs deleted file mode 100644 index 3e99e99..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserPermissionDTO.cs +++ /dev/null @@ -1,227 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of user permission - /// - [DataContract] - public partial class UserPermissionDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Identifier of user. - /// Description of the user. - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D . - /// User is disabled (non active or hidden). - /// Permission list. - /// External Identifier. - public UserPermissionDTO(string id = default(string), int? user = default(int?), string userDescription = default(string), int? category = default(int?), bool? isUserDisabled = default(bool?), List permissions = default(List), string externalId = default(string)) - { - this.Id = id; - this.User = user; - this.UserDescription = userDescription; - this.Category = category; - this.IsUserDisabled = isUserDisabled; - this.Permissions = permissions; - this.ExternalId = externalId; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Identifier of user - /// - /// Identifier of user - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Description of the user - /// - /// Description of the user - [DataMember(Name="userDescription", EmitDefaultValue=false)] - public string UserDescription { get; set; } - - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - [DataMember(Name="category", EmitDefaultValue=false)] - public int? Category { get; set; } - - /// - /// User is disabled (non active or hidden) - /// - /// User is disabled (non active or hidden) - [DataMember(Name="isUserDisabled", EmitDefaultValue=false)] - public bool? IsUserDisabled { get; set; } - - /// - /// Permission list - /// - /// Permission list - [DataMember(Name="permissions", EmitDefaultValue=false)] - public List Permissions { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserPermissionDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" UserDescription: ").Append(UserDescription).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" IsUserDisabled: ").Append(IsUserDisabled).Append("\n"); - sb.Append(" Permissions: ").Append(Permissions).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserPermissionDTO); - } - - /// - /// Returns true if UserPermissionDTO instances are equal - /// - /// Instance of UserPermissionDTO to be compared - /// Boolean - public bool Equals(UserPermissionDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.UserDescription == input.UserDescription || - (this.UserDescription != null && - this.UserDescription.Equals(input.UserDescription)) - ) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && - ( - this.IsUserDisabled == input.IsUserDisabled || - (this.IsUserDisabled != null && - this.IsUserDisabled.Equals(input.IsUserDisabled)) - ) && - ( - this.Permissions == input.Permissions || - this.Permissions != null && - this.Permissions.SequenceEqual(input.Permissions) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.UserDescription != null) - hashCode = hashCode * 59 + this.UserDescription.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.IsUserDisabled != null) - hashCode = hashCode * 59 + this.IsUserDisabled.GetHashCode(); - if (this.Permissions != null) - hashCode = hashCode * 59 + this.Permissions.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserProfileDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UserProfileDTO.cs deleted file mode 100644 index d7a3b7a..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserProfileDTO.cs +++ /dev/null @@ -1,754 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of user used to profiling - /// - [DataContract] - public partial class UserProfileDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// External Identifier. - /// Description. - /// Document Identifier. - /// Possible values: 0: To 1: From 2: Cc 3: Senders . - /// Contact Identifier. - /// Fax. - /// Address. - /// Postal Code. - /// Description. - /// Job. - /// Locality. - /// Province. - /// Phone number. - /// Mobile number. - /// Contact Phone number. - /// Contact Fax. - /// Contact House. - /// Contact Department. - /// Reference. - /// Office. - /// Vat. - /// Contact Email. - /// Priority. - /// Code. - /// Email. - /// Fiscal Code. - /// Nation. - /// Address Book Identifier. - /// Society. - /// Office code. - /// Public administration code. - /// Posta Elettronica Certificata (AddressBook). - /// Firma Elettronica Avanzata is enabled. - /// Firma Elettronica Avanzata expiration date. - /// Firstname. - /// Lastname. - /// Posta Elettronica Certificata. - public UserProfileDTO(int? id = default(int?), string externalId = default(string), string description = default(string), string docNumber = default(string), int? type = default(int?), int? contactId = default(int?), string fax = default(string), string address = default(string), string postalCode = default(string), string contact = default(string), string job = default(string), string locality = default(string), string province = default(string), string phone = default(string), string mobilePhone = default(string), string telName = default(string), string faxName = default(string), string house = default(string), string department = default(string), string reference = default(string), string office = default(string), string vat = default(string), string mail = default(string), string priority = default(string), string code = default(string), string email = default(string), string fiscalCode = default(string), string nation = default(string), int? addressBookId = default(int?), string society = default(string), string officeCode = default(string), string publicAdministrationCode = default(string), string pecAddressBook = default(string), bool? feaEnabled = default(bool?), DateTime? feaExpireDate = default(DateTime?), string firstName = default(string), string lastName = default(string), string pec = default(string)) - { - this.Id = id; - this.ExternalId = externalId; - this.Description = description; - this.DocNumber = docNumber; - this.Type = type; - this.ContactId = contactId; - this.Fax = fax; - this.Address = address; - this.PostalCode = postalCode; - this.Contact = contact; - this.Job = job; - this.Locality = locality; - this.Province = province; - this.Phone = phone; - this.MobilePhone = mobilePhone; - this.TelName = telName; - this.FaxName = faxName; - this.House = house; - this.Department = department; - this.Reference = reference; - this.Office = office; - this.Vat = vat; - this.Mail = mail; - this.Priority = priority; - this.Code = code; - this.Email = email; - this.FiscalCode = fiscalCode; - this.Nation = nation; - this.AddressBookId = addressBookId; - this.Society = society; - this.OfficeCode = officeCode; - this.PublicAdministrationCode = publicAdministrationCode; - this.PecAddressBook = pecAddressBook; - this.FeaEnabled = feaEnabled; - this.FeaExpireDate = feaExpireDate; - this.FirstName = firstName; - this.LastName = lastName; - this.Pec = pec; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// External Identifier - /// - /// External Identifier - [DataMember(Name="externalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Document Identifier - /// - /// Document Identifier - [DataMember(Name="docNumber", EmitDefaultValue=false)] - public string DocNumber { get; set; } - - /// - /// Possible values: 0: To 1: From 2: Cc 3: Senders - /// - /// Possible values: 0: To 1: From 2: Cc 3: Senders - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Contact Identifier - /// - /// Contact Identifier - [DataMember(Name="contactId", EmitDefaultValue=false)] - public int? ContactId { get; set; } - - /// - /// Fax - /// - /// Fax - [DataMember(Name="fax", EmitDefaultValue=false)] - public string Fax { get; set; } - - /// - /// Address - /// - /// Address - [DataMember(Name="address", EmitDefaultValue=false)] - public string Address { get; set; } - - /// - /// Postal Code - /// - /// Postal Code - [DataMember(Name="postalCode", EmitDefaultValue=false)] - public string PostalCode { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="contact", EmitDefaultValue=false)] - public string Contact { get; set; } - - /// - /// Job - /// - /// Job - [DataMember(Name="job", EmitDefaultValue=false)] - public string Job { get; set; } - - /// - /// Locality - /// - /// Locality - [DataMember(Name="locality", EmitDefaultValue=false)] - public string Locality { get; set; } - - /// - /// Province - /// - /// Province - [DataMember(Name="province", EmitDefaultValue=false)] - public string Province { get; set; } - - /// - /// Phone number - /// - /// Phone number - [DataMember(Name="phone", EmitDefaultValue=false)] - public string Phone { get; set; } - - /// - /// Mobile number - /// - /// Mobile number - [DataMember(Name="mobilePhone", EmitDefaultValue=false)] - public string MobilePhone { get; set; } - - /// - /// Contact Phone number - /// - /// Contact Phone number - [DataMember(Name="telName", EmitDefaultValue=false)] - public string TelName { get; set; } - - /// - /// Contact Fax - /// - /// Contact Fax - [DataMember(Name="faxName", EmitDefaultValue=false)] - public string FaxName { get; set; } - - /// - /// Contact House - /// - /// Contact House - [DataMember(Name="house", EmitDefaultValue=false)] - public string House { get; set; } - - /// - /// Contact Department - /// - /// Contact Department - [DataMember(Name="department", EmitDefaultValue=false)] - public string Department { get; set; } - - /// - /// Reference - /// - /// Reference - [DataMember(Name="reference", EmitDefaultValue=false)] - public string Reference { get; set; } - - /// - /// Office - /// - /// Office - [DataMember(Name="office", EmitDefaultValue=false)] - public string Office { get; set; } - - /// - /// Vat - /// - /// Vat - [DataMember(Name="vat", EmitDefaultValue=false)] - public string Vat { get; set; } - - /// - /// Contact Email - /// - /// Contact Email - [DataMember(Name="mail", EmitDefaultValue=false)] - public string Mail { get; set; } - - /// - /// Priority - /// - /// Priority - [DataMember(Name="priority", EmitDefaultValue=false)] - public string Priority { get; set; } - - /// - /// Code - /// - /// Code - [DataMember(Name="code", EmitDefaultValue=false)] - public string Code { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Fiscal Code - /// - /// Fiscal Code - [DataMember(Name="fiscalCode", EmitDefaultValue=false)] - public string FiscalCode { get; set; } - - /// - /// Nation - /// - /// Nation - [DataMember(Name="nation", EmitDefaultValue=false)] - public string Nation { get; set; } - - /// - /// Address Book Identifier - /// - /// Address Book Identifier - [DataMember(Name="addressBookId", EmitDefaultValue=false)] - public int? AddressBookId { get; set; } - - /// - /// Society - /// - /// Society - [DataMember(Name="society", EmitDefaultValue=false)] - public string Society { get; set; } - - /// - /// Office code - /// - /// Office code - [DataMember(Name="officeCode", EmitDefaultValue=false)] - public string OfficeCode { get; set; } - - /// - /// Public administration code - /// - /// Public administration code - [DataMember(Name="publicAdministrationCode", EmitDefaultValue=false)] - public string PublicAdministrationCode { get; set; } - - /// - /// Posta Elettronica Certificata (AddressBook) - /// - /// Posta Elettronica Certificata (AddressBook) - [DataMember(Name="pecAddressBook", EmitDefaultValue=false)] - public string PecAddressBook { get; set; } - - /// - /// Firma Elettronica Avanzata is enabled - /// - /// Firma Elettronica Avanzata is enabled - [DataMember(Name="feaEnabled", EmitDefaultValue=false)] - public bool? FeaEnabled { get; set; } - - /// - /// Firma Elettronica Avanzata expiration date - /// - /// Firma Elettronica Avanzata expiration date - [DataMember(Name="feaExpireDate", EmitDefaultValue=false)] - public DateTime? FeaExpireDate { get; set; } - - /// - /// Firstname - /// - /// Firstname - [DataMember(Name="firstName", EmitDefaultValue=false)] - public string FirstName { get; set; } - - /// - /// Lastname - /// - /// Lastname - [DataMember(Name="lastName", EmitDefaultValue=false)] - public string LastName { get; set; } - - /// - /// Posta Elettronica Certificata - /// - /// Posta Elettronica Certificata - [DataMember(Name="pec", EmitDefaultValue=false)] - public string Pec { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserProfileDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DocNumber: ").Append(DocNumber).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" ContactId: ").Append(ContactId).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); - sb.Append(" Contact: ").Append(Contact).Append("\n"); - sb.Append(" Job: ").Append(Job).Append("\n"); - sb.Append(" Locality: ").Append(Locality).Append("\n"); - sb.Append(" Province: ").Append(Province).Append("\n"); - sb.Append(" Phone: ").Append(Phone).Append("\n"); - sb.Append(" MobilePhone: ").Append(MobilePhone).Append("\n"); - sb.Append(" TelName: ").Append(TelName).Append("\n"); - sb.Append(" FaxName: ").Append(FaxName).Append("\n"); - sb.Append(" House: ").Append(House).Append("\n"); - sb.Append(" Department: ").Append(Department).Append("\n"); - sb.Append(" Reference: ").Append(Reference).Append("\n"); - sb.Append(" Office: ").Append(Office).Append("\n"); - sb.Append(" Vat: ").Append(Vat).Append("\n"); - sb.Append(" Mail: ").Append(Mail).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" FiscalCode: ").Append(FiscalCode).Append("\n"); - sb.Append(" Nation: ").Append(Nation).Append("\n"); - sb.Append(" AddressBookId: ").Append(AddressBookId).Append("\n"); - sb.Append(" Society: ").Append(Society).Append("\n"); - sb.Append(" OfficeCode: ").Append(OfficeCode).Append("\n"); - sb.Append(" PublicAdministrationCode: ").Append(PublicAdministrationCode).Append("\n"); - sb.Append(" PecAddressBook: ").Append(PecAddressBook).Append("\n"); - sb.Append(" FeaEnabled: ").Append(FeaEnabled).Append("\n"); - sb.Append(" FeaExpireDate: ").Append(FeaExpireDate).Append("\n"); - sb.Append(" FirstName: ").Append(FirstName).Append("\n"); - sb.Append(" LastName: ").Append(LastName).Append("\n"); - sb.Append(" Pec: ").Append(Pec).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserProfileDTO); - } - - /// - /// Returns true if UserProfileDTO instances are equal - /// - /// Instance of UserProfileDTO to be compared - /// Boolean - public bool Equals(UserProfileDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.DocNumber == input.DocNumber || - (this.DocNumber != null && - this.DocNumber.Equals(input.DocNumber)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.ContactId == input.ContactId || - (this.ContactId != null && - this.ContactId.Equals(input.ContactId)) - ) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && - ( - this.PostalCode == input.PostalCode || - (this.PostalCode != null && - this.PostalCode.Equals(input.PostalCode)) - ) && - ( - this.Contact == input.Contact || - (this.Contact != null && - this.Contact.Equals(input.Contact)) - ) && - ( - this.Job == input.Job || - (this.Job != null && - this.Job.Equals(input.Job)) - ) && - ( - this.Locality == input.Locality || - (this.Locality != null && - this.Locality.Equals(input.Locality)) - ) && - ( - this.Province == input.Province || - (this.Province != null && - this.Province.Equals(input.Province)) - ) && - ( - this.Phone == input.Phone || - (this.Phone != null && - this.Phone.Equals(input.Phone)) - ) && - ( - this.MobilePhone == input.MobilePhone || - (this.MobilePhone != null && - this.MobilePhone.Equals(input.MobilePhone)) - ) && - ( - this.TelName == input.TelName || - (this.TelName != null && - this.TelName.Equals(input.TelName)) - ) && - ( - this.FaxName == input.FaxName || - (this.FaxName != null && - this.FaxName.Equals(input.FaxName)) - ) && - ( - this.House == input.House || - (this.House != null && - this.House.Equals(input.House)) - ) && - ( - this.Department == input.Department || - (this.Department != null && - this.Department.Equals(input.Department)) - ) && - ( - this.Reference == input.Reference || - (this.Reference != null && - this.Reference.Equals(input.Reference)) - ) && - ( - this.Office == input.Office || - (this.Office != null && - this.Office.Equals(input.Office)) - ) && - ( - this.Vat == input.Vat || - (this.Vat != null && - this.Vat.Equals(input.Vat)) - ) && - ( - this.Mail == input.Mail || - (this.Mail != null && - this.Mail.Equals(input.Mail)) - ) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.FiscalCode == input.FiscalCode || - (this.FiscalCode != null && - this.FiscalCode.Equals(input.FiscalCode)) - ) && - ( - this.Nation == input.Nation || - (this.Nation != null && - this.Nation.Equals(input.Nation)) - ) && - ( - this.AddressBookId == input.AddressBookId || - (this.AddressBookId != null && - this.AddressBookId.Equals(input.AddressBookId)) - ) && - ( - this.Society == input.Society || - (this.Society != null && - this.Society.Equals(input.Society)) - ) && - ( - this.OfficeCode == input.OfficeCode || - (this.OfficeCode != null && - this.OfficeCode.Equals(input.OfficeCode)) - ) && - ( - this.PublicAdministrationCode == input.PublicAdministrationCode || - (this.PublicAdministrationCode != null && - this.PublicAdministrationCode.Equals(input.PublicAdministrationCode)) - ) && - ( - this.PecAddressBook == input.PecAddressBook || - (this.PecAddressBook != null && - this.PecAddressBook.Equals(input.PecAddressBook)) - ) && - ( - this.FeaEnabled == input.FeaEnabled || - (this.FeaEnabled != null && - this.FeaEnabled.Equals(input.FeaEnabled)) - ) && - ( - this.FeaExpireDate == input.FeaExpireDate || - (this.FeaExpireDate != null && - this.FeaExpireDate.Equals(input.FeaExpireDate)) - ) && - ( - this.FirstName == input.FirstName || - (this.FirstName != null && - this.FirstName.Equals(input.FirstName)) - ) && - ( - this.LastName == input.LastName || - (this.LastName != null && - this.LastName.Equals(input.LastName)) - ) && - ( - this.Pec == input.Pec || - (this.Pec != null && - this.Pec.Equals(input.Pec)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DocNumber != null) - hashCode = hashCode * 59 + this.DocNumber.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.ContactId != null) - hashCode = hashCode * 59 + this.ContactId.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.PostalCode != null) - hashCode = hashCode * 59 + this.PostalCode.GetHashCode(); - if (this.Contact != null) - hashCode = hashCode * 59 + this.Contact.GetHashCode(); - if (this.Job != null) - hashCode = hashCode * 59 + this.Job.GetHashCode(); - if (this.Locality != null) - hashCode = hashCode * 59 + this.Locality.GetHashCode(); - if (this.Province != null) - hashCode = hashCode * 59 + this.Province.GetHashCode(); - if (this.Phone != null) - hashCode = hashCode * 59 + this.Phone.GetHashCode(); - if (this.MobilePhone != null) - hashCode = hashCode * 59 + this.MobilePhone.GetHashCode(); - if (this.TelName != null) - hashCode = hashCode * 59 + this.TelName.GetHashCode(); - if (this.FaxName != null) - hashCode = hashCode * 59 + this.FaxName.GetHashCode(); - if (this.House != null) - hashCode = hashCode * 59 + this.House.GetHashCode(); - if (this.Department != null) - hashCode = hashCode * 59 + this.Department.GetHashCode(); - if (this.Reference != null) - hashCode = hashCode * 59 + this.Reference.GetHashCode(); - if (this.Office != null) - hashCode = hashCode * 59 + this.Office.GetHashCode(); - if (this.Vat != null) - hashCode = hashCode * 59 + this.Vat.GetHashCode(); - if (this.Mail != null) - hashCode = hashCode * 59 + this.Mail.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.Code != null) - hashCode = hashCode * 59 + this.Code.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.FiscalCode != null) - hashCode = hashCode * 59 + this.FiscalCode.GetHashCode(); - if (this.Nation != null) - hashCode = hashCode * 59 + this.Nation.GetHashCode(); - if (this.AddressBookId != null) - hashCode = hashCode * 59 + this.AddressBookId.GetHashCode(); - if (this.Society != null) - hashCode = hashCode * 59 + this.Society.GetHashCode(); - if (this.OfficeCode != null) - hashCode = hashCode * 59 + this.OfficeCode.GetHashCode(); - if (this.PublicAdministrationCode != null) - hashCode = hashCode * 59 + this.PublicAdministrationCode.GetHashCode(); - if (this.PecAddressBook != null) - hashCode = hashCode * 59 + this.PecAddressBook.GetHashCode(); - if (this.FeaEnabled != null) - hashCode = hashCode * 59 + this.FeaEnabled.GetHashCode(); - if (this.FeaExpireDate != null) - hashCode = hashCode * 59 + this.FeaExpireDate.GetHashCode(); - if (this.FirstName != null) - hashCode = hashCode * 59 + this.FirstName.GetHashCode(); - if (this.LastName != null) - hashCode = hashCode * 59 + this.LastName.GetHashCode(); - if (this.Pec != null) - hashCode = hashCode * 59 + this.Pec.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserSecurityStateDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UserSecurityStateDTO.cs deleted file mode 100644 index 2c937b2..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserSecurityStateDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// UserSecurityStateDTO - /// - [DataContract] - public partial class UserSecurityStateDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identificativo.. - /// Nome dello stato.. - /// Identificativo utente.. - /// Possibilità di modifica del file associato al profilo documentale.. - /// Possibilità di modifica del profilo documentale.. - public UserSecurityStateDTO(int? id = default(int?), string state = default(string), int? userId = default(int?), bool? opt1 = default(bool?), bool? opt2 = default(bool?)) - { - this.Id = id; - this.State = state; - this.UserId = userId; - this.Opt1 = opt1; - this.Opt2 = opt2; - } - - /// - /// Identificativo. - /// - /// Identificativo. - [DataMember(Name="id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Nome dello stato. - /// - /// Nome dello stato. - [DataMember(Name="state", EmitDefaultValue=false)] - public string State { get; set; } - - /// - /// Identificativo utente. - /// - /// Identificativo utente. - [DataMember(Name="userId", EmitDefaultValue=false)] - public int? UserId { get; set; } - - /// - /// Possibilità di modifica del file associato al profilo documentale. - /// - /// Possibilità di modifica del file associato al profilo documentale. - [DataMember(Name="opt1", EmitDefaultValue=false)] - public bool? Opt1 { get; set; } - - /// - /// Possibilità di modifica del profilo documentale. - /// - /// Possibilità di modifica del profilo documentale. - [DataMember(Name="opt2", EmitDefaultValue=false)] - public bool? Opt2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserSecurityStateDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" Opt1: ").Append(Opt1).Append("\n"); - sb.Append(" Opt2: ").Append(Opt2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserSecurityStateDTO); - } - - /// - /// Returns true if UserSecurityStateDTO instances are equal - /// - /// Instance of UserSecurityStateDTO to be compared - /// Boolean - public bool Equals(UserSecurityStateDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.Opt1 == input.Opt1 || - (this.Opt1 != null && - this.Opt1.Equals(input.Opt1)) - ) && - ( - this.Opt2 == input.Opt2 || - (this.Opt2 != null && - this.Opt2.Equals(input.Opt2)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.Opt1 != null) - hashCode = hashCode * 59 + this.Opt1.GetHashCode(); - if (this.Opt2 != null) - hashCode = hashCode * 59 + this.Opt2.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UserSimpleDTO.cs deleted file mode 100644 index e2e7bf4..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserSimpleDTO.cs +++ /dev/null @@ -1,193 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of the user - /// - [DataContract] - public partial class UserSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D . - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler . - /// User is disabled (non active or hidden). - public UserSimpleDTO(int? user = default(int?), string description = default(string), int? category = default(int?), int? group = default(int?), bool? isUserDisabled = default(bool?)) - { - this.User = user; - this.Description = description; - this.Category = category; - this.Group = group; - this.IsUserDisabled = isUserDisabled; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - [DataMember(Name="category", EmitDefaultValue=false)] - public int? Category { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - [DataMember(Name="group", EmitDefaultValue=false)] - public int? Group { get; set; } - - /// - /// User is disabled (non active or hidden) - /// - /// User is disabled (non active or hidden) - [DataMember(Name="isUserDisabled", EmitDefaultValue=false)] - public bool? IsUserDisabled { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserSimpleDTO {\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" Group: ").Append(Group).Append("\n"); - sb.Append(" IsUserDisabled: ").Append(IsUserDisabled).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserSimpleDTO); - } - - /// - /// Returns true if UserSimpleDTO instances are equal - /// - /// Instance of UserSimpleDTO to be compared - /// Boolean - public bool Equals(UserSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) - ) && - ( - this.IsUserDisabled == input.IsUserDisabled || - (this.IsUserDisabled != null && - this.IsUserDisabled.Equals(input.IsUserDisabled)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.Group != null) - hashCode = hashCode * 59 + this.Group.GetHashCode(); - if (this.IsUserDisabled != null) - hashCode = hashCode * 59 + this.IsUserDisabled.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserUpdateDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UserUpdateDTO.cs deleted file mode 100644 index f44d13b..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UserUpdateDTO.cs +++ /dev/null @@ -1,1293 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// User class for update - /// - [DataContract] - public partial class UserUpdateDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Comportamento dell'utente nel caso di impianto ad \"aoo\" bloccate.. - /// Comportamento dell'utente nel caso di archiviazione provvisoria.. - /// Abilitazione all'inserimento immediato in rubrica durante la profilazione, nel caso non esista il contatto.. - /// Abilitazione alla manutenzione delle liste di distribuzione.. - /// Possible values: 0: Selected 1: All 2: JustAddressBook . - /// Possible values: 0: None 1: Always 2: Never 3: Selected . - /// Possible values: 0: None 1: Always 2: Never 3: Selected . - /// Abilitazione alla cancellazione del profilo se associato alle mail.. - /// Se attivo impone la visualizzazione degli allegati solo in copia conforme dal Web. - /// webSearch. - /// Abilita la ricerche rapide dal WEB. - /// Abilita la casella posta dal WEB. - /// Abilita i fascicoli dal WEB. - /// Abilita le viste dal WEB. - /// Abilita la pratiche dal WEB. - /// Manutenzione lista di Checkin dal Web. - /// Dimensione massima della posta in uscita espressa in Kb. - /// mailOutDefaultType. - /// mailOutType2. - /// mailOutType3. - /// securityStateList. - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler . - /// Description. - /// Email. - /// Business Unit. - /// Password. - /// Default Document Type of First Level. - /// Default Document Type of Second Level. - /// Default Document Type of Third Level. - /// Personal Fax. - /// Date of last reading email. - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D . - /// Enabling Workflow Management. - /// Default Document Status. - /// Enabling to insert new address book items into profiling. - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto . - /// Email Server. - /// Access via Web. - /// Enabled to Import. - /// Enabled to OCR. - /// Enabled to Workflow. - /// Enabled to Sign. - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal . - /// Enabled to Public Amministration (PA) Protocol. - /// Enabled to Templates. - /// Domain. - /// Out Status. - /// Email Body. - /// Enabled to Notify. - /// Mailer client. - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione . - /// Person in Charge of AOS. - /// Enabled to Profile Manual Emails. - /// Fiscal Code. - /// Pin. - /// Guest. - /// Change Password. - /// Imagine for the Digital Signature. - /// Type. - /// Enabled to Profile Manual Outgoing Emails. - /// Enabled to Barcode. - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew . - /// Language. - /// Enabled to IX service.. - /// Disabled Expired Password. - /// Full Description. - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Possible values: 0: NotApplied 1: Allow 2: Denied . - /// Enable the user to view the workflow information. - public UserUpdateDTO(int? user = default(int?), bool? businessUnitUserUnlock = default(bool?), bool? tempArchive = default(bool?), bool? addressBookProfile = default(bool?), bool? distributionList = default(bool?), int? mailIn = default(int?), int? mailOutStoreExt = default(int?), int? mailOutStoreIn = default(int?), bool? mailDeleteProfile = default(bool?), bool? webCompliantCopy = default(bool?), bool? webSearch = default(bool?), bool? webQuickSearch = default(bool?), bool? webMailBox = default(bool?), bool? webFolders = default(bool?), bool? webSearchViews = default(bool?), bool? webBinders = default(bool?), bool? webCheckinAdmin = default(bool?), int? mailOutMaxSize = default(int?), int? mailOutDefaultType = default(int?), int? mailOutType2 = default(int?), int? mailOutType3 = default(int?), List securityStateList = default(List), int? group = default(int?), string description = default(string), string email = default(string), string businessUnit = default(string), string password = default(string), int? defaultType = default(int?), int? type2 = default(int?), int? type3 = default(int?), string internalFax = default(string), DateTime? lastMail = default(DateTime?), int? category = default(int?), bool? workflow = default(bool?), string defaultState = default(string), bool? addressBook = default(bool?), int? userState = default(int?), string mailServer = default(string), bool? webAccess = default(bool?), bool? upload = default(bool?), bool? folders = default(bool?), bool? flow = default(bool?), bool? sign = default(bool?), int? viewer = default(int?), bool? protocol = default(bool?), bool? models = default(bool?), string domain = default(string), string outState = default(string), string mailBody = default(string), bool? notify = default(bool?), string mailClient = default(string), int? htmlBody = default(int?), bool? respAos = default(bool?), bool? assAos = default(bool?), string codFis = default(string), string pin = default(string), bool? guest = default(bool?), bool? passwordChange = default(bool?), byte[] marking = default(byte[]), int? type = default(int?), bool? mailOutDefault = default(bool?), bool? barcodeAccess = default(bool?), int? mustChangePassword = default(int?), string lang = default(string), bool? ws = default(bool?), bool? disablePswExpired = default(bool?), string completeDescription = default(string), int? canAddVirtualStamps = default(int?), int? canApplyStaps = default(int?), bool? viewFlow = default(bool?)) - { - this.User = user; - this.BusinessUnitUserUnlock = businessUnitUserUnlock; - this.TempArchive = tempArchive; - this.AddressBookProfile = addressBookProfile; - this.DistributionList = distributionList; - this.MailIn = mailIn; - this.MailOutStoreExt = mailOutStoreExt; - this.MailOutStoreIn = mailOutStoreIn; - this.MailDeleteProfile = mailDeleteProfile; - this.WebCompliantCopy = webCompliantCopy; - this.WebSearch = webSearch; - this.WebQuickSearch = webQuickSearch; - this.WebMailBox = webMailBox; - this.WebFolders = webFolders; - this.WebSearchViews = webSearchViews; - this.WebBinders = webBinders; - this.WebCheckinAdmin = webCheckinAdmin; - this.MailOutMaxSize = mailOutMaxSize; - this.MailOutDefaultType = mailOutDefaultType; - this.MailOutType2 = mailOutType2; - this.MailOutType3 = mailOutType3; - this.SecurityStateList = securityStateList; - this.Group = group; - this.Description = description; - this.Email = email; - this.BusinessUnit = businessUnit; - this.Password = password; - this.DefaultType = defaultType; - this.Type2 = type2; - this.Type3 = type3; - this.InternalFax = internalFax; - this.LastMail = lastMail; - this.Category = category; - this.Workflow = workflow; - this.DefaultState = defaultState; - this.AddressBook = addressBook; - this.UserState = userState; - this.MailServer = mailServer; - this.WebAccess = webAccess; - this.Upload = upload; - this.Folders = folders; - this.Flow = flow; - this.Sign = sign; - this.Viewer = viewer; - this.Protocol = protocol; - this.Models = models; - this.Domain = domain; - this.OutState = outState; - this.MailBody = mailBody; - this.Notify = notify; - this.MailClient = mailClient; - this.HtmlBody = htmlBody; - this.RespAos = respAos; - this.AssAos = assAos; - this.CodFis = codFis; - this.Pin = pin; - this.Guest = guest; - this.PasswordChange = passwordChange; - this.Marking = marking; - this.Type = type; - this.MailOutDefault = mailOutDefault; - this.BarcodeAccess = barcodeAccess; - this.MustChangePassword = mustChangePassword; - this.Lang = lang; - this.Ws = ws; - this.DisablePswExpired = disablePswExpired; - this.CompleteDescription = completeDescription; - this.CanAddVirtualStamps = canAddVirtualStamps; - this.CanApplyStaps = canApplyStaps; - this.ViewFlow = viewFlow; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Comportamento dell'utente nel caso di impianto ad \"aoo\" bloccate. - /// - /// Comportamento dell'utente nel caso di impianto ad \"aoo\" bloccate. - [DataMember(Name="businessUnitUserUnlock", EmitDefaultValue=false)] - public bool? BusinessUnitUserUnlock { get; set; } - - /// - /// Comportamento dell'utente nel caso di archiviazione provvisoria. - /// - /// Comportamento dell'utente nel caso di archiviazione provvisoria. - [DataMember(Name="tempArchive", EmitDefaultValue=false)] - public bool? TempArchive { get; set; } - - /// - /// Abilitazione all'inserimento immediato in rubrica durante la profilazione, nel caso non esista il contatto. - /// - /// Abilitazione all'inserimento immediato in rubrica durante la profilazione, nel caso non esista il contatto. - [DataMember(Name="addressBookProfile", EmitDefaultValue=false)] - public bool? AddressBookProfile { get; set; } - - /// - /// Abilitazione alla manutenzione delle liste di distribuzione. - /// - /// Abilitazione alla manutenzione delle liste di distribuzione. - [DataMember(Name="distributionList", EmitDefaultValue=false)] - public bool? DistributionList { get; set; } - - /// - /// Possible values: 0: Selected 1: All 2: JustAddressBook - /// - /// Possible values: 0: Selected 1: All 2: JustAddressBook - [DataMember(Name="mailIn", EmitDefaultValue=false)] - public int? MailIn { get; set; } - - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - [DataMember(Name="mailOutStoreExt", EmitDefaultValue=false)] - public int? MailOutStoreExt { get; set; } - - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - /// - /// Possible values: 0: None 1: Always 2: Never 3: Selected - [DataMember(Name="mailOutStoreIn", EmitDefaultValue=false)] - public int? MailOutStoreIn { get; set; } - - /// - /// Abilitazione alla cancellazione del profilo se associato alle mail. - /// - /// Abilitazione alla cancellazione del profilo se associato alle mail. - [DataMember(Name="mailDeleteProfile", EmitDefaultValue=false)] - public bool? MailDeleteProfile { get; set; } - - /// - /// Se attivo impone la visualizzazione degli allegati solo in copia conforme dal Web - /// - /// Se attivo impone la visualizzazione degli allegati solo in copia conforme dal Web - [DataMember(Name="webCompliantCopy", EmitDefaultValue=false)] - public bool? WebCompliantCopy { get; set; } - - /// - /// Gets or Sets WebSearch - /// - [DataMember(Name="webSearch", EmitDefaultValue=false)] - public bool? WebSearch { get; set; } - - /// - /// Abilita la ricerche rapide dal WEB - /// - /// Abilita la ricerche rapide dal WEB - [DataMember(Name="webQuickSearch", EmitDefaultValue=false)] - public bool? WebQuickSearch { get; set; } - - /// - /// Abilita la casella posta dal WEB - /// - /// Abilita la casella posta dal WEB - [DataMember(Name="webMailBox", EmitDefaultValue=false)] - public bool? WebMailBox { get; set; } - - /// - /// Abilita i fascicoli dal WEB - /// - /// Abilita i fascicoli dal WEB - [DataMember(Name="webFolders", EmitDefaultValue=false)] - public bool? WebFolders { get; set; } - - /// - /// Abilita le viste dal WEB - /// - /// Abilita le viste dal WEB - [DataMember(Name="webSearchViews", EmitDefaultValue=false)] - public bool? WebSearchViews { get; set; } - - /// - /// Abilita la pratiche dal WEB - /// - /// Abilita la pratiche dal WEB - [DataMember(Name="webBinders", EmitDefaultValue=false)] - public bool? WebBinders { get; set; } - - /// - /// Manutenzione lista di Checkin dal Web - /// - /// Manutenzione lista di Checkin dal Web - [DataMember(Name="webCheckinAdmin", EmitDefaultValue=false)] - public bool? WebCheckinAdmin { get; set; } - - /// - /// Dimensione massima della posta in uscita espressa in Kb - /// - /// Dimensione massima della posta in uscita espressa in Kb - [DataMember(Name="mailOutMaxSize", EmitDefaultValue=false)] - public int? MailOutMaxSize { get; set; } - - /// - /// Gets or Sets MailOutDefaultType - /// - [DataMember(Name="mailOutDefaultType", EmitDefaultValue=false)] - public int? MailOutDefaultType { get; set; } - - /// - /// Gets or Sets MailOutType2 - /// - [DataMember(Name="mailOutType2", EmitDefaultValue=false)] - public int? MailOutType2 { get; set; } - - /// - /// Gets or Sets MailOutType3 - /// - [DataMember(Name="mailOutType3", EmitDefaultValue=false)] - public int? MailOutType3 { get; set; } - - /// - /// Gets or Sets SecurityStateList - /// - [DataMember(Name="securityStateList", EmitDefaultValue=false)] - public List SecurityStateList { get; set; } - - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - /// - /// Possible values: 0: Non_Impostato 1: Admin 2: User 3: Profiler - [DataMember(Name="group", EmitDefaultValue=false)] - public int? Group { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Email - /// - /// Email - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Business Unit - /// - /// Business Unit - [DataMember(Name="businessUnit", EmitDefaultValue=false)] - public string BusinessUnit { get; set; } - - /// - /// Password - /// - /// Password - [DataMember(Name="password", EmitDefaultValue=false)] - public string Password { get; set; } - - /// - /// Default Document Type of First Level - /// - /// Default Document Type of First Level - [DataMember(Name="defaultType", EmitDefaultValue=false)] - public int? DefaultType { get; set; } - - /// - /// Default Document Type of Second Level - /// - /// Default Document Type of Second Level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Default Document Type of Third Level - /// - /// Default Document Type of Third Level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Personal Fax - /// - /// Personal Fax - [DataMember(Name="internalFax", EmitDefaultValue=false)] - public string InternalFax { get; set; } - - /// - /// Date of last reading email - /// - /// Date of last reading email - [DataMember(Name="lastMail", EmitDefaultValue=false)] - public DateTime? LastMail { get; set; } - - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - /// - /// Possible values: 0: U 1: S 2: M 3: F 4: G 5: I 6: D - [DataMember(Name="category", EmitDefaultValue=false)] - public int? Category { get; set; } - - /// - /// Enabling Workflow Management - /// - /// Enabling Workflow Management - [DataMember(Name="workflow", EmitDefaultValue=false)] - public bool? Workflow { get; set; } - - /// - /// Default Document Status - /// - /// Default Document Status - [DataMember(Name="defaultState", EmitDefaultValue=false)] - public string DefaultState { get; set; } - - /// - /// Enabling to insert new address book items into profiling - /// - /// Enabling to insert new address book items into profiling - [DataMember(Name="addressBook", EmitDefaultValue=false)] - public bool? AddressBook { get; set; } - - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - /// - /// Possible values: 0: NonAttivo 1: Attivo 2: Nascosto - [DataMember(Name="userState", EmitDefaultValue=false)] - public int? UserState { get; set; } - - /// - /// Email Server - /// - /// Email Server - [DataMember(Name="mailServer", EmitDefaultValue=false)] - public string MailServer { get; set; } - - /// - /// Access via Web - /// - /// Access via Web - [DataMember(Name="webAccess", EmitDefaultValue=false)] - public bool? WebAccess { get; set; } - - /// - /// Enabled to Import - /// - /// Enabled to Import - [DataMember(Name="upload", EmitDefaultValue=false)] - public bool? Upload { get; set; } - - /// - /// Enabled to OCR - /// - /// Enabled to OCR - [DataMember(Name="folders", EmitDefaultValue=false)] - public bool? Folders { get; set; } - - /// - /// Enabled to Workflow - /// - /// Enabled to Workflow - [DataMember(Name="flow", EmitDefaultValue=false)] - public bool? Flow { get; set; } - - /// - /// Enabled to Sign - /// - /// Enabled to Sign - [DataMember(Name="sign", EmitDefaultValue=false)] - public bool? Sign { get; set; } - - /// - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal - /// - /// Possible values: 0: Standard 1: Lite 2: Comunicazioni 3: Portal - [DataMember(Name="viewer", EmitDefaultValue=false)] - public int? Viewer { get; set; } - - /// - /// Enabled to Public Amministration (PA) Protocol - /// - /// Enabled to Public Amministration (PA) Protocol - [DataMember(Name="protocol", EmitDefaultValue=false)] - public bool? Protocol { get; set; } - - /// - /// Enabled to Templates - /// - /// Enabled to Templates - [DataMember(Name="models", EmitDefaultValue=false)] - public bool? Models { get; set; } - - /// - /// Domain - /// - /// Domain - [DataMember(Name="domain", EmitDefaultValue=false)] - public string Domain { get; set; } - - /// - /// Out Status - /// - /// Out Status - [DataMember(Name="outState", EmitDefaultValue=false)] - public string OutState { get; set; } - - /// - /// Email Body - /// - /// Email Body - [DataMember(Name="mailBody", EmitDefaultValue=false)] - public string MailBody { get; set; } - - /// - /// Enabled to Notify - /// - /// Enabled to Notify - [DataMember(Name="notify", EmitDefaultValue=false)] - public bool? Notify { get; set; } - - /// - /// Mailer client - /// - /// Mailer client - [DataMember(Name="mailClient", EmitDefaultValue=false)] - public string MailClient { get; set; } - - /// - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione - /// - /// Possible values: 0: Disabilitato 1: SoloSpedizione 2: SoloRicezione 3: SpedizioneRicezione - [DataMember(Name="htmlBody", EmitDefaultValue=false)] - public int? HtmlBody { get; set; } - - /// - /// Person in Charge of AOS - /// - /// Person in Charge of AOS - [DataMember(Name="respAos", EmitDefaultValue=false)] - public bool? RespAos { get; set; } - - /// - /// Enabled to Profile Manual Emails - /// - /// Enabled to Profile Manual Emails - [DataMember(Name="assAos", EmitDefaultValue=false)] - public bool? AssAos { get; set; } - - /// - /// Fiscal Code - /// - /// Fiscal Code - [DataMember(Name="codFis", EmitDefaultValue=false)] - public string CodFis { get; set; } - - /// - /// Pin - /// - /// Pin - [DataMember(Name="pin", EmitDefaultValue=false)] - public string Pin { get; set; } - - /// - /// Guest - /// - /// Guest - [DataMember(Name="guest", EmitDefaultValue=false)] - public bool? Guest { get; set; } - - /// - /// Change Password - /// - /// Change Password - [DataMember(Name="passwordChange", EmitDefaultValue=false)] - public bool? PasswordChange { get; set; } - - /// - /// Imagine for the Digital Signature - /// - /// Imagine for the Digital Signature - [DataMember(Name="marking", EmitDefaultValue=false)] - public byte[] Marking { get; set; } - - /// - /// Type - /// - /// Type - [DataMember(Name="type", EmitDefaultValue=false)] - public int? Type { get; set; } - - /// - /// Enabled to Profile Manual Outgoing Emails - /// - /// Enabled to Profile Manual Outgoing Emails - [DataMember(Name="mailOutDefault", EmitDefaultValue=false)] - public bool? MailOutDefault { get; set; } - - /// - /// Enabled to Barcode - /// - /// Enabled to Barcode - [DataMember(Name="barcodeAccess", EmitDefaultValue=false)] - public bool? BarcodeAccess { get; set; } - - /// - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew - /// - /// Possible values: 0: No 1: Yes 2: YesForChangePasswordNew - [DataMember(Name="mustChangePassword", EmitDefaultValue=false)] - public int? MustChangePassword { get; set; } - - /// - /// Language - /// - /// Language - [DataMember(Name="lang", EmitDefaultValue=false)] - public string Lang { get; set; } - - /// - /// Enabled to IX service. - /// - /// Enabled to IX service. - [DataMember(Name="ws", EmitDefaultValue=false)] - public bool? Ws { get; set; } - - /// - /// Disabled Expired Password - /// - /// Disabled Expired Password - [DataMember(Name="disablePswExpired", EmitDefaultValue=false)] - public bool? DisablePswExpired { get; set; } - - /// - /// Full Description - /// - /// Full Description - [DataMember(Name="completeDescription", EmitDefaultValue=false)] - public string CompleteDescription { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canAddVirtualStamps", EmitDefaultValue=false)] - public int? CanAddVirtualStamps { get; set; } - - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - /// - /// Possible values: 0: NotApplied 1: Allow 2: Denied - [DataMember(Name="canApplyStaps", EmitDefaultValue=false)] - public int? CanApplyStaps { get; set; } - - /// - /// Enable the user to view the workflow information - /// - /// Enable the user to view the workflow information - [DataMember(Name="viewFlow", EmitDefaultValue=false)] - public bool? ViewFlow { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UserUpdateDTO {\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" BusinessUnitUserUnlock: ").Append(BusinessUnitUserUnlock).Append("\n"); - sb.Append(" TempArchive: ").Append(TempArchive).Append("\n"); - sb.Append(" AddressBookProfile: ").Append(AddressBookProfile).Append("\n"); - sb.Append(" DistributionList: ").Append(DistributionList).Append("\n"); - sb.Append(" MailIn: ").Append(MailIn).Append("\n"); - sb.Append(" MailOutStoreExt: ").Append(MailOutStoreExt).Append("\n"); - sb.Append(" MailOutStoreIn: ").Append(MailOutStoreIn).Append("\n"); - sb.Append(" MailDeleteProfile: ").Append(MailDeleteProfile).Append("\n"); - sb.Append(" WebCompliantCopy: ").Append(WebCompliantCopy).Append("\n"); - sb.Append(" WebSearch: ").Append(WebSearch).Append("\n"); - sb.Append(" WebQuickSearch: ").Append(WebQuickSearch).Append("\n"); - sb.Append(" WebMailBox: ").Append(WebMailBox).Append("\n"); - sb.Append(" WebFolders: ").Append(WebFolders).Append("\n"); - sb.Append(" WebSearchViews: ").Append(WebSearchViews).Append("\n"); - sb.Append(" WebBinders: ").Append(WebBinders).Append("\n"); - sb.Append(" WebCheckinAdmin: ").Append(WebCheckinAdmin).Append("\n"); - sb.Append(" MailOutMaxSize: ").Append(MailOutMaxSize).Append("\n"); - sb.Append(" MailOutDefaultType: ").Append(MailOutDefaultType).Append("\n"); - sb.Append(" MailOutType2: ").Append(MailOutType2).Append("\n"); - sb.Append(" MailOutType3: ").Append(MailOutType3).Append("\n"); - sb.Append(" SecurityStateList: ").Append(SecurityStateList).Append("\n"); - sb.Append(" Group: ").Append(Group).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" DefaultType: ").Append(DefaultType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append(" InternalFax: ").Append(InternalFax).Append("\n"); - sb.Append(" LastMail: ").Append(LastMail).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" Workflow: ").Append(Workflow).Append("\n"); - sb.Append(" DefaultState: ").Append(DefaultState).Append("\n"); - sb.Append(" AddressBook: ").Append(AddressBook).Append("\n"); - sb.Append(" UserState: ").Append(UserState).Append("\n"); - sb.Append(" MailServer: ").Append(MailServer).Append("\n"); - sb.Append(" WebAccess: ").Append(WebAccess).Append("\n"); - sb.Append(" Upload: ").Append(Upload).Append("\n"); - sb.Append(" Folders: ").Append(Folders).Append("\n"); - sb.Append(" Flow: ").Append(Flow).Append("\n"); - sb.Append(" Sign: ").Append(Sign).Append("\n"); - sb.Append(" Viewer: ").Append(Viewer).Append("\n"); - sb.Append(" Protocol: ").Append(Protocol).Append("\n"); - sb.Append(" Models: ").Append(Models).Append("\n"); - sb.Append(" Domain: ").Append(Domain).Append("\n"); - sb.Append(" OutState: ").Append(OutState).Append("\n"); - sb.Append(" MailBody: ").Append(MailBody).Append("\n"); - sb.Append(" Notify: ").Append(Notify).Append("\n"); - sb.Append(" MailClient: ").Append(MailClient).Append("\n"); - sb.Append(" HtmlBody: ").Append(HtmlBody).Append("\n"); - sb.Append(" RespAos: ").Append(RespAos).Append("\n"); - sb.Append(" AssAos: ").Append(AssAos).Append("\n"); - sb.Append(" CodFis: ").Append(CodFis).Append("\n"); - sb.Append(" Pin: ").Append(Pin).Append("\n"); - sb.Append(" Guest: ").Append(Guest).Append("\n"); - sb.Append(" PasswordChange: ").Append(PasswordChange).Append("\n"); - sb.Append(" Marking: ").Append(Marking).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" MailOutDefault: ").Append(MailOutDefault).Append("\n"); - sb.Append(" BarcodeAccess: ").Append(BarcodeAccess).Append("\n"); - sb.Append(" MustChangePassword: ").Append(MustChangePassword).Append("\n"); - sb.Append(" Lang: ").Append(Lang).Append("\n"); - sb.Append(" Ws: ").Append(Ws).Append("\n"); - sb.Append(" DisablePswExpired: ").Append(DisablePswExpired).Append("\n"); - sb.Append(" CompleteDescription: ").Append(CompleteDescription).Append("\n"); - sb.Append(" CanAddVirtualStamps: ").Append(CanAddVirtualStamps).Append("\n"); - sb.Append(" CanApplyStaps: ").Append(CanApplyStaps).Append("\n"); - sb.Append(" ViewFlow: ").Append(ViewFlow).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UserUpdateDTO); - } - - /// - /// Returns true if UserUpdateDTO instances are equal - /// - /// Instance of UserUpdateDTO to be compared - /// Boolean - public bool Equals(UserUpdateDTO input) - { - if (input == null) - return false; - - return - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.BusinessUnitUserUnlock == input.BusinessUnitUserUnlock || - (this.BusinessUnitUserUnlock != null && - this.BusinessUnitUserUnlock.Equals(input.BusinessUnitUserUnlock)) - ) && - ( - this.TempArchive == input.TempArchive || - (this.TempArchive != null && - this.TempArchive.Equals(input.TempArchive)) - ) && - ( - this.AddressBookProfile == input.AddressBookProfile || - (this.AddressBookProfile != null && - this.AddressBookProfile.Equals(input.AddressBookProfile)) - ) && - ( - this.DistributionList == input.DistributionList || - (this.DistributionList != null && - this.DistributionList.Equals(input.DistributionList)) - ) && - ( - this.MailIn == input.MailIn || - (this.MailIn != null && - this.MailIn.Equals(input.MailIn)) - ) && - ( - this.MailOutStoreExt == input.MailOutStoreExt || - (this.MailOutStoreExt != null && - this.MailOutStoreExt.Equals(input.MailOutStoreExt)) - ) && - ( - this.MailOutStoreIn == input.MailOutStoreIn || - (this.MailOutStoreIn != null && - this.MailOutStoreIn.Equals(input.MailOutStoreIn)) - ) && - ( - this.MailDeleteProfile == input.MailDeleteProfile || - (this.MailDeleteProfile != null && - this.MailDeleteProfile.Equals(input.MailDeleteProfile)) - ) && - ( - this.WebCompliantCopy == input.WebCompliantCopy || - (this.WebCompliantCopy != null && - this.WebCompliantCopy.Equals(input.WebCompliantCopy)) - ) && - ( - this.WebSearch == input.WebSearch || - (this.WebSearch != null && - this.WebSearch.Equals(input.WebSearch)) - ) && - ( - this.WebQuickSearch == input.WebQuickSearch || - (this.WebQuickSearch != null && - this.WebQuickSearch.Equals(input.WebQuickSearch)) - ) && - ( - this.WebMailBox == input.WebMailBox || - (this.WebMailBox != null && - this.WebMailBox.Equals(input.WebMailBox)) - ) && - ( - this.WebFolders == input.WebFolders || - (this.WebFolders != null && - this.WebFolders.Equals(input.WebFolders)) - ) && - ( - this.WebSearchViews == input.WebSearchViews || - (this.WebSearchViews != null && - this.WebSearchViews.Equals(input.WebSearchViews)) - ) && - ( - this.WebBinders == input.WebBinders || - (this.WebBinders != null && - this.WebBinders.Equals(input.WebBinders)) - ) && - ( - this.WebCheckinAdmin == input.WebCheckinAdmin || - (this.WebCheckinAdmin != null && - this.WebCheckinAdmin.Equals(input.WebCheckinAdmin)) - ) && - ( - this.MailOutMaxSize == input.MailOutMaxSize || - (this.MailOutMaxSize != null && - this.MailOutMaxSize.Equals(input.MailOutMaxSize)) - ) && - ( - this.MailOutDefaultType == input.MailOutDefaultType || - (this.MailOutDefaultType != null && - this.MailOutDefaultType.Equals(input.MailOutDefaultType)) - ) && - ( - this.MailOutType2 == input.MailOutType2 || - (this.MailOutType2 != null && - this.MailOutType2.Equals(input.MailOutType2)) - ) && - ( - this.MailOutType3 == input.MailOutType3 || - (this.MailOutType3 != null && - this.MailOutType3.Equals(input.MailOutType3)) - ) && - ( - this.SecurityStateList == input.SecurityStateList || - this.SecurityStateList != null && - this.SecurityStateList.SequenceEqual(input.SecurityStateList) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.BusinessUnit == input.BusinessUnit || - (this.BusinessUnit != null && - this.BusinessUnit.Equals(input.BusinessUnit)) - ) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && - ( - this.DefaultType == input.DefaultType || - (this.DefaultType != null && - this.DefaultType.Equals(input.DefaultType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ) && - ( - this.InternalFax == input.InternalFax || - (this.InternalFax != null && - this.InternalFax.Equals(input.InternalFax)) - ) && - ( - this.LastMail == input.LastMail || - (this.LastMail != null && - this.LastMail.Equals(input.LastMail)) - ) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && - ( - this.Workflow == input.Workflow || - (this.Workflow != null && - this.Workflow.Equals(input.Workflow)) - ) && - ( - this.DefaultState == input.DefaultState || - (this.DefaultState != null && - this.DefaultState.Equals(input.DefaultState)) - ) && - ( - this.AddressBook == input.AddressBook || - (this.AddressBook != null && - this.AddressBook.Equals(input.AddressBook)) - ) && - ( - this.UserState == input.UserState || - (this.UserState != null && - this.UserState.Equals(input.UserState)) - ) && - ( - this.MailServer == input.MailServer || - (this.MailServer != null && - this.MailServer.Equals(input.MailServer)) - ) && - ( - this.WebAccess == input.WebAccess || - (this.WebAccess != null && - this.WebAccess.Equals(input.WebAccess)) - ) && - ( - this.Upload == input.Upload || - (this.Upload != null && - this.Upload.Equals(input.Upload)) - ) && - ( - this.Folders == input.Folders || - (this.Folders != null && - this.Folders.Equals(input.Folders)) - ) && - ( - this.Flow == input.Flow || - (this.Flow != null && - this.Flow.Equals(input.Flow)) - ) && - ( - this.Sign == input.Sign || - (this.Sign != null && - this.Sign.Equals(input.Sign)) - ) && - ( - this.Viewer == input.Viewer || - (this.Viewer != null && - this.Viewer.Equals(input.Viewer)) - ) && - ( - this.Protocol == input.Protocol || - (this.Protocol != null && - this.Protocol.Equals(input.Protocol)) - ) && - ( - this.Models == input.Models || - (this.Models != null && - this.Models.Equals(input.Models)) - ) && - ( - this.Domain == input.Domain || - (this.Domain != null && - this.Domain.Equals(input.Domain)) - ) && - ( - this.OutState == input.OutState || - (this.OutState != null && - this.OutState.Equals(input.OutState)) - ) && - ( - this.MailBody == input.MailBody || - (this.MailBody != null && - this.MailBody.Equals(input.MailBody)) - ) && - ( - this.Notify == input.Notify || - (this.Notify != null && - this.Notify.Equals(input.Notify)) - ) && - ( - this.MailClient == input.MailClient || - (this.MailClient != null && - this.MailClient.Equals(input.MailClient)) - ) && - ( - this.HtmlBody == input.HtmlBody || - (this.HtmlBody != null && - this.HtmlBody.Equals(input.HtmlBody)) - ) && - ( - this.RespAos == input.RespAos || - (this.RespAos != null && - this.RespAos.Equals(input.RespAos)) - ) && - ( - this.AssAos == input.AssAos || - (this.AssAos != null && - this.AssAos.Equals(input.AssAos)) - ) && - ( - this.CodFis == input.CodFis || - (this.CodFis != null && - this.CodFis.Equals(input.CodFis)) - ) && - ( - this.Pin == input.Pin || - (this.Pin != null && - this.Pin.Equals(input.Pin)) - ) && - ( - this.Guest == input.Guest || - (this.Guest != null && - this.Guest.Equals(input.Guest)) - ) && - ( - this.PasswordChange == input.PasswordChange || - (this.PasswordChange != null && - this.PasswordChange.Equals(input.PasswordChange)) - ) && - ( - this.Marking == input.Marking || - (this.Marking != null && - this.Marking.Equals(input.Marking)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.MailOutDefault == input.MailOutDefault || - (this.MailOutDefault != null && - this.MailOutDefault.Equals(input.MailOutDefault)) - ) && - ( - this.BarcodeAccess == input.BarcodeAccess || - (this.BarcodeAccess != null && - this.BarcodeAccess.Equals(input.BarcodeAccess)) - ) && - ( - this.MustChangePassword == input.MustChangePassword || - (this.MustChangePassword != null && - this.MustChangePassword.Equals(input.MustChangePassword)) - ) && - ( - this.Lang == input.Lang || - (this.Lang != null && - this.Lang.Equals(input.Lang)) - ) && - ( - this.Ws == input.Ws || - (this.Ws != null && - this.Ws.Equals(input.Ws)) - ) && - ( - this.DisablePswExpired == input.DisablePswExpired || - (this.DisablePswExpired != null && - this.DisablePswExpired.Equals(input.DisablePswExpired)) - ) && - ( - this.CompleteDescription == input.CompleteDescription || - (this.CompleteDescription != null && - this.CompleteDescription.Equals(input.CompleteDescription)) - ) && - ( - this.CanAddVirtualStamps == input.CanAddVirtualStamps || - (this.CanAddVirtualStamps != null && - this.CanAddVirtualStamps.Equals(input.CanAddVirtualStamps)) - ) && - ( - this.CanApplyStaps == input.CanApplyStaps || - (this.CanApplyStaps != null && - this.CanApplyStaps.Equals(input.CanApplyStaps)) - ) && - ( - this.ViewFlow == input.ViewFlow || - (this.ViewFlow != null && - this.ViewFlow.Equals(input.ViewFlow)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.BusinessUnitUserUnlock != null) - hashCode = hashCode * 59 + this.BusinessUnitUserUnlock.GetHashCode(); - if (this.TempArchive != null) - hashCode = hashCode * 59 + this.TempArchive.GetHashCode(); - if (this.AddressBookProfile != null) - hashCode = hashCode * 59 + this.AddressBookProfile.GetHashCode(); - if (this.DistributionList != null) - hashCode = hashCode * 59 + this.DistributionList.GetHashCode(); - if (this.MailIn != null) - hashCode = hashCode * 59 + this.MailIn.GetHashCode(); - if (this.MailOutStoreExt != null) - hashCode = hashCode * 59 + this.MailOutStoreExt.GetHashCode(); - if (this.MailOutStoreIn != null) - hashCode = hashCode * 59 + this.MailOutStoreIn.GetHashCode(); - if (this.MailDeleteProfile != null) - hashCode = hashCode * 59 + this.MailDeleteProfile.GetHashCode(); - if (this.WebCompliantCopy != null) - hashCode = hashCode * 59 + this.WebCompliantCopy.GetHashCode(); - if (this.WebSearch != null) - hashCode = hashCode * 59 + this.WebSearch.GetHashCode(); - if (this.WebQuickSearch != null) - hashCode = hashCode * 59 + this.WebQuickSearch.GetHashCode(); - if (this.WebMailBox != null) - hashCode = hashCode * 59 + this.WebMailBox.GetHashCode(); - if (this.WebFolders != null) - hashCode = hashCode * 59 + this.WebFolders.GetHashCode(); - if (this.WebSearchViews != null) - hashCode = hashCode * 59 + this.WebSearchViews.GetHashCode(); - if (this.WebBinders != null) - hashCode = hashCode * 59 + this.WebBinders.GetHashCode(); - if (this.WebCheckinAdmin != null) - hashCode = hashCode * 59 + this.WebCheckinAdmin.GetHashCode(); - if (this.MailOutMaxSize != null) - hashCode = hashCode * 59 + this.MailOutMaxSize.GetHashCode(); - if (this.MailOutDefaultType != null) - hashCode = hashCode * 59 + this.MailOutDefaultType.GetHashCode(); - if (this.MailOutType2 != null) - hashCode = hashCode * 59 + this.MailOutType2.GetHashCode(); - if (this.MailOutType3 != null) - hashCode = hashCode * 59 + this.MailOutType3.GetHashCode(); - if (this.SecurityStateList != null) - hashCode = hashCode * 59 + this.SecurityStateList.GetHashCode(); - if (this.Group != null) - hashCode = hashCode * 59 + this.Group.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.BusinessUnit != null) - hashCode = hashCode * 59 + this.BusinessUnit.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.DefaultType != null) - hashCode = hashCode * 59 + this.DefaultType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - if (this.InternalFax != null) - hashCode = hashCode * 59 + this.InternalFax.GetHashCode(); - if (this.LastMail != null) - hashCode = hashCode * 59 + this.LastMail.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.Workflow != null) - hashCode = hashCode * 59 + this.Workflow.GetHashCode(); - if (this.DefaultState != null) - hashCode = hashCode * 59 + this.DefaultState.GetHashCode(); - if (this.AddressBook != null) - hashCode = hashCode * 59 + this.AddressBook.GetHashCode(); - if (this.UserState != null) - hashCode = hashCode * 59 + this.UserState.GetHashCode(); - if (this.MailServer != null) - hashCode = hashCode * 59 + this.MailServer.GetHashCode(); - if (this.WebAccess != null) - hashCode = hashCode * 59 + this.WebAccess.GetHashCode(); - if (this.Upload != null) - hashCode = hashCode * 59 + this.Upload.GetHashCode(); - if (this.Folders != null) - hashCode = hashCode * 59 + this.Folders.GetHashCode(); - if (this.Flow != null) - hashCode = hashCode * 59 + this.Flow.GetHashCode(); - if (this.Sign != null) - hashCode = hashCode * 59 + this.Sign.GetHashCode(); - if (this.Viewer != null) - hashCode = hashCode * 59 + this.Viewer.GetHashCode(); - if (this.Protocol != null) - hashCode = hashCode * 59 + this.Protocol.GetHashCode(); - if (this.Models != null) - hashCode = hashCode * 59 + this.Models.GetHashCode(); - if (this.Domain != null) - hashCode = hashCode * 59 + this.Domain.GetHashCode(); - if (this.OutState != null) - hashCode = hashCode * 59 + this.OutState.GetHashCode(); - if (this.MailBody != null) - hashCode = hashCode * 59 + this.MailBody.GetHashCode(); - if (this.Notify != null) - hashCode = hashCode * 59 + this.Notify.GetHashCode(); - if (this.MailClient != null) - hashCode = hashCode * 59 + this.MailClient.GetHashCode(); - if (this.HtmlBody != null) - hashCode = hashCode * 59 + this.HtmlBody.GetHashCode(); - if (this.RespAos != null) - hashCode = hashCode * 59 + this.RespAos.GetHashCode(); - if (this.AssAos != null) - hashCode = hashCode * 59 + this.AssAos.GetHashCode(); - if (this.CodFis != null) - hashCode = hashCode * 59 + this.CodFis.GetHashCode(); - if (this.Pin != null) - hashCode = hashCode * 59 + this.Pin.GetHashCode(); - if (this.Guest != null) - hashCode = hashCode * 59 + this.Guest.GetHashCode(); - if (this.PasswordChange != null) - hashCode = hashCode * 59 + this.PasswordChange.GetHashCode(); - if (this.Marking != null) - hashCode = hashCode * 59 + this.Marking.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.MailOutDefault != null) - hashCode = hashCode * 59 + this.MailOutDefault.GetHashCode(); - if (this.BarcodeAccess != null) - hashCode = hashCode * 59 + this.BarcodeAccess.GetHashCode(); - if (this.MustChangePassword != null) - hashCode = hashCode * 59 + this.MustChangePassword.GetHashCode(); - if (this.Lang != null) - hashCode = hashCode * 59 + this.Lang.GetHashCode(); - if (this.Ws != null) - hashCode = hashCode * 59 + this.Ws.GetHashCode(); - if (this.DisablePswExpired != null) - hashCode = hashCode * 59 + this.DisablePswExpired.GetHashCode(); - if (this.CompleteDescription != null) - hashCode = hashCode * 59 + this.CompleteDescription.GetHashCode(); - if (this.CanAddVirtualStamps != null) - hashCode = hashCode * 59 + this.CanAddVirtualStamps.GetHashCode(); - if (this.CanApplyStaps != null) - hashCode = hashCode * 59 + this.CanApplyStaps.GetHashCode(); - if (this.ViewFlow != null) - hashCode = hashCode * 59 + this.ViewFlow.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UsersMasksDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UsersMasksDTO.cs deleted file mode 100644 index d8c31df..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UsersMasksDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of document type: users masks - /// - [DataContract] - public partial class UsersMasksDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Document type. - /// Default document Type Mask. - /// Users masks. - public UsersMasksDTO(DocumentTypeSimpleDTO documentType = default(DocumentTypeSimpleDTO), MaskSimpleDTO defaultMask = default(MaskSimpleDTO), List usersMasks = default(List)) - { - this.DocumentType = documentType; - this.DefaultMask = defaultMask; - this.UsersMasks = usersMasks; - } - - /// - /// Document type - /// - /// Document type - [DataMember(Name="documentType", EmitDefaultValue=false)] - public DocumentTypeSimpleDTO DocumentType { get; set; } - - /// - /// Default document Type Mask - /// - /// Default document Type Mask - [DataMember(Name="defaultMask", EmitDefaultValue=false)] - public MaskSimpleDTO DefaultMask { get; set; } - - /// - /// Users masks - /// - /// Users masks - [DataMember(Name="usersMasks", EmitDefaultValue=false)] - public List UsersMasks { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UsersMasksDTO {\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" DefaultMask: ").Append(DefaultMask).Append("\n"); - sb.Append(" UsersMasks: ").Append(UsersMasks).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UsersMasksDTO); - } - - /// - /// Returns true if UsersMasksDTO instances are equal - /// - /// Instance of UsersMasksDTO to be compared - /// Boolean - public bool Equals(UsersMasksDTO input) - { - if (input == null) - return false; - - return - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.DefaultMask == input.DefaultMask || - (this.DefaultMask != null && - this.DefaultMask.Equals(input.DefaultMask)) - ) && - ( - this.UsersMasks == input.UsersMasks || - this.UsersMasks != null && - this.UsersMasks.SequenceEqual(input.UsersMasks) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.DefaultMask != null) - hashCode = hashCode * 59 + this.DefaultMask.GetHashCode(); - if (this.UsersMasks != null) - hashCode = hashCode * 59 + this.UsersMasks.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UsersMassiveImportRequestDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UsersMassiveImportRequestDTO.cs deleted file mode 100644 index 575a580..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UsersMassiveImportRequestDTO.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for users massive import request - /// - [DataContract] - public partial class UsersMassiveImportRequestDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Users data to import. - /// Restore users if they are deleted. - /// Common users data. - /// Common users mail settings. - /// Common users states. - /// Common users impersonate. - public UsersMassiveImportRequestDTO(List usersData = default(List), bool? restoreDeleted = default(bool?), UserInsertDTO userModel = default(UserInsertDTO), MailAccountSettingsDTO mailSettings = default(MailAccountSettingsDTO), List states = default(List), ImpersonateDTO impersonate = default(ImpersonateDTO)) - { - this.UsersData = usersData; - this.RestoreDeleted = restoreDeleted; - this.UserModel = userModel; - this.MailSettings = mailSettings; - this.States = states; - this.Impersonate = impersonate; - } - - /// - /// Users data to import - /// - /// Users data to import - [DataMember(Name="usersData", EmitDefaultValue=false)] - public List UsersData { get; set; } - - /// - /// Restore users if they are deleted - /// - /// Restore users if they are deleted - [DataMember(Name="restoreDeleted", EmitDefaultValue=false)] - public bool? RestoreDeleted { get; set; } - - /// - /// Common users data - /// - /// Common users data - [DataMember(Name="userModel", EmitDefaultValue=false)] - public UserInsertDTO UserModel { get; set; } - - /// - /// Common users mail settings - /// - /// Common users mail settings - [DataMember(Name="mailSettings", EmitDefaultValue=false)] - public MailAccountSettingsDTO MailSettings { get; set; } - - /// - /// Common users states - /// - /// Common users states - [DataMember(Name="states", EmitDefaultValue=false)] - public List States { get; set; } - - /// - /// Common users impersonate - /// - /// Common users impersonate - [DataMember(Name="impersonate", EmitDefaultValue=false)] - public ImpersonateDTO Impersonate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UsersMassiveImportRequestDTO {\n"); - sb.Append(" UsersData: ").Append(UsersData).Append("\n"); - sb.Append(" RestoreDeleted: ").Append(RestoreDeleted).Append("\n"); - sb.Append(" UserModel: ").Append(UserModel).Append("\n"); - sb.Append(" MailSettings: ").Append(MailSettings).Append("\n"); - sb.Append(" States: ").Append(States).Append("\n"); - sb.Append(" Impersonate: ").Append(Impersonate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UsersMassiveImportRequestDTO); - } - - /// - /// Returns true if UsersMassiveImportRequestDTO instances are equal - /// - /// Instance of UsersMassiveImportRequestDTO to be compared - /// Boolean - public bool Equals(UsersMassiveImportRequestDTO input) - { - if (input == null) - return false; - - return - ( - this.UsersData == input.UsersData || - this.UsersData != null && - this.UsersData.SequenceEqual(input.UsersData) - ) && - ( - this.RestoreDeleted == input.RestoreDeleted || - (this.RestoreDeleted != null && - this.RestoreDeleted.Equals(input.RestoreDeleted)) - ) && - ( - this.UserModel == input.UserModel || - (this.UserModel != null && - this.UserModel.Equals(input.UserModel)) - ) && - ( - this.MailSettings == input.MailSettings || - (this.MailSettings != null && - this.MailSettings.Equals(input.MailSettings)) - ) && - ( - this.States == input.States || - this.States != null && - this.States.SequenceEqual(input.States) - ) && - ( - this.Impersonate == input.Impersonate || - (this.Impersonate != null && - this.Impersonate.Equals(input.Impersonate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.UsersData != null) - hashCode = hashCode * 59 + this.UsersData.GetHashCode(); - if (this.RestoreDeleted != null) - hashCode = hashCode * 59 + this.RestoreDeleted.GetHashCode(); - if (this.UserModel != null) - hashCode = hashCode * 59 + this.UserModel.GetHashCode(); - if (this.MailSettings != null) - hashCode = hashCode * 59 + this.MailSettings.GetHashCode(); - if (this.States != null) - hashCode = hashCode * 59 + this.States.GetHashCode(); - if (this.Impersonate != null) - hashCode = hashCode * 59 + this.Impersonate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UsersMassiveImportResponseDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UsersMassiveImportResponseDTO.cs deleted file mode 100644 index 4b74628..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UsersMassiveImportResponseDTO.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for users massive import response - /// - [DataContract] - public partial class UsersMassiveImportResponseDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier of generator process in progress. - public UsersMassiveImportResponseDTO(string massiveImportRequestId = default(string)) - { - this.MassiveImportRequestId = massiveImportRequestId; - } - - /// - /// Identifier of generator process in progress - /// - /// Identifier of generator process in progress - [DataMember(Name="massiveImportRequestId", EmitDefaultValue=false)] - public string MassiveImportRequestId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UsersMassiveImportResponseDTO {\n"); - sb.Append(" MassiveImportRequestId: ").Append(MassiveImportRequestId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UsersMassiveImportResponseDTO); - } - - /// - /// Returns true if UsersMassiveImportResponseDTO instances are equal - /// - /// Instance of UsersMassiveImportResponseDTO to be compared - /// Boolean - public bool Equals(UsersMassiveImportResponseDTO input) - { - if (input == null) - return false; - - return - ( - this.MassiveImportRequestId == input.MassiveImportRequestId || - (this.MassiveImportRequestId != null && - this.MassiveImportRequestId.Equals(input.MassiveImportRequestId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.MassiveImportRequestId != null) - hashCode = hashCode * 59 + this.MassiveImportRequestId.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/UsersMassiveImportUserDataDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/UsersMassiveImportUserDataDTO.cs deleted file mode 100644 index 7cffdda..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/UsersMassiveImportUserDataDTO.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class for users massive import users information - /// - [DataContract] - public partial class UsersMassiveImportUserDataDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Description. - /// Complete description. - /// Mail address. - public UsersMassiveImportUserDataDTO(string description = default(string), string completeDescription = default(string), string email = default(string)) - { - this.Description = description; - this.CompleteDescription = completeDescription; - this.Email = email; - } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Complete description - /// - /// Complete description - [DataMember(Name="completeDescription", EmitDefaultValue=false)] - public string CompleteDescription { get; set; } - - /// - /// Mail address - /// - /// Mail address - [DataMember(Name="email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UsersMassiveImportUserDataDTO {\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" CompleteDescription: ").Append(CompleteDescription).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UsersMassiveImportUserDataDTO); - } - - /// - /// Returns true if UsersMassiveImportUserDataDTO instances are equal - /// - /// Instance of UsersMassiveImportUserDataDTO to be compared - /// Boolean - public bool Equals(UsersMassiveImportUserDataDTO input) - { - if (input == null) - return false; - - return - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.CompleteDescription == input.CompleteDescription || - (this.CompleteDescription != null && - this.CompleteDescription.Equals(input.CompleteDescription)) - ) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.CompleteDescription != null) - hashCode = hashCode * 59 + this.CompleteDescription.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ViewDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ViewDTO.cs deleted file mode 100644 index afad474..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ViewDTO.cs +++ /dev/null @@ -1,480 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of View - /// - [DataContract] - public partial class ViewDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Max items for result. - /// Description of Document Type. - /// Identifier. - /// Description. - /// Author Identifier. - /// Author Complete Name. - /// Document Type of first level. - /// Document Type of second level. - /// Document Type of third level. - /// Select Fields. - /// Edit Fields. - /// Uneditable Fields. - /// Order Fields. - /// Show Fields. - /// Opening the search form after running the Arxivar client view.. - /// Possible values: 0: Yes 1: No 2: OnDemand . - /// Possible values: 0: No 1: Yes . - /// Execute. - /// Edit. - /// Delete. - /// searchFilterDto. - /// selectFilterDto. - public ViewDTO(int? maxItems = default(int?), string documentTypeDescription = default(string), string id = default(string), string description = default(string), int? user = default(int?), string userCompleteName = default(string), int? documentType = default(int?), int? type2 = default(int?), int? type3 = default(int?), string selectFields = default(string), string editFields = default(string), SearchDTO lockFields = default(SearchDTO), string orderFields = default(string), bool? showFields = default(bool?), bool? formOpen = default(bool?), int? allowEmptyFilterMode = default(int?), int? showGroupsMode = default(int?), bool? canExecute = default(bool?), bool? canUpdate = default(bool?), bool? canDelete = default(bool?), SearchDTO searchFilterDto = default(SearchDTO), SelectDTO selectFilterDto = default(SelectDTO)) - { - this.MaxItems = maxItems; - this.DocumentTypeDescription = documentTypeDescription; - this.Id = id; - this.Description = description; - this.User = user; - this.UserCompleteName = userCompleteName; - this.DocumentType = documentType; - this.Type2 = type2; - this.Type3 = type3; - this.SelectFields = selectFields; - this.EditFields = editFields; - this.LockFields = lockFields; - this.OrderFields = orderFields; - this.ShowFields = showFields; - this.FormOpen = formOpen; - this.AllowEmptyFilterMode = allowEmptyFilterMode; - this.ShowGroupsMode = showGroupsMode; - this.CanExecute = canExecute; - this.CanUpdate = canUpdate; - this.CanDelete = canDelete; - this.SearchFilterDto = searchFilterDto; - this.SelectFilterDto = selectFilterDto; - } - - /// - /// Max items for result - /// - /// Max items for result - [DataMember(Name="maxItems", EmitDefaultValue=false)] - public int? MaxItems { get; set; } - - /// - /// Description of Document Type - /// - /// Description of Document Type - [DataMember(Name="documentTypeDescription", EmitDefaultValue=false)] - public string DocumentTypeDescription { get; set; } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Author Identifier - /// - /// Author Identifier - [DataMember(Name="user", EmitDefaultValue=false)] - public int? User { get; set; } - - /// - /// Author Complete Name - /// - /// Author Complete Name - [DataMember(Name="userCompleteName", EmitDefaultValue=false)] - public string UserCompleteName { get; set; } - - /// - /// Document Type of first level - /// - /// Document Type of first level - [DataMember(Name="documentType", EmitDefaultValue=false)] - public int? DocumentType { get; set; } - - /// - /// Document Type of second level - /// - /// Document Type of second level - [DataMember(Name="type2", EmitDefaultValue=false)] - public int? Type2 { get; set; } - - /// - /// Document Type of third level - /// - /// Document Type of third level - [DataMember(Name="type3", EmitDefaultValue=false)] - public int? Type3 { get; set; } - - /// - /// Select Fields - /// - /// Select Fields - [DataMember(Name="selectFields", EmitDefaultValue=false)] - public string SelectFields { get; set; } - - /// - /// Edit Fields - /// - /// Edit Fields - [DataMember(Name="editFields", EmitDefaultValue=false)] - public string EditFields { get; set; } - - /// - /// Uneditable Fields - /// - /// Uneditable Fields - [DataMember(Name="lockFields", EmitDefaultValue=false)] - public SearchDTO LockFields { get; set; } - - /// - /// Order Fields - /// - /// Order Fields - [DataMember(Name="orderFields", EmitDefaultValue=false)] - public string OrderFields { get; set; } - - /// - /// Show Fields - /// - /// Show Fields - [DataMember(Name="showFields", EmitDefaultValue=false)] - public bool? ShowFields { get; set; } - - /// - /// Opening the search form after running the Arxivar client view. - /// - /// Opening the search form after running the Arxivar client view. - [DataMember(Name="formOpen", EmitDefaultValue=false)] - public bool? FormOpen { get; set; } - - /// - /// Possible values: 0: Yes 1: No 2: OnDemand - /// - /// Possible values: 0: Yes 1: No 2: OnDemand - [DataMember(Name="allowEmptyFilterMode", EmitDefaultValue=false)] - public int? AllowEmptyFilterMode { get; set; } - - /// - /// Possible values: 0: No 1: Yes - /// - /// Possible values: 0: No 1: Yes - [DataMember(Name="showGroupsMode", EmitDefaultValue=false)] - public int? ShowGroupsMode { get; set; } - - /// - /// Execute - /// - /// Execute - [DataMember(Name="canExecute", EmitDefaultValue=false)] - public bool? CanExecute { get; set; } - - /// - /// Edit - /// - /// Edit - [DataMember(Name="canUpdate", EmitDefaultValue=false)] - public bool? CanUpdate { get; set; } - - /// - /// Delete - /// - /// Delete - [DataMember(Name="canDelete", EmitDefaultValue=false)] - public bool? CanDelete { get; set; } - - /// - /// Gets or Sets SearchFilterDto - /// - [DataMember(Name="searchFilterDto", EmitDefaultValue=false)] - public SearchDTO SearchFilterDto { get; set; } - - /// - /// Gets or Sets SelectFilterDto - /// - [DataMember(Name="selectFilterDto", EmitDefaultValue=false)] - public SelectDTO SelectFilterDto { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ViewDTO {\n"); - sb.Append(" MaxItems: ").Append(MaxItems).Append("\n"); - sb.Append(" DocumentTypeDescription: ").Append(DocumentTypeDescription).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" UserCompleteName: ").Append(UserCompleteName).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" Type2: ").Append(Type2).Append("\n"); - sb.Append(" Type3: ").Append(Type3).Append("\n"); - sb.Append(" SelectFields: ").Append(SelectFields).Append("\n"); - sb.Append(" EditFields: ").Append(EditFields).Append("\n"); - sb.Append(" LockFields: ").Append(LockFields).Append("\n"); - sb.Append(" OrderFields: ").Append(OrderFields).Append("\n"); - sb.Append(" ShowFields: ").Append(ShowFields).Append("\n"); - sb.Append(" FormOpen: ").Append(FormOpen).Append("\n"); - sb.Append(" AllowEmptyFilterMode: ").Append(AllowEmptyFilterMode).Append("\n"); - sb.Append(" ShowGroupsMode: ").Append(ShowGroupsMode).Append("\n"); - sb.Append(" CanExecute: ").Append(CanExecute).Append("\n"); - sb.Append(" CanUpdate: ").Append(CanUpdate).Append("\n"); - sb.Append(" CanDelete: ").Append(CanDelete).Append("\n"); - sb.Append(" SearchFilterDto: ").Append(SearchFilterDto).Append("\n"); - sb.Append(" SelectFilterDto: ").Append(SelectFilterDto).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ViewDTO); - } - - /// - /// Returns true if ViewDTO instances are equal - /// - /// Instance of ViewDTO to be compared - /// Boolean - public bool Equals(ViewDTO input) - { - if (input == null) - return false; - - return - ( - this.MaxItems == input.MaxItems || - (this.MaxItems != null && - this.MaxItems.Equals(input.MaxItems)) - ) && - ( - this.DocumentTypeDescription == input.DocumentTypeDescription || - (this.DocumentTypeDescription != null && - this.DocumentTypeDescription.Equals(input.DocumentTypeDescription)) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) - ) && - ( - this.UserCompleteName == input.UserCompleteName || - (this.UserCompleteName != null && - this.UserCompleteName.Equals(input.UserCompleteName)) - ) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && - ( - this.Type2 == input.Type2 || - (this.Type2 != null && - this.Type2.Equals(input.Type2)) - ) && - ( - this.Type3 == input.Type3 || - (this.Type3 != null && - this.Type3.Equals(input.Type3)) - ) && - ( - this.SelectFields == input.SelectFields || - (this.SelectFields != null && - this.SelectFields.Equals(input.SelectFields)) - ) && - ( - this.EditFields == input.EditFields || - (this.EditFields != null && - this.EditFields.Equals(input.EditFields)) - ) && - ( - this.LockFields == input.LockFields || - (this.LockFields != null && - this.LockFields.Equals(input.LockFields)) - ) && - ( - this.OrderFields == input.OrderFields || - (this.OrderFields != null && - this.OrderFields.Equals(input.OrderFields)) - ) && - ( - this.ShowFields == input.ShowFields || - (this.ShowFields != null && - this.ShowFields.Equals(input.ShowFields)) - ) && - ( - this.FormOpen == input.FormOpen || - (this.FormOpen != null && - this.FormOpen.Equals(input.FormOpen)) - ) && - ( - this.AllowEmptyFilterMode == input.AllowEmptyFilterMode || - (this.AllowEmptyFilterMode != null && - this.AllowEmptyFilterMode.Equals(input.AllowEmptyFilterMode)) - ) && - ( - this.ShowGroupsMode == input.ShowGroupsMode || - (this.ShowGroupsMode != null && - this.ShowGroupsMode.Equals(input.ShowGroupsMode)) - ) && - ( - this.CanExecute == input.CanExecute || - (this.CanExecute != null && - this.CanExecute.Equals(input.CanExecute)) - ) && - ( - this.CanUpdate == input.CanUpdate || - (this.CanUpdate != null && - this.CanUpdate.Equals(input.CanUpdate)) - ) && - ( - this.CanDelete == input.CanDelete || - (this.CanDelete != null && - this.CanDelete.Equals(input.CanDelete)) - ) && - ( - this.SearchFilterDto == input.SearchFilterDto || - (this.SearchFilterDto != null && - this.SearchFilterDto.Equals(input.SearchFilterDto)) - ) && - ( - this.SelectFilterDto == input.SelectFilterDto || - (this.SelectFilterDto != null && - this.SelectFilterDto.Equals(input.SelectFilterDto)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.MaxItems != null) - hashCode = hashCode * 59 + this.MaxItems.GetHashCode(); - if (this.DocumentTypeDescription != null) - hashCode = hashCode * 59 + this.DocumentTypeDescription.GetHashCode(); - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.User != null) - hashCode = hashCode * 59 + this.User.GetHashCode(); - if (this.UserCompleteName != null) - hashCode = hashCode * 59 + this.UserCompleteName.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.Type2 != null) - hashCode = hashCode * 59 + this.Type2.GetHashCode(); - if (this.Type3 != null) - hashCode = hashCode * 59 + this.Type3.GetHashCode(); - if (this.SelectFields != null) - hashCode = hashCode * 59 + this.SelectFields.GetHashCode(); - if (this.EditFields != null) - hashCode = hashCode * 59 + this.EditFields.GetHashCode(); - if (this.LockFields != null) - hashCode = hashCode * 59 + this.LockFields.GetHashCode(); - if (this.OrderFields != null) - hashCode = hashCode * 59 + this.OrderFields.GetHashCode(); - if (this.ShowFields != null) - hashCode = hashCode * 59 + this.ShowFields.GetHashCode(); - if (this.FormOpen != null) - hashCode = hashCode * 59 + this.FormOpen.GetHashCode(); - if (this.AllowEmptyFilterMode != null) - hashCode = hashCode * 59 + this.AllowEmptyFilterMode.GetHashCode(); - if (this.ShowGroupsMode != null) - hashCode = hashCode * 59 + this.ShowGroupsMode.GetHashCode(); - if (this.CanExecute != null) - hashCode = hashCode * 59 + this.CanExecute.GetHashCode(); - if (this.CanUpdate != null) - hashCode = hashCode * 59 + this.CanUpdate.GetHashCode(); - if (this.CanDelete != null) - hashCode = hashCode * 59 + this.CanDelete.GetHashCode(); - if (this.SearchFilterDto != null) - hashCode = hashCode * 59 + this.SearchFilterDto.GetHashCode(); - if (this.SelectFilterDto != null) - hashCode = hashCode * 59 + this.SelectFilterDto.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarNextManagement/Model/ViewSimpleDTO.cs b/ACUtils.AXRepository/ArxivarNextManagement/Model/ViewSimpleDTO.cs deleted file mode 100644 index 3cdf8e6..0000000 --- a/ACUtils.AXRepository/ArxivarNextManagement/Model/ViewSimpleDTO.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * WebAPI - Area Management - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: management - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = ACUtils.AXRepository.ArxivarNextManagement.Client.SwaggerDateConverter; - -namespace ACUtils.AXRepository.ArxivarNextManagement.Model -{ - /// - /// Class of View - /// - [DataContract] - public partial class ViewSimpleDTO : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Identifier. - /// Description. - public ViewSimpleDTO(string id = default(string), string description = default(string)) - { - this.Id = id; - this.Description = description; - } - - /// - /// Identifier - /// - /// Identifier - [DataMember(Name="id", EmitDefaultValue=false)] - public string Id { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ViewSimpleDTO {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ViewSimpleDTO); - } - - /// - /// Returns true if ViewSimpleDTO instances are equal - /// - /// Instance of ViewSimpleDTO to be compared - /// Boolean - public bool Equals(ViewSimpleDTO input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/ACUtils.AXRepository/ArxivarRepository.cs b/ACUtils.AXRepository/ArxivarRepository.cs deleted file mode 100644 index 396a892..0000000 --- a/ACUtils.AXRepository/ArxivarRepository.cs +++ /dev/null @@ -1,1456 +0,0 @@ -using System; -using System.IO; -using System.Linq; -using System.Collections.Generic; -using System.Text.RegularExpressions; - -using Newtonsoft.Json.Linq; - -using Abletech.Arxivar.Client; -using Abletech.Arxivar.Entities; -using Abletech.Arxivar.Entities.Enums; -using Abletech.Arxivar.Entities.Libraries; - -using ACUtils.AXRepository.ArxivarNext.Model; -using ACUtils.AXRepository.ArxivarNextManagement.Model; -using ACUtils.AXRepository.Exceptions; - - -namespace ACUtils.AXRepository -{ - public class ArxivarRepository - { - const string STATO_ELIMINATO = "ELIMINATO"; - private string _username; - private string _password; - private string _apiUrl; - private string _managementUrl; - private string _workflowUrl; - private string _appId; - private string _appSecret; - private string _wcfUrl; - private long? _impersonateUserId; - - private string _token; - private string _refreshToken; - - private string _tokenManagement; - private string _refreshTokenManagement; - - ACUtils.ILogger _logger = null; - - #region configuration - - private ArxivarNext.Client.Configuration configuration => - new ArxivarNext.Client.Configuration() - { - ApiKey = new Dictionary() { { "Authorization", _token } }, - ApiKeyPrefix = new Dictionary() { { "Authorization", "Bearer" } }, - BasePath = _apiUrl, - }; - - private ArxivarNextManagement.Client.Configuration configurationManagement => - new ArxivarNextManagement.Client.Configuration() - { - ApiKey = new Dictionary() { { "Authorization", _tokenManagement } }, - ApiKeyPrefix = new Dictionary() { { "Authorization", "Bearer" } }, - BasePath = _managementUrl, - }; - - private Abletech.WebApi.Client.ArxivarWorkflow.Client.Configuration configurationWorkflow => - new Abletech.WebApi.Client.ArxivarWorkflow.Client.Configuration() - { - ApiKey = new Dictionary() { { "Authorization", _token } }, - ApiKeyPrefix = new Dictionary() { { "Authorization", "Bearer" } }, - BasePath = _workflowUrl, - }; - - #endregion - - #region constructor - - public ArxivarRepository( - string apiUrl, string managementUrl, string workflowUrl, string username, string password, string appId, string appSecret, - string wcf_url = "net.tcp://127.0.0.1:8740/Arxivar/Push", - ACUtils.ILogger logger = null, - long? impersonateUserId = null - ) - { - this._apiUrl = apiUrl; - this._managementUrl = managementUrl; - this._workflowUrl = workflowUrl; - this._username = username; - this._password = password; - this._appId = appId; - this._appSecret = appSecret; - this._logger = logger; - this._wcfUrl = wcf_url; - this._impersonateUserId = impersonateUserId; - } - - - public ArxivarRepository( - string apiUrl, - string managementUrl, - string workflowUrl, - string authToken, - ACUtils.ILogger logger = null - ) - { - this._apiUrl = apiUrl; - this._managementUrl = managementUrl; - this._workflowUrl = workflowUrl; - this._logger = logger; - _token = authToken; - } - - #endregion - - #region file upload - public List UploadFile(Stream stream) - { - Login(); - var bufferApi = new ArxivarNext.Api.BufferApi(configuration); - return bufferApi.BufferInsert(stream); - } - - private string GetTemporaryDirectory() - { - string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); - Directory.CreateDirectory(tempDirectory); - return tempDirectory; - } - - public List UploadFile(string filePath, string filename = null) - { - Login(); - - var bufferApi = new ArxivarNext.Api.BufferApi(configuration); - - // workaround per aprire file su share di rete e cambiare nome al file caricato - var tmpDir = GetTemporaryDirectory(); - try - { - var tmppath = Path.Combine(tmpDir, filename ?? Path.GetFileName(filePath)); - File.Copy(filePath, tmppath); - - using (var stream = File.Open(tmppath, FileMode.Open)) - { - return bufferApi.BufferInsert(stream); - } - } - finally - { - try - { - System.IO.Directory.Delete(tmpDir, true); - } - catch { } - } - - } - #endregion - - #region user - public ACUtils.AXRepository.ArxivarNext.Model.UserProfileDTO GetUserAddressBookEntry(string username, int type = 0) - { - Login(); - - var addressBookApi = new ArxivarNext.Api.AddressBookApi(configuration); - var userApi = new ArxivarNext.Api.UsersApi(configuration); - // Dm_Rubrica.RAGIONE_SOCIALE = username | Dm_Rubrica.TIPO=U | Dm_Rubrica.STATO=P - var users = userApi.UsersGet_0(); - var id = users.Where(u => u.Description.Equals(username, StringComparison.CurrentCultureIgnoreCase)).FirstOrDefault()?.User; - return addressBookApi.AddressBookGetByUserId(id, type); - } - - public UserInfoDTO UserInfo() - { - Login(); - var api = new ArxivarNext.Api.UsersApi(configuration); - var userInfo = api.UsersGetUserInfo(); - return userInfo; - } - - #endregion - - #region address book - - - /// - /// - /// - /// - /// - /// Possible values: To => 0 | From => 1 | CC => 2 | Senders => 3 - /// - public ACUtils.AXRepository.ArxivarNext.Model.UserProfileDTO GetAddressBookEntry(string codice, int addressBookCategoryId, UserProfileType type = UserProfileType.To) - { - Login(); - - var addressBookApi = new ArxivarNext.Api.AddressBookApi(configuration); - var filter = addressBookApi.AddressBookGetSearchField(); - var select = addressBookApi.AddressBookGetSelectField() - .Select("DM_RUBRICA_CODICE") - .Select("DM_RUBRICA_AOO") - .Select("DM_RUBRICA_CODICE") - .Select("DM_RUBRICA_SYSTEM_ID") - .Select("ID"); - - var results = addressBookApi.AddressBookPostSearch(new AddressBookSearchCriteriaDTO( - filter: codice, - addressBookCategoryId: addressBookCategoryId, - filterFields: filter, - selectFields: select - )); - - var result = results.Data.First(); - - var contactId = result.GetValue("ID"); - var addressBookId = result.GetValue("DM_RUBRICA_SYSTEM_ID"); - - var addressBook = addressBookApi.AddressBookGetById(addressBookId: addressBookId); - return new ArxivarNext.Model.UserProfileDTO( - id: addressBook.Id, - externalId: addressBook.ExternalCode, - description: addressBook.BusinessName, - docNumber: "-1", - type: (int)type, - contactId: contactId, - fax: addressBook.Fax, - address: addressBook.Address, - postalCode: addressBook.PostalCode, - contact: "", - job: "", - locality: addressBook.Location, - province: addressBook.Province, - phone: addressBook.PhoneNumber, - mobilePhone: addressBook.CellPhone, - telName: "", - faxName: "", - house: "", - department: "", - reference: "", - office: "", - vat: "", - mail: "", - priority: "N", // addressBook.Priority, - code: null, - email: addressBook.Email, - fiscalCode: addressBook.FiscalCode, - nation: addressBook.Country, - addressBookId: addressBook.Id, - society: "", - officeCode: "", - publicAdministrationCode: "", - pecAddressBook: "", - feaEnabled: false, - feaExpireDate: null, - firstName: "", - lastName: "", - pec: "" - ); - - - } - #endregion - - #region auth - - private AuthenticationTokenDTO _login(List scopeList = null) - { - var authApi = new ArxivarNext.Api.AuthenticationApi(_apiUrl); - var auth = authApi.AuthenticationGetToken( - new AuthenticationTokenRequestDTO( - username: _username, - password: _password, - clientId: _appId, - clientSecret: _appSecret, - impersonateUserId: _impersonateUserId.HasValue ? System.Convert.ToInt32(_impersonateUserId) : default(int?), - scopeList: scopeList - ) - ); - return auth; - } - - - private void Login() - { - if (string.IsNullOrEmpty(_token)) // TODO: test se è necessario il refresh del token - { - var auth = _login(); - _token = auth.AccessToken; - _refreshToken = auth.RefreshToken; - } - } - - - private void LoginManagment() - { - if (string.IsNullOrEmpty(_tokenManagement)) - { - var scopeList = new List { "ArxManagement" }; - var auth = _login(scopeList); - _tokenManagement = auth.AccessToken; - _refreshTokenManagement = auth.RefreshToken; - } - } - - - - #endregion - - #region profile - get - public T GetProfile(int docnumber) where T : AXModel, new() - { - Login(); - var profileApi = new ArxivarNext.Api.ProfilesApi(configuration); - var profile = profileApi.ProfilesGetSchema(docnumber, false); - var obj = AXModel.Idrate(profile); - return obj; - } - #endregion - - #region profile - search - - public List Search(AXModel model, bool eliminato = false) where T : AXModel, new() - { - var searchValues = model.GetPrimaryKeys(); - var classeDoc = model.GetArxivarAttribute().DocumentType; - var result = Search( - classeDoc: classeDoc, - searchValues: searchValues, - eliminato: eliminato - ); - - var profiles = result.Select(s => GetProfile(s.Columns.GetValue("DOCNUMBER"))).ToList(); - return profiles; - } - public List Search(string classeDoc, Dictionary searchValues = null, bool eliminato = false, bool selectAll = false) - { - Login(); - var profileApi = new ArxivarNext.Api.ProfilesApi(configuration); - var statesApi = new ArxivarNext.Api.StatesApi(configuration); - var aooApi = new ArxivarNext.Api.BusinessUnitsApi(configuration); - var aoo = aooApi.BusinessUnitsGet(null, null).First(); // TODO: change me - - var searchApi = new ArxivarNext.Api.SearchesApi(configuration); - var docTypesApi = new ArxivarNext.Api.DocumentTypesApi(configuration); - var docTypes = docTypesApi.DocumentTypesGetOld(1, aoo.Code); // TODO replace deprecated method - - var classeDocumento = docTypes.First(i => i.Key == classeDoc); - - var filterSearch = searchApi.SearchesGet() - .Set("DOCUMENTTYPE", new ACUtils.AXRepository.ArxivarNext.Model.DocumentTypeSearchFilterDto(classeDocumento.DocumentType, classeDocumento.Type2, classeDocumento.Type3)); ; - //var defaultSelect = searchApi.SearchesGetSelect_0(classeDocumento.Id); - var defaultSelect = searchApi.SearchesGetSelect_1(classeDocumento.DocumentType, classeDocumento.Type2, classeDocumento.Type3) - .Select("WORKFLOW") - .Select("DOCNUMBER"); - /* - foreach (var axfield in model.GetArxivarFields()) - { - defaultSelect.Select(axfield.Key); - } - */ - - - var additionals = searchApi.SearchesGetAdditionalByClasse(classeDocumento.DocumentType, classeDocumento.Type2, classeDocumento.Type3, aoo.Code); - filterSearch.Fields.AddRange(additionals); - - if (!(searchValues is null)) - { - foreach (var kv in searchValues) - { - filterSearch.Set(kv.Key, kv.Value); - } - } - - if (selectAll) - { - foreach (var field in defaultSelect.Fields) - { - if (field.FieldType == 2) - defaultSelect.Select(field.Name); - } - } - - - if (!eliminato) - { - filterSearch.Set("Stato", STATO_ELIMINATO, 2); // diverso da ELIMINATO - } - - var values = searchApi.SearchesPostSearch(new SearchCriteriaDto(filterSearch, defaultSelect)); - return values; - } - - public int GetDocumentNumber(string classeDoc, Dictionary searchValues, bool eliminato = false, bool getFirst = false) - { - Login(); - var values = Search(classeDoc: classeDoc, searchValues: searchValues, eliminato: eliminato); - - if (values.Count > 1) - { - if (getFirst) - { - // con l'opzione getFirst viene restituto il documento con DOCNUMBER inferiore - - // ordina i risultati per DOCNUMBER - values.Sort((x, y) => - { - // Valori restituiti: - // Intero con segno che indica i valori relativi di x e y, come illustrato nella - // tabella seguente. Valore Significato Minore di zero x è minore di y. Zero x è - // uguale a y. Maggiore di zero x è maggiore di y. - var xVal = x.GetValue("DOCNUMBER"); - var yVal = y.GetValue("DOCNUMBER"); - return xVal.CompareTo(yVal); - }); - } - else - { - throw new TooMuchElementsException($"La ricerca ha ricevuto {values.Count} risultati"); - } - } - - if (values.Count == 0) - { - throw new NotFoundException($"La ricerca ha ricevuto nessun risultato"); - } - - var docNumber = (int)values.First().Get("DOCNUMBER").Value; - return docNumber; - } - public int GetDocumentNumber(AXModel model, bool eliminato = false, bool getFirst = false) where T : AXModel, new() - { - var searchValues = model.GetPrimaryKeys(); - var classeDoc = model.GetArxivarAttribute().DocumentType; - return GetDocumentNumber( - classeDoc: classeDoc, - searchValues: searchValues, - eliminato: eliminato, - getFirst: getFirst - ); - } - #endregion - - #region profile - update - /// - /// - /// - /// - /// se il documento è sottoposto a workflow è necessario passare anche il numero di task - /// se il documento è sottoposto a workflow è necessario passare anche il numero di processo - /// - /// - /// - public long? UpdateProfile(AXModel model, int? taskid = null, int? procdocid = null, int checkInOption = 0, bool killWorkflow = false) where T : AXModel, new() - { - Login(); - List bufferIds = new List(); - var doc = Search(model).First(); - var workflow = System.Convert.ToInt64(doc.Workflow ?? false); - - //var docNumber = model.DOCNUMBER ?? GetDocumentNumber(model); - var docNumber = model.DOCNUMBER ?? doc.DOCNUMBER; - - if (workflow == 1 && killWorkflow) - { - try - { - var workflowApi = new ArxivarNext.Api.WorkflowApi(configuration); - var workflowHistory = workflowApi.WorkflowGetWorkflowInfoByDocnumber(System.Convert.ToInt32(docNumber)); - - var processId = workflowHistory.Where(w => w.State == 1).Select(w => w.Id).FirstOrDefault(); - if (processId.HasValue) - { - - var taskworkhistoryapi = new ArxivarNext.Api.TaskWorkHistoryApi(configuration); - var history = taskworkhistoryapi.TaskWorkHistoryGetHistoryByProcessId(processId); - if (!history.Where(r => !r.GetValue("CONCLUSO").HasValue).Any()) // WTF? controllare questa condizione - { - DeleteWorkflow(processId); - } - workflowApi.WorkflowFreeUserConstraint(processId.Value); - } - var processDocumentApi = new ArxivarNext.Api.ProcessDocumentApi(configuration); - processDocumentApi.ProcessDocumentFreeWorkflowConstraint(System.Convert.ToInt32(docNumber)); - } - catch { } - - } - - var profilesApi = new ArxivarNext.Api.ProfilesApi(configuration); - - var profileDto = profilesApi.ProfilesGetSchema(docNumber, true); - - if (model.DataDoc.HasValue) - { - profileDto.SetField("DataDoc", model.DataDoc.Value); - } - - if (!string.IsNullOrEmpty(model.STATO)) - { - profileDto.SetState(model.STATO); - } - - /* - try - { - profileDto.Fields.SetFromField(GetUserAddressBookEntry(model.User, 1)); - } - catch { } - */ - - foreach (var field in model.GetArxivarFields()) - { - profileDto.SetField(field.Key, field.Value); - } - - if (!string.IsNullOrEmpty(model.FilePath)) - { - - var apiCache = new ArxivarNext.Api.CacheApi(configuration); - var checkInOutApi = new ArxivarNext.Api.CheckInOutApi(configuration); - //var taskWorkApi = new ArxivarNext.Api.TaskWorkApi(configuration); - - var isCheckOutForTask = taskid.HasValue && procdocid.HasValue; - - // TODO: prevedere la possibilità di checkin/checkout for task - if (isCheckOutForTask) - { - //var select = taskWorkApi.TaskWorkGetDefaultSelect(); - //var tasks = taskWorkApi.TaskWorkGetActiveTaskWork(select, System.Convert.ToInt32(docNumber)); - //var taskWork = taskWorkApi.TaskWorkGetTaskWorkById(taskid); - //checkInOutApi.CheckInOutCheckOutForTask(processDocId: procdocid, taskWorkId: taskid); - } - else - { - checkInOutApi.CheckInOutCheckOut(System.Convert.ToInt32(docNumber)); - } - bufferIds = apiCache.CacheInsert(new MemoryStream(File.ReadAllBytes(model.FilePath))); - if (isCheckOutForTask) - { - checkInOutApi.CheckInOutCheckInForTask( - processDocId: procdocid, - taskWorkId: taskid, - fileId: bufferIds.First() - ); - } - else - { - checkInOutApi.CheckInOutCheckIn( - docnumber: System.Convert.ToInt32(docNumber), - fileId: bufferIds.First(), - option: checkInOption, - undoCheckOut: true - ); - } - - } - - profilesApi.ProfilesPut(docNumber, new ProfileDTO() - { - Fields = profileDto.Fields, - Document = bufferIds.Count > 0 ? new FileDTO() { BufferIds = bufferIds } : default(FileDTO), - }); - - return docNumber; - } - #endregion - - #region profile - delete - - public bool DeleteProfile(AXModel model) where T : AXModel, new() - { - Login(); - - int docNumber; - try - { - // vabene prendere il primo documento trovato - // si suppone che se il documento corretto è già stato inserito questo avrà un DOCNUMBER superiore a quello da eliminare - // l'opzione getFirst ottiene il documento con DOCNUMBER inferiore - docNumber = GetDocumentNumber(model, getFirst: true); - } - catch (NotFoundException) - { - return true; - } - - var profilesApi = new ArxivarNext.Api.ProfilesApi(configuration); - var profileDto = profilesApi.ProfilesGetSchema(docNumber, true); - profileDto.SetState(STATO_ELIMINATO); - profilesApi.ProfilesPut(docNumber, new ProfileDTO() - { - Fields = profileDto.Fields - }); - return true; - } - - public bool HardDeleteProfile(int docNumber) - { - Login(); - var profilesApi = new ArxivarNext.Api.ProfilesApi(configuration); - profilesApi.ProfilesDeleteProfile(docNumber); - return true; - } - - #endregion - - #region profile - create - - public int? CreateProfile(AXModel model, bool updateIfExists = false, int checkInOption = 0, bool killworkflow = false) where T : AXModel, new() - { - Login(); - - if (!model.GetArxivarAttribute().SkipKeyCheck) - { - var search = this.Search(model); - if (search.Any()) - { - if (updateIfExists) - { - var docNumber = UpdateProfile(model, checkInOption: checkInOption, killWorkflow: killworkflow); - return System.Convert.ToInt32(docNumber); - } - else - { - return System.Convert.ToInt32(search.First().DOCNUMBER); - } - } - } - - var profileApi = new ArxivarNext.Api.ProfilesApi(configuration); - var statesApi = new ArxivarNext.Api.StatesApi(configuration); - - var aooApi = new ArxivarNext.Api.BusinessUnitsApi(configuration); - var aoo = aooApi.BusinessUnitsGet(null, null).First(); // TODO: change me - - List bufferId = new List(); - - if (!string.IsNullOrEmpty(model.FilePath)) - { - bufferId = UploadFile(model.FilePath); - } - var documentType = model.GetArxivarAttribute().DocumentType; - - var profileDto = profileApi.ProfilesGet_0(); - profileDto.Attachments = new List(); - profileDto.AuthorityData = new ACUtils.AXRepository.ArxivarNext.Model.AuthorityDataDTO(); - profileDto.Notes = new List(); - profileDto.PaNotes = new List(); - profileDto.PostProfilationActions = new List(); - profileDto.Document = new FileDTO() { BufferIds = bufferId }; - - if (model.Allegati != null) - { - foreach (var allegato in model.Allegati) - { - profileDto.Attachments.AddRange(UploadFile(allegato)); - } - } - - var classeDoc = profileDto.SetDocumentType(configuration, aoo.Code, documentType); - - var status = statesApi.StatesGet(classeDoc.Id); - profileDto.SetState(model.GetArxivarAttribute().Stato ?? status.First().Id); - - var additional = profileApi.ProfilesGetAdditionalByClasse( - classeDoc.DocumentType, - classeDoc.Type2, - classeDoc.Type3, - aoo.Code - ); - profileDto.Fields.AddRange(additional); - - profileDto.SetField("DOCNAME", model.DOCNAME); - - if (model.DataDoc.HasValue) - { - profileDto.SetField("DataDoc", model.DataDoc.Value); - } - - if (!string.IsNullOrEmpty(model.User)) - { - profileDto.SetFromField(GetUserAddressBookEntry(model.User, 1)); - } - - if (!string.IsNullOrEmpty(model.MittenteCodiceRubrica)) - { - profileDto.SetFromField(GetAddressBookEntry( - model.MittenteCodiceRubrica, - model.MittenteIdRubrica.GetValueOrDefault(), - type: UserProfileType.From - )); - } - - if (model.DestinatariCodiceRubrica != null) - { - foreach (var destinatario in model.DestinatariCodiceRubrica) - { - profileDto.SetToField(GetAddressBookEntry( - destinatario, - model.DestinatariIdRubrica.GetValueOrDefault(), - type: UserProfileType.To - )); - } - } - - model.STATO = model.STATO ?? statesApi.StatesGet(classeDoc.Id).First().Id; - foreach (var field in model.GetArxivarFields()) - { - if (new[] { "FROM", "TO", "CC" }.Contains(field.Key.ToUpper())) - { - // TODO: ricercare il profilo in base al dato passato - } - else if (field.Key.Equals(Attributes.AxFromExternalIdFieldAttribute.AX_KEY)) - { - - } - else if (field.Key.Equals(Attributes.AxToExternalIdFieldAttribute.AX_KEY)) - { - - } - else if (field.Key.Equals(Attributes.AxCcExternalIdFieldAttribute.AX_KEY)) - { - - } - else - { - profileDto.SetField(field.Key, field.Value); - } - } - - - //profileDto.SetState(model.STATO); - - var newProfile = new ProfileDTO() - { - Fields = profileDto.Fields, - Document = profileDto.Document, - Attachments = profileDto.Attachments, - AuthorityData = profileDto.AuthorityData, - Notes = profileDto.Notes, - PaNotes = profileDto.PaNotes, - PostProfilationActions = profileDto.PostProfilationActions - }; - - if (model.GetArxivarAttribute().Barcode) - { - var result = profileApi.ProfilesPostForBarcode(newProfile); - return result.DocNumber; - } - else - { - var result = profileApi.ProfilesPost(newProfile); - return result.DocNumber; - } - } - - #endregion - - #region download attachments - public string[] DownloadAttachments(int docnumber, string outputFolder, bool ignoreException = false) - { - Login(); - var attachmentsApi = new ArxivarNext.Api.AttachmentsApi(configuration); - var documentsApi = new ArxivarNext.Api.DocumentsApi(configuration); - - var infos = attachmentsApi.AttachmentsGetByDocnumber(docnumber: docnumber); - var list = new List(); - foreach (var info in infos) - { - try - { - var attachment = attachmentsApi.AttachmentsGetById(info.Id); - var doc = documentsApi.DocumentsGetForExternalAttachment(info.Id, false); - var path = Path.Combine(outputFolder, attachment.Originalname); - FileUtils.Write(doc, path).Close(); - - // fix ACL ( permessi ) sul file - try - { - ACUtils.FileUtils.CopyAcl(path); - } - catch (Exception e) - { - _logger?.Exception(e); - } - - list.Add(path); - } - catch (Exception e) - { - if (!ignoreException) throw; - else _logger?.Exception(e); - } - } - - return list.ToArray(); - } - #endregion - - #region download documento - - public (Stream stream, string filename) GetDocumentFileStream(long docnumber, bool forView = false) - { - Login(); - var documentsApi = new ArxivarNext.Api.DocumentsApi(configuration); - - var response = documentsApi.DocumentsGetForProfileWithHttpInfo(System.Convert.ToInt32(docnumber), forView); - - if (response.Data is FileStream) - { - using (response.Data) - { - var fileStream = response.Data as FileStream; - var fileName = System.IO.Path.GetFileName(fileStream.Name); - MemoryStream memoryStream = new MemoryStream(); - fileStream.CopyTo(fileStream); - fileStream.Close(); - - if (System.IO.File.Exists(fileStream.Name)) - System.IO.File.Delete(fileStream.Name); - return (memoryStream, fileName); - } - } - else - { - var fileNameInfo = response.Headers["Content-Disposition"]; - var filename = (new Regex("filename=\"(.*)\"", RegexOptions.IgnoreCase)).Match(fileNameInfo).Groups[0].Value; - return (response.Data, filename); - } - - } - - public string DownloadDocument(long docnumber, string outputFolder, bool forView = false) - { - (Stream stream, string filename) = GetDocumentFileStream(docnumber, forView); - using (stream) - { - var fullPath = Path.Combine(outputFolder, filename); - FileUtils.Write(stream, fullPath).Close(); - return fullPath; - } - } - - - #endregion - - #region Tasks - public int Task_ProcessIdFromTaskid(int taskid) - { - Login(); - var task = Task_GetByTaskId(taskid); - return task.ProcessId.Value; - } - - public IEnumerable Task_GetAttachments(int taskId, string regexpFilterDoctype = null) where T : AXModel, new() - { - Login(); - - var processId = Task_ProcessIdFromTaskid(taskId); - - var profileApi = new ArxivarNext.Api.ProfilesApi(configuration); - var taskWorkAttachmentsV2Api = new ArxivarNext.Api.TaskWorkAttachmentsV2Api(configuration); - var attachments = taskWorkAttachmentsV2Api.TaskWorkAttachmentsV2GetAttachmentsByProcessId(processId) as JObject; - var targetDocType = String.IsNullOrEmpty(regexpFilterDoctype) ? Regex.Escape((new T()).GetArxivarAttribute().DocumentType) : regexpFilterDoctype; - Regex targetDocRx = new Regex(targetDocType, RegexOptions.IgnoreCase); - - int i = 0; - int docnumber_pos = -1; - int tipoallegato_pos = -1; - - foreach (var c in attachments["columns"]) - { - var id = (string)c["id"]; - if (id == "DOCNUMBER") - { - docnumber_pos = i; - - } - if (id == "TIPOALLEGATO") - { - tipoallegato_pos = i; - } - i++; - } - - foreach (var row in attachments["data"]) - { - var tipo_allegato = row[tipoallegato_pos].Value(); - var v = row[docnumber_pos]; - if (tipo_allegato != 2) continue; - if (!v.Value().HasValue) continue; - var docnumber = v.Value(); - try - { - var profile = profileApi.ProfilesGetSchema(docnumber, false); - var cDocType = profile.GetDocumentType(); - if (!targetDocRx.Match(cDocType).Success) continue; - } - catch - { - // se il documento non è accessibile continua - // TODO: migliorare questa logica - continue; - } - yield return this.GetProfile(docnumber); - } - } - - public IEnumerable<(int docnumber, T documento)> Task_GetDocument(int taskId) where T : AXModel, new() - { - var processId = Task_ProcessIdFromTaskid(taskId); - - // TaskWorkV2_getDocumentsByProcessId - Login(); - var profileApi = new ArxivarNext.Api.ProfilesApi(configuration); - var taskWorkV2Api = new ArxivarNext.Api.TaskWorkV2Api(configuration); - - var targetDocType = (new T()).GetArxivarAttribute().DocumentType; - - var select = taskWorkV2Api.TaskWorkV2GetDefaultSelect(); - select.Fields.Select("DOCNUMBER"); - - var docs = taskWorkV2Api.TaskWorkV2GetDocumentsByProcessId(processId, select) as JObject; - var docnumber_pos = -1; - var s = docs["columns"].AsEnumerable().Select((d, y) => (d, y)); - int i = 0; - foreach (var c in docs["columns"]) - { - if ((string)c["id"] == "DOCNUMBER") - { - docnumber_pos = i; - break; - } - i++; - } - foreach (var row in docs["data"]) - { - var docnumber = (int)row[docnumber_pos]; - var profile = profileApi.ProfilesGetSchema(docnumber, false); - var cDocType = profile.GetDocumentType(); - if (targetDocType != cDocType) continue; - yield return (docnumber, this.GetProfile(docnumber)); - } - } - public TaskWorkDTO Task_GetByTaskId(int taskid) - { - Login(); - var taskWorkV2Api = new ArxivarNext.Api.TaskWorkV2Api(configuration); - return taskWorkV2Api.TaskWorkV2GetTaskWorkById(taskid); - } - public void Task_AggiungiAllegato(int taskWorkId, string filePath, string filename = null) - { - Login(); - var taskWorkAttachV2Api = new ArxivarNext.Api.TaskWorkAttachmentsV2Api(configuration); - var bufferId = UploadFile(filePath, filename: filename).First(); - taskWorkAttachV2Api.TaskWorkAttachmentsV2AddNewExternalAttachments(bufferId: bufferId, taskWorkId: taskWorkId); - } - public long Task_GetUserIdOfTaskId(int processId, int taskWorkId) - { - Login(); - var taskHistoryApi = new ArxivarNext.Api.TaskWorkHistoryApi(configuration); - var taskHistory = taskHistoryApi.TaskWorkHistoryGetHistoryByProcessId(processId); - var userId = (from task in taskHistory where task.GetValue("ID") == taskWorkId select task.Columns.GetValue("UTENTE")).First(); - return userId; - } - #endregion - - #region fascioli - - public List GetFascicoloDocuments(int id) - { - Login(); - - var foldersApi = new ArxivarNext.Api.FoldersApi(configuration); - var searchApi = new ArxivarNext.Api.SearchesApi(configuration); - var select = searchApi.SearchesGetSelect(); - select.Fields.Select("CLASSEDOC"); - return foldersApi.FoldersGetDocumentsById(id, select); - } - - public int GetFascicoloLevel(int id) - { - Login(); - var folderApi = new ArxivarNext.Api.FoldersApi(configuration); - var folderInfo = folderApi.FoldersGetById(id); - return folderInfo.FullPath.Count(f => f == '\\'); - } - - public List GetFascoloFiglio(int id, string name) - { - Login(); - var foldersApi = new ArxivarNext.Api.FoldersApi(configuration); - return foldersApi.FoldersFindInFolderByName(id, name); - } - - - public List FascicoliGetByDocnumber(int docnumber) - { - Login(); - var foldersApi = new ArxivarNext.Api.FoldersApi(configuration); - var folders = foldersApi.FoldersFindByDocnumber(docnumber); - return folders.Where(f => f.Id.HasValue).Select(f => f.Id.Value).ToList(); - } - - public int FascicoliFolderExists(int parentFolder, string subfolderName) - { - Login(); - var foldersApi = new ArxivarNext.Api.FoldersApi(configuration); - - var folders = foldersApi.FoldersGetByParentId(parentFolder); - - var folderSearch = folders.Where(f => f.Name.ToLower().Equals(subfolderName.ToLower())); - if (folderSearch.Any()) - { - return folderSearch.First().Id.GetValueOrDefault(); - } - else - { - return 0; - } - } - - public int FascicoliCreateFolder(int parentFolder, string subfodlerName) - { - Login(); - var foldersApi = new ArxivarNext.Api.FoldersApi(configuration); - int subfodler = FascicoliFolderExists(parentFolder, subfodlerName); - if (subfodler == 0) // se non esiste - { - var newfodler = foldersApi.FoldersNew(parentFolder, subfodlerName); - subfodler = newfodler.Id.Value; - } - return subfodler; - } - - public void FascicoliMoveToFolder(int folderId, int docnumber) - { - Login(); - var foldersApi = new ArxivarNext.Api.FoldersApi(configuration); - foldersApi.FoldersInsertDocnumbers(folderId, new List() { docnumber }); - } - - public int FascicoliMoveToSubfolder(int parentFolder, string subfolderName, int docnumber) - { - Login(); - var foldersApi = new ArxivarNext.Api.FoldersApi(configuration); - - var folders = foldersApi.FoldersGetByParentId(parentFolder); - - var folderSearch = folders.Where(f => f.Name.ToLower().Equals(subfolderName.ToLower())); - var folder_exists = folderSearch.Any(); - - var folderId = FascicoliCreateFolder(parentFolder, subfolderName); - - // rimuovi dalla cartella precedente - try - { - foldersApi.FoldersRemoveDocumentsInFolder(parentFolder, new List() { docnumber }); - } - catch { } - - // rimuove se già presente - try - { - foldersApi.FoldersRemoveDocumentsInFolder(folderId, new List() { docnumber }); - } - catch { } - - // aggiungi alla cartella di destinazione - FascicoliMoveToFolder(folderId, docnumber); - return folderId; - } - - #endregion - - #region wfc functions - private WCFConnectorManager GetWcf() - { - - var logonRequest = new ArxLogonRequest - { - ClientId = _appId, - ClientSecret = _appSecret, - EnablePushEvents = true, - Username = _username, - Password = _password, - ImpersonateUserId = _impersonateUserId.HasValue ? System.Convert.ToInt32(_impersonateUserId) : default(int?) - }; - var manager = new WCFConnectorManager(_wcfUrl, logonRequest) - { - AutoChunk = true, //default a true - AutoReconnect = true, //default a true - Lang = "IT" - }; - manager.ChannelOpening += _manager_ChannelOpening; - manager.ChannelOpened += _manager_ChannelOpened; - return manager; - - } - private void _manager_ChannelOpened(string message) - { - this._logger?.Debug($"WCF ChannelOpened: {message}"); - } - - private void _manager_ChannelOpening(string message) - { - this._logger?.Debug($"WCF ChannelOpening: {message}"); - } - - public bool UserCreateIfNotExists_Wcf( - string username, - string aoo, - string description, - string defaultPassword, - string email = null, - string lang = "it", - int tipo = 1, - bool mustChangePassword = true, - bool workflow = true - ) - { - try - { - if (!UserExists(aoo, username)) - { - return UserCreate( - username: username, - aoo: aoo, - description: description, - defaultPassword: defaultPassword, - email: email, - lang: lang, - tipo: tipo, - mustChangePassword: mustChangePassword, - workflow: workflow - ); - } - return true; - } - catch (Exception e) - { - this._logger?.Error($"UserCreateIfNotExists('{username}'): {e.Message}"); - return false; - } - } - - - public bool UserExists_Wcf(string aoo, string username) - { - using (var manager = GetWcf()) - { - var user = manager.ARX_CONFIGURATION.Dm_Utenti_Exists(aoo, username); - return user != null; - } - } - - - public bool UserCreate_Wcf( - string username, - string aoo, - string description, - string default_password, - string email = null, - string lang = "IT", - int tipo = 1, - bool must_change_password = true, - bool workflow = true - ) - { - try - { - using (var manager = GetWcf()) - { - this._logger?.Information($"Creazione utente {username}"); - var result = manager.ARX_CONFIGURATION.Dm_Utenti_Insert(new Dm_Utenti_ForInsert() - { - GRUPPO = Dm_Utenti_Gruppo.User, - NOMECOMPLETO = description, - DESCRIPTION = username, - AOO = aoo, - CATEGORIA = Dm_Utenti_Categoria.U, - STATOUTENTE = Dm_Utenti_StatoUtente.Attivo, - MUSTCHANGEPASSWORD = must_change_password ? Dm_Utenti_MustChangePassword.Yes : Dm_Utenti_MustChangePassword.No, - LANG = lang, - PASSWORD = default_password, - TIPODEFAULT = 0, - TIPO2 = 0, - TIPO3 = 0, - WORKFLOW = workflow, - TIPO = tipo, - VIEWER = Tipo_Licenza.Standard, - EMAIL = email - }); - - return true; - } - } - catch (Exception e) - { - this._logger?.Error($"UserCreateIfNotExists('{username}'): {e.Message}"); - return false; - } - } - - public void StampaBarcode(int docnumber) - { - try - { - using (var manager = GetWcf()) - { - manager.ARX_DATI.Dm_Barcode_Print( - docnumber: docnumber, - tipoImporta: Dm_Barcode_TipoImpronta.N, - insertRecord: false - ); - } - } - catch (Exception e) - { - this._logger?.Error($"Stampa Barcode: {e}"); // TODO: aggiungere log - } - } - - #endregion - - #region users - public List Users() - { - Login(); - var userApi = new ArxivarNext.Api.UsersApi(configuration); - return userApi.UsersGet_0(); - } - - - public UserInfoDTO UserGet(string aoo, string username) - { - Login(); - var userSearchApi = new ArxivarNext.Api.UserSearchApi(configuration); - - var select = userSearchApi.UserSearchGetSelect() - .Select("UTENTE"); - - var search = userSearchApi.UserSearchGetSearch() - .SetString("DESCRIPTION", username) - .SetString("AOO", aoo); - - var result = userSearchApi.UserSearchPostSearch(new UserSearchCriteriaDTO(selectDto: select, searchDto: search)).FirstOrDefault(); - if (result == null) - { - throw new NotFoundException($"user '{aoo}\\{username}' not found"); - } - var userApi = new ArxivarNext.Api.UsersApi(configuration); - var userId = result.GetValue("UTENTE"); - return userApi.UsersGet(userId); - } - - public bool UserExists(string aoo, string username) - { - try - { - UserGet(aoo, username); - return true; - } - catch (NotFoundException) - { - return false; - } - } - - public bool UserCreate( - string username, - string aoo, - string description, - string defaultPassword, - string email = null, - string lang = "IT", - int tipo = 1, - bool mustChangePassword = true, - bool workflow = true, - IEnumerable groups = null - ) - { - this._logger?.Information($"Creazione utente {username}"); - Login(); - LoginManagment(); - var userApi = new ArxivarNext.Api.UsersApi(configuration); - var usersManagementApi = new ArxivarNextManagement.Api.UsersManagementApi(configurationManagement); - - var newUser = userApi.UsersInsert( - new ACUtils.AXRepository.ArxivarNext.Model.UserInsertDTO() - { - Password = defaultPassword, - Description = username, - CompleteDescription = description, - Email = email, - Workflow = workflow, - MustChangePassword = mustChangePassword ? 1 : 0, - PasswordChange = true, - Type = tipo, - Viewer = 0, - Group = 2, - UserState = 1, - BusinessUnit = aoo, - Lang = lang, - DefaultType = 0, - Type2 = 0, - Type3 = 0, - } - ); - - - - if (groups != null) - { - var existingGroups = userApi.UsersGetGroups(); - var newGroups = existingGroups.Where( - group => groups.Select(g => g.ToLower()).Contains(group.CompleteName.ToLower()) || - groups.Select(g => g.ToLower()).Contains(group.Description.ToLower()) - ) - .Select(g => new ArxivarNextManagement.Model.UserSimpleDTO(user: g.Id, description: g.Description)) - .ToList(); - usersManagementApi.UsersManagementSetUserGroups(userId: newUser.User, groups: newGroups); - } - return true; - } - - public bool UserCreateIfNotExists( - string username, - string aoo, - string description, - string defaultPassword, - string email = null, - string lang = "it", - int tipo = 1, - bool mustChangePassword = true, - bool workflow = true, - IEnumerable groups = null - ) - { - if (!UserExists(aoo, username)) - { - return UserCreate( - username: username, - aoo: aoo, - description: description, - defaultPassword: defaultPassword, - email: email, - lang: lang, - tipo: tipo, - mustChangePassword: mustChangePassword, - workflow: workflow, - groups: groups - ); - } - - foreach (var group in groups) - { - UserAddGroup(aoo, username, group); - } - return false; - } - - public bool UserAddGroup(string aoo, string username, string groupName) - { - Login(); - LoginManagment(); - var usersManagementApi = new ArxivarNextManagement.Api.UsersManagementApi(configurationManagement); - var userApi = new ArxivarNext.Api.UsersApi(configuration); - - var user = UserGet(aoo, username); - var existingGroups = userApi.UsersGetGroups(); - var group = existingGroups.FirstOrDefault( - g => g.Description.Equals(groupName, StringComparison.CurrentCultureIgnoreCase) - ); - if (group == null) - { - throw new NotFoundException($"Arxivar group '{groupName}' not found"); - } - var userGroups = usersManagementApi.UsersManagementGetUserGroups(user.User); - if (!userGroups.Any(g => g.Description.Equals(groupName, StringComparison.CurrentCultureIgnoreCase))) - { - userGroups.Add(new UserSimpleDTO(user: group.Id, description: group.Description)); - usersManagementApi.UsersManagementSetUserGroups(userId: user.User, groups: userGroups); - return true; - } - return false; - } - - public void UserUpdate(ACUtils.AXRepository.ArxivarNext.Model.UserCompleteDTO user) - { - Login(); - var userApi = new ArxivarNext.Api.UsersApi(configuration); - var update = new ACUtils.AXRepository.ArxivarNext.Model.UserUpdateDTO() - { - User = user.User, - Group = user.Group, - Description = user.Description, - Email = user.Email, - BusinessUnit = user.BusinessUnit, - Password = user.Password, - DefaultType = user.DefaultType, - Type2 = user.Type2, - Type3 = user.Type3, - InternalFax = user.InternalFax, - LastMail = user.LastMail, - Category = user.Category, - Workflow = user.Workflow, - DefaultState = user.DefaultState, - AddressBook = user.AddressBook, - UserState = user.UserState, - MailServer = user.MailServer, - WebAccess = user.WebAccess, - Upload = user.Upload, - Folders = user.Folders, - Flow = user.Flow, - Sign = user.Sign, - Viewer = user.Viewer, - Protocol = user.Protocol, - Models = user.Models, - Domain = user.Domain, - OutState = user.OutState, - MailBody = user.MailBody, - Notify = user.Notify, - MailClient = user.MailClient, - HtmlBody = user.HtmlBody, - RespAos = user.RespAos, - AssAos = user.AssAos, - CodFis = user.CodFis, - Pin = user.Pin, - Guest = user.Guest, - PasswordChange = !string.IsNullOrEmpty(user.Password), - Marking = user.Marking, - Type = user.Type, - MailOutDefault = user.MailOutDefault, - BarcodeAccess = user.BarcodeAccess, - MustChangePassword = user.MustChangePassword, - Lang = user.Lang, - Ws = user.Ws, - DisablePswExpired = user.DisablePswExpired, - CompleteDescription = user.CompleteDescription, - CanAddVirtualStamps = user.CanAddVirtualStamps, - CanApplyStaps = user.CanApplyStaps, - }; - userApi.UsersUpdate(user.User, update); - } - - #endregion - - #region workflow - - public void DeleteWorkflow(int? processId) - { - var workflowApi = new ArxivarNext.Api.WorkflowApi(configuration); - workflowApi.WorkflowStopWorkflow(processId.Value); - workflowApi.WorkflowDeleteWorkflow(processId, true); - workflowApi.WorkflowFreeUserConstraint(processId.Value); - } - - #endregion - - } -} diff --git a/ACUtils.AXRepository/Attributes/AxCcExternalIdFieldAttribute.cs b/ACUtils.AXRepository/Attributes/AxCcExternalIdFieldAttribute.cs deleted file mode 100644 index f05a2c7..0000000 --- a/ACUtils.AXRepository/Attributes/AxCcExternalIdFieldAttribute.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace ACUtils.AXRepository.Attributes -{ - public class AxCcExternalIdFieldAttribute : AxDbFieldAttribute - { - public const string AX_KEY = "Cc_ExternalId"; - public AxCcExternalIdFieldAttribute(string db_field = null, string description = null, int key = 0) : base(ax_field: AX_KEY, db_field: db_field, description: description, key: key) - { - - } - } -} diff --git a/ACUtils.AXRepository/Attributes/AxClassAttribute.cs b/ACUtils.AXRepository/Attributes/AxClassAttribute.cs deleted file mode 100644 index 3b5c447..0000000 --- a/ACUtils.AXRepository/Attributes/AxClassAttribute.cs +++ /dev/null @@ -1,25 +0,0 @@ -namespace ACUtils.AXRepository.Attributes -{ - [System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple = false)] - public class AxClassAttribute : System.Attribute, IAxClassAttribute - { - readonly string _doc_type; - readonly string _description; - readonly bool _barcode; - readonly bool _skip_key_check; - readonly string _stato; - public string DocumentType => _doc_type; - public string Description => _description; - public bool Barcode => _barcode; - public bool SkipKeyCheck => _skip_key_check; - public string Stato => _stato; - public AxClassAttribute(string document_type, string description, bool barcode = false, bool skip_key_check = false, string stato = null) - { - this._doc_type = document_type; - this._description = description; - this._barcode = barcode; - this._skip_key_check = skip_key_check; - this._stato = stato; - } - } -} diff --git a/ACUtils.AXRepository/Attributes/AxDbFieldAttribute.cs b/ACUtils.AXRepository/Attributes/AxDbFieldAttribute.cs deleted file mode 100644 index a8feebe..0000000 --- a/ACUtils.AXRepository/Attributes/AxDbFieldAttribute.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace ACUtils.AXRepository.Attributes -{ - public class AxDbFieldAttribute: AxFieldAttribute - { - public AxDbFieldAttribute(string ax_field = null, string db_field = null, string description = null, int key = 0): base(ax_field: ax_field, description: description, key: key) - { - this.DbField = db_field; - } - } -} diff --git a/ACUtils.AXRepository/Attributes/AxFieldAttribute.cs b/ACUtils.AXRepository/Attributes/AxFieldAttribute.cs deleted file mode 100644 index 71aeda4..0000000 --- a/ACUtils.AXRepository/Attributes/AxFieldAttribute.cs +++ /dev/null @@ -1,31 +0,0 @@ -namespace ACUtils.AXRepository.Attributes -{ - [System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple = false)] - public class AxFieldAttribute : DbFieldAttribute, IAxFieldAttribute - { - readonly string ax_field; - readonly string description; - readonly int? _key; - public string Description => description; - public string AXField => ax_field; - public int? Key => _key; - public bool IsPrimaryKey => Key.GetValueOrDefault() > 0; - - public AxFieldAttribute(string ax_field = null, string description = null, int key = 0): base() - { - this.ax_field = ax_field; - this.description = description; - - // non è possibile definire un attributo con parametri nullabili quindi il default è 0 - if (key == 0) - { - this._key = null; - } - else - { - this._key = key; - } - } - - } -} diff --git a/ACUtils.AXRepository/Attributes/AxFromExternalIdFieldAttribute.cs b/ACUtils.AXRepository/Attributes/AxFromExternalIdFieldAttribute.cs deleted file mode 100644 index 8241183..0000000 --- a/ACUtils.AXRepository/Attributes/AxFromExternalIdFieldAttribute.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace ACUtils.AXRepository.Attributes -{ - public class AxFromExternalIdFieldAttribute: AxDbFieldAttribute - { - public const string AX_KEY = "From_ExternalId"; - public AxFromExternalIdFieldAttribute(string db_field = null, string description = null, int key = 0) : base(ax_field: AX_KEY , db_field: db_field, description: description, key: key) - { - - } - } -} diff --git a/ACUtils.AXRepository/Attributes/AxToExternalIdFieldAttribute.cs b/ACUtils.AXRepository/Attributes/AxToExternalIdFieldAttribute.cs deleted file mode 100644 index 4eb5df1..0000000 --- a/ACUtils.AXRepository/Attributes/AxToExternalIdFieldAttribute.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace ACUtils.AXRepository.Attributes -{ - public class AxToExternalIdFieldAttribute : AxDbFieldAttribute - { - public const string AX_KEY = "To_ExternalId"; - public AxToExternalIdFieldAttribute(string db_field = null, string description = null, int key = 0) : base(ax_field: AX_KEY, db_field: db_field, description: description, key: key) - { - - } - } -} diff --git a/ACUtils.AXRepository/Attributes/IAxClassAttribute.cs b/ACUtils.AXRepository/Attributes/IAxClassAttribute.cs deleted file mode 100644 index 3affa69..0000000 --- a/ACUtils.AXRepository/Attributes/IAxClassAttribute.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace ACUtils.AXRepository.Attributes -{ - public interface IAxClassAttribute - { - public string DocumentType { get; } - public string Description { get; } - public bool Barcode { get; } - public bool SkipKeyCheck { get; } - public string Stato { get; } - } - -} diff --git a/ACUtils.AXRepository/Attributes/IAxFieldAttribute.cs b/ACUtils.AXRepository/Attributes/IAxFieldAttribute.cs deleted file mode 100644 index 7f8077d..0000000 --- a/ACUtils.AXRepository/Attributes/IAxFieldAttribute.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace ACUtils.AXRepository.Attributes -{ - public interface IAxFieldAttribute - { - public string Description { get; } - public string AXField { get; } - public int? Key { get; } - public bool IsPrimaryKey { get; } - } -} diff --git a/ACUtils.AXRepository/AxExt.cs b/ACUtils.AXRepository/AxExt.cs deleted file mode 100644 index 63843b4..0000000 --- a/ACUtils.AXRepository/AxExt.cs +++ /dev/null @@ -1,344 +0,0 @@ -using ACUtils.AXRepository.ArxivarNext.Model; -using ACUtils.AXRepository.Exceptions; - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace ACUtils.AXRepository -{ - public static class AxExt - { - - public static EditProfileSchemaDTO SetState(this EditProfileSchemaDTO self, string stateName) - { - self.Fields.SetState(stateName); - return self; - } - public static MaskProfileSchemaDTO SetState(this MaskProfileSchemaDTO self, string stateName) - { - self.Fields.SetState(stateName); - return self; - } - public static void SetState(this List fields, string stateName) - { - var stateFiled = ((StateFieldDTO)fields.FirstOrDefault(i => - i.Name.Equals("Stato", StringComparison.CurrentCultureIgnoreCase) - )); - stateFiled.Value = stateName; - } - - public static DocumentTypeBaseDTO SetDocumentType(this MaskProfileSchemaDTO self, ArxivarNext.Client.Configuration configuration, string aooCode, string docType) - { - return self.Fields.SetDocumentType( - configuration: configuration, - aooCode: aooCode, - docType: docType - ); - } - public static DocumentTypeBaseDTO SetDocumentType(this List fields, ArxivarNext.Client.Configuration configuration, string aooCode, string docType) - { - var docTypesApi = new ArxivarNext.Api.DocumentTypesApi(configuration); - var doctypes = docTypesApi.DocumentTypesGetOld(1, aooCode); // TODO: deprecated method - try - { - DocumentTypeBaseDTO classeDoc = doctypes.First(i => - i.Key.Equals(docType, StringComparison.CurrentCultureIgnoreCase) - ); - fields.SetDocumentType(classeDoc.Id.Value); - return classeDoc; - } - catch (InvalidOperationException e) - { - throw new ApiError($"classe doc '{docType}' non trovata", e); - } - } - - public static void SetDocumentType(this List fields, int doc_type) - { - var docTypeField = fields.FirstOrDefault(i => i.Name.Equals("DocumentType")) as DocumentTypeFieldDTO; - docTypeField.Value = doc_type; - } - - public static string GetDocumentType(this EditProfileSchemaDTO self) - { - return self.Fields.GetDocumentType(); - } - - public static string GetDocumentType(this List fields) - { - var docTypeField = fields.GetField("DocumentType"); - return docTypeField.DisplayValue; - } - - public static T GetField(this List fields, string name) where T : FieldBaseDTO - { - return fields.GetField(name) as T; - } - - public static FieldBaseDTO GetField(this List fields, string name) - { - var field = fields.FirstOrDefault(i => - i.Name.Equals(name, StringComparison.CurrentCultureIgnoreCase) - ); - return field; - } - - public static T GetFieldValue(this List fields, string name) - { - var field = fields.GetField(name); - - if (field == null) - { - throw new Exception($"'{name}': campo Arxivar non trovato"); - } - if (field?.ClassName == "SubjectFieldDTO") - { - return (T)Convert.ChangeType((field as SubjectFieldDTO).Value, typeof(T)); - } - else if (field?.ClassName == "DocumentDateFieldDTO") - { - return (T)Convert.ChangeType((field as DocumentDateFieldDTO).Value, typeof(T)); - } - else if (field?.ClassName == "AdditionalFieldStringDTO") - { - return (T)Convert.ChangeType((field as AdditionalFieldStringDTO).Value, typeof(T)); - } - else if (field?.ClassName == "AdditionalFieldComboDTO") - { - return (T)Convert.ChangeType((field as AdditionalFieldComboDTO).Value, typeof(T)); - } - else if (field?.ClassName == "AdditionalFieldDoubleDTO") - { - return (T)Convert.ChangeType((field as AdditionalFieldDoubleDTO).Value, typeof(T)); - } - else if (field?.ClassName == "AdditionalFieldIntDTO") - { - return (T)Convert.ChangeType((field as AdditionalFieldIntDTO).Value, typeof(T)); - } - else if (field?.ClassName == "AdditionalFieldBooleanDTO") - { - return (T)Convert.ChangeType((field as AdditionalFieldBooleanDTO).Value, typeof(T)); - } - else if (field?.ClassName == "AdditionalFieldDateTimeDTO") - { - return (T)Convert.ChangeType((field as AdditionalFieldDateTimeDTO).Value, typeof(T)); - } - else if (field?.ClassName == "AdditionalFieldMultivalueDTO") - { - return (T)Convert.ChangeType((field as AdditionalFieldMultivalueDTO).Value, typeof(T)); - } - else if (field?.ClassName == "DocumentTypeFieldDTO") - { - return (T)Convert.ChangeType((field as DocumentTypeFieldDTO).Value, typeof(T)); - } - else - { - throw new Exception($"'{name}' - type '{field?.ClassName}': not permitted "); - } - } - - public static EditProfileSchemaDTO SetField(this EditProfileSchemaDTO self, string name, object value) - { - self.Fields.SetField(name, value); - return self; - } - public static MaskProfileSchemaDTO SetField(this MaskProfileSchemaDTO self, string name, object value) - { - self.Fields.SetField(name, value); - return self; - } - - public static void SetField(this List fields, string name, object value) - { - if (name == "WORKFLOW") - { - return; - } - if (name == "DOCNUMBER") - { - return; - } - var field = fields.FirstOrDefault(i => - i.Name.Equals(name, StringComparison.CurrentCultureIgnoreCase) - ); - if (field == null) - { - throw new Exception($"'{name}': campo Arxivar non trovato"); - } - if (field?.ClassName == "SubjectFieldDTO") - { - (field as SubjectFieldDTO).Value = Convert.ToString(value); - } - else if (field?.ClassName == "DocumentDateFieldDTO") - { - (field as DocumentDateFieldDTO).Value = Convert.ToDateTime(value); - } - else if (field?.ClassName == "AdditionalFieldStringDTO") - { - (field as AdditionalFieldStringDTO).Value = Convert.ToString(value); - } - else if (field?.ClassName == "AdditionalFieldComboDTO") - { - (field as AdditionalFieldComboDTO).Value = Convert.ToString(value); - } - else if (field?.ClassName == "AdditionalFieldDoubleDTO") - { - (field as AdditionalFieldDoubleDTO).Value = Convert.ToDouble(value); - } - else if (field?.ClassName == "AdditionalFieldIntDTO") - { - (field as AdditionalFieldIntDTO).Value = Convert.ToInt32(value); - } - else if (field?.ClassName == "AdditionalFieldBooleanDTO") - { - (field as AdditionalFieldBooleanDTO).Value = Convert.ToBoolean(value); - } - else if (field?.ClassName == "AdditionalFieldDateTimeDTO") - { - (field as AdditionalFieldDateTimeDTO).Value = Convert.ToDateTime(value); - } - else if (field?.ClassName == "AdditionalFieldMultivalueDTO") - { - (field as AdditionalFieldMultivalueDTO).Value = (List)Convert.ChangeType(value, typeof(List)); - } - else if (field?.ClassName == "FromFieldDTO") - { - (field as FromFieldDTO).Value = (UserProfileDTO)value; - } - else if (field?.ClassName == "StateFieldDTO") - { - (field as StateFieldDTO).Value = (string)value; - } - else - { - throw new Exception($"'{name}' - type '{field?.ClassName}': not permitted "); - } - } - - public static MaskProfileSchemaDTO SetToField(this MaskProfileSchemaDTO self, UserProfileDTO value) - { - self.Fields.SetToField(value); - return self; - } - - public static void SetToField(this List fields, UserProfileDTO value) - { - var field = ((ToFieldDTO)fields.FirstOrDefault(i => - i.Name.Equals("To", StringComparison.CurrentCultureIgnoreCase) - )); - if (field.Value == null) - { - field.Value = new List(); - } - field.Value.Add(value); - } - - public static MaskProfileSchemaDTO SetFromField(this MaskProfileSchemaDTO self, UserProfileDTO value) - { - self.Fields.SetFromField(value); - return self; - } - public static void SetFromField(this List fields, UserProfileDTO value) - { - fields.SetField("From", value); - } - - public static UserSearchDTO SetString(this UserSearchDTO self, string name, string value, int operator_ = 3) - { - self.StringFields.Set(name: name, value: value, operator_: operator_); - return self; - } - public static void Set(this List fields, string name, string value, int operator_ = 3) - { - var field = fields.First(i => i.Name.Equals(name, StringComparison.CurrentCultureIgnoreCase)); - field.Operator = operator_; - field.Valore1 = value; - } - - public static UserSearchDTO SetInt(this UserSearchDTO self, string name, int? value, int operator_ = 3) - { - self.IntFields.Set(name: name, value: value, operator_: operator_); - return self; - } - public static void Set(this List fields, string name, int? value, int operator_ = 3) - { - var field = fields.First(i => i.Name.Equals(name, StringComparison.CurrentCultureIgnoreCase)); - field.Operator = operator_; - field.Valore1 = value; - } - public static SearchDTO Set(this SearchDTO self, string name, object value, int operator_ = 3) - { - self.Fields.Set(name: name, value: value, operator_: operator_); - return self; - } - public static void Set(this List fields, string name, object value, int operator_ = 3) - { - var field = fields.First(i => i.Name.Equals(name, StringComparison.CurrentCultureIgnoreCase)); - switch (field.ClassName) - { - case "FieldBaseForSearchStringDto": - ((FieldBaseForSearchStringDto)field).Operator = operator_; - ((FieldBaseForSearchStringDto)field).Valore1 = Convert.ToString(value); - break; - case "FieldBaseForSearchDocumentTypeDto": - ((FieldBaseForSearchDocumentTypeDto)field).Operator = operator_; - ((FieldBaseForSearchDocumentTypeDto)field).Valore1 = (DocumentTypeSearchFilterDto)value; - break; - case "FieldBaseForSearchIntDto": - ((FieldBaseForSearchIntDto)field).Operator = operator_; - ((FieldBaseForSearchIntDto)field).Valore1 = Convert.ToInt32(value); - break; - case "FieldBaseForSearchDateTimeDto": - ((FieldBaseForSearchDateTimeDto)field).Operator = operator_; - ((FieldBaseForSearchDateTimeDto)field).Valore1 = Convert.ToDateTime(value); - break; - default: - throw new ArgumentException($"{field.ClassName}: invalid ClassName"); - } - } - - public static ColumnSearchResult Get(this RowSearchResult self, string name) - { - return self.Columns.Get(name); - } - public static ColumnSearchResult Get(this List results, string name) - { - return results.First(i => i.Id.Equals(name, StringComparison.CurrentCultureIgnoreCase)); - } - - public static T GetValue(this RowSearchResult self, string name) - { - return self.Columns.GetValue(name); - } - public static T GetValue(this List results, string name) - { - try - { - return (T)results.Get(name).Value; - } - catch - { - return (T)System.Convert.ChangeType(results.Get(name).Value, typeof(T)); - } - } - - public static SelectDTO Select(this SelectDTO self, string name) - { - self.Fields.Select(name); - return self; - } - - public static List Select(this List fields, string name) - { - fields.First(i => i.Name.Equals(name, StringComparison.CurrentCultureIgnoreCase)).Selected = true; - return fields; - } - - public static List Select(this List fields, string name) - { - fields.First(i => i.KeyField.Equals(name, StringComparison.CurrentCultureIgnoreCase)).Selected = true; - return fields; - } - } -} diff --git a/ACUtils.AXRepository/Exceptions/ApiError.cs b/ACUtils.AXRepository/Exceptions/ApiError.cs deleted file mode 100644 index 02d2f80..0000000 --- a/ACUtils.AXRepository/Exceptions/ApiError.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace ACUtils.AXRepository.Exceptions -{ - public class ApiError : Exception - { - public ApiError(string message) : base(message) { } - public ApiError(string message, Exception innerException) : base(message, innerException) { } - } -} diff --git a/ACUtils.AXRepository/Exceptions/NotFoundException.cs b/ACUtils.AXRepository/Exceptions/NotFoundException.cs deleted file mode 100644 index 97f0c53..0000000 --- a/ACUtils.AXRepository/Exceptions/NotFoundException.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace ACUtils.AXRepository.Exceptions -{ - public class NotFoundException : Exception - { - public NotFoundException(string message) : base(message) - { - - } - } -} diff --git a/ACUtils.AXRepository/Exceptions/TooMuchElementsException.cs b/ACUtils.AXRepository/Exceptions/TooMuchElementsException.cs deleted file mode 100644 index 97d2b70..0000000 --- a/ACUtils.AXRepository/Exceptions/TooMuchElementsException.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace ACUtils.AXRepository.Exceptions -{ - public class TooMuchElementsException : Exception - { - public TooMuchElementsException(string message) : base(message) { } - } -} diff --git a/ACUtils.AXRepository/Lib/Abletech.Arxivar.Client.PlugIn.dll b/ACUtils.AXRepository/Lib/Abletech.Arxivar.Client.PlugIn.dll deleted file mode 100644 index 253cdca..0000000 Binary files a/ACUtils.AXRepository/Lib/Abletech.Arxivar.Client.PlugIn.dll and /dev/null differ diff --git a/ACUtils.AXRepository/Lib/Abletech.Arxivar.Client.WCFConnector.dll b/ACUtils.AXRepository/Lib/Abletech.Arxivar.Client.WCFConnector.dll deleted file mode 100644 index 47be635..0000000 Binary files a/ACUtils.AXRepository/Lib/Abletech.Arxivar.Client.WCFConnector.dll and /dev/null differ diff --git a/ACUtils.AXRepository/Lib/Abletech.Arxivar.Entities.dll b/ACUtils.AXRepository/Lib/Abletech.Arxivar.Entities.dll deleted file mode 100644 index c36a06e..0000000 Binary files a/ACUtils.AXRepository/Lib/Abletech.Arxivar.Entities.dll and /dev/null differ diff --git a/ACUtils.AXRepository/UserProfileType.cs b/ACUtils.AXRepository/UserProfileType.cs deleted file mode 100644 index b507011..0000000 --- a/ACUtils.AXRepository/UserProfileType.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace ACUtils.AXRepository -{ - public enum UserProfileType : int - { - To = 0, - From = 1, - Cc = 2, - Senders = 3 - } -} diff --git a/ACUtils.sln b/ACUtils.sln index a82ad56..cc7a621 100644 --- a/ACUtils.sln +++ b/ACUtils.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29102.190 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33122.133 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ACUtils", "ACUtils\ACUtils.csproj", "{6EDFC22B-7712-414A-9817-6EAF08F8B74C}" EndProject @@ -37,8 +37,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ACUtils.SqlDbExt", "ACUtils EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ACUtils.SqlDb.Utils", "ACUtils.SqlDb.Utils\ACUtils.SqlDb.Utils.csproj", "{F4EBF2BA-75DE-4F7A-B900-AF4D5734C1DD}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ACUtils.AXRepository", "ACUtils.AXRepository\ACUtils.AXRepository.csproj", "{9315E643-F70A-4582-8B4E-ED86CD458A08}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -101,10 +99,6 @@ Global {F4EBF2BA-75DE-4F7A-B900-AF4D5734C1DD}.Debug|Any CPU.Build.0 = Debug|Any CPU {F4EBF2BA-75DE-4F7A-B900-AF4D5734C1DD}.Release|Any CPU.ActiveCfg = Release|Any CPU {F4EBF2BA-75DE-4F7A-B900-AF4D5734C1DD}.Release|Any CPU.Build.0 = Release|Any CPU - {9315E643-F70A-4582-8B4E-ED86CD458A08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9315E643-F70A-4582-8B4E-ED86CD458A08}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9315E643-F70A-4582-8B4E-ED86CD458A08}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9315E643-F70A-4582-8B4E-ED86CD458A08}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Tests/AXTests.cs b/Tests/AXTests.cs index e51b5c9..d6847ae 100644 --- a/Tests/AXTests.cs +++ b/Tests/AXTests.cs @@ -9,10 +9,81 @@ namespace Tests [TestFixture] public class AXTests { + ACUtils.AXRepository.ArxivarRepository repo; + [SetUp] + public void Setup() + { + var apiUrl = "http://documentale.poliplast.local/ARXivarNextWebApi/"; + var workflowUrl = "http://documentale.poliplast.local/ARXivarNextWebApi/"; + var managementUrl = "http://documentale.poliplast.local/ARXivarNextWebApi/"; + var appSecret = "A61C0B60ACEA4C768D68EB578EB5A8A4"; + var appId = "addons"; + var username = "admin"; + var password = "PoliplastArxivar2021"; + + repo = new ACUtils.AXRepository.ArxivarRepository( + apiUrl: apiUrl, + managementUrl: managementUrl, + workflowUrl: workflowUrl, + username: username, + password: password, + appId: appId, + appSecret: appSecret + ); + } + [Test] public void TestProfileGet() { - + var doc = repo.GetProfile(4); + + Assert.IsNotNull(doc.DOCNAME); + Assert.AreEqual(4, doc.DOCNUMBER); + Assert.IsNotNull(doc.DataDoc); + Assert.IsNotNull(doc.DestinatariCodiceRubrica); + //Assert.IsNotNull(doc.DestinatariIdRubrica); + Assert.IsNotNull(doc.MittenteCodiceRubrica); + //Assert.IsNotNull(doc.MittenteIdRubrica); + Assert.IsNotNull(doc.MittenteId); + Assert.IsNotNull(doc.DestinatariId); + Assert.IsTrue(doc.DestinatariId.Count() > 0); + Assert.IsNotNull(doc.Prova); + + + var docSearch = repo.Search(doc).First(); + Assert.IsNotNull(docSearch.DOCNAME); + Assert.AreEqual(4, docSearch.DOCNUMBER); + Assert.IsNotNull(docSearch.DataDoc); + Assert.IsNotNull(docSearch.DestinatariCodiceRubrica); + //Assert.IsNotNull(doc.DestinatariIdRubrica); + Assert.IsNotNull(docSearch.MittenteCodiceRubrica); + //Assert.IsNotNull(doc.MittenteIdRubrica); + Assert.IsNotNull(docSearch.MittenteId); + Assert.IsNotNull(docSearch.DestinatariId); + Assert.IsTrue(docSearch.DestinatariId.Count() > 0); + Assert.IsNotNull(docSearch.Prova); + } + + [Test] + public void TestGetUser() + { + Assert.IsNotNull(repo.UserGet("PO", "admin")); + } + + [Test] + public void TestCreateUser() + { + var result = repo.UserCreateIfNotExists( + username: "test02", + defaultPassword: "test02", + description: "test02", + aoo: "PO", + mustChangePassword: false, + workflow: true, + groups: new[] { "Everybody" } + ); + + Assert.IsTrue(result); } } } diff --git a/Tests/FileUtilsTests.cs b/Tests/FileUtilsTests.cs index ed8a639..aae5aa2 100644 --- a/Tests/FileUtilsTests.cs +++ b/Tests/FileUtilsTests.cs @@ -5,7 +5,6 @@ using System; using System.IO; using System.Security.AccessControl; -using System.Security.Principal; namespace Tests { @@ -219,7 +218,7 @@ public void FtpFtpDelete() } - private bool _hasPermission(string filePath, string accountName) + private bool _hasSomePermissions(string filePath, string accountName) { var fileInfo = new FileInfo(filePath); var acl = fileInfo.GetAccessControl().GetAccessRules(true, true, typeof(System.Security.Principal.NTAccount)); @@ -229,7 +228,7 @@ private bool _hasPermission(string filePath, string accountName) Console.WriteLine(currentRule.IdentityReference.Value); if (currentRule.IdentityReference.Value.Equals(accountName, StringComparison.CurrentCultureIgnoreCase)) return true; } - + /* acl = fileInfo.GetAccessControl().GetAccessRules(true, true, typeof(System.Security.Principal.SecurityIdentifier)); for (int i = 0; i < acl.Count; i++) { @@ -237,7 +236,7 @@ private bool _hasPermission(string filePath, string accountName) Console.WriteLine(currentRule.IdentityReference.Value); if (currentRule.IdentityReference.Value.Equals(accountName, StringComparison.CurrentCultureIgnoreCase)) return true; } - + */ return false; } @@ -270,104 +269,22 @@ public void FixAclTest(string identityUPN) var sourcePath = System.IO.Path.Combine(sourceFolderPath, filename); var destPath = System.IO.Path.Combine(destFolderPath, filename); - File.WriteAllText(sourcePath, "hello there!"); - - File.Move(sourcePath, destPath); Console.WriteLine($"{sourcePath} -> {destPath}"); - Assert.IsFalse(_hasPermission( destPath, identityUPN)); - + // PROBLEMA: se si utilizza File.Move i permessi al file non vengono applicati + File.WriteAllText(sourcePath, "hello there!"); + File.Move(sourcePath, destPath); + Assert.IsFalse(_hasSomePermissions( destPath, identityUPN)); + // ACUtils.FileUtils.MoveFile con parametro fixAcl=true risolve il problema XD File.WriteAllText(sourcePath, "hello there!"); ACUtils.FileUtils.MoveFile(sourcePath, destPath, bOverride: true, fixAcl: true); - - Assert.IsTrue(_hasPermission(destPath, identityUPN)); + Assert.IsTrue(_hasSomePermissions(destPath, identityUPN)); } } - public class UserSecurity - { - WindowsIdentity _currentUser; - WindowsPrincipal _currentPrincipal; - - public UserSecurity(WindowsIdentity user) - { - _currentUser = user; - _currentPrincipal = new WindowsPrincipal(_currentUser); - } - - public bool HasAccess(DirectoryInfo directory, FileSystemRights right) - { - // Get the collection of authorization rules that apply to the directory. - AuthorizationRuleCollection acl = directory.GetAccessControl() - .GetAccessRules(true, true, typeof(SecurityIdentifier)); - return HasFileOrDirectoryAccess(right, acl); - } - - public bool HasAccess(FileInfo file, FileSystemRights right) - { - // Get the collection of authorization rules that apply to the file. - AuthorizationRuleCollection acl = file.GetAccessControl() - .GetAccessRules(true, true, typeof(SecurityIdentifier)); - return HasFileOrDirectoryAccess(right, acl); - } - - private bool HasFileOrDirectoryAccess(FileSystemRights right, - AuthorizationRuleCollection acl) - { - bool allow = false; - bool inheritedAllow = false; - bool inheritedDeny = false; - - for (int i = 0; i < acl.Count; i++) - { - var currentRule = (FileSystemAccessRule)acl[i]; - // If the current rule applies to the current user. - if (_currentUser.User.Equals(currentRule.IdentityReference) || - _currentPrincipal.IsInRole( - (SecurityIdentifier)currentRule.IdentityReference)) - { - - if (currentRule.AccessControlType.Equals(AccessControlType.Deny)) - { - if ((currentRule.FileSystemRights & right) == right) - { - if (currentRule.IsInherited) - { - inheritedDeny = true; - } - else - { // Non inherited "deny" takes overall precedence. - return false; - } - } - } - else if (currentRule.AccessControlType - .Equals(AccessControlType.Allow)) - { - if ((currentRule.FileSystemRights & right) == right) - { - if (currentRule.IsInherited) - { - inheritedAllow = true; - } - else - { - allow = true; - } - } - } - } - } - - if (allow) - { // Non inherited "allow" takes precedence over inherited rules. - return true; - } - return inheritedAllow && !inheritedDeny; - } - } + } \ No newline at end of file diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index 2b6fcce..ba64c69 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -58,10 +58,6 @@ - - {9315e643-f70a-4582-8b4e-ed86cd458a08} - ACUtils.AXRepository - {df92e0a8-bf71-45f6-89d8-397e6b8f2a95} ACUtils.DotNetUtils